@htmlbricks/hb-layout-mobile 0.20.18 → 0.50.0-alpha.11
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/main.iife.js +3 -0
- package/{release/manifest.json → manifest.json} +24 -22
- package/package.json +15 -87
- package/types/webcomponent.type.d.json +441 -0
- package/types/webcomponent.type.d.ts +43 -0
- package/types/webcomponent_events.type.d.json +105 -0
- package/LICENSE.md +0 -68
- package/README.md +0 -1
- package/extra/docs.ts +0 -190
- package/release/docs.js +0 -186
- package/release/docs.js.map +0 -1
- package/release/docs.ts +0 -190
- package/release/release.js +0 -2
- package/release/release.js.map +0 -1
- package/release/webcomponent.type.d.ts +0 -32
package/extra/docs.ts
DELETED
|
@@ -1,190 +0,0 @@
|
|
|
1
|
-
import type { CssPart, CssVar, HtmlSlot, i18nLang, StyleSetup, ComponentSetup } from "wc-js-utils/main";
|
|
2
|
-
import type { Component } from "../app/types/webcomponent.type";
|
|
3
|
-
|
|
4
|
-
export const storybookArgs = {
|
|
5
|
-
ooterClick: { action: "footerClick" },
|
|
6
|
-
navbarDropDownClick: { action: "navbarDropDownClick" },
|
|
7
|
-
pageChange: { action: "pageChange" },
|
|
8
|
-
footer: { control: { type: "object" } },
|
|
9
|
-
offcanvasswitch: { action: "offcanvasswitchEvent" },
|
|
10
|
-
layoutStatus: { action: "layoutStatus" },
|
|
11
|
-
contacts: { control: { type: "object" } },
|
|
12
|
-
columns: { control: { type: "object" } },
|
|
13
|
-
sidebar: { control: { type: "object" } },
|
|
14
|
-
socials: { control: { type: "object" } },
|
|
15
|
-
usermenu: { control: { type: "object" } },
|
|
16
|
-
company: { control: { type: "object" } },
|
|
17
|
-
navlinks: { control: { type: "array" } },
|
|
18
|
-
pagename: { control: { type: "text" } },
|
|
19
|
-
page_title: { control: { type: "text" } },
|
|
20
|
-
cookielawuri4more: { control: { type: "text" } },
|
|
21
|
-
cookielawallowdecline: { control: { type: "boolean" } },
|
|
22
|
-
cookielawlanguage: { control: { type: "text" } },
|
|
23
|
-
cookielaw: { control: { type: "boolean" } },
|
|
24
|
-
onescreen: { control: { type: "boolean" } },
|
|
25
|
-
policies: { control: { type: "object" } },
|
|
26
|
-
navbarSlotClick: { action: "navbarSlotClick" },
|
|
27
|
-
};
|
|
28
|
-
const cssVars: CssVar[] = [
|
|
29
|
-
{ name: "--bs-primary", valueType: "color", theme: "bootstrap", defaultValue: "#07689f" },
|
|
30
|
-
{ name: "--bs-secondary", valueType: "color", theme: "bootstrap", defaultValue: "#c9d6df" },
|
|
31
|
-
{ name: "--bs-success", valueType: "color", theme: "bootstrap", defaultValue: "#11d3bc" },
|
|
32
|
-
{ name: "--bs-info", valueType: "color", theme: "bootstrap", defaultValue: "#a2d5f2" },
|
|
33
|
-
{ name: "--bs-warning", valueType: "color", theme: "bootstrap", defaultValue: "#ffc107" },
|
|
34
|
-
{ name: "--bs-danger", valueType: "color", theme: "bootstrap", defaultValue: "#f67280" },
|
|
35
|
-
];
|
|
36
|
-
export const cssParts: CssPart[] = [
|
|
37
|
-
{ name: "footer", description: "" },
|
|
38
|
-
{ name: "container", description: "" },
|
|
39
|
-
{ name: "navbar", description: "" },
|
|
40
|
-
{ name: "page", description: "" },
|
|
41
|
-
];
|
|
42
|
-
export const htmlSlots: HtmlSlot[] = [
|
|
43
|
-
{ name: "nav-left-slot", description: "" },
|
|
44
|
-
{ name: "nav-center-slot", description: "" },
|
|
45
|
-
{ name: "nav-right-slot", description: "" },
|
|
46
|
-
{ name: "page", description: "" },
|
|
47
|
-
{ name: "nav-header-slot", description: "" },
|
|
48
|
-
];
|
|
49
|
-
export const i18nLanguages: i18nLang[] = [
|
|
50
|
-
{ lang: "it", language: "italian" },
|
|
51
|
-
{ lang: "en", language: "english" },
|
|
52
|
-
];
|
|
53
|
-
export const styleSetup: StyleSetup = {
|
|
54
|
-
vars: cssVars,
|
|
55
|
-
parts: cssParts,
|
|
56
|
-
};
|
|
57
|
-
const company: Component["company"] = {
|
|
58
|
-
logoUri: "https://upload.wikimedia.org/wikipedia/commons/8/80/Wikipedia-logo-v2.svg",
|
|
59
|
-
siteName: "testsite",
|
|
60
|
-
companyName: "testcompany S.R.L.",
|
|
61
|
-
registration: { text: "copyright" },
|
|
62
|
-
description: `testo e descrizione di esempio dell applicazione`,
|
|
63
|
-
vatNumber: "aa - ffffff",
|
|
64
|
-
fiscalCode: "f4f5f6fff",
|
|
65
|
-
};
|
|
66
|
-
const navlinks: Component["navlinks"] = [
|
|
67
|
-
{
|
|
68
|
-
label: "Home",
|
|
69
|
-
key: "home",
|
|
70
|
-
icon: "house-door",
|
|
71
|
-
badge: {
|
|
72
|
-
text: "bbb",
|
|
73
|
-
},
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
label: "Dashboard",
|
|
77
|
-
key: "dashboard",
|
|
78
|
-
icon: "speedometer",
|
|
79
|
-
badge: {
|
|
80
|
-
text: "bbb",
|
|
81
|
-
},
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
label: "Settings",
|
|
85
|
-
key: "settings",
|
|
86
|
-
icon: "gear",
|
|
87
|
-
group: "admin",
|
|
88
|
-
badge: {
|
|
89
|
-
text: "bbb",
|
|
90
|
-
},
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
label: "Users",
|
|
94
|
-
key: "users",
|
|
95
|
-
icon: "people-fill",
|
|
96
|
-
group: "admin",
|
|
97
|
-
badge: {
|
|
98
|
-
text: "uuuuu",
|
|
99
|
-
},
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
label: "Stats",
|
|
103
|
-
key: "stats",
|
|
104
|
-
icon: "graph-up",
|
|
105
|
-
group: "stats",
|
|
106
|
-
badge: {
|
|
107
|
-
text: "bbb",
|
|
108
|
-
},
|
|
109
|
-
},
|
|
110
|
-
];
|
|
111
|
-
|
|
112
|
-
const contacts: Component["contacts"] = {
|
|
113
|
-
sites: [
|
|
114
|
-
{
|
|
115
|
-
label: "dariocaruso.info",
|
|
116
|
-
uri: "https://dariocaruso.info",
|
|
117
|
-
},
|
|
118
|
-
],
|
|
119
|
-
phones: [
|
|
120
|
-
{
|
|
121
|
-
number: "6666666666666",
|
|
122
|
-
},
|
|
123
|
-
],
|
|
124
|
-
addresses: [],
|
|
125
|
-
emails: [],
|
|
126
|
-
};
|
|
127
|
-
const usermenu: Component["usermenu"] = {
|
|
128
|
-
list: [
|
|
129
|
-
{
|
|
130
|
-
key: "list1",
|
|
131
|
-
label: "list1",
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
key: "list2",
|
|
135
|
-
label: "list2",
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
key: "list3",
|
|
139
|
-
label: "list3",
|
|
140
|
-
group: "list1",
|
|
141
|
-
badge: 3,
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
key: "list4",
|
|
145
|
-
label: "list4",
|
|
146
|
-
badge: 555,
|
|
147
|
-
},
|
|
148
|
-
],
|
|
149
|
-
imgUri: "https://upload.wikimedia.org/wikipedia/commons/8/80/Wikipedia-logo-v2.svg",
|
|
150
|
-
};
|
|
151
|
-
const socials: Component["socials"] = {
|
|
152
|
-
facebook: "fbbb",
|
|
153
|
-
youtube: "yttttttt",
|
|
154
|
-
};
|
|
155
|
-
const sidebar: Component["sidebar"] = { title: "ciao" };
|
|
156
|
-
|
|
157
|
-
const examples: { name: string; description?: string; data: Component }[] = [
|
|
158
|
-
{
|
|
159
|
-
name: "default",
|
|
160
|
-
data: {
|
|
161
|
-
company,
|
|
162
|
-
contacts,
|
|
163
|
-
socials,
|
|
164
|
-
navlinks,
|
|
165
|
-
usermenu,
|
|
166
|
-
sidebar,
|
|
167
|
-
},
|
|
168
|
-
},
|
|
169
|
-
];
|
|
170
|
-
export const componentSetup: ComponentSetup & { examples: { name: string; description?: string; data: Component }[] } = {
|
|
171
|
-
definitions: null as any,
|
|
172
|
-
storybookArgs,
|
|
173
|
-
styleSetup,
|
|
174
|
-
author: null as any,
|
|
175
|
-
contributors: [],
|
|
176
|
-
owner: null as any,
|
|
177
|
-
htmlSlots,
|
|
178
|
-
i18n: i18nLanguages,
|
|
179
|
-
examples,
|
|
180
|
-
screenshots: [],
|
|
181
|
-
licenses: [{ type: "Apache-2.0", path: "LICENSE.md", cost: 0, currency: "EUR" }],
|
|
182
|
-
readmePath: "README.md",
|
|
183
|
-
name: "hb-layout-mobile",
|
|
184
|
-
category: "layout",
|
|
185
|
-
tags: ["layout"],
|
|
186
|
-
size: { layout: "fullscreen" },
|
|
187
|
-
iifePath: "release/release.js",
|
|
188
|
-
repoName: "@htmlbricks/hb-layout-mobile",
|
|
189
|
-
version: null as any,
|
|
190
|
-
};
|
package/release/docs.js
DELETED
|
@@ -1,186 +0,0 @@
|
|
|
1
|
-
export var storybookArgs = {
|
|
2
|
-
ooterClick: { action: "footerClick" },
|
|
3
|
-
navbarDropDownClick: { action: "navbarDropDownClick" },
|
|
4
|
-
pageChange: { action: "pageChange" },
|
|
5
|
-
footer: { control: { type: "object" } },
|
|
6
|
-
offcanvasswitch: { action: "offcanvasswitchEvent" },
|
|
7
|
-
layoutStatus: { action: "layoutStatus" },
|
|
8
|
-
contacts: { control: { type: "object" } },
|
|
9
|
-
columns: { control: { type: "object" } },
|
|
10
|
-
sidebar: { control: { type: "object" } },
|
|
11
|
-
socials: { control: { type: "object" } },
|
|
12
|
-
usermenu: { control: { type: "object" } },
|
|
13
|
-
company: { control: { type: "object" } },
|
|
14
|
-
navlinks: { control: { type: "array" } },
|
|
15
|
-
pagename: { control: { type: "text" } },
|
|
16
|
-
page_title: { control: { type: "text" } },
|
|
17
|
-
cookielawuri4more: { control: { type: "text" } },
|
|
18
|
-
cookielawallowdecline: { control: { type: "boolean" } },
|
|
19
|
-
cookielawlanguage: { control: { type: "text" } },
|
|
20
|
-
cookielaw: { control: { type: "boolean" } },
|
|
21
|
-
onescreen: { control: { type: "boolean" } },
|
|
22
|
-
policies: { control: { type: "object" } },
|
|
23
|
-
navbarSlotClick: { action: "navbarSlotClick" }
|
|
24
|
-
};
|
|
25
|
-
var cssVars = [
|
|
26
|
-
{ name: "--bs-primary", valueType: "color", theme: "bootstrap", defaultValue: "#07689f" },
|
|
27
|
-
{ name: "--bs-secondary", valueType: "color", theme: "bootstrap", defaultValue: "#c9d6df" },
|
|
28
|
-
{ name: "--bs-success", valueType: "color", theme: "bootstrap", defaultValue: "#11d3bc" },
|
|
29
|
-
{ name: "--bs-info", valueType: "color", theme: "bootstrap", defaultValue: "#a2d5f2" },
|
|
30
|
-
{ name: "--bs-warning", valueType: "color", theme: "bootstrap", defaultValue: "#ffc107" },
|
|
31
|
-
{ name: "--bs-danger", valueType: "color", theme: "bootstrap", defaultValue: "#f67280" },
|
|
32
|
-
];
|
|
33
|
-
export var cssParts = [
|
|
34
|
-
{ name: "footer", description: "" },
|
|
35
|
-
{ name: "container", description: "" },
|
|
36
|
-
{ name: "navbar", description: "" },
|
|
37
|
-
{ name: "page", description: "" },
|
|
38
|
-
];
|
|
39
|
-
export var htmlSlots = [
|
|
40
|
-
{ name: "nav-left-slot", description: "" },
|
|
41
|
-
{ name: "nav-center-slot", description: "" },
|
|
42
|
-
{ name: "nav-right-slot", description: "" },
|
|
43
|
-
{ name: "page", description: "" },
|
|
44
|
-
{ name: "nav-header-slot", description: "" },
|
|
45
|
-
];
|
|
46
|
-
export var i18nLanguages = [
|
|
47
|
-
{ lang: "it", language: "italian" },
|
|
48
|
-
{ lang: "en", language: "english" },
|
|
49
|
-
];
|
|
50
|
-
export var styleSetup = {
|
|
51
|
-
vars: cssVars,
|
|
52
|
-
parts: cssParts
|
|
53
|
-
};
|
|
54
|
-
var company = {
|
|
55
|
-
logoUri: "https://upload.wikimedia.org/wikipedia/commons/8/80/Wikipedia-logo-v2.svg",
|
|
56
|
-
siteName: "testsite",
|
|
57
|
-
companyName: "testcompany S.R.L.",
|
|
58
|
-
registration: { text: "copyright" },
|
|
59
|
-
description: "testo e descrizione di esempio dell applicazione",
|
|
60
|
-
vatNumber: "aa - ffffff",
|
|
61
|
-
fiscalCode: "f4f5f6fff"
|
|
62
|
-
};
|
|
63
|
-
var navlinks = [
|
|
64
|
-
{
|
|
65
|
-
label: "Home",
|
|
66
|
-
key: "home",
|
|
67
|
-
icon: "house-door",
|
|
68
|
-
badge: {
|
|
69
|
-
text: "bbb"
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
label: "Dashboard",
|
|
74
|
-
key: "dashboard",
|
|
75
|
-
icon: "speedometer",
|
|
76
|
-
badge: {
|
|
77
|
-
text: "bbb"
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
label: "Settings",
|
|
82
|
-
key: "settings",
|
|
83
|
-
icon: "gear",
|
|
84
|
-
group: "admin",
|
|
85
|
-
badge: {
|
|
86
|
-
text: "bbb"
|
|
87
|
-
}
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
label: "Users",
|
|
91
|
-
key: "users",
|
|
92
|
-
icon: "people-fill",
|
|
93
|
-
group: "admin",
|
|
94
|
-
badge: {
|
|
95
|
-
text: "uuuuu"
|
|
96
|
-
}
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
label: "Stats",
|
|
100
|
-
key: "stats",
|
|
101
|
-
icon: "graph-up",
|
|
102
|
-
group: "stats",
|
|
103
|
-
badge: {
|
|
104
|
-
text: "bbb"
|
|
105
|
-
}
|
|
106
|
-
},
|
|
107
|
-
];
|
|
108
|
-
var contacts = {
|
|
109
|
-
sites: [
|
|
110
|
-
{
|
|
111
|
-
label: "dariocaruso.info",
|
|
112
|
-
uri: "https://dariocaruso.info"
|
|
113
|
-
},
|
|
114
|
-
],
|
|
115
|
-
phones: [
|
|
116
|
-
{
|
|
117
|
-
number: "6666666666666"
|
|
118
|
-
},
|
|
119
|
-
],
|
|
120
|
-
addresses: [],
|
|
121
|
-
emails: []
|
|
122
|
-
};
|
|
123
|
-
var usermenu = {
|
|
124
|
-
list: [
|
|
125
|
-
{
|
|
126
|
-
key: "list1",
|
|
127
|
-
label: "list1"
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
key: "list2",
|
|
131
|
-
label: "list2"
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
key: "list3",
|
|
135
|
-
label: "list3",
|
|
136
|
-
group: "list1",
|
|
137
|
-
badge: 3
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
key: "list4",
|
|
141
|
-
label: "list4",
|
|
142
|
-
badge: 555
|
|
143
|
-
},
|
|
144
|
-
],
|
|
145
|
-
imgUri: "https://upload.wikimedia.org/wikipedia/commons/8/80/Wikipedia-logo-v2.svg"
|
|
146
|
-
};
|
|
147
|
-
var socials = {
|
|
148
|
-
facebook: "fbbb",
|
|
149
|
-
youtube: "yttttttt"
|
|
150
|
-
};
|
|
151
|
-
var sidebar = { title: "ciao" };
|
|
152
|
-
var examples = [
|
|
153
|
-
{
|
|
154
|
-
name: "default",
|
|
155
|
-
data: {
|
|
156
|
-
company: company,
|
|
157
|
-
contacts: contacts,
|
|
158
|
-
socials: socials,
|
|
159
|
-
navlinks: navlinks,
|
|
160
|
-
usermenu: usermenu,
|
|
161
|
-
sidebar: sidebar
|
|
162
|
-
}
|
|
163
|
-
},
|
|
164
|
-
];
|
|
165
|
-
export var componentSetup = {
|
|
166
|
-
definitions: null,
|
|
167
|
-
storybookArgs: storybookArgs,
|
|
168
|
-
styleSetup: styleSetup,
|
|
169
|
-
author: null,
|
|
170
|
-
contributors: [],
|
|
171
|
-
owner: null,
|
|
172
|
-
htmlSlots: htmlSlots,
|
|
173
|
-
i18n: i18nLanguages,
|
|
174
|
-
examples: examples,
|
|
175
|
-
screenshots: [],
|
|
176
|
-
licenses: [{ type: "Apache-2.0", path: "LICENSE.md", cost: 0, currency: "EUR" }],
|
|
177
|
-
readmePath: "README.md",
|
|
178
|
-
name: "hb-layout-mobile",
|
|
179
|
-
category: "layout",
|
|
180
|
-
tags: ["layout"],
|
|
181
|
-
size: { layout: "fullscreen" },
|
|
182
|
-
iifePath: "release/release.js",
|
|
183
|
-
repoName: "@htmlbricks/hb-layout-mobile",
|
|
184
|
-
version: null
|
|
185
|
-
};
|
|
186
|
-
//# sourceMappingURL=docs.js.map
|
package/release/docs.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"docs.js","sourceRoot":"","sources":["../extra/docs.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,IAAM,aAAa,GAAG;IAC5B,UAAU,EAAE,EAAE,MAAM,EAAE,aAAa,EAAE;IACrC,mBAAmB,EAAE,EAAE,MAAM,EAAE,qBAAqB,EAAE;IACtD,UAAU,EAAE,EAAE,MAAM,EAAE,YAAY,EAAE;IACpC,MAAM,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;IACvC,eAAe,EAAE,EAAE,MAAM,EAAE,sBAAsB,EAAE;IACnD,YAAY,EAAE,EAAE,MAAM,EAAE,cAAc,EAAE;IACxC,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;IACzC,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;IACxC,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;IACxC,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;IACxC,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;IACzC,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;IACxC,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE;IACxC,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IACvC,UAAU,EAAE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ACV;KACD;IACD,MAAM,EAAE,2EAA2E;CACnF,CAAC;AACF,IAAM,OAAO,GAAyB;IACrC,QAAQ,EAAE,MAAM;IAChB,OAAO,EAAE,UAAU;CACnB,CAAC;AACF,IAAM,OAAO,GAAyB,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC;AAExD,IAAM,QAAQ,GAA8D;IAC3E;QACC,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACL,OAAO,SAAA;YACP,QAAQ,UAAA;YACR,OAAO,SAAA;YACP,QAAQ,UAAA;YACR,QAAQ,UAAA;YACR,OAAO,SAAA;SACP;KACD;CACD,CAAC;AACF,MAAM,CAAC,IAAM,cAAc,GAA6F;IACvH,WAAW,EAAE,IAAW;IACxB,aAAa,eAAA;IACb,UAAU,YAAA;IACV,MAAM,EAAE,IAAW;IACnB,YAAY,EAAE,EAAE;IAChB,KAAK,EAAE,IAAW;IAClB,SAAS,WAAA;IACT,IAAI,EAAE,aAAa;IACnB,QAAQ,UAAA;IACR,WAAW,EAAE,EAAE;IACf,QAAQ,EAAE,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAChF,UAAU,EAAE,WAAW;IACvB,IAAI,EAAE,kBAAkB;IACxB,QAAQ,EAAE,QAAQ;IAClB,IAAI,EAAE,CAAC,QAAQ,CAAC;IAChB,IAAI,EAAE,EAAE,MAAM,EAAE,YAAY,EAAE;IAC9B,QAAQ,EAAE,oBAAoB;IAC9B,QAAQ,EAAE,8BAA8B;IACxC,OAAO,EAAE,IAAW;CACpB,CAAC"}
|
package/release/docs.ts
DELETED
|
@@ -1,190 +0,0 @@
|
|
|
1
|
-
import type { CssPart, CssVar, HtmlSlot, i18nLang, StyleSetup, ComponentSetup } from "wc-js-utils/main";
|
|
2
|
-
import type { Component } from "../app/types/webcomponent.type";
|
|
3
|
-
|
|
4
|
-
export const storybookArgs = {
|
|
5
|
-
ooterClick: { action: "footerClick" },
|
|
6
|
-
navbarDropDownClick: { action: "navbarDropDownClick" },
|
|
7
|
-
pageChange: { action: "pageChange" },
|
|
8
|
-
footer: { control: { type: "object" } },
|
|
9
|
-
offcanvasswitch: { action: "offcanvasswitchEvent" },
|
|
10
|
-
layoutStatus: { action: "layoutStatus" },
|
|
11
|
-
contacts: { control: { type: "object" } },
|
|
12
|
-
columns: { control: { type: "object" } },
|
|
13
|
-
sidebar: { control: { type: "object" } },
|
|
14
|
-
socials: { control: { type: "object" } },
|
|
15
|
-
usermenu: { control: { type: "object" } },
|
|
16
|
-
company: { control: { type: "object" } },
|
|
17
|
-
navlinks: { control: { type: "array" } },
|
|
18
|
-
pagename: { control: { type: "text" } },
|
|
19
|
-
page_title: { control: { type: "text" } },
|
|
20
|
-
cookielawuri4more: { control: { type: "text" } },
|
|
21
|
-
cookielawallowdecline: { control: { type: "boolean" } },
|
|
22
|
-
cookielawlanguage: { control: { type: "text" } },
|
|
23
|
-
cookielaw: { control: { type: "boolean" } },
|
|
24
|
-
onescreen: { control: { type: "boolean" } },
|
|
25
|
-
policies: { control: { type: "object" } },
|
|
26
|
-
navbarSlotClick: { action: "navbarSlotClick" },
|
|
27
|
-
};
|
|
28
|
-
const cssVars: CssVar[] = [
|
|
29
|
-
{ name: "--bs-primary", valueType: "color", theme: "bootstrap", defaultValue: "#07689f" },
|
|
30
|
-
{ name: "--bs-secondary", valueType: "color", theme: "bootstrap", defaultValue: "#c9d6df" },
|
|
31
|
-
{ name: "--bs-success", valueType: "color", theme: "bootstrap", defaultValue: "#11d3bc" },
|
|
32
|
-
{ name: "--bs-info", valueType: "color", theme: "bootstrap", defaultValue: "#a2d5f2" },
|
|
33
|
-
{ name: "--bs-warning", valueType: "color", theme: "bootstrap", defaultValue: "#ffc107" },
|
|
34
|
-
{ name: "--bs-danger", valueType: "color", theme: "bootstrap", defaultValue: "#f67280" },
|
|
35
|
-
];
|
|
36
|
-
export const cssParts: CssPart[] = [
|
|
37
|
-
{ name: "footer", description: "" },
|
|
38
|
-
{ name: "container", description: "" },
|
|
39
|
-
{ name: "navbar", description: "" },
|
|
40
|
-
{ name: "page", description: "" },
|
|
41
|
-
];
|
|
42
|
-
export const htmlSlots: HtmlSlot[] = [
|
|
43
|
-
{ name: "nav-left-slot", description: "" },
|
|
44
|
-
{ name: "nav-center-slot", description: "" },
|
|
45
|
-
{ name: "nav-right-slot", description: "" },
|
|
46
|
-
{ name: "page", description: "" },
|
|
47
|
-
{ name: "nav-header-slot", description: "" },
|
|
48
|
-
];
|
|
49
|
-
export const i18nLanguages: i18nLang[] = [
|
|
50
|
-
{ lang: "it", language: "italian" },
|
|
51
|
-
{ lang: "en", language: "english" },
|
|
52
|
-
];
|
|
53
|
-
export const styleSetup: StyleSetup = {
|
|
54
|
-
vars: cssVars,
|
|
55
|
-
parts: cssParts,
|
|
56
|
-
};
|
|
57
|
-
const company: Component["company"] = {
|
|
58
|
-
logoUri: "https://upload.wikimedia.org/wikipedia/commons/8/80/Wikipedia-logo-v2.svg",
|
|
59
|
-
siteName: "testsite",
|
|
60
|
-
companyName: "testcompany S.R.L.",
|
|
61
|
-
registration: { text: "copyright" },
|
|
62
|
-
description: `testo e descrizione di esempio dell applicazione`,
|
|
63
|
-
vatNumber: "aa - ffffff",
|
|
64
|
-
fiscalCode: "f4f5f6fff",
|
|
65
|
-
};
|
|
66
|
-
const navlinks: Component["navlinks"] = [
|
|
67
|
-
{
|
|
68
|
-
label: "Home",
|
|
69
|
-
key: "home",
|
|
70
|
-
icon: "house-door",
|
|
71
|
-
badge: {
|
|
72
|
-
text: "bbb",
|
|
73
|
-
},
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
label: "Dashboard",
|
|
77
|
-
key: "dashboard",
|
|
78
|
-
icon: "speedometer",
|
|
79
|
-
badge: {
|
|
80
|
-
text: "bbb",
|
|
81
|
-
},
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
label: "Settings",
|
|
85
|
-
key: "settings",
|
|
86
|
-
icon: "gear",
|
|
87
|
-
group: "admin",
|
|
88
|
-
badge: {
|
|
89
|
-
text: "bbb",
|
|
90
|
-
},
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
label: "Users",
|
|
94
|
-
key: "users",
|
|
95
|
-
icon: "people-fill",
|
|
96
|
-
group: "admin",
|
|
97
|
-
badge: {
|
|
98
|
-
text: "uuuuu",
|
|
99
|
-
},
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
label: "Stats",
|
|
103
|
-
key: "stats",
|
|
104
|
-
icon: "graph-up",
|
|
105
|
-
group: "stats",
|
|
106
|
-
badge: {
|
|
107
|
-
text: "bbb",
|
|
108
|
-
},
|
|
109
|
-
},
|
|
110
|
-
];
|
|
111
|
-
|
|
112
|
-
const contacts: Component["contacts"] = {
|
|
113
|
-
sites: [
|
|
114
|
-
{
|
|
115
|
-
label: "dariocaruso.info",
|
|
116
|
-
uri: "https://dariocaruso.info",
|
|
117
|
-
},
|
|
118
|
-
],
|
|
119
|
-
phones: [
|
|
120
|
-
{
|
|
121
|
-
number: "6666666666666",
|
|
122
|
-
},
|
|
123
|
-
],
|
|
124
|
-
addresses: [],
|
|
125
|
-
emails: [],
|
|
126
|
-
};
|
|
127
|
-
const usermenu: Component["usermenu"] = {
|
|
128
|
-
list: [
|
|
129
|
-
{
|
|
130
|
-
key: "list1",
|
|
131
|
-
label: "list1",
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
key: "list2",
|
|
135
|
-
label: "list2",
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
key: "list3",
|
|
139
|
-
label: "list3",
|
|
140
|
-
group: "list1",
|
|
141
|
-
badge: 3,
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
key: "list4",
|
|
145
|
-
label: "list4",
|
|
146
|
-
badge: 555,
|
|
147
|
-
},
|
|
148
|
-
],
|
|
149
|
-
imgUri: "https://upload.wikimedia.org/wikipedia/commons/8/80/Wikipedia-logo-v2.svg",
|
|
150
|
-
};
|
|
151
|
-
const socials: Component["socials"] = {
|
|
152
|
-
facebook: "fbbb",
|
|
153
|
-
youtube: "yttttttt",
|
|
154
|
-
};
|
|
155
|
-
const sidebar: Component["sidebar"] = { title: "ciao" };
|
|
156
|
-
|
|
157
|
-
const examples: { name: string; description?: string; data: Component }[] = [
|
|
158
|
-
{
|
|
159
|
-
name: "default",
|
|
160
|
-
data: {
|
|
161
|
-
company,
|
|
162
|
-
contacts,
|
|
163
|
-
socials,
|
|
164
|
-
navlinks,
|
|
165
|
-
usermenu,
|
|
166
|
-
sidebar,
|
|
167
|
-
},
|
|
168
|
-
},
|
|
169
|
-
];
|
|
170
|
-
export const componentSetup: ComponentSetup & { examples: { name: string; description?: string; data: Component }[] } = {
|
|
171
|
-
definitions: null as any,
|
|
172
|
-
storybookArgs,
|
|
173
|
-
styleSetup,
|
|
174
|
-
author: null as any,
|
|
175
|
-
contributors: [],
|
|
176
|
-
owner: null as any,
|
|
177
|
-
htmlSlots,
|
|
178
|
-
i18n: i18nLanguages,
|
|
179
|
-
examples,
|
|
180
|
-
screenshots: [],
|
|
181
|
-
licenses: [{ type: "Apache-2.0", path: "LICENSE.md", cost: 0, currency: "EUR" }],
|
|
182
|
-
readmePath: "README.md",
|
|
183
|
-
name: "hb-layout-mobile",
|
|
184
|
-
category: "layout",
|
|
185
|
-
tags: ["layout"],
|
|
186
|
-
size: { layout: "fullscreen" },
|
|
187
|
-
iifePath: "release/release.js",
|
|
188
|
-
repoName: "@htmlbricks/hb-layout-mobile",
|
|
189
|
-
version: null as any,
|
|
190
|
-
};
|
package/release/release.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var release=function(){"use strict";function t(){}function e(t){return t()}function n(){return Object.create(null)}function o(t){t.forEach(e)}function i(t){return"function"==typeof t}function r(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function a(t,e){t.appendChild(e)}function l(t,e,n){t.insertBefore(e,n||null)}function s(t){t.parentNode&&t.parentNode.removeChild(t)}function c(t){return document.createElement(t)}function u(){return t=" ",document.createTextNode(t);var t}function d(t,e,n,o){return t.addEventListener(e,n,o),()=>t.removeEventListener(e,n,o)}function p(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function f(t,e,n){e in t?t[e]="boolean"==typeof t[e]&&""===n||n:p(t,e,n)}function g(t){const e={};for(const n of t)e[n.name]=n.value;return e}let h;function m(t){h=t}function v(){if(!h)throw new Error("Function called outside component initialization");return h}function $(){const t=v();return(e,n,{cancelable:o=!1}={})=>{const i=t.$$.callbacks[e];if(i){const r=function(t,e,{bubbles:n=!1,cancelable:o=!1}={}){const i=document.createEvent("CustomEvent");return i.initCustomEvent(t,n,o,e),i}(e,n,{cancelable:o});return i.slice().forEach((e=>{e.call(t,r)})),!r.defaultPrevented}return!0}}const y=[],w=[];let b=[];const k=[],x=Promise.resolve();let _=!1;function C(t){b.push(t)}const E=new Set;let N=0;function T(){if(0!==N)return;const t=h;do{try{for(;N<y.length;){const t=y[N];N++,m(t),S(t.$$)}}catch(t){throw y.length=0,N=0,t}for(m(null),y.length=0,N=0;w.length;)w.pop()();for(let t=0;t<b.length;t+=1){const e=b[t];E.has(e)||(E.add(e),e())}b.length=0}while(y.length);for(;k.length;)k.pop()();_=!1,E.clear(),m(t)}function S(t){if(null!==t.fragment){t.update(),o(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(C)}}const L=new Set;function O(t,e){const n=t.$$;null!==n.fragment&&(!function(t){const e=[],n=[];b.forEach((o=>-1===t.indexOf(o)?e.push(o):n.push(o))),n.forEach((t=>t())),b=e}(n.after_update),o(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function D(t,e){-1===t.$$.dirty[0]&&(y.push(t),_||(_=!0,x.then(T)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function A(r,a,l,c,u,d,p,f=[-1]){const g=h;m(r);const v=r.$$={fragment:null,ctx:[],props:d,update:t,not_equal:u,bound:n(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(a.context||(g?g.$$.context:[])),callbacks:n(),dirty:f,skip_bound:!1,root:a.target||g.$$.root};p&&p(v.root);let $=!1;if(v.ctx=l?l(r,a.props||{},((t,e,...n)=>{const o=n.length?n[0]:e;return v.ctx&&u(v.ctx[t],v.ctx[t]=o)&&(!v.skip_bound&&v.bound[t]&&v.bound[t](o),$&&D(r,t)),e})):[],v.update(),$=!0,o(v.before_update),v.fragment=!!c&&c(v.ctx),a.target){if(a.hydrate){const t=function(t){return Array.from(t.childNodes)}(a.target);v.fragment&&v.fragment.l(t),t.forEach(s)}else v.fragment&&v.fragment.c();a.intro&&((y=r.$$.fragment)&&y.i&&(L.delete(y),y.i(w))),function(t,n,r,a){const{fragment:l,after_update:s}=t.$$;l&&l.m(n,r),a||C((()=>{const n=t.$$.on_mount.map(e).filter(i);t.$$.on_destroy?t.$$.on_destroy.push(...n):o(n),t.$$.on_mount=[]})),s.forEach(C)}(r,a.target,a.anchor,a.customElement),T()}var y,w;m(g)}let P;"function"==typeof HTMLElement&&(P=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(e).filter(i);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,n){this[t]=n}disconnectedCallback(){o(this.$$.on_disconnect)}$destroy(){O(this,1),this.$destroy=t}$on(e,n){if(!i(n))return t;const o=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return o.push(n),()=>{const t=o.indexOf(n);-1!==t&&o.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});var z="0.20.18";function j(t,e,n){var o,i,r,a,l;function s(){var c=Date.now()-a;c<e&&c>=0?o=setTimeout(s,e-c):(o=null,n||(l=t.apply(r,i),r=i=null))}null==e&&(e=100);var c=function(){r=this,i=arguments,a=Date.now();var c=n&&!o;return o||(o=setTimeout(s,e)),c&&(l=t.apply(r,i),r=i=null),l};return c.clear=function(){o&&(clearTimeout(o),o=null)},c.flush=function(){o&&(l=t.apply(r,i),r=i=null,clearTimeout(o),o=null)},c}j.debounce=j;var J=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,M=/\n/g,H=/^\s*/,R=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,F=/^:\s*/,I=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,V=/^[;\s]*/,W=/^\s+|\s+$/g,B="";function U(t){return t?t.replace(W,B):B}var q=function(t,e){var n,o=null;if(!t||"string"!=typeof t)return o;for(var i,r,a=function(t,e){if("string"!=typeof t)throw new TypeError("First argument must be a string");if(!t)return[];e=e||{};var n=1,o=1;function i(t){var e=t.match(M);e&&(n+=e.length);var i=t.lastIndexOf("\n");o=~i?t.length-i:o+t.length}function r(){var t={line:n,column:o};return function(e){return e.position=new a(t),c(),e}}function a(t){this.start=t,this.end={line:n,column:o},this.source=e.source}function l(i){var r=new Error(e.source+":"+n+":"+o+": "+i);if(r.reason=i,r.filename=e.source,r.line=n,r.column=o,r.source=t,!e.silent)throw r}function s(e){var n=e.exec(t);if(n){var o=n[0];return i(o),t=t.slice(o.length),n}}function c(){s(H)}function u(t){var e;for(t=t||[];e=d();)!1!==e&&t.push(e);return t}function d(){var e=r();if("/"==t.charAt(0)&&"*"==t.charAt(1)){for(var n=2;B!=t.charAt(n)&&("*"!=t.charAt(n)||"/"!=t.charAt(n+1));)++n;if(n+=2,B===t.charAt(n-1))return l("End of comment missing");var a=t.slice(2,n-2);return o+=2,i(a),t=t.slice(n),o+=2,e({type:"comment",comment:a})}}function p(){var t=r(),e=s(R);if(e){if(d(),!s(F))return l("property missing ':'");var n=s(I),o=t({type:"declaration",property:U(e[0].replace(J,B)),value:n?U(n[0].replace(J,B)):B});return s(V),o}}return a.prototype.content=t,c(),function(){var t,e=[];for(u(e);t=p();)!1!==t&&(e.push(t),u(e));return e}()}(t),l="function"==typeof e,s=0,c=a.length;s<c;s++)i=(n=a[s]).property,r=n.value,l?e(i,r,n):r&&(o||(o={}),o[i]=r);return o},K={vars:[{name:"--bs-primary",defaultValue:"#07689f",valueType:"color",theme:"bootstrap"}],parts:[{name:"header",description:"header"}]},G={vars:[],parts:[{name:"column-cell-button-content",description:""}]},Q={vars:[],parts:[{name:"left-slot",description:""},{name:"center-slot",description:""},{name:"right-slot",description:""}]},X={vars:[],parts:[]},Y={vars:[{name:"--bs-primary",defaultValue:"#07689f",valueType:"color",theme:"bootstrap"}],parts:[{name:"header",description:"header"}]};var Z,tt=(function(t,e){e.__esModule=!0,e.LanguageTranslator=e.addComponent=e.getChildStyleToPass=void 0,e.getChildStyleToPass=function(t,e){var n,o,i="";if(t&&(null==e?void 0:e.length)&&(null===(n=Object.keys(t))||void 0===n?void 0:n.length)&&(null===(o=null==e?void 0:e.filter((function(e){return Object.keys(t).includes(e.name)})))||void 0===o?void 0:o.length))for(var r=function(n){(null==e?void 0:e.filter((function(e){return e.name===n&&e.defaultValue!==t[n]})))&&(i+="".concat(n,":").concat(t[n],";"))},a=0,l=Object.keys(t);a<l.length;a++)r(l[a]);return i},e.addComponent=function(t){var e,n=(null===(e=null==t?void 0:t.repoName.split("/"))||void 0===e?void 0:e[1])||(null==t?void 0:t.repoName);if(!n)throw new Error("wrong componentPath "+(null==t?void 0:t.repoName));if(!(null==t?void 0:t.version))throw new Error("wrong version "+(null==t?void 0:t.version));var o=(null==t?void 0:t.iifePath)||"release/release.js";if(!document.getElementById(n+"-script"))try{var i=document.createElement("script");i.id=n+"-script",i.src="https://cdn.jsdelivr.net/npm/".concat(t.repoName,"@").concat(t.version,"/").concat(o),(null==t?void 0:t.local)&&location.href.includes("localhost")&&(i.src="".concat(t.local)),document.head.appendChild(i)}catch(t){console.warn(t)}};var n=function(){function t(t){if(!(null==t?void 0:t.dictionary))throw new Error("no dictionary provided");this.dictionary=t.dictionary,this.setLang(null==t?void 0:t.lang)}return t.prototype.setLang=function(e){e||(e=t.getDefaultLang()),this.lang=e},t.prototype.translateWord=function(e,n){return t.getDictionaryWord(e,this.dictionary,n||this.lang)},t.prototype.translateDate=function(e,n,o){return t.formatDate(e,n,o||this.lang)},t.getDefaultLang=function(){var t,e,n,o,i,r="en";return(null===navigator||void 0===navigator?void 0:navigator.languages)&&(null===(n=null===(e=null===(t=navigator.languages[0])||void 0===t?void 0:t.split("-")[0])||void 0===e?void 0:e.toLowerCase())||void 0===n?void 0:n.length)&&(r=null===(i=null===(o=navigator.languages[0])||void 0===o?void 0:o.split("-")[0])||void 0===i?void 0:i.toLowerCase()),r},t.getDictionaryWord=function(e,n,o){var i;if(!e)throw new Error("no wordKey provided");if(!n)throw new Error("no dictionary provided");if(o&&(null===(i=n[o])||void 0===i?void 0:i[e]))return n[o][e];var r="",a=t.getDefaultLang();if(!o||a!==o){var l=null==n?void 0:n[a];(null==l?void 0:l[e])&&(r=l[e])}return r},t.formatDate=function(e,n,o){if(!e)throw new Error("no date provided");if("function"!=typeof e.getMonth)throw new Error("wrong date format");return new Intl.DateTimeFormat(o||t.getDefaultLang(),n).format(e)},t}();e.LanguageTranslator=n}(Z={exports:{}},Z.exports),Z.exports);function et(t){let e,n,i,r,u,g,h,m,v;return{c(){e=c("hb-offcanvas"),n=c("span"),n.innerHTML='<slot name="nav-header-slot"></slot>',p(n,"slot","header"),f(e,"style",t[17]),f(e,"navpage",i=t[4]||""),f(e,"navlinks",r=t[3]||"[]"),f(e,"companytitle",u=t[13]?.title),f(e,"companylogouri",g=t[13]?.logo),f(e,"opened",h=t[21]?"yes":"no"),f(e,"type","autohide")},m(o,i){l(o,e,i),a(e,n),m||(v=[d(e,"offcanvasswitch",t[30]),d(e,"pageChange",t[31])],m=!0)},p(t,n){131072&n[0]&&f(e,"style",t[17]),16&n[0]&&i!==(i=t[4]||"")&&f(e,"navpage",i),8&n[0]&&r!==(r=t[3]||"[]")&&f(e,"navlinks",r),8192&n[0]&&u!==(u=t[13]?.title)&&f(e,"companytitle",u),8192&n[0]&&g!==(g=t[13]?.logo)&&f(e,"companylogouri",g),2097152&n[0]&&h!==(h=t[21]?"yes":"no")&&f(e,"opened",h)},d(t){t&&s(e),m=!1,o(v)}}}function nt(t){let e,n;return{c(){e=c("hb-cookie-law-banner"),f(e,"style",t[20]),f(e,"language",n=t[12]||t[14]),f(e,"allowdecline",t[11]),f(e,"cookielawuri4more",t[10])},m(t,n){l(t,e,n)},p(t,o){1048576&o[0]&&f(e,"style",t[20]),20480&o[0]&&n!==(n=t[12]||t[14])&&f(e,"language",n),2048&o[0]&&f(e,"allowdecline",t[11]),1024&o[0]&&f(e,"cookielawuri4more",t[10])},d(t){t&&s(e)}}}function ot(e){let n,i,r,g,h,m,v,$,y,w,b,k,x,_,C,E,N,T,S,L,O,D,A,P,z,j,J,M,H,R=e[3]?.length&&et(e),F=(e[7]||e[11]||e[12]||e[10])&&nt(e);return{c(){R&&R.c(),n=u(),i=c("div"),r=c("hb-navbar"),g=c("span"),g.innerHTML='<slot name="nav-left-slot"></slot>',h=u(),m=c("span"),m.innerHTML='<slot name="nav-center-slot"></slot>',v=u(),$=c("span"),$.innerHTML='<slot name="nav-right-slot"></slot>',_=u(),C=c("div"),E=c("slot"),E.textContent="page",T=u(),F&&F.c(),S=u(),L=c("hb-footer"),this.c=t,p(g,"slot","left-slot"),p(m,"slot","center-slot"),p($,"slot","right-slot"),f(r,"part","navbar"),f(r,"style",e[19]),f(r,"noburger",y=e[3]?"":"yes"),f(r,"companylogouri",w=e[2]?.logoUri||""),f(r,"companybrandname",b=e[5]||e[2]?.siteName||""),f(r,"usermenu",k=e[6]||""),f(r,"switchopen",x=e[21]?"yes":"no"),p(E,"name","page"),p(C,"style",N=e[9]?"flex: 2":""),p(C,"part","page"),p(C,"id","page"),f(L,"policies",e[16]),f(L,"type",O="auto"===e[15].type?e[9]?"small":"regular":e[15].type),f(L,"part","footer"),f(L,"socials",D=e[0]?JSON.stringify(e[0]):""),f(L,"contacts",A=e[1]?JSON.stringify(e[1]):""),f(L,"style",P="display:block;"+e[18]),f(L,"company",z=e[2]?JSON.stringify(e[2]):""),f(L,"columns",j=e[8]||""),f(L,"disable_expanding_small",J=e[15].disable_expanding_small?"yes":"no"),p(i,"style",e[22]),p(i,"part","container")},m(t,o){R&&R.m(t,o),l(t,n,o),l(t,i,o),a(i,r),a(r,g),a(r,h),a(r,m),a(r,v),a(r,$),a(i,_),a(i,C),a(C,E),a(i,T),F&&F.m(i,null),a(i,S),a(i,L),M||(H=[d(r,"navmenuswitch",e[32]),d(r,"navbarDropDownClick",e[33]),d(r,"navbarSlotClick",e[34]),d(L,"footerClick",e[35])],M=!0)},p(t,e){t[3]?.length?R?R.p(t,e):(R=et(t),R.c(),R.m(n.parentNode,n)):R&&(R.d(1),R=null),524288&e[0]&&f(r,"style",t[19]),8&e[0]&&y!==(y=t[3]?"":"yes")&&f(r,"noburger",y),4&e[0]&&w!==(w=t[2]?.logoUri||"")&&f(r,"companylogouri",w),36&e[0]&&b!==(b=t[5]||t[2]?.siteName||"")&&f(r,"companybrandname",b),64&e[0]&&k!==(k=t[6]||"")&&f(r,"usermenu",k),2097152&e[0]&&x!==(x=t[21]?"yes":"no")&&f(r,"switchopen",x),512&e[0]&&N!==(N=t[9]?"flex: 2":"")&&p(C,"style",N),t[7]||t[11]||t[12]||t[10]?F?F.p(t,e):(F=nt(t),F.c(),F.m(i,S)):F&&(F.d(1),F=null),65536&e[0]&&f(L,"policies",t[16]),33280&e[0]&&O!==(O="auto"===t[15].type?t[9]?"small":"regular":t[15].type)&&f(L,"type",O),1&e[0]&&D!==(D=t[0]?JSON.stringify(t[0]):"")&&f(L,"socials",D),2&e[0]&&A!==(A=t[1]?JSON.stringify(t[1]):"")&&f(L,"contacts",A),262144&e[0]&&P!==(P="display:block;"+t[18])&&f(L,"style",P),4&e[0]&&z!==(z=t[2]?JSON.stringify(t[2]):"")&&f(L,"company",z),256&e[0]&&j!==(j=t[8]||"")&&f(L,"columns",j),32768&e[0]&&J!==(J=t[15].disable_expanding_small?"yes":"no")&&f(L,"disable_expanding_small",J),4194304&e[0]&&p(i,"style",t[22])},i:t,o:t,d(t){R&&R.d(t),t&&s(n),t&&s(i),F&&F.d(),M=!1,o(H)}}}function it(t,e,n){let o,i,{id:r}=e,{socials:a}=e,{contacts:l}=e,{company:s}=e,{navlinks:c}=e,{pagename:u}=e,{page_title:d}=e,{usermenu:p}=e,{cookielaw:f}=e,{columns:g}=e,{onescreen:h}=e,{cookielawuri4more:m}=e,{cookielawallowdecline:y}=e,{cookielawlanguage:w}=e,{sidebar:b}=e,{style:k}=e,{size:x}=e,{i18nlang:_}=e,{footer:C}=e,{policies:E}=e,N="",T="",S="",L="",O="",D="";const A=v(),P=$();function j(t,e){P(t,e),A.dispatchEvent&&A.dispatchEvent(new CustomEvent(t,{detail:e}))}function J(t){console.log("burgerclick",t),n(21,i=t.isOpen),j("offcanvasswitch",t)}tt.addComponent({repoName:"@htmlbricks/hb-footer",version:z}),tt.addComponent({repoName:"@htmlbricks/hb-offcanvas",version:z}),tt.addComponent({repoName:"@htmlbricks/hb-navbar",version:z}),tt.addComponent({repoName:"@htmlbricks/hb-cookie-law-banner",version:z}),tt.addComponent({repoName:"@htmlbricks/hb-sidebar-desktop",version:z});return t.$$set=t=>{"id"in t&&n(25,r=t.id),"socials"in t&&n(0,a=t.socials),"contacts"in t&&n(1,l=t.contacts),"company"in t&&n(2,s=t.company),"navlinks"in t&&n(3,c=t.navlinks),"pagename"in t&&n(4,u=t.pagename),"page_title"in t&&n(5,d=t.page_title),"usermenu"in t&&n(6,p=t.usermenu),"cookielaw"in t&&n(7,f=t.cookielaw),"columns"in t&&n(8,g=t.columns),"onescreen"in t&&n(9,h=t.onescreen),"cookielawuri4more"in t&&n(10,m=t.cookielawuri4more),"cookielawallowdecline"in t&&n(11,y=t.cookielawallowdecline),"cookielawlanguage"in t&&n(12,w=t.cookielawlanguage),"sidebar"in t&&n(13,b=t.sidebar),"style"in t&&n(27,k=t.style),"size"in t&&n(26,x=t.size),"i18nlang"in t&&n(14,_=t.i18nlang),"footer"in t&&n(15,C=t.footer),"policies"in t&&n(16,E=t.policies)},t.$$.update=()=>{1040318463&t.$$.dirty[0]&&(k&&(n(28,o=q(k)),n(17,N=tt.getChildStyleToPass(o,null==K?void 0:K.vars)),n(18,T=tt.getChildStyleToPass(o,null==G?void 0:G.vars)),n(19,S=tt.getChildStyleToPass(o,null==Q?void 0:Q.vars)),n(20,L=tt.getChildStyleToPass(o,null==X?void 0:X.vars)),n(29,O+=tt.getChildStyleToPass(o,null==Y?void 0:Y.vars))),x||n(26,x=void 0),r||n(25,r=""),m||n(10,m=""),y||n(11,y=""),w||n(12,w=""),u||n(4,u=null),f||n(7,f=null),E||n(16,E=null),C?"string"==typeof C&&n(15,C=JSON.parse(C)):n(15,C={type:"auto",disable_expanding_small:!1}),C.type||n(15,C.type="auto",C),p||n(6,p=null),g||n(8,g=null),"string"==typeof h?n(9,h="no"!==h):h||n(9,h=!1),_||n(14,_=null),d||n(5,d=null),b?"string"==typeof b&&n(13,b=JSON.parse(b)):n(13,b={}),s?"string"==typeof s&&n(2,s=JSON.parse(s)):n(2,s=null),c||n(3,c=null),a||n(0,a=null),l||n(1,l=null),n(22,D=h?"display: flex;flex-direction: column;\theight: 100vh;":"display:block;"))},[a,l,s,c,u,d,p,f,g,h,m,y,w,b,_,C,E,N,T,S,L,i,D,j,J,r,x,k,o,O,t=>J(t.detail),t=>j("pageChange",t.detail),t=>J(t.detail),t=>j("navbarDropDownClick",t.detail),t=>j("navbarSlotClick",t.detail),t=>j("footerClick",t.detail)]}class rt extends P{constructor(t){super();const e=document.createElement("style");e.textContent='@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css");:host{font-family:"Roboto", sans-serif}',this.shadowRoot.appendChild(e),A(this,{target:this.shadowRoot,props:g(this.attributes),customElement:!0},it,ot,r,{id:25,socials:0,contacts:1,company:2,navlinks:3,pagename:4,page_title:5,usermenu:6,cookielaw:7,columns:8,onescreen:9,cookielawuri4more:10,cookielawallowdecline:11,cookielawlanguage:12,sidebar:13,style:27,size:26,i18nlang:14,footer:15,policies:16},null,[-1,-1]),t&&(t.target&&l(t.target,this,t.anchor),t.props&&(this.$set(t.props),T()))}static get observedAttributes(){return["id","socials","contacts","company","navlinks","pagename","page_title","usermenu","cookielaw","columns","onescreen","cookielawuri4more","cookielawallowdecline","cookielawlanguage","sidebar","style","size","i18nlang","footer","policies"]}get id(){return this.$$.ctx[25]}set id(t){this.$$set({id:t}),T()}get socials(){return this.$$.ctx[0]}set socials(t){this.$$set({socials:t}),T()}get contacts(){return this.$$.ctx[1]}set contacts(t){this.$$set({contacts:t}),T()}get company(){return this.$$.ctx[2]}set company(t){this.$$set({company:t}),T()}get navlinks(){return this.$$.ctx[3]}set navlinks(t){this.$$set({navlinks:t}),T()}get pagename(){return this.$$.ctx[4]}set pagename(t){this.$$set({pagename:t}),T()}get page_title(){return this.$$.ctx[5]}set page_title(t){this.$$set({page_title:t}),T()}get usermenu(){return this.$$.ctx[6]}set usermenu(t){this.$$set({usermenu:t}),T()}get cookielaw(){return this.$$.ctx[7]}set cookielaw(t){this.$$set({cookielaw:t}),T()}get columns(){return this.$$.ctx[8]}set columns(t){this.$$set({columns:t}),T()}get onescreen(){return this.$$.ctx[9]}set onescreen(t){this.$$set({onescreen:t}),T()}get cookielawuri4more(){return this.$$.ctx[10]}set cookielawuri4more(t){this.$$set({cookielawuri4more:t}),T()}get cookielawallowdecline(){return this.$$.ctx[11]}set cookielawallowdecline(t){this.$$set({cookielawallowdecline:t}),T()}get cookielawlanguage(){return this.$$.ctx[12]}set cookielawlanguage(t){this.$$set({cookielawlanguage:t}),T()}get sidebar(){return this.$$.ctx[13]}set sidebar(t){this.$$set({sidebar:t}),T()}get style(){return this.$$.ctx[27]}set style(t){this.$$set({style:t}),T()}get size(){return this.$$.ctx[26]}set size(t){this.$$set({size:t}),T()}get i18nlang(){return this.$$.ctx[14]}set i18nlang(t){this.$$set({i18nlang:t}),T()}get footer(){return this.$$.ctx[15]}set footer(t){this.$$set({footer:t}),T()}get policies(){return this.$$.ctx[16]}set policies(t){this.$$set({policies:t}),T()}}return customElements.define("hb-layout-mobile",rt),rt}();
|
|
2
|
-
//# sourceMappingURL=release.js.map
|