@htmlbricks/hb-sidebar-cards-navigator 0.17.33 → 0.18.0
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/extra/docs.ts +32 -5
- package/package.json +9 -9
- package/release/docs.js +29 -4
- package/release/docs.js.map +1 -1
- package/release/docs.ts +32 -5
- package/release/manifest.json +96 -107
- package/release/release.js +1 -1
- package/release/release.js.map +1 -1
- package/release/webcomponent.type.d.ts +8 -16
package/extra/docs.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CssPart, CssVar, HtmlSlot, i18nLang, StyleSetup, ComponentSetup } from "
|
|
1
|
+
import type { CssPart, CssVar, HtmlSlot, i18nLang, StyleSetup, ComponentSetup } from "wc-js-utils/main";
|
|
2
2
|
import type { Component } from "../app/types/webcomponent.type";
|
|
3
3
|
|
|
4
4
|
export const storybookArgs = {
|
|
@@ -25,27 +25,54 @@ const examples: { name: string; description?: string; data: Component }[] = [
|
|
|
25
25
|
panels: [
|
|
26
26
|
{
|
|
27
27
|
id: "1",
|
|
28
|
+
title: "test",
|
|
28
29
|
cards: [
|
|
29
30
|
{
|
|
30
31
|
id: "1",
|
|
31
|
-
rows: [{
|
|
32
|
+
rows: [{ key: "1", text: "test", bootstrapIcon: "house-door", switchToPanelId: "2" }],
|
|
32
33
|
},
|
|
33
34
|
{
|
|
34
35
|
id: "2",
|
|
35
|
-
rows: [{
|
|
36
|
+
rows: [{ key: "1", text: "test2" }],
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
id: "3",
|
|
40
|
+
rows: [{ key: "1", text: "test3" }],
|
|
36
41
|
},
|
|
37
42
|
],
|
|
38
43
|
},
|
|
39
44
|
{
|
|
40
45
|
id: "2",
|
|
46
|
+
parentPanelId: "1",
|
|
47
|
+
title: "test2",
|
|
48
|
+
|
|
49
|
+
cards: [
|
|
50
|
+
{
|
|
51
|
+
id: "1",
|
|
52
|
+
title: "ttteesstt",
|
|
53
|
+
rows: [
|
|
54
|
+
{ key: "1", text: "test" },
|
|
55
|
+
{ key: "2", text: "ciao" },
|
|
56
|
+
],
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
id: "2",
|
|
60
|
+
rows: [{ key: "1", text: "test2", bootstrapIcon: "house-door", switchToPanelId: "1" }],
|
|
61
|
+
},
|
|
62
|
+
],
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
id: "3",
|
|
66
|
+
title: "test3",
|
|
67
|
+
|
|
41
68
|
cards: [
|
|
42
69
|
{
|
|
43
70
|
id: "1",
|
|
44
|
-
rows: [{
|
|
71
|
+
rows: [{ key: "1", text: "test" }],
|
|
45
72
|
},
|
|
46
73
|
{
|
|
47
74
|
id: "2",
|
|
48
|
-
rows: [{
|
|
75
|
+
rows: [{ key: "1", text: "test2", bootstrapIcon: "house-door", switchToPanelId: "1" }],
|
|
49
76
|
},
|
|
50
77
|
],
|
|
51
78
|
},
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@htmlbricks/hb-sidebar-cards-navigator",
|
|
3
3
|
"displayName": "Svelte-Bootstrap sidebar-cards-navigator",
|
|
4
4
|
"description": "Svelte-Bootstrap sidebar-cards-navigator",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.18.0",
|
|
6
6
|
"main": "release/release.js",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"start": "sirv dist",
|
|
21
21
|
"dev": "rm -rf ./dist && rollup -c -w",
|
|
22
22
|
"build": "rm -rf ./dist && rollup -c",
|
|
23
|
-
"generate-manifest": "npm run generate-schemes && manifester --dir $PWD",
|
|
23
|
+
"generate-manifest": "npm run generate-schemes && monorepo-wc-packages-manifester --dir $PWD",
|
|
24
24
|
"generate-component-schema": "ts-json-schema-generator --type 'Component' --path 'app/types/webcomponent.type.d.ts' > dist/webcomponent.type.d.json",
|
|
25
25
|
"generate-events-schema": "ts-json-schema-generator --type 'Events' --path 'app/types/webcomponent.type.d.ts' > dist/webcomponent_events.type.d.json",
|
|
26
26
|
"generate-schemes": "npm run generate-events-schema && npm run generate-component-schema",
|
|
@@ -30,8 +30,6 @@
|
|
|
30
30
|
"prepublish": "npm run build:release"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@htmlbricks/hb-jsutils": "^0.17.33",
|
|
34
|
-
"@htmlbricks/manifester": "^0.0.22",
|
|
35
33
|
"@rollup/plugin-alias": "^3.1.2",
|
|
36
34
|
"@rollup/plugin-commonjs": "^18.0.0",
|
|
37
35
|
"@rollup/plugin-json": "^4.1.0",
|
|
@@ -45,6 +43,7 @@
|
|
|
45
43
|
"eslint": "^7.25.0",
|
|
46
44
|
"eslint-plugin-jsdoc": "^33.0.0",
|
|
47
45
|
"eslint-plugin-svelte3": "^3.2.0",
|
|
46
|
+
"monorepo-wc-packages-manifester": "^0.0.3",
|
|
48
47
|
"node-sass": "^6.0.1",
|
|
49
48
|
"postcss": "^8.2.13",
|
|
50
49
|
"postcss-load-config": "^3.0.1",
|
|
@@ -67,7 +66,8 @@
|
|
|
67
66
|
"tslib": "^2.2.0",
|
|
68
67
|
"ttypescript": "^1.5.12",
|
|
69
68
|
"typescript": "^4.2.4",
|
|
70
|
-
"typescript-transform-paths": "^2.2.3"
|
|
69
|
+
"typescript-transform-paths": "^2.2.3",
|
|
70
|
+
"wc-js-utils": "^0.0.1"
|
|
71
71
|
},
|
|
72
72
|
"keywords": [
|
|
73
73
|
"svelte",
|
|
@@ -75,11 +75,11 @@
|
|
|
75
75
|
"webcomponents"
|
|
76
76
|
],
|
|
77
77
|
"contributors": [],
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "a9e0321cfbbcca49f89951314c0b138036873350",
|
|
79
79
|
"dependencies": {
|
|
80
|
-
"@htmlbricks/hb-navbar": "^0.
|
|
81
|
-
"@htmlbricks/hb-sidenav-button": "^0.
|
|
82
|
-
"@htmlbricks/hb-sidenav-link": "^0.
|
|
80
|
+
"@htmlbricks/hb-navbar": "^0.18.0",
|
|
81
|
+
"@htmlbricks/hb-sidenav-button": "^0.18.0",
|
|
82
|
+
"@htmlbricks/hb-sidenav-link": "^0.18.0",
|
|
83
83
|
"style-to-object": "^0.3.0"
|
|
84
84
|
}
|
|
85
85
|
}
|
package/release/docs.js
CHANGED
|
@@ -19,27 +19,52 @@ var examples = [
|
|
|
19
19
|
panels: [
|
|
20
20
|
{
|
|
21
21
|
id: "1",
|
|
22
|
+
title: "test",
|
|
22
23
|
cards: [
|
|
23
24
|
{
|
|
24
25
|
id: "1",
|
|
25
|
-
rows: [{
|
|
26
|
+
rows: [{ key: "1", text: "test", bootstrapIcon: "house-door", switchToPanelId: "2" }]
|
|
26
27
|
},
|
|
27
28
|
{
|
|
28
29
|
id: "2",
|
|
29
|
-
rows: [{
|
|
30
|
+
rows: [{ key: "1", text: "test2" }]
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
id: "3",
|
|
34
|
+
rows: [{ key: "1", text: "test3" }]
|
|
30
35
|
},
|
|
31
36
|
]
|
|
32
37
|
},
|
|
33
38
|
{
|
|
34
39
|
id: "2",
|
|
40
|
+
parentPanelId: "1",
|
|
41
|
+
title: "test2",
|
|
42
|
+
cards: [
|
|
43
|
+
{
|
|
44
|
+
id: "1",
|
|
45
|
+
title: "ttteesstt",
|
|
46
|
+
rows: [
|
|
47
|
+
{ key: "1", text: "test" },
|
|
48
|
+
{ key: "2", text: "ciao" },
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
id: "2",
|
|
53
|
+
rows: [{ key: "1", text: "test2", bootstrapIcon: "house-door", switchToPanelId: "1" }]
|
|
54
|
+
},
|
|
55
|
+
]
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
id: "3",
|
|
59
|
+
title: "test3",
|
|
35
60
|
cards: [
|
|
36
61
|
{
|
|
37
62
|
id: "1",
|
|
38
|
-
rows: [{
|
|
63
|
+
rows: [{ key: "1", text: "test" }]
|
|
39
64
|
},
|
|
40
65
|
{
|
|
41
66
|
id: "2",
|
|
42
|
-
rows: [{
|
|
67
|
+
rows: [{ key: "1", text: "test2", bootstrapIcon: "house-door", switchToPanelId: "1" }]
|
|
43
68
|
},
|
|
44
69
|
]
|
|
45
70
|
},
|
package/release/docs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"docs.js","sourceRoot":"","sources":["../extra/docs.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,IAAM,aAAa,GAAG;IAC5B,MAAM,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;IACvC,yCAAyC;IACzC,6CAA6C;IAC7C,SAAS,EAAE,EAAE,MAAM,EAAE,gBAAgB,EAAE;CACvC,CAAC;AAEF,IAAM,OAAO,GAAa,EAAE,CAAC;AAC7B,MAAM,CAAC,IAAM,QAAQ,GAAc,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,WAAW,EAAE,4BAA4B,EAAE,CAAC,CAAC;AACrG,MAAM,CAAC,IAAM,SAAS,GAAe,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,WAAW,EAAE,WAAW,EAAE,CAAC,CAAC;AACzF,MAAM,CAAC,IAAM,aAAa,GAAe,EAAE,CAAC;AAE5C,MAAM,CAAC,IAAM,UAAU,GAAe;IACrC,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,QAAQ;CACf,CAAC;AAEF,IAAM,QAAQ,GAA8D;IAC3E;QACC,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACL,MAAM,EAAE;gBACP;oBACC,EAAE,EAAE,GAAG;oBACP,KAAK,EAAE;wBACN;4BACC,EAAE,EAAE,GAAG;4BACP,IAAI,EAAE,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"docs.js","sourceRoot":"","sources":["../extra/docs.ts"],"names":[],"mappings":"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"}
|
package/release/docs.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CssPart, CssVar, HtmlSlot, i18nLang, StyleSetup, ComponentSetup } from "
|
|
1
|
+
import type { CssPart, CssVar, HtmlSlot, i18nLang, StyleSetup, ComponentSetup } from "wc-js-utils/main";
|
|
2
2
|
import type { Component } from "../app/types/webcomponent.type";
|
|
3
3
|
|
|
4
4
|
export const storybookArgs = {
|
|
@@ -25,27 +25,54 @@ const examples: { name: string; description?: string; data: Component }[] = [
|
|
|
25
25
|
panels: [
|
|
26
26
|
{
|
|
27
27
|
id: "1",
|
|
28
|
+
title: "test",
|
|
28
29
|
cards: [
|
|
29
30
|
{
|
|
30
31
|
id: "1",
|
|
31
|
-
rows: [{
|
|
32
|
+
rows: [{ key: "1", text: "test", bootstrapIcon: "house-door", switchToPanelId: "2" }],
|
|
32
33
|
},
|
|
33
34
|
{
|
|
34
35
|
id: "2",
|
|
35
|
-
rows: [{
|
|
36
|
+
rows: [{ key: "1", text: "test2" }],
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
id: "3",
|
|
40
|
+
rows: [{ key: "1", text: "test3" }],
|
|
36
41
|
},
|
|
37
42
|
],
|
|
38
43
|
},
|
|
39
44
|
{
|
|
40
45
|
id: "2",
|
|
46
|
+
parentPanelId: "1",
|
|
47
|
+
title: "test2",
|
|
48
|
+
|
|
49
|
+
cards: [
|
|
50
|
+
{
|
|
51
|
+
id: "1",
|
|
52
|
+
title: "ttteesstt",
|
|
53
|
+
rows: [
|
|
54
|
+
{ key: "1", text: "test" },
|
|
55
|
+
{ key: "2", text: "ciao" },
|
|
56
|
+
],
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
id: "2",
|
|
60
|
+
rows: [{ key: "1", text: "test2", bootstrapIcon: "house-door", switchToPanelId: "1" }],
|
|
61
|
+
},
|
|
62
|
+
],
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
id: "3",
|
|
66
|
+
title: "test3",
|
|
67
|
+
|
|
41
68
|
cards: [
|
|
42
69
|
{
|
|
43
70
|
id: "1",
|
|
44
|
-
rows: [{
|
|
71
|
+
rows: [{ key: "1", text: "test" }],
|
|
45
72
|
},
|
|
46
73
|
{
|
|
47
74
|
id: "2",
|
|
48
|
-
rows: [{
|
|
75
|
+
rows: [{ key: "1", text: "test2", bootstrapIcon: "house-door", switchToPanelId: "1" }],
|
|
49
76
|
},
|
|
50
77
|
],
|
|
51
78
|
},
|
package/release/manifest.json
CHANGED
|
@@ -26,49 +26,6 @@
|
|
|
26
26
|
"type": "object"
|
|
27
27
|
},
|
|
28
28
|
"CardRow": {
|
|
29
|
-
"anyOf": [
|
|
30
|
-
{
|
|
31
|
-
"$ref": "#/definitions/CardRowLine"
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
"$ref": "#/definitions/CardRowCustomLine"
|
|
35
|
-
}
|
|
36
|
-
]
|
|
37
|
-
},
|
|
38
|
-
"CardRowCustomLine": {
|
|
39
|
-
"additionalProperties": false,
|
|
40
|
-
"properties": {
|
|
41
|
-
"bootstrapIcon": {
|
|
42
|
-
"type": "string"
|
|
43
|
-
},
|
|
44
|
-
"iconUrl": {
|
|
45
|
-
"type": "string"
|
|
46
|
-
},
|
|
47
|
-
"id": {
|
|
48
|
-
"type": "string"
|
|
49
|
-
},
|
|
50
|
-
"subtitle": {
|
|
51
|
-
"type": "string"
|
|
52
|
-
},
|
|
53
|
-
"switchToPanelId": {
|
|
54
|
-
"type": "string"
|
|
55
|
-
},
|
|
56
|
-
"title": {
|
|
57
|
-
"type": "string"
|
|
58
|
-
},
|
|
59
|
-
"type": {
|
|
60
|
-
"const": "customLine",
|
|
61
|
-
"type": "string"
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
"required": [
|
|
65
|
-
"id",
|
|
66
|
-
"title",
|
|
67
|
-
"type"
|
|
68
|
-
],
|
|
69
|
-
"type": "object"
|
|
70
|
-
},
|
|
71
|
-
"CardRowLine": {
|
|
72
29
|
"additionalProperties": false,
|
|
73
30
|
"properties": {
|
|
74
31
|
"badge": {
|
|
@@ -92,7 +49,13 @@
|
|
|
92
49
|
"bootstrapIcon": {
|
|
93
50
|
"type": "string"
|
|
94
51
|
},
|
|
95
|
-
"
|
|
52
|
+
"key": {
|
|
53
|
+
"type": "string"
|
|
54
|
+
},
|
|
55
|
+
"selected": {
|
|
56
|
+
"type": "boolean"
|
|
57
|
+
},
|
|
58
|
+
"subtext": {
|
|
96
59
|
"type": "string"
|
|
97
60
|
},
|
|
98
61
|
"switchToPanelId": {
|
|
@@ -102,14 +65,26 @@
|
|
|
102
65
|
"type": "string"
|
|
103
66
|
},
|
|
104
67
|
"type": {
|
|
105
|
-
"
|
|
68
|
+
"enum": [
|
|
69
|
+
"switch",
|
|
70
|
+
"range",
|
|
71
|
+
"radio",
|
|
72
|
+
"checkbox",
|
|
73
|
+
"button"
|
|
74
|
+
],
|
|
106
75
|
"type": "string"
|
|
76
|
+
},
|
|
77
|
+
"value": {
|
|
78
|
+
"type": [
|
|
79
|
+
"string",
|
|
80
|
+
"number",
|
|
81
|
+
"boolean"
|
|
82
|
+
]
|
|
107
83
|
}
|
|
108
84
|
},
|
|
109
85
|
"required": [
|
|
110
|
-
"
|
|
111
|
-
"text"
|
|
112
|
-
"type"
|
|
86
|
+
"key",
|
|
87
|
+
"text"
|
|
113
88
|
],
|
|
114
89
|
"type": "object"
|
|
115
90
|
},
|
|
@@ -217,49 +192,6 @@
|
|
|
217
192
|
"type": "object"
|
|
218
193
|
},
|
|
219
194
|
"CardRow": {
|
|
220
|
-
"anyOf": [
|
|
221
|
-
{
|
|
222
|
-
"$ref": "#/definitions/CardRowLine"
|
|
223
|
-
},
|
|
224
|
-
{
|
|
225
|
-
"$ref": "#/definitions/CardRowCustomLine"
|
|
226
|
-
}
|
|
227
|
-
]
|
|
228
|
-
},
|
|
229
|
-
"CardRowCustomLine": {
|
|
230
|
-
"additionalProperties": false,
|
|
231
|
-
"properties": {
|
|
232
|
-
"bootstrapIcon": {
|
|
233
|
-
"type": "string"
|
|
234
|
-
},
|
|
235
|
-
"iconUrl": {
|
|
236
|
-
"type": "string"
|
|
237
|
-
},
|
|
238
|
-
"id": {
|
|
239
|
-
"type": "string"
|
|
240
|
-
},
|
|
241
|
-
"subtitle": {
|
|
242
|
-
"type": "string"
|
|
243
|
-
},
|
|
244
|
-
"switchToPanelId": {
|
|
245
|
-
"type": "string"
|
|
246
|
-
},
|
|
247
|
-
"title": {
|
|
248
|
-
"type": "string"
|
|
249
|
-
},
|
|
250
|
-
"type": {
|
|
251
|
-
"const": "customLine",
|
|
252
|
-
"type": "string"
|
|
253
|
-
}
|
|
254
|
-
},
|
|
255
|
-
"required": [
|
|
256
|
-
"id",
|
|
257
|
-
"title",
|
|
258
|
-
"type"
|
|
259
|
-
],
|
|
260
|
-
"type": "object"
|
|
261
|
-
},
|
|
262
|
-
"CardRowLine": {
|
|
263
195
|
"additionalProperties": false,
|
|
264
196
|
"properties": {
|
|
265
197
|
"badge": {
|
|
@@ -283,7 +215,13 @@
|
|
|
283
215
|
"bootstrapIcon": {
|
|
284
216
|
"type": "string"
|
|
285
217
|
},
|
|
286
|
-
"
|
|
218
|
+
"key": {
|
|
219
|
+
"type": "string"
|
|
220
|
+
},
|
|
221
|
+
"selected": {
|
|
222
|
+
"type": "boolean"
|
|
223
|
+
},
|
|
224
|
+
"subtext": {
|
|
287
225
|
"type": "string"
|
|
288
226
|
},
|
|
289
227
|
"switchToPanelId": {
|
|
@@ -293,14 +231,26 @@
|
|
|
293
231
|
"type": "string"
|
|
294
232
|
},
|
|
295
233
|
"type": {
|
|
296
|
-
"
|
|
234
|
+
"enum": [
|
|
235
|
+
"switch",
|
|
236
|
+
"range",
|
|
237
|
+
"radio",
|
|
238
|
+
"checkbox",
|
|
239
|
+
"button"
|
|
240
|
+
],
|
|
297
241
|
"type": "string"
|
|
242
|
+
},
|
|
243
|
+
"value": {
|
|
244
|
+
"type": [
|
|
245
|
+
"string",
|
|
246
|
+
"number",
|
|
247
|
+
"boolean"
|
|
248
|
+
]
|
|
298
249
|
}
|
|
299
250
|
},
|
|
300
251
|
"required": [
|
|
301
|
-
"
|
|
302
|
-
"text"
|
|
303
|
-
"type"
|
|
252
|
+
"key",
|
|
253
|
+
"text"
|
|
304
254
|
],
|
|
305
255
|
"type": "object"
|
|
306
256
|
},
|
|
@@ -392,14 +342,14 @@
|
|
|
392
342
|
"panels": [
|
|
393
343
|
{
|
|
394
344
|
"id": "1",
|
|
345
|
+
"title": "test",
|
|
395
346
|
"cards": [
|
|
396
347
|
{
|
|
397
348
|
"id": "1",
|
|
398
349
|
"rows": [
|
|
399
350
|
{
|
|
400
|
-
"
|
|
351
|
+
"key": "1",
|
|
401
352
|
"text": "test",
|
|
402
|
-
"type": "line",
|
|
403
353
|
"bootstrapIcon": "house-door",
|
|
404
354
|
"switchToPanelId": "2"
|
|
405
355
|
}
|
|
@@ -409,9 +359,17 @@
|
|
|
409
359
|
"id": "2",
|
|
410
360
|
"rows": [
|
|
411
361
|
{
|
|
412
|
-
"
|
|
413
|
-
"text": "test2"
|
|
414
|
-
|
|
362
|
+
"key": "1",
|
|
363
|
+
"text": "test2"
|
|
364
|
+
}
|
|
365
|
+
]
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
"id": "3",
|
|
369
|
+
"rows": [
|
|
370
|
+
{
|
|
371
|
+
"key": "1",
|
|
372
|
+
"text": "test3"
|
|
415
373
|
}
|
|
416
374
|
]
|
|
417
375
|
}
|
|
@@ -419,14 +377,46 @@
|
|
|
419
377
|
},
|
|
420
378
|
{
|
|
421
379
|
"id": "2",
|
|
380
|
+
"parentPanelId": "1",
|
|
381
|
+
"title": "test2",
|
|
422
382
|
"cards": [
|
|
423
383
|
{
|
|
424
384
|
"id": "1",
|
|
385
|
+
"title": "ttteesstt",
|
|
425
386
|
"rows": [
|
|
426
387
|
{
|
|
427
|
-
"
|
|
428
|
-
"text": "test"
|
|
429
|
-
|
|
388
|
+
"key": "1",
|
|
389
|
+
"text": "test"
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
"key": "2",
|
|
393
|
+
"text": "ciao"
|
|
394
|
+
}
|
|
395
|
+
]
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
"id": "2",
|
|
399
|
+
"rows": [
|
|
400
|
+
{
|
|
401
|
+
"key": "1",
|
|
402
|
+
"text": "test2",
|
|
403
|
+
"bootstrapIcon": "house-door",
|
|
404
|
+
"switchToPanelId": "1"
|
|
405
|
+
}
|
|
406
|
+
]
|
|
407
|
+
}
|
|
408
|
+
]
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
"id": "3",
|
|
412
|
+
"title": "test3",
|
|
413
|
+
"cards": [
|
|
414
|
+
{
|
|
415
|
+
"id": "1",
|
|
416
|
+
"rows": [
|
|
417
|
+
{
|
|
418
|
+
"key": "1",
|
|
419
|
+
"text": "test"
|
|
430
420
|
}
|
|
431
421
|
]
|
|
432
422
|
},
|
|
@@ -434,9 +424,8 @@
|
|
|
434
424
|
"id": "2",
|
|
435
425
|
"rows": [
|
|
436
426
|
{
|
|
437
|
-
"
|
|
427
|
+
"key": "1",
|
|
438
428
|
"text": "test2",
|
|
439
|
-
"type": "line",
|
|
440
429
|
"bootstrapIcon": "house-door",
|
|
441
430
|
"switchToPanelId": "1"
|
|
442
431
|
}
|
|
@@ -488,5 +477,5 @@
|
|
|
488
477
|
"size": {},
|
|
489
478
|
"iifePath": "release/release.js",
|
|
490
479
|
"repoName": "@htmlbricks/hb-sidebar-cards-navigator",
|
|
491
|
-
"version": "0.
|
|
480
|
+
"version": "0.18.0"
|
|
492
481
|
}
|
package/release/release.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var release=function(){"use strict";function t(){}function n(t){return t()}function e(){return Object.create(null)}function o(t){t.forEach(n)}function r(t){return"function"==typeof t}function i(t,n){return t!=t?n==n:t!==n||t&&"object"==typeof t||"function"==typeof t}function a(t,n){t.appendChild(n)}function s(t,n,e){t.insertBefore(n,e||null)}function l(t){t.parentNode.removeChild(t)}function c(t){return document.createElement(t)}function u(t){return document.createTextNode(t)}function d(){return u(" ")}function f(){return u("")}function p(t,n,e,o){return t.addEventListener(n,e,o),()=>t.removeEventListener(n,e,o)}function h(t,n,e){null==e?t.removeAttribute(n):t.getAttribute(n)!==e&&t.setAttribute(n,e)}function g(t,n,e){n in t?t[n]="boolean"==typeof t[n]&&""===e||e:h(t,n,e)}function m(t){const n={};for(const e of t)n[e.name]=e.value;return n}let v;function y(t){v=t}function b(){if(!v)throw new Error("Function called outside component initialization");return v}function $(){const t=b();return(n,e,{cancelable:o=!1}={})=>{const r=t.$$.callbacks[n];if(r){const i=function(t,n,{bubbles:e=!1,cancelable:o=!1}={}){const r=document.createEvent("CustomEvent");return r.initCustomEvent(t,e,o,n),r}(n,e,{cancelable:o});return r.slice().forEach((n=>{n.call(t,i)})),!i.defaultPrevented}return!0}}const w=[],k=[],E=[],C=[],x=Promise.resolve();let _=!1;function L(t){E.push(t)}const T=new Set;let N=0;function S(){const t=v;do{for(;N<w.length;){const t=w[N];N++,y(t),O(t.$$)}for(y(null),w.length=0,N=0;k.length;)k.pop()();for(let t=0;t<E.length;t+=1){const n=E[t];T.has(n)||(T.add(n),n())}E.length=0}while(w.length);for(;C.length;)C.pop()();_=!1,T.clear(),y(t)}function O(t){if(null!==t.fragment){t.update(),o(t.before_update);const n=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,n),t.after_update.forEach(L)}}const P=new Set;function A(t,n){t&&t.i&&(P.delete(t),t.i(n))}function M(t,n){t.d(1),n.delete(t.key)}function j(t,n,e,o,r,i,a,s,l,c,u,d){let f=t.length,p=i.length,h=f;const g={};for(;h--;)g[t[h].key]=h;const m=[],v=new Map,y=new Map;for(h=p;h--;){const t=d(r,i,h),s=e(t);let l=a.get(s);l?o&&l.p(t,n):(l=c(s,t),l.c()),v.set(s,m[h]=l),s in g&&y.set(s,Math.abs(h-g[s]))}const b=new Set,$=new Set;function w(t){A(t,1),t.m(s,u),a.set(t.key,t),u=t.first,p--}for(;f&&p;){const n=m[p-1],e=t[f-1],o=n.key,r=e.key;n===e?(u=n.first,f--,p--):v.has(r)?!a.has(o)||b.has(o)?w(n):$.has(r)?f--:y.get(o)>y.get(r)?($.add(o),w(n)):(b.add(r),f--):(l(e,a),f--)}for(;f--;){const n=t[f];v.has(n.key)||l(n,a)}for(;p;)w(m[p-1]);return m}function D(t,n){-1===t.$$.dirty[0]&&(w.push(t),_||(_=!0,x.then(S)),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<<n%31}function I(i,a,s,c,u,d,f,p=[-1]){const h=v;y(i);const g=i.$$={fragment:null,ctx:null,props:d,update:t,not_equal:u,bound:e(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(a.context||(h?h.$$.context:[])),callbacks:e(),dirty:p,skip_bound:!1,root:a.target||h.$$.root};f&&f(g.root);let m=!1;if(g.ctx=s?s(i,a.props||{},((t,n,...e)=>{const o=e.length?e[0]:n;return g.ctx&&u(g.ctx[t],g.ctx[t]=o)&&(!g.skip_bound&&g.bound[t]&&g.bound[t](o),m&&D(i,t)),n})):[],g.update(),m=!0,o(g.before_update),g.fragment=!!c&&c(g.ctx),a.target){if(a.hydrate){const t=function(t){return Array.from(t.childNodes)}(a.target);g.fragment&&g.fragment.l(t),t.forEach(l)}else g.fragment&&g.fragment.c();a.intro&&A(i.$$.fragment),function(t,e,i,a){const{fragment:s,on_mount:l,on_destroy:c,after_update:u}=t.$$;s&&s.m(e,i),a||L((()=>{const e=l.map(n).filter(r);c?c.push(...e):o(e),t.$$.on_mount=[]})),u.forEach(L)}(i,a.target,a.anchor,a.customElement),S()}y(h)}let R;"function"==typeof HTMLElement&&(R=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(n).filter(r);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,n,e){this[t]=e}disconnectedCallback(){o(this.$$.on_disconnect)}$destroy(){!function(t,n){const e=t.$$;null!==e.fragment&&(o(e.on_destroy),e.fragment&&e.fragment.d(n),e.on_destroy=e.fragment=null,e.ctx=[])}(this,1),this.$destroy=t}$on(t,n){const e=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return e.push(n),()=>{const t=e.indexOf(n);-1!==t&&e.splice(t,1)}}$set(t){var n;this.$$set&&(n=t,0!==Object.keys(n).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});var z="0.17.33",F=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,H=/\n/g,J=/^\s*/,V=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,W=/^:\s*/,B=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,q=/^[;\s]*/,K=/^\s+|\s+$/g,G="";function Q(t){return t?t.replace(K,G):G}var U=function(t,n){var e,o=null;if(!t||"string"!=typeof t)return o;for(var r,i,a=function(t,n){if("string"!=typeof t)throw new TypeError("First argument must be a string");if(!t)return[];n=n||{};var e=1,o=1;function r(t){var n=t.match(H);n&&(e+=n.length);var r=t.lastIndexOf("\n");o=~r?t.length-r:o+t.length}function i(){var t={line:e,column:o};return function(n){return n.position=new a(t),c(),n}}function a(t){this.start=t,this.end={line:e,column:o},this.source=n.source}function s(r){var i=new Error(n.source+":"+e+":"+o+": "+r);if(i.reason=r,i.filename=n.source,i.line=e,i.column=o,i.source=t,!n.silent)throw i}function l(n){var e=n.exec(t);if(e){var o=e[0];return r(o),t=t.slice(o.length),e}}function c(){l(J)}function u(t){var n;for(t=t||[];n=d();)!1!==n&&t.push(n);return t}function d(){var n=i();if("/"==t.charAt(0)&&"*"==t.charAt(1)){for(var e=2;G!=t.charAt(e)&&("*"!=t.charAt(e)||"/"!=t.charAt(e+1));)++e;if(e+=2,G===t.charAt(e-1))return s("End of comment missing");var a=t.slice(2,e-2);return o+=2,r(a),t=t.slice(e),o+=2,n({type:"comment",comment:a})}}function f(){var t=i(),n=l(V);if(n){if(d(),!l(W))return s("property missing ':'");var e=l(B),o=t({type:"declaration",property:Q(n[0].replace(F,G)),value:e?Q(e[0].replace(F,G)):G});return l(q),o}}return a.prototype.content=t,c(),function(){var t,n=[];for(u(n);t=f();)!1!==t&&(n.push(t),u(n));return n}()}(t),s="function"==typeof n,l=0,c=a.length;l<c;l++)r=(e=a[l]).property,i=e.value,s?n(r,i,e):i&&(o||(o={}),o[r]=i);return o};var X,Y=(function(t,n){n.__esModule=!0,n.LanguageTranslator=n.addComponent=n.getChildStyleToPass=void 0,n.getChildStyleToPass=function(t,n){var e,o,r="";if(t&&(null==n?void 0:n.length)&&(null===(e=Object.keys(t))||void 0===e?void 0:e.length)&&(null===(o=null==n?void 0:n.filter((function(n){return Object.keys(t).includes(n.name)})))||void 0===o?void 0:o.length))for(var i=function(e){(null==n?void 0:n.filter((function(n){return n.name===e&&n.defaultValue!==t[e]})))&&(r+="".concat(e,":").concat(t[e],";"))},a=0,s=Object.keys(t);a<s.length;a++)i(s[a]);return r},n.addComponent=function(t){var n,e=(null===(n=null==t?void 0:t.repoName.split("/"))||void 0===n?void 0:n[1])||(null==t?void 0:t.repoName);if(!e)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(e+"-script"))try{var r=document.createElement("script");r.id=e+"-script",r.src="https://cdn.jsdelivr.net/npm/".concat(t.repoName,"@").concat(t.version,"/").concat(o),(null==t?void 0:t.local)&&location.href.includes("localhost")&&(r.src="".concat(t.local)),document.head.appendChild(r)}catch(t){console.warn(t)}};var e=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(n){n||(n=t.getDefaultLang()),this.lang=n},t.prototype.translateWord=function(n,e){return t.getDictionaryWord(n,this.dictionary,e||this.lang)},t.prototype.translateDate=function(n,e,o){return t.formatDate(n,e,o||this.lang)},t.getDefaultLang=function(){var t,n,e,o,r,i="en";return(null===navigator||void 0===navigator?void 0:navigator.languages)&&(null===(e=null===(n=null===(t=navigator.languages[0])||void 0===t?void 0:t.split("-")[0])||void 0===n?void 0:n.toLowerCase())||void 0===e?void 0:e.length)&&(i=null===(r=null===(o=navigator.languages[0])||void 0===o?void 0:o.split("-")[0])||void 0===r?void 0:r.toLowerCase()),i},t.getDictionaryWord=function(n,e,o){var r;if(!n)throw new Error("no wordKey provided");if(!e)throw new Error("no dictionary provided");if(o&&(null===(r=e[o])||void 0===r?void 0:r[n]))return e[o][n];var i="",a=t.getDefaultLang();if(!o||a!==o){var s=null==e?void 0:e[a];(null==s?void 0:s[n])&&(i=s[n])}return i},t.formatDate=function(n,e,o){if(!n)throw new Error("no date provided");if("function"!=typeof n.getMonth)throw new Error("wrong date format");return new Intl.DateTimeFormat(o||t.getDefaultLang(),e).format(n)},t}();n.LanguageTranslator=e}(X={exports:{}},X.exports),X.exports),Z={vars:[],parts:[{name:"left-slot",description:""},{name:"center-slot",description:""},{name:"right-slot",description:""}]},tt={vars:[{name:"--bs-primary",defaultValue:"#07689f",valueType:"color",theme:"bootstrap"}],parts:[{name:"li",description:"list element"}]},nt={vars:[{name:"--bs-primary",defaultValue:"#07689f",valueType:"color",theme:"bootstrap"}],parts:[{name:"li",description:"list element"}]};function et(t,n,e){const o=t.slice();return o[14]=n[e],o}function ot(t,n,e){const o=t.slice();return o[17]=n[e],o}function rt(t){let n,e,o,r=[],i=new Map,a=t[0].cards;const u=t=>t[14].id;for(let n=0;n<a.length;n+=1){let e=et(t,a,n),o=u(e);i.set(o,r[n]=ct(o,e))}return{c(){n=c("hb-navbar"),e=d();for(let t=0;t<r.length;t+=1)r[t].c();o=f()},m(t,i){s(t,n,i),s(t,e,i);for(let n=0;n<r.length;n+=1)r[n].m(t,i);s(t,o,i)},p(t,n){3&n&&(a=t[0].cards,r=j(r,n,u,1,t,a,i,o.parentNode,M,ct,o,et))},d(t){t&&l(n),t&&l(e);for(let n=0;n<r.length;n+=1)r[n].d(t);t&&l(o)}}}function it(t){let n,e=[],o=new Map,r=t[14].rows;const i=t=>t[17].id;for(let n=0;n<r.length;n+=1){let a=ot(t,r,n),s=i(a);o.set(s,e[n]=lt(s,a))}return{c(){n=c("div");for(let t=0;t<e.length;t+=1)e[t].c();h(n,"class","sidebar-card-rows-container")},m(t,o){s(t,n,o);for(let t=0;t<e.length;t+=1)e[t].m(n,null)},p(t,a){3&a&&(r=t[14].rows,e=j(e,a,i,1,t,r,o,n,M,lt,null,ot))},d(t){t&&l(n);for(let t=0;t<e.length;t+=1)e[t].d()}}}function at(t){let n,e,o;function r(){return t[7](t[17],t[14])}return{c(){n=c("div"),n.textContent="customLine",h(n,"class","sidebar-card-item custom-line-container")},m(t,i){s(t,n,i),e||(o=p(n,"click",r),e=!0)},p(n,e){t=n},d(t){t&&l(n),e=!1,o()}}}function st(t){let n,e,o,r;function i(...n){return t[6](t[17],t[14],...n)}return{c(){n=c("hb-sidenav-link"),g(n,"navlink",e=JSON.stringify(dt(t[17])))},m(t,e){s(t,n,e),o||(r=p(n,"pageChange",i),o=!0)},p(o,r){t=o,1&r&&e!==(e=JSON.stringify(dt(t[17])))&&g(n,"navlink",e)},d(t){t&&l(n),o=!1,r()}}}function lt(t,n){let e,o;function r(t,n){return"line"===t[17].type?st:"customLine"===t[17].type?at:void 0}let i=r(n),u=i&&i(n);return{key:t,first:null,c(){e=c("div"),u&&u.c(),o=d(),h(e,"class","sidebar-card-row"),this.first=e},m(t,n){s(t,e,n),u&&u.m(e,null),a(e,o)},p(t,a){i===(i=r(n=t))&&u?u.p(n,a):(u&&u.d(1),u=i&&i(n),u&&(u.c(),u.m(e,o)))},d(t){t&&l(e),u&&u.d()}}}function ct(t,n){let e,o,r=n[14].rows&&n[14].rows.length>0&&it(n);return{key:t,first:null,c(){e=c("div"),r&&r.c(),o=d(),h(e,"class","sidebar-card-container"),this.first=e},m(t,n){s(t,e,n),r&&r.m(e,null),a(e,o)},p(t,i){(n=t)[14].rows&&n[14].rows.length>0?r?r.p(n,i):(r=it(n),r.c(),r.m(e,o)):r&&(r.d(1),r=null)},d(t){t&&l(e),r&&r.d()}}}function ut(n){let e,o,r,i,a=n[0]&&rt(n);return{c(){e=u("to be done, ref "),o=c("a"),o.textContent="https://web.telegram.com",r=u(" left panel\n\n"),a&&a.c(),i=f(),this.c=t,h(o,"href","https://web.telegram.org/z/")},m(t,n){s(t,e,n),s(t,o,n),s(t,r,n),a&&a.m(t,n),s(t,i,n)},p(t,[n]){t[0]?a?a.p(t,n):(a=rt(t),a.c(),a.m(i.parentNode,i)):a&&(a.d(1),a=null)},i:t,o:t,d(t){t&&l(e),t&&l(o),t&&l(r),a&&a.d(t),t&&l(i)}}}function dt(t){const n={label:t.text,key:t.id};return t.bootstrapIcon&&(n.icon=t.bootstrapIcon),t.badge&&(n.badge=t.badge),n}function ft(t,n,e){const o=b(),r=$();let i,a,{id:s}=n,{style:l}=n,{panels:c}=n;function u(t,n){const i=a.cards.find((t=>t.id===n)),l=i.rows.find((n=>n.id===t)),u=Object.assign({},a);delete u.cards;const d=Object.assign({},i);delete d.rows;!function(t,n){r(t,n),o.dispatchEvent&&o.dispatchEvent(new CustomEvent(t,{detail:n}))}("itemClick",{id:s,row:l,panel:u,card:d}),l.switchToPanelId&&e(0,a=c.find((t=>t.id===l.switchToPanelId)))}Y.addComponent({repoName:"@htmlbricks/hb-navbar",version:z}),Y.addComponent({repoName:"@htmlbricks/hb-sidenav-link",version:z}),Y.addComponent({repoName:"@htmlbricks/hb-sidenav-button",version:z});return t.$$set=t=>{"id"in t&&e(2,s=t.id),"style"in t&&e(4,l=t.style),"panels"in t&&e(3,c=t.panels)},t.$$.update=()=>{if(61&t.$$.dirty){if(s||e(2,s=""),l&&(e(5,i=U(l)),Y.getChildStyleToPass(i,null==Z?void 0:Z.vars),Y.getChildStyleToPass(i,null==tt?void 0:tt.vars),Y.getChildStyleToPass(i,null==nt?void 0:nt.vars)),"string"==typeof c)try{e(3,c=JSON.parse(c))}catch(t){console.error("error parsing panels",t)}!a&&(null==c?void 0:c.length)&&(e(0,a=c.find((t=>t.main))),a||e(0,a=c.find((t=>!t.parentPanelId))))}},[a,u,s,c,l,i,(t,n,e)=>{u(t.id,n.id)},(t,n)=>{u(t.id,n.id)}]}class pt extends R{constructor(t){super(),this.shadowRoot.innerHTML='<style>@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");:host{font-family:"Roboto", sans-serif}</style>',I(this,{target:this.shadowRoot,props:m(this.attributes),customElement:!0},ft,ut,i,{id:2,style:4,panels:3},null),t&&(t.target&&s(t.target,this,t.anchor),t.props&&(this.$set(t.props),S()))}static get observedAttributes(){return["id","style","panels"]}get id(){return this.$$.ctx[2]}set id(t){this.$$set({id:t}),S()}get style(){return this.$$.ctx[4]}set style(t){this.$$set({style:t}),S()}get panels(){return this.$$.ctx[3]}set panels(t){this.$$set({panels:t}),S()}}return customElements.define("hb-sidebar-cards-navigator",pt),pt}();
|
|
1
|
+
var release=function(){"use strict";function t(){}function n(t){return t()}function e(){return Object.create(null)}function o(t){t.forEach(n)}function r(t){return"function"==typeof t}function i(t,n){return t!=t?n==n:t!==n||t&&"object"==typeof t||"function"==typeof t}function a(t,n){t.appendChild(n)}function s(t,n,e){t.insertBefore(n,e||null)}function l(t){t.parentNode.removeChild(t)}function c(t){return document.createElement(t)}function u(t){return document.createTextNode(t)}function d(){return u(" ")}function f(){return u("")}function p(t,n,e,o){return t.addEventListener(n,e,o),()=>t.removeEventListener(n,e,o)}function h(t,n,e){null==e?t.removeAttribute(n):t.getAttribute(n)!==e&&t.setAttribute(n,e)}function g(t,n,e){n in t?t[n]="boolean"==typeof t[n]&&""===e||e:h(t,n,e)}function m(t,n,e,o){null===e?t.style.removeProperty(n):t.style.setProperty(n,e,o?"important":"")}function v(t){const n={};for(const e of t)n[e.name]=e.value;return n}let y;function b(t){y=t}function $(){if(!y)throw new Error("Function called outside component initialization");return y}function w(){const t=$();return(n,e,{cancelable:o=!1}={})=>{const r=t.$$.callbacks[n];if(r){const i=function(t,n,{bubbles:e=!1,cancelable:o=!1}={}){const r=document.createEvent("CustomEvent");return r.initCustomEvent(t,e,o,n),r}(n,e,{cancelable:o});return r.slice().forEach((n=>{n.call(t,i)})),!i.defaultPrevented}return!0}}const k=[],E=[],_=[],x=[],C=Promise.resolve();let P=!1;function I(t){_.push(t)}const T=new Set;let L=0;function N(){const t=y;do{for(;L<k.length;){const t=k[L];L++,b(t),j(t.$$)}for(b(null),k.length=0,L=0;E.length;)E.pop()();for(let t=0;t<_.length;t+=1){const n=_[t];T.has(n)||(T.add(n),n())}_.length=0}while(k.length);for(;x.length;)x.pop()();P=!1,T.clear(),b(t)}function j(t){if(null!==t.fragment){t.update(),o(t.before_update);const n=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,n),t.after_update.forEach(I)}}const O=new Set;function S(t,n){t&&t.i&&(O.delete(t),t.i(n))}function A(t,n){t.d(1),n.delete(t.key)}function M(t,n,e,o,r,i,a,s,l,c,u,d){let f=t.length,p=i.length,h=f;const g={};for(;h--;)g[t[h].key]=h;const m=[],v=new Map,y=new Map;for(h=p;h--;){const t=d(r,i,h),s=e(t);let l=a.get(s);l?o&&l.p(t,n):(l=c(s,t),l.c()),v.set(s,m[h]=l),s in g&&y.set(s,Math.abs(h-g[s]))}const b=new Set,$=new Set;function w(t){S(t,1),t.m(s,u),a.set(t.key,t),u=t.first,p--}for(;f&&p;){const n=m[p-1],e=t[f-1],o=n.key,r=e.key;n===e?(u=n.first,f--,p--):v.has(r)?!a.has(o)||b.has(o)?w(n):$.has(r)?f--:y.get(o)>y.get(r)?($.add(o),w(n)):(b.add(r),f--):(l(e,a),f--)}for(;f--;){const n=t[f];v.has(n.key)||l(n,a)}for(;p;)w(m[p-1]);return m}function D(t,n){-1===t.$$.dirty[0]&&(k.push(t),P||(P=!0,C.then(N)),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<<n%31}function R(i,a,s,c,u,d,f,p=[-1]){const h=y;b(i);const g=i.$$={fragment:null,ctx:null,props:d,update:t,not_equal:u,bound:e(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(a.context||(h?h.$$.context:[])),callbacks:e(),dirty:p,skip_bound:!1,root:a.target||h.$$.root};f&&f(g.root);let m=!1;if(g.ctx=s?s(i,a.props||{},((t,n,...e)=>{const o=e.length?e[0]:n;return g.ctx&&u(g.ctx[t],g.ctx[t]=o)&&(!g.skip_bound&&g.bound[t]&&g.bound[t](o),m&&D(i,t)),n})):[],g.update(),m=!0,o(g.before_update),g.fragment=!!c&&c(g.ctx),a.target){if(a.hydrate){const t=function(t){return Array.from(t.childNodes)}(a.target);g.fragment&&g.fragment.l(t),t.forEach(l)}else g.fragment&&g.fragment.c();a.intro&&S(i.$$.fragment),function(t,e,i,a){const{fragment:s,on_mount:l,on_destroy:c,after_update:u}=t.$$;s&&s.m(e,i),a||I((()=>{const e=l.map(n).filter(r);c?c.push(...e):o(e),t.$$.on_mount=[]})),u.forEach(I)}(i,a.target,a.anchor,a.customElement),N()}b(h)}let z;"function"==typeof HTMLElement&&(z=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(n).filter(r);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,n,e){this[t]=e}disconnectedCallback(){o(this.$$.on_disconnect)}$destroy(){!function(t,n){const e=t.$$;null!==e.fragment&&(o(e.on_destroy),e.fragment&&e.fragment.d(n),e.on_destroy=e.fragment=null,e.ctx=[])}(this,1),this.$destroy=t}$on(t,n){const e=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return e.push(n),()=>{const t=e.indexOf(n);-1!==t&&e.splice(t,1)}}$set(t){var n;this.$$set&&(n=t,0!==Object.keys(n).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});var F="0.18.0",H=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,J=/\n/g,W=/^\s*/,B=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,V=/^:\s*/,q=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,K=/^[;\s]*/,G=/^\s+|\s+$/g,Q="";function U(t){return t?t.replace(G,Q):Q}var X=function(t,n){var e,o=null;if(!t||"string"!=typeof t)return o;for(var r,i,a=function(t,n){if("string"!=typeof t)throw new TypeError("First argument must be a string");if(!t)return[];n=n||{};var e=1,o=1;function r(t){var n=t.match(J);n&&(e+=n.length);var r=t.lastIndexOf("\n");o=~r?t.length-r:o+t.length}function i(){var t={line:e,column:o};return function(n){return n.position=new a(t),c(),n}}function a(t){this.start=t,this.end={line:e,column:o},this.source=n.source}function s(r){var i=new Error(n.source+":"+e+":"+o+": "+r);if(i.reason=r,i.filename=n.source,i.line=e,i.column=o,i.source=t,!n.silent)throw i}function l(n){var e=n.exec(t);if(e){var o=e[0];return r(o),t=t.slice(o.length),e}}function c(){l(W)}function u(t){var n;for(t=t||[];n=d();)!1!==n&&t.push(n);return t}function d(){var n=i();if("/"==t.charAt(0)&&"*"==t.charAt(1)){for(var e=2;Q!=t.charAt(e)&&("*"!=t.charAt(e)||"/"!=t.charAt(e+1));)++e;if(e+=2,Q===t.charAt(e-1))return s("End of comment missing");var a=t.slice(2,e-2);return o+=2,r(a),t=t.slice(e),o+=2,n({type:"comment",comment:a})}}function f(){var t=i(),n=l(B);if(n){if(d(),!l(V))return s("property missing ':'");var e=l(q),o=t({type:"declaration",property:U(n[0].replace(H,Q)),value:e?U(e[0].replace(H,Q)):Q});return l(K),o}}return a.prototype.content=t,c(),function(){var t,n=[];for(u(n);t=f();)!1!==t&&(n.push(t),u(n));return n}()}(t),s="function"==typeof n,l=0,c=a.length;l<c;l++)r=(e=a[l]).property,i=e.value,s?n(r,i,e):i&&(o||(o={}),o[r]=i);return o};var Y,Z=(function(t,n){n.__esModule=!0,n.LanguageTranslator=n.addComponent=n.getChildStyleToPass=void 0,n.getChildStyleToPass=function(t,n){var e,o,r="";if(t&&(null==n?void 0:n.length)&&(null===(e=Object.keys(t))||void 0===e?void 0:e.length)&&(null===(o=null==n?void 0:n.filter((function(n){return Object.keys(t).includes(n.name)})))||void 0===o?void 0:o.length))for(var i=function(e){(null==n?void 0:n.filter((function(n){return n.name===e&&n.defaultValue!==t[e]})))&&(r+="".concat(e,":").concat(t[e],";"))},a=0,s=Object.keys(t);a<s.length;a++)i(s[a]);return r},n.addComponent=function(t){var n,e=(null===(n=null==t?void 0:t.repoName.split("/"))||void 0===n?void 0:n[1])||(null==t?void 0:t.repoName);if(!e)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(e+"-script"))try{var r=document.createElement("script");r.id=e+"-script",r.src="https://cdn.jsdelivr.net/npm/".concat(t.repoName,"@").concat(t.version,"/").concat(o),(null==t?void 0:t.local)&&location.href.includes("localhost")&&(r.src="".concat(t.local)),document.head.appendChild(r)}catch(t){console.warn(t)}};var e=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(n){n||(n=t.getDefaultLang()),this.lang=n},t.prototype.translateWord=function(n,e){return t.getDictionaryWord(n,this.dictionary,e||this.lang)},t.prototype.translateDate=function(n,e,o){return t.formatDate(n,e,o||this.lang)},t.getDefaultLang=function(){var t,n,e,o,r,i="en";return(null===navigator||void 0===navigator?void 0:navigator.languages)&&(null===(e=null===(n=null===(t=navigator.languages[0])||void 0===t?void 0:t.split("-")[0])||void 0===n?void 0:n.toLowerCase())||void 0===e?void 0:e.length)&&(i=null===(r=null===(o=navigator.languages[0])||void 0===o?void 0:o.split("-")[0])||void 0===r?void 0:r.toLowerCase()),i},t.getDictionaryWord=function(n,e,o){var r;if(!n)throw new Error("no wordKey provided");if(!e)throw new Error("no dictionary provided");if(o&&(null===(r=e[o])||void 0===r?void 0:r[n]))return e[o][n];var i="",a=t.getDefaultLang();if(!o||a!==o){var s=null==e?void 0:e[a];(null==s?void 0:s[n])&&(i=s[n])}return i},t.formatDate=function(n,e,o){if(!n)throw new Error("no date provided");if("function"!=typeof n.getMonth)throw new Error("wrong date format");return new Intl.DateTimeFormat(o||t.getDefaultLang(),e).format(n)},t}();n.LanguageTranslator=e}(Y={exports:{}},Y.exports),Y.exports),tt={vars:[],parts:[{name:"left-slot",description:""},{name:"center-slot",description:""},{name:"right-slot",description:""}]},nt={vars:[{name:"--bs-primary",defaultValue:"#07689f",valueType:"color",theme:"bootstrap"}],parts:[{name:"li",description:"list element"}]};function et(t,n,e){const o=t.slice();return o[13]=n[e],o}function ot(t,n,e){const o=t.slice();return o[16]=n[e],o}function rt(t){let n,e,o,r,i,u,v,y,b=[],$=new Map,w=t[1].cards;const k=t=>t[13].id+"_c_"+t[1].id;for(let n=0;n<w.length;n+=1){let e=et(t,w,n),o=k(e);$.set(o,b[n]=st(o,e))}return{c(){n=c("hb-navbar"),e=c("i"),i=d();for(let t=0;t<b.length;t+=1)b[t].c();u=f(),h(e,"slot","nav-switcher"),m(e,"font-weight","bold"),m(e,"cursor",t[1].parentPanelId?"pointer":""),h(e,"class",o="bi bi-"+(t[1].parentPanelId?"arrow-left":"list")),g(n,"companybrandname",r=t[1].title)},m(o,r){s(o,n,r),a(n,e),s(o,i,r);for(let t=0;t<b.length;t+=1)b[t].m(o,r);s(o,u,r),v||(y=p(n,"navmenuswitch",t[6]),v=!0)},p(t,i){2&i&&m(e,"cursor",t[1].parentPanelId?"pointer":""),2&i&&o!==(o="bi bi-"+(t[1].parentPanelId?"arrow-left":"list"))&&h(e,"class",o),2&i&&r!==(r=t[1].title)&&g(n,"companybrandname",r),6&i&&(w=t[1].cards,b=M(b,i,k,1,t,w,$,u.parentNode,A,st,u,et))},d(t){t&&l(n),t&&l(i);for(let n=0;n<b.length;n+=1)b[n].d(t);t&&l(u),v=!1,y()}}}function it(t){let n,e=[],o=new Map,r=t[13].rows;const i=t=>t[16].key+"_r_"+t[13].id;for(let n=0;n<r.length;n+=1){let a=ot(t,r,n),s=i(a);o.set(s,e[n]=at(s,a))}return{c(){n=c("div");for(let t=0;t<e.length;t+=1)e[t].c();h(n,"class","sidebar-card-rows-container")},m(t,o){s(t,n,o);for(let t=0;t<e.length;t+=1)e[t].m(n,null)},p(t,a){6&a&&(r=t[13].rows,e=M(e,a,i,1,t,r,o,n,A,at,null,ot))},d(t){t&&l(n);for(let t=0;t<e.length;t+=1)e[t].d()}}}function at(t,n){let e,o,r,i,u,f;function m(...t){return n[7](n[16],n[13],...t)}return{key:t,first:null,c(){e=c("div"),o=c("hb-sidenav-button"),i=d(),g(o,"navlink",r=JSON.stringify(ct(n[16]))),h(e,"class","sidebar-card-row"),this.first=e},m(t,n){s(t,e,n),a(e,o),a(e,i),u||(f=p(o,"pageChange",m),u=!0)},p(t,e){n=t,2&e&&r!==(r=JSON.stringify(ct(n[16])))&&g(o,"navlink",r)},d(t){t&&l(e),u=!1,f()}}}function st(t,n){let e,o,r=n[13].rows&&n[13].rows.length>0&&it(n);return{key:t,first:null,c(){e=c("div"),r&&r.c(),o=d(),h(e,"class","sidebar-card-container"),this.first=e},m(t,n){s(t,e,n),r&&r.m(e,null),a(e,o)},p(t,i){(n=t)[13].rows&&n[13].rows.length>0?r?r.p(n,i):(r=it(n),r.c(),r.m(e,o)):r&&(r.d(1),r=null)},d(t){t&&l(e),r&&r.d()}}}function lt(n){let e,o,r,i,d,p=n[1]&&rt(n);return{c(){e=c("link"),o=u("\nto be done, ref "),r=c("a"),r.textContent="https://web.telegram.com",i=u(" left panel\n\n"),p&&p.c(),d=f(),this.c=t,h(e,"rel","stylesheet"),h(e,"href","https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css"),h(r,"href","https://web.telegram.org/z/")},m(t,n){a(document.head,e),s(t,o,n),s(t,r,n),s(t,i,n),p&&p.m(t,n),s(t,d,n)},p(t,[n]){t[1]?p?p.p(t,n):(p=rt(t),p.c(),p.m(d.parentNode,d)):p&&(p.d(1),p=null)},i:t,o:t,d(t){l(e),t&&l(o),t&&l(r),t&&l(i),p&&p.d(t),t&&l(d)}}}function ct(t){const n={text:t.text,key:t.key};return t.bootstrapIcon&&(n.bootstrapIcon=t.bootstrapIcon),t.badge&&(n.badge=t.badge),n}function ut(t,n,e){const o=$(),r=w();let i,a,{id:s}=n,{style:l}=n,{panels:c}=n;function u(t,n){const i=a.cards.find((t=>t.id===n)),l=i.rows.find((n=>n.key===t)),u=Object.assign({},a);delete u.cards;const d=Object.assign({},i);delete d.rows;!function(t,n){r(t,n),o.dispatchEvent&&o.dispatchEvent(new CustomEvent(t,{detail:n}))}("itemClick",{id:s,row:l,panel:u,card:d}),l.switchToPanelId&&c.find((t=>t.id===l.switchToPanelId))&&e(1,a=c.find((t=>t.id===l.switchToPanelId)))}Z.addComponent({repoName:"@htmlbricks/hb-navbar",version:F}),Z.addComponent({repoName:"@htmlbricks/hb-sidenav-button",version:F});return t.$$set=t=>{"id"in t&&e(3,s=t.id),"style"in t&&e(4,l=t.style),"panels"in t&&e(0,c=t.panels)},t.$$.update=()=>{if(59&t.$$.dirty){if(s||e(3,s=""),l&&(e(5,i=X(l)),Z.getChildStyleToPass(i,null==tt?void 0:tt.vars),Z.getChildStyleToPass(i,null==nt?void 0:nt.vars)),"string"==typeof c)try{e(0,c=JSON.parse(c))}catch(t){console.error("error parsing panels",t)}!a&&(null==c?void 0:c.length)&&(e(1,a=c.find((t=>t.main))),a||e(1,a=c.find((t=>!t.parentPanelId))))}},[c,a,u,s,l,i,t=>{a.parentPanelId&&e(1,a=c.find((t=>t.id===a.parentPanelId)))},(t,n,e)=>{u(t.key,n.id)}]}class dt extends z{constructor(t){super(),this.shadowRoot.innerHTML='<style>@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}</style>',R(this,{target:this.shadowRoot,props:v(this.attributes),customElement:!0},ut,lt,i,{id:3,style:4,panels:0},null),t&&(t.target&&s(t.target,this,t.anchor),t.props&&(this.$set(t.props),N()))}static get observedAttributes(){return["id","style","panels"]}get id(){return this.$$.ctx[3]}set id(t){this.$$set({id:t}),N()}get style(){return this.$$.ctx[4]}set style(t){this.$$set({style:t}),N()}get panels(){return this.$$.ctx[0]}set panels(t){this.$$set({panels:t}),N()}}return customElements.define("hb-sidebar-cards-navigator",dt),dt}();
|
|
2
2
|
//# sourceMappingURL=release.js.map
|