@ptcwebops/ptcw-design 6.3.21 → 6.3.22
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/cjs/global-92142fb4.js +28 -0
- package/dist/cjs/loader.cjs.js +2 -1
- package/dist/cjs/ptc-filter-dropdown_4.cjs.entry.js +40 -9
- package/dist/cjs/ptc-filter-level-theater.cjs.entry.js +18 -3
- package/dist/cjs/ptc-product-list.cjs.entry.js +4 -0
- package/dist/cjs/ptc-quote.cjs.entry.js +1 -1
- package/dist/cjs/ptc-theater-video-modal.cjs.entry.js +42 -8
- package/dist/cjs/ptcw-design.cjs.js +2 -1
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/ptc-filter-dropdown/ptc-filter-dropdown.css +12 -0
- package/dist/collection/components/ptc-filter-dropdown/ptc-filter-dropdown.js +29 -3
- package/dist/collection/components/ptc-filter-level-theater/ptc-filter-level-theater.css +28 -7
- package/dist/collection/components/ptc-filter-level-theater/ptc-filter-level-theater.js +17 -2
- package/dist/collection/components/ptc-product-list/ptc-product-list.js +4 -0
- package/dist/collection/components/ptc-quote/ptc-quote.js +1 -1
- package/dist/collection/components/ptc-theater-video/ptc-theater-video.css +6 -0
- package/dist/collection/components/ptc-theater-video/ptc-theater-video.js +1 -1
- package/dist/collection/components/ptc-theater-video-modal/ptc-theater-video-modal.css +15 -0
- package/dist/collection/components/ptc-theater-video-modal/ptc-theater-video-modal.js +67 -9
- package/dist/collection/components/ptc-theater-video-playlist/ptc-theater-video-playlist.js +8 -3
- package/dist/collection/global/global.js +3 -0
- package/dist/collection/stories/Jumbotron.stories.js +414 -450
- package/dist/collection/utils/fef-logger.js +23 -0
- package/dist/custom-elements/index.js +132 -22
- package/dist/esm/global-c58db4a9.js +26 -0
- package/dist/esm/loader.js +2 -1
- package/dist/esm/ptc-filter-dropdown_4.entry.js +40 -9
- package/dist/esm/ptc-filter-level-theater.entry.js +18 -3
- package/dist/esm/ptc-product-list.entry.js +4 -0
- package/dist/esm/ptc-quote.entry.js +1 -1
- package/dist/esm/ptc-theater-video-modal.entry.js +43 -9
- package/dist/esm/ptcw-design.js +2 -1
- package/dist/ptcw-design/p-02822616.entry.js +1 -0
- package/dist/ptcw-design/p-18851303.entry.js +1 -0
- package/dist/ptcw-design/p-1feb2812.entry.js +1 -0
- package/dist/ptcw-design/p-66ecd7b9.entry.js +1 -0
- package/dist/ptcw-design/p-a36f147a.js +1 -0
- package/dist/ptcw-design/ptcw-design.esm.js +1 -1
- package/dist/types/components/ptc-filter-dropdown/ptc-filter-dropdown.d.ts +2 -1
- package/dist/types/components/ptc-mobile-select/mobile-select/dist/mobile-select.d.ts +209 -0
- package/dist/types/components/ptc-theater-video-modal/ptc-theater-video-modal.d.ts +6 -1
- package/dist/types/components/ptc-theater-video-playlist/ptc-theater-video-playlist.d.ts +1 -1
- package/dist/types/components.d.ts +6 -1
- package/dist/types/global/global.d.ts +4 -0
- package/dist/types/utils/eloqua.d.ts +9 -0
- package/dist/types/utils/fef-logger.d.ts +10 -0
- package/package.json +1 -1
- package/readme.md +1 -1
- package/dist/ptcw-design/p-282b7d4e.entry.js +0 -1
- package/dist/ptcw-design/p-3ee2a531.entry.js +0 -1
- package/dist/ptcw-design/p-4d8f6f46.entry.js +0 -1
- package/dist/ptcw-design/p-7bdf1e64.entry.js +0 -1
|
@@ -1,137 +1,9 @@
|
|
|
1
1
|
import { html } from 'lit';
|
|
2
|
+
import { unsafeHTML } from 'lit/directives/unsafe-html.js';
|
|
2
3
|
|
|
3
4
|
export default {
|
|
4
5
|
title: 'Molecules/ptc-jumbotron',
|
|
5
6
|
tags: ['autodocs'],
|
|
6
|
-
// argTypes: {
|
|
7
|
-
// bgSrc: {
|
|
8
|
-
// control: 'text',
|
|
9
|
-
// description: 'Set this value when the jubmotron type is dark or light',
|
|
10
|
-
// defaultValue: { summary: '' },
|
|
11
|
-
// },
|
|
12
|
-
// bgVideoPosterSrc: {
|
|
13
|
-
// control: 'text',
|
|
14
|
-
// description: 'Set this value when you need a poster for the background video',
|
|
15
|
-
// defaultValue: { summary: '' },
|
|
16
|
-
// },
|
|
17
|
-
// bgVideoSrc: {
|
|
18
|
-
// control: 'text',
|
|
19
|
-
// description: 'Set this value when the jumbotron type is dark-video or light-video',
|
|
20
|
-
// defaultValue: { summary: '' },
|
|
21
|
-
// },
|
|
22
|
-
// blogAuthorImage: {
|
|
23
|
-
// control: 'text',
|
|
24
|
-
// description: 'Set this value when you need a blog author',
|
|
25
|
-
// defaultValue: { summary: "''" },
|
|
26
|
-
// },
|
|
27
|
-
// blogAuthorImageAlt: {
|
|
28
|
-
// control: 'text',
|
|
29
|
-
// description: 'Set this value when you need a blog author',
|
|
30
|
-
// defaultValue: { summary: "''" },
|
|
31
|
-
// },
|
|
32
|
-
// blogAuthorName: {
|
|
33
|
-
// control: 'text',
|
|
34
|
-
// description: 'Set this value when you need a blog author',
|
|
35
|
-
// defaultValue: { summary: "''" },
|
|
36
|
-
// },
|
|
37
|
-
// blogAuthorQueryHref: {
|
|
38
|
-
// control: 'text',
|
|
39
|
-
// description: 'Set this value when you need a blog author',
|
|
40
|
-
// defaultValue: { summary: "''" },
|
|
41
|
-
// },
|
|
42
|
-
// blogAuthorQueryTarget: {
|
|
43
|
-
// control: 'text',
|
|
44
|
-
// description: 'Set this value when you need a blog author',
|
|
45
|
-
// defaultValue: { summary: "''" },
|
|
46
|
-
// },
|
|
47
|
-
// buttonLocation: {
|
|
48
|
-
// control: 'text',
|
|
49
|
-
// description: 'Set the location of the play/pause button when the the background video is applied. Available values: top-left, top-right, bottom-left, bottom-right, allbp-bottom-right',
|
|
50
|
-
// defaultValue: { summary: 'undefined' },
|
|
51
|
-
// },
|
|
52
|
-
// buttonTabIndex: { control: 'number', description: 'Set button tab index for tab navigation, default value is 0', defaultValue: { summary: '0' } },
|
|
53
|
-
// defer: {
|
|
54
|
-
// control: 'boolean',
|
|
55
|
-
// description: 'delay loading of video to improve perfomance',
|
|
56
|
-
// defaultValue: { summary: 'undefined' },
|
|
57
|
-
// },
|
|
58
|
-
// gifSrc: {
|
|
59
|
-
// control: 'text',
|
|
60
|
-
// description: 'set this value when you need a gif on the right side',
|
|
61
|
-
// defaultValue: { summary: 'undefined' },
|
|
62
|
-
// },
|
|
63
|
-
// hasCountdown: {
|
|
64
|
-
// control: 'boolean',
|
|
65
|
-
// description: 'To add a countdown, trun this attribute on and add <ptc-countdown> after cta buttons',
|
|
66
|
-
// defaultValue: { summary: 'false' },
|
|
67
|
-
// },
|
|
68
|
-
// hasCtaSlot: {
|
|
69
|
-
// control: 'boolean',
|
|
70
|
-
// description: 'Checking if the cta slot is empty',
|
|
71
|
-
// defaultValue: { summary: 'undefined' },
|
|
72
|
-
// },
|
|
73
|
-
// hasPopupVideo: {
|
|
74
|
-
// control: 'boolean',
|
|
75
|
-
// description: 'Set this value to true when you need a pop up video on the right side, add ptc-svg-btn & ptc-modal for the play button and video',
|
|
76
|
-
// defaultValue: { summary: 'false' },
|
|
77
|
-
// },
|
|
78
|
-
// isHomepage: {
|
|
79
|
-
// control: 'boolean',
|
|
80
|
-
// description: 'Is it on a homepage?',
|
|
81
|
-
// defaultValue: { summary: 'false' },
|
|
82
|
-
// },
|
|
83
|
-
// isIframe: {
|
|
84
|
-
// control: 'boolean',
|
|
85
|
-
// description: '',
|
|
86
|
-
// defaultValue: { summary: 'false' },
|
|
87
|
-
// },
|
|
88
|
-
// isTransitioning: {
|
|
89
|
-
// control: 'boolean',
|
|
90
|
-
// description: '',
|
|
91
|
-
// defaultValue: { summary: 'undefined' },
|
|
92
|
-
// },
|
|
93
|
-
// jumbotronType: {
|
|
94
|
-
// control: 'text',
|
|
95
|
-
// description: 'jumbotron types. light, dark, light-video, dark-video, png, text, blog, gif',
|
|
96
|
-
// defaultValue: { summary: 'light' },
|
|
97
|
-
// },
|
|
98
|
-
// logo: {
|
|
99
|
-
// control: 'text',
|
|
100
|
-
// description: 'Optional - set a logo by adding an URL to this property',
|
|
101
|
-
// },
|
|
102
|
-
// pauseButtonTitle: {
|
|
103
|
-
// control: 'text',
|
|
104
|
-
// description: 'paly button text when bg-video-src has a value',
|
|
105
|
-
// defaultValue: { summary: 'undefined' },
|
|
106
|
-
// },
|
|
107
|
-
// playButtonTitle: {
|
|
108
|
-
// control: 'text',
|
|
109
|
-
// description: 'paly button text when bg-video-src has a value',
|
|
110
|
-
// defaultValue: { summary: 'undefined' },
|
|
111
|
-
// },
|
|
112
|
-
// pngImgStyles: {
|
|
113
|
-
// control: 'text',
|
|
114
|
-
// description: '',
|
|
115
|
-
// defaultValue: { summary: "''" },
|
|
116
|
-
// },
|
|
117
|
-
// pngSrc: {
|
|
118
|
-
// control: 'text',
|
|
119
|
-
// description: '',
|
|
120
|
-
// defaultValue: { summary: 'undefined' },
|
|
121
|
-
// },
|
|
122
|
-
// styles: {
|
|
123
|
-
// control: 'text',
|
|
124
|
-
// description: '(optional) Injected CSS styles',
|
|
125
|
-
// defaultValue: { summary: 'undefined' },
|
|
126
|
-
// },
|
|
127
|
-
// subTitle: {
|
|
128
|
-
// control: 'text',
|
|
129
|
-
// description: 'Set the sub title',
|
|
130
|
-
// defaultValue: {
|
|
131
|
-
// summary: 'Lorem Ipsum Dolor Sit Amet Consectetur Adipiscing Lorem Ipsum Dolor Sit Amet Consectetur Adipisci Lorem Ipsum Dolor Sit Amet',
|
|
132
|
-
// },
|
|
133
|
-
// },
|
|
134
|
-
// },
|
|
135
7
|
};
|
|
136
8
|
|
|
137
9
|
//Light jumbotron story
|
|
@@ -147,8 +19,19 @@ const LightJumbotronTemplate = args => {
|
|
|
147
19
|
play-button-title=${args.playButtonTitle}
|
|
148
20
|
pause-button-title=${args.pauseButtonTitle}
|
|
149
21
|
>
|
|
150
|
-
has-popup-video=${args.hasPopupVideo}
|
|
151
|
-
|
|
22
|
+
has-popup-video=${args.hasPopupVideo}> ${unsafeHTML(args.slotContent)}
|
|
23
|
+
</ptc-jumbotron>`;
|
|
24
|
+
};
|
|
25
|
+
export const Light = LightJumbotronTemplate.bind({});
|
|
26
|
+
Light.args = {
|
|
27
|
+
bgSrc:
|
|
28
|
+
'https://images.unsplash.com/photo-1675285972028-45dc2add07be?crop=entropy&cs=tinysrgb&fm=jpg&ixid=MnwzMjM4NDZ8MHwxfHJhbmRvbXx8fHx8fHx8fDE2Nzc3ODk2NTE&ixlib=rb-4.0.3&q=80',
|
|
29
|
+
jumbotronType: 'light',
|
|
30
|
+
hasCountdown: 'false',
|
|
31
|
+
logo: 'https://ptc-p-001.sitecorecontenthub.cloud/api/public/content/4699dab90e6f476b8a70902b58d7d3db?h=827&w=1550&la=en',
|
|
32
|
+
styles: 'undefined',
|
|
33
|
+
subTitle: 'totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo',
|
|
34
|
+
slotContent: `<ptc-breadcrumb slot="breadcrumb" color="primary-gray">
|
|
152
35
|
<list-item list-type="breadcrumb" link-href="https://www.ptc.com/contact-us" color="primary-gray"> PLM Video Hub </list-item>
|
|
153
36
|
<list-item list-type="breadcrumb" color="primary-gray"> Current Page </list-item>
|
|
154
37
|
</ptc-breadcrumb>
|
|
@@ -166,18 +49,7 @@ const LightJumbotronTemplate = args => {
|
|
|
166
49
|
Sed ut perspiciatis unde omnis iste natus
|
|
167
50
|
</ptc-title>
|
|
168
51
|
<ptc-button slot="j-cta" type="link" color="ptc-primary" link-href="https://www.ptc.com" target="_blank"> CTA 1 </ptc-button>
|
|
169
|
-
<ptc-button slot="j-cta" type="link" color="ptc-secondary" link-href="https://www.ptc.com" target="_blank"> CTA 2 </ptc-button
|
|
170
|
-
</ptc-jumbotron>`;
|
|
171
|
-
};
|
|
172
|
-
export const Light = LightJumbotronTemplate.bind({});
|
|
173
|
-
Light.args = {
|
|
174
|
-
bgSrc:
|
|
175
|
-
'https://images.unsplash.com/photo-1675285972028-45dc2add07be?crop=entropy&cs=tinysrgb&fm=jpg&ixid=MnwzMjM4NDZ8MHwxfHJhbmRvbXx8fHx8fHx8fDE2Nzc3ODk2NTE&ixlib=rb-4.0.3&q=80',
|
|
176
|
-
jumbotronType: 'light',
|
|
177
|
-
hasCountdown: 'false',
|
|
178
|
-
logo: 'https://ptc-p-001.sitecorecontenthub.cloud/api/public/content/4699dab90e6f476b8a70902b58d7d3db?h=827&w=1550&la=en',
|
|
179
|
-
styles: 'undefined',
|
|
180
|
-
subTitle: 'totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo',
|
|
52
|
+
<ptc-button slot="j-cta" type="link" color="ptc-secondary" link-href="https://www.ptc.com" target="_blank"> CTA 2 </ptc-button>`,
|
|
181
53
|
};
|
|
182
54
|
Light.argTypes = {
|
|
183
55
|
bgSrc: {
|
|
@@ -187,7 +59,12 @@ Light.argTypes = {
|
|
|
187
59
|
},
|
|
188
60
|
hasCountdown: {
|
|
189
61
|
control: 'boolean',
|
|
190
|
-
description:
|
|
62
|
+
description: `
|
|
63
|
+
To add a countdown, trun this attribute on and add <ptc-countdown> after cta buttons. Countdown slot code:
|
|
64
|
+
<ptc-countdown slot="countdown"
|
|
65
|
+
countdown-title="Boston Event"
|
|
66
|
+
event-time="2/19/2026 20:00:00">
|
|
67
|
+
</ptc-countdown>`,
|
|
191
68
|
defaultValue: { summary: 'false' },
|
|
192
69
|
},
|
|
193
70
|
jumbotronType: {
|
|
@@ -211,13 +88,37 @@ Light.argTypes = {
|
|
|
211
88
|
summary: 'Lorem Ipsum Dolor Sit Amet Consectetur Adipiscing Lorem Ipsum Dolor Sit Amet Consectetur Adipisci Lorem Ipsum Dolor Sit Amet',
|
|
212
89
|
},
|
|
213
90
|
},
|
|
91
|
+
slotContent: {
|
|
92
|
+
name: 'Default Slot',
|
|
93
|
+
description: 'Text Content between the <ptc-link> tags.',
|
|
94
|
+
control: 'text',
|
|
95
|
+
table: {
|
|
96
|
+
category: 'Default Slot',
|
|
97
|
+
type: {
|
|
98
|
+
summary: 'html',
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
|
+
},
|
|
214
102
|
};
|
|
215
103
|
|
|
216
104
|
//Dark jumbotron story
|
|
217
105
|
const DarkJumbotronTemplate = args => {
|
|
218
106
|
return html`<ptc-para>Set the breadcrumb, main title, cta buttons through correct slot names, please click "show code" for details.</ptc-para>
|
|
219
107
|
<ptc-jumbotron jumbotron-type=${args.jumbotronType} has-countdown=${args.hasCountdown} sub-title=${args.subTitle} bg-src=${args.bgSrc} logo=${args.logo}>
|
|
220
|
-
|
|
108
|
+
${unsafeHTML(args.slotContent)}
|
|
109
|
+
</ptc-jumbotron>`;
|
|
110
|
+
};
|
|
111
|
+
export const Dark = DarkJumbotronTemplate.bind({});
|
|
112
|
+
Dark.args = {
|
|
113
|
+
bgSrc:
|
|
114
|
+
'https://images.unsplash.com/photo-1675285972028-45dc2add07be?crop=entropy&cs=tinysrgb&fm=jpg&ixid=MnwzMjM4NDZ8MHwxfHJhbmRvbXx8fHx8fHx8fDE2Nzc3ODk2NTE&ixlib=rb-4.0.3&q=80',
|
|
115
|
+
hasCountdown: 'false',
|
|
116
|
+
jumbotronType: 'dark',
|
|
117
|
+
logo: '',
|
|
118
|
+
styles: 'undefined',
|
|
119
|
+
subTitle: 'totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo',
|
|
120
|
+
slotContent: `
|
|
121
|
+
<ptc-breadcrumb slot="breadcrumb" color="white">
|
|
221
122
|
<list-item list-type="breadcrumb" link-href="https://www.ptc.com/contact-us" color="primary-gray"> PLM Video Hub </list-item>
|
|
222
123
|
<list-item list-type="breadcrumb" color="primary-gray"> Current Page </list-item>
|
|
223
124
|
</ptc-breadcrumb>
|
|
@@ -235,17 +136,7 @@ const DarkJumbotronTemplate = args => {
|
|
|
235
136
|
</ptc-title>
|
|
236
137
|
<ptc-button slot="j-cta" type="link" color="ptc-primary" link-href="https://www.ptc.com" target="_blank"> CTA 1 </ptc-button>
|
|
237
138
|
<ptc-button slot="j-cta" type="link" color="ptc-secondary" link-href="https://www.ptc.com" target="_blank"> CTA 2 </ptc-button>
|
|
238
|
-
|
|
239
|
-
};
|
|
240
|
-
export const Dark = DarkJumbotronTemplate.bind({});
|
|
241
|
-
Dark.args = {
|
|
242
|
-
bgSrc:
|
|
243
|
-
'https://images.unsplash.com/photo-1675285972028-45dc2add07be?crop=entropy&cs=tinysrgb&fm=jpg&ixid=MnwzMjM4NDZ8MHwxfHJhbmRvbXx8fHx8fHx8fDE2Nzc3ODk2NTE&ixlib=rb-4.0.3&q=80',
|
|
244
|
-
hasCountdown: 'false',
|
|
245
|
-
jumbotronType: 'dark',
|
|
246
|
-
logo: '',
|
|
247
|
-
styles: 'undefined',
|
|
248
|
-
subTitle: 'totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo',
|
|
139
|
+
`,
|
|
249
140
|
};
|
|
250
141
|
Dark.argTypes = {
|
|
251
142
|
bgSrc: {
|
|
@@ -279,12 +170,30 @@ Dark.argTypes = {
|
|
|
279
170
|
summary: 'Lorem Ipsum Dolor Sit Amet Consectetur Adipiscing Lorem Ipsum Dolor Sit Amet Consectetur Adipisci Lorem Ipsum Dolor Sit Amet',
|
|
280
171
|
},
|
|
281
172
|
},
|
|
173
|
+
slotContent: {
|
|
174
|
+
name: 'Default Slot',
|
|
175
|
+
description: 'Text Content between the <ptc-link> tags.',
|
|
176
|
+
control: 'text',
|
|
177
|
+
table: {
|
|
178
|
+
category: 'Default Slot',
|
|
179
|
+
type: {
|
|
180
|
+
summary: 'html',
|
|
181
|
+
},
|
|
182
|
+
},
|
|
183
|
+
},
|
|
282
184
|
};
|
|
283
185
|
|
|
284
186
|
//Text jumbotron story
|
|
285
187
|
const TextJumbotronTemplate = args => {
|
|
286
|
-
return html` <ptc-jumbotron jumbotron-type=${args.jumbotronType} sub-title=${args.subTitle}>
|
|
287
|
-
|
|
188
|
+
return html` <ptc-jumbotron jumbotron-type=${args.jumbotronType} sub-title=${args.subTitle}> ${unsafeHTML(args.slotContent)} </ptc-jumbotron>`;
|
|
189
|
+
};
|
|
190
|
+
export const Text = TextJumbotronTemplate.bind({});
|
|
191
|
+
Text.args = {
|
|
192
|
+
jumbotronType: 'text',
|
|
193
|
+
styles: 'undefined',
|
|
194
|
+
subTitle: 'totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo',
|
|
195
|
+
slotContent: `
|
|
196
|
+
<ptc-breadcrumb slot="breadcrumb" color="primary-gray" position="center" styles=":host{margin-top: var(--ptc-element-spacing-06)!important;align-items: baseline;}">
|
|
288
197
|
<list-item list-type="breadcrumb" link-href="https://www.ptc.com/contact-us" color="primary-gray" styles=":host(.breadcrumb) li{text-transform: uppercase;}">
|
|
289
198
|
PLM TEst
|
|
290
199
|
</list-item>
|
|
@@ -306,13 +215,7 @@ const TextJumbotronTemplate = args => {
|
|
|
306
215
|
</ptc-title>
|
|
307
216
|
<ptc-button slot="j-cta" type="link" color="ptc-primary" link-href="https://www.ptc.com" target="_blank"> CTA 1 </ptc-button>
|
|
308
217
|
<ptc-button slot="j-cta" type="link" color="ptc-secondary" link-href="https://www.ptc.com" target="_blank"> CTA 2 </ptc-button>
|
|
309
|
-
|
|
310
|
-
};
|
|
311
|
-
export const Text = TextJumbotronTemplate.bind({});
|
|
312
|
-
Text.args = {
|
|
313
|
-
jumbotronType: 'text',
|
|
314
|
-
styles: 'undefined',
|
|
315
|
-
subTitle: 'totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo',
|
|
218
|
+
`,
|
|
316
219
|
};
|
|
317
220
|
Text.argTypes = {
|
|
318
221
|
subTitle: {
|
|
@@ -332,6 +235,17 @@ Text.argTypes = {
|
|
|
332
235
|
description: '(optional) Injected CSS styles',
|
|
333
236
|
defaultValue: { summary: 'undefined' },
|
|
334
237
|
},
|
|
238
|
+
slotContent: {
|
|
239
|
+
name: 'Default Slot',
|
|
240
|
+
description: 'Text Content between the <ptc-link> tags.',
|
|
241
|
+
control: 'text',
|
|
242
|
+
table: {
|
|
243
|
+
category: 'Default Slot',
|
|
244
|
+
type: {
|
|
245
|
+
summary: 'html',
|
|
246
|
+
},
|
|
247
|
+
},
|
|
248
|
+
},
|
|
335
249
|
};
|
|
336
250
|
|
|
337
251
|
// Dark Video jumbotron story
|
|
@@ -343,7 +257,22 @@ const VideoJumbotronTemplate = args => {
|
|
|
343
257
|
play-button-title=${args.playButtonTitle}
|
|
344
258
|
pause-button-title=${args.pauseButtonTitle}
|
|
345
259
|
>
|
|
346
|
-
|
|
260
|
+
${unsafeHTML(args.slotContent)}
|
|
261
|
+
</ptc-jumbotron>`;
|
|
262
|
+
};
|
|
263
|
+
export const DarkVideo = VideoJumbotronTemplate.bind({});
|
|
264
|
+
DarkVideo.args = {
|
|
265
|
+
bgVideoPosterSrc: 'undefined',
|
|
266
|
+
bgVideoSrc: 'https://www.ptc.com/-/media/Videos/wind-turbine.mp4',
|
|
267
|
+
buttonLocation: 'undefined',
|
|
268
|
+
buttonTabIndex: '0',
|
|
269
|
+
jumbotronType: 'dark-video',
|
|
270
|
+
pauseButtonTitle: 'pause text',
|
|
271
|
+
playButtonTitle: 'play text',
|
|
272
|
+
styles: 'undefined',
|
|
273
|
+
subTitle: 'totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo',
|
|
274
|
+
slotContent: `
|
|
275
|
+
<ptc-breadcrumb slot="breadcrumb" color="white" is-dark-mode>
|
|
347
276
|
<list-item list-type="breadcrumb" link-href="https://www.ptc.com/contact-us" color="light-gray"> PLM Video Hub </list-item>
|
|
348
277
|
<list-item list-type="breadcrumb" color="light-gray"> Current Page </list-item>
|
|
349
278
|
</ptc-breadcrumb>
|
|
@@ -361,65 +290,62 @@ const VideoJumbotronTemplate = args => {
|
|
|
361
290
|
</ptc-title>
|
|
362
291
|
<ptc-button slot="j-cta" type="link" color="ptc-secondary" link-href="https://www.ptc.com" target="_blank" dark-focus-state> CTA 1 </ptc-button>
|
|
363
292
|
<ptc-button slot="j-cta" type="link" color="ptc-secondary" link-href="https://www.ptc.com" target="_blank" dark-focus-state> CTA 2 </ptc-button>
|
|
364
|
-
|
|
365
|
-
};
|
|
366
|
-
export const DarkVideo = VideoJumbotronTemplate.bind({});
|
|
367
|
-
DarkVideo.args = {
|
|
368
|
-
bgVideoPosterSrc: 'undefined',
|
|
369
|
-
bgVideoSrc: 'https://www.ptc.com/-/media/Videos/wind-turbine.mp4',
|
|
370
|
-
buttonLocation: 'undefined',
|
|
371
|
-
buttonTabIndex: '0',
|
|
372
|
-
jumbotronType: 'dark-video',
|
|
373
|
-
pauseButtonTitle: 'pause text',
|
|
374
|
-
playButtonTitle: 'play text',
|
|
375
|
-
styles: 'undefined',
|
|
376
|
-
subTitle: 'totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo',
|
|
293
|
+
`,
|
|
377
294
|
};
|
|
378
295
|
DarkVideo.argTypes = {
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
buttonTabIndex: { control: 'number', description: 'Set button tab index for tab navigation, default value is 0', defaultValue: { summary: '0' } },
|
|
296
|
+
bgVideoPosterSrc: {
|
|
297
|
+
control: 'text',
|
|
298
|
+
description: 'Set this value when you need a poster for the background video',
|
|
299
|
+
defaultValue: { summary: '' },
|
|
300
|
+
},
|
|
301
|
+
bgVideoSrc: {
|
|
302
|
+
control: 'text',
|
|
303
|
+
description: 'Set this value when the jumbotron type is dark-video or light-video',
|
|
304
|
+
defaultValue: { summary: '' },
|
|
305
|
+
},
|
|
306
|
+
buttonLocation: {
|
|
307
|
+
control: 'text',
|
|
308
|
+
description:
|
|
309
|
+
'Set the location of the play/pause button when the the background video is applied. Available values: top-left, top-right, bottom-left, bottom-right, allbp-bottom-right',
|
|
310
|
+
defaultValue: { summary: 'undefined' },
|
|
311
|
+
},
|
|
312
|
+
buttonTabIndex: { control: 'number', description: 'Set button tab index for tab navigation, default value is 0', defaultValue: { summary: '0' } },
|
|
397
313
|
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
314
|
+
jumbotronType: {
|
|
315
|
+
control: 'text',
|
|
316
|
+
description: 'jumbotron types. light, dark, light-video, dark-video, png, text, blog, gif',
|
|
317
|
+
defaultValue: { summary: 'light' },
|
|
318
|
+
},
|
|
319
|
+
pauseButtonTitle: {
|
|
320
|
+
control: 'text',
|
|
321
|
+
description: 'paly button text when bg-video-src has a value',
|
|
322
|
+
defaultValue: { summary: 'undefined' },
|
|
323
|
+
},
|
|
324
|
+
playButtonTitle: {
|
|
325
|
+
control: 'text',
|
|
326
|
+
description: 'paly button text when bg-video-src has a value',
|
|
327
|
+
defaultValue: { summary: 'undefined' },
|
|
328
|
+
},
|
|
329
|
+
styles: {
|
|
330
|
+
control: 'text',
|
|
331
|
+
description: '(optional) Injected CSS styles',
|
|
332
|
+
defaultValue: { summary: 'undefined' },
|
|
333
|
+
},
|
|
334
|
+
subTitle: {
|
|
335
|
+
control: 'text',
|
|
336
|
+
description: 'Set the sub title',
|
|
337
|
+
defaultValue: {
|
|
338
|
+
summary: 'Lorem Ipsum Dolor Sit Amet Consectetur Adipiscing Lorem Ipsum Dolor Sit Amet Consectetur Adipisci Lorem Ipsum Dolor Sit Amet',
|
|
417
339
|
},
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
340
|
+
},
|
|
341
|
+
slotContent: {
|
|
342
|
+
name: 'Default Slot',
|
|
343
|
+
description: 'Text Content between the <ptc-link> tags.',
|
|
344
|
+
control: 'text',
|
|
345
|
+
table: {
|
|
346
|
+
category: 'Default Slot',
|
|
347
|
+
type: {
|
|
348
|
+
summary: 'html',
|
|
423
349
|
},
|
|
424
350
|
},
|
|
425
351
|
},
|
|
@@ -434,7 +360,22 @@ const LVideoJumbotronTemplate = args => {
|
|
|
434
360
|
play-button-title=${args.playButtonTitle}
|
|
435
361
|
pause-button-title=${args.pauseButtonTitle}
|
|
436
362
|
>
|
|
437
|
-
|
|
363
|
+
${unsafeHTML(args.slotContent)}
|
|
364
|
+
</ptc-jumbotron>`;
|
|
365
|
+
};
|
|
366
|
+
export const LightVideo = LVideoJumbotronTemplate.bind({});
|
|
367
|
+
LightVideo.args = {
|
|
368
|
+
bgVideoPosterSrc: 'undefined',
|
|
369
|
+
bgVideoSrc: 'https://www.ptc.com/-/media/Videos/wind-turbine.mp4',
|
|
370
|
+
buttonLocation: 'undefined',
|
|
371
|
+
buttonTabIndex: '0',
|
|
372
|
+
jumbotronType: 'light-video',
|
|
373
|
+
pauseButtonTitle: 'pause text',
|
|
374
|
+
playButtonTitle: 'play text',
|
|
375
|
+
styles: 'undefined',
|
|
376
|
+
subTitle: 'totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo',
|
|
377
|
+
slotContent: `
|
|
378
|
+
<ptc-breadcrumb slot="breadcrumb" color="primary-gray" is-dark-mode>
|
|
438
379
|
<list-item list-type="breadcrumb" link-href="https://www.ptc.com/contact-us" color="primary-gray"> PLM Video Hub </list-item>
|
|
439
380
|
<list-item list-type="breadcrumb" color="primary-gray"> Current Page </list-item>
|
|
440
381
|
</ptc-breadcrumb>
|
|
@@ -452,65 +393,62 @@ const LVideoJumbotronTemplate = args => {
|
|
|
452
393
|
</ptc-title>
|
|
453
394
|
<ptc-button slot="j-cta" type="link" color="ptc-secondary" link-href="https://www.ptc.com" target="_blank" dark-focus-state> CTA 1 </ptc-button>
|
|
454
395
|
<ptc-button slot="j-cta" type="link" color="ptc-secondary" link-href="https://www.ptc.com" target="_blank" dark-focus-state> CTA 2 </ptc-button>
|
|
455
|
-
|
|
456
|
-
};
|
|
457
|
-
export const LightVideo = LVideoJumbotronTemplate.bind({});
|
|
458
|
-
LightVideo.args = {
|
|
459
|
-
bgVideoPosterSrc: 'undefined',
|
|
460
|
-
bgVideoSrc: 'https://www.ptc.com/-/media/Videos/wind-turbine.mp4',
|
|
461
|
-
buttonLocation: 'undefined',
|
|
462
|
-
buttonTabIndex: '0',
|
|
463
|
-
jumbotronType: 'light-video',
|
|
464
|
-
pauseButtonTitle: 'pause text',
|
|
465
|
-
playButtonTitle: 'play text',
|
|
466
|
-
styles: 'undefined',
|
|
467
|
-
subTitle: 'totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo',
|
|
396
|
+
`,
|
|
468
397
|
};
|
|
469
398
|
LightVideo.argTypes = {
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
buttonTabIndex: { control: 'number', description: 'Set button tab index for tab navigation, default value is 0', defaultValue: { summary: '0' } },
|
|
399
|
+
bgVideoPosterSrc: {
|
|
400
|
+
control: 'text',
|
|
401
|
+
description: 'Set this value when you need a poster for the background video',
|
|
402
|
+
defaultValue: { summary: '' },
|
|
403
|
+
},
|
|
404
|
+
bgVideoSrc: {
|
|
405
|
+
control: 'text',
|
|
406
|
+
description: 'Set this value when the jumbotron type is dark-video or light-video',
|
|
407
|
+
defaultValue: { summary: '' },
|
|
408
|
+
},
|
|
409
|
+
buttonLocation: {
|
|
410
|
+
control: 'text',
|
|
411
|
+
description:
|
|
412
|
+
'Set the location of the play/pause button when the the background video is applied. Available values: top-left, top-right, bottom-left, bottom-right, allbp-bottom-right',
|
|
413
|
+
defaultValue: { summary: 'undefined' },
|
|
414
|
+
},
|
|
415
|
+
buttonTabIndex: { control: 'number', description: 'Set button tab index for tab navigation, default value is 0', defaultValue: { summary: '0' } },
|
|
488
416
|
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
417
|
+
jumbotronType: {
|
|
418
|
+
control: 'text',
|
|
419
|
+
description: 'jumbotron types. light, dark, light-video, dark-video, png, text, blog, gif',
|
|
420
|
+
defaultValue: { summary: 'light' },
|
|
421
|
+
},
|
|
422
|
+
pauseButtonTitle: {
|
|
423
|
+
control: 'text',
|
|
424
|
+
description: 'paly button text when bg-video-src has a value',
|
|
425
|
+
defaultValue: { summary: 'undefined' },
|
|
426
|
+
},
|
|
427
|
+
playButtonTitle: {
|
|
428
|
+
control: 'text',
|
|
429
|
+
description: 'paly button text when bg-video-src has a value',
|
|
430
|
+
defaultValue: { summary: 'undefined' },
|
|
431
|
+
},
|
|
432
|
+
styles: {
|
|
433
|
+
control: 'text',
|
|
434
|
+
description: '(optional) Injected CSS styles',
|
|
435
|
+
defaultValue: { summary: 'undefined' },
|
|
436
|
+
},
|
|
437
|
+
subTitle: {
|
|
438
|
+
control: 'text',
|
|
439
|
+
description: 'Set the sub title',
|
|
440
|
+
defaultValue: {
|
|
441
|
+
summary: 'Lorem Ipsum Dolor Sit Amet Consectetur Adipiscing Lorem Ipsum Dolor Sit Amet Consectetur Adipisci Lorem Ipsum Dolor Sit Amet',
|
|
508
442
|
},
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
443
|
+
},
|
|
444
|
+
slotContent: {
|
|
445
|
+
name: 'Default Slot',
|
|
446
|
+
description: 'Text Content between the <ptc-link> tags.',
|
|
447
|
+
control: 'text',
|
|
448
|
+
table: {
|
|
449
|
+
category: 'Default Slot',
|
|
450
|
+
type: {
|
|
451
|
+
summary: 'html',
|
|
514
452
|
},
|
|
515
453
|
},
|
|
516
454
|
},
|
|
@@ -528,8 +466,24 @@ const BlogJumbotronTemplate = args => {
|
|
|
528
466
|
blog-author-name=${args.blogAuthorName}
|
|
529
467
|
blog-author-query-href=${args.blogAuthorQueryHref}
|
|
530
468
|
blog-author-query-target=${args.blogAuthorQueryTarget}
|
|
531
|
-
|
|
532
|
-
|
|
469
|
+
>
|
|
470
|
+
${unsafeHTML(args.slotContent)}
|
|
471
|
+
</ptc-jumbotron>`;
|
|
472
|
+
};
|
|
473
|
+
export const BlogVideo = BlogJumbotronTemplate.bind({});
|
|
474
|
+
BlogVideo.args = {
|
|
475
|
+
pngSrc: 'https://ptc-p-001.sitecorecontenthub.cloud/api/public/content/5fbb90c52ab7431c89df5eea5ef9fe25?v=6e1b1318',
|
|
476
|
+
buttonLocation: 'undefined',
|
|
477
|
+
buttonTabIndex: '0',
|
|
478
|
+
jumbotronType: 'blog',
|
|
479
|
+
blogAuthorImage: 'https://www.ptc.com/-/media/Images/blog/Authors/MaleDefaultImage.jpg',
|
|
480
|
+
blogAuthorImageAlt: 'blog-author-image',
|
|
481
|
+
blogAuthorName: 'Simone Biles',
|
|
482
|
+
blogAuthorQueryHref: 'https://www.ptc.com/blogs',
|
|
483
|
+
blogAuthorQueryTarget: '_blank',
|
|
484
|
+
styles: 'undefined',
|
|
485
|
+
slotContent: `
|
|
486
|
+
<ptc-breadcrumb slot="breadcrumb" color="primary-gray" remove-top-margin="true">
|
|
533
487
|
<list-item list-type="breadcrumb" link-href="https://www-dev.ptc.com/blogs" color="primary-gray">Blogs</list-item>
|
|
534
488
|
<list-item list-type="breadcrumb" color="primary-gray">The Key to Using AI to Enhance IoT Security</list-item>
|
|
535
489
|
</ptc-breadcrumb>
|
|
@@ -553,211 +507,221 @@ const BlogJumbotronTemplate = args => {
|
|
|
553
507
|
<ptc-button slot="j-cta" type="link" color="ptc-tertiary" link-href="https://www.ptc.com" target="_blank">
|
|
554
508
|
Speaking of Service Podcast
|
|
555
509
|
</ptc-button>
|
|
556
|
-
|
|
557
|
-
};
|
|
558
|
-
export const BlogVideo = BlogJumbotronTemplate.bind({});
|
|
559
|
-
BlogVideo.args = {
|
|
560
|
-
pngSrc: 'https://ptc-p-001.sitecorecontenthub.cloud/api/public/content/5fbb90c52ab7431c89df5eea5ef9fe25?v=6e1b1318',
|
|
561
|
-
buttonLocation: 'undefined',
|
|
562
|
-
buttonTabIndex: '0',
|
|
563
|
-
jumbotronType: 'blog',
|
|
564
|
-
blogAuthorImage: 'https://www.ptc.com/-/media/Images/blog/Authors/MaleDefaultImage.jpg',
|
|
565
|
-
blogAuthorImageAlt: 'blog-author-image',
|
|
566
|
-
blogAuthorName: 'Simone Biles',
|
|
567
|
-
blogAuthorQueryHref: 'https://www.ptc.com/blogs',
|
|
568
|
-
blogAuthorQueryTarget: '_blank',
|
|
569
|
-
styles: 'undefined',
|
|
510
|
+
`
|
|
570
511
|
};
|
|
571
512
|
BlogVideo.argTypes = {
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
buttonTabIndex: { control: 'number', description: 'Set button tab index for tab navigation, default value is 0', defaultValue: { summary: '0' } },
|
|
513
|
+
pngSrc: {
|
|
514
|
+
control: 'text',
|
|
515
|
+
description: '',
|
|
516
|
+
defaultValue: { summary: 'undefined' },
|
|
517
|
+
},
|
|
518
|
+
blogAuthorImage: {
|
|
519
|
+
control: 'text',
|
|
520
|
+
description: 'Set this value when you need a blog author',
|
|
521
|
+
defaultValue: { summary: "''" },
|
|
522
|
+
},
|
|
523
|
+
blogAuthorImageAlt: {
|
|
524
|
+
control: 'text',
|
|
525
|
+
description: 'Set this value when you need a blog author',
|
|
526
|
+
defaultValue: { summary: "''" },
|
|
527
|
+
},
|
|
528
|
+
blogAuthorName: {
|
|
529
|
+
control: 'text',
|
|
530
|
+
description: 'Set this value when you need a blog author',
|
|
531
|
+
defaultValue: { summary: "''" },
|
|
532
|
+
},
|
|
533
|
+
blogAuthorQueryHref: {
|
|
534
|
+
control: 'text',
|
|
535
|
+
description: 'Set this value when you need a blog author',
|
|
536
|
+
defaultValue: { summary: "''" },
|
|
537
|
+
},
|
|
538
|
+
blogAuthorQueryTarget: {
|
|
539
|
+
control: 'text',
|
|
540
|
+
description: 'Set this value when you need a blog author',
|
|
541
|
+
defaultValue: { summary: "''" },
|
|
542
|
+
},
|
|
543
|
+
buttonLocation: {
|
|
544
|
+
control: 'text',
|
|
545
|
+
description:
|
|
546
|
+
'Set the location of the play/pause button when the the background video is applied. Available values: top-left, top-right, bottom-left, bottom-right, allbp-bottom-right',
|
|
547
|
+
defaultValue: { summary: 'undefined' },
|
|
548
|
+
},
|
|
549
|
+
buttonTabIndex: { control: 'number', description: 'Set button tab index for tab navigation, default value is 0', defaultValue: { summary: '0' } },
|
|
610
550
|
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
551
|
+
jumbotronType: {
|
|
552
|
+
control: 'text',
|
|
553
|
+
description: 'jumbotron types. light, dark, light-video, dark-video, png, text, blog, gif',
|
|
554
|
+
defaultValue: { summary: 'light' },
|
|
555
|
+
},
|
|
556
|
+
styles: {
|
|
557
|
+
control: 'text',
|
|
558
|
+
description: '(optional) Injected CSS styles',
|
|
559
|
+
defaultValue: { summary: 'undefined' },
|
|
560
|
+
},
|
|
561
|
+
slotContent: {
|
|
562
|
+
name: 'Default Slot',
|
|
563
|
+
description: 'Text Content between the <ptc-link> tags.',
|
|
564
|
+
control: 'text',
|
|
565
|
+
table: {
|
|
566
|
+
category: 'Default Slot',
|
|
567
|
+
type: {
|
|
568
|
+
summary: 'html',
|
|
569
|
+
},
|
|
620
570
|
},
|
|
621
571
|
},
|
|
622
572
|
};
|
|
623
573
|
|
|
624
574
|
// Popup Video jumbotron story
|
|
625
575
|
const PopupJumbotronTemplate = args => {
|
|
626
|
-
return html`
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
}
|
|
576
|
+
return html` <style>
|
|
577
|
+
ptc-svg-btn {
|
|
578
|
+
position: absolute;
|
|
579
|
+
left: 50%;
|
|
580
|
+
top: 0%;
|
|
581
|
+
transform: translate(-50%, -200%);
|
|
582
|
+
}
|
|
634
583
|
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
}
|
|
584
|
+
@media screen and (min-width: 480px) {
|
|
585
|
+
ptc-svg-btn {
|
|
586
|
+
transform: translate(-50%, -260%);
|
|
639
587
|
}
|
|
588
|
+
}
|
|
640
589
|
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
}
|
|
590
|
+
@media screen and (min-width: 550px) {
|
|
591
|
+
ptc-svg-btn {
|
|
592
|
+
transform: translate(-50%, -235%);
|
|
645
593
|
}
|
|
594
|
+
}
|
|
646
595
|
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
}
|
|
596
|
+
@media screen and (min-width: 768px) {
|
|
597
|
+
ptc-svg-btn {
|
|
598
|
+
transform: translate(-50%, -306%);
|
|
651
599
|
}
|
|
600
|
+
}
|
|
652
601
|
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
}
|
|
602
|
+
@media screen and (min-width: 992px) {
|
|
603
|
+
ptc-svg-btn {
|
|
604
|
+
top: 50%;
|
|
605
|
+
left: 75%;
|
|
606
|
+
transform: translate(-50%, -50%);
|
|
659
607
|
}
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
jumbotron-type=${args.jumbotronType}
|
|
663
|
-
|
|
664
|
-
bg-src=${args.bgSrc}
|
|
665
|
-
has-popup-video=${args.hasPopupVideo}
|
|
666
|
-
>
|
|
667
|
-
<ptc-breadcrumb slot="breadcrumb" color="white" is-dark-mode>
|
|
668
|
-
<list-item list-type="breadcrumb" link-href="https://www.ptc.com/contact-us" color="light-gray">
|
|
669
|
-
PLM Video Hub
|
|
670
|
-
</list-item>
|
|
671
|
-
<list-item list-type="breadcrumb" color="light-gray">
|
|
672
|
-
Current Page
|
|
673
|
-
</list-item>
|
|
674
|
-
</ptc-breadcrumb>
|
|
675
|
-
<ptc-title slot="main-title" type="h1" upperline="no-upperline" title-size="xxxx-large" title-height="densest"
|
|
676
|
-
title-weight="w-8" title-margin="margin-flush" text-align="left" title-color="gray-1"
|
|
677
|
-
ellipsis-line-cutoff="3">
|
|
678
|
-
<ptc-tooltip text-lines="3" description="Sed ut perspiciatis unde omnis iste natus"
|
|
679
|
-
position="right"></ptc-tooltip>
|
|
680
|
-
</ptc-title>
|
|
681
|
-
<ptc-button slot="j-cta" type="link" color="ptc-primary" link-href="https://www.ptc.com" dark-focus-state target="_blank">
|
|
682
|
-
CTA 1
|
|
683
|
-
</ptc-button>
|
|
684
|
-
<ptc-button slot="j-cta" type="link" color="ptc-secondary" link-href="https://www.ptc.com" dark-focus-state target="_blank">
|
|
685
|
-
CTA 2
|
|
686
|
-
</ptc-button>
|
|
687
|
-
<ptc-svg-btn id="j-modal-btn" slot="video" svg-name="play" display="block" z-index="2"></ptc-svg-btn>
|
|
688
|
-
<ptc-modal id="popup-modal" slot="video" show="false" size="xl" fixed styles=".overlay{backdrop-filter: blur(10px);}" close-on-blur="true">
|
|
689
|
-
<div class="is-grid has-col-6 has-col-12-xs has-col-gap-lg has-row-gap-md has-m has-p has-col-gap-lg">
|
|
690
|
-
<div class="is-col-6 is-col-12-xs grid-order-1-md">
|
|
691
|
-
<div style="position: relative;">
|
|
692
|
-
<div style="padding-top: 56.25%;">
|
|
693
|
-
<video-js id="bcPlayer" data-account="1532789042001" data-player="dNyUv9zZ6"
|
|
694
|
-
data-embed="default" data-video-id="6307196876112" controls="" data-application-id=""
|
|
695
|
-
class="vjs-fill" style="top:0; position:absolute;">
|
|
696
|
-
</video-js>
|
|
697
|
-
</div>
|
|
698
|
-
<script src="//players.brightcove.net/1532789042001/dNyUv9zZ6_default/index.min.js">
|
|
699
|
-
</script>
|
|
700
|
-
</div>
|
|
701
|
-
</div>
|
|
702
|
-
</div>
|
|
703
|
-
</ptc-modal>
|
|
608
|
+
}
|
|
609
|
+
</style>
|
|
610
|
+
<ptc-jumbotron jumbotron-type=${args.jumbotronType} sub-title=${args.subTitle} bg-src=${args.bgSrc} has-popup-video=${args.hasPopupVideo}>
|
|
611
|
+
${unsafeHTML(args.slotContent)}
|
|
704
612
|
</ptc-jumbotron>
|
|
705
613
|
<!-- for popup video -->
|
|
706
614
|
<script>
|
|
707
|
-
|
|
708
|
-
|
|
615
|
+
let videoBtn = document.querySelector('#j-modal-btn');
|
|
616
|
+
let modal = document.querySelector('#popup-modal');
|
|
709
617
|
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
618
|
+
if (videoBtn && modal) {
|
|
619
|
+
videoBtn.addEventListener('click', function () {
|
|
620
|
+
modal.show = true;
|
|
621
|
+
});
|
|
622
|
+
videojs.getPlayer('bcPlayer').ready(function () {
|
|
623
|
+
var bcPlayer = this;
|
|
624
|
+
modal.addEventListener('closed', function () {
|
|
625
|
+
bcPlayer.pause();
|
|
626
|
+
});
|
|
627
|
+
});
|
|
628
|
+
}
|
|
721
629
|
</script>`;
|
|
722
630
|
};
|
|
723
631
|
export const PopupVideo = PopupJumbotronTemplate.bind({});
|
|
724
632
|
PopupVideo.args = {
|
|
725
|
-
bgSrc:
|
|
633
|
+
bgSrc:
|
|
634
|
+
'https://images.unsplash.com/photo-1675285972028-45dc2add07be?crop=entropy&cs=tinysrgb&fm=jpg&ixid=MnwzMjM4NDZ8MHwxfHJhbmRvbXx8fHx8fHx8fDE2Nzc3ODk2NTE&ixlib=rb-4.0.3&q=80',
|
|
726
635
|
buttonTabIndex: '0',
|
|
727
636
|
jumbotronType: 'dark',
|
|
728
637
|
hasPopupVideo: true,
|
|
729
638
|
styles: 'undefined',
|
|
730
639
|
subTitle: 'totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo',
|
|
640
|
+
slotContent: `
|
|
641
|
+
<ptc-breadcrumb slot="breadcrumb" color="white" is-dark-mode>
|
|
642
|
+
<list-item list-type="breadcrumb" link-href="https://www.ptc.com/contact-us" color="light-gray"> PLM Video Hub </list-item>
|
|
643
|
+
<list-item list-type="breadcrumb" color="light-gray"> Current Page </list-item>
|
|
644
|
+
</ptc-breadcrumb>
|
|
645
|
+
<ptc-title
|
|
646
|
+
slot="main-title"
|
|
647
|
+
type="h1"
|
|
648
|
+
upperline="no-upperline"
|
|
649
|
+
title-size="xxxx-large"
|
|
650
|
+
title-height="densest"
|
|
651
|
+
title-weight="w-8"
|
|
652
|
+
title-margin="margin-flush"
|
|
653
|
+
text-align="left"
|
|
654
|
+
title-color="gray-1"
|
|
655
|
+
ellipsis-line-cutoff="3"
|
|
656
|
+
>
|
|
657
|
+
<ptc-tooltip text-lines="3" description="Sed ut perspiciatis unde omnis iste natus" position="right"></ptc-tooltip>
|
|
658
|
+
</ptc-title>
|
|
659
|
+
<ptc-button slot="j-cta" type="link" color="ptc-primary" link-href="https://www.ptc.com" dark-focus-state target="_blank"> CTA 1 </ptc-button>
|
|
660
|
+
<ptc-button slot="j-cta" type="link" color="ptc-secondary" link-href="https://www.ptc.com" dark-focus-state target="_blank"> CTA 2 </ptc-button>
|
|
661
|
+
<ptc-svg-btn id="j-modal-btn" slot="video" svg-name="play" display="block" z-index="2"></ptc-svg-btn>
|
|
662
|
+
<ptc-modal id="popup-modal" slot="video" show="false" size="xl" fixed styles=".overlay{backdrop-filter: blur(10px);}" close-on-blur="true">
|
|
663
|
+
<div class="is-grid has-col-6 has-col-12-xs has-col-gap-lg has-row-gap-md has-m has-p has-col-gap-lg">
|
|
664
|
+
<div class="is-col-6 is-col-12-xs grid-order-1-md">
|
|
665
|
+
<div style="position: relative;">
|
|
666
|
+
<div style="padding-top: 56.25%;">
|
|
667
|
+
<video-js
|
|
668
|
+
id="bcPlayer"
|
|
669
|
+
data-account="1532789042001"
|
|
670
|
+
data-player="dNyUv9zZ6"
|
|
671
|
+
data-embed="default"
|
|
672
|
+
data-video-id="6307196876112"
|
|
673
|
+
controls=""
|
|
674
|
+
data-application-id=""
|
|
675
|
+
class="vjs-fill"
|
|
676
|
+
style="top:0; position:absolute;"
|
|
677
|
+
>
|
|
678
|
+
</video-js>
|
|
679
|
+
</div>
|
|
680
|
+
<script src="//players.brightcove.net/1532789042001/dNyUv9zZ6_default/index.min.js"></script>
|
|
681
|
+
</div>
|
|
682
|
+
</div>
|
|
683
|
+
</div>
|
|
684
|
+
</ptc-modal>
|
|
685
|
+
`
|
|
731
686
|
};
|
|
732
687
|
PopupVideo.argTypes = {
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
688
|
+
bgSrc: {
|
|
689
|
+
control: 'text',
|
|
690
|
+
description: 'Set this value when the jubmotron type is dark or light',
|
|
691
|
+
defaultValue: { summary: '' },
|
|
692
|
+
},
|
|
693
|
+
buttonTabIndex: { control: 'number', description: 'Set button tab index for tab navigation, default value is 0', defaultValue: { summary: '0' } },
|
|
694
|
+
jumbotronType: {
|
|
695
|
+
control: 'text',
|
|
696
|
+
description: 'jumbotron types. light, dark, light-video, dark-video, png, text, blog, gif',
|
|
697
|
+
defaultValue: { summary: 'light' },
|
|
698
|
+
},
|
|
699
|
+
hasPopupVideo: {
|
|
700
|
+
control: 'boolean',
|
|
701
|
+
description: 'Set this value to true when you need a pop up video on the right side, add ptc-svg-btn & ptc-modal for the play button and video',
|
|
702
|
+
defaultValue: { summary: 'false' },
|
|
703
|
+
},
|
|
704
|
+
subTitle: {
|
|
705
|
+
control: 'text',
|
|
706
|
+
description: 'Set the sub title',
|
|
707
|
+
defaultValue: {
|
|
708
|
+
summary: 'Lorem Ipsum Dolor Sit Amet Consectetur Adipiscing Lorem Ipsum Dolor Sit Amet Consectetur Adipisci Lorem Ipsum Dolor Sit Amet',
|
|
749
709
|
},
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
710
|
+
},
|
|
711
|
+
styles: {
|
|
712
|
+
control: 'text',
|
|
713
|
+
description: '(optional) Injected CSS styles',
|
|
714
|
+
defaultValue: { summary: 'undefined' },
|
|
715
|
+
},
|
|
716
|
+
slotContent: {
|
|
717
|
+
name: 'Default Slot',
|
|
718
|
+
description: 'Text Content between the <ptc-link> tags.',
|
|
719
|
+
control: 'text',
|
|
720
|
+
table: {
|
|
721
|
+
category: 'Default Slot',
|
|
722
|
+
type: {
|
|
723
|
+
summary: 'html',
|
|
755
724
|
},
|
|
756
725
|
},
|
|
757
|
-
styles: {
|
|
758
|
-
control: 'text',
|
|
759
|
-
description: '(optional) Injected CSS styles',
|
|
760
|
-
defaultValue: { summary: 'undefined' },
|
|
761
|
-
},
|
|
762
726
|
},
|
|
763
727
|
};
|