@ptcwebops/ptcw-design 4.8.2 → 4.8.3

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 (40) hide show
  1. package/dist/cjs/icon-asset_10.cjs.entry.js +701 -0
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/ptc-breadcrumb.cjs.entry.js +1 -1
  4. package/dist/cjs/ptc-card_2.cjs.entry.js +45 -26
  5. package/dist/cjs/ptc-collapse-list.cjs.entry.js +10 -2
  6. package/dist/cjs/ptcw-design.cjs.js +1 -1
  7. package/dist/collection/components/icon-asset/icon-asset.js +1 -1
  8. package/dist/collection/components/ptc-breadcrumb/ptc-breadcrumb.css +3 -0
  9. package/dist/collection/components/ptc-collapse-list/ptc-collapse-list.js +64 -2
  10. package/dist/collection/components/ptc-preloader-section/ptc-preloader-section.css +376 -0
  11. package/dist/collection/components/ptc-preloader-section/ptc-preloader-section.js +2 -2
  12. package/dist/custom-elements/index.js +16 -8
  13. package/dist/esm/icon-asset_10.entry.js +688 -0
  14. package/dist/esm/loader.js +1 -1
  15. package/dist/esm/ptc-breadcrumb.entry.js +1 -1
  16. package/dist/esm/ptc-card_2.entry.js +45 -26
  17. package/dist/esm/ptc-collapse-list.entry.js +10 -2
  18. package/dist/esm/ptcw-design.js +1 -1
  19. package/dist/ptcw-design/p-4ff08e81.entry.js +1 -0
  20. package/dist/ptcw-design/p-6643b391.entry.js +1 -0
  21. package/dist/ptcw-design/{p-2bfcec0e.entry.js → p-6e29c162.entry.js} +1 -1
  22. package/dist/ptcw-design/p-9efb614a.entry.js +1 -0
  23. package/dist/ptcw-design/ptcw-design.esm.js +1 -1
  24. package/dist/types/components/ptc-collapse-list/ptc-collapse-list.d.ts +3 -0
  25. package/dist/types/components.d.ts +6 -0
  26. package/package.json +1 -1
  27. package/readme.md +1 -1
  28. package/dist/cjs/icon-asset_8.cjs.entry.js +0 -617
  29. package/dist/cjs/max-width-container.cjs.entry.js +0 -54
  30. package/dist/cjs/ptc-date.cjs.entry.js +0 -61
  31. package/dist/esm/icon-asset_8.entry.js +0 -606
  32. package/dist/esm/max-width-container.entry.js +0 -50
  33. package/dist/esm/ptc-date.entry.js +0 -57
  34. package/dist/ptcw-design/p-59df5cb3.entry.js +0 -1
  35. package/dist/ptcw-design/p-7c1508be.entry.js +0 -1
  36. package/dist/ptcw-design/p-d9ec506c.entry.js +0 -1
  37. package/dist/ptcw-design/p-dfddf449.entry.js +0 -1
  38. package/dist/ptcw-design/p-ef0079b0.entry.js +0 -1
  39. /package/dist/collection/components/icon-asset/media/{designer.svg → designer-v4.8.1.svg} +0 -0
  40. /package/dist/ptcw-design/media/{designer.svg → designer-v4.8.1.svg} +0 -0
@@ -1,54 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-63ddc79c.js');
6
-
7
- const maxWidthContainerCss = ":host{display:block}:host(.left){margin:auto auto auto 0}:host(.right){margin:auto 0 auto auto}:host(.center){margin:0 auto}";
8
-
9
- const MaxWidthContainer = class {
10
- constructor(hostRef) {
11
- index.registerInstance(this, hostRef);
12
- this.maxWidthP = undefined;
13
- this.maxWidth = undefined;
14
- this.breakpoint = 768;
15
- this.contentAlign = 'center';
16
- this.styles = undefined;
17
- }
18
- componentDidLoad() {
19
- this.handleResize();
20
- window.addEventListener('resize', this.handleResize.bind(this));
21
- }
22
- disconnectedCallback() {
23
- window.removeEventListener('resize', this.handleResize);
24
- }
25
- render() {
26
- const classMap = this.getCssClassMap();
27
- return (index.h(index.Host, { class: classMap }, this.styles && index.h("style", null, this.styles), index.h("slot", null)));
28
- }
29
- getCssClassMap() {
30
- return {
31
- [this.contentAlign]: true,
32
- };
33
- }
34
- handleResize() {
35
- // const selectedContainer = this.el.querySelector('.max-width-container');
36
- if (this.el) {
37
- if (window.innerWidth >= this.breakpoint) {
38
- if (this.maxWidthP) {
39
- this.el.style.maxWidth = `${this.maxWidthP}%`;
40
- }
41
- else {
42
- this.el.style.maxWidth = `${this.maxWidth}px`;
43
- }
44
- }
45
- else {
46
- this.el.style.maxWidth = 'initial';
47
- }
48
- }
49
- }
50
- get el() { return index.getElement(this); }
51
- };
52
- MaxWidthContainer.style = maxWidthContainerCss;
53
-
54
- exports.max_width_container = MaxWidthContainer;
@@ -1,61 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-63ddc79c.js');
6
-
7
- const ptcDateCss = "h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}:host{display:block}:host(.small) span{font-size:var(--ptc-font-size-xx-small)}:host(.medium) span{font-size:var(--ptc-font-size-x-small)}:host(.primary-grey){color:var(--color-primary-gray-new)}:host(.white) span{color:var(--color-white)}:host(.date-m-top){margin-top:var(--ptc-element-spacing-01)}";
8
-
9
- const PtcDate = class {
10
- constructor(hostRef) {
11
- index.registerInstance(this, hostRef);
12
- this.year = 1900;
13
- this.month = 0;
14
- this.day = 1;
15
- this.country = 'en-US';
16
- this.dateString = undefined;
17
- this.dateColor = undefined;
18
- this.dateStyles = undefined;
19
- this.dataSize = 'small';
20
- this.formatOptions = undefined;
21
- }
22
- render() {
23
- // const newDate = new Date(this.year, this.month, this.day);
24
- const classMap = this.getCssClassMap();
25
- return (index.h(index.Host, { class: classMap }, this.dateStyles && index.h("style", null, this.dateStyles), index.h("span", { part: "part-ptc-date" }, this.getDate().toLocaleDateString(this.country, this.getOptions()))));
26
- }
27
- getCssClassMap() {
28
- return {
29
- [this.dateColor]: !!this.dateColor ? true : false,
30
- [this.dataSize]: !!this.dataSize ? true : false,
31
- };
32
- }
33
- getOptions() {
34
- let result = { year: 'numeric', month: 'short', day: 'numeric' };
35
- if (this.formatOptions) {
36
- try {
37
- var json = JSON.parse(this.formatOptions);
38
- if (json) {
39
- result = json;
40
- }
41
- }
42
- catch (e) {
43
- //debugger
44
- console.log(e);
45
- }
46
- }
47
- return result;
48
- }
49
- getDate() {
50
- if (this.dateString) {
51
- let newDate = new Date(this.dateString.replace(/-/g, '/'));
52
- return newDate;
53
- }
54
- else {
55
- return new Date(this.year, this.month - 1, this.day);
56
- }
57
- }
58
- };
59
- PtcDate.style = ptcDateCss;
60
-
61
- exports.ptc_date = PtcDate;