@ptcwebops/ptcw-design 6.3.36-beta → 6.3.37-beta
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/collection/components/ptc-textfield/ptc-textfield.js +18 -18
- package/dist/collection/stories/Card.stories.js +3 -148
- package/dist/collection/stories/Jumbotron.stories.js +368 -0
- package/dist/collection/stories/Select.stories.js +5 -8
- package/dist/collection/stories/Textfield.stories.js +71 -28
- package/dist/ptcw-design/ptcw-design.css +1 -1
- package/dist/types/components/ptc-textfield/ptc-textfield.d.ts +54 -0
- package/dist/types/components.d.ts +108 -0
- package/package.json +1 -1
- package/readme.md +1 -1
|
@@ -283,7 +283,7 @@ export class PtcTextfield {
|
|
|
283
283
|
"optional": false,
|
|
284
284
|
"docs": {
|
|
285
285
|
"tags": [],
|
|
286
|
-
"text": ""
|
|
286
|
+
"text": "ID"
|
|
287
287
|
},
|
|
288
288
|
"attribute": "field-id",
|
|
289
289
|
"reflect": false
|
|
@@ -300,7 +300,7 @@ export class PtcTextfield {
|
|
|
300
300
|
"optional": false,
|
|
301
301
|
"docs": {
|
|
302
302
|
"tags": [],
|
|
303
|
-
"text": ""
|
|
303
|
+
"text": "text, button, email, file and etc. This value triggers different validation"
|
|
304
304
|
},
|
|
305
305
|
"attribute": "type",
|
|
306
306
|
"reflect": false,
|
|
@@ -318,7 +318,7 @@ export class PtcTextfield {
|
|
|
318
318
|
"optional": false,
|
|
319
319
|
"docs": {
|
|
320
320
|
"tags": [],
|
|
321
|
-
"text": ""
|
|
321
|
+
"text": "Is this a mandatory field?"
|
|
322
322
|
},
|
|
323
323
|
"attribute": "required",
|
|
324
324
|
"reflect": false,
|
|
@@ -336,7 +336,7 @@ export class PtcTextfield {
|
|
|
336
336
|
"optional": true,
|
|
337
337
|
"docs": {
|
|
338
338
|
"tags": [],
|
|
339
|
-
"text": ""
|
|
339
|
+
"text": "Text counter limit"
|
|
340
340
|
},
|
|
341
341
|
"attribute": "ptc-max-length",
|
|
342
342
|
"reflect": false
|
|
@@ -353,7 +353,7 @@ export class PtcTextfield {
|
|
|
353
353
|
"optional": false,
|
|
354
354
|
"docs": {
|
|
355
355
|
"tags": [],
|
|
356
|
-
"text": ""
|
|
356
|
+
"text": "Label Text"
|
|
357
357
|
},
|
|
358
358
|
"attribute": "label-text",
|
|
359
359
|
"reflect": false,
|
|
@@ -371,7 +371,7 @@ export class PtcTextfield {
|
|
|
371
371
|
"optional": false,
|
|
372
372
|
"docs": {
|
|
373
373
|
"tags": [],
|
|
374
|
-
"text": ""
|
|
374
|
+
"text": "Validation text (red)"
|
|
375
375
|
},
|
|
376
376
|
"attribute": "helpertext",
|
|
377
377
|
"reflect": false,
|
|
@@ -389,7 +389,7 @@ export class PtcTextfield {
|
|
|
389
389
|
"optional": false,
|
|
390
390
|
"docs": {
|
|
391
391
|
"tags": [],
|
|
392
|
-
"text": ""
|
|
392
|
+
"text": "Info Text (black)"
|
|
393
393
|
},
|
|
394
394
|
"attribute": "info-text",
|
|
395
395
|
"reflect": false
|
|
@@ -406,7 +406,7 @@ export class PtcTextfield {
|
|
|
406
406
|
"optional": false,
|
|
407
407
|
"docs": {
|
|
408
408
|
"tags": [],
|
|
409
|
-
"text": ""
|
|
409
|
+
"text": "Alert Text"
|
|
410
410
|
},
|
|
411
411
|
"attribute": "alert-text",
|
|
412
412
|
"reflect": false
|
|
@@ -423,7 +423,7 @@ export class PtcTextfield {
|
|
|
423
423
|
"optional": false,
|
|
424
424
|
"docs": {
|
|
425
425
|
"tags": [],
|
|
426
|
-
"text": ""
|
|
426
|
+
"text": "Alert Text Content"
|
|
427
427
|
},
|
|
428
428
|
"attribute": "alert-text-content",
|
|
429
429
|
"reflect": false
|
|
@@ -440,7 +440,7 @@ export class PtcTextfield {
|
|
|
440
440
|
"optional": false,
|
|
441
441
|
"docs": {
|
|
442
442
|
"tags": [],
|
|
443
|
-
"text": ""
|
|
443
|
+
"text": "Disable the field"
|
|
444
444
|
},
|
|
445
445
|
"attribute": "disabled",
|
|
446
446
|
"reflect": false,
|
|
@@ -458,7 +458,7 @@ export class PtcTextfield {
|
|
|
458
458
|
"optional": false,
|
|
459
459
|
"docs": {
|
|
460
460
|
"tags": [],
|
|
461
|
-
"text": ""
|
|
461
|
+
"text": "input \"name\" value. e.g.: 'phone', 'email', 'firstname', 'lastname'"
|
|
462
462
|
},
|
|
463
463
|
"attribute": "field-name",
|
|
464
464
|
"reflect": false,
|
|
@@ -476,7 +476,7 @@ export class PtcTextfield {
|
|
|
476
476
|
"optional": false,
|
|
477
477
|
"docs": {
|
|
478
478
|
"tags": [],
|
|
479
|
-
"text": ""
|
|
479
|
+
"text": "Eloqua Data Name (for the eloqua)"
|
|
480
480
|
},
|
|
481
481
|
"attribute": "ptc-data-eloqua-name",
|
|
482
482
|
"reflect": false
|
|
@@ -493,7 +493,7 @@ export class PtcTextfield {
|
|
|
493
493
|
"optional": false,
|
|
494
494
|
"docs": {
|
|
495
495
|
"tags": [],
|
|
496
|
-
"text": ""
|
|
496
|
+
"text": "Eloqua Target Data Name (for the eloqua)"
|
|
497
497
|
},
|
|
498
498
|
"attribute": "ptc-data-target-eloqua-name",
|
|
499
499
|
"reflect": false
|
|
@@ -532,7 +532,7 @@ export class PtcTextfield {
|
|
|
532
532
|
"optional": false,
|
|
533
533
|
"docs": {
|
|
534
534
|
"tags": [],
|
|
535
|
-
"text": ""
|
|
535
|
+
"text": "Custom Validation - String"
|
|
536
536
|
}
|
|
537
537
|
},
|
|
538
538
|
"ignoreBlindSubmit": {
|
|
@@ -547,7 +547,7 @@ export class PtcTextfield {
|
|
|
547
547
|
"optional": false,
|
|
548
548
|
"docs": {
|
|
549
549
|
"tags": [],
|
|
550
|
-
"text": ""
|
|
550
|
+
"text": "Ignore Blind Submit?"
|
|
551
551
|
},
|
|
552
552
|
"attribute": "ignore-blind-submit",
|
|
553
553
|
"reflect": false,
|
|
@@ -565,7 +565,7 @@ export class PtcTextfield {
|
|
|
565
565
|
"optional": false,
|
|
566
566
|
"docs": {
|
|
567
567
|
"tags": [],
|
|
568
|
-
"text": ""
|
|
568
|
+
"text": "Place holder Text"
|
|
569
569
|
},
|
|
570
570
|
"attribute": "placeholder-text",
|
|
571
571
|
"reflect": false
|
|
@@ -582,7 +582,7 @@ export class PtcTextfield {
|
|
|
582
582
|
"optional": false,
|
|
583
583
|
"docs": {
|
|
584
584
|
"tags": [],
|
|
585
|
-
"text": ""
|
|
585
|
+
"text": "Inject styles for customization"
|
|
586
586
|
},
|
|
587
587
|
"attribute": "styles",
|
|
588
588
|
"reflect": false
|
|
@@ -599,7 +599,7 @@ export class PtcTextfield {
|
|
|
599
599
|
"optional": false,
|
|
600
600
|
"docs": {
|
|
601
601
|
"tags": [],
|
|
602
|
-
"text": ""
|
|
602
|
+
"text": "Text Field Form"
|
|
603
603
|
},
|
|
604
604
|
"attribute": "textfield-form",
|
|
605
605
|
"reflect": false,
|
|
@@ -14,42 +14,17 @@ export default {
|
|
|
14
14
|
description: 'Card Link URL (Optional)',
|
|
15
15
|
defaultValue: { summary: 'undefined' }
|
|
16
16
|
},
|
|
17
|
-
// cardLogo: {
|
|
18
|
-
// control: '',
|
|
19
|
-
// description: 'Card Logo',
|
|
20
|
-
// defaultValue: { summary: 'undefined' }
|
|
21
|
-
// },
|
|
22
17
|
cardType: {
|
|
23
18
|
control: 'select',
|
|
24
19
|
options: ["hightlight-card", "horizontal-card", "listing-card"],
|
|
25
20
|
description: 'Card Type Specify Card Type, default to simple card',
|
|
26
21
|
defaultValue: { summary: 'custom-card' }
|
|
27
22
|
},
|
|
28
|
-
// country: {
|
|
29
|
-
// control: 'text',
|
|
30
|
-
// description: 'Card Date',
|
|
31
|
-
// defaultValue: { summary: 'undefined' }
|
|
32
|
-
// },
|
|
33
|
-
// eventType: {
|
|
34
|
-
// control: '',
|
|
35
|
-
// description: 'Event Type',
|
|
36
|
-
// defaultValue: { summary: 'undefined' }
|
|
37
|
-
// },
|
|
38
23
|
hasImage: {
|
|
39
24
|
control: 'boolean',
|
|
40
25
|
description: 'If this card has Image',
|
|
41
26
|
defaultValue: { summary: 'false' }
|
|
42
27
|
},
|
|
43
|
-
// hasLottie: {
|
|
44
|
-
// control: '',
|
|
45
|
-
// description: 'If this card has Lottie Image',
|
|
46
|
-
// defaultValue: { summary: 'false' }
|
|
47
|
-
// },
|
|
48
|
-
// hasVideo: {
|
|
49
|
-
// control: '',
|
|
50
|
-
// description: 'If this card has Video',
|
|
51
|
-
// defaultValue: { summary: 'false' }
|
|
52
|
-
// },
|
|
53
28
|
heading: {
|
|
54
29
|
control: 'text',
|
|
55
30
|
description: 'Card heading',
|
|
@@ -61,144 +36,24 @@ export default {
|
|
|
61
36
|
description: 'Card heading text transform',
|
|
62
37
|
defaultValue: { summary: 'none' }
|
|
63
38
|
},
|
|
64
|
-
// rel: {
|
|
65
|
-
// control: '',
|
|
66
|
-
// description: '(optional) Link card rel',
|
|
67
|
-
// defaultValue: { summary: 'undefined' }
|
|
68
|
-
// },
|
|
69
39
|
ribbonText: {
|
|
70
40
|
control: 'text',
|
|
71
41
|
description: 'Ribbon will show on listing card if this field has any value',
|
|
72
42
|
defaultValue: { summary: 'undefined' }
|
|
73
43
|
},
|
|
74
|
-
// styles: {
|
|
75
|
-
// control: '',
|
|
76
|
-
// description: '(optional) Injected CSS styles',
|
|
77
|
-
// defaultValue: { summary: 'undefined' }
|
|
78
|
-
// },
|
|
79
44
|
target: {
|
|
80
45
|
control: '',
|
|
81
46
|
description: '(optional) Link card target',
|
|
82
47
|
defaultValue: { summary: '_self' }
|
|
83
48
|
},
|
|
84
|
-
// titleLineCutOff: {
|
|
85
|
-
// control: 'number',
|
|
86
|
-
// description: 'Title Line Cut off',
|
|
87
|
-
// defaultValue: { summary: 'undefined' }
|
|
88
|
-
// }
|
|
89
49
|
}
|
|
90
50
|
};
|
|
91
51
|
|
|
92
|
-
// const Template = args => { return html `<ptc-card
|
|
93
|
-
// card-date=${args.cardDate}
|
|
94
|
-
// card-href=${args.cardHref}
|
|
95
|
-
// card-logo=${args.cardLogo}
|
|
96
|
-
// card-type=${args.cardType}
|
|
97
|
-
// country=${args.country}
|
|
98
|
-
// event-type=${args.eventType}
|
|
99
|
-
// has-image=${args.hasImage}
|
|
100
|
-
// has-lottie=${args.hasLottie}
|
|
101
|
-
// has-video=${args.hasVideo}
|
|
102
|
-
// heading=${args.heading}
|
|
103
|
-
// heading-transform=${args.headingTransform}
|
|
104
|
-
// rel=${args.rel}
|
|
105
|
-
// ribbon-text=${args.ribbonText}
|
|
106
|
-
// styles=${args.styles}
|
|
107
|
-
// target=${args.target}
|
|
108
|
-
// title-line-cut-off=${args.titleLineCutOff}
|
|
109
|
-
// ></ptc-card>`;}
|
|
110
|
-
|
|
111
|
-
// Example.args = {
|
|
112
|
-
// cardDate: 'undefined',
|
|
113
|
-
// cardHref: 'undefined',
|
|
114
|
-
// cardLogo: 'undefined',
|
|
115
|
-
// cardType: 'custom-card',
|
|
116
|
-
// country: 'undefined',
|
|
117
|
-
// eventType: 'undefined',
|
|
118
|
-
// hasImage: 'false',
|
|
119
|
-
// hasLottie: 'false',
|
|
120
|
-
// hasVideo: 'false',
|
|
121
|
-
// heading: 'undefined',
|
|
122
|
-
// headingTransform: 'none',
|
|
123
|
-
// rel: 'undefined',
|
|
124
|
-
// ribbonText: 'undefined',
|
|
125
|
-
// styles: 'undefined',
|
|
126
|
-
// target: '_self',
|
|
127
|
-
// titleLineCutOff: 'undefined',
|
|
128
|
-
// }
|
|
129
|
-
|
|
130
|
-
// ** Highlight Card **
|
|
131
|
-
|
|
132
|
-
const HighlightCardTemplate = args => { return html `
|
|
133
|
-
<div class="is-grid">
|
|
134
|
-
<div class="is-col-8">
|
|
135
|
-
<ptc-card
|
|
136
|
-
card-date=${args.cardDate}
|
|
137
|
-
card-href=${args.cardHref}
|
|
138
|
-
card-type=${args.cardType}
|
|
139
|
-
has-image=${args.hasImage}
|
|
140
|
-
heading=${args.heading}
|
|
141
|
-
heading-transform=${args.headingTransform}
|
|
142
|
-
target=${args.target}
|
|
143
|
-
>
|
|
144
|
-
<ptc-img slot="slot-image" img-url="http://s7d1.scene7.com/is/image/ptcinc/cs-boeing-planes-runway" size-xs="600x450" size-sm="600x450" size-md="1108x658" size-lg="1108x658" image-type="smart-img" load-mode="lazy-bg"></ptc-img>
|
|
145
|
-
<ptc-span slot="slot-before-heading" styles="::part(part-ptc-span){font-size:18px!important}" span-style="tag-style" display="block">Augmented Reality</ptc-span>
|
|
146
|
-
<div slot="slot-description">
|
|
147
|
-
<ptc-para font-size="xx-small" font-weight="w-6" para-line-h="line-height-dense">
|
|
148
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing. Lorem ipsum dolor sit amet, consectetur adipiscing. Lorem ipsum dolor sit amet, consectetur adipiscing.
|
|
149
|
-
</ptc-para>
|
|
150
|
-
</div>
|
|
151
|
-
</ptc-card>
|
|
152
|
-
</div>
|
|
153
|
-
</div>
|
|
154
|
-
`;}
|
|
155
|
-
|
|
156
|
-
export const HighlightCard = HighlightCardTemplate.bind({});
|
|
157
|
-
|
|
158
|
-
HighlightCard.args = {
|
|
159
|
-
cardDate: '2022-1-2',
|
|
160
|
-
cardHref: 'http://www.ptc.com',
|
|
161
|
-
cardType: 'hightlight-card',
|
|
162
|
-
hasImage: true,
|
|
163
|
-
heading: 'Lorem ipsum dolor sit amet, consectetur adipiscing',
|
|
164
|
-
headingTransform: 'none',
|
|
165
|
-
target: '_blank',
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
// ** Horizontal Card **
|
|
169
|
-
|
|
170
|
-
const HorizontalCardTemplate = args => { return html `
|
|
171
|
-
<ptc-card
|
|
172
|
-
card-href=${args.cardHref}
|
|
173
|
-
card-type=${args.cardType}
|
|
174
|
-
has-image=${args.hasImage}
|
|
175
|
-
heading=${args.heading}
|
|
176
|
-
heading-transform=${args.headingTransform}
|
|
177
|
-
target=${args.target}
|
|
178
|
-
>
|
|
179
|
-
<ptc-picture slot="slot-image" alt="image-test" is-full-width="true" src="https://www.ptc.com/-/media/Images/new-org/510x340/PLM/BOM-Management.jpg"></ptc-picture>
|
|
180
|
-
<div class="" slot="slot-description">
|
|
181
|
-
<ptc-para font-size="xx-small" para-line-h="line-height-dense" para-margin="margin-flush">Get full digital associativity across engineering, supply chain, manufacturing, sales, and service.</ptc-para>
|
|
182
|
-
</div>
|
|
183
|
-
</ptc-card>
|
|
184
|
-
`; }
|
|
185
|
-
|
|
186
|
-
export const HorizontalCard = HorizontalCardTemplate.bind({});
|
|
187
|
-
|
|
188
|
-
HorizontalCard.args = {
|
|
189
|
-
cardHref: 'https://www.ptc.com/en/technologies/plm/bill-of-materials',
|
|
190
|
-
cardType: 'horizontal-card',
|
|
191
|
-
hasImage: true,
|
|
192
|
-
heading: 'BOM management',
|
|
193
|
-
headingTransform: 'none',
|
|
194
|
-
target: '_blank',
|
|
195
|
-
}
|
|
196
|
-
|
|
197
52
|
// ** Listing Card **
|
|
198
53
|
|
|
199
54
|
const ListingCardTemplate = args => { return html `
|
|
200
55
|
<div class="is-grid">
|
|
201
|
-
<div class="is-col-
|
|
56
|
+
<div class="is-col-4">
|
|
202
57
|
<ptc-card
|
|
203
58
|
card-date=${args.cardDate}
|
|
204
59
|
card-href=${args.cardHref}
|
|
@@ -211,7 +66,7 @@ const ListingCardTemplate = args => { return html `
|
|
|
211
66
|
>
|
|
212
67
|
<ptc-img slot="slot-image" img-url="http://s7d1.scene7.com/is/image/ptcinc/cs-boeing-planes-runway" size-xs="600x450" size-sm="600x450" size-md="1108x658" size-lg="1108x658" image-type="smart-img" load-mode="lazy-bg"></ptc-img>
|
|
213
68
|
<div slot="slot-description">
|
|
214
|
-
<ptc-para font-size="
|
|
69
|
+
<ptc-para font-size="x-small" font-weight="w-4" para-line-h="line-height-19">
|
|
215
70
|
Join us for live presentations and hear about the latest updates for Creo, Windchill PLM, and Thingworx IOT and Augmented Reality.
|
|
216
71
|
</ptc-para>
|
|
217
72
|
</div>
|
|
@@ -231,4 +86,4 @@ ListingCard.args = {
|
|
|
231
86
|
headingTransform: 'none',
|
|
232
87
|
ribbonText: 'eBook',
|
|
233
88
|
target: '_blank',
|
|
234
|
-
}
|
|
89
|
+
}
|