@biggive/components 202303031447.0.0 → 202303061752.0.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/dist/biggive/biggive.esm.js +1 -1
- package/dist/biggive/p-01d03da2.entry.js +1 -0
- package/dist/biggive/{p-fe9f3e72.entry.js → p-26c0b6cf.entry.js} +1 -1
- package/dist/biggive/{p-8876011d.entry.js → p-2c639bd5.entry.js} +1 -1
- package/dist/biggive/{p-71054cf6.entry.js → p-41588003.entry.js} +1 -1
- package/dist/biggive/{p-0f38685b.entry.js → p-42649676.entry.js} +1 -1
- package/dist/biggive/{p-223759f6.entry.js → p-4402efe9.entry.js} +1 -1
- package/dist/biggive/p-4a1ba0c4.entry.js +1 -0
- package/dist/biggive/p-4adb4dce.entry.js +1 -0
- package/dist/biggive/{p-3b378f79.entry.js → p-5406c558.entry.js} +1 -1
- package/dist/biggive/p-63abb338.entry.js +1 -0
- package/dist/biggive/{p-d7f8a6fd.entry.js → p-87487165.entry.js} +1 -1
- package/dist/biggive/{p-eb6aecf0.entry.js → p-87edb8c6.entry.js} +1 -1
- package/dist/biggive/p-8feb91ae.entry.js +1 -0
- package/dist/biggive/p-b73fddaa.entry.js +1 -0
- package/dist/biggive/p-ead5a5ce.entry.js +1 -0
- package/dist/biggive/p-ee4f16a8.entry.js +1 -0
- package/dist/biggive/{p-f8e38bb9.entry.js → p-f375edb7.entry.js} +1 -1
- package/dist/biggive/p-f6dedf7d.entry.js +1 -0
- package/dist/biggive/{p-acf3bcd9.js → p-ff8bc382.js} +2 -2
- package/dist/cjs/{biggive-back-to-top_27.cjs.entry.js → biggive-accordion_35.cjs.entry.js} +418 -11
- package/dist/cjs/biggive-article-card.cjs.entry.js +2 -2
- package/dist/cjs/biggive-basic-card.cjs.entry.js +6 -3
- package/dist/cjs/biggive-beneficiary-icon.cjs.entry.js +2 -2
- package/dist/cjs/biggive-biography-card.cjs.entry.js +1 -1
- package/dist/cjs/biggive-boxed-content.cjs.entry.js +2 -2
- package/dist/cjs/biggive-category-icon.cjs.entry.js +2 -2
- package/dist/cjs/biggive-form.cjs.entry.js +1 -1
- package/dist/cjs/biggive-formatted-text.cjs.entry.js +2 -2
- package/dist/cjs/biggive-header.cjs.entry.js +1 -1
- package/dist/cjs/biggive-icon-group.cjs.entry.js +1 -1
- package/dist/cjs/biggive-nav-group.cjs.entry.js +1 -1
- package/dist/cjs/biggive-nav-item.cjs.entry.js +1 -1
- package/dist/cjs/biggive-popup-standalone.cjs.entry.js +1 -1
- package/dist/cjs/biggive-search.cjs.entry.js +1 -1
- package/dist/cjs/biggive-table.cjs.entry.js +2 -2
- package/dist/cjs/biggive-text-input.cjs.entry.js +1 -1
- package/dist/cjs/biggive-video.cjs.entry.js +1 -1
- package/dist/cjs/biggive.cjs.js +2 -2
- package/dist/cjs/{index-4ae5dbd7.js → index-8dd1da4d.js} +3 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +6 -0
- package/dist/collection/components/biggive-accordion/biggive-accordion.css +315 -0
- package/dist/collection/components/biggive-accordion/biggive-accordion.js +114 -0
- package/dist/collection/components/biggive-accordion/biggive-accordion.stories.js +52 -0
- package/dist/collection/components/biggive-accordion-entry/biggive-accordion-entry.css +14 -0
- package/dist/collection/components/biggive-accordion-entry/biggive-accordion-entry.js +43 -0
- package/dist/collection/components/biggive-article-card/biggive-article-card.css +45 -0
- package/dist/collection/components/biggive-basic-card/biggive-basic-card.css +70 -0
- package/dist/collection/components/biggive-basic-card/biggive-basic-card.js +77 -31
- package/dist/collection/components/biggive-beneficiary-icon/biggive-beneficiary-icon.css +65 -0
- package/dist/collection/components/biggive-boxed-content/biggive-boxed-content.css +25 -0
- package/dist/collection/components/biggive-call-to-action/biggive-call-to-action.css +20 -0
- package/dist/collection/components/biggive-carousel/biggive-carousel.css +223 -0
- package/dist/collection/components/biggive-carousel/biggive-carousel.js +161 -0
- package/dist/collection/components/biggive-carousel/biggive-carousel.stories.js +84 -0
- package/dist/collection/components/biggive-category-icon/biggive-category-icon.css +65 -0
- package/dist/collection/components/biggive-formatted-text/biggive-formatted-text.css +20 -0
- package/dist/collection/components/biggive-hero-image/biggive-hero-image.css +88 -18
- package/dist/collection/components/biggive-hero-image/biggive-hero-image.js +68 -19
- package/dist/collection/components/biggive-hero-image/biggive-hero-image.stories.js +2 -0
- package/dist/collection/components/biggive-image-feature/biggive-image-feature.css +20 -0
- package/dist/collection/components/biggive-misc-icon/biggive-misc-icon.css +89 -0
- package/dist/collection/components/biggive-quote/biggive-quote.css +65 -0
- package/dist/collection/components/biggive-quote/biggive-quote.js +45 -11
- package/dist/collection/components/biggive-social-icon/biggive-social-icon.css +113 -0
- package/dist/collection/components/biggive-tab/biggive-tab.js +2 -2
- package/dist/collection/components/biggive-tabbed-content/biggive-tabbed-content.css +355 -0
- package/dist/collection/components/biggive-tabbed-content/biggive-tabbed-content.js +206 -12
- package/dist/collection/components/biggive-tabbed-content/biggive-tabbed-content.stories.js +48 -3
- package/dist/collection/components/biggive-table/biggive-table.css +41 -0
- package/dist/collection/components/biggive-table/biggive-table.js +8 -3
- package/dist/collection/components/biggive-timeline/biggive-timeline.css +733 -0
- package/dist/collection/components/biggive-timeline/biggive-timeline.js +394 -0
- package/dist/collection/components/biggive-timeline/biggive-timeline.stories.js +133 -0
- package/dist/collection/components/biggive-timeline-entry/biggive-timeline-entry.css +14 -0
- package/dist/collection/components/biggive-timeline-entry/biggive-timeline-entry.js +59 -0
- package/dist/collection/components/biggive-tipping-slider/biggive-tipping-slider.css +224 -0
- package/dist/collection/components/biggive-tipping-slider/biggive-tipping-slider.js +198 -0
- package/dist/collection/components/biggive-tipping-slider/biggive-tipping-slider.stories.js +62 -0
- package/dist/collection/components/biggive-totalizer/biggive-totalizer.css +45 -0
- package/dist/collection/components/biggive-video-feature/biggive-video-feature.css +20 -0
- package/dist/components/biggive-accordion-entry.d.ts +11 -0
- package/dist/components/biggive-accordion-entry.js +37 -0
- package/dist/components/biggive-accordion.d.ts +11 -0
- package/dist/components/biggive-accordion.js +58 -0
- package/dist/components/biggive-article-card.js +1 -1
- package/dist/components/biggive-basic-card.js +7 -3
- package/dist/components/biggive-beneficiary-icon.js +1 -1
- package/dist/components/biggive-boxed-content.js +1 -1
- package/dist/components/biggive-call-to-action.js +1 -1
- package/dist/components/biggive-carousel.d.ts +11 -0
- package/dist/components/biggive-carousel.js +88 -0
- package/dist/components/biggive-category-icon.js +1 -1
- package/dist/components/biggive-formatted-text.js +1 -1
- package/dist/components/biggive-hero-image.js +4 -2
- package/dist/components/biggive-image-feature.js +1 -1
- package/dist/components/biggive-misc-icon2.js +1 -1
- package/dist/components/biggive-quote.js +5 -3
- package/dist/components/biggive-social-icon.js +1 -1
- package/dist/components/biggive-tab.js +1 -1
- package/dist/components/biggive-tabbed-content.js +78 -4
- package/dist/components/biggive-table.js +1 -1
- package/dist/components/biggive-timeline-entry.d.ts +11 -0
- package/dist/components/biggive-timeline-entry.js +38 -0
- package/dist/components/biggive-timeline.d.ts +11 -0
- package/dist/components/biggive-timeline.js +140 -0
- package/dist/components/biggive-tipping-slider.d.ts +11 -0
- package/dist/components/biggive-tipping-slider.js +100 -0
- package/dist/components/biggive-totalizer.js +1 -1
- package/dist/components/biggive-video-feature.js +1 -1
- package/dist/components/index.d.ts +6 -0
- package/dist/components/index.js +6 -0
- package/dist/esm/{biggive-back-to-top_27.entry.js → biggive-accordion_35.entry.js} +411 -12
- package/dist/esm/biggive-article-card.entry.js +2 -2
- package/dist/esm/biggive-basic-card.entry.js +6 -3
- package/dist/esm/biggive-beneficiary-icon.entry.js +2 -2
- package/dist/esm/biggive-biography-card.entry.js +1 -1
- package/dist/esm/biggive-boxed-content.entry.js +2 -2
- package/dist/esm/biggive-category-icon.entry.js +2 -2
- package/dist/esm/biggive-form.entry.js +1 -1
- package/dist/esm/biggive-formatted-text.entry.js +2 -2
- package/dist/esm/biggive-header.entry.js +1 -1
- package/dist/esm/biggive-icon-group.entry.js +1 -1
- package/dist/esm/biggive-nav-group.entry.js +1 -1
- package/dist/esm/biggive-nav-item.entry.js +1 -1
- package/dist/esm/biggive-popup-standalone.entry.js +1 -1
- package/dist/esm/biggive-search.entry.js +1 -1
- package/dist/esm/biggive-table.entry.js +2 -2
- package/dist/esm/biggive-text-input.entry.js +1 -1
- package/dist/esm/biggive-video.entry.js +1 -1
- package/dist/esm/biggive.js +2 -2
- package/dist/esm/{index-43541c5f.js → index-801eebfb.js} +4 -1
- package/dist/esm/loader.js +2 -2
- package/dist/types/components/biggive-accordion/biggive-accordion.d.ts +12 -0
- package/dist/types/components/biggive-accordion/biggive-accordion.stories.d.ts +28 -0
- package/dist/types/components/biggive-accordion-entry/biggive-accordion-entry.d.ts +5 -0
- package/dist/types/components/biggive-basic-card/biggive-basic-card.d.ts +8 -50
- package/dist/types/components/biggive-carousel/biggive-carousel.d.ts +18 -0
- package/dist/types/components/biggive-carousel/biggive-carousel.stories.d.ts +35 -0
- package/dist/types/components/biggive-hero-image/biggive-hero-image.d.ts +14 -8
- package/dist/types/components/biggive-quote/biggive-quote.d.ts +5 -14
- package/dist/types/components/biggive-tab/biggive-tab.d.ts +0 -3
- package/dist/types/components/biggive-tabbed-content/biggive-tabbed-content.d.ts +18 -8
- package/dist/types/components/biggive-tabbed-content/biggive-tabbed-content.stories.d.ts +36 -1
- package/dist/types/components/biggive-table/biggive-table.d.ts +2 -1
- package/dist/types/components/biggive-timeline/biggive-timeline.d.ts +27 -0
- package/dist/types/components/biggive-timeline/biggive-timeline.stories.d.ts +91 -0
- package/dist/types/components/biggive-timeline-entry/biggive-timeline-entry.d.ts +8 -0
- package/dist/types/components/biggive-tipping-slider/biggive-tipping-slider.d.ts +14 -0
- package/dist/types/components/biggive-tipping-slider/biggive-tipping-slider.stories.d.ts +45 -0
- package/dist/types/components.d.ts +194 -164
- package/hydrate/index.js +498 -27
- package/package.json +1 -1
- package/dist/biggive/p-13f4a2c4.entry.js +0 -1
- package/dist/biggive/p-34cfc5da.entry.js +0 -1
- package/dist/biggive/p-52bb0267.entry.js +0 -1
- package/dist/biggive/p-53189bc6.entry.js +0 -1
- package/dist/biggive/p-5a38b219.entry.js +0 -1
- package/dist/biggive/p-64a544fa.entry.js +0 -1
- package/dist/biggive/p-95bd7f7a.entry.js +0 -1
- package/dist/biggive/p-99f18976.entry.js +0 -1
- package/dist/biggive/p-a0941518.entry.js +0 -1
- package/dist/biggive/p-d8432f12.entry.js +0 -1
- package/dist/biggive/p-ee1c5baf.entry.js +0 -1
- package/dist/cjs/biggive-tab.cjs.entry.js +0 -20
- package/dist/cjs/biggive-tabbed-content.cjs.entry.js +0 -21
- package/dist/esm/biggive-tab.entry.js +0 -16
- package/dist/esm/biggive-tabbed-content.entry.js +0 -17
|
@@ -0,0 +1,394 @@
|
|
|
1
|
+
import { h } from '@stencil/core';
|
|
2
|
+
export class BiggiveTimeline {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.currentTab = 0;
|
|
5
|
+
this.tabHeadings = [];
|
|
6
|
+
this.children = [];
|
|
7
|
+
this.spaceBelow = 0;
|
|
8
|
+
this.textColour = 'black';
|
|
9
|
+
this.selectedTextColour = 'primary';
|
|
10
|
+
this.navigationHighlightColour = 'grey-medium';
|
|
11
|
+
this.selectedNavigationHighlightColour = 'primary';
|
|
12
|
+
this.buttonBackgroundColour = 'white';
|
|
13
|
+
this.buttonIconColour = 'primary';
|
|
14
|
+
this.entryBackgroundColour = 'white';
|
|
15
|
+
this.entryHighlightColour = 'secondary';
|
|
16
|
+
this.entryDateColour = 'black';
|
|
17
|
+
this.entryTitleColour = 'primary';
|
|
18
|
+
this.entryTextColour = 'black';
|
|
19
|
+
}
|
|
20
|
+
componentWillLoad() {
|
|
21
|
+
this.children = Array.from(this.host.children);
|
|
22
|
+
let tabHeadings = this.tabHeadings;
|
|
23
|
+
this.children.forEach(function (entry) {
|
|
24
|
+
let tab = entry.date.substring(0, 4);
|
|
25
|
+
if (!tabHeadings.includes(tab)) {
|
|
26
|
+
tabHeadings.push(tab);
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
componentDidRender() {
|
|
31
|
+
this.showTab(0);
|
|
32
|
+
}
|
|
33
|
+
/*
|
|
34
|
+
* Shows the i'th element in the timeline, counting from zero. Does nothing if i out of range.
|
|
35
|
+
*/
|
|
36
|
+
showTab(i) {
|
|
37
|
+
var _a, _b, _c;
|
|
38
|
+
const tabs = (_a = this.host.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll('.navigation ul li');
|
|
39
|
+
const entries = (_b = this.host.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelectorAll('.entry');
|
|
40
|
+
if (i >= 0 && i <= (tabs === null || tabs === void 0 ? void 0 : tabs.length) - 1) {
|
|
41
|
+
this.currentTab = i;
|
|
42
|
+
let currentTabTitle = (_c = tabs[i]) === null || _c === void 0 ? void 0 : _c.innerHTML;
|
|
43
|
+
let j = 0;
|
|
44
|
+
tabs === null || tabs === void 0 ? void 0 : tabs.forEach(function (tab) {
|
|
45
|
+
if (i == j) {
|
|
46
|
+
tab.classList.add('selected');
|
|
47
|
+
}
|
|
48
|
+
else {
|
|
49
|
+
tab.classList.remove('selected');
|
|
50
|
+
}
|
|
51
|
+
j++;
|
|
52
|
+
});
|
|
53
|
+
entries.forEach(function (entry) {
|
|
54
|
+
var _a;
|
|
55
|
+
entry.style.display = ((_a = entry.getAttribute('data-date')) === null || _a === void 0 ? void 0 : _a.substring(0, 4)) == currentTabTitle ? 'block' : 'none';
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
clickTabHandler(e) {
|
|
60
|
+
let i = 0;
|
|
61
|
+
for (let el of e.target.parentElement.children) {
|
|
62
|
+
if (el == e.target) {
|
|
63
|
+
this.showTab(i);
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
i++;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
clickPrevHandler() {
|
|
70
|
+
this.showTab(this.currentTab - 1);
|
|
71
|
+
}
|
|
72
|
+
clickNextHandler() {
|
|
73
|
+
this.showTab(this.currentTab + 1);
|
|
74
|
+
}
|
|
75
|
+
render() {
|
|
76
|
+
return (h("div", { class: 'container space-below-' +
|
|
77
|
+
this.spaceBelow +
|
|
78
|
+
' text-colour-' +
|
|
79
|
+
this.textColour +
|
|
80
|
+
' selected-text-colour-' +
|
|
81
|
+
this.selectedTextColour +
|
|
82
|
+
' navigation-highlight-colour-' +
|
|
83
|
+
this.navigationHighlightColour +
|
|
84
|
+
' selected-navigation-highlight-colour-' +
|
|
85
|
+
this.selectedNavigationHighlightColour +
|
|
86
|
+
' button-background-colour-' +
|
|
87
|
+
this.buttonBackgroundColour +
|
|
88
|
+
' button-icon-colour-' +
|
|
89
|
+
this.buttonIconColour +
|
|
90
|
+
' entry-background-colour-' +
|
|
91
|
+
this.entryBackgroundColour +
|
|
92
|
+
' entry-highlight-colour-' +
|
|
93
|
+
this.entryHighlightColour +
|
|
94
|
+
' entry-date-colour-' +
|
|
95
|
+
this.entryDateColour +
|
|
96
|
+
' entry-title-colour-' +
|
|
97
|
+
this.entryTitleColour +
|
|
98
|
+
' entry-text-colour-' +
|
|
99
|
+
this.entryTextColour }, h("div", { class: "navigation" }, h("div", { class: "button prev", onClick: () => this.clickPrevHandler(), title: "Previous" }, h("svg", { width: "9", height: "16", viewBox: "0 0 9 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M8.29311 14.5703L1.73926 8.01646L8.29311 1.46261", stroke: "#000000", "stroke-width": "2" }))), h("ul", null, this.tabHeadings.map(tab => (h("li", { onClick: event => this.clickTabHandler(event) }, tab)))), h("div", { class: "button next", onClick: () => this.clickNextHandler(), title: "Next" }, h("svg", { width: "9", height: "16", viewBox: "0 0 9 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M0.739117 1.46094L7.29297 8.01479L0.739118 14.5686", stroke: "#000000", "stroke-width": "2" })))), h("div", { class: "entry-wrap" }, this.children.map(entry => (h("div", { class: "entry", "data-date": entry.date }, h("div", { class: "date" }, entry.date), h("h4", { class: "title" }, entry.heading), h("div", { class: "content", innerHTML: entry.innerHTML })))))));
|
|
100
|
+
}
|
|
101
|
+
static get is() { return "biggive-timeline"; }
|
|
102
|
+
static get encapsulation() { return "shadow"; }
|
|
103
|
+
static get originalStyleUrls() {
|
|
104
|
+
return {
|
|
105
|
+
"$": ["biggive-timeline.scss"]
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
static get styleUrls() {
|
|
109
|
+
return {
|
|
110
|
+
"$": ["biggive-timeline.css"]
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
static get properties() {
|
|
114
|
+
return {
|
|
115
|
+
"spaceBelow": {
|
|
116
|
+
"type": "number",
|
|
117
|
+
"mutable": false,
|
|
118
|
+
"complexType": {
|
|
119
|
+
"original": "spacingOption",
|
|
120
|
+
"resolved": "0 | 1 | 2 | 3 | 4 | 5 | 6",
|
|
121
|
+
"references": {
|
|
122
|
+
"spacingOption": {
|
|
123
|
+
"location": "import",
|
|
124
|
+
"path": "../../globals/spacing-option"
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
"required": false,
|
|
129
|
+
"optional": false,
|
|
130
|
+
"docs": {
|
|
131
|
+
"tags": [],
|
|
132
|
+
"text": ""
|
|
133
|
+
},
|
|
134
|
+
"attribute": "space-below",
|
|
135
|
+
"reflect": false,
|
|
136
|
+
"defaultValue": "0"
|
|
137
|
+
},
|
|
138
|
+
"textColour": {
|
|
139
|
+
"type": "string",
|
|
140
|
+
"mutable": false,
|
|
141
|
+
"complexType": {
|
|
142
|
+
"original": "brandColour",
|
|
143
|
+
"resolved": "\"black\" | \"brand-1\" | \"brand-2\" | \"brand-3\" | \"brand-4\" | \"brand-5\" | \"brand-6\" | \"grey-dark\" | \"grey-extra-light\" | \"grey-light\" | \"grey-medium\" | \"primary\" | \"secondary\" | \"tertiary\" | \"white\"",
|
|
144
|
+
"references": {
|
|
145
|
+
"brandColour": {
|
|
146
|
+
"location": "import",
|
|
147
|
+
"path": "../../globals/brand-colour"
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
"required": false,
|
|
152
|
+
"optional": false,
|
|
153
|
+
"docs": {
|
|
154
|
+
"tags": [],
|
|
155
|
+
"text": ""
|
|
156
|
+
},
|
|
157
|
+
"attribute": "text-colour",
|
|
158
|
+
"reflect": false,
|
|
159
|
+
"defaultValue": "'black'"
|
|
160
|
+
},
|
|
161
|
+
"selectedTextColour": {
|
|
162
|
+
"type": "string",
|
|
163
|
+
"mutable": false,
|
|
164
|
+
"complexType": {
|
|
165
|
+
"original": "brandColour",
|
|
166
|
+
"resolved": "\"black\" | \"brand-1\" | \"brand-2\" | \"brand-3\" | \"brand-4\" | \"brand-5\" | \"brand-6\" | \"grey-dark\" | \"grey-extra-light\" | \"grey-light\" | \"grey-medium\" | \"primary\" | \"secondary\" | \"tertiary\" | \"white\"",
|
|
167
|
+
"references": {
|
|
168
|
+
"brandColour": {
|
|
169
|
+
"location": "import",
|
|
170
|
+
"path": "../../globals/brand-colour"
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
"required": false,
|
|
175
|
+
"optional": false,
|
|
176
|
+
"docs": {
|
|
177
|
+
"tags": [],
|
|
178
|
+
"text": ""
|
|
179
|
+
},
|
|
180
|
+
"attribute": "selected-text-colour",
|
|
181
|
+
"reflect": false,
|
|
182
|
+
"defaultValue": "'primary'"
|
|
183
|
+
},
|
|
184
|
+
"navigationHighlightColour": {
|
|
185
|
+
"type": "string",
|
|
186
|
+
"mutable": false,
|
|
187
|
+
"complexType": {
|
|
188
|
+
"original": "brandColour",
|
|
189
|
+
"resolved": "\"black\" | \"brand-1\" | \"brand-2\" | \"brand-3\" | \"brand-4\" | \"brand-5\" | \"brand-6\" | \"grey-dark\" | \"grey-extra-light\" | \"grey-light\" | \"grey-medium\" | \"primary\" | \"secondary\" | \"tertiary\" | \"white\"",
|
|
190
|
+
"references": {
|
|
191
|
+
"brandColour": {
|
|
192
|
+
"location": "import",
|
|
193
|
+
"path": "../../globals/brand-colour"
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
"required": false,
|
|
198
|
+
"optional": false,
|
|
199
|
+
"docs": {
|
|
200
|
+
"tags": [],
|
|
201
|
+
"text": ""
|
|
202
|
+
},
|
|
203
|
+
"attribute": "navigation-highlight-colour",
|
|
204
|
+
"reflect": false,
|
|
205
|
+
"defaultValue": "'grey-medium'"
|
|
206
|
+
},
|
|
207
|
+
"selectedNavigationHighlightColour": {
|
|
208
|
+
"type": "string",
|
|
209
|
+
"mutable": false,
|
|
210
|
+
"complexType": {
|
|
211
|
+
"original": "brandColour",
|
|
212
|
+
"resolved": "\"black\" | \"brand-1\" | \"brand-2\" | \"brand-3\" | \"brand-4\" | \"brand-5\" | \"brand-6\" | \"grey-dark\" | \"grey-extra-light\" | \"grey-light\" | \"grey-medium\" | \"primary\" | \"secondary\" | \"tertiary\" | \"white\"",
|
|
213
|
+
"references": {
|
|
214
|
+
"brandColour": {
|
|
215
|
+
"location": "import",
|
|
216
|
+
"path": "../../globals/brand-colour"
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
"required": false,
|
|
221
|
+
"optional": false,
|
|
222
|
+
"docs": {
|
|
223
|
+
"tags": [],
|
|
224
|
+
"text": ""
|
|
225
|
+
},
|
|
226
|
+
"attribute": "selected-navigation-highlight-colour",
|
|
227
|
+
"reflect": false,
|
|
228
|
+
"defaultValue": "'primary'"
|
|
229
|
+
},
|
|
230
|
+
"buttonBackgroundColour": {
|
|
231
|
+
"type": "string",
|
|
232
|
+
"mutable": false,
|
|
233
|
+
"complexType": {
|
|
234
|
+
"original": "brandColour",
|
|
235
|
+
"resolved": "\"black\" | \"brand-1\" | \"brand-2\" | \"brand-3\" | \"brand-4\" | \"brand-5\" | \"brand-6\" | \"grey-dark\" | \"grey-extra-light\" | \"grey-light\" | \"grey-medium\" | \"primary\" | \"secondary\" | \"tertiary\" | \"white\"",
|
|
236
|
+
"references": {
|
|
237
|
+
"brandColour": {
|
|
238
|
+
"location": "import",
|
|
239
|
+
"path": "../../globals/brand-colour"
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
"required": false,
|
|
244
|
+
"optional": false,
|
|
245
|
+
"docs": {
|
|
246
|
+
"tags": [],
|
|
247
|
+
"text": ""
|
|
248
|
+
},
|
|
249
|
+
"attribute": "button-background-colour",
|
|
250
|
+
"reflect": false,
|
|
251
|
+
"defaultValue": "'white'"
|
|
252
|
+
},
|
|
253
|
+
"buttonIconColour": {
|
|
254
|
+
"type": "string",
|
|
255
|
+
"mutable": false,
|
|
256
|
+
"complexType": {
|
|
257
|
+
"original": "brandColour",
|
|
258
|
+
"resolved": "\"black\" | \"brand-1\" | \"brand-2\" | \"brand-3\" | \"brand-4\" | \"brand-5\" | \"brand-6\" | \"grey-dark\" | \"grey-extra-light\" | \"grey-light\" | \"grey-medium\" | \"primary\" | \"secondary\" | \"tertiary\" | \"white\"",
|
|
259
|
+
"references": {
|
|
260
|
+
"brandColour": {
|
|
261
|
+
"location": "import",
|
|
262
|
+
"path": "../../globals/brand-colour"
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
},
|
|
266
|
+
"required": false,
|
|
267
|
+
"optional": false,
|
|
268
|
+
"docs": {
|
|
269
|
+
"tags": [],
|
|
270
|
+
"text": ""
|
|
271
|
+
},
|
|
272
|
+
"attribute": "button-icon-colour",
|
|
273
|
+
"reflect": false,
|
|
274
|
+
"defaultValue": "'primary'"
|
|
275
|
+
},
|
|
276
|
+
"entryBackgroundColour": {
|
|
277
|
+
"type": "string",
|
|
278
|
+
"mutable": false,
|
|
279
|
+
"complexType": {
|
|
280
|
+
"original": "brandColour",
|
|
281
|
+
"resolved": "\"black\" | \"brand-1\" | \"brand-2\" | \"brand-3\" | \"brand-4\" | \"brand-5\" | \"brand-6\" | \"grey-dark\" | \"grey-extra-light\" | \"grey-light\" | \"grey-medium\" | \"primary\" | \"secondary\" | \"tertiary\" | \"white\"",
|
|
282
|
+
"references": {
|
|
283
|
+
"brandColour": {
|
|
284
|
+
"location": "import",
|
|
285
|
+
"path": "../../globals/brand-colour"
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
},
|
|
289
|
+
"required": false,
|
|
290
|
+
"optional": false,
|
|
291
|
+
"docs": {
|
|
292
|
+
"tags": [],
|
|
293
|
+
"text": ""
|
|
294
|
+
},
|
|
295
|
+
"attribute": "entry-background-colour",
|
|
296
|
+
"reflect": false,
|
|
297
|
+
"defaultValue": "'white'"
|
|
298
|
+
},
|
|
299
|
+
"entryHighlightColour": {
|
|
300
|
+
"type": "string",
|
|
301
|
+
"mutable": false,
|
|
302
|
+
"complexType": {
|
|
303
|
+
"original": "brandColour",
|
|
304
|
+
"resolved": "\"black\" | \"brand-1\" | \"brand-2\" | \"brand-3\" | \"brand-4\" | \"brand-5\" | \"brand-6\" | \"grey-dark\" | \"grey-extra-light\" | \"grey-light\" | \"grey-medium\" | \"primary\" | \"secondary\" | \"tertiary\" | \"white\"",
|
|
305
|
+
"references": {
|
|
306
|
+
"brandColour": {
|
|
307
|
+
"location": "import",
|
|
308
|
+
"path": "../../globals/brand-colour"
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
},
|
|
312
|
+
"required": false,
|
|
313
|
+
"optional": false,
|
|
314
|
+
"docs": {
|
|
315
|
+
"tags": [],
|
|
316
|
+
"text": ""
|
|
317
|
+
},
|
|
318
|
+
"attribute": "entry-highlight-colour",
|
|
319
|
+
"reflect": false,
|
|
320
|
+
"defaultValue": "'secondary'"
|
|
321
|
+
},
|
|
322
|
+
"entryDateColour": {
|
|
323
|
+
"type": "string",
|
|
324
|
+
"mutable": false,
|
|
325
|
+
"complexType": {
|
|
326
|
+
"original": "brandColour",
|
|
327
|
+
"resolved": "\"black\" | \"brand-1\" | \"brand-2\" | \"brand-3\" | \"brand-4\" | \"brand-5\" | \"brand-6\" | \"grey-dark\" | \"grey-extra-light\" | \"grey-light\" | \"grey-medium\" | \"primary\" | \"secondary\" | \"tertiary\" | \"white\"",
|
|
328
|
+
"references": {
|
|
329
|
+
"brandColour": {
|
|
330
|
+
"location": "import",
|
|
331
|
+
"path": "../../globals/brand-colour"
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
},
|
|
335
|
+
"required": false,
|
|
336
|
+
"optional": false,
|
|
337
|
+
"docs": {
|
|
338
|
+
"tags": [],
|
|
339
|
+
"text": ""
|
|
340
|
+
},
|
|
341
|
+
"attribute": "entry-date-colour",
|
|
342
|
+
"reflect": false,
|
|
343
|
+
"defaultValue": "'black'"
|
|
344
|
+
},
|
|
345
|
+
"entryTitleColour": {
|
|
346
|
+
"type": "string",
|
|
347
|
+
"mutable": false,
|
|
348
|
+
"complexType": {
|
|
349
|
+
"original": "brandColour",
|
|
350
|
+
"resolved": "\"black\" | \"brand-1\" | \"brand-2\" | \"brand-3\" | \"brand-4\" | \"brand-5\" | \"brand-6\" | \"grey-dark\" | \"grey-extra-light\" | \"grey-light\" | \"grey-medium\" | \"primary\" | \"secondary\" | \"tertiary\" | \"white\"",
|
|
351
|
+
"references": {
|
|
352
|
+
"brandColour": {
|
|
353
|
+
"location": "import",
|
|
354
|
+
"path": "../../globals/brand-colour"
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
},
|
|
358
|
+
"required": false,
|
|
359
|
+
"optional": false,
|
|
360
|
+
"docs": {
|
|
361
|
+
"tags": [],
|
|
362
|
+
"text": ""
|
|
363
|
+
},
|
|
364
|
+
"attribute": "entry-title-colour",
|
|
365
|
+
"reflect": false,
|
|
366
|
+
"defaultValue": "'primary'"
|
|
367
|
+
},
|
|
368
|
+
"entryTextColour": {
|
|
369
|
+
"type": "string",
|
|
370
|
+
"mutable": false,
|
|
371
|
+
"complexType": {
|
|
372
|
+
"original": "brandColour",
|
|
373
|
+
"resolved": "\"black\" | \"brand-1\" | \"brand-2\" | \"brand-3\" | \"brand-4\" | \"brand-5\" | \"brand-6\" | \"grey-dark\" | \"grey-extra-light\" | \"grey-light\" | \"grey-medium\" | \"primary\" | \"secondary\" | \"tertiary\" | \"white\"",
|
|
374
|
+
"references": {
|
|
375
|
+
"brandColour": {
|
|
376
|
+
"location": "import",
|
|
377
|
+
"path": "../../globals/brand-colour"
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
},
|
|
381
|
+
"required": false,
|
|
382
|
+
"optional": false,
|
|
383
|
+
"docs": {
|
|
384
|
+
"tags": [],
|
|
385
|
+
"text": ""
|
|
386
|
+
},
|
|
387
|
+
"attribute": "entry-text-colour",
|
|
388
|
+
"reflect": false,
|
|
389
|
+
"defaultValue": "'black'"
|
|
390
|
+
}
|
|
391
|
+
};
|
|
392
|
+
}
|
|
393
|
+
static get elementRef() { return "host"; }
|
|
394
|
+
}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
title: 'Components/Layout',
|
|
3
|
+
argTypes: {
|
|
4
|
+
spaceBelow: {
|
|
5
|
+
name: 'Space below',
|
|
6
|
+
control: {
|
|
7
|
+
type: 'select',
|
|
8
|
+
options: [0, 1, 2, 3, 4, 5, 6],
|
|
9
|
+
},
|
|
10
|
+
},
|
|
11
|
+
textColour: {
|
|
12
|
+
name: 'Default text colour',
|
|
13
|
+
control: {
|
|
14
|
+
type: 'select',
|
|
15
|
+
options: ['primary', 'secondary', 'tertiary', 'brand-1', 'brand-2', 'brand-3', 'brand-4', 'brand-5', 'brand-6', 'white', 'black'],
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
selectedTextColour: {
|
|
19
|
+
name: 'Selected text colour',
|
|
20
|
+
control: {
|
|
21
|
+
type: 'select',
|
|
22
|
+
options: ['primary', 'secondary', 'tertiary', 'brand-1', 'brand-2', 'brand-3', 'brand-4', 'brand-5', 'brand-6', 'white', 'black'],
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
navigationHighlightColour: {
|
|
26
|
+
name: 'Navigation highlight colour',
|
|
27
|
+
control: {
|
|
28
|
+
type: 'select',
|
|
29
|
+
options: ['primary', 'secondary', 'tertiary', 'brand-1', 'brand-2', 'brand-3', 'brand-4', 'brand-5', 'brand-6', 'white', 'black'],
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
selectedNavigationHighlightColour: {
|
|
33
|
+
name: 'Selected navigation highlight colour',
|
|
34
|
+
control: {
|
|
35
|
+
type: 'select',
|
|
36
|
+
options: ['primary', 'secondary', 'tertiary', 'brand-1', 'brand-2', 'brand-3', 'brand-4', 'brand-5', 'brand-6', 'white', 'black'],
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
buttonBackgroundColour: {
|
|
40
|
+
name: 'Button background colour',
|
|
41
|
+
control: {
|
|
42
|
+
type: 'select',
|
|
43
|
+
options: ['primary', 'secondary', 'tertiary', 'brand-1', 'brand-2', 'brand-3', 'brand-4', 'brand-5', 'brand-6', 'white', 'black'],
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
buttonIconColour: {
|
|
47
|
+
name: 'Button icon colour',
|
|
48
|
+
control: {
|
|
49
|
+
type: 'select',
|
|
50
|
+
options: ['primary', 'secondary', 'tertiary', 'brand-1', 'brand-2', 'brand-3', 'brand-4', 'brand-5', 'brand-6', 'white', 'black'],
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
entryBackgroundColour: {
|
|
54
|
+
name: 'Entry background colour',
|
|
55
|
+
control: {
|
|
56
|
+
type: 'select',
|
|
57
|
+
options: ['primary', 'secondary', 'tertiary', 'brand-1', 'brand-2', 'brand-3', 'brand-4', 'brand-5', 'brand-6', 'white', 'black'],
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
entryHighlightColour: {
|
|
61
|
+
name: 'Entry highlight colour',
|
|
62
|
+
control: {
|
|
63
|
+
type: 'select',
|
|
64
|
+
options: ['primary', 'secondary', 'tertiary', 'brand-1', 'brand-2', 'brand-3', 'brand-4', 'brand-5', 'brand-6', 'white', 'black'],
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
entryDateColour: {
|
|
68
|
+
name: 'Entry date colour',
|
|
69
|
+
control: {
|
|
70
|
+
type: 'select',
|
|
71
|
+
options: ['primary', 'secondary', 'tertiary', 'brand-1', 'brand-2', 'brand-3', 'brand-4', 'brand-5', 'brand-6', 'white', 'black'],
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
entryTitleColour: {
|
|
75
|
+
name: 'Entry title colour',
|
|
76
|
+
control: {
|
|
77
|
+
type: 'select',
|
|
78
|
+
options: ['primary', 'secondary', 'tertiary', 'brand-1', 'brand-2', 'brand-3', 'brand-4', 'brand-5', 'brand-6', 'white', 'black'],
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
entryTextColour: {
|
|
82
|
+
name: 'Entry text colour',
|
|
83
|
+
control: {
|
|
84
|
+
type: 'select',
|
|
85
|
+
options: ['primary', 'secondary', 'tertiary', 'brand-1', 'brand-2', 'brand-3', 'brand-4', 'brand-5', 'brand-6', 'white', 'black'],
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
};
|
|
90
|
+
const Template = args => `
|
|
91
|
+
<biggive-timeline
|
|
92
|
+
space-below="${args.spaceBelow}"
|
|
93
|
+
text-colour="${args.textColour}"
|
|
94
|
+
selected-text-colour="${args.selectedTextColour}"
|
|
95
|
+
navigation-highlight-colour="${args.navigationHighlightColour}"
|
|
96
|
+
selected-navigation-highlight-colour="${args.selectedNavigationHighlightColour}"
|
|
97
|
+
button-background-colour="${args.buttonBackgroundColour}"
|
|
98
|
+
button-icon-colour="${args.buttonIconColour}"
|
|
99
|
+
entry-background-colour="${args.entryBackgroundColour}"
|
|
100
|
+
entry-highlight-colour="${args.entryHighlightColour}"
|
|
101
|
+
entry-date-colour="${args.entryDateColour}"
|
|
102
|
+
entry-title-colour="${args.entryTitleColour}"
|
|
103
|
+
entry-content-colour="${args.entryContentColour}"
|
|
104
|
+
>
|
|
105
|
+
<biggive-timeline-entry heading="Heading 1" date="2023-01-01">
|
|
106
|
+
<p>1 Lorem ipsum dolor sit amet, fabulas appetere no sed. Per ea partem pertinacia, modo mollis usu ut. Audire eruditi ex his, ut imperdiet constituam ullamcorper nam. Sed cu etiam iudico qualisque. Dicam alienum ei vel.</p>
|
|
107
|
+
<p>Quo ex mutat malorum conceptam, at usu dicta perfecto deserunt. An prompta offendit mel, sit regione constituto ei. Ludus possim hendrerit id vis, cu vim sonet dolorem mnesarchum, sit soleat aliquid eu. Ancillae appellantur cum ea. Agam delenit id qui, est summo corpora an.</p>
|
|
108
|
+
</biggive-timeline-entry>
|
|
109
|
+
<biggive-timeline-entry heading="Heading 2" date="2023-01-01">
|
|
110
|
+
<p>1 Lorem ipsum dolor sit amet, fabulas appetere no sed. Per ea partem pertinacia, modo mollis usu ut. Audire eruditi ex his, ut imperdiet constituam ullamcorper nam. Sed cu etiam iudico qualisque. Dicam alienum ei vel.</p>
|
|
111
|
+
<p>Quo ex mutat malorum conceptam, at usu dicta perfecto deserunt. An prompta offendit mel, sit regione constituto ei. Ludus possim hendrerit id vis, cu vim sonet dolorem mnesarchum, sit soleat aliquid eu. Ancillae appellantur cum ea. Agam delenit id qui, est summo corpora an.</p>
|
|
112
|
+
</biggive-timeline-entry>
|
|
113
|
+
<biggive-timeline-entry heading="Heading 3" date="2022-01-01">
|
|
114
|
+
<p>1 Lorem ipsum dolor sit amet, fabulas appetere no sed. Per ea partem pertinacia, modo mollis usu ut. Audire eruditi ex his, ut imperdiet constituam ullamcorper nam. Sed cu etiam iudico qualisque. Dicam alienum ei vel.</p>
|
|
115
|
+
<p>Quo ex mutat malorum conceptam, at usu dicta perfecto deserunt. An prompta offendit mel, sit regione constituto ei. Ludus possim hendrerit id vis, cu vim sonet dolorem mnesarchum, sit soleat aliquid eu. Ancillae appellantur cum ea. Agam delenit id qui, est summo corpora an.</p>
|
|
116
|
+
</biggive-timeline-entry>
|
|
117
|
+
</biggive-timeline>
|
|
118
|
+
`;
|
|
119
|
+
export const TimelineComponent = Template.bind({});
|
|
120
|
+
TimelineComponent.args = {
|
|
121
|
+
spaceBelow: 4,
|
|
122
|
+
textColour: 'black',
|
|
123
|
+
selectedTextColour: 'primary',
|
|
124
|
+
navigationHighlightColour: 'grey-medium',
|
|
125
|
+
selectedNavigationHighlightColour: 'primary',
|
|
126
|
+
buttonBackgroundColour: 'white',
|
|
127
|
+
buttonIconColour: 'primary',
|
|
128
|
+
entryBackgroundColour: 'white',
|
|
129
|
+
entryHighlightColour: 'tertiary',
|
|
130
|
+
entryDateColour: 'black',
|
|
131
|
+
entryTitleColour: 'primary',
|
|
132
|
+
entryContentColour: 'black',
|
|
133
|
+
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
export class BiggiveTimelineEntry {
|
|
2
|
+
constructor() {
|
|
3
|
+
this.date = undefined;
|
|
4
|
+
this.heading = undefined;
|
|
5
|
+
}
|
|
6
|
+
render() {
|
|
7
|
+
return null;
|
|
8
|
+
}
|
|
9
|
+
static get is() { return "biggive-timeline-entry"; }
|
|
10
|
+
static get encapsulation() { return "shadow"; }
|
|
11
|
+
static get originalStyleUrls() {
|
|
12
|
+
return {
|
|
13
|
+
"$": ["biggive-timeline-entry.scss"]
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
static get styleUrls() {
|
|
17
|
+
return {
|
|
18
|
+
"$": ["biggive-timeline-entry.css"]
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
static get properties() {
|
|
22
|
+
return {
|
|
23
|
+
"date": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"mutable": false,
|
|
26
|
+
"complexType": {
|
|
27
|
+
"original": "string",
|
|
28
|
+
"resolved": "string",
|
|
29
|
+
"references": {}
|
|
30
|
+
},
|
|
31
|
+
"required": false,
|
|
32
|
+
"optional": false,
|
|
33
|
+
"docs": {
|
|
34
|
+
"tags": [],
|
|
35
|
+
"text": "Should be in the format 'YYYY-mm-dd', for example '2023-01-01'"
|
|
36
|
+
},
|
|
37
|
+
"attribute": "date",
|
|
38
|
+
"reflect": false
|
|
39
|
+
},
|
|
40
|
+
"heading": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"mutable": false,
|
|
43
|
+
"complexType": {
|
|
44
|
+
"original": "string",
|
|
45
|
+
"resolved": "string",
|
|
46
|
+
"references": {}
|
|
47
|
+
},
|
|
48
|
+
"required": false,
|
|
49
|
+
"optional": false,
|
|
50
|
+
"docs": {
|
|
51
|
+
"tags": [],
|
|
52
|
+
"text": ""
|
|
53
|
+
},
|
|
54
|
+
"attribute": "heading",
|
|
55
|
+
"reflect": false
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
}
|