@ptcwebops/ptcw-design 0.0.15 → 0.1.1

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.
Files changed (152) hide show
  1. package/dist/custom-elements/index.d.ts +12 -0
  2. package/dist/ptcw-design/app-globals-0f993ce5.js +3 -0
  3. package/dist/ptcw-design/assets/ptc-sprite.svg +67 -0
  4. package/dist/ptcw-design/css-shim-003e9264.js +4 -0
  5. package/dist/ptcw-design/dom-1b195079.js +73 -0
  6. package/dist/{esm → ptcw-design}/icon-asset.entry.js +2 -2
  7. package/dist/{cjs/index-ac192914.js → ptcw-design/index-f7043a90.js} +1311 -195
  8. package/dist/ptcw-design/index.esm.js +1 -0
  9. package/dist/{esm → ptcw-design}/list-item.entry.js +1 -1
  10. package/dist/{esm → ptcw-design}/lottie-player.entry.js +782 -31
  11. package/dist/{esm → ptcw-design}/my-component.entry.js +1 -1
  12. package/dist/ptcw-design/ptc-announcement.entry.js +31 -0
  13. package/dist/ptcw-design/ptc-button.entry.js +57 -0
  14. package/dist/{esm → ptcw-design}/ptc-card.entry.js +1 -1
  15. package/dist/{esm → ptcw-design}/ptc-date.entry.js +1 -1
  16. package/dist/{esm → ptcw-design}/ptc-footer.entry.js +1 -1
  17. package/dist/{esm → ptcw-design}/ptc-image.entry.js +1 -1
  18. package/dist/{esm → ptcw-design}/ptc-img.entry.js +12 -1
  19. package/dist/{esm → ptcw-design}/ptc-link.entry.js +1 -1
  20. package/dist/{esm → ptcw-design}/ptc-list.entry.js +1 -1
  21. package/dist/{esm → ptcw-design}/ptc-lottie.entry.js +1 -1
  22. package/dist/{esm → ptcw-design}/ptc-nav-item.entry.js +1 -1
  23. package/dist/{esm → ptcw-design}/ptc-nav.entry.js +1 -1
  24. package/dist/{esm → ptcw-design}/ptc-overlay.entry.js +1 -1
  25. package/dist/{esm → ptcw-design}/ptc-para.entry.js +2 -2
  26. package/dist/{esm → ptcw-design}/ptc-picture.entry.js +1 -1
  27. package/dist/{esm → ptcw-design}/ptc-spacer.entry.js +1 -1
  28. package/dist/{esm → ptcw-design}/ptc-span.entry.js +1 -1
  29. package/dist/ptcw-design/ptc-svg-btn.entry.js +27 -0
  30. package/dist/{esm → ptcw-design}/ptc-title.entry.js +1 -1
  31. package/dist/ptcw-design/ptcw-design.css +1030 -2
  32. package/dist/ptcw-design/ptcw-design.esm.js +122 -1
  33. package/dist/ptcw-design/shadow-css-c1ad5fdc.js +383 -0
  34. package/dist/types/components/icon-asset/icon-asset.d.ts +1 -1
  35. package/dist/types/components/ptc-announcement/ptc-announcement.d.ts +27 -0
  36. package/dist/types/components/ptc-button/ptc-button.d.ts +13 -1
  37. package/dist/types/components/ptc-para/ptc-para.d.ts +1 -1
  38. package/dist/types/components/ptc-svg-btn/ptc-svg-btn.d.ts +4 -0
  39. package/dist/types/components.d.ts +94 -6
  40. package/package.json +1 -1
  41. package/dist/cjs/icon-asset.cjs.entry.js +0 -64
  42. package/dist/cjs/index.cjs.js +0 -2
  43. package/dist/cjs/list-item.cjs.entry.js +0 -27
  44. package/dist/cjs/loader.cjs.js +0 -21
  45. package/dist/cjs/lottie-player.cjs.entry.js +0 -13476
  46. package/dist/cjs/my-component.cjs.entry.js +0 -26
  47. package/dist/cjs/ptc-button.cjs.entry.js +0 -48
  48. package/dist/cjs/ptc-card.cjs.entry.js +0 -75
  49. package/dist/cjs/ptc-date.cjs.entry.js +0 -48
  50. package/dist/cjs/ptc-footer.cjs.entry.js +0 -19
  51. package/dist/cjs/ptc-image.cjs.entry.js +0 -58
  52. package/dist/cjs/ptc-img.cjs.entry.js +0 -163
  53. package/dist/cjs/ptc-link.cjs.entry.js +0 -53
  54. package/dist/cjs/ptc-list.cjs.entry.js +0 -32
  55. package/dist/cjs/ptc-lottie.cjs.entry.js +0 -23
  56. package/dist/cjs/ptc-nav-item.cjs.entry.js +0 -94
  57. package/dist/cjs/ptc-nav.cjs.entry.js +0 -19
  58. package/dist/cjs/ptc-overlay.cjs.entry.js +0 -19
  59. package/dist/cjs/ptc-para.cjs.entry.js +0 -40
  60. package/dist/cjs/ptc-picture.cjs.entry.js +0 -26
  61. package/dist/cjs/ptc-spacer.cjs.entry.js +0 -46
  62. package/dist/cjs/ptc-span.cjs.entry.js +0 -31
  63. package/dist/cjs/ptc-title.cjs.entry.js +0 -49
  64. package/dist/cjs/ptcw-design.cjs.js +0 -19
  65. package/dist/collection/assets/responsive-background-image.min.js +0 -1
  66. package/dist/collection/collection-manifest.json +0 -38
  67. package/dist/collection/components/icon-asset/assets/brands.svg +0 -1381
  68. package/dist/collection/components/icon-asset/assets/footer-social.svg +0 -0
  69. package/dist/collection/components/icon-asset/assets/ptc-sprite.svg +0 -77
  70. package/dist/collection/components/icon-asset/assets/regular.svg +0 -463
  71. package/dist/collection/components/icon-asset/assets/solid.svg +0 -3013
  72. package/dist/collection/components/icon-asset/assets/svg-with-js.min.css +0 -5
  73. package/dist/collection/components/icon-asset/icon-asset.css +0 -26
  74. package/dist/collection/components/icon-asset/icon-asset.js +0 -177
  75. package/dist/collection/components/list-item/list-item.css +0 -3
  76. package/dist/collection/components/list-item/list-item.js +0 -63
  77. package/dist/collection/components/my-component/my-component.css +0 -3
  78. package/dist/collection/components/my-component/my-component.js +0 -74
  79. package/dist/collection/components/ptc-button/ptc-button.css +0 -76
  80. package/dist/collection/components/ptc-button/ptc-button.js +0 -153
  81. package/dist/collection/components/ptc-card/ptc-card.css +0 -239
  82. package/dist/collection/components/ptc-card/ptc-card.js +0 -260
  83. package/dist/collection/components/ptc-date/ptc-date.css +0 -3
  84. package/dist/collection/components/ptc-date/ptc-date.js +0 -155
  85. package/dist/collection/components/ptc-footer/ptc-footer.css +0 -40
  86. package/dist/collection/components/ptc-footer/ptc-footer.js +0 -25
  87. package/dist/collection/components/ptc-image/ptc-image.css +0 -4
  88. package/dist/collection/components/ptc-image/ptc-image.js +0 -92
  89. package/dist/collection/components/ptc-img/ptc-img.css +0 -65
  90. package/dist/collection/components/ptc-img/ptc-img.js +0 -318
  91. package/dist/collection/components/ptc-link/ptc-link.css +0 -168
  92. package/dist/collection/components/ptc-link/ptc-link.js +0 -197
  93. package/dist/collection/components/ptc-list/ptc-list.css +0 -24
  94. package/dist/collection/components/ptc-list/ptc-list.js +0 -66
  95. package/dist/collection/components/ptc-lottie/ptc-lottie.css +0 -5
  96. package/dist/collection/components/ptc-lottie/ptc-lottie.js +0 -58
  97. package/dist/collection/components/ptc-nav/ptc-nav.css +0 -29
  98. package/dist/collection/components/ptc-nav/ptc-nav.js +0 -21
  99. package/dist/collection/components/ptc-nav-item/ptc-nav-item.css +0 -81
  100. package/dist/collection/components/ptc-nav-item/ptc-nav-item.js +0 -252
  101. package/dist/collection/components/ptc-overlay/ptc-overlay.css +0 -3
  102. package/dist/collection/components/ptc-overlay/ptc-overlay.js +0 -14
  103. package/dist/collection/components/ptc-para/ptc-para.css +0 -57
  104. package/dist/collection/components/ptc-para/ptc-para.js +0 -111
  105. package/dist/collection/components/ptc-picture/ptc-picture.css +0 -3
  106. package/dist/collection/components/ptc-picture/ptc-picture.js +0 -44
  107. package/dist/collection/components/ptc-spacer/ptc-spacer.css +0 -307
  108. package/dist/collection/components/ptc-spacer/ptc-spacer.js +0 -99
  109. package/dist/collection/components/ptc-span/ptc-span.css +0 -36
  110. package/dist/collection/components/ptc-span/ptc-span.js +0 -86
  111. package/dist/collection/components/ptc-title/ptc-title.css +0 -64
  112. package/dist/collection/components/ptc-title/ptc-title.js +0 -105
  113. package/dist/collection/index.js +0 -1
  114. package/dist/collection/utils/interfaces.js +0 -6
  115. package/dist/collection/utils/utils.js +0 -3
  116. package/dist/custom-elements/index.js +0 -14381
  117. package/dist/esm/index-5b1c792c.js +0 -1687
  118. package/dist/esm/index.js +0 -1
  119. package/dist/esm/loader.js +0 -17
  120. package/dist/esm/polyfills/core-js.js +0 -11
  121. package/dist/esm/polyfills/css-shim.js +0 -1
  122. package/dist/esm/polyfills/dom.js +0 -79
  123. package/dist/esm/polyfills/es5-html-element.js +0 -1
  124. package/dist/esm/polyfills/index.js +0 -34
  125. package/dist/esm/polyfills/system.js +0 -6
  126. package/dist/esm/ptc-button.entry.js +0 -44
  127. package/dist/esm/ptcw-design.js +0 -17
  128. package/dist/index.cjs.js +0 -1
  129. package/dist/index.js +0 -1
  130. package/dist/node_modules/@teamhive/lottie-player/dist/collection/components/lottie-player/lottie-player.css +0 -187
  131. package/dist/ptcw-design/p-00b6c442.entry.js +0 -1
  132. package/dist/ptcw-design/p-01dc360c.entry.js +0 -1
  133. package/dist/ptcw-design/p-07624831.entry.js +0 -1
  134. package/dist/ptcw-design/p-0a44a2f7.entry.js +0 -1
  135. package/dist/ptcw-design/p-1a26bade.entry.js +0 -1
  136. package/dist/ptcw-design/p-2d357f92.entry.js +0 -1
  137. package/dist/ptcw-design/p-31f4bd0c.entry.js +0 -1
  138. package/dist/ptcw-design/p-3af43980.entry.js +0 -1
  139. package/dist/ptcw-design/p-4f366fc3.js +0 -1
  140. package/dist/ptcw-design/p-662ae9b6.entry.js +0 -1
  141. package/dist/ptcw-design/p-70adca2e.entry.js +0 -1
  142. package/dist/ptcw-design/p-76dfa56f.entry.js +0 -1
  143. package/dist/ptcw-design/p-77f87fa3.entry.js +0 -1
  144. package/dist/ptcw-design/p-7a63ca63.entry.js +0 -1
  145. package/dist/ptcw-design/p-83696cae.entry.js +0 -1
  146. package/dist/ptcw-design/p-83d98048.entry.js +0 -1
  147. package/dist/ptcw-design/p-85131a2a.entry.js +0 -1
  148. package/dist/ptcw-design/p-ac0ad25e.entry.js +0 -1
  149. package/dist/ptcw-design/p-c169281f.entry.js +0 -1
  150. package/dist/ptcw-design/p-ce8b8a72.entry.js +0 -1
  151. package/dist/ptcw-design/p-d4f117d2.entry.js +0 -1
  152. package/dist/ptcw-design/p-fe6a3ba5.entry.js +0 -1
@@ -1 +1,122 @@
1
- import{p as e,b as t}from"./p-4f366fc3.js";(()=>{const t=import.meta.url,a={};return""!==t&&(a.resourcesUrl=new URL(".",t).href),e(a)})().then((e=>t([["p-d4f117d2",[[1,"ptc-card",{cardType:[1,"card-type"],cardHref:[1,"card-href"],target:[1],rel:[1],hasImage:[4,"has-image"],hasVideo:[4,"has-video"],hasLottie:[4,"has-lottie"],heading:[1],cardDate:[1,"card-date"],styles:[1]}]]],["p-76dfa56f",[[1,"ptc-link",{disabled:[516],external:[516],href:[1],target:[1],linkTitle:[1,"link-title"],theme:[1],uppercase:[4],fontSize:[1,"font-size"]}]]],["p-07624831",[[1,"ptc-lottie",{jsonSrc:[1025,"json-src"],speed:[1026]}]]],["p-31f4bd0c",[[4,"list-item",{listType:[1,"list-type"],linkHref:[1,"link-href"]}]]],["p-ac0ad25e",[[1,"my-component",{first:[1],middle:[1],last:[1]}]]],["p-85131a2a",[[4,"ptc-button",{disabled:[516],type:[1],color:[1],iconAnimation:[1,"icon-animation"],iconPosition:[1,"icon-position"]}]]],["p-0a44a2f7",[[1,"ptc-footer"]]],["p-c169281f",[[1,"ptc-image",{src:[1],alt:[1],oldSrc:[32]}]]],["p-83696cae",[[0,"ptc-img",{sizeXs:[1025,"size-xs"],sizeSm:[1025,"size-sm"],sizeMd:[1025,"size-md"],sizeLg:[1025,"size-lg"],imgUrl:[1,"img-url"],imageType:[1,"image-type"],borderRadius:[1,"border-radius"],loadMode:[1,"load-mode"]},[[9,"resize","WindowResize"]]]]],["p-7a63ca63",[[0,"ptc-list",{listType:[1,"list-type"],listItems:[16]}]]],["p-3af43980",[[1,"ptc-nav"]]],["p-fe6a3ba5",[[1,"ptc-nav-item",{url:[1025],label:[1025],ariaExpanded:[1028,"aria-expanded"],depth:[1538],hasChildren:[1028,"has-children"],parentExpanded:[1540,"parent-expanded"],navType:[1,"nav-type"]},[[0,"handleClick","handleClick"],[9,"resize","handleResize"]]]]],["p-662ae9b6",[[4,"ptc-overlay"]]],["p-83d98048",[[1,"ptc-para",{fontSize:[1,"font-size"],fontWeight:[1,"font-weight"],paraStyle:[1,"para-style"],paraMargin:[1,"para-margin"]}]]],["p-01dc360c",[[4,"ptc-picture",{lazy:[1]}]]],["p-2d357f92",[[1,"ptc-spacer",{breakpoint:[1],size:[1],direction:[1]}]]],["p-70adca2e",[[1,"ptc-span",{spanStyle:[1,"span-style"],display:[1],styles:[1]}]]],["p-77f87fa3",[[1,"ptc-title",{type:[1],textAlign:[1,"text-align"],upperline:[1]}]]],["p-1a26bade",[[0,"icon-asset",{name:[1],size:[1],type:[1],spin:[1],pulse:[1],color:[1]}]]],["p-ce8b8a72",[[1,"lottie-player",{mode:[1],autoplay:[4],background:[513],controls:[4],count:[2],direction:[2],hover:[4],loop:[516],renderer:[1],speed:[2],src:[1],currentState:[1,"current-state"],seeker:[8],intermission:[2],play:[64],pause:[64],stop:[64],seek:[64],getLottie:[64],setSpeed:[64],setDirection:[64],setLooping:[64],togglePlay:[64],toggleLooping:[64]}]]],["p-00b6c442",[[1,"ptc-date",{year:[2],month:[2],day:[2],country:[1],dateString:[1,"date-string"],dateStyles:[1,"date-styles"]}]]]],e)));
1
+ import { B as BUILD, c as consoleDevInfo, p as plt, w as win, H, d as doc, N as NAMESPACE, a as promiseResolve, b as bootstrapLazy } from './index-f7043a90.js';
2
+ import { g as globalScripts } from './app-globals-0f993ce5.js';
3
+
4
+ /*
5
+ Stencil Client Patch Browser v2.6.0 | MIT Licensed | https://stenciljs.com
6
+ */
7
+ const getDynamicImportFunction = (namespace) => `__sc_import_${namespace.replace(/\s|-/g, '_')}`;
8
+ const patchBrowser = () => {
9
+ // NOTE!! This fn cannot use async/await!
10
+ if (BUILD.isDev && !BUILD.isTesting) {
11
+ consoleDevInfo('Running in development mode.');
12
+ }
13
+ if (BUILD.cssVarShim) {
14
+ // shim css vars
15
+ plt.$cssShim$ = win.__cssshim;
16
+ }
17
+ if (BUILD.cloneNodeFix) {
18
+ // opted-in to polyfill cloneNode() for slot polyfilled components
19
+ patchCloneNodeFix(H.prototype);
20
+ }
21
+ if (BUILD.profile && !performance.mark) {
22
+ // not all browsers support performance.mark/measure (Safari 10)
23
+ performance.mark = performance.measure = () => {
24
+ /*noop*/
25
+ };
26
+ performance.getEntriesByName = () => [];
27
+ }
28
+ // @ts-ignore
29
+ const scriptElm = BUILD.scriptDataOpts || BUILD.safari10 || BUILD.dynamicImportShim
30
+ ? Array.from(doc.querySelectorAll('script')).find(s => new RegExp(`\/${NAMESPACE}(\\.esm)?\\.js($|\\?|#)`).test(s.src) || s.getAttribute('data-stencil-namespace') === NAMESPACE)
31
+ : null;
32
+ const importMeta = import.meta.url;
33
+ const opts = BUILD.scriptDataOpts ? scriptElm['data-opts'] || {} : {};
34
+ if (BUILD.safari10 && 'onbeforeload' in scriptElm && !history.scrollRestoration /* IS_ESM_BUILD */) {
35
+ // Safari < v11 support: This IF is true if it's Safari below v11.
36
+ // This fn cannot use async/await since Safari didn't support it until v11,
37
+ // however, Safari 10 did support modules. Safari 10 also didn't support "nomodule",
38
+ // so both the ESM file and nomodule file would get downloaded. Only Safari
39
+ // has 'onbeforeload' in the script, and "history.scrollRestoration" was added
40
+ // to Safari in v11. Return a noop then() so the async/await ESM code doesn't continue.
41
+ // IS_ESM_BUILD is replaced at build time so this check doesn't happen in systemjs builds.
42
+ return {
43
+ then() {
44
+ /* promise noop */
45
+ },
46
+ };
47
+ }
48
+ if (!BUILD.safari10 && importMeta !== '') {
49
+ opts.resourcesUrl = new URL('.', importMeta).href;
50
+ }
51
+ else if (BUILD.dynamicImportShim || BUILD.safari10) {
52
+ opts.resourcesUrl = new URL('.', new URL(scriptElm.getAttribute('data-resources-url') || scriptElm.src, win.location.href)).href;
53
+ if (BUILD.dynamicImportShim) {
54
+ patchDynamicImport(opts.resourcesUrl, scriptElm);
55
+ }
56
+ if (BUILD.dynamicImportShim && !win.customElements) {
57
+ // module support, but no custom elements support (Old Edge)
58
+ // @ts-ignore
59
+ return import(/* webpackChunkName: "polyfills-dom" */ './dom-1b195079.js').then(() => opts);
60
+ }
61
+ }
62
+ return promiseResolve(opts);
63
+ };
64
+ const patchDynamicImport = (base, orgScriptElm) => {
65
+ const importFunctionName = getDynamicImportFunction(NAMESPACE);
66
+ try {
67
+ // test if this browser supports dynamic imports
68
+ // There is a caching issue in V8, that breaks using import() in Function
69
+ // By generating a random string, we can workaround it
70
+ // Check https://bugs.chromium.org/p/chromium/issues/detail?id=990810 for more info
71
+ win[importFunctionName] = new Function('w', `return import(w);//${Math.random()}`);
72
+ }
73
+ catch (e) {
74
+ // this shim is specifically for browsers that do support "esm" imports
75
+ // however, they do NOT support "dynamic" imports
76
+ // basically this code is for old Edge, v18 and below
77
+ const moduleMap = new Map();
78
+ win[importFunctionName] = (src) => {
79
+ const url = new URL(src, base).href;
80
+ let mod = moduleMap.get(url);
81
+ if (!mod) {
82
+ const script = doc.createElement('script');
83
+ script.type = 'module';
84
+ script.crossOrigin = orgScriptElm.crossOrigin;
85
+ script.src = URL.createObjectURL(new Blob([`import * as m from '${url}'; window.${importFunctionName}.m = m;`], { type: 'application/javascript' }));
86
+ mod = new Promise(resolve => {
87
+ script.onload = () => {
88
+ resolve(win[importFunctionName].m);
89
+ script.remove();
90
+ };
91
+ });
92
+ moduleMap.set(url, mod);
93
+ doc.head.appendChild(script);
94
+ }
95
+ return mod;
96
+ };
97
+ }
98
+ };
99
+ const patchCloneNodeFix = (HTMLElementPrototype) => {
100
+ const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;
101
+ HTMLElementPrototype.cloneNode = function (deep) {
102
+ if (this.nodeName === 'TEMPLATE') {
103
+ return nativeCloneNodeFn.call(this, deep);
104
+ }
105
+ const clonedNode = nativeCloneNodeFn.call(this, false);
106
+ const srcChildNodes = this.childNodes;
107
+ if (deep) {
108
+ for (let i = 0; i < srcChildNodes.length; i++) {
109
+ // Node.ATTRIBUTE_NODE === 2, and checking because IE11
110
+ if (srcChildNodes[i].nodeType !== 2) {
111
+ clonedNode.appendChild(srcChildNodes[i].cloneNode(true));
112
+ }
113
+ }
114
+ }
115
+ return clonedNode;
116
+ };
117
+ };
118
+
119
+ patchBrowser().then(options => {
120
+ globalScripts();
121
+ return bootstrapLazy([["ptc-announcement",[[1,"ptc-announcement",{"btnText":[513,"btn-text"],"visible":[1540],"btnLink":[513,"btn-link"],"tempContainer":[4,"temp-container"]}]]],["ptc-card",[[1,"ptc-card",{"cardType":[1,"card-type"],"cardHref":[1,"card-href"],"target":[1],"rel":[1],"hasImage":[4,"has-image"],"hasVideo":[4,"has-video"],"hasLottie":[4,"has-lottie"],"heading":[1],"cardDate":[1,"card-date"],"styles":[1]}]]],["ptc-link",[[1,"ptc-link",{"disabled":[516],"external":[516],"href":[1],"target":[1],"linkTitle":[1,"link-title"],"theme":[1],"uppercase":[4],"fontSize":[1,"font-size"]}]]],["ptc-lottie",[[1,"ptc-lottie",{"jsonSrc":[1025,"json-src"],"speed":[1026]}]]],["list-item",[[4,"list-item",{"listType":[1,"list-type"],"linkHref":[1,"link-href"]}]]],["my-component",[[1,"my-component",{"first":[1],"middle":[1],"last":[1]}]]],["ptc-footer",[[1,"ptc-footer"]]],["ptc-image",[[1,"ptc-image",{"src":[1],"alt":[1],"oldSrc":[32]}]]],["ptc-img",[[0,"ptc-img",{"sizeXs":[1025,"size-xs"],"sizeSm":[1025,"size-sm"],"sizeMd":[1025,"size-md"],"sizeLg":[1025,"size-lg"],"imgUrl":[1,"img-url"],"imageType":[1,"image-type"],"borderRadius":[1,"border-radius"],"loadMode":[1,"load-mode"]},[[9,"resize","WindowResize"]]]]],["ptc-list",[[0,"ptc-list",{"listType":[1,"list-type"],"listItems":[16]}]]],["ptc-nav",[[1,"ptc-nav"]]],["ptc-nav-item",[[1,"ptc-nav-item",{"url":[1025],"label":[1025],"ariaExpanded":[1028,"aria-expanded"],"depth":[1538],"hasChildren":[1028,"has-children"],"parentExpanded":[1540,"parent-expanded"],"navType":[1,"nav-type"]},[[0,"handleClick","handleClick"],[9,"resize","handleResize"]]]]],["ptc-overlay",[[4,"ptc-overlay"]]],["ptc-para",[[1,"ptc-para",{"fontSize":[1,"font-size"],"fontWeight":[1,"font-weight"],"paraStyle":[1,"para-style"],"paraMargin":[1,"para-margin"]}]]],["ptc-picture",[[4,"ptc-picture",{"lazy":[1]}]]],["ptc-spacer",[[1,"ptc-spacer",{"breakpoint":[1],"size":[1],"direction":[1]}]]],["ptc-span",[[1,"ptc-span",{"spanStyle":[1,"span-style"],"display":[1],"styles":[1]}]]],["ptc-title",[[1,"ptc-title",{"type":[1],"textAlign":[1,"text-align"],"upperline":[1]}]]],["lottie-player",[[1,"lottie-player",{"mode":[1],"autoplay":[4],"background":[513],"controls":[4],"count":[2],"direction":[2],"hover":[4],"loop":[516],"renderer":[1],"speed":[2],"src":[1],"currentState":[1,"current-state"],"seeker":[8],"intermission":[2],"play":[64],"pause":[64],"stop":[64],"seek":[64],"getLottie":[64],"setSpeed":[64],"setDirection":[64],"setLooping":[64],"togglePlay":[64],"toggleLooping":[64]}]]],["ptc-button",[[1,"ptc-button",{"disabled":[516],"type":[1],"color":[1],"iconAnimation":[1,"icon-animation"],"iconPosition":[1,"icon-position"],"linkHref":[1,"link-href"],"target":[1],"rel":[1]}]]],["ptc-date",[[1,"ptc-date",{"year":[2],"month":[2],"day":[2],"country":[1],"dateString":[1,"date-string"],"dateStyles":[1,"date-styles"]}]]],["ptc-svg-btn",[[1,"ptc-svg-btn",{"svgName":[1,"svg-name"]}]]],["icon-asset",[[0,"icon-asset",{"name":[1],"size":[1],"type":[1],"spin":[1],"pulse":[1],"color":[1]}]]]], options);
122
+ });
@@ -0,0 +1,383 @@
1
+ /*
2
+ Stencil Client Platform v2.6.0 | MIT Licensed | https://stenciljs.com
3
+ */
4
+ /**
5
+ * @license
6
+ * Copyright Google Inc. All Rights Reserved.
7
+ *
8
+ * Use of this source code is governed by an MIT-style license that can be
9
+ * found in the LICENSE file at https://angular.io/license
10
+ *
11
+ * This file is a port of shadowCSS from webcomponents.js to TypeScript.
12
+ * https://github.com/webcomponents/webcomponentsjs/blob/4efecd7e0e/src/ShadowCSS/ShadowCSS.js
13
+ * https://github.com/angular/angular/blob/master/packages/compiler/src/shadow_css.ts
14
+ */
15
+ const safeSelector = (selector) => {
16
+ const placeholders = [];
17
+ let index = 0;
18
+ let content;
19
+ // Replaces attribute selectors with placeholders.
20
+ // The WS in [attr="va lue"] would otherwise be interpreted as a selector separator.
21
+ selector = selector.replace(/(\[[^\]]*\])/g, (_, keep) => {
22
+ const replaceBy = `__ph-${index}__`;
23
+ placeholders.push(keep);
24
+ index++;
25
+ return replaceBy;
26
+ });
27
+ // Replaces the expression in `:nth-child(2n + 1)` with a placeholder.
28
+ // WS and "+" would otherwise be interpreted as selector separators.
29
+ content = selector.replace(/(:nth-[-\w]+)(\([^)]+\))/g, (_, pseudo, exp) => {
30
+ const replaceBy = `__ph-${index}__`;
31
+ placeholders.push(exp);
32
+ index++;
33
+ return pseudo + replaceBy;
34
+ });
35
+ const ss = {
36
+ content,
37
+ placeholders,
38
+ };
39
+ return ss;
40
+ };
41
+ const restoreSafeSelector = (placeholders, content) => {
42
+ return content.replace(/__ph-(\d+)__/g, (_, index) => placeholders[+index]);
43
+ };
44
+ const _polyfillHost = '-shadowcsshost';
45
+ const _polyfillSlotted = '-shadowcssslotted';
46
+ // note: :host-context pre-processed to -shadowcsshostcontext.
47
+ const _polyfillHostContext = '-shadowcsscontext';
48
+ const _parenSuffix = ')(?:\\((' + '(?:\\([^)(]*\\)|[^)(]*)+?' + ')\\))?([^,{]*)';
49
+ const _cssColonHostRe = new RegExp('(' + _polyfillHost + _parenSuffix, 'gim');
50
+ const _cssColonHostContextRe = new RegExp('(' + _polyfillHostContext + _parenSuffix, 'gim');
51
+ const _cssColonSlottedRe = new RegExp('(' + _polyfillSlotted + _parenSuffix, 'gim');
52
+ const _polyfillHostNoCombinator = _polyfillHost + '-no-combinator';
53
+ const _polyfillHostNoCombinatorRe = /-shadowcsshost-no-combinator([^\s]*)/;
54
+ const _shadowDOMSelectorsRe = [/::shadow/g, /::content/g];
55
+ const _selectorReSuffix = '([>\\s~+[.,{:][\\s\\S]*)?$';
56
+ const _polyfillHostRe = /-shadowcsshost/gim;
57
+ const _colonHostRe = /:host/gim;
58
+ const _colonSlottedRe = /::slotted/gim;
59
+ const _colonHostContextRe = /:host-context/gim;
60
+ const _commentRe = /\/\*\s*[\s\S]*?\*\//g;
61
+ const stripComments = (input) => {
62
+ return input.replace(_commentRe, '');
63
+ };
64
+ const _commentWithHashRe = /\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g;
65
+ const extractCommentsWithHash = (input) => {
66
+ return input.match(_commentWithHashRe) || [];
67
+ };
68
+ const _ruleRe = /(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g;
69
+ const _curlyRe = /([{}])/g;
70
+ const OPEN_CURLY = '{';
71
+ const CLOSE_CURLY = '}';
72
+ const BLOCK_PLACEHOLDER = '%BLOCK%';
73
+ const processRules = (input, ruleCallback) => {
74
+ const inputWithEscapedBlocks = escapeBlocks(input);
75
+ let nextBlockIndex = 0;
76
+ return inputWithEscapedBlocks.escapedString.replace(_ruleRe, (...m) => {
77
+ const selector = m[2];
78
+ let content = '';
79
+ let suffix = m[4];
80
+ let contentPrefix = '';
81
+ if (suffix && suffix.startsWith('{' + BLOCK_PLACEHOLDER)) {
82
+ content = inputWithEscapedBlocks.blocks[nextBlockIndex++];
83
+ suffix = suffix.substring(BLOCK_PLACEHOLDER.length + 1);
84
+ contentPrefix = '{';
85
+ }
86
+ const cssRule = {
87
+ selector,
88
+ content,
89
+ };
90
+ const rule = ruleCallback(cssRule);
91
+ return `${m[1]}${rule.selector}${m[3]}${contentPrefix}${rule.content}${suffix}`;
92
+ });
93
+ };
94
+ const escapeBlocks = (input) => {
95
+ const inputParts = input.split(_curlyRe);
96
+ const resultParts = [];
97
+ const escapedBlocks = [];
98
+ let bracketCount = 0;
99
+ let currentBlockParts = [];
100
+ for (let partIndex = 0; partIndex < inputParts.length; partIndex++) {
101
+ const part = inputParts[partIndex];
102
+ if (part === CLOSE_CURLY) {
103
+ bracketCount--;
104
+ }
105
+ if (bracketCount > 0) {
106
+ currentBlockParts.push(part);
107
+ }
108
+ else {
109
+ if (currentBlockParts.length > 0) {
110
+ escapedBlocks.push(currentBlockParts.join(''));
111
+ resultParts.push(BLOCK_PLACEHOLDER);
112
+ currentBlockParts = [];
113
+ }
114
+ resultParts.push(part);
115
+ }
116
+ if (part === OPEN_CURLY) {
117
+ bracketCount++;
118
+ }
119
+ }
120
+ if (currentBlockParts.length > 0) {
121
+ escapedBlocks.push(currentBlockParts.join(''));
122
+ resultParts.push(BLOCK_PLACEHOLDER);
123
+ }
124
+ const strEscapedBlocks = {
125
+ escapedString: resultParts.join(''),
126
+ blocks: escapedBlocks,
127
+ };
128
+ return strEscapedBlocks;
129
+ };
130
+ const insertPolyfillHostInCssText = (selector) => {
131
+ selector = selector
132
+ .replace(_colonHostContextRe, _polyfillHostContext)
133
+ .replace(_colonHostRe, _polyfillHost)
134
+ .replace(_colonSlottedRe, _polyfillSlotted);
135
+ return selector;
136
+ };
137
+ const convertColonRule = (cssText, regExp, partReplacer) => {
138
+ // m[1] = :host(-context), m[2] = contents of (), m[3] rest of rule
139
+ return cssText.replace(regExp, (...m) => {
140
+ if (m[2]) {
141
+ const parts = m[2].split(',');
142
+ const r = [];
143
+ for (let i = 0; i < parts.length; i++) {
144
+ const p = parts[i].trim();
145
+ if (!p)
146
+ break;
147
+ r.push(partReplacer(_polyfillHostNoCombinator, p, m[3]));
148
+ }
149
+ return r.join(',');
150
+ }
151
+ else {
152
+ return _polyfillHostNoCombinator + m[3];
153
+ }
154
+ });
155
+ };
156
+ const colonHostPartReplacer = (host, part, suffix) => {
157
+ return host + part.replace(_polyfillHost, '') + suffix;
158
+ };
159
+ const convertColonHost = (cssText) => {
160
+ return convertColonRule(cssText, _cssColonHostRe, colonHostPartReplacer);
161
+ };
162
+ const colonHostContextPartReplacer = (host, part, suffix) => {
163
+ if (part.indexOf(_polyfillHost) > -1) {
164
+ return colonHostPartReplacer(host, part, suffix);
165
+ }
166
+ else {
167
+ return host + part + suffix + ', ' + part + ' ' + host + suffix;
168
+ }
169
+ };
170
+ const convertColonSlotted = (cssText, slotScopeId) => {
171
+ const slotClass = '.' + slotScopeId + ' > ';
172
+ const selectors = [];
173
+ cssText = cssText.replace(_cssColonSlottedRe, (...m) => {
174
+ if (m[2]) {
175
+ const compound = m[2].trim();
176
+ const suffix = m[3];
177
+ const slottedSelector = slotClass + compound + suffix;
178
+ let prefixSelector = '';
179
+ for (let i = m[4] - 1; i >= 0; i--) {
180
+ const char = m[5][i];
181
+ if (char === '}' || char === ',') {
182
+ break;
183
+ }
184
+ prefixSelector = char + prefixSelector;
185
+ }
186
+ const orgSelector = prefixSelector + slottedSelector;
187
+ const addedSelector = `${prefixSelector.trimRight()}${slottedSelector.trim()}`;
188
+ if (orgSelector.trim() !== addedSelector.trim()) {
189
+ const updatedSelector = `${addedSelector}, ${orgSelector}`;
190
+ selectors.push({
191
+ orgSelector,
192
+ updatedSelector,
193
+ });
194
+ }
195
+ return slottedSelector;
196
+ }
197
+ else {
198
+ return _polyfillHostNoCombinator + m[3];
199
+ }
200
+ });
201
+ return {
202
+ selectors,
203
+ cssText,
204
+ };
205
+ };
206
+ const convertColonHostContext = (cssText) => {
207
+ return convertColonRule(cssText, _cssColonHostContextRe, colonHostContextPartReplacer);
208
+ };
209
+ const convertShadowDOMSelectors = (cssText) => {
210
+ return _shadowDOMSelectorsRe.reduce((result, pattern) => result.replace(pattern, ' '), cssText);
211
+ };
212
+ const makeScopeMatcher = (scopeSelector) => {
213
+ const lre = /\[/g;
214
+ const rre = /\]/g;
215
+ scopeSelector = scopeSelector.replace(lre, '\\[').replace(rre, '\\]');
216
+ return new RegExp('^(' + scopeSelector + ')' + _selectorReSuffix, 'm');
217
+ };
218
+ const selectorNeedsScoping = (selector, scopeSelector) => {
219
+ const re = makeScopeMatcher(scopeSelector);
220
+ return !re.test(selector);
221
+ };
222
+ const applySimpleSelectorScope = (selector, scopeSelector, hostSelector) => {
223
+ // In Android browser, the lastIndex is not reset when the regex is used in String.replace()
224
+ _polyfillHostRe.lastIndex = 0;
225
+ if (_polyfillHostRe.test(selector)) {
226
+ const replaceBy = `.${hostSelector}`;
227
+ return selector
228
+ .replace(_polyfillHostNoCombinatorRe, (_, selector) => {
229
+ return selector.replace(/([^:]*)(:*)(.*)/, (_, before, colon, after) => {
230
+ return before + replaceBy + colon + after;
231
+ });
232
+ })
233
+ .replace(_polyfillHostRe, replaceBy + ' ');
234
+ }
235
+ return scopeSelector + ' ' + selector;
236
+ };
237
+ const applyStrictSelectorScope = (selector, scopeSelector, hostSelector) => {
238
+ const isRe = /\[is=([^\]]*)\]/g;
239
+ scopeSelector = scopeSelector.replace(isRe, (_, ...parts) => parts[0]);
240
+ const className = '.' + scopeSelector;
241
+ const _scopeSelectorPart = (p) => {
242
+ let scopedP = p.trim();
243
+ if (!scopedP) {
244
+ return '';
245
+ }
246
+ if (p.indexOf(_polyfillHostNoCombinator) > -1) {
247
+ scopedP = applySimpleSelectorScope(p, scopeSelector, hostSelector);
248
+ }
249
+ else {
250
+ // remove :host since it should be unnecessary
251
+ const t = p.replace(_polyfillHostRe, '');
252
+ if (t.length > 0) {
253
+ const matches = t.match(/([^:]*)(:*)(.*)/);
254
+ if (matches) {
255
+ scopedP = matches[1] + className + matches[2] + matches[3];
256
+ }
257
+ }
258
+ }
259
+ return scopedP;
260
+ };
261
+ const safeContent = safeSelector(selector);
262
+ selector = safeContent.content;
263
+ let scopedSelector = '';
264
+ let startIndex = 0;
265
+ let res;
266
+ const sep = /( |>|\+|~(?!=))\s*/g;
267
+ // If a selector appears before :host it should not be shimmed as it
268
+ // matches on ancestor elements and not on elements in the host's shadow
269
+ // `:host-context(div)` is transformed to
270
+ // `-shadowcsshost-no-combinatordiv, div -shadowcsshost-no-combinator`
271
+ // the `div` is not part of the component in the 2nd selectors and should not be scoped.
272
+ // Historically `component-tag:host` was matching the component so we also want to preserve
273
+ // this behavior to avoid breaking legacy apps (it should not match).
274
+ // The behavior should be:
275
+ // - `tag:host` -> `tag[h]` (this is to avoid breaking legacy apps, should not match anything)
276
+ // - `tag :host` -> `tag [h]` (`tag` is not scoped because it's considered part of a
277
+ // `:host-context(tag)`)
278
+ const hasHost = selector.indexOf(_polyfillHostNoCombinator) > -1;
279
+ // Only scope parts after the first `-shadowcsshost-no-combinator` when it is present
280
+ let shouldScope = !hasHost;
281
+ while ((res = sep.exec(selector)) !== null) {
282
+ const separator = res[1];
283
+ const part = selector.slice(startIndex, res.index).trim();
284
+ shouldScope = shouldScope || part.indexOf(_polyfillHostNoCombinator) > -1;
285
+ const scopedPart = shouldScope ? _scopeSelectorPart(part) : part;
286
+ scopedSelector += `${scopedPart} ${separator} `;
287
+ startIndex = sep.lastIndex;
288
+ }
289
+ const part = selector.substring(startIndex);
290
+ shouldScope = shouldScope || part.indexOf(_polyfillHostNoCombinator) > -1;
291
+ scopedSelector += shouldScope ? _scopeSelectorPart(part) : part;
292
+ // replace the placeholders with their original values
293
+ return restoreSafeSelector(safeContent.placeholders, scopedSelector);
294
+ };
295
+ const scopeSelector = (selector, scopeSelectorText, hostSelector, slotSelector) => {
296
+ return selector
297
+ .split(',')
298
+ .map(shallowPart => {
299
+ if (slotSelector && shallowPart.indexOf('.' + slotSelector) > -1) {
300
+ return shallowPart.trim();
301
+ }
302
+ if (selectorNeedsScoping(shallowPart, scopeSelectorText)) {
303
+ return applyStrictSelectorScope(shallowPart, scopeSelectorText, hostSelector).trim();
304
+ }
305
+ else {
306
+ return shallowPart.trim();
307
+ }
308
+ })
309
+ .join(', ');
310
+ };
311
+ const scopeSelectors = (cssText, scopeSelectorText, hostSelector, slotSelector, commentOriginalSelector) => {
312
+ return processRules(cssText, (rule) => {
313
+ let selector = rule.selector;
314
+ let content = rule.content;
315
+ if (rule.selector[0] !== '@') {
316
+ selector = scopeSelector(rule.selector, scopeSelectorText, hostSelector, slotSelector);
317
+ }
318
+ else if (rule.selector.startsWith('@media') || rule.selector.startsWith('@supports') || rule.selector.startsWith('@page') || rule.selector.startsWith('@document')) {
319
+ content = scopeSelectors(rule.content, scopeSelectorText, hostSelector, slotSelector);
320
+ }
321
+ const cssRule = {
322
+ selector: selector.replace(/\s{2,}/g, ' ').trim(),
323
+ content,
324
+ };
325
+ return cssRule;
326
+ });
327
+ };
328
+ const scopeCssText = (cssText, scopeId, hostScopeId, slotScopeId, commentOriginalSelector) => {
329
+ cssText = insertPolyfillHostInCssText(cssText);
330
+ cssText = convertColonHost(cssText);
331
+ cssText = convertColonHostContext(cssText);
332
+ const slotted = convertColonSlotted(cssText, slotScopeId);
333
+ cssText = slotted.cssText;
334
+ cssText = convertShadowDOMSelectors(cssText);
335
+ if (scopeId) {
336
+ cssText = scopeSelectors(cssText, scopeId, hostScopeId, slotScopeId);
337
+ }
338
+ cssText = cssText.replace(/-shadowcsshost-no-combinator/g, `.${hostScopeId}`);
339
+ cssText = cssText.replace(/>\s*\*\s+([^{, ]+)/gm, ' $1 ');
340
+ return {
341
+ cssText: cssText.trim(),
342
+ slottedSelectors: slotted.selectors,
343
+ };
344
+ };
345
+ const scopeCss = (cssText, scopeId, commentOriginalSelector) => {
346
+ const hostScopeId = scopeId + '-h';
347
+ const slotScopeId = scopeId + '-s';
348
+ const commentsWithHash = extractCommentsWithHash(cssText);
349
+ cssText = stripComments(cssText);
350
+ const orgSelectors = [];
351
+ if (commentOriginalSelector) {
352
+ const processCommentedSelector = (rule) => {
353
+ const placeholder = `/*!@___${orgSelectors.length}___*/`;
354
+ const comment = `/*!@${rule.selector}*/`;
355
+ orgSelectors.push({ placeholder, comment });
356
+ rule.selector = placeholder + rule.selector;
357
+ return rule;
358
+ };
359
+ cssText = processRules(cssText, rule => {
360
+ if (rule.selector[0] !== '@') {
361
+ return processCommentedSelector(rule);
362
+ }
363
+ else if (rule.selector.startsWith('@media') || rule.selector.startsWith('@supports') || rule.selector.startsWith('@page') || rule.selector.startsWith('@document')) {
364
+ rule.content = processRules(rule.content, processCommentedSelector);
365
+ return rule;
366
+ }
367
+ return rule;
368
+ });
369
+ }
370
+ const scoped = scopeCssText(cssText, scopeId, hostScopeId, slotScopeId);
371
+ cssText = [scoped.cssText, ...commentsWithHash].join('\n');
372
+ if (commentOriginalSelector) {
373
+ orgSelectors.forEach(({ placeholder, comment }) => {
374
+ cssText = cssText.replace(placeholder, comment);
375
+ });
376
+ }
377
+ scoped.slottedSelectors.forEach(slottedSelector => {
378
+ cssText = cssText.replace(slottedSelector.orgSelector, slottedSelector.updatedSelector);
379
+ });
380
+ return cssText;
381
+ };
382
+
383
+ export { scopeCss };
@@ -6,7 +6,7 @@ export declare class IconAsset {
6
6
  /**
7
7
  * Icon Size
8
8
  */
9
- size: 'small' | 'large';
9
+ size: 'small' | 'large' | 'xx-large';
10
10
  /**
11
11
  * Icon Type
12
12
  */
@@ -0,0 +1,27 @@
1
+ import { EventEmitter } from '../../stencil-public-runtime';
2
+ export declare class PtcAnnouncement {
3
+ /**
4
+ * Btn Text
5
+ */
6
+ btnText: string;
7
+ /**
8
+ * Mutable Visibility
9
+ */
10
+ visible: boolean;
11
+ /**
12
+ * Btn Link
13
+ */
14
+ btnLink: string;
15
+ /**
16
+ * Temp Container
17
+ * We plan to remove container in the future
18
+ */
19
+ tempContainer: boolean;
20
+ /**
21
+ * Close Event
22
+ */
23
+ close: EventEmitter;
24
+ render(): any;
25
+ private getCssClassMap;
26
+ private closeClick;
27
+ }
@@ -11,7 +11,7 @@ export declare class PtcButton {
11
11
  /**
12
12
  * Button theme color
13
13
  */
14
- color: 'offwhite' | 'blackgrey' | 'turtlegreen' | 'neon';
14
+ color: 'offwhite' | 'blackgrey' | 'turtlegreen' | 'neon' | 'legacy-green';
15
15
  /**
16
16
  * Icon Animation
17
17
  */
@@ -20,6 +20,18 @@ export declare class PtcButton {
20
20
  * Icon Position
21
21
  */
22
22
  iconPosition: 'icon-left' | 'icon-right';
23
+ /**
24
+ * Link URL (Optional)
25
+ */
26
+ linkHref?: string;
27
+ /**
28
+ * (optional) Link target
29
+ * */
30
+ target?: string;
31
+ /**
32
+ * (optional) Link rel
33
+ * */
34
+ rel?: string;
23
35
  /**
24
36
  * Emitted when the button has focus.
25
37
  */
@@ -10,7 +10,7 @@ export declare class PtcPara {
10
10
  /**
11
11
  * Paragraph Style
12
12
  **/
13
- paraStyle: 'default' | 'intro' | 'small';
13
+ paraStyle: 'default' | 'intro' | 'small' | 'announcement';
14
14
  /**
15
15
  * Paragraph Margin
16
16
  */
@@ -0,0 +1,4 @@
1
+ export declare class PtcSvgBtn {
2
+ svgName?: string;
3
+ render(): any;
4
+ }