@ptcwebops/ptcw-design 3.0.6 → 3.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.
Files changed (41) hide show
  1. package/dist/cjs/embedded-form_9.cjs.entry.js +2 -2
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/my-component.cjs.entry.js +1 -1
  4. package/dist/cjs/ptc-collapse-list.cjs.entry.js +1 -1
  5. package/dist/cjs/ptc-media-card.cjs.entry.js +1 -1
  6. package/dist/cjs/ptc-pricing-tabs.cjs.entry.js +1 -1
  7. package/dist/cjs/ptc-subnav-card.cjs.entry.js +2 -1
  8. package/dist/cjs/ptcw-design.cjs.js +1 -1
  9. package/dist/cjs/{utils-9eb22041.js → utils-303ff81a.js} +7 -9
  10. package/dist/collection/components/organism-bundles/form/embedded-form/embedded-form.js +1 -1
  11. package/dist/collection/components/ptc-form-checkbox/ptc-form-checkbox.css +4 -1
  12. package/dist/collection/components/subnav/ptc-subnav-card/ptc-subnav-card.js +19 -1
  13. package/dist/collection/utils/utils.js +12 -10
  14. package/dist/collection/utils/validation-messages.js +13 -0
  15. package/dist/custom-elements/index.js +12 -13
  16. package/dist/esm/embedded-form_9.entry.js +2 -2
  17. package/dist/esm/loader.js +1 -1
  18. package/dist/esm/my-component.entry.js +1 -1
  19. package/dist/esm/ptc-collapse-list.entry.js +1 -1
  20. package/dist/esm/ptc-media-card.entry.js +1 -1
  21. package/dist/esm/ptc-pricing-tabs.entry.js +1 -1
  22. package/dist/esm/ptc-subnav-card.entry.js +2 -1
  23. package/dist/esm/ptcw-design.js +1 -1
  24. package/dist/esm/{utils-38decc43.js → utils-73b84270.js} +7 -9
  25. package/dist/ptcw-design/{p-1aec473a.entry.js → p-0099a6fc.entry.js} +1 -1
  26. package/dist/ptcw-design/{p-b4547b7f.entry.js → p-1dfdbec1.entry.js} +1 -1
  27. package/dist/ptcw-design/{p-3aa32e28.entry.js → p-4d0920e7.entry.js} +1 -1
  28. package/dist/ptcw-design/p-b58991de.entry.js +1 -0
  29. package/dist/ptcw-design/{p-40a6e32d.entry.js → p-f5de345b.entry.js} +1 -1
  30. package/dist/ptcw-design/{p-ca29f7d6.entry.js → p-fcce68fb.entry.js} +2 -2
  31. package/dist/ptcw-design/ptcw-design.esm.js +1 -1
  32. package/dist/types/components/subnav/ptc-subnav-card/ptc-subnav-card.d.ts +4 -0
  33. package/dist/types/components.d.ts +8 -0
  34. package/dist/types/utils/utils.d.ts +1 -0
  35. package/dist/types/utils/validation-messages.d.ts +13 -0
  36. package/package.json +1 -1
  37. package/readme.md +1 -1
  38. package/dist/collection/utils/eloqua-tracking.js +0 -42
  39. package/dist/ptcw-design/p-03dd9737.entry.js +0 -1
  40. package/dist/types/utils/eloqua-tracking.d.ts +0 -36
  41. /package/dist/ptcw-design/{p-36665caa.js → p-17df5a0c.js} +0 -0
package/readme.md CHANGED
@@ -1,6 +1,6 @@
1
1
  ![Built With Stencil](https://img.shields.io/badge/-Built%20With%20Stencil-16161d.svg?logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE5LjIuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA1MTIgNTEyOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI%2BCjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI%2BCgkuc3Qwe2ZpbGw6I0ZGRkZGRjt9Cjwvc3R5bGU%2BCjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik00MjQuNywzNzMuOWMwLDM3LjYtNTUuMSw2OC42LTkyLjcsNjguNkgxODAuNGMtMzcuOSwwLTkyLjctMzAuNy05Mi43LTY4LjZ2LTMuNmgzMzYuOVYzNzMuOXoiLz4KPHBhdGggY2xhc3M9InN0MCIgZD0iTTQyNC43LDI5Mi4xSDE4MC40Yy0zNy42LDAtOTIuNy0zMS05Mi43LTY4LjZ2LTMuNkgzMzJjMzcuNiwwLDkyLjcsMzEsOTIuNyw2OC42VjI5Mi4xeiIvPgo8cGF0aCBjbGFzcz0ic3QwIiBkPSJNNDI0LjcsMTQxLjdIODcuN3YtMy42YzAtMzcuNiw1NC44LTY4LjYsOTIuNy02OC42SDMzMmMzNy45LDAsOTIuNywzMC43LDkyLjcsNjguNlYxNDEuN3oiLz4KPC9zdmc%2BCg%3D%3D&colorA=16161d&style=flat-square)
2
2
 
3
- # PTC Design 3.0.6
3
+ # PTC Design 3.0.7
4
4
 
5
5
  The site is the place for documentation on PTC Design System
6
6
 
@@ -1,42 +0,0 @@
1
- export const initEloquaTracking = (trackingSettings) => {
2
- var _elqQ = window._elqQ || [];
3
- window._elqQ = _elqQ;
4
- _elqQ.push(['elqSetSiteId', trackingSettings.setSiteId]);
5
- _elqQ.push(['elqTrackPageView']);
6
- const asyncLoad = () => {
7
- const scriptEl = document.createElement('script');
8
- scriptEl.type = 'text/javascript';
9
- scriptEl.async = true;
10
- scriptEl.src = '//img.en25.com/i/elqCfg.min.js';
11
- const firstScriptTag = document.getElementsByTagName('script')[0];
12
- firstScriptTag.parentNode.insertBefore(scriptEl, firstScriptTag);
13
- };
14
- // if (window.attachEvent) {
15
- // window.attachEvent('onload', asyncLoad);
16
- // } else {
17
- window.addEventListener('DOMContentLoaded', asyncLoad, false);
18
- // }
19
- };
20
- //Class that implements IVisitorElqIdStorage
21
- export class VisitorElqIdStorage {
22
- constructor() {
23
- this.visitorElqId = null;
24
- }
25
- storeVisitorElqId(urlVars) {
26
- console.log("INIT: Looking for visitor's Eloqua ID in URL...");
27
- if (typeof urlVars['elq'] === 'undefined') {
28
- this.visitorElqId = null;
29
- console.log('INIT: ...no visitor Eloqua ID found in URL');
30
- }
31
- else {
32
- let elqId = urlVars['elq'].toUpperCase();
33
- elqId = elqId.slice(0, 8) + '-' + elqId.slice(8, 12) + '-' + elqId.slice(12, 16) + '-' + elqId.slice(16, 20) + '-' + elqId.slice(20, 32);
34
- this.visitorElqId = elqId;
35
- console.log('INIT: ...visitor Eloqua ID found in URL: ' + elqId);
36
- }
37
- }
38
- //A method to retrieve the stored ID
39
- getVisitorElqId() {
40
- return this.visitorElqId;
41
- }
42
- }
@@ -1 +0,0 @@
1
- import{r as t,h as i,H as s}from"./p-00a1336a.js";const o=class{constructor(i){t(this,i),this.cardTitle=void 0,this.cardHref=void 0,this.cardImageSrc=void 0,this.cardImageAlt=void 0,this.ctaText=void 0,this.ctaIconAssetName=void 0}render(){return i(s,null,i(this.cardHref?"a":"div",Object.assign({},this.cardHref?{href:this.cardHref}:{}),i("h4",null,this.cardTitle),i("img",{src:this.cardImageSrc,alt:this.cardImageAlt}),i("slot",null),i("h4",{class:"cta"},this.ctaText,i("icon-asset",{type:"ptc",size:"x-small",name:this.ctaIconAssetName,color:"white"}))))}};o.style=":host{display:block;text-align:center;padding:0 var(--ptc-layout-spacing-02)}:host a{text-decoration:none}:host a:hover{text-decoration:none}:host h4{font-size:var(--ptc-font-size-x-small);font-weight:var(--ptc-font-weight-semibold);color:var(--color-white);margin:0}:host .cta icon-asset{margin-left:4px;vertical-align:middle}:host img{max-width:75px;margin:var(--ptc-layout-spacing-03) 0}";export{o as ptc_subnav_card}
@@ -1,36 +0,0 @@
1
- export interface InitialEloquaTracking {
2
- setSiteId: string;
3
- }
4
- export declare const initEloquaTracking: (trackingSettings: InitialEloquaTracking) => void;
5
- export interface IUserController {
6
- user_elq_email: string;
7
- user_elq_firstname: string;
8
- user_elq_lastname: string;
9
- fields_populated: boolean;
10
- }
11
- export interface IDefaults {
12
- elq_visitor_lookup_key: string;
13
- elq_contact_lookup_key: string;
14
- elq_subscription_lookup_key: string;
15
- elq_field_contact_email: string;
16
- elq_field_visitor_email: string;
17
- elq_field_contact_firstname: string;
18
- elq_field_contact_lastname: string;
19
- elq_field_contact_country: string;
20
- elq_field_contact_state: string;
21
- elq_field_email_rec_id: string;
22
- elq_field_customer_guid: string;
23
- elq_field_customer_look_key: string;
24
- elq_recipient_id_lookup_key: string;
25
- telInput: string;
26
- telInputNoValid: string;
27
- stateGroup: string;
28
- }
29
- export interface IVisitorElqIdStorage {
30
- storeVisitorElqId(urlVars: Record<string, string>): void;
31
- }
32
- export declare class VisitorElqIdStorage implements IVisitorElqIdStorage {
33
- private visitorElqId;
34
- storeVisitorElqId(urlVars: Record<string, string>): void;
35
- getVisitorElqId(): string | null;
36
- }