@ptcwebops/ptcw-design 6.2.36-beta → 6.2.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/cjs/{component-6a178a16.js → component-4dd13907.js} +1 -1
- package/dist/cjs/event-jumbotron-example_15.cjs.entry.js +1433 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/ptc-card-bottom.cjs.entry.js +67 -0
- package/dist/cjs/ptc-data-lookup.cjs.entry.js +1 -1
- package/dist/cjs/ptc-form-checkbox_4.cjs.entry.js +1 -1
- package/dist/cjs/ptcw-design.cjs.js +1 -1
- package/dist/collection/components/organism-bundles/event-jumbotron-example/event-jumbotron-example.css +28 -3
- package/dist/collection/components/organism-bundles/event-jumbotron-example/event-jumbotron-example.js +2 -2
- package/dist/collection/components/ptc-para/ptc-para.css +8 -0
- package/dist/collection/components/ptc-para/ptc-para.js +2 -2
- package/dist/custom-elements/index.js +5 -5
- package/dist/esm/blog-detail-content_2.entry.js +1 -1
- package/dist/esm/blog-detail-layout.entry.js +1 -1
- package/dist/esm/blogs-search-section.entry.js +1 -1
- package/dist/esm/{component-80f298b4.js → component-9c921cc6.js} +1 -1
- package/dist/esm/event-jumbotron-example_15.entry.js +1415 -0
- package/dist/esm/homepage-jumbotron.entry.js +1 -1
- package/dist/esm/homepage-toggled-content.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/most-popular-news.entry.js +1 -1
- package/dist/esm/my-component.entry.js +1 -1
- package/dist/esm/ptc-accordion-item.entry.js +1 -1
- package/dist/esm/ptc-background-video.entry.js +1 -1
- package/dist/esm/ptc-card-bottom.entry.js +63 -0
- package/dist/esm/ptc-collapse-list.entry.js +1 -1
- package/dist/esm/ptc-data-lookup.entry.js +1 -1
- package/dist/esm/ptc-form-checkbox_4.entry.js +2 -2
- package/dist/esm/ptc-homepage-image-feature.entry.js +1 -1
- package/dist/esm/ptc-homepage-video-background.entry.js +1 -1
- package/dist/esm/ptc-icon-card.entry.js +1 -1
- package/dist/esm/ptc-media-card.entry.js +1 -1
- package/dist/esm/ptc-pricing-packaging-table.entry.js +1 -1
- package/dist/esm/ptc-pricing-tabs.entry.js +1 -1
- package/dist/esm/ptc-social-icons-footer.entry.js +1 -1
- package/dist/esm/ptcw-design.js +1 -1
- package/dist/esm/{utils-63eab4bd.js → utils-ff65c75b.js} +1 -1
- package/dist/ptcw-design/{p-e8e39b10.entry.js → p-1118ed9e.entry.js} +1 -1
- package/dist/ptcw-design/{p-c01ea76f.entry.js → p-1b257420.entry.js} +1 -1
- package/dist/ptcw-design/{p-4ee98a3e.entry.js → p-2c6fc745.entry.js} +1 -1
- package/dist/ptcw-design/{p-fd394e84.entry.js → p-36007a57.entry.js} +1 -1
- package/dist/ptcw-design/p-5dba6e59.entry.js +1 -0
- package/dist/ptcw-design/{p-cbee4653.entry.js → p-6d3326da.entry.js} +1 -1
- package/dist/ptcw-design/{p-6f5fecae.entry.js → p-7a9611b4.entry.js} +1 -1
- package/dist/ptcw-design/{p-eec2f3da.entry.js → p-808ec62a.entry.js} +1 -1
- package/dist/ptcw-design/{p-77b1221e.js → p-8872161f.js} +1 -1
- package/dist/ptcw-design/p-9fe0c27d.entry.js +1 -0
- package/dist/ptcw-design/{p-291072b4.entry.js → p-a3b57ede.entry.js} +1 -1
- package/dist/ptcw-design/{p-d361afd1.entry.js → p-a5c2584e.entry.js} +1 -1
- package/dist/ptcw-design/{p-17f6e145.entry.js → p-ae970a60.entry.js} +1 -1
- package/dist/ptcw-design/{p-821f0ff9.entry.js → p-c37a3bd2.entry.js} +1 -1
- package/dist/ptcw-design/{p-d3229458.entry.js → p-c66b8926.entry.js} +1 -1
- package/dist/ptcw-design/{p-6a3caf2b.entry.js → p-c95f423e.entry.js} +1 -1
- package/dist/ptcw-design/{p-627103d8.entry.js → p-d10cb999.entry.js} +1 -1
- package/dist/ptcw-design/{p-48c33817.entry.js → p-d9abe7e8.entry.js} +1 -1
- package/dist/ptcw-design/{p-e577ad62.entry.js → p-da82dc93.entry.js} +1 -1
- package/dist/ptcw-design/{p-16e70f20.entry.js → p-e0b873d0.entry.js} +1 -1
- package/dist/ptcw-design/{p-49e54079.entry.js → p-e3f8e5d5.entry.js} +1 -1
- package/dist/ptcw-design/{p-28be539b.entry.js → p-e4000363.entry.js} +1 -1
- package/dist/ptcw-design/ptcw-design.esm.js +1 -1
- package/dist/types/components/ptc-mobile-select/mobile-select/dist/mobile-select.d.ts +209 -0
- package/dist/types/components/ptc-para/ptc-para.d.ts +1 -1
- package/dist/types/components.d.ts +2 -2
- package/dist/types/utils/eloqua.d.ts +9 -0
- package/package.json +1 -1
- package/readme.md +1 -1
- package/dist/cjs/event-jumbotron-example.cjs.entry.js +0 -148
- package/dist/cjs/icon-asset.cjs.entry.js +0 -65
- package/dist/cjs/list-item.cjs.entry.js +0 -48
- package/dist/cjs/ptc-breadcrumb.cjs.entry.js +0 -47
- package/dist/cjs/ptc-button.cjs.entry.js +0 -87
- package/dist/cjs/ptc-card-bottom_2.cjs.entry.js +0 -156
- package/dist/cjs/ptc-card-content.cjs.entry.js +0 -76
- package/dist/cjs/ptc-close-icon_2.cjs.entry.js +0 -275
- package/dist/cjs/ptc-img.cjs.entry.js +0 -133
- package/dist/cjs/ptc-link.cjs.entry.js +0 -87
- package/dist/cjs/ptc-para.cjs.entry.js +0 -127
- package/dist/cjs/ptc-scroll-button.cjs.entry.js +0 -136
- package/dist/cjs/ptc-spacer.cjs.entry.js +0 -38
- package/dist/cjs/ptc-title.cjs.entry.js +0 -152
- package/dist/esm/event-jumbotron-example.entry.js +0 -144
- package/dist/esm/icon-asset.entry.js +0 -61
- package/dist/esm/list-item.entry.js +0 -44
- package/dist/esm/ptc-breadcrumb.entry.js +0 -43
- package/dist/esm/ptc-button.entry.js +0 -83
- package/dist/esm/ptc-card-bottom_2.entry.js +0 -151
- package/dist/esm/ptc-card-content.entry.js +0 -72
- package/dist/esm/ptc-close-icon_2.entry.js +0 -270
- package/dist/esm/ptc-img.entry.js +0 -129
- package/dist/esm/ptc-link.entry.js +0 -83
- package/dist/esm/ptc-para.entry.js +0 -123
- package/dist/esm/ptc-scroll-button.entry.js +0 -132
- package/dist/esm/ptc-spacer.entry.js +0 -34
- package/dist/esm/ptc-title.entry.js +0 -148
- package/dist/ptcw-design/p-01075feb.entry.js +0 -1
- package/dist/ptcw-design/p-0c69ea52.entry.js +0 -1
- package/dist/ptcw-design/p-1070f8a3.entry.js +0 -1
- package/dist/ptcw-design/p-25a25451.entry.js +0 -1
- package/dist/ptcw-design/p-7793babb.entry.js +0 -1
- package/dist/ptcw-design/p-7fe4d383.entry.js +0 -1
- package/dist/ptcw-design/p-92d22c78.entry.js +0 -1
- package/dist/ptcw-design/p-99355e65.entry.js +0 -1
- package/dist/ptcw-design/p-ad718ee1.entry.js +0 -1
- package/dist/ptcw-design/p-b651c1cb.entry.js +0 -1
- package/dist/ptcw-design/p-b8ee8699.entry.js +0 -1
- package/dist/ptcw-design/p-bf18b622.entry.js +0 -1
- package/dist/ptcw-design/p-d3e2a446.entry.js +0 -1
- package/dist/ptcw-design/p-e2abc077.entry.js +0 -1
- /package/dist/ptcw-design/{p-672a349f.js → p-bcab66bf.js} +0 -0
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* mobile-select v1.4.0
|
|
3
|
+
* Homepage: https://github.com/onlyhom/mobile-select
|
|
4
|
+
* Released under the MIT License.
|
|
5
|
+
* (c) 2017-present
|
|
6
|
+
*/
|
|
7
|
+
// Generated by dts-bundle-generator v6.12.0
|
|
8
|
+
|
|
9
|
+
export type CascadeData = {
|
|
10
|
+
[k: string]: any;
|
|
11
|
+
};
|
|
12
|
+
export interface CallbackFn {
|
|
13
|
+
(curValue: string[] | number[] | CascadeData[], indexArr: number[], context: MobileSelect): void;
|
|
14
|
+
}
|
|
15
|
+
export interface OldCallbackFn {
|
|
16
|
+
(indexArr: number[], curValue: string[] | number[] | CascadeData[], context: MobileSelect): void;
|
|
17
|
+
}
|
|
18
|
+
export type KeyMap = {
|
|
19
|
+
id: string;
|
|
20
|
+
value: string;
|
|
21
|
+
childs: string;
|
|
22
|
+
};
|
|
23
|
+
export type OptionData = CascadeData | string | number;
|
|
24
|
+
export type CustomConfig = {
|
|
25
|
+
/** 触发面板弹出的元素 */
|
|
26
|
+
trigger: string | HTMLElement;
|
|
27
|
+
/** 数据源 */
|
|
28
|
+
wheels: CascadeData[];
|
|
29
|
+
/** 选择完毕的回调函数 */
|
|
30
|
+
onChange?: CallbackFn;
|
|
31
|
+
/** 取消面板的回调函数 */
|
|
32
|
+
onCancel?: CallbackFn;
|
|
33
|
+
/** 滚动滚动完毕的回调函数 */
|
|
34
|
+
onTransitionEnd?: CallbackFn;
|
|
35
|
+
/** 显示面板 回调函数 */
|
|
36
|
+
onShow?: CallbackFn;
|
|
37
|
+
/** 隐藏面板 回调函数 */
|
|
38
|
+
onHide?: CallbackFn;
|
|
39
|
+
/** 初始值 传入后会自动计算出初始化滚动位置 */
|
|
40
|
+
initValue?: string;
|
|
41
|
+
/** 初始化滚动位置 */
|
|
42
|
+
position?: number[];
|
|
43
|
+
/** 轮子宽度比例 */
|
|
44
|
+
colWidth?: number[];
|
|
45
|
+
/** 组件标题 */
|
|
46
|
+
title?: string;
|
|
47
|
+
/** 拼接值的连接符 默认是空格 */
|
|
48
|
+
connector?: string;
|
|
49
|
+
/** 确认按钮 文案 */
|
|
50
|
+
ensureBtnText?: string;
|
|
51
|
+
/** 取消按钮 文案 */
|
|
52
|
+
cancelBtnText?: string;
|
|
53
|
+
/** 确认按钮 文字颜色 */
|
|
54
|
+
ensureBtnColor?: string;
|
|
55
|
+
/** 取消按钮 文字颜色 */
|
|
56
|
+
cancelBtnColor?: string;
|
|
57
|
+
/** 组件标题 文字颜色 */
|
|
58
|
+
titleColor?: string;
|
|
59
|
+
/** 组件标题 背景颜色 */
|
|
60
|
+
titleBgColor?: string;
|
|
61
|
+
/** 选项文字颜色 */
|
|
62
|
+
textColor?: string;
|
|
63
|
+
/** 遮罩背景色 */
|
|
64
|
+
bgColor?: string;
|
|
65
|
+
/** 遮罩层透明度 */
|
|
66
|
+
maskOpacity?: number;
|
|
67
|
+
/** 数据源, 用户自定义key */
|
|
68
|
+
keyMap?: KeyMap;
|
|
69
|
+
/** onChange后 是否修改trigger的innerText */
|
|
70
|
+
triggerDisplayValue?: boolean;
|
|
71
|
+
/** 是否自动拉起面板 */
|
|
72
|
+
autoFocus?: boolean;
|
|
73
|
+
/** 轮子滚动速度 默认为1 */
|
|
74
|
+
scrollSpeed?: number;
|
|
75
|
+
/** (即将废弃) 选择完毕的回调函数 */
|
|
76
|
+
callback?: OldCallbackFn;
|
|
77
|
+
/** (即将废弃) 取消面板的回调函数 */
|
|
78
|
+
cancel?: OldCallbackFn;
|
|
79
|
+
/** (即将废弃) 滚动滚动完毕的回调函数 */
|
|
80
|
+
transitionEnd?: OldCallbackFn;
|
|
81
|
+
/** (即将废弃) onChange后 是否修改trigger的innerText */
|
|
82
|
+
triggerDisplayData?: boolean;
|
|
83
|
+
};
|
|
84
|
+
export type MobileSelectConfig = CustomConfig & Required<Pick<CustomConfig, "keyMap" | "position" | "colWidth" | "title" | "connector" | "ensureBtnText" | "cancelBtnText" | "triggerDisplayValue" | "scrollSpeed">>;
|
|
85
|
+
declare class MobileSelect {
|
|
86
|
+
mobileSelect: HTMLDivElement;
|
|
87
|
+
trigger: HTMLElement;
|
|
88
|
+
wheelList: HTMLCollectionOf<HTMLElement>;
|
|
89
|
+
sliderList: HTMLCollectionOf<HTMLElement>;
|
|
90
|
+
wheelsContain: HTMLDivElement;
|
|
91
|
+
panel: HTMLDivElement;
|
|
92
|
+
ensureBtn: HTMLDivElement;
|
|
93
|
+
cancelBtn: HTMLDivElement;
|
|
94
|
+
grayLayer: HTMLDivElement;
|
|
95
|
+
popUp: HTMLDivElement;
|
|
96
|
+
/** 初始化滚动位置 由position 或 initValue计算决定 */
|
|
97
|
+
initPosition: number[];
|
|
98
|
+
/** 轮子宽度比例 */
|
|
99
|
+
initColWidth: number[];
|
|
100
|
+
/** 数据源 */
|
|
101
|
+
wheelsData: CascadeData[];
|
|
102
|
+
/** 显示json */
|
|
103
|
+
displayJson: CascadeData[];
|
|
104
|
+
/** 当前数值 */
|
|
105
|
+
curValue: string[] | number[] | CascadeData[];
|
|
106
|
+
/** 当前索引位置 */
|
|
107
|
+
curIndexArr: number[];
|
|
108
|
+
/** 是否级联 */
|
|
109
|
+
isCascade: boolean;
|
|
110
|
+
/** 是否JSON格式 */
|
|
111
|
+
isJsonType: boolean;
|
|
112
|
+
/** 开始 Y轴位置 */
|
|
113
|
+
startY: number;
|
|
114
|
+
/** 结束 Y轴位置 */
|
|
115
|
+
moveEndY: number;
|
|
116
|
+
/** 当前 Y轴位置 */
|
|
117
|
+
moveY: number;
|
|
118
|
+
/** 上一次 Y轴位置 */
|
|
119
|
+
preMoveY: number;
|
|
120
|
+
/** Y轴新旧位移差值 */
|
|
121
|
+
offsetY: number;
|
|
122
|
+
/** 差值总和? */
|
|
123
|
+
offsetSum: number;
|
|
124
|
+
/** 最大Border? */
|
|
125
|
+
oversizeBorder: number;
|
|
126
|
+
/** 是否启用点击状态 */
|
|
127
|
+
enableClickStatus: boolean;
|
|
128
|
+
/** 选项高度(li元素的高度) */
|
|
129
|
+
optionHeight: number;
|
|
130
|
+
/** 存放滚动距离的数组 */
|
|
131
|
+
curDistance: number[];
|
|
132
|
+
/** 级联数据 相当于wheels[0].data的别名 */
|
|
133
|
+
cascadeJsonData: CascadeData[];
|
|
134
|
+
/** 事件监听 */
|
|
135
|
+
eventHandleMap: {
|
|
136
|
+
[x: string]: {
|
|
137
|
+
event: string | string[];
|
|
138
|
+
fn: Function;
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
/** 级联数据 级联深度 */
|
|
142
|
+
initDeepCount: number;
|
|
143
|
+
/** 用户配置项 */
|
|
144
|
+
config: MobileSelectConfig;
|
|
145
|
+
/** 默认配置 */
|
|
146
|
+
static defaultConfig: {
|
|
147
|
+
keyMap: {
|
|
148
|
+
id: string;
|
|
149
|
+
value: string;
|
|
150
|
+
childs: string;
|
|
151
|
+
};
|
|
152
|
+
position: never[];
|
|
153
|
+
colWidth: never[];
|
|
154
|
+
title: string;
|
|
155
|
+
connector: string;
|
|
156
|
+
ensureBtnText: string;
|
|
157
|
+
cancelBtnText: string;
|
|
158
|
+
triggerDisplayValue: boolean;
|
|
159
|
+
scrollSpeed: number;
|
|
160
|
+
};
|
|
161
|
+
constructor(config: CustomConfig);
|
|
162
|
+
init(): void;
|
|
163
|
+
static checkDataType(wheelsData: CascadeData): boolean;
|
|
164
|
+
static REQUIRED_PARAMS: (keyof CustomConfig)[];
|
|
165
|
+
static checkRequiredConfig(config: CustomConfig): boolean;
|
|
166
|
+
static log(type: "error" | "info", tips: string): void;
|
|
167
|
+
checkTriggerAvailable(): boolean;
|
|
168
|
+
/** 根据initValue 获取initPostion 需要区分级联和非级联情况 注意此时displayJson还没生成 */
|
|
169
|
+
getPositionByInitValue(): number[];
|
|
170
|
+
getConnectedString(): string;
|
|
171
|
+
setTriggerInnerText(value: string): void;
|
|
172
|
+
setValue(valList: string[] | number[] | CascadeData[]): void;
|
|
173
|
+
setTitle(title: string): void;
|
|
174
|
+
setStyle(config: MobileSelectConfig): void;
|
|
175
|
+
show(): void;
|
|
176
|
+
hide(): void;
|
|
177
|
+
registerEvents(type: "add" | "remove"): void;
|
|
178
|
+
destroy(): void;
|
|
179
|
+
getOptionsHtmlStr(childs: CascadeData): string;
|
|
180
|
+
renderComponent(wheelsData: CascadeData[]): void;
|
|
181
|
+
reRenderWheels(): void;
|
|
182
|
+
checkCascade(): boolean;
|
|
183
|
+
initCascade(): void;
|
|
184
|
+
initCheckArrDeep(parent: CascadeData): void;
|
|
185
|
+
checkArrDeep(parent: CascadeData): void;
|
|
186
|
+
checkRange(index: number, posIndexArr: number[]): void;
|
|
187
|
+
resetPosition(index: number, posIndexArr: number[]): number[];
|
|
188
|
+
updateWheels(data: CascadeData[]): void;
|
|
189
|
+
updateWheel(sliderIndex: number, data: Omit<OptionData, "CascadeData">[]): void;
|
|
190
|
+
fixRowStyle(): void;
|
|
191
|
+
getIndex(distance: number): number;
|
|
192
|
+
getIndexArr(): number[];
|
|
193
|
+
getCurValue(): string[] | number[] | CascadeData[];
|
|
194
|
+
getValue(): string[] | number[] | CascadeData[];
|
|
195
|
+
calcDistance(index: number): number;
|
|
196
|
+
setCurDistance(indexArr: number[]): void;
|
|
197
|
+
fixPosition(distance: number): number;
|
|
198
|
+
movePosition(theSlider: HTMLElement, distance: number): void;
|
|
199
|
+
locatePosition(sliderIndex: number, posIndex: number): void;
|
|
200
|
+
updateCurDistance(theSlider: HTMLElement, index: number): void;
|
|
201
|
+
getInnerText(sliderIndex: number): string;
|
|
202
|
+
touch(event: TouchEvent | MouseEvent): void;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
export {
|
|
206
|
+
MobileSelect as default,
|
|
207
|
+
};
|
|
208
|
+
|
|
209
|
+
export {};
|
|
@@ -27,7 +27,7 @@ export declare class PtcPara {
|
|
|
27
27
|
/**
|
|
28
28
|
* Para text Alignment
|
|
29
29
|
*/
|
|
30
|
-
paraAlign?: 'left' | 'center' | 'right' | 'justify';
|
|
30
|
+
paraAlign?: 'left' | 'center' | 'right' | 'justify' | 'right-768above';
|
|
31
31
|
/**
|
|
32
32
|
* Line number to cut text off at and add ellipsis
|
|
33
33
|
*/
|
|
@@ -1539,7 +1539,7 @@ export namespace Components {
|
|
|
1539
1539
|
/**
|
|
1540
1540
|
* Para text Alignment
|
|
1541
1541
|
*/
|
|
1542
|
-
"paraAlign"?: 'left' | 'center' | 'right' | 'justify';
|
|
1542
|
+
"paraAlign"?: 'left' | 'center' | 'right' | 'justify' | 'right-768above';
|
|
1543
1543
|
/**
|
|
1544
1544
|
* Paragraph Color
|
|
1545
1545
|
*/
|
|
@@ -5724,7 +5724,7 @@ declare namespace LocalJSX {
|
|
|
5724
5724
|
/**
|
|
5725
5725
|
* Para text Alignment
|
|
5726
5726
|
*/
|
|
5727
|
-
"paraAlign"?: 'left' | 'center' | 'right' | 'justify';
|
|
5727
|
+
"paraAlign"?: 'left' | 'center' | 'right' | 'justify' | 'right-768above';
|
|
5728
5728
|
/**
|
|
5729
5729
|
* Paragraph Color
|
|
5730
5730
|
*/
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// Extend the global Window interface to include the Eloqua function
|
|
2
|
+
declare global {
|
|
3
|
+
interface Window {
|
|
4
|
+
GetElqContentPersonalizationValue: (fieldName: string) => string;
|
|
5
|
+
GetElqGroupMembershipStatus: (fieldName: string) => string;
|
|
6
|
+
SetElqContent: () => void;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
export {};
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|

|
|
2
2
|
|
|
3
|
-
# PTC Design 6.2.
|
|
3
|
+
# PTC Design 6.2.37-beta
|
|
4
4
|
|
|
5
5
|
The site is the place for documentation on PTC Design System
|
|
6
6
|
|
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-63ddc79c.js');
|
|
6
|
-
|
|
7
|
-
const eventJumbotronExampleCss = "h1.sc-event-jumbotron-example,h2.sc-event-jumbotron-example,h3.sc-event-jumbotron-example,h4.sc-event-jumbotron-example,h5.sc-event-jumbotron-example,h6.sc-event-jumbotron-example,p.sc-event-jumbotron-example,ul.sc-event-jumbotron-example,li.sc-event-jumbotron-example,ptc-subnav.sc-event-jumbotron-example,ptc-tab-list.sc-event-jumbotron-example,ptc-link.sc-event-jumbotron-example,ptc-square-card.sc-event-jumbotron-example,.hyphenate-text.sc-event-jumbotron-example,ptc-footer.sc-event-jumbotron-example{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1.sc-event-jumbotron-example,h2.sc-event-jumbotron-example,h3.sc-event-jumbotron-example,h4.sc-event-jumbotron-example,h5.sc-event-jumbotron-example,h6.sc-event-jumbotron-example,p.sc-event-jumbotron-example,ul.sc-event-jumbotron-example,li.sc-event-jumbotron-example,ptc-subnav.sc-event-jumbotron-example,ptc-tab-list.sc-event-jumbotron-example,ptc-link.sc-event-jumbotron-example,ptc-square-card.sc-event-jumbotron-example,.hyphenate-text.sc-event-jumbotron-example,ptc-footer.sc-event-jumbotron-example{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}}.sc-event-jumbotron-example-h{display:block;position:relative}.event-jumbotron.sc-event-jumbotron-example{margin-bottom:3rem;width:100%}.white-placeholder.sc-event-jumbotron-example{position:absolute;height:130px;width:100%;background-color:#F3f3f3;bottom:0px}.jumbotron-cards-wrapper.sc-event-jumbotron-example{z-index:1;position:relative;display:flex;flex-direction:column}.jumbotron-cards.sc-event-jumbotron-example{display:flex;gap:24px;overflow-x:auto;padding:0 24px;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;cursor:grab}.jumbotron-cards.sc-event-jumbotron-example::-webkit-scrollbar{display:none}.jumbotron-cards.dragging.sc-event-jumbotron-example{cursor:grabbing}.card.sc-event-jumbotron-example{flex:1 0 auto;width:250px;height:414px;background:transparent;border-radius:var(--ptc-border-radius-standard);display:flex;justify-content:center;align-items:center;text-align:center;box-shadow:0 2px 8px rgba(0, 0, 0, 0.1);flex-direction:column;padding:24px;position:relative}.card.sc-event-jumbotron-example:focus-visible{border-radius:var(--ptc-border-radius-standard);outline:5px solid var(--keyboard-nav-outline)}.card.sc-event-jumbotron-example ptc-img.sc-event-jumbotron-example::after{content:\"\";top:0px;left:0px;position:absolute;width:100%;height:100%;border-radius:var(--ptc-border-radius-standard);background:linear-gradient(0deg, black 0%, black 100%);opacity:0.7;transition:opacity var(--ptc-transition-slow) ease-in-out}.card.sc-event-jumbotron-example:hover ptc-img.sc-event-jumbotron-example::after{opacity:0.8}.card.sc-event-jumbotron-example:focus ptc-img.sc-event-jumbotron-example::after,.card.sc-event-jumbotron-example:active ptc-img.sc-event-jumbotron-example::after{opacity:0.85}.text-wrapper.sc-event-jumbotron-example{align-self:flex-start;text-align:left}.card-title.sc-event-jumbotron-example{color:var(--color-white);font-family:var(--ptc-font-latin);font-size:var(--ptc-font-size-x-large);font-weight:var(--ptc-font-weight-extrabold);line-height:var(--ptc-line-height-densest);position:relative;z-index:2;margin-top:0;margin-bottom:var(--ptc-element-spacing-06)}.card-title.sc-event-jumbotron-example span.sc-event-jumbotron-example{font-weight:var(--ptc-font-weight-medium);display:inline-block}.cta-all.sc-event-jumbotron-example{margin-right:20px}.panel.sc-event-jumbotron-example{display:none;visibility:hidden}@media only screen and (min-width: 768px){.card-title.sc-event-jumbotron-example{font-size:var(--ptc-font-size-xx-large)}.card-title.sc-event-jumbotron-example span.sc-event-jumbotron-example{font-size:var(--ptc-font-size-xx-large)}}@media only screen and (min-width: 992px){.card-title.sc-event-jumbotron-example{font-size:var(--ptc-font-size-x-large)}.card-title.sc-event-jumbotron-example span.sc-event-jumbotron-example{font-size:var(--ptc-font-size-x-large)}.cta-group.sc-event-jumbotron-example{margin-bottom:88px}.jumbotron-cards.sc-event-jumbotron-example{overflow-x:visible;justify-content:space-between;cursor:auto;transition:transform 0.3s ease-in-out;width:100%}.card.sc-event-jumbotron-example{width:auto;height:530px;padding:24px;cursor:pointer;flex:1}.card.hidden.sc-event-jumbotron-example{opacity:0;pointer-events:none}.card.active.sc-event-jumbotron-example{min-height:530px;border-top-right-radius:0px;border-bottom-right-radius:0px;box-shadow:var(--ptc-shadow-x-large);height:auto}.panel.sc-event-jumbotron-example{visibility:hidden;opacity:0;position:absolute;top:0;left:0;min-height:530px;padding:40px;background:var(--color-white);border-radius:var(--ptc-border-radius-standard);box-shadow:0 2px 8px rgba(0, 0, 0, 0.1);transition:opacity 0.3s ease-in-out, transform 0.3s ease-in-out;z-index:10}.panel.visible.sc-event-jumbotron-example{visibility:visible;opacity:1;border-top-left-radius:0px;border-bottom-left-radius:0px;box-shadow:var(--ptc-shadow-x-large);height:auto}.close-panel.sc-event-jumbotron-example{position:absolute;top:0px;right:0px;background:var(--color-white);border:none;text-align:center;cursor:pointer;padding:0px;margin:5px}.hide-scrollbar.sc-event-jumbotron-example{margin-left:-40px;margin-right:-40px}}@media only screen and (min-width: 1200px){.card-title.sc-event-jumbotron-example{font-size:var(--ptc-font-size-xx-large)}.card-title.sc-event-jumbotron-example span.sc-event-jumbotron-example{font-size:var(--ptc-font-size-xx-large)}.jumbotron-cards.sc-event-jumbotron-example{padding:0;gap:32px}}@media only screen and (min-width: 1440px){.jumbotron-cards.sc-event-jumbotron-example{gap:40px}}";
|
|
8
|
-
|
|
9
|
-
const EventJumbotronExample = class {
|
|
10
|
-
constructor(hostRef) {
|
|
11
|
-
index.registerInstance(this, hostRef);
|
|
12
|
-
this.startX = 0;
|
|
13
|
-
this.scrollLeft = 0;
|
|
14
|
-
this.updateContainerClass = () => {
|
|
15
|
-
if (this.isDesktop) {
|
|
16
|
-
this.sliderWrapper.classList.add('ptc-container', 'u-paddingRight-flush', 'u-paddingLeft-flush');
|
|
17
|
-
this.disableDragging();
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
this.sliderWrapper.classList.remove('ptc-container', 'u-paddingRight-flush', 'u-paddingLeft-flush');
|
|
21
|
-
this.enableDragging();
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
this.startDragging = (e) => {
|
|
25
|
-
this.isMouseDown = true;
|
|
26
|
-
this.isDragging = false;
|
|
27
|
-
this.startX = e.pageX;
|
|
28
|
-
this.scrollLeft = this.slider.scrollLeft;
|
|
29
|
-
};
|
|
30
|
-
this.performDragging = (e) => {
|
|
31
|
-
if (!this.isMouseDown)
|
|
32
|
-
return;
|
|
33
|
-
const x = e.pageX - this.slider.offsetLeft;
|
|
34
|
-
const walk = x - this.startX;
|
|
35
|
-
this.isDragging = Math.abs(walk) > 5;
|
|
36
|
-
this.slider.scrollLeft = this.scrollLeft - walk;
|
|
37
|
-
};
|
|
38
|
-
this.stopDragging = () => {
|
|
39
|
-
this.isMouseDown = false;
|
|
40
|
-
};
|
|
41
|
-
this.closeActiveModal = () => {
|
|
42
|
-
document.querySelectorAll('ptc-modal').forEach((modal) => {
|
|
43
|
-
if (modal.show)
|
|
44
|
-
modal.show = false;
|
|
45
|
-
});
|
|
46
|
-
};
|
|
47
|
-
this.cards = [];
|
|
48
|
-
this.modalBtnCloseText = "Close";
|
|
49
|
-
this.activePanel = null;
|
|
50
|
-
this.isDragging = false;
|
|
51
|
-
this.isMouseDown = false;
|
|
52
|
-
this.isDesktop = window.innerWidth >= 992;
|
|
53
|
-
}
|
|
54
|
-
onScreenStatusChange() {
|
|
55
|
-
!this.isDesktop && this.closeActiveModal();
|
|
56
|
-
}
|
|
57
|
-
handleCardClick(cardIndex) {
|
|
58
|
-
const card = this.slider.children[cardIndex];
|
|
59
|
-
const panelID = `panel-${cardIndex}`;
|
|
60
|
-
const panel = document.getElementById(panelID);
|
|
61
|
-
if (this.isDesktop && panel) {
|
|
62
|
-
this.showPanel(card, panel);
|
|
63
|
-
}
|
|
64
|
-
else if (!this.isDesktop) {
|
|
65
|
-
if (!this.isDragging) {
|
|
66
|
-
const modal = document.getElementById(`modal-${cardIndex}`);
|
|
67
|
-
console.log('open: ' + modal.id);
|
|
68
|
-
modal.show = true;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
showPanel(card, panel) {
|
|
73
|
-
if (this.activePanel)
|
|
74
|
-
return;
|
|
75
|
-
this.slider.style.transform = `translateX(-${card.offsetLeft}px)`;
|
|
76
|
-
Array.from(this.slider.children).forEach(c => {
|
|
77
|
-
if (c !== card)
|
|
78
|
-
c.classList.add('hidden');
|
|
79
|
-
});
|
|
80
|
-
panel.style.display = 'block';
|
|
81
|
-
panel.style.width = `calc(100% - ${card.getBoundingClientRect().width}px`;
|
|
82
|
-
card.style.height = `${panel.getBoundingClientRect().height}px`;
|
|
83
|
-
this.arrowButtons = document.querySelectorAll('ptc-scroll-button');
|
|
84
|
-
setTimeout(() => {
|
|
85
|
-
panel.style.transform = `translateX(${card.offsetWidth}px)`;
|
|
86
|
-
panel.classList.add('visible');
|
|
87
|
-
card.classList.add('active');
|
|
88
|
-
this.arrowButtons.forEach(button => button.initVisibility());
|
|
89
|
-
this.activePanel = panel.id;
|
|
90
|
-
}, 100);
|
|
91
|
-
}
|
|
92
|
-
closePanel(panelId) {
|
|
93
|
-
const panel = document.getElementById(panelId);
|
|
94
|
-
if (panel) {
|
|
95
|
-
panel.classList.remove('visible');
|
|
96
|
-
panel.addEventListener('transitionend', () => {
|
|
97
|
-
if (!panel.classList.contains('visible')) {
|
|
98
|
-
panel.style.display = 'none';
|
|
99
|
-
}
|
|
100
|
-
}, { once: true });
|
|
101
|
-
}
|
|
102
|
-
this.activePanel = null;
|
|
103
|
-
this.slider.style.transform = 'translateX(0)';
|
|
104
|
-
Array.from(this.slider.children).forEach(card => {
|
|
105
|
-
card.classList.remove('hidden', 'active');
|
|
106
|
-
card.style.height = '530px';
|
|
107
|
-
});
|
|
108
|
-
}
|
|
109
|
-
enableDragging() {
|
|
110
|
-
this.slider.addEventListener('mousedown', this.startDragging);
|
|
111
|
-
this.slider.addEventListener('mousemove', this.performDragging);
|
|
112
|
-
['mouseup', 'mouseleave'].forEach(event => this.slider.addEventListener(event, this.stopDragging));
|
|
113
|
-
}
|
|
114
|
-
disableDragging() {
|
|
115
|
-
this.slider.removeEventListener('mousedown', this.startDragging);
|
|
116
|
-
this.slider.removeEventListener('mousemove', this.performDragging);
|
|
117
|
-
['mouseup', 'mouseleave'].forEach(event => this.slider.removeEventListener(event, this.stopDragging));
|
|
118
|
-
}
|
|
119
|
-
componentDidLoad() {
|
|
120
|
-
// const cardOverlays = document.querySelectorAll('overlay');
|
|
121
|
-
this.sliderWrapper = document.querySelector('.jumbotron-cards-wrapper');
|
|
122
|
-
this.slider = document.querySelector('.jumbotron-cards');
|
|
123
|
-
this.updateContainerClass();
|
|
124
|
-
window.addEventListener('resize', () => {
|
|
125
|
-
this.isDesktop = window.innerWidth >= 992;
|
|
126
|
-
this.updateContainerClass();
|
|
127
|
-
this.activePanel && this.closePanel(this.activePanel);
|
|
128
|
-
});
|
|
129
|
-
// cardOverlays.forEach( (ele=> {(ele as HTMLPtcOverlayElement).setOverlayColorValue('linear-gradient(0deg, rgba(0, 0, 0, 0.70) 0%, rgba(0, 0, 0, 0.70) 100%)')}))
|
|
130
|
-
}
|
|
131
|
-
render() {
|
|
132
|
-
const modalContentSlots = Array.from(this.el.querySelectorAll('template'));
|
|
133
|
-
return [
|
|
134
|
-
index.h("div", { class: {
|
|
135
|
-
'event-jumbotron': true,
|
|
136
|
-
'ptc-container': this.isDesktop,
|
|
137
|
-
} }, index.h("div", { class: "jumbotron-cards-wrapper" }, index.h("div", { class: "jumbotron-cards" }, this.cards.map((card, index$1) => (index.h("div", { class: "card", onClick: () => this.handleCardClick(index$1), "data-panel": `panel-${index$1}`, onKeyPress: () => this.handleCardClick(index$1), tabindex: "0" }, index.h("ptc-img", { "border-radius": "radius-standard", "image-type": "smart-bg", "img-url": card.cardBg, "load-mode": "lazy-bg", styles: "ptc-img{position: absolute; width: 100%; height: 100%; z-index: 0}" }), index.h("div", { class: "text-wrapper" }, index.h("h3", { class: "card-title" }, card.title, ' ', index.h("span", null, card.description)), !this.activePanel && [index.h("div", { innerHTML: card.panelContent })]))))), this.cards.map((_, index$1) => (index.h("div", { id: `panel-${index$1}`, class: "panel" }, index.h("button", { tabindex: "-1", class: "close-panel", onClick: () => this.closePanel(`panel-${index$1}`), "aria-label": "Close panel" }, index.h("ptc-close-icon", null)), index.h("slot", { name: `panel-content-${index$1}` })))), !this.isDesktop && this.cards.map((_, index$1) => (index.h("ptc-modal", { id: `modal-${index$1}`, show: false, "close-on-blur": true, "modal-type": "event-listing", "custom-class": "event-mobile-modal", headerOnlyText1: this.cards[index$1].title, headerOnlyText2: this.cards[index$1].description, headerOnlyBg: this.cards[index$1].cardBg, bottomCloseBtn: this.modalBtnCloseText }, index.h("div", { innerHTML: modalContentSlots[index$1].innerHTML })))))),
|
|
138
|
-
index.h("div", { class: "white-placeholder" }),
|
|
139
|
-
];
|
|
140
|
-
}
|
|
141
|
-
get el() { return index.getElement(this); }
|
|
142
|
-
static get watchers() { return {
|
|
143
|
-
"isDesktop": ["onScreenStatusChange"]
|
|
144
|
-
}; }
|
|
145
|
-
};
|
|
146
|
-
EventJumbotronExample.style = eventJumbotronExampleCss;
|
|
147
|
-
|
|
148
|
-
exports.event_jumbotron_example = EventJumbotronExample;
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-63ddc79c.js');
|
|
6
|
-
|
|
7
|
-
const iconAssetCss = ".svg-inline--fa.sc-icon-asset,svg.sc-icon-asset:not(:root).svg-inline--fa{overflow:visible}.svg-inline--fa.sc-icon-asset{display:inline-block;font-size:inherit;height:1em;vertical-align:-.125em}.svg-inline--fa.fa-lg.sc-icon-asset{vertical-align:-.225em}.svg-inline--fa.fa-w-1.sc-icon-asset{width:.0625em}.svg-inline--fa.fa-w-2.sc-icon-asset{width:.125em}.svg-inline--fa.fa-w-3.sc-icon-asset{width:.1875em}.svg-inline--fa.fa-w-4.sc-icon-asset{width:.25em}.svg-inline--fa.fa-w-5.sc-icon-asset{width:.3125em}.svg-inline--fa.fa-w-6.sc-icon-asset{width:.375em}.svg-inline--fa.fa-w-7.sc-icon-asset{width:.4375em}.svg-inline--fa.fa-w-8.sc-icon-asset{width:.5em}.svg-inline--fa.fa-w-9.sc-icon-asset{width:.5625em}.svg-inline--fa.fa-w-10.sc-icon-asset{width:.625em}.svg-inline--fa.fa-w-11.sc-icon-asset{width:.6875em}.svg-inline--fa.fa-w-12.sc-icon-asset{width:.75em}.svg-inline--fa.fa-w-13.sc-icon-asset{width:.8125em}.svg-inline--fa.fa-w-14.sc-icon-asset{width:.875em}.svg-inline--fa.fa-w-15.sc-icon-asset{width:.9375em}.svg-inline--fa.fa-w-16.sc-icon-asset{width:1em}.svg-inline--fa.fa-w-17.sc-icon-asset{width:1.0625em}.svg-inline--fa.fa-w-18.sc-icon-asset{width:1.125em}.svg-inline--fa.fa-w-19.sc-icon-asset{width:1.1875em}.svg-inline--fa.fa-w-20.sc-icon-asset{width:1.25em}.svg-inline--fa.fa-pull-left.sc-icon-asset{margin-right:.3em;width:auto}.svg-inline--fa.fa-pull-right.sc-icon-asset{margin-left:.3em;width:auto}.svg-inline--fa.fa-border.sc-icon-asset{height:1.5em}.svg-inline--fa.fa-li.sc-icon-asset{width:2em}.svg-inline--fa.fa-fw.sc-icon-asset{width:1.25em}.fa-layers.sc-icon-asset svg.svg-inline--fa.sc-icon-asset{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0}.fa-layers.sc-icon-asset{display:inline-block;height:1em;position:relative;text-align:center;vertical-align:-.125em;width:1em}.fa-layers.sc-icon-asset svg.svg-inline--fa.sc-icon-asset{-webkit-transform-origin:center center;transform-origin:center center}.fa-layers-counter.sc-icon-asset,.fa-layers-text.sc-icon-asset{display:inline-block;position:absolute;text-align:center}.fa-layers-text.sc-icon-asset{left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);-webkit-transform-origin:center center;transform-origin:center center}.fa-layers-counter.sc-icon-asset{background-color:#ff253a;border-radius:1em;-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;height:1.5em;line-height:1;max-width:5em;min-width:1.5em;overflow:hidden;padding:.25em;right:0;text-overflow:ellipsis;top:0;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:top right;transform-origin:top right}.fa-layers-bottom-right.sc-icon-asset{bottom:0;right:0;top:auto;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:bottom right;transform-origin:bottom right}.fa-layers-bottom-left.sc-icon-asset{bottom:0;left:0;right:auto;top:auto;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:bottom left;transform-origin:bottom left}.fa-layers-top-right.sc-icon-asset{right:0;top:0;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:top right;transform-origin:top right}.fa-layers-top-left.sc-icon-asset{left:0;right:auto;top:0;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:top left;transform-origin:top left}.fa-lg.sc-icon-asset{font-size:1.33333em;line-height:.75em;vertical-align:-.0667em}.fa-xs.sc-icon-asset{font-size:.75em}.fa-sm.sc-icon-asset{font-size:.875em}.fa-1x.sc-icon-asset{font-size:1em}.fa-2x.sc-icon-asset{font-size:2em}.fa-3x.sc-icon-asset{font-size:3em}.fa-4x.sc-icon-asset{font-size:4em}.fa-5x.sc-icon-asset{font-size:5em}.fa-6x.sc-icon-asset{font-size:6em}.fa-7x.sc-icon-asset{font-size:7em}.fa-8x.sc-icon-asset{font-size:8em}.fa-9x.sc-icon-asset{font-size:9em}.fa-10x.sc-icon-asset{font-size:10em}.fa-fw.sc-icon-asset{text-align:center;width:1.25em}.fa-ul.sc-icon-asset{list-style-type:none;margin-left:2.5em;padding-left:0}.fa-ul.sc-icon-asset>li.sc-icon-asset{position:relative}.fa-li.sc-icon-asset{left:-2em;position:absolute;text-align:center;width:2em;line-height:inherit}.fa-border.sc-icon-asset{border:.08em solid #eee;border-radius:.1em;padding:.2em .25em .15em}.fa-pull-left.sc-icon-asset{float:left}.fa-pull-right.sc-icon-asset{float:right}.fa.fa-pull-left.sc-icon-asset,.fab.fa-pull-left.sc-icon-asset,.fal.fa-pull-left.sc-icon-asset,.far.fa-pull-left.sc-icon-asset,.fas.fa-pull-left.sc-icon-asset{margin-right:.3em}.fa.fa-pull-right.sc-icon-asset,.fab.fa-pull-right.sc-icon-asset,.fal.fa-pull-right.sc-icon-asset,.far.fa-pull-right.sc-icon-asset,.fas.fa-pull-right.sc-icon-asset{margin-left:.3em}.fa-spin.sc-icon-asset{-webkit-animation:fa-spin 2s linear infinite;animation:fa-spin 2s linear infinite}.fa-pulse.sc-icon-asset{-webkit-animation:fa-spin 1s steps(8) infinite;animation:fa-spin 1s steps(8) infinite}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.fa-rotate-90.sc-icon-asset{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)\";-webkit-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180.sc-icon-asset{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)\";-webkit-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270.sc-icon-asset{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)\";-webkit-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal.sc-icon-asset{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)\";-webkit-transform:scaleX(-1);transform:scaleX(-1)}.fa-flip-vertical.sc-icon-asset{-webkit-transform:scaleY(-1);transform:scaleY(-1)}.fa-flip-both.sc-icon-asset,.fa-flip-horizontal.fa-flip-vertical.sc-icon-asset,.fa-flip-vertical.sc-icon-asset{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)\"}.fa-flip-both.sc-icon-asset,.fa-flip-horizontal.fa-flip-vertical.sc-icon-asset{-webkit-transform:scale(-1);transform:scale(-1)}.sc-icon-asset:root .fa-flip-both.sc-icon-asset,.sc-icon-asset:root .fa-flip-horizontal.sc-icon-asset,.sc-icon-asset:root .fa-flip-vertical.sc-icon-asset,.sc-icon-asset:root .fa-rotate-90.sc-icon-asset,.sc-icon-asset:root .fa-rotate-180.sc-icon-asset,.sc-icon-asset:root .fa-rotate-270.sc-icon-asset{-webkit-filter:none;filter:none}.fa-stack.sc-icon-asset{display:inline-block;height:2em;position:relative;width:2.5em}.fa-stack-1x.sc-icon-asset,.fa-stack-2x.sc-icon-asset{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0}.svg-inline--fa.fa-stack-1x.sc-icon-asset{height:1em;width:1.25em}.svg-inline--fa.fa-stack-2x.sc-icon-asset{height:2em;width:2.5em}.fa-inverse.sc-icon-asset{color:#fff}.sr-only.sc-icon-asset{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.sr-only-focusable.sc-icon-asset:active,.sr-only-focusable.sc-icon-asset:focus{clip:auto;height:auto;margin:0;overflow:visible;position:static;width:auto}.svg-inline--fa.sc-icon-asset .fa-primary.sc-icon-asset{fill:var(--fa-primary-color,currentColor);opacity:1;opacity:var(--fa-primary-opacity,1)}.svg-inline--fa.sc-icon-asset .fa-secondary.sc-icon-asset{fill:var(--fa-secondary-color,currentColor)}.svg-inline--fa.sc-icon-asset .fa-secondary.sc-icon-asset,.svg-inline--fa.fa-swap-opacity.sc-icon-asset .fa-primary.sc-icon-asset{opacity:.4;opacity:var(--fa-secondary-opacity,.4)}.svg-inline--fa.fa-swap-opacity.sc-icon-asset .fa-secondary.sc-icon-asset{opacity:1;opacity:var(--fa-primary-opacity,1)}.svg-inline--fa.sc-icon-asset mask.sc-icon-asset .fa-primary.sc-icon-asset,.svg-inline--fa.sc-icon-asset mask.sc-icon-asset .fa-secondary.sc-icon-asset{fill:#000}.fad.fa-inverse.sc-icon-asset{color:#fff}h1.sc-icon-asset,h2.sc-icon-asset,h3.sc-icon-asset,h4.sc-icon-asset,h5.sc-icon-asset,h6.sc-icon-asset,p.sc-icon-asset,ul.sc-icon-asset,li.sc-icon-asset,ptc-subnav.sc-icon-asset,ptc-tab-list.sc-icon-asset,ptc-link.sc-icon-asset,ptc-square-card.sc-icon-asset,.hyphenate-text.sc-icon-asset,ptc-footer.sc-icon-asset{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1.sc-icon-asset,h2.sc-icon-asset,h3.sc-icon-asset,h4.sc-icon-asset,h5.sc-icon-asset,h6.sc-icon-asset,p.sc-icon-asset,ul.sc-icon-asset,li.sc-icon-asset,ptc-subnav.sc-icon-asset,ptc-tab-list.sc-icon-asset,ptc-link.sc-icon-asset,ptc-square-card.sc-icon-asset,.hyphenate-text.sc-icon-asset,ptc-footer.sc-icon-asset{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}}icon-asset.sc-icon-asset{vertical-align:middle}svg.sc-icon-asset{transition:all var(--ptc-transition-medium) var(--ptc-ease-inout)}svg.micro.sc-icon-asset{width:calc(var(--ptc-font-size-x-small) / 2);height:calc(var(--ptc-font-size-x-small) / 2)}svg.xxx-small.sc-icon-asset{width:var(--ptc-font-size-xxx-small);height:var(--ptc-font-size-xxx-small)}svg.xx-small.sc-icon-asset{width:var(--ptc-font-size-xx-small);height:var(--ptc-font-size-xx-small)}svg.x-small.sc-icon-asset{width:var(--ptc-font-size-x-small);height:var(--ptc-font-size-x-small)}svg.small.sc-icon-asset{width:var(--ptc-font-size-small);height:var(--ptc-font-size-small)}svg.medium.sc-icon-asset{width:var(--ptc-font-size-medium);height:var(--ptc-font-size-medium)}svg.large.sc-icon-asset{width:var(--ptc-font-size-large);height:var(--ptc-font-size-large)}svg.x-large.sc-icon-asset{width:var(--ptc-font-size-x-large);height:var(--ptc-font-size-x-large)}svg.xx-large.sc-icon-asset{width:var(--ptc-font-size-xx-large);height:var(--ptc-font-size-xx-large)}svg.xxx-large.sc-icon-asset{width:var(--ptc-font-size-xxx-large);height:var(--ptc-font-size-xxx-large)}svg.xxxx-large.sc-icon-asset{width:var(--ptc-font-size-xxxx-large);height:var(--ptc-font-size-xxxx-large)}svg.white.sc-icon-asset{fill:var(--color-white)}svg.white.sc-icon-asset use[href$=\"#minus\"].sc-icon-asset,svg.white.sc-icon-asset use[href$=\"#plus\"].sc-icon-asset,svg.white.sc-icon-asset use[href$=\"#checkmark\"].sc-icon-asset{stroke:var(--color-white)}svg.black.sc-icon-asset{fill:var(--color-black)}svg.black.sc-icon-asset use[href$=\"#minus\"].sc-icon-asset,svg.black.sc-icon-asset use[href$=\"#plus\"].sc-icon-asset,svg.black.sc-icon-asset use[href$=\"#checkmark\"].sc-icon-asset{stroke:var(--color-black)}svg.ptc-green.sc-icon-asset{fill:var(--color-green-07)}svg.ptc-green.sc-icon-asset use[href$=\"#minus\"].sc-icon-asset,svg.ptc-green.sc-icon-asset use[href$=\"#plus\"].sc-icon-asset,svg.ptc-green.sc-icon-asset use[href$=\"#checkmark\"].sc-icon-asset{stroke:var(--color-green-07)}svg.gray.sc-icon-asset{fill:var(--color-gray-06)}svg.gray.sc-icon-asset use[href$=\"#minus\"].sc-icon-asset,svg.gray.sc-icon-asset use[href$=\"#plus\"].sc-icon-asset,svg.gray.sc-icon-asset use[href$=\"#checkmark\"].sc-icon-asset{stroke:var(--color-gray-06)}svg.light-gray.sc-icon-asset{fill:var(--color-gray-05)}svg.light-gray.sc-icon-asset use[href$=\"#minus\"].sc-icon-asset,svg.light-gray.sc-icon-asset use[href$=\"#plus\"].sc-icon-asset,svg.light-gray.sc-icon-asset use[href$=\"#checkmark\"].sc-icon-asset{stroke:var(--color-gray-05)}svg.primary-gray.sc-icon-asset{fill:var(--color-gray-10)}svg.inherit.sc-icon-asset{fill:inherit}svg.inherit.sc-icon-asset use[href$=\"#minus\"].sc-icon-asset,svg.inherit.sc-icon-asset use[href$=\"#plus\"].sc-icon-asset,svg.inherit.sc-icon-asset use[href$=\"#checkmark\"].sc-icon-asset{stroke:inherit}svg.sc-icon-asset:focus{outline:none !important}svg[tabIndex=\"0\"].sc-icon-asset:focus-visible{border-radius:var(--ptc-border-radius-standard);outline:5px solid var(--keyboard-nav-outline)}svg[tabIndex=\"0\"].sc-icon-asset:focus{outline:none !important}";
|
|
8
|
-
|
|
9
|
-
const IconAsset = class {
|
|
10
|
-
constructor(hostRef) {
|
|
11
|
-
index.registerInstance(this, hostRef);
|
|
12
|
-
this.ready = index.createEvent(this, "ready", 7);
|
|
13
|
-
this.regularSprite = index.getAssetPath('./media/regular.svg');
|
|
14
|
-
this.solidSprite = index.getAssetPath('./media/solid.svg');
|
|
15
|
-
this.brandSprite = index.getAssetPath('./media/brands.svg');
|
|
16
|
-
this.ptcSprite = index.getAssetPath('./media/designer-v6.0.6.svg');
|
|
17
|
-
this.name = undefined;
|
|
18
|
-
this.size = 'xx-small';
|
|
19
|
-
this.type = 'regular';
|
|
20
|
-
this.spin = '';
|
|
21
|
-
this.pulse = '';
|
|
22
|
-
this.color = 'default';
|
|
23
|
-
this.isMobileSelect = undefined;
|
|
24
|
-
this.injectedStyle = undefined;
|
|
25
|
-
this.focusOn = false;
|
|
26
|
-
this.trackerId = "";
|
|
27
|
-
}
|
|
28
|
-
componentDidLoad() {
|
|
29
|
-
this.ready.emit({
|
|
30
|
-
'regular-icons': this.regularSprite,
|
|
31
|
-
'sold-icons': this.solidSprite,
|
|
32
|
-
'brand-icons': this.brandSprite,
|
|
33
|
-
'ptc-icons': this.ptcSprite
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
render() {
|
|
37
|
-
const classMap = this.getCssClassMap();
|
|
38
|
-
if (this.type == 'brands') {
|
|
39
|
-
return (index.h(index.Host, null, this.injectedStyle && index.h("style", null, this.injectedStyle), index.h("svg", { class: classMap }, index.h("use", { href: `${this.brandSprite}#${this.name}` }))));
|
|
40
|
-
}
|
|
41
|
-
else if (this.type == 'solid') {
|
|
42
|
-
return (index.h(index.Host, null, this.injectedStyle && index.h("style", null, this.injectedStyle), index.h("svg", { class: classMap }, index.h("use", { href: `${this.solidSprite}#${this.name}` }))));
|
|
43
|
-
}
|
|
44
|
-
else if (this.type == 'ptc') {
|
|
45
|
-
return (index.h(index.Host, null, this.injectedStyle && index.h("style", null, this.injectedStyle), index.h("svg", { class: classMap, "aria-hidden": this.isMobileSelect && "true", tabindex: this.focusOn ? 0 : -1, id: this.trackerId }, index.h("use", { href: `${this.ptcSprite}#${this.name}` }))));
|
|
46
|
-
}
|
|
47
|
-
else {
|
|
48
|
-
return (index.h(index.Host, null, this.injectedStyle && index.h("style", null, this.injectedStyle), index.h("svg", { class: classMap }, index.h("use", { href: `${this.regularSprite}#${this.name}` }))));
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
getCssClassMap() {
|
|
52
|
-
return {
|
|
53
|
-
[this.size]: true,
|
|
54
|
-
[this.spin]: true,
|
|
55
|
-
[this.pulse]: true,
|
|
56
|
-
[this.color]: true,
|
|
57
|
-
['ismobileselect']: this.isMobileSelect ? true : false,
|
|
58
|
-
['mf-listen']: this.trackerId !== "" ? true : false
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
static get assetsDirs() { return ["media"]; }
|
|
62
|
-
};
|
|
63
|
-
IconAsset.style = iconAssetCss;
|
|
64
|
-
|
|
65
|
-
exports.icon_asset = IconAsset;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-63ddc79c.js');
|
|
6
|
-
|
|
7
|
-
const listItemCss = "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(.list-primary){display:block}:host(.flush-before) li::before{content:\"\" !important}:host(.breadcrumb){display:inline-block}:host(.breadcrumb) li{position:relative;display:inline-block;color:var(--color-white);font-weight:var(--ptc-font-weight-bold);font-size:var(--ptc-font-size-xxx-small);line-height:var(--ptc-line-height-densest);display:flex;align-items:baseline}:host(.breadcrumb) li::before{content:\"/\";top:0;left:0;margin-left:2px}:host(.breadcrumb) li a.item-link{color:var(--color-white);font-weight:var(--ptc-font-weight-bold) !important;font-size:var(--ptc-font-size-xxx-small) !important;line-height:var(--ptc-line-height-densest);text-decoration:underline;text-decoration-color:transparent;text-underline-offset:2px;text-decoration-thickness:1px;outline:none;transition:text-decoration-color var(--ptc-transition-medium) var(--ptc-ease-inout)}:host(.breadcrumb) li a.item-link:hover{text-decoration:underline;text-decoration-color:var(--color-green-07);outline:none}:host(.breadcrumb) li a.item-link:focus-visible{transition:none;border-radius:var(--ptc-border-radius-standard);border:2px solid white;outline:5px solid var(--keyboard-nav-outline);padding-bottom:5px;padding-right:5px}:host(.breadcrumb-center) li{display:inline}:host(.list-green){display:block;margin-bottom:16px}:host(.list-green) li a{font-size:var(--ptc-font-size-xx-small);color:var(--color-gray-10);text-decoration:underline;text-decoration-thickness:1.5px;text-decoration-color:var(--color-green-04);font-weight:var(--ptc-font-weight-bold);transition:color var(--ptc-transition-medium) var(--ptc-ease-inout);line-height:var(--ptc-line-height-p);text-underline-offset:4px}:host(.list-green) li a:hover{color:var(--color-green-04)}:host(:not(.flush-before)) li::before{margin-right:2px}:host(.list-footer) li{display:inline-block;font-size:var(--ptc-font-size-xx-small);font-weight:var(--ptc-font-weight-regular);font-style:normal;font-stretch:normal;line-height:var(--ptc-line-height-denser);letter-spacing:normal;color:var(--color-white);margin:0 0.5rem}:host(.list-footer) li a{color:var(--color-white-grey);border-bottom:1px solid transparent;display:inline-block;text-decoration:none}:host(.list-footer) li a:hover,:host(.list-footer) li a:focus{text-decoration:none;border-bottom:1px solid var(--color-green-06);color:var(--color-white-grey);transition:border var(--ptc-ease-inout) var(--ptc-transition-medium)}:host(.list-footer) li a:active{text-decoration:none;border-bottom:1px solid var(--color-green-06);color:var(--color-white-grey)}:host(.list-footer) li a:focus{outline:3px solid var(--color-blue-07);outline-offset:2px;border-radius:var(--ptc-border-radius-standard);text-decoration:none;border-color:transparent !important}:host(.list-footer) li a:focus-visible{border-radius:var(--ptc-border-radius-standard);border:2px solid white;outline:5px solid var(--keyboard-nav-outline);transition:none !important;border-color:white !important}:host(.white) li{color:var(--color-white)}:host(.white) li a.item-link{color:var(--color-white)}:host(.light-gray) li{color:var(--color-gray-01)}:host(.light-gray) li a.item-link{color:var(--color-gray-01)}:host(.primary-gray) li{color:var(--color-gray-10)}:host(.primary-gray) li a.item-link{color:var(--color-gray-10)}:host(.list-underline) li{color:var(--color-gray-10);list-style:none;text-decoration:underline 1px solid;text-underline-offset:2px;line-height:var(--ptc-line-height-p)}:host(.list-underline) li a{display:inline-block;padding:4px 0}:host(.list-underline) li a.item-link{color:var(--color-gray-10)}:host li .has-before-home-icon{display:block}@media only screen and (min-width: 480px){:host li .has-before-home-icon{display:none}}";
|
|
8
|
-
|
|
9
|
-
const ListItem = class {
|
|
10
|
-
constructor(hostRef) {
|
|
11
|
-
index.registerInstance(this, hostRef);
|
|
12
|
-
this.listType = 'list-primary';
|
|
13
|
-
this.linkHref = undefined;
|
|
14
|
-
this.flushBefore = false;
|
|
15
|
-
this.linkTarget = '_self';
|
|
16
|
-
this.hasBeforeHomeIcon = false;
|
|
17
|
-
this.trackerId = undefined;
|
|
18
|
-
this.color = undefined;
|
|
19
|
-
this.styles = undefined;
|
|
20
|
-
this.ariaLabel = '';
|
|
21
|
-
}
|
|
22
|
-
render() {
|
|
23
|
-
const classMap = this.getCssClassMap();
|
|
24
|
-
return (index.h(index.Host, { class: classMap }, this.styles && index.h("style", null, this.styles), index.h("li", { id: this.trackerId }, this.linkHref ? (index.h("a", Object.assign({ class: "item-link", target: this.linkTarget }, (this.linkHref ? { href: this.linkHref } : {}), (this.ariaLabel !== '' ? { 'aria-label': this.ariaLabel } : {}), { tabindex: "0" }), index.h("slot", null))) : (index.h("slot", null)))));
|
|
25
|
-
}
|
|
26
|
-
getCssClassMap() {
|
|
27
|
-
let bcEnable = false;
|
|
28
|
-
if (this.hostElement && this.hostElement.parentElement) {
|
|
29
|
-
try {
|
|
30
|
-
bcEnable = (this.hostElement.parentElement.classList.contains('center') && this.hostElement.parentElement.tagName === 'PTC-BREADCRUMB');
|
|
31
|
-
}
|
|
32
|
-
catch (err) {
|
|
33
|
-
console.log(err);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
return {
|
|
37
|
-
[this.listType]: true,
|
|
38
|
-
['flush-before']: this.flushBefore ? true : false,
|
|
39
|
-
[this.color]: !!this.color ? true : false,
|
|
40
|
-
['breadcrumb-center']: bcEnable,
|
|
41
|
-
['mf-listen']: true
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
get hostElement() { return index.getElement(this); }
|
|
45
|
-
};
|
|
46
|
-
ListItem.style = listItemCss;
|
|
47
|
-
|
|
48
|
-
exports.list_item = ListItem;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-63ddc79c.js');
|
|
6
|
-
|
|
7
|
-
const ptcBreadcrumbCss = "h1.sc-ptc-breadcrumb,h2.sc-ptc-breadcrumb,h3.sc-ptc-breadcrumb,h4.sc-ptc-breadcrumb,h5.sc-ptc-breadcrumb,h6.sc-ptc-breadcrumb,p.sc-ptc-breadcrumb,ul.sc-ptc-breadcrumb,li.sc-ptc-breadcrumb,ptc-subnav.sc-ptc-breadcrumb,ptc-tab-list.sc-ptc-breadcrumb,ptc-link.sc-ptc-breadcrumb,ptc-square-card.sc-ptc-breadcrumb,.hyphenate-text.sc-ptc-breadcrumb,ptc-footer.sc-ptc-breadcrumb{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1.sc-ptc-breadcrumb,h2.sc-ptc-breadcrumb,h3.sc-ptc-breadcrumb,h4.sc-ptc-breadcrumb,h5.sc-ptc-breadcrumb,h6.sc-ptc-breadcrumb,p.sc-ptc-breadcrumb,ul.sc-ptc-breadcrumb,li.sc-ptc-breadcrumb,ptc-subnav.sc-ptc-breadcrumb,ptc-tab-list.sc-ptc-breadcrumb,ptc-link.sc-ptc-breadcrumb,ptc-square-card.sc-ptc-breadcrumb,.hyphenate-text.sc-ptc-breadcrumb,ptc-footer.sc-ptc-breadcrumb{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}}.sc-ptc-breadcrumb-h{margin-top:var(--ptc-element-spacing-05);display:flex;align-items:flex-start}.sc-ptc-breadcrumb-h .visually-hidden.sc-ptc-breadcrumb{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0}.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb{position:relative;list-style:none;margin:0;padding:0 0 0 22px}.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb{position:relative;display:inline;font-weight:var(--ptc-font-weight-bold);font-size:var(--ptc-font-size-xxx-small);line-height:var(--ptc-line-height-densest);word-break:initial;color:var(--color-white)}.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb::before{content:\"/\";margin:0 3px}.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.home-link.sc-ptc-breadcrumb{position:absolute;left:0;margin-top:-3px}.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.home-link.sc-ptc-breadcrumb::before{display:none}.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb a.sc-ptc-breadcrumb{font-weight:var(--ptc-font-weight-bold) !important;font-size:var(--ptc-font-size-xxx-small) !important;line-height:var(--ptc-line-height-densest);text-decoration:underline;text-decoration-color:transparent;text-underline-offset:2px;text-decoration-thickness:1px;outline:none;transition:text-decoration-color var(--ptc-transition-medium) var(--ptc-ease-inout);color:var(--color-white)}.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb a.sc-ptc-breadcrumb:active{transition:none}.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb a.sc-ptc-breadcrumb:hover{text-decoration:underline;text-decoration-color:var(--color-green-07);outline:none}.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb a.breadcrumb-item-link.sc-ptc-breadcrumb:focus-visible{border-radius:var(--ptc-border-radius-standard);border:2px solid white;outline:5px solid var(--keyboard-nav-outline);display:inline-block}.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb a.breadcrumb-item-link.sc-ptc-breadcrumb:focus-visible.dark-mode-link:focus-visible{border-radius:var(--ptc-border-radius-standard);outline:5px solid var(--keyboard-nav-outline)}.white.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb{color:var(--color-white)}.white.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb a.sc-ptc-breadcrumb{color:var(--color-white)}.black.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb{color:var(--color-black)}.black.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb a.sc-ptc-breadcrumb{color:var(--color-black)}.ptc-green.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb{color:var(--color-green-07)}.ptc-green.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb a.sc-ptc-breadcrumb{color:var(--color-green-07)}.gray.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb{color:var(--color-gray-06)}.gray.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb a.sc-ptc-breadcrumb{color:var(--color-gray-06)}.light-gray.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb{color:var(--color-gray-05)}.light-gray.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb a.sc-ptc-breadcrumb{color:var(--color-gray-05)}.primary-gray.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb{color:var(--color-gray-10)}.primary-gray.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb a.sc-ptc-breadcrumb{color:var(--color-gray-10)}.left.sc-ptc-breadcrumb-h{display:flex;justify-content:flex-start;align-items:flex-end}.center.sc-ptc-breadcrumb-h{display:flex;justify-content:center}.center.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb{padding:0;text-align:center}.center.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.sc-ptc-breadcrumb{display:inline-block}.center.sc-ptc-breadcrumb-h .ptc-breadcrumb-ol.sc-ptc-breadcrumb li.home-link.sc-ptc-breadcrumb{position:relative;left:auto;margin-top:0;vertical-align:text-bottom;margin-bottom:-1px}.right.sc-ptc-breadcrumb-h{display:flex;justify-content:flex-end}.remove-top-margin.sc-ptc-breadcrumb-h{margin-top:0px !important}";
|
|
8
|
-
|
|
9
|
-
const PtcBreadcrumb = class {
|
|
10
|
-
constructor(hostRef) {
|
|
11
|
-
index.registerInstance(this, hostRef);
|
|
12
|
-
this.position = undefined;
|
|
13
|
-
this.removeTopMargin = false;
|
|
14
|
-
this.color = 'white';
|
|
15
|
-
this.isDarkMode = false;
|
|
16
|
-
this.styles = undefined;
|
|
17
|
-
}
|
|
18
|
-
componentWillLoad() {
|
|
19
|
-
this.listItems = this.hostElement.querySelectorAll('list-item');
|
|
20
|
-
}
|
|
21
|
-
componentDidLoad() {
|
|
22
|
-
if (this.listItems) {
|
|
23
|
-
this.hostElement.querySelectorAll('list-item').forEach((item) => {
|
|
24
|
-
item.remove();
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
render() {
|
|
29
|
-
const classMap = this.getCssClassMap();
|
|
30
|
-
return (index.h(index.Host, { class: classMap }, this.styles && index.h("style", null, this.styles), index.h("nav", { "aria-label": "Breadcrumb" }, index.h("ol", { class: "ptc-breadcrumb-ol" }, index.h("li", { class: 'home-link mf-listen', id: "homeLinkID" }, index.h("a", { href: "/", "aria-label": "Home Link", class: { ['breadcrumb-item-link']: true, ['dark-mode-link']: this.isDarkMode } }, index.h("icon-asset", { type: "ptc", size: "medium", name: "icon-home", color: this.color }))), Array.from(this.listItems).map((item, index$1, array) => {
|
|
31
|
-
const textContent = item.textContent.trim();
|
|
32
|
-
const href = item.getAttribute('link-href');
|
|
33
|
-
return (index.h("li", { key: index$1, class: "mf-listen", id: `breadcrumb` + index$1 + `ID` }, index$1 < array.length - 1 ? (index.h("a", { href: href, target: '_self', class: { ['breadcrumb-item-link']: true, ['dark-mode-link']: this.isDarkMode } }, textContent)) : (textContent), index.h("span", { class: "visually-hidden" }, "/")));
|
|
34
|
-
})))));
|
|
35
|
-
}
|
|
36
|
-
getCssClassMap() {
|
|
37
|
-
return {
|
|
38
|
-
[this.position]: !!this.position && this.position !== undefined ? true : false,
|
|
39
|
-
['remove-top-margin']: this.removeTopMargin ? true : false,
|
|
40
|
-
[this.color]: true
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
get hostElement() { return index.getElement(this); }
|
|
44
|
-
};
|
|
45
|
-
PtcBreadcrumb.style = ptcBreadcrumbCss;
|
|
46
|
-
|
|
47
|
-
exports.ptc_breadcrumb = PtcBreadcrumb;
|