@ganpatiinfo/gids-core-web 2.0.5 → 2.0.7
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/custom-elements.json +1 -1
- package/dist/gids-toggle-button.js +3 -3
- package/dist/gids-toggle-button.js.map +1 -1
- package/dist/index.css +376 -0
- package/dist/index.css.map +1 -1
- package/dist/index.js +1 -1
- package/dist/{p-DXWsIVvG.js → p-C0FfV2mK.js} +8 -101
- package/dist/p-C0FfV2mK.js.map +1 -0
- package/dist/types/components/html/GidsAvatar/GidsAvatar.d.ts +4 -0
- package/dist/types/components/html/GidsAvatarGroup/GidsAvatarGroup.d.ts +5 -0
- package/dist/types/components/html/GidsBadge/GidsBadge.d.ts +4 -0
- package/dist/types/components/html/GidsInputTag/GidsInputTag.d.ts +22 -0
- package/dist/types/components/html/GidsInputTag/_GidsInputTagButton/GidsInputTagButton.d.ts +4 -0
- package/dist/types/components/html/GidsTagGroup/GidsTagGroup.d.ts +4 -0
- package/dist/types/index.d.ts +1 -1
- package/package.json +9 -9
- package/dist/p-C7NwBdoN.js +0 -1227
- package/dist/p-C7NwBdoN.js.map +0 -1
- package/dist/p-DXWsIVvG.js.map +0 -1
- package/dist/p-Dl9wTOvC.js +0 -748
- package/dist/p-Dl9wTOvC.js.map +0 -1
- package/dist/types/components/gids-toggle-button/gids-toggle-button.d.ts +0 -3
|
@@ -10,10 +10,6 @@ var __export = (target, all) => {
|
|
|
10
10
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
11
|
};
|
|
12
12
|
|
|
13
|
-
// src/utils/constants.ts
|
|
14
|
-
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
15
|
-
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
16
|
-
|
|
17
13
|
// src/client/client-host-ref.ts
|
|
18
14
|
var getHostRef = (ref) => {
|
|
19
15
|
if (ref.__stencil__getHostRef) {
|
|
@@ -39,7 +35,6 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
39
35
|
};
|
|
40
36
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
41
37
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
42
|
-
var XLINK_NS = "http://www.w3.org/1999/xlink";
|
|
43
38
|
var win = typeof window !== "undefined" ? window : {};
|
|
44
39
|
var H = win.HTMLElement || class {
|
|
45
40
|
};
|
|
@@ -189,12 +184,6 @@ var h = (nodeName, vnodeData, ...children) => {
|
|
|
189
184
|
if (vnodeData.key) {
|
|
190
185
|
key = vnodeData.key;
|
|
191
186
|
}
|
|
192
|
-
{
|
|
193
|
-
const classData = vnodeData.className || vnodeData.class;
|
|
194
|
-
if (classData) {
|
|
195
|
-
vnodeData.class = typeof classData !== "object" ? classData : Object.keys(classData).filter((k) => classData[k]).join(" ");
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
187
|
}
|
|
199
188
|
if (typeof nodeName === "function") {
|
|
200
189
|
return nodeName(
|
|
@@ -313,40 +302,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
313
302
|
}
|
|
314
303
|
let isProp = isMemberInElement(elm, memberName);
|
|
315
304
|
let ln = memberName.toLowerCase();
|
|
316
|
-
if (memberName === "
|
|
317
|
-
const classList = elm.classList;
|
|
318
|
-
const oldClasses = parseClassList(oldValue);
|
|
319
|
-
let newClasses = parseClassList(newValue);
|
|
320
|
-
{
|
|
321
|
-
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
322
|
-
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
323
|
-
}
|
|
324
|
-
} else if (memberName === "style") {
|
|
325
|
-
{
|
|
326
|
-
for (const prop in oldValue) {
|
|
327
|
-
if (!newValue || newValue[prop] == null) {
|
|
328
|
-
if (prop.includes("-")) {
|
|
329
|
-
elm.style.removeProperty(prop);
|
|
330
|
-
} else {
|
|
331
|
-
elm.style[prop] = "";
|
|
332
|
-
}
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
|
-
for (const prop in newValue) {
|
|
337
|
-
if (!oldValue || newValue[prop] !== oldValue[prop]) {
|
|
338
|
-
if (prop.includes("-")) {
|
|
339
|
-
elm.style.setProperty(prop, newValue[prop]);
|
|
340
|
-
} else {
|
|
341
|
-
elm.style[prop] = newValue[prop];
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
}
|
|
345
|
-
} else if (memberName === "key") ; else if (memberName === "ref") {
|
|
346
|
-
if (newValue) {
|
|
347
|
-
newValue(elm);
|
|
348
|
-
}
|
|
349
|
-
} else if ((!elm.__lookupSetter__(memberName)) && memberName[0] === "o" && memberName[1] === "n") {
|
|
305
|
+
if (memberName === "key") ; else if ((!elm.__lookupSetter__(memberName)) && memberName[0] === "o" && memberName[1] === "n") {
|
|
350
306
|
if (memberName[2] === "-") {
|
|
351
307
|
memberName = memberName.slice(3);
|
|
352
308
|
} else if (isMemberInElement(win, ln)) {
|
|
@@ -366,7 +322,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
366
322
|
}
|
|
367
323
|
} else {
|
|
368
324
|
const isComplex = isComplexType(newValue);
|
|
369
|
-
if ((isProp || isComplex && newValue !== null) &&
|
|
325
|
+
if ((isProp || isComplex && newValue !== null) && true) {
|
|
370
326
|
try {
|
|
371
327
|
if (!elm.tagName.includes("-")) {
|
|
372
328
|
const n = newValue == null ? "" : newValue;
|
|
@@ -385,41 +341,20 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
385
341
|
} catch (e) {
|
|
386
342
|
}
|
|
387
343
|
}
|
|
388
|
-
let xlink = false;
|
|
389
|
-
{
|
|
390
|
-
if (ln !== (ln = ln.replace(/^xlink\:?/, ""))) {
|
|
391
|
-
memberName = ln;
|
|
392
|
-
xlink = true;
|
|
393
|
-
}
|
|
394
|
-
}
|
|
395
344
|
if (newValue == null || newValue === false) {
|
|
396
345
|
if (newValue !== false || elm.getAttribute(memberName) === "") {
|
|
397
|
-
|
|
398
|
-
elm.removeAttributeNS(XLINK_NS, memberName);
|
|
399
|
-
} else {
|
|
346
|
+
{
|
|
400
347
|
elm.removeAttribute(memberName);
|
|
401
348
|
}
|
|
402
349
|
}
|
|
403
350
|
} else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex && elm.nodeType === 1 /* ElementNode */) {
|
|
404
351
|
newValue = newValue === true ? "" : newValue;
|
|
405
|
-
|
|
406
|
-
elm.setAttributeNS(XLINK_NS, memberName, newValue);
|
|
407
|
-
} else {
|
|
352
|
+
{
|
|
408
353
|
elm.setAttribute(memberName, newValue);
|
|
409
354
|
}
|
|
410
355
|
}
|
|
411
356
|
}
|
|
412
357
|
};
|
|
413
|
-
var parseClassListRegex = /\s/;
|
|
414
|
-
var parseClassList = (value) => {
|
|
415
|
-
if (typeof value === "object" && value && "baseVal" in value) {
|
|
416
|
-
value = value.baseVal;
|
|
417
|
-
}
|
|
418
|
-
if (!value || typeof value !== "string") {
|
|
419
|
-
return [];
|
|
420
|
-
}
|
|
421
|
-
return value.split(parseClassListRegex);
|
|
422
|
-
};
|
|
423
358
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
424
359
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
425
360
|
|
|
@@ -470,21 +405,14 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
470
405
|
if (newVNode2.$text$ !== null) {
|
|
471
406
|
elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
|
|
472
407
|
} else {
|
|
473
|
-
if (!isSvgMode) {
|
|
474
|
-
isSvgMode = newVNode2.$tag$ === "svg";
|
|
475
|
-
}
|
|
476
408
|
if (!win.document) {
|
|
477
409
|
throw new Error(
|
|
478
410
|
"You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component."
|
|
479
411
|
);
|
|
480
412
|
}
|
|
481
|
-
elm = newVNode2.$elm$ = win.document.
|
|
482
|
-
isSvgMode ? SVG_NS : HTML_NS,
|
|
413
|
+
elm = newVNode2.$elm$ = win.document.createElement(
|
|
483
414
|
newVNode2.$tag$
|
|
484
|
-
)
|
|
485
|
-
if (isSvgMode && newVNode2.$tag$ === "foreignObject") {
|
|
486
|
-
isSvgMode = false;
|
|
487
|
-
}
|
|
415
|
+
);
|
|
488
416
|
{
|
|
489
417
|
updateElement(null, newVNode2, isSvgMode);
|
|
490
418
|
}
|
|
@@ -496,13 +424,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
496
424
|
}
|
|
497
425
|
}
|
|
498
426
|
}
|
|
499
|
-
{
|
|
500
|
-
if (newVNode2.$tag$ === "svg") {
|
|
501
|
-
isSvgMode = false;
|
|
502
|
-
} else if (elm.tagName === "foreignObject") {
|
|
503
|
-
isSvgMode = true;
|
|
504
|
-
}
|
|
505
|
-
}
|
|
506
427
|
}
|
|
507
428
|
elm["s-hn"] = hostTagName;
|
|
508
429
|
return elm;
|
|
@@ -528,7 +449,6 @@ var removeVnodes = (vnodes, startIdx, endIdx) => {
|
|
|
528
449
|
const vnode = vnodes[index];
|
|
529
450
|
if (vnode) {
|
|
530
451
|
const elm = vnode.$elm$;
|
|
531
|
-
nullifyVNodeRefs(vnode);
|
|
532
452
|
if (elm) {
|
|
533
453
|
elm.remove();
|
|
534
454
|
}
|
|
@@ -635,12 +555,8 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
635
555
|
const elm = newVNode2.$elm$ = oldVNode.$elm$;
|
|
636
556
|
const oldChildren = oldVNode.$children$;
|
|
637
557
|
const newChildren = newVNode2.$children$;
|
|
638
|
-
const tag = newVNode2.$tag$;
|
|
639
558
|
const text = newVNode2.$text$;
|
|
640
559
|
if (text === null) {
|
|
641
|
-
{
|
|
642
|
-
isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
|
|
643
|
-
}
|
|
644
560
|
{
|
|
645
561
|
updateElement(oldVNode, newVNode2, isSvgMode);
|
|
646
562
|
}
|
|
@@ -657,19 +573,10 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
657
573
|
) {
|
|
658
574
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
659
575
|
}
|
|
660
|
-
if (isSvgMode && tag === "svg") {
|
|
661
|
-
isSvgMode = false;
|
|
662
|
-
}
|
|
663
576
|
} else if (oldVNode.$text$ !== text) {
|
|
664
577
|
elm.data = text;
|
|
665
578
|
}
|
|
666
579
|
};
|
|
667
|
-
var nullifyVNodeRefs = (vNode) => {
|
|
668
|
-
{
|
|
669
|
-
vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
|
|
670
|
-
vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
|
|
671
|
-
}
|
|
672
|
-
};
|
|
673
580
|
var insertBefore = (parent, newNode, reference) => {
|
|
674
581
|
{
|
|
675
582
|
return parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
@@ -1222,6 +1129,6 @@ const getConstructedGidsStylesheet = () => {
|
|
|
1222
1129
|
};
|
|
1223
1130
|
|
|
1224
1131
|
export { H, setNonce as a, setPlatformOptions as b, refreshConstructedGidsStylesheet as c, getConstructedGidsStylesheet as d, createEvent as e, Host as f, getAssetPath as g, h, proxyCustomElement as p, render as r, setAssetPath as s };
|
|
1225
|
-
//# sourceMappingURL=p-
|
|
1132
|
+
//# sourceMappingURL=p-C0FfV2mK.js.map
|
|
1226
1133
|
|
|
1227
|
-
//# sourceMappingURL=p-
|
|
1134
|
+
//# sourceMappingURL=p-C0FfV2mK.js.map
|