@pure-ds/core 0.4.8 → 0.4.9
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/types/public/assets/js/pds.d.ts.map +1 -1
- package/dist/types/public/assets/pds/components/pds-icon.d.ts +14 -0
- package/dist/types/public/assets/pds/components/pds-icon.d.ts.map +1 -1
- package/dist/types/src/js/pds-core/pds-config.d.ts.map +1 -1
- package/dist/types/src/js/pds-core/pds-enhancer-metadata.d.ts.map +1 -1
- package/dist/types/src/js/pds-core/pds-enhancers.d.ts +2 -2
- package/dist/types/src/js/pds-core/pds-enhancers.d.ts.map +1 -1
- package/dist/types/src/js/pds-core/pds-generator.d.ts +3 -0
- package/dist/types/src/js/pds-core/pds-generator.d.ts.map +1 -1
- package/package.json +1 -1
- package/public/assets/js/app.js +27 -7
- package/public/assets/js/pds.js +28 -8
- package/public/assets/pds/components/pds-icon.js +188 -27
- package/src/js/pds-core/pds-config.js +1 -0
- package/src/js/pds-core/pds-enhancer-metadata.js +21 -0
- package/src/js/pds-core/pds-enhancers.js +16 -0
- package/src/js/pds-core/pds-generator.js +8 -0
- package/src/js/pds-core/pds-registry.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pds.d.ts","sourceRoot":"","sources":["../../../../../public/assets/js/pds.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pds.d.ts","sourceRoot":"","sources":["../../../../../public/assets/js/pds.js"],"names":[],"mappings":"AAw5GwlS;;;;EAAQ;AAAsnF;;;;;;;;;;;;;;;EAA8sE"}
|
|
@@ -32,9 +32,23 @@ export class SvgIcon extends HTMLElement {
|
|
|
32
32
|
};
|
|
33
33
|
static spritePromises: Map<any, any>;
|
|
34
34
|
static inlineSprites: Map<any, any>;
|
|
35
|
+
static externalIconCache: Map<any, any>;
|
|
36
|
+
static externalIconPromises: Map<any, any>;
|
|
35
37
|
static instances: Set<any>;
|
|
36
38
|
static "__#private@#spriteSupport": boolean;
|
|
37
39
|
static "__#private@#detectSpriteSupport"(): boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Get the external icons path from PDS config or use default
|
|
42
|
+
* @private
|
|
43
|
+
* @returns {string} The base path for external SVG icons
|
|
44
|
+
*/
|
|
45
|
+
private static getExternalIconPath;
|
|
46
|
+
/**
|
|
47
|
+
* Fetch an external SVG icon and cache it
|
|
48
|
+
* @param {string} iconName - The icon name (without .svg extension)
|
|
49
|
+
* @returns {Promise<boolean>} True if successfully fetched
|
|
50
|
+
*/
|
|
51
|
+
static fetchExternalIcon(iconName: string): Promise<boolean>;
|
|
38
52
|
static ensureInlineSprite(spriteURL: any): Promise<any>;
|
|
39
53
|
static notifyInstances(): void;
|
|
40
54
|
connectedCallback(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pds-icon.d.ts","sourceRoot":"","sources":["../../../../../../public/assets/pds/components/pds-icon.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH;IACE,oCAAyE;IAGzE;;;;;;;;;;MAkBE;IAEF,qCAAkC;IAClC,oCAAiC;
|
|
1
|
+
{"version":3,"file":"pds-icon.d.ts","sourceRoot":"","sources":["../../../../../../public/assets/pds/components/pds-icon.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH;IACE,oCAAyE;IAGzE;;;;;;;;;;MAkBE;IAEF,qCAAkC;IAClC,oCAAiC;IAGjC,wCAAqC;IAErC,2CAAwC;IAExC,2BAA6B;IAE7B,4CAA8B;IAO9B,oDA2CC;IAmMD;;;;OAIG;IACH,mCAmBC;IAED;;;;OAIG;IACH,mCAHW,MAAM,GACJ,OAAO,CAAC,OAAO,CAAC,CA6E5B;IAED,wDA8EC;IACD,+BAMC;IA7XD,0BAGC;IAED,6BAEC;IAED,wEAIC;IAED,eA6JC;IAMD;;;;;OAKG;IACH,0BAFa,OAAO,CAInB;;CAoMF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pds-config.d.ts","sourceRoot":"","sources":["../../../../../src/js/pds-core/pds-config.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pds-config.d.ts","sourceRoot":"","sources":["../../../../../src/js/pds-core/pds-config.js"],"names":[],"mappings":"AAunCA;;;;;;GAMG;AACH,kCAJW,MAAM,WACN,MAAM,WACH,GAAG,EAAA,QAchB;AAxoCD;;;GAGG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqxBE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pds-enhancer-metadata.d.ts","sourceRoot":"","sources":["../../../../../src/js/pds-core/pds-enhancer-metadata.js"],"names":[],"mappings":"AAAA;;;;
|
|
1
|
+
{"version":3,"file":"pds-enhancer-metadata.d.ts","sourceRoot":"","sources":["../../../../../src/js/pds-core/pds-enhancer-metadata.js"],"names":[],"mappings":"AAAA;;;;IA+FE"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export const defaultPDSEnhancers: {
|
|
2
|
-
run: typeof
|
|
2
|
+
run: typeof enhanceAccordion;
|
|
3
3
|
selector: string;
|
|
4
4
|
description: string;
|
|
5
5
|
demoHtml: string;
|
|
@@ -9,6 +9,6 @@ export const defaultPDSEnhancerMetadata: {
|
|
|
9
9
|
description: string;
|
|
10
10
|
demoHtml: string;
|
|
11
11
|
}[];
|
|
12
|
-
declare function
|
|
12
|
+
declare function enhanceAccordion(elem: any): void;
|
|
13
13
|
export {};
|
|
14
14
|
//# sourceMappingURL=pds-enhancers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pds-enhancers.d.ts","sourceRoot":"","sources":["../../../../../src/js/pds-core/pds-enhancers.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pds-enhancers.d.ts","sourceRoot":"","sources":["../../../../../src/js/pds-core/pds-enhancers.js"],"names":[],"mappings":"AAyXA;;;;;IAGI;AAEJ;;;;IAA2D;AA5X3D,mDAaC"}
|
|
@@ -261,6 +261,7 @@ export class Generator {
|
|
|
261
261
|
[k: string]: string;
|
|
262
262
|
};
|
|
263
263
|
spritePath: any;
|
|
264
|
+
externalPath: any;
|
|
264
265
|
};
|
|
265
266
|
};
|
|
266
267
|
generateTokens(): {
|
|
@@ -463,6 +464,7 @@ export class Generator {
|
|
|
463
464
|
[k: string]: string;
|
|
464
465
|
};
|
|
465
466
|
spritePath: any;
|
|
467
|
+
externalPath: any;
|
|
466
468
|
};
|
|
467
469
|
};
|
|
468
470
|
/**
|
|
@@ -700,6 +702,7 @@ export class Generator {
|
|
|
700
702
|
[k: string]: string;
|
|
701
703
|
};
|
|
702
704
|
spritePath: any;
|
|
705
|
+
externalPath: any;
|
|
703
706
|
};
|
|
704
707
|
};
|
|
705
708
|
exportCSS(): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pds-generator.d.ts","sourceRoot":"","sources":["../../../../../src/js/pds-core/pds-generator.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pds-generator.d.ts","sourceRoot":"","sources":["../../../../../src/js/pds-core/pds-generator.js"],"names":[],"mappings":"AAurKA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,4CAjBW,UAAU,qBACV,aAAa,EAAE,GACb,OAAO,CAAC,IAAI,CAAC,CAqCzB;AAED;;;;;;;;GAQG;AACH,wCALW,UAAU,WACV,MAAM,EAAE,qBACR,aAAa,EAAE,GACb,OAAO,CAAC,IAAI,CAAC,CAmDzB;AAED;;;;;;GAMG;AACH,sCAHW,MAAM,GACJ,aAAa,CAMzB;AAzyKD;;;GAGG;AACH;IAEE,mCAAiB;IAEjB,2BAEC;IA6kKD;;;;OAIG;IACH,+BAFW,SAAS,QAgCnB;IAED;;;;OAIG;IACH,gDA6CC;IA7pKD,0BA6CC;IA5CC;;MAIC;IAaD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAmC;IA6BrC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAgBC;IAycD;;;;OAIG;IACH,kDAyBC;IA0ED;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA6DC;IAg8GD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEC;IAGD,oBAEC;IA8sBD,qBAEC;IACD,yBAEC;IACD,yBAEC;IACD,wBAEC;IACD,yBAMC;IAED;;;;;;OAMG;IACH,oBA6JC;IAGD,4BAEC;IACD,gCAEC;IACD,gCAEC;IACD,+BAEC;IAmBD;;;OAGG;IACH;;;;;;MAoBC;;CA2GF"}
|