xv-webcomponents 0.1.37 → 0.1.39
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/app-globals-V2Kpy_OQ.js +8 -0
- package/dist/cjs/app-globals-V2Kpy_OQ.js.map +1 -0
- package/dist/cjs/{utils-22c0eda0.js → index-BE3kw7I4.js} +2 -1
- package/dist/cjs/index-BE3kw7I4.js.map +1 -0
- package/dist/cjs/{index-2705073a.js → index-D41mMXvd.js} +35 -38
- package/dist/cjs/index-D41mMXvd.js.map +1 -0
- package/dist/cjs/index.cjs.js +3 -4
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +4 -5
- package/dist/cjs/loader.cjs.js.map +1 -1
- package/dist/cjs/{xv-accordion-v2_26.cjs.entry.js → xv-accordion-v2_27.cjs.entry.js} +167 -103
- package/dist/cjs/xv-accordion-v2_27.cjs.entry.js.map +1 -0
- package/dist/cjs/xv-breadcrumbs-v2.cjs.entry.js +3 -5
- package/dist/cjs/xv-breadcrumbs-v2.cjs.entry.js.map +1 -1
- package/dist/cjs/xv-breadcrumbs-v2.entry.cjs.js.map +1 -0
- package/dist/cjs/xv-webcomponents.cjs.js +8 -7
- package/dist/cjs/xv-webcomponents.cjs.js.map +1 -1
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/xv-accordion/xv-accordion.js +3 -3
- package/dist/collection/components/xv-accordion-item/xv-accordion-item.js +3 -3
- package/dist/collection/components/xv-button/xv-button.js +5 -5
- package/dist/collection/components/xv-card/xv-card.js +5 -5
- package/dist/collection/components/xv-checkbox/xv-checkbox.js +11 -11
- package/dist/collection/components/xv-dropdown/xv-dropdown-item/xv-dropdown-item.js +3 -3
- package/dist/collection/components/xv-dropdown/xv-dropdown.js +12 -12
- package/dist/collection/components/xv-header/xv-header.js +10 -2
- package/dist/collection/components/xv-header/xv-header.js.map +1 -1
- package/dist/collection/components/xv-link/xv-link.js +6 -6
- package/dist/collection/components/xv-loader/xv-loader.js +3 -3
- package/dist/collection/components/xv-login-modal/xv-login-modal.css +22575 -0
- package/dist/collection/components/xv-login-modal/xv-login-modal.js +146 -0
- package/dist/collection/components/xv-login-modal/xv-login-modal.js.map +1 -0
- package/dist/collection/components/xv-modal/xv-modal.js +5 -5
- package/dist/collection/components/xv-notification/xv-notification.js +3 -3
- package/dist/collection/components/xv-overflow-menu/xv-overflow-menu-item/xv-overflow-menu-item.js +4 -4
- package/dist/collection/components/xv-overflow-menu/xv-overflow-menu.js +5 -5
- package/dist/collection/components/xv-progress-indicator/xv-progress-indicator-item/xv-progress-indicator-item.js +2 -2
- package/dist/collection/components/xv-progress-indicator/xv-progress-indicator.js +4 -4
- package/dist/collection/components/xv-table/xv-table-cell/xv-table-cell.js +5 -5
- package/dist/collection/components/xv-table/xv-table-expand/xv-table-expand.js +3 -3
- package/dist/collection/components/xv-table/xv-table-row/xv-table-row.js +11 -11
- package/dist/collection/components/xv-table/xv-table.js +5 -4
- package/dist/collection/components/xv-table/xv-table.js.map +1 -1
- package/dist/collection/components/xv-tabs/xv-tab/xv-tab.js +5 -5
- package/dist/collection/components/xv-tabs/xv-tabs.js +4 -4
- package/dist/collection/components/xv-tag/xv-tag.js +6 -6
- package/dist/collection/components/xv-text-input/xv-text-input.js +11 -11
- package/dist/collection/components/xv-tooltip/xv-tooltip.js +4 -4
- package/dist/esm/app-globals-DQuL1Twl.js +6 -0
- package/dist/esm/app-globals-DQuL1Twl.js.map +1 -0
- package/dist/esm/{index-a650cb06.js → index-Datpns0U.js} +33 -16
- package/dist/esm/index-Datpns0U.js.map +1 -0
- package/dist/esm/{utils-a9c71376.js → index-NvoCloOY.js} +3 -2
- package/dist/esm/index-NvoCloOY.js.map +1 -0
- package/dist/esm/index.js +2 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +5 -4
- package/dist/esm/loader.js.map +1 -1
- package/dist/esm/{xv-accordion-v2_26.entry.js → xv-accordion-v2_27.entry.js} +156 -91
- package/dist/esm/xv-accordion-v2_27.entry.js.map +1 -0
- package/dist/esm/xv-breadcrumbs-v2.entry.js +3 -3
- package/dist/esm/xv-breadcrumbs-v2.entry.js.map +1 -1
- package/dist/esm/xv-webcomponents.js +7 -5
- package/dist/esm/xv-webcomponents.js.map +1 -1
- package/dist/types/components/xv-header/xv-header.d.ts +3 -0
- package/dist/types/components/xv-login-modal/xv-login-modal.d.ts +29 -0
- package/dist/types/components.d.ts +31 -24
- package/dist/types/stencil-public-runtime.d.ts +22 -0
- package/dist/xv-webcomponents/index.esm.js +1 -1
- package/dist/xv-webcomponents/index.esm.js.map +1 -1
- package/dist/xv-webcomponents/loader.esm.js.map +1 -0
- package/dist/xv-webcomponents/p-054f5d59.entry.js +2 -0
- package/dist/xv-webcomponents/p-054f5d59.entry.js.map +1 -0
- package/dist/xv-webcomponents/p-6a4cc790.entry.js +2 -0
- package/dist/xv-webcomponents/p-6a4cc790.entry.js.map +1 -0
- package/dist/xv-webcomponents/p-DQuL1Twl.js +2 -0
- package/dist/xv-webcomponents/p-DQuL1Twl.js.map +1 -0
- package/dist/xv-webcomponents/p-Datpns0U.js +3 -0
- package/dist/xv-webcomponents/p-Datpns0U.js.map +1 -0
- package/dist/xv-webcomponents/{p-f98a1845.js → p-NvoCloOY.js} +2 -2
- package/dist/xv-webcomponents/p-NvoCloOY.js.map +1 -0
- package/dist/xv-webcomponents/xv-breadcrumbs-v2.entry.esm.js.map +1 -0
- package/dist/xv-webcomponents/xv-webcomponents.esm.js +1 -1
- package/dist/xv-webcomponents/xv-webcomponents.esm.js.map +1 -1
- package/package.json +2 -2
- package/dist/cjs/app-globals-3a1e7e63.js +0 -7
- package/dist/cjs/app-globals-3a1e7e63.js.map +0 -1
- package/dist/cjs/index-2705073a.js.map +0 -1
- package/dist/cjs/utils-22c0eda0.js.map +0 -1
- package/dist/cjs/xv-accordion-v2_26.cjs.entry.js.map +0 -1
- package/dist/esm/app-globals-0f993ce5.js +0 -5
- package/dist/esm/app-globals-0f993ce5.js.map +0 -1
- package/dist/esm/index-a650cb06.js.map +0 -1
- package/dist/esm/utils-a9c71376.js.map +0 -1
- package/dist/esm/xv-accordion-v2_26.entry.js.map +0 -1
- package/dist/xv-webcomponents/p-0658a38e.entry.js +0 -2
- package/dist/xv-webcomponents/p-0658a38e.entry.js.map +0 -1
- package/dist/xv-webcomponents/p-497959a9.js +0 -3
- package/dist/xv-webcomponents/p-497959a9.js.map +0 -1
- package/dist/xv-webcomponents/p-e1255160.js +0 -2
- package/dist/xv-webcomponents/p-e1255160.js.map +0 -1
- package/dist/xv-webcomponents/p-ea853c5c.entry.js +0 -2
- package/dist/xv-webcomponents/p-ea853c5c.entry.js.map +0 -1
- package/dist/xv-webcomponents/p-f98a1845.js.map +0 -1
- package/loader/package.json +0 -11
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
export class XvLoginModal {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.visible = false;
|
|
5
|
+
this.oauthProviders = [];
|
|
6
|
+
this.bookNow = false;
|
|
7
|
+
this.returnUrl = '/';
|
|
8
|
+
this.passwordLoginEnabled = true;
|
|
9
|
+
this.oauthLoginEnabled = true;
|
|
10
|
+
this.passwordRegistrationEnabled = true;
|
|
11
|
+
this.configurationName = 'Xv';
|
|
12
|
+
this.xvMvcConfigName = 'Xv';
|
|
13
|
+
this.contactUrl = 'https://sitefinity-qa.crossvertise.com/ueber-uns/kontakt';
|
|
14
|
+
this.handleClose = () => {
|
|
15
|
+
this.close.emit();
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
componentWillLoad() {
|
|
19
|
+
this.setReturnUrl();
|
|
20
|
+
this.readMetaNavCookie();
|
|
21
|
+
this.oauthProviders = [
|
|
22
|
+
{
|
|
23
|
+
displayName: 'Google',
|
|
24
|
+
providerName: 'Google',
|
|
25
|
+
icon: 'fa fa-google',
|
|
26
|
+
buttonClass: 'btn btn-block btn-google-primary btn-primary',
|
|
27
|
+
},
|
|
28
|
+
];
|
|
29
|
+
}
|
|
30
|
+
setReturnUrl() {
|
|
31
|
+
const params = new URLSearchParams(window.location.search);
|
|
32
|
+
let url = params.get('returnUrl') || window.location.href;
|
|
33
|
+
if (url.toLowerCase().includes('resetpassword')) {
|
|
34
|
+
url = '/';
|
|
35
|
+
}
|
|
36
|
+
this.returnUrl = url;
|
|
37
|
+
}
|
|
38
|
+
readMetaNavCookie() {
|
|
39
|
+
const metaNavCookie = document.cookie
|
|
40
|
+
.split('; ')
|
|
41
|
+
.find(row => row.startsWith('metaNav='));
|
|
42
|
+
if (!metaNavCookie)
|
|
43
|
+
return;
|
|
44
|
+
try {
|
|
45
|
+
const cookieValue = decodeURIComponent(metaNavCookie.split('=')[1]);
|
|
46
|
+
const metaNavObj = JSON.parse(cookieValue);
|
|
47
|
+
this.passwordLoginEnabled = !!metaNavObj.PasswordLoginEnabled;
|
|
48
|
+
this.oauthLoginEnabled = !!metaNavObj.oauthLoginEnabled;
|
|
49
|
+
this.passwordRegistrationEnabled = !!metaNavObj.PasswordRegistrationEnabled;
|
|
50
|
+
this.configurationName = metaNavObj.ConfigurationName;
|
|
51
|
+
this.xvMvcConfigName = metaNavObj.XvMvcConfigName;
|
|
52
|
+
this.contactUrl = metaNavObj.ContactUrl;
|
|
53
|
+
}
|
|
54
|
+
catch (e) {
|
|
55
|
+
console.warn('Could not parse metaNav cookie:', e);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
renderPasswordLogin() {
|
|
59
|
+
if (!this.passwordLoginEnabled)
|
|
60
|
+
return null;
|
|
61
|
+
return (h("label", { class: "pull-right spacer" }, h("a", { href: "/de-de/mycrossvertise/account/lostpassword", target: "_blank", rel: "noopener" }, "Passwort vergessen?")));
|
|
62
|
+
}
|
|
63
|
+
renderOAuthProviders() {
|
|
64
|
+
if (!this.oauthLoginEnabled)
|
|
65
|
+
return null;
|
|
66
|
+
return (h("div", { class: "row" }, h("div", { class: "col-xs-12" }, h("div", { class: "col-xs-12" }, h("div", { class: "row spacer spacer-bottom" }, h("div", { class: "col-xs-5" }, h("hr", null)), h("div", { class: "col-xs-2 text-center placeholder" }, "oder"), h("div", { class: "col-xs-5" }, h("hr", null)), h("div", { class: "col-xs-12" }, h("span", null, "Alternative Anmeldung:")))), h("div", { class: "col-sm-12" }, h("div", { class: "col-xs-12 no-padding-right" }, h("form", { method: "POST", class: "spacer", action: "/de-de/mycrossvertise/account/externallogin" }, h("div", { class: "row" }, this.oauthProviders.map(provider => (h("div", { class: "col-xs-6 col-sm-3 no-padding-left padding-bottom-10 center-cell" }, h("button", { type: "submit", style: { maxWidth: '125px' }, name: "provider", class: `cell-content btn btn-primary ${provider.buttonClass} btn-block`, value: provider.providerName, title: `Mit ${provider.displayName} anmelden` }, h("i", { class: `${provider.icon} pull-left` }), h("span", null, provider.displayName)))))), h("input", { type: "hidden", name: "BookNow", value: this.bookNow.toString() })))))));
|
|
67
|
+
}
|
|
68
|
+
renderFooter() {
|
|
69
|
+
if (!this.passwordRegistrationEnabled && this.configurationName !== this.xvMvcConfigName)
|
|
70
|
+
return null;
|
|
71
|
+
return (h("div", { class: "modal-footer" }, h("div", { class: "col-sm-12 text-left" }, this.passwordRegistrationEnabled && (h("div", null, "Noch kein Kunde?", h("a", { href: `/de-de/mycrossvertise/account/register?returnUrl=${encodeURIComponent(this.returnUrl)}` }, "Jetzt kostenlos registrieren!"))), this.configurationName === this.xvMvcConfigName && (h("div", null, h("div", { class: "spacer" }, "Sie sind bereits registriert, k\u00F6nnen sich aber nicht einloggen?"), h("div", null, h("a", { href: this.contactUrl }, "Kontaktieren Sie uns"), ", wir k\u00FCmmern uns darum."))))));
|
|
72
|
+
}
|
|
73
|
+
render() {
|
|
74
|
+
if (!this.visible)
|
|
75
|
+
return null;
|
|
76
|
+
return (h("div", { class: "modal show", style: { display: 'block' }, id: "login-modal", tabIndex: -1, role: "dialog" }, h("div", { class: "modal-dialog", role: "document" }, h("div", { class: "modal-content" }, h("div", { class: "modal-header" }, h("div", { class: "row" }, h("div", { class: "col-sm-10" }, h("div", { class: "col-xs-12" }, h("h4", { class: "modal-title" }, "Login"))), h("div", { class: "col-xs-1 pull-right" }, h("button", { onClick: this.handleClose, type: "button", class: "close" }, h("span", { "aria-hidden": "true" }, "\u00D7"))))), h("div", { class: "modal-body" }, h("div", { class: "row" }, h("div", { class: "col-sm-12" }, h("form", { autoComplete: "off", id: "logon-modal-form", action: `/de-de/mycrossvertise/account/logon?returnUrl=${encodeURIComponent(this.returnUrl)}`, method: "post", class: "spacer" }, h("input", { type: "hidden", name: "returnUrl", value: this.returnUrl }), h("div", { class: "form-group spacer-bottom" }, h("div", { class: "control-label col-xs-12" }, h("label", { htmlFor: "LoginPopup.UserName" }, "E-Mail"), h("strong", { class: "text-danger" }, "*")), h("div", { class: "col-xs-12" }, h("input", { class: "form-control", id: "userName", name: "UserName", type: "text", tabIndex: 1 }))), h("div", { class: "form-group spacer" }, h("div", { class: "control-label col-xs-6" }, h("label", { class: "spacer", htmlFor: "LoginPopup.Password" }, "Passwort"), h("strong", { class: "text-danger spacer" }, "*")), h("div", { class: "col-xs-6" }, this.renderPasswordLogin()), h("div", { class: "col-xs-12" }, h("input", { class: "form-control", id: "password", name: "Password", type: "password", tabIndex: 2 }))), h("div", { class: "form-group spacer" }, h("div", { class: "col-xs-12" }, h("button", { class: "btn btn-primary btn-lg btn-block spacer", type: "submit", tabIndex: 3 }, "Anmelden"))), h("div", { class: "form-group" }, h("div", { class: "checkbox col-xs-12" }, h("label", { htmlFor: "RememberMe" }, h("input", { id: "RememberMe", name: "RememberMe", type: "checkbox", value: "true" }), "Angemeldet bleiben?")))))), this.renderOAuthProviders()), this.renderFooter()))));
|
|
77
|
+
}
|
|
78
|
+
static get is() { return "xv-login-modal"; }
|
|
79
|
+
static get encapsulation() { return "shadow"; }
|
|
80
|
+
static get originalStyleUrls() {
|
|
81
|
+
return {
|
|
82
|
+
"$": ["xv-login-modal.scss"]
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
static get styleUrls() {
|
|
86
|
+
return {
|
|
87
|
+
"$": ["xv-login-modal.css"]
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
static get properties() {
|
|
91
|
+
return {
|
|
92
|
+
"visible": {
|
|
93
|
+
"type": "boolean",
|
|
94
|
+
"attribute": "visible",
|
|
95
|
+
"mutable": false,
|
|
96
|
+
"complexType": {
|
|
97
|
+
"original": "boolean",
|
|
98
|
+
"resolved": "boolean",
|
|
99
|
+
"references": {}
|
|
100
|
+
},
|
|
101
|
+
"required": false,
|
|
102
|
+
"optional": false,
|
|
103
|
+
"docs": {
|
|
104
|
+
"tags": [],
|
|
105
|
+
"text": ""
|
|
106
|
+
},
|
|
107
|
+
"getter": false,
|
|
108
|
+
"setter": false,
|
|
109
|
+
"reflect": false,
|
|
110
|
+
"defaultValue": "false"
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
static get states() {
|
|
115
|
+
return {
|
|
116
|
+
"oauthProviders": {},
|
|
117
|
+
"bookNow": {},
|
|
118
|
+
"returnUrl": {},
|
|
119
|
+
"passwordLoginEnabled": {},
|
|
120
|
+
"oauthLoginEnabled": {},
|
|
121
|
+
"passwordRegistrationEnabled": {},
|
|
122
|
+
"configurationName": {},
|
|
123
|
+
"xvMvcConfigName": {},
|
|
124
|
+
"contactUrl": {}
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
static get events() {
|
|
128
|
+
return [{
|
|
129
|
+
"method": "close",
|
|
130
|
+
"name": "close",
|
|
131
|
+
"bubbles": true,
|
|
132
|
+
"cancelable": true,
|
|
133
|
+
"composed": true,
|
|
134
|
+
"docs": {
|
|
135
|
+
"tags": [],
|
|
136
|
+
"text": ""
|
|
137
|
+
},
|
|
138
|
+
"complexType": {
|
|
139
|
+
"original": "void",
|
|
140
|
+
"resolved": "void",
|
|
141
|
+
"references": {}
|
|
142
|
+
}
|
|
143
|
+
}];
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
//# sourceMappingURL=xv-login-modal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"xv-login-modal.js","sourceRoot":"","sources":["../../../src/components/xv-login-modal/xv-login-modal.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAc/E,MAAM,OAAO,YAAY;IALzB;QAMU,YAAO,GAAY,KAAK,CAAC;QAExB,mBAAc,GAAoB,EAAE,CAAC;QACrC,YAAO,GAAY,KAAK,CAAC;QACzB,cAAS,GAAW,GAAG,CAAC;QACxB,yBAAoB,GAAY,IAAI,CAAC;QACrC,sBAAiB,GAAY,IAAI,CAAC;QAClC,gCAA2B,GAAY,IAAI,CAAC;QAC5C,sBAAiB,GAAW,IAAI,CAAC;QACjC,oBAAe,GAAW,IAAI,CAAC;QAC/B,eAAU,GAAW,0DAA0D,CAAC;QA2CjF,gBAAW,GAAG,GAAG,EAAE;YACzB,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;QACpB,CAAC,CAAC;KAuKH;IAlNC,iBAAiB;QACf,IAAI,CAAC,YAAY,EAAE,CAAC;QACpB,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACzB,IAAI,CAAC,cAAc,GAAG;YACpB;gBACE,WAAW,EAAE,QAAQ;gBACrB,YAAY,EAAE,QAAQ;gBACtB,IAAI,EAAE,cAAc;gBACpB,WAAW,EAAE,8CAA8C;aAC5D;SACF,CAAC;IACJ,CAAC;IAEO,YAAY;QAClB,MAAM,MAAM,GAAG,IAAI,eAAe,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;QAC3D,IAAI,GAAG,GAAG,MAAM,CAAC,GAAG,CAAC,WAAW,CAAC,IAAI,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC;QAC1D,IAAI,GAAG,CAAC,WAAW,EAAE,C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C,WAAW;4CACpB,cAAQ,KAAK,EAAC,yCAAyC,EAAC,IAAI,EAAC,QAAQ,EAAC,QAAQ,EAAE,CAAC,eAExE,CACL,CACF;oCACN,WAAK,KAAK,EAAC,YAAY;wCACrB,WAAK,KAAK,EAAC,oBAAoB;4CAC7B,aAAO,OAAO,EAAC,YAAY;gDACzB,aAAO,EAAE,EAAC,YAAY,EAAC,IAAI,EAAC,YAAY,EAAC,IAAI,EAAC,UAAU,EAAC,KAAK,EAAC,MAAM,GAAG;sEAElE,CACJ,CACF,CACD,CACH,CACF;wBACL,IAAI,CAAC,oBAAoB,EAAE,CACxB;oBACL,IAAI,CAAC,YAAY,EAAE,CAChB,CACF,CACF,CACP,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Event, EventEmitter, h, Prop, State } from '@stencil/core';\n\ntype OAuthProvider = {\n displayName: string;\n providerName: string;\n icon: string;\n buttonClass: string;\n};\n\n@Component({\n tag: 'xv-login-modal',\n styleUrl: 'xv-login-modal.scss',\n shadow: true,\n})\nexport class XvLoginModal {\n @Prop() visible: boolean = false;\n @Event() close: EventEmitter<void>;\n @State() oauthProviders: OAuthProvider[] = [];\n @State() bookNow: boolean = false;\n @State() returnUrl: string = '/';\n @State() passwordLoginEnabled: boolean = true;\n @State() oauthLoginEnabled: boolean = true;\n @State() passwordRegistrationEnabled: boolean = true;\n @State() configurationName: string = 'Xv';\n @State() xvMvcConfigName: string = 'Xv';\n @State() contactUrl: string = 'https://sitefinity-qa.crossvertise.com/ueber-uns/kontakt';\n\n componentWillLoad() {\n this.setReturnUrl();\n this.readMetaNavCookie();\n this.oauthProviders = [\n {\n displayName: 'Google',\n providerName: 'Google',\n icon: 'fa fa-google',\n buttonClass: 'btn btn-block btn-google-primary btn-primary',\n },\n ];\n }\n\n private setReturnUrl() {\n const params = new URLSearchParams(window.location.search);\n let url = params.get('returnUrl') || window.location.href;\n if (url.toLowerCase().includes('resetpassword')) {\n url = '/';\n }\n this.returnUrl = url;\n }\n\n private readMetaNavCookie() {\n const metaNavCookie = document.cookie\n .split('; ')\n .find(row => row.startsWith('metaNav='));\n if (!metaNavCookie) return;\n try {\n const cookieValue = decodeURIComponent(metaNavCookie.split('=')[1]);\n const metaNavObj = JSON.parse(cookieValue);\n this.passwordLoginEnabled = !!metaNavObj.PasswordLoginEnabled;\n this.oauthLoginEnabled = !!metaNavObj.oauthLoginEnabled;\n this.passwordRegistrationEnabled = !!metaNavObj.PasswordRegistrationEnabled;\n this.configurationName = metaNavObj.ConfigurationName;\n this.xvMvcConfigName = metaNavObj.XvMvcConfigName;\n this.contactUrl = metaNavObj.ContactUrl;\n } catch (e) {\n console.warn('Could not parse metaNav cookie:', e);\n }\n }\n\n private handleClose = () => {\n this.close.emit();\n };\n\n private renderPasswordLogin() {\n if (!this.passwordLoginEnabled) return null;\n return (\n <label class=\"pull-right spacer\">\n <a href=\"/de-de/mycrossvertise/account/lostpassword\" target=\"_blank\" rel=\"noopener\">\n Passwort vergessen?\n </a>\n </label>\n );\n }\n\n private renderOAuthProviders() {\n if (!this.oauthLoginEnabled) return null;\n return (\n <div class=\"row\">\n <div class=\"col-xs-12\">\n <div class=\"col-xs-12\">\n <div class=\"row spacer spacer-bottom\">\n <div class=\"col-xs-5\"><hr /></div>\n <div class=\"col-xs-2 text-center placeholder\">oder</div>\n <div class=\"col-xs-5\"><hr /></div>\n <div class=\"col-xs-12\">\n <span>Alternative Anmeldung:</span>\n </div>\n </div>\n </div>\n <div class=\"col-sm-12\">\n <div class=\"col-xs-12 no-padding-right\">\n <form\n method=\"POST\"\n class=\"spacer\"\n action=\"/de-de/mycrossvertise/account/externallogin\"\n >\n <div class=\"row\">\n {this.oauthProviders.map(provider => (\n <div class=\"col-xs-6 col-sm-3 no-padding-left padding-bottom-10 center-cell\">\n <button\n type=\"submit\"\n style={{ maxWidth: '125px' }}\n name=\"provider\"\n class={`cell-content btn btn-primary ${provider.buttonClass} btn-block`}\n value={provider.providerName}\n title={`Mit ${provider.displayName} anmelden`}\n >\n <i class={`${provider.icon} pull-left`}></i>\n <span>{provider.displayName}</span>\n </button>\n </div>\n ))}\n </div>\n <input type=\"hidden\" name=\"BookNow\" value={this.bookNow.toString()} />\n </form>\n </div>\n </div>\n </div>\n </div>\n );\n }\n\n private renderFooter() {\n if (!this.passwordRegistrationEnabled && this.configurationName !== this.xvMvcConfigName) return null;\n return (\n <div class=\"modal-footer\">\n <div class=\"col-sm-12 text-left\">\n {this.passwordRegistrationEnabled && (\n <div>\n Noch kein Kunde?\n <a\n href={`/de-de/mycrossvertise/account/register?returnUrl=${encodeURIComponent(this.returnUrl)}`}\n >\n Jetzt kostenlos registrieren!\n </a>\n </div>\n )}\n {this.configurationName === this.xvMvcConfigName && (\n <div>\n <div class=\"spacer\">Sie sind bereits registriert, können sich aber nicht einloggen?</div>\n <div>\n <a href={this.contactUrl}>Kontaktieren Sie uns</a>, wir kümmern uns darum.\n </div>\n </div>\n )}\n </div>\n </div>\n );\n }\n\n render() {\n if (!this.visible) return null;\n return (\n <div class=\"modal show\" style={{ display: 'block' }} id=\"login-modal\" tabIndex={-1} role=\"dialog\">\n <div class=\"modal-dialog\" role=\"document\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\n <div class=\"row\">\n <div class=\"col-sm-10\">\n <div class=\"col-xs-12\">\n <h4 class=\"modal-title\">Login</h4>\n </div>\n </div>\n <div class=\"col-xs-1 pull-right\">\n <button onClick={this.handleClose} type=\"button\" class=\"close\">\n <span aria-hidden=\"true\">×</span>\n </button>\n </div>\n </div>\n </div>\n <div class=\"modal-body\">\n <div class=\"row\">\n <div class=\"col-sm-12\">\n <form\n autoComplete=\"off\"\n id=\"logon-modal-form\"\n action={`/de-de/mycrossvertise/account/logon?returnUrl=${encodeURIComponent(this.returnUrl)}`}\n method=\"post\"\n class=\"spacer\"\n >\n <input type=\"hidden\" name=\"returnUrl\" value={this.returnUrl} />\n <div class=\"form-group spacer-bottom\">\n <div class=\"control-label col-xs-12\">\n <label htmlFor=\"LoginPopup.UserName\">E-Mail</label>\n <strong class=\"text-danger\">*</strong>\n </div>\n <div class=\"col-xs-12\">\n <input class=\"form-control\" id=\"userName\" name=\"UserName\" type=\"text\" tabIndex={1} />\n </div>\n </div>\n <div class=\"form-group spacer\">\n <div class=\"control-label col-xs-6\">\n <label class=\"spacer\" htmlFor=\"LoginPopup.Password\">Passwort</label>\n <strong class=\"text-danger spacer\">*</strong>\n </div>\n <div class=\"col-xs-6\">\n {this.renderPasswordLogin()}\n </div>\n <div class=\"col-xs-12\">\n <input class=\"form-control\" id=\"password\" name=\"Password\" type=\"password\" tabIndex={2} />\n </div>\n </div>\n <div class=\"form-group spacer\">\n <div class=\"col-xs-12\">\n <button class=\"btn btn-primary btn-lg btn-block spacer\" type=\"submit\" tabIndex={3}>\n Anmelden\n </button>\n </div>\n </div>\n <div class=\"form-group\">\n <div class=\"checkbox col-xs-12\">\n <label htmlFor=\"RememberMe\">\n <input id=\"RememberMe\" name=\"RememberMe\" type=\"checkbox\" value=\"true\" />\n Angemeldet bleiben?\n </label>\n </div>\n </div>\n </form>\n </div>\n </div>\n {this.renderOAuthProviders()}\n </div>\n {this.renderFooter()}\n </div>\n </div>\n </div>\n );\n }\n}\n"]}
|
|
@@ -58,7 +58,7 @@ export class XvModal {
|
|
|
58
58
|
}
|
|
59
59
|
render() {
|
|
60
60
|
var _a;
|
|
61
|
-
return (h(Host, { key: '
|
|
61
|
+
return (h(Host, { key: 'ef15c655a4e3e5020de233c8627dbefc62ed9e56', role: "dialog", size: this.size, id: this.el.id }, h("slot", { key: '55950e9d76cd33495f14eb159d998dc11277c0f9', name: "trigger", onSlotchange: this.setupTrigger }), h("div", { key: 'f3e941dec65ec9a7093dc88a82024b6d4db6324a', class: { backdrop: true }, onClick: this.onBackdropClick }, h("div", { key: '48142d79b4de6d1aa146c8c8033a0cfbe9e166da', class: "modal" }, h("button", { key: '6e9501a2b6f69755d93740ce334bfc4a5ea78f60', class: "modal_close", onClick: this.closeModal.bind(this) }, "\u00D7"), h("div", { key: '9aadbd409cace25b8e8e8bead47b0610d756e1c4', class: "modal_header" }, h("slot", { key: '32d0f7b10974856e3806e82ffc8d971b3b25e81b', name: "header" }, ((_a = this.el) === null || _a === void 0 ? void 0 : _a.title) && h("h5", { key: '8e5ede7c5f8488adcb42a61f972562c8214aebae', class: "modal_header__title" }, this.el.title))), h("div", { key: 'd00616f0a7865d301a0b090dd91363bde4128867', class: { 'modal_content': true, overflow: this.overflow } }, h("slot", { key: 'd263d339bedadd0557e386e22c4526b98e446027' })), h("div", { key: 'cf96d19157c63b68abc85e95042a9619accd26fd', class: "modal_footer" }, h("slot", { key: '0b41d59fecf287e452d10aa6a6f4ab1a6e07f77f', name: "footer" }))))));
|
|
62
62
|
}
|
|
63
63
|
disconnectedCallback() {
|
|
64
64
|
this.removeTriggerListener();
|
|
@@ -79,6 +79,7 @@ export class XvModal {
|
|
|
79
79
|
return {
|
|
80
80
|
"open": {
|
|
81
81
|
"type": "boolean",
|
|
82
|
+
"attribute": "open",
|
|
82
83
|
"mutable": true,
|
|
83
84
|
"complexType": {
|
|
84
85
|
"original": "boolean",
|
|
@@ -93,12 +94,12 @@ export class XvModal {
|
|
|
93
94
|
},
|
|
94
95
|
"getter": false,
|
|
95
96
|
"setter": false,
|
|
96
|
-
"attribute": "open",
|
|
97
97
|
"reflect": true,
|
|
98
98
|
"defaultValue": "false"
|
|
99
99
|
},
|
|
100
100
|
"permanent": {
|
|
101
101
|
"type": "boolean",
|
|
102
|
+
"attribute": "permanent",
|
|
102
103
|
"mutable": false,
|
|
103
104
|
"complexType": {
|
|
104
105
|
"original": "boolean",
|
|
@@ -113,12 +114,12 @@ export class XvModal {
|
|
|
113
114
|
},
|
|
114
115
|
"getter": false,
|
|
115
116
|
"setter": false,
|
|
116
|
-
"attribute": "permanent",
|
|
117
117
|
"reflect": true,
|
|
118
118
|
"defaultValue": "false"
|
|
119
119
|
},
|
|
120
120
|
"size": {
|
|
121
121
|
"type": "string",
|
|
122
|
+
"attribute": "size",
|
|
122
123
|
"mutable": false,
|
|
123
124
|
"complexType": {
|
|
124
125
|
"original": "SIZE_VAR",
|
|
@@ -139,12 +140,12 @@ export class XvModal {
|
|
|
139
140
|
},
|
|
140
141
|
"getter": false,
|
|
141
142
|
"setter": false,
|
|
142
|
-
"attribute": "size",
|
|
143
143
|
"reflect": true,
|
|
144
144
|
"defaultValue": "SIZE_VAR.MD"
|
|
145
145
|
},
|
|
146
146
|
"overflow": {
|
|
147
147
|
"type": "boolean",
|
|
148
|
+
"attribute": "overflow",
|
|
148
149
|
"mutable": false,
|
|
149
150
|
"complexType": {
|
|
150
151
|
"original": "boolean",
|
|
@@ -159,7 +160,6 @@ export class XvModal {
|
|
|
159
160
|
},
|
|
160
161
|
"getter": false,
|
|
161
162
|
"setter": false,
|
|
162
|
-
"attribute": "overflow",
|
|
163
163
|
"reflect": true,
|
|
164
164
|
"defaultValue": "true"
|
|
165
165
|
}
|
|
@@ -25,7 +25,7 @@ export class XvNotification {
|
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
27
|
render() {
|
|
28
|
-
return (h(Host, { key: '
|
|
28
|
+
return (h(Host, { key: '4600f7f3594935680e104bad02663f288460b39b', class: "xv-notification", type: this.variant }, this.renderIcon(this.variant), h("div", { key: 'ffc9842337dcaba886a58fc80d96810c33a47f76', class: "content" }, h("div", { key: '1236432271bf6cb93c5bfbb0614d87c0d1fb183b', class: "content_wrapper" }, this.el.title && h("h5", { key: '10cbc18d55fe9842e31a65b814015eb66a4641af', class: "content_title" }, this.el.title), h("slot", { key: 'e127dfc35e3e6542c417ef27ab01515fd83af9f2' })), h("slot", { key: 'beb7103db214900e7833187cf6c9ee3dffc18b03', name: "footer" })), this.dismissible && h("button", { key: '791ef115a1739271ec9d87e145691ecaf18b2498', class: "close", onClick: this.closeHandle })));
|
|
29
29
|
}
|
|
30
30
|
static get is() { return "xv-notification-v2"; }
|
|
31
31
|
static get encapsulation() { return "shadow"; }
|
|
@@ -44,6 +44,7 @@ export class XvNotification {
|
|
|
44
44
|
return {
|
|
45
45
|
"variant": {
|
|
46
46
|
"type": "string",
|
|
47
|
+
"attribute": "variant",
|
|
47
48
|
"mutable": false,
|
|
48
49
|
"complexType": {
|
|
49
50
|
"original": "NOTIFICATION_VARIANTS",
|
|
@@ -64,12 +65,12 @@ export class XvNotification {
|
|
|
64
65
|
},
|
|
65
66
|
"getter": false,
|
|
66
67
|
"setter": false,
|
|
67
|
-
"attribute": "variant",
|
|
68
68
|
"reflect": true,
|
|
69
69
|
"defaultValue": "NOTIFICATION_VARIANTS.INFO"
|
|
70
70
|
},
|
|
71
71
|
"dismissible": {
|
|
72
72
|
"type": "boolean",
|
|
73
|
+
"attribute": "dismissible",
|
|
73
74
|
"mutable": false,
|
|
74
75
|
"complexType": {
|
|
75
76
|
"original": "boolean",
|
|
@@ -84,7 +85,6 @@ export class XvNotification {
|
|
|
84
85
|
},
|
|
85
86
|
"getter": false,
|
|
86
87
|
"setter": false,
|
|
87
|
-
"attribute": "dismissible",
|
|
88
88
|
"reflect": true,
|
|
89
89
|
"defaultValue": "false"
|
|
90
90
|
}
|
package/dist/collection/components/xv-overflow-menu/xv-overflow-menu-item/xv-overflow-menu-item.js
CHANGED
|
@@ -11,7 +11,7 @@ export class XvOverflowMenuItem {
|
|
|
11
11
|
this.itemClick.emit({ event, value: this.value });
|
|
12
12
|
}
|
|
13
13
|
render() {
|
|
14
|
-
return (h(Host, { key: '
|
|
14
|
+
return (h(Host, { key: 'e2cb692dfe47684c9ef1cb8cd9519126b98d3be3', class: "xv-overflow-menu-item", role: "menuitem", disabled: this.disabled }, h("slot", { key: '7202537314f9992ef86f5db66a76234d749c9e96' })));
|
|
15
15
|
}
|
|
16
16
|
static get is() { return "xv-overflow-menu-v2-item"; }
|
|
17
17
|
static get encapsulation() { return "shadow"; }
|
|
@@ -29,6 +29,7 @@ export class XvOverflowMenuItem {
|
|
|
29
29
|
return {
|
|
30
30
|
"disabled": {
|
|
31
31
|
"type": "boolean",
|
|
32
|
+
"attribute": "disabled",
|
|
32
33
|
"mutable": false,
|
|
33
34
|
"complexType": {
|
|
34
35
|
"original": "boolean",
|
|
@@ -43,12 +44,12 @@ export class XvOverflowMenuItem {
|
|
|
43
44
|
},
|
|
44
45
|
"getter": false,
|
|
45
46
|
"setter": false,
|
|
46
|
-
"attribute": "disabled",
|
|
47
47
|
"reflect": true,
|
|
48
48
|
"defaultValue": "false"
|
|
49
49
|
},
|
|
50
50
|
"value": {
|
|
51
51
|
"type": "any",
|
|
52
|
+
"attribute": "value",
|
|
52
53
|
"mutable": false,
|
|
53
54
|
"complexType": {
|
|
54
55
|
"original": "OverflowMenuEvent['value']",
|
|
@@ -69,11 +70,11 @@ export class XvOverflowMenuItem {
|
|
|
69
70
|
},
|
|
70
71
|
"getter": false,
|
|
71
72
|
"setter": false,
|
|
72
|
-
"attribute": "value",
|
|
73
73
|
"reflect": true
|
|
74
74
|
},
|
|
75
75
|
"variant": {
|
|
76
76
|
"type": "string",
|
|
77
|
+
"attribute": "variant",
|
|
77
78
|
"mutable": false,
|
|
78
79
|
"complexType": {
|
|
79
80
|
"original": "OverflowMenuVariant",
|
|
@@ -94,7 +95,6 @@ export class XvOverflowMenuItem {
|
|
|
94
95
|
},
|
|
95
96
|
"getter": false,
|
|
96
97
|
"setter": false,
|
|
97
|
-
"attribute": "variant",
|
|
98
98
|
"reflect": false,
|
|
99
99
|
"defaultValue": "OverflowMenuVariant.DEFAULT"
|
|
100
100
|
}
|
|
@@ -48,7 +48,7 @@ export class XvOverflowMenu {
|
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
render() {
|
|
51
|
-
return (h(Host, { key: '
|
|
51
|
+
return (h(Host, { key: 'b375598d3169590a82225cc37f52c573bee30c9f', class: "xv-overflow-menu", size: this.size, role: "menu", tabindex: -1 }, h("button", { key: '693ff71c2c32b5eafe680701a519560d36aadf31', class: { btn: true, open: this.open }, onClick: this.onOpenToggle, disabled: this.disabled }, h("svg", { key: '23067a22dfbab57f4840bb31a46e18b311b58316', xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 128 512" }, h("path", { key: 'f3eeded9441704b3ec6fc378bb4518595684d1be', d: "M64 368a48 48 0 1 0 0 96 48 48 0 1 0 0-96zm0-160a48 48 0 1 0 0 96 48 48 0 1 0 0-96zM112 96A48 48 0 1 0 16 96a48 48 0 1 0 96 0z" }))), h("div", { key: '9b7abc36a3b00b02d654b9bf369630164fb25d19', class: { list: true, open: this.open, [`position-${this.position}`]: true } }, h("slot", { key: '4309141f86fb81e49438d033132bc460b7386c7a' }))));
|
|
52
52
|
}
|
|
53
53
|
componentDidLoad() {
|
|
54
54
|
this.openChangeHandle();
|
|
@@ -72,6 +72,7 @@ export class XvOverflowMenu {
|
|
|
72
72
|
return {
|
|
73
73
|
"open": {
|
|
74
74
|
"type": "boolean",
|
|
75
|
+
"attribute": "open",
|
|
75
76
|
"mutable": true,
|
|
76
77
|
"complexType": {
|
|
77
78
|
"original": "boolean",
|
|
@@ -86,12 +87,12 @@ export class XvOverflowMenu {
|
|
|
86
87
|
},
|
|
87
88
|
"getter": false,
|
|
88
89
|
"setter": false,
|
|
89
|
-
"attribute": "open",
|
|
90
90
|
"reflect": true,
|
|
91
91
|
"defaultValue": "false"
|
|
92
92
|
},
|
|
93
93
|
"disabled": {
|
|
94
94
|
"type": "boolean",
|
|
95
|
+
"attribute": "disabled",
|
|
95
96
|
"mutable": false,
|
|
96
97
|
"complexType": {
|
|
97
98
|
"original": "boolean",
|
|
@@ -106,12 +107,12 @@ export class XvOverflowMenu {
|
|
|
106
107
|
},
|
|
107
108
|
"getter": false,
|
|
108
109
|
"setter": false,
|
|
109
|
-
"attribute": "disabled",
|
|
110
110
|
"reflect": true,
|
|
111
111
|
"defaultValue": "false"
|
|
112
112
|
},
|
|
113
113
|
"position": {
|
|
114
114
|
"type": "string",
|
|
115
|
+
"attribute": "position",
|
|
115
116
|
"mutable": false,
|
|
116
117
|
"complexType": {
|
|
117
118
|
"original": "'left' | 'right'",
|
|
@@ -126,12 +127,12 @@ export class XvOverflowMenu {
|
|
|
126
127
|
},
|
|
127
128
|
"getter": false,
|
|
128
129
|
"setter": false,
|
|
129
|
-
"attribute": "position",
|
|
130
130
|
"reflect": false,
|
|
131
131
|
"defaultValue": "'left'"
|
|
132
132
|
},
|
|
133
133
|
"size": {
|
|
134
134
|
"type": "string",
|
|
135
|
+
"attribute": "size",
|
|
135
136
|
"mutable": false,
|
|
136
137
|
"complexType": {
|
|
137
138
|
"original": "SIZE_VAR",
|
|
@@ -152,7 +153,6 @@ export class XvOverflowMenu {
|
|
|
152
153
|
},
|
|
153
154
|
"getter": false,
|
|
154
155
|
"setter": false,
|
|
155
|
-
"attribute": "size",
|
|
156
156
|
"reflect": false,
|
|
157
157
|
"defaultValue": "SIZE_VAR.MD"
|
|
158
158
|
}
|
|
@@ -5,7 +5,7 @@ export class XvProgressIndicatorItem {
|
|
|
5
5
|
this.status = PROGRESS_ITEM_STATUS.NO_STARTED;
|
|
6
6
|
}
|
|
7
7
|
render() {
|
|
8
|
-
return (h(Host, { key: '
|
|
8
|
+
return (h(Host, { key: '7ab9049e23319e40102861c273bcdbe50a007d47', status: this.status, class: { 'xv-progress-indicator-item': true } }, h("span", { key: 'b354a67c14cce7dfbd4dcc1ea5fbefc322e8387f', class: "line" }), h("span", { key: 'ac9328b00220e878f41601ed622b4bd72f1f4525', class: "icon" }, h("svg", { key: '72315a3e5bdbc53b9c9bad11d0fc664ccbc71dfa', xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512" }, h("path", { key: 'a2fd19444c84e59ff52a28e60b77bf8a1a304b0d', fill: "currentColor", d: "M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z" }))), h("p", { key: '8a61ee0d9f5b7cb2d5ec3a3a95de9c6520da3438', class: "label" }, h("slot", { key: '597cc0cd7efb06d78070fdf087537db220784183' }))));
|
|
9
9
|
}
|
|
10
10
|
static get is() { return "xv-progress-indicator-v2-item"; }
|
|
11
11
|
static get encapsulation() { return "shadow"; }
|
|
@@ -23,6 +23,7 @@ export class XvProgressIndicatorItem {
|
|
|
23
23
|
return {
|
|
24
24
|
"status": {
|
|
25
25
|
"type": "string",
|
|
26
|
+
"attribute": "status",
|
|
26
27
|
"mutable": false,
|
|
27
28
|
"complexType": {
|
|
28
29
|
"original": "PROGRESS_ITEM_STATUS",
|
|
@@ -43,7 +44,6 @@ export class XvProgressIndicatorItem {
|
|
|
43
44
|
},
|
|
44
45
|
"getter": false,
|
|
45
46
|
"setter": false,
|
|
46
|
-
"attribute": "status",
|
|
47
47
|
"reflect": false,
|
|
48
48
|
"defaultValue": "PROGRESS_ITEM_STATUS.NO_STARTED"
|
|
49
49
|
}
|
|
@@ -56,7 +56,7 @@ export class XvProgressIndicator {
|
|
|
56
56
|
this.updateChildItems();
|
|
57
57
|
}
|
|
58
58
|
render() {
|
|
59
|
-
return (h(Host, { key: '
|
|
59
|
+
return (h(Host, { key: '5d3f317d147dd29f3e0a00064a2ca4a0a79f101d', variant: this.variant, size: this.size, class: { 'xv-progress-indicator': true } }, h("slot", { key: '1e6a9d655861024aee5d8a4e4e159d5fd06250a8' })));
|
|
60
60
|
}
|
|
61
61
|
static get is() { return "xv-progress-indicator-v2"; }
|
|
62
62
|
static get encapsulation() { return "shadow"; }
|
|
@@ -74,6 +74,7 @@ export class XvProgressIndicator {
|
|
|
74
74
|
return {
|
|
75
75
|
"progress": {
|
|
76
76
|
"type": "number",
|
|
77
|
+
"attribute": "progress",
|
|
77
78
|
"mutable": false,
|
|
78
79
|
"complexType": {
|
|
79
80
|
"original": "number",
|
|
@@ -88,12 +89,12 @@ export class XvProgressIndicator {
|
|
|
88
89
|
},
|
|
89
90
|
"getter": false,
|
|
90
91
|
"setter": false,
|
|
91
|
-
"attribute": "progress",
|
|
92
92
|
"reflect": true,
|
|
93
93
|
"defaultValue": "0"
|
|
94
94
|
},
|
|
95
95
|
"variant": {
|
|
96
96
|
"type": "string",
|
|
97
|
+
"attribute": "variant",
|
|
97
98
|
"mutable": false,
|
|
98
99
|
"complexType": {
|
|
99
100
|
"original": "PROGRESS_VARIANTS",
|
|
@@ -114,12 +115,12 @@ export class XvProgressIndicator {
|
|
|
114
115
|
},
|
|
115
116
|
"getter": false,
|
|
116
117
|
"setter": false,
|
|
117
|
-
"attribute": "variant",
|
|
118
118
|
"reflect": false,
|
|
119
119
|
"defaultValue": "PROGRESS_VARIANTS.DEFAULT"
|
|
120
120
|
},
|
|
121
121
|
"size": {
|
|
122
122
|
"type": "string",
|
|
123
|
+
"attribute": "size",
|
|
123
124
|
"mutable": false,
|
|
124
125
|
"complexType": {
|
|
125
126
|
"original": "SIZE_VAR",
|
|
@@ -140,7 +141,6 @@ export class XvProgressIndicator {
|
|
|
140
141
|
},
|
|
141
142
|
"getter": false,
|
|
142
143
|
"setter": false,
|
|
143
|
-
"attribute": "size",
|
|
144
144
|
"reflect": false,
|
|
145
145
|
"defaultValue": "SIZE_VAR.MD"
|
|
146
146
|
}
|
|
@@ -22,7 +22,7 @@ export class XvTableCell {
|
|
|
22
22
|
}
|
|
23
23
|
;
|
|
24
24
|
render() {
|
|
25
|
-
return (h(Host, { key: '
|
|
25
|
+
return (h(Host, { key: 'a43012499f2ab81a47702b6861fd39180729ce8d' }, h("slot", { key: 'bcb83a24979755ec0959e09e849dd8b9fa04a95b' })));
|
|
26
26
|
}
|
|
27
27
|
static get is() { return "xv-table-v2-cell"; }
|
|
28
28
|
static get encapsulation() { return "shadow"; }
|
|
@@ -40,6 +40,7 @@ export class XvTableCell {
|
|
|
40
40
|
return {
|
|
41
41
|
"multiline": {
|
|
42
42
|
"type": "boolean",
|
|
43
|
+
"attribute": "multiline",
|
|
43
44
|
"mutable": false,
|
|
44
45
|
"complexType": {
|
|
45
46
|
"original": "boolean",
|
|
@@ -54,11 +55,11 @@ export class XvTableCell {
|
|
|
54
55
|
},
|
|
55
56
|
"getter": false,
|
|
56
57
|
"setter": false,
|
|
57
|
-
"attribute": "multiline",
|
|
58
58
|
"reflect": true
|
|
59
59
|
},
|
|
60
60
|
"name": {
|
|
61
61
|
"type": "string",
|
|
62
|
+
"attribute": "name",
|
|
62
63
|
"mutable": true,
|
|
63
64
|
"complexType": {
|
|
64
65
|
"original": "string",
|
|
@@ -73,11 +74,11 @@ export class XvTableCell {
|
|
|
73
74
|
},
|
|
74
75
|
"getter": false,
|
|
75
76
|
"setter": false,
|
|
76
|
-
"attribute": "name",
|
|
77
77
|
"reflect": true
|
|
78
78
|
},
|
|
79
79
|
"align": {
|
|
80
80
|
"type": "string",
|
|
81
|
+
"attribute": "align",
|
|
81
82
|
"mutable": false,
|
|
82
83
|
"complexType": {
|
|
83
84
|
"original": "'left' | 'right' | 'center'",
|
|
@@ -92,11 +93,11 @@ export class XvTableCell {
|
|
|
92
93
|
},
|
|
93
94
|
"getter": false,
|
|
94
95
|
"setter": false,
|
|
95
|
-
"attribute": "align",
|
|
96
96
|
"reflect": true
|
|
97
97
|
},
|
|
98
98
|
"sort": {
|
|
99
99
|
"type": "string",
|
|
100
|
+
"attribute": "sort",
|
|
100
101
|
"mutable": true,
|
|
101
102
|
"complexType": {
|
|
102
103
|
"original": "XV_SORT_DIR | ''",
|
|
@@ -117,7 +118,6 @@ export class XvTableCell {
|
|
|
117
118
|
},
|
|
118
119
|
"getter": false,
|
|
119
120
|
"setter": false,
|
|
120
|
-
"attribute": "sort",
|
|
121
121
|
"reflect": true
|
|
122
122
|
}
|
|
123
123
|
};
|
|
@@ -10,7 +10,7 @@ export class XvTableExpand {
|
|
|
10
10
|
};
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
|
-
return (h(Host, { key: '
|
|
13
|
+
return (h(Host, { key: 'e1929797c81be1a2ea84916899d39da5d408e6bb' }, h("button", { key: 'd17ee91f88dcde48ccb2b1e0de40eb733d505a78', class: { 'expand-btn': true, open: this.open }, disabled: this.disabled, onClick: this.handleExpand }), h("slot", { key: '33c52bc864e741c66d448e80ec5d675c433aa649', name: XV_EXPANDABLE_KEY }), h("div", { key: '02795ad1ee52bdcf34519b9fcc4325698ef61919', class: { expandableContent: true, open: this.open } }, h("slot", { key: '185185f6fed3ae43a09c85903628eced54847cb7' }))));
|
|
14
14
|
}
|
|
15
15
|
componentDidLoad() {
|
|
16
16
|
setAttr(this.el.parentElement, XV_EXPANDABLE_KEY, true);
|
|
@@ -31,6 +31,7 @@ export class XvTableExpand {
|
|
|
31
31
|
return {
|
|
32
32
|
"open": {
|
|
33
33
|
"type": "boolean",
|
|
34
|
+
"attribute": "open",
|
|
34
35
|
"mutable": true,
|
|
35
36
|
"complexType": {
|
|
36
37
|
"original": "boolean",
|
|
@@ -45,12 +46,12 @@ export class XvTableExpand {
|
|
|
45
46
|
},
|
|
46
47
|
"getter": false,
|
|
47
48
|
"setter": false,
|
|
48
|
-
"attribute": "open",
|
|
49
49
|
"reflect": true,
|
|
50
50
|
"defaultValue": "false"
|
|
51
51
|
},
|
|
52
52
|
"disabled": {
|
|
53
53
|
"type": "boolean",
|
|
54
|
+
"attribute": "disabled",
|
|
54
55
|
"mutable": false,
|
|
55
56
|
"complexType": {
|
|
56
57
|
"original": "boolean",
|
|
@@ -65,7 +66,6 @@ export class XvTableExpand {
|
|
|
65
66
|
},
|
|
66
67
|
"getter": false,
|
|
67
68
|
"setter": false,
|
|
68
|
-
"attribute": "disabled",
|
|
69
69
|
"reflect": true,
|
|
70
70
|
"defaultValue": "false"
|
|
71
71
|
}
|