@worksafevictoria/wcl7.5 1.1.0-beta.2 → 1.1.0-beta.20
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/.storybook/main.js +2 -1
- package/.storybook/preview.js +5 -0
- package/jest.config.js +9 -7
- package/package.json +11 -8
- package/src/components/Common/CardGridItem/card-grid-item-icon.vue +1 -1
- package/src/components/Common/CardGridItem/index.vue +9 -3
- package/src/components/Global/AppHeader/ModalSearch/index.vue +6 -1
- package/src/components/Global/AppHeader/index.stories.js +16 -24
- package/src/components/Global/AppHeader/index.vue +9 -8
- package/src/components/Global/DirectoryFilters/SingleTaxonomy/index.vue +2 -1
- package/src/components/Global/GlobalNotice/index.stories.js +7 -1
- package/src/components/Global/HeroHeader/index.vue +2 -4
- package/src/components/Paragraphs/Accordion/index.stories.js +1 -0
- package/src/components/Paragraphs/Breakout/index.stories.js +1 -0
- package/src/components/Paragraphs/BrowseContent/index.stories.js +1 -0
- package/src/components/Paragraphs/Calculator/Constants.js +2 -2
- package/src/components/Paragraphs/Calculator/index.stories.js +1 -0
- package/src/components/Paragraphs/Chart/Constants.js +4790 -0
- package/src/components/Paragraphs/Chart/index.mdx +61 -0
- package/src/components/Paragraphs/Chart/index.stories.js +31 -0
- package/src/components/Paragraphs/Chart/index.vue +331 -0
- package/src/components/Paragraphs/Directory/Records/CJ/index.vue +3 -3
- package/src/components/Paragraphs/Directory/Records/ISP/index.vue +3 -3
- package/src/components/Paragraphs/Directory/Records/PRS/index.vue +2 -2
- package/src/components/Paragraphs/Directory/Records/PRS/recordContent.vue +3 -3
- package/src/components/Paragraphs/Directory/Records/PRS/recordDetails.vue +3 -3
- package/src/components/Paragraphs/Directory/Records/index.vue +3 -3
- package/src/components/Paragraphs/Directory/index.vue +4 -4
- package/src/components/Paragraphs/ListGroup/Link/list-link.stories.js +35 -39
- package/src/components/Paragraphs/ListGroup/list-group.stories.js +35 -31
- package/src/components/Paragraphs/ListGroup/navigation-card.stories.js +34 -30
- package/src/components/Paragraphs/MarketingBanner/index.stories.js +1 -0
- package/src/components/Paragraphs/ProofPoints/index.stories.js +19 -20
- package/src/components/Paragraphs/RelatedInformation/index.stories.js +10 -21
- package/src/components/Paragraphs/RelatedInformation/index.vue +12 -6
- package/src/components/Paragraphs/RelatedInformation/styles.scss +1 -3
- package/src/components/Paragraphs/ScrollSpy/index.stories.js +19 -26
- package/src/components/Paragraphs/ScrollSpy/index.vue +8 -2
- package/src/components/Paragraphs/TabbedCards/index.stories.js +8 -27
- package/src/components/Paragraphs/TabbedCards/index.vue +29 -67
- package/src/components/Paragraphs/TabulatedData/index.vue +12 -7
- package/src/components/Paragraphs/TaskFinder/index.stories.js +8 -32
- package/src/components/Paragraphs/TaskFinder/index.vue +3 -3
- package/src/components/Paragraphs/TaskFinder/pdf/index.vue +1 -1
- package/src/components/Paragraphs/TaskFinder/task-finder-column.vue +1 -1
- package/src/components/Paragraphs/TextMedia/index.stories.js +12 -61
- package/src/components/Paragraphs/VideoGrid/index.stories.js +16 -32
- package/src/components/Paragraphs/Webform/index.stories.js +55 -29
- package/src/components/Paragraphs/Webform/index.vue +10 -7
- package/src/components/SubComponents/FormAddressPostcode/index.stories.js +3 -28
- package/src/components/SubComponents/FormInstance/components/alert/index.vue +129 -0
- package/src/components/SubComponents/FormInstance/components/custom/base-formio.js +77 -0
- package/src/components/SubComponents/FormInstance/components/custom/code-formio.js +35 -0
- package/src/components/SubComponents/FormInstance/components/custom/custom-formio-registry.js +30 -0
- package/src/components/SubComponents/FormInstance/components/custom/range-formio.js +121 -0
- package/src/components/SubComponents/FormInstance/components/custom/rating-formio.js +121 -0
- package/src/components/SubComponents/FormInstance/components/custom/scale-formio.js +99 -0
- package/src/components/SubComponents/FormInstance/components/custom/tableselect-formio.js +200 -0
- package/src/components/SubComponents/FormInstance/components/handler/index.vue +208 -0
- package/src/components/SubComponents/FormInstance/components/renderer/index.vue +282 -0
- package/src/components/SubComponents/FormInstance/index.test.js +65 -0
- package/src/components/SubComponents/FormInstance/index.vue +55 -6
- package/src/components/SubComponents/FormInstance/models/base-form-element.js +338 -0
- package/src/components/SubComponents/FormInstance/models/form-callback-queue.js +45 -0
- package/src/components/SubComponents/FormInstance/models/form-utils.js +50 -0
- package/src/components/SubComponents/FormInstance/models/overrides/address.js +132 -0
- package/src/components/SubComponents/FormInstance/models/overrides/autocomplete.js +41 -0
- package/src/components/SubComponents/FormInstance/models/overrides/checkbox.js +14 -0
- package/src/components/SubComponents/FormInstance/models/overrides/checkboxes.js +49 -0
- package/src/components/SubComponents/FormInstance/models/overrides/code.js +27 -0
- package/src/components/SubComponents/FormInstance/models/overrides/composite.js +57 -0
- package/src/components/SubComponents/FormInstance/models/overrides/container.js +65 -0
- package/src/components/SubComponents/FormInstance/models/overrides/currency.js +17 -0
- package/src/components/SubComponents/FormInstance/models/overrides/customcomposite.js +41 -0
- package/src/components/SubComponents/FormInstance/models/overrides/date.js +126 -0
- package/src/components/SubComponents/FormInstance/models/overrides/datelist.js +73 -0
- package/src/components/SubComponents/FormInstance/models/overrides/detail.js +38 -0
- package/src/components/SubComponents/FormInstance/models/overrides/email-confirm.js +12 -0
- package/src/components/SubComponents/FormInstance/models/overrides/email.js +7 -0
- package/src/components/SubComponents/FormInstance/models/overrides/file.js +56 -0
- package/src/components/SubComponents/FormInstance/models/overrides/flexbox.js +33 -0
- package/src/components/SubComponents/FormInstance/models/overrides/hidden.js +24 -0
- package/src/components/SubComponents/FormInstance/models/overrides/likert.js +40 -0
- package/src/components/SubComponents/FormInstance/models/overrides/markup.js +47 -0
- package/src/components/SubComponents/FormInstance/models/overrides/message.js +53 -0
- package/src/components/SubComponents/FormInstance/models/overrides/moretext.js +64 -0
- package/src/components/SubComponents/FormInstance/models/overrides/multiple.js +51 -0
- package/src/components/SubComponents/FormInstance/models/overrides/number.js +22 -0
- package/src/components/SubComponents/FormInstance/models/overrides/options-other.js +34 -0
- package/src/components/SubComponents/FormInstance/models/overrides/page.js +7 -0
- package/src/components/SubComponents/FormInstance/models/overrides/phonenumber.js +13 -0
- package/src/components/SubComponents/FormInstance/models/overrides/radio.js +31 -0
- package/src/components/SubComponents/FormInstance/models/overrides/range.js +19 -0
- package/src/components/SubComponents/FormInstance/models/overrides/rating.js +47 -0
- package/src/components/SubComponents/FormInstance/models/overrides/scale.js +33 -0
- package/src/components/SubComponents/FormInstance/models/overrides/section.js +39 -0
- package/src/components/SubComponents/FormInstance/models/overrides/select.js +28 -0
- package/src/components/SubComponents/FormInstance/models/overrides/signature.js +7 -0
- package/src/components/SubComponents/FormInstance/models/overrides/submit.js +23 -0
- package/src/components/SubComponents/FormInstance/models/overrides/table.js +48 -0
- package/src/components/SubComponents/FormInstance/models/overrides/tablerow.js +20 -0
- package/src/components/SubComponents/FormInstance/models/overrides/tableselect.js +66 -0
- package/src/components/SubComponents/FormInstance/models/overrides/testing.js +47 -0
- package/src/components/SubComponents/FormInstance/models/overrides/text.js +7 -0
- package/src/components/SubComponents/FormInstance/models/overrides/textarea.js +26 -0
- package/src/components/SubComponents/FormInstance/models/overrides/textformat.js +13 -0
- package/src/components/SubComponents/FormInstance/models/overrides/time.js +13 -0
- package/src/components/SubComponents/FormInstance/models/overrides/twig.js +118 -0
- package/src/components/SubComponents/FormInstance/models/overrides/unknown.js +24 -0
- package/src/components/SubComponents/FormInstance/models/overrides/url.js +13 -0
- package/src/components/SubComponents/FormInstance/services/convert-form-element.js +49 -0
- package/src/components/SubComponents/FormInstance/services/form-api.js +47 -0
- package/src/components/SubComponents/FormInstance/services/form-render-parser.js +156 -0
- package/src/components/SubComponents/FormInstance/services/form-submit-parser.js +61 -0
- package/src/components/SubComponents/FormInstance/services/logic-linker.js +73 -0
- package/src/components/SubComponents/FormInstance/services/logic-parser.js +173 -0
- package/src/components/SubComponents/FormInstance/services/registry-factory.js +284 -0
- package/src/components/SubComponents/FormInstance/stories/Documentation.mdx +234 -0
- package/src/components/SubComponents/FormInstance/stories/advanced.stories.js +109 -0
- package/src/components/SubComponents/FormInstance/stories/basic.stories.js +73 -0
- package/src/components/SubComponents/FormInstance/stories/build.stories.js +27 -0
- package/src/components/SubComponents/FormInstance/stories/composite.stories.js +90 -0
- package/src/components/SubComponents/FormInstance/stories/condition.stories.js +83 -0
- package/src/components/SubComponents/FormInstance/stories/custom.stories.js +69 -0
- package/src/components/SubComponents/FormInstance/stories/date.stories.js +76 -0
- package/src/components/SubComponents/FormInstance/stories/form-alert.stories.js +93 -0
- package/src/components/SubComponents/FormInstance/stories/index.stories.js +63 -0
- package/src/components/SubComponents/FormInstance/stories/layout.stories.js +85 -0
- package/src/components/SubComponents/FormInstance/stories/markup.stories.js +91 -0
- package/src/components/SubComponents/FormInstance/stories/mocks/address.json +298 -0
- package/src/components/SubComponents/FormInstance/stories/mocks/advancedhtml.json +23 -0
- package/src/components/SubComponents/FormInstance/stories/mocks/autocomplete.json +34 -0
- package/src/components/SubComponents/FormInstance/stories/mocks/basichtml.json +15 -0
- package/src/components/SubComponents/FormInstance/stories/mocks/checkboxes.json +102 -0
- package/src/components/SubComponents/FormInstance/stories/mocks/checkboxesother.json +197 -0
- package/src/components/SubComponents/FormInstance/stories/mocks/container.json +134 -0
- package/src/components/SubComponents/FormInstance/stories/mocks/customcomposite.json +469 -0
- package/src/components/SubComponents/FormInstance/stories/mocks/date.json +19 -0
- package/src/components/SubComponents/FormInstance/stories/mocks/datelist.json +752 -0
- package/src/components/SubComponents/FormInstance/stories/mocks/datetime.json +89 -0
- package/src/components/SubComponents/FormInstance/stories/mocks/details.json +63 -0
- package/src/components/SubComponents/FormInstance/stories/mocks/email.json +18 -0
- package/src/components/SubComponents/FormInstance/stories/mocks/emailconfirm.json +110 -0
- package/src/components/SubComponents/FormInstance/stories/mocks/fieldset.json +62 -0
- package/src/components/SubComponents/FormInstance/stories/mocks/flexbox.json +58 -0
- package/src/components/SubComponents/FormInstance/stories/mocks/hidden.json +35 -0
- package/src/components/SubComponents/FormInstance/stories/mocks/horizontalrule.json +14 -0
- package/src/components/SubComponents/FormInstance/stories/mocks/jahd.json +1359 -0
- package/src/components/SubComponents/FormInstance/stories/mocks/label.json +14 -0
- package/src/components/SubComponents/FormInstance/stories/mocks/likert.json +375 -0
- package/src/components/SubComponents/FormInstance/stories/mocks/message.json +86 -0
- package/src/components/SubComponents/FormInstance/stories/mocks/more.json +19 -0
- package/src/components/SubComponents/FormInstance/stories/mocks/multiple.json +142 -0
- package/src/components/SubComponents/FormInstance/stories/mocks/number.json +35 -0
- package/src/components/SubComponents/FormInstance/stories/mocks/quad.json +249 -0
- package/src/components/SubComponents/FormInstance/stories/mocks/radios.json +70 -0
- package/src/components/SubComponents/FormInstance/stories/mocks/radiosother.json +176 -0
- package/src/components/SubComponents/FormInstance/stories/mocks/range.json +58 -0
- package/src/components/SubComponents/FormInstance/stories/mocks/rating.json +42 -0
- package/src/components/SubComponents/FormInstance/stories/mocks/rule-disabled-value.json +66 -0
- package/src/components/SubComponents/FormInstance/stories/mocks/rule-enabled-value.json +43 -0
- package/src/components/SubComponents/FormInstance/stories/mocks/rule-hidden-value.json +68 -0
- package/src/components/SubComponents/FormInstance/stories/mocks/rule-required-value.json +69 -0
- package/src/components/SubComponents/FormInstance/stories/mocks/rule-visible-value.json +157 -0
- package/src/components/SubComponents/FormInstance/stories/mocks/sameas.json +66 -0
- package/src/components/SubComponents/FormInstance/stories/mocks/scale.json +200 -0
- package/src/components/SubComponents/FormInstance/stories/mocks/section.json +63 -0
- package/src/components/SubComponents/FormInstance/stories/mocks/select.json +41 -0
- package/src/components/SubComponents/FormInstance/stories/mocks/selectother.json +115 -0
- package/src/components/SubComponents/FormInstance/stories/mocks/signature.json +25 -0
- package/src/components/SubComponents/FormInstance/stories/mocks/styles.json +81 -0
- package/src/components/SubComponents/FormInstance/stories/mocks/table-select.json +472 -0
- package/src/components/SubComponents/FormInstance/stories/mocks/table.json +154 -0
- package/src/components/SubComponents/FormInstance/stories/mocks/telephone.json +18 -0
- package/src/components/SubComponents/FormInstance/stories/mocks/textarea.json +22 -0
- package/src/components/SubComponents/FormInstance/stories/mocks/textfield.json +66 -0
- package/src/components/SubComponents/FormInstance/stories/mocks/time.json +20 -0
- package/src/components/SubComponents/FormInstance/stories/mocks/token.json +260 -0
- package/src/components/SubComponents/FormInstance/stories/mocks/twig.json +154 -0
- package/src/components/SubComponents/FormInstance/stories/mocks/url.json +18 -0
- package/src/components/SubComponents/FormInstance/stories/mocks/value.json +17 -0
- package/src/components/SubComponents/FormInstance/stories/mocks/wizard.json +353 -0
- package/src/components/SubComponents/FormInstance/stories/options.stories.js +98 -0
- package/src/components/SubComponents/FormInstance/stories/style.stories.js +55 -0
- package/src/components/SubComponents/FormInstance/stories/wizard.stories.js +55 -0
- package/src/components/SubComponents/FormInstance/style.scss +173 -0
- package/src/components/SubComponents/FormInstance/tests/address.test.js +255 -0
- package/src/components/SubComponents/FormInstance/tests/advancedhtml.test.js +31 -0
- package/src/components/SubComponents/FormInstance/tests/autocomplete.test.js +38 -0
- package/src/components/SubComponents/FormInstance/tests/basichtml.test.js +31 -0
- package/src/components/SubComponents/FormInstance/tests/checkbox.test.js +29 -0
- package/src/components/SubComponents/FormInstance/tests/checkboxes.test.js +44 -0
- package/src/components/SubComponents/FormInstance/tests/checkboxesother.test.js +91 -0
- package/src/components/SubComponents/FormInstance/tests/container.test.js +66 -0
- package/src/components/SubComponents/FormInstance/tests/customcomposite.test.js +86 -0
- package/src/components/SubComponents/FormInstance/tests/date.test.js +63 -0
- package/src/components/SubComponents/FormInstance/tests/datelist.test.js +136 -0
- package/src/components/SubComponents/FormInstance/tests/datetime.test.js +54 -0
- package/src/components/SubComponents/FormInstance/tests/details.test.js +58 -0
- package/src/components/SubComponents/FormInstance/tests/email.test.js +28 -0
- package/src/components/SubComponents/FormInstance/tests/emailconfirm.test.js +79 -0
- package/src/components/SubComponents/FormInstance/tests/fieldset.test.js +63 -0
- package/src/components/SubComponents/FormInstance/tests/flexbox.test.js +71 -0
- package/src/components/SubComponents/FormInstance/tests/form-test-utils.js +120 -0
- package/src/components/SubComponents/FormInstance/tests/form.test.js +26 -0
- package/src/components/SubComponents/FormInstance/tests/hidden.test.js +52 -0
- package/src/components/SubComponents/FormInstance/tests/horizontalrule.test.js +31 -0
- package/src/components/SubComponents/FormInstance/tests/label.test.js +31 -0
- package/src/components/SubComponents/FormInstance/tests/likert.test.js +38 -0
- package/src/components/SubComponents/FormInstance/tests/message.test.js +89 -0
- package/src/components/SubComponents/FormInstance/tests/more.test.js +32 -0
- package/src/components/SubComponents/FormInstance/tests/multiple.test.js +71 -0
- package/src/components/SubComponents/FormInstance/tests/number.test.js +51 -0
- package/src/components/SubComponents/FormInstance/tests/radios.test.js +34 -0
- package/src/components/SubComponents/FormInstance/tests/radiosother.test.js +79 -0
- package/src/components/SubComponents/FormInstance/tests/range.test.js +32 -0
- package/src/components/SubComponents/FormInstance/tests/rating.test.js +38 -0
- package/src/components/SubComponents/FormInstance/tests/rule-disabled.test.js +128 -0
- package/src/components/SubComponents/FormInstance/tests/rule-enabled-value.test.js +78 -0
- package/src/components/SubComponents/FormInstance/tests/rule-hidden.test.js +131 -0
- package/src/components/SubComponents/FormInstance/tests/rule-required-value.test.js +144 -0
- package/src/components/SubComponents/FormInstance/tests/rule-visible.test.js +619 -0
- package/src/components/SubComponents/FormInstance/tests/sameas.test.js +94 -0
- package/src/components/SubComponents/FormInstance/tests/scale.test.js +43 -0
- package/src/components/SubComponents/FormInstance/tests/section.test.js +63 -0
- package/src/components/SubComponents/FormInstance/tests/select.test.js +45 -0
- package/src/components/SubComponents/FormInstance/tests/selectother.test.js +82 -0
- package/src/components/SubComponents/FormInstance/tests/signature.test.js +32 -0
- package/src/components/SubComponents/FormInstance/tests/styles.test.js +73 -0
- package/src/components/SubComponents/FormInstance/tests/table-select.test.js +93 -0
- package/src/components/SubComponents/FormInstance/tests/table.test.js +97 -0
- package/src/components/SubComponents/FormInstance/tests/telephone.test.js +29 -0
- package/src/components/SubComponents/FormInstance/tests/textarea.test.js +29 -0
- package/src/components/SubComponents/FormInstance/tests/textfield.test.js +48 -0
- package/src/components/SubComponents/FormInstance/tests/time.test.js +29 -0
- package/src/components/SubComponents/FormInstance/tests/token.test.js +33 -0
- package/src/components/SubComponents/FormInstance/tests/twig.test.js +74 -0
- package/src/components/SubComponents/FormInstance/tests/url.test.js +45 -0
- package/src/components/SubComponents/FormInstance/tests/value.test.js +31 -0
- package/src/components/SubComponents/FormInstance/tests/wizard.test.js +145 -0
- package/src/components/SubComponents/Search/index.vue +4 -4
- package/src/components/SubComponents/VideoThumbnail/index.vue +4 -7
- package/src/includes/scss/vars/src/colors.scss +29 -1
- package/src/index.js +42 -40
- package/src/mock/jest.fileMock.js +1 -0
- package/src/components/SubComponents/FormInstance/index.stories.js +0 -8
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { Canvas, Meta } from '@storybook/blocks';
|
|
2
|
+
|
|
3
|
+
import * as ChartStories from './index.stories';
|
|
4
|
+
|
|
5
|
+
<Meta of={ChartStories} />
|
|
6
|
+
# Charts
|
|
7
|
+
|
|
8
|
+
Charts support links
|
|
9
|
+
|
|
10
|
+
* [vue-google-charts](https://github.com/devstark-com/vue-google-charts "Package") (package documentation)
|
|
11
|
+
* [Google-chart](https://developers.google.com/chart/ "Google charts") (customisation documentation)
|
|
12
|
+
|
|
13
|
+
<Canvas of={ChartStories.Default} />
|
|
14
|
+
|
|
15
|
+
## Chart options
|
|
16
|
+
|
|
17
|
+
Visit Google-chart documentation for chart options.
|
|
18
|
+
|
|
19
|
+
```tsx
|
|
20
|
+
options: {
|
|
21
|
+
title: 'graph',
|
|
22
|
+
pieSliceText: 'value',
|
|
23
|
+
is3D: true,
|
|
24
|
+
height: 600,
|
|
25
|
+
chartArea: { top: 20, bottom: 20 },
|
|
26
|
+
vAxis: { minValue: 0 },
|
|
27
|
+
animation: {
|
|
28
|
+
duration: 1000,
|
|
29
|
+
easing: 'out'
|
|
30
|
+
},
|
|
31
|
+
colors: [
|
|
32
|
+
'#3d3c36',
|
|
33
|
+
colors.orange100,
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Chart filters
|
|
39
|
+
|
|
40
|
+
Filtering options. These are passed to 'directory-filters' component.
|
|
41
|
+
|
|
42
|
+
```tsx
|
|
43
|
+
[
|
|
44
|
+
{ record_id: 'DEATH_DATE', name: 'Year', date: true }, // Primary
|
|
45
|
+
{ record_id: 'GENDER', name: 'Gender' }, // Secondary
|
|
46
|
+
{ record_id: 'AGE_RANGE', name: 'Age range' },
|
|
47
|
+
{ record_id: 'CATEGORY', name: 'Category' },
|
|
48
|
+
{ record_id: 'INDUSTRY', name: 'Industry' },
|
|
49
|
+
{ record_id: 'SIZE_', name: 'Size of Organisation' }
|
|
50
|
+
]
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Filtering
|
|
54
|
+
|
|
55
|
+
Currently three filters are available for generating charts
|
|
56
|
+
|
|
57
|
+
**'primary':** Compare by Primary field (first in array)
|
|
58
|
+
|
|
59
|
+
**'months':** Incremental view (Requires date as Primary filter)
|
|
60
|
+
|
|
61
|
+
**'compare':** Compare Primary field with chosen field (default secondary)
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import Chart from './index.vue'
|
|
2
|
+
import {
|
|
3
|
+
chart, filterFields, statsData
|
|
4
|
+
} from './Constants'
|
|
5
|
+
export default {
|
|
6
|
+
title: 'Paragraphs/Chart',
|
|
7
|
+
component: Chart,
|
|
8
|
+
}
|
|
9
|
+
export const Default = {
|
|
10
|
+
argTypes: {
|
|
11
|
+
"chart.type": {
|
|
12
|
+
control: "radio",
|
|
13
|
+
options: ["BarChart", "PieChart", "ColumnChart", "Table", "LineChart", "AreaChart", "BubbleChart", "ScatterChart"],
|
|
14
|
+
},
|
|
15
|
+
"chart.filter": {
|
|
16
|
+
control: "radio",
|
|
17
|
+
options: ["primary", "months", "compare"],
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
args: {
|
|
21
|
+
filterFields: filterFields,
|
|
22
|
+
chart: chart,
|
|
23
|
+
statsData: statsData
|
|
24
|
+
},
|
|
25
|
+
parameters: {
|
|
26
|
+
deepControls: { enabled: true },
|
|
27
|
+
},
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
@@ -0,0 +1,331 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<container>
|
|
3
|
+
<row>
|
|
4
|
+
<column class="pb-5">
|
|
5
|
+
<single-taxonomy
|
|
6
|
+
v-for="(t, i) in computedPropFilters"
|
|
7
|
+
:key="i"
|
|
8
|
+
:ref="`${t.record_id}`"
|
|
9
|
+
:data="t"
|
|
10
|
+
:results="filteredList.length"
|
|
11
|
+
:loading="isFiltering"
|
|
12
|
+
class="wcl-directory-filters__filterButton"
|
|
13
|
+
@onFilter="onFilter"
|
|
14
|
+
/>
|
|
15
|
+
<filter-button
|
|
16
|
+
v-if="!hideReset"
|
|
17
|
+
:is-reset="true"
|
|
18
|
+
class="wcl-directory-filters__filterButton"
|
|
19
|
+
@clicked="reset"
|
|
20
|
+
/>
|
|
21
|
+
</column>
|
|
22
|
+
</row>
|
|
23
|
+
<row>
|
|
24
|
+
<column>
|
|
25
|
+
<div>
|
|
26
|
+
<b-form-group
|
|
27
|
+
v-show="chart.filter === 'compare'"
|
|
28
|
+
label="Compare by:"
|
|
29
|
+
label-for="compare"
|
|
30
|
+
>
|
|
31
|
+
<b-form-select
|
|
32
|
+
id="compare"
|
|
33
|
+
v-model="graphSelected"
|
|
34
|
+
class="mb-1 mt-1"
|
|
35
|
+
:options="graphOptions"
|
|
36
|
+
></b-form-select>
|
|
37
|
+
</b-form-group>
|
|
38
|
+
<g-chart
|
|
39
|
+
:type="filteredList.length > 0 ? chart.type : 'ColumnChart'"
|
|
40
|
+
:data="
|
|
41
|
+
filteredList.length > 0
|
|
42
|
+
? chart.filter === 'primary'
|
|
43
|
+
? by_primary()
|
|
44
|
+
: chart.filter === 'months'
|
|
45
|
+
? by_months()
|
|
46
|
+
: compare()
|
|
47
|
+
: noData()
|
|
48
|
+
"
|
|
49
|
+
:options="chart.options"
|
|
50
|
+
/>
|
|
51
|
+
</div>
|
|
52
|
+
</column>
|
|
53
|
+
</row>
|
|
54
|
+
</container>
|
|
55
|
+
</template>
|
|
56
|
+
|
|
57
|
+
<script>
|
|
58
|
+
import { GChart } from 'vue-google-charts'
|
|
59
|
+
import Container from '../../Containers/Container/index.vue'
|
|
60
|
+
import Column from '../../Containers/Column/index.vue'
|
|
61
|
+
import Row from '../../Containers/Row/index.vue'
|
|
62
|
+
import FilterButton from '../../Common/FilterButton/index.vue' // Reset
|
|
63
|
+
import SingleTaxonomy from '../../Global/DirectoryFilters/SingleTaxonomy/index.vue'
|
|
64
|
+
import { BFormGroup, BFormSelect } from 'bootstrap-vue-next'
|
|
65
|
+
|
|
66
|
+
export default {
|
|
67
|
+
name: 'Chart',
|
|
68
|
+
components: {
|
|
69
|
+
Row,
|
|
70
|
+
Column,
|
|
71
|
+
Container,
|
|
72
|
+
GChart,
|
|
73
|
+
FilterButton,
|
|
74
|
+
SingleTaxonomy,
|
|
75
|
+
BFormGroup,
|
|
76
|
+
BFormSelect
|
|
77
|
+
},
|
|
78
|
+
props: {
|
|
79
|
+
statsData: { type: Array, default: () => [] },
|
|
80
|
+
filterFields: { type: Array, default: () => [] },
|
|
81
|
+
chart: { type: Object, default: () => {} }
|
|
82
|
+
},
|
|
83
|
+
data() {
|
|
84
|
+
return {
|
|
85
|
+
hideReset: true,
|
|
86
|
+
isFiltering: false,
|
|
87
|
+
filters: {
|
|
88
|
+
taxonomies: [],
|
|
89
|
+
selected: {},
|
|
90
|
+
availableBundles: []
|
|
91
|
+
},
|
|
92
|
+
graphSelected: null,
|
|
93
|
+
chartHeight: this.chart.options.height ? this.chart.options.height : 600
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
computed: {
|
|
97
|
+
graphOptions: function() {
|
|
98
|
+
return this.filterFields.slice(1).map((field) => {
|
|
99
|
+
if (!this.graphSelected) {
|
|
100
|
+
this.graphSelected = field.record_id
|
|
101
|
+
}
|
|
102
|
+
return { value: field.record_id, text: field.name }
|
|
103
|
+
})
|
|
104
|
+
},
|
|
105
|
+
computedPropFilters: function() {
|
|
106
|
+
let fields = this.filterFields.map((field) => {
|
|
107
|
+
let terms = null
|
|
108
|
+
if (field.date) {
|
|
109
|
+
terms = this.statsData
|
|
110
|
+
.map((item) => item[field.record_id].split('/')[2]) // Date field get year
|
|
111
|
+
.filter((value, index, self) => self.indexOf(value) === index)
|
|
112
|
+
.map((value) => {
|
|
113
|
+
return { tid: value, name: value, preselected: false }
|
|
114
|
+
})
|
|
115
|
+
.sort((a, b) => a.name.localeCompare(b.name))
|
|
116
|
+
} else {
|
|
117
|
+
terms = this.statsData
|
|
118
|
+
.map((item) => item[field.record_id])
|
|
119
|
+
.filter((value, index, self) => self.indexOf(value) === index)
|
|
120
|
+
.map((value) => {
|
|
121
|
+
return { tid: value, name: value, preselected: false }
|
|
122
|
+
})
|
|
123
|
+
.sort((a, b) => a.name.localeCompare(b.name))
|
|
124
|
+
}
|
|
125
|
+
return {
|
|
126
|
+
name: field.name,
|
|
127
|
+
record_id: field.record_id,
|
|
128
|
+
terms
|
|
129
|
+
}
|
|
130
|
+
})
|
|
131
|
+
return fields
|
|
132
|
+
},
|
|
133
|
+
filteredList: function() {
|
|
134
|
+
let filterKeys = Object.keys(this.filters.selected).map((key) => key)
|
|
135
|
+
let list = this.statsData.filter((element) => {
|
|
136
|
+
let include = true
|
|
137
|
+
for (var i = 0, n = filterKeys.length; i < n; ++i) {
|
|
138
|
+
if (this.filters.selected[filterKeys[i]].length > 0) {
|
|
139
|
+
let filterType = this.filterFields.find(
|
|
140
|
+
(item) => item.record_id === filterKeys[i]
|
|
141
|
+
)
|
|
142
|
+
if (filterType.date) {
|
|
143
|
+
// Filter by year
|
|
144
|
+
if (
|
|
145
|
+
this.filters.selected[filterKeys[i]].indexOf(
|
|
146
|
+
element[filterKeys[i]].split('/')[2]
|
|
147
|
+
) === -1
|
|
148
|
+
) {
|
|
149
|
+
include = false
|
|
150
|
+
}
|
|
151
|
+
} else {
|
|
152
|
+
if (
|
|
153
|
+
this.filters.selected[filterKeys[i]].indexOf(
|
|
154
|
+
element[filterKeys[i]]
|
|
155
|
+
) === -1
|
|
156
|
+
) {
|
|
157
|
+
include = false
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
if (include) {
|
|
163
|
+
return element
|
|
164
|
+
}
|
|
165
|
+
})
|
|
166
|
+
return list
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
methods: {
|
|
170
|
+
onFilter(filters) {
|
|
171
|
+
this.hideReset = false
|
|
172
|
+
const allFiltersUnselected = Object.values(this.$refs).every(
|
|
173
|
+
(taxonomy) => {
|
|
174
|
+
return Object.values(taxonomy[0].selectedFilters).every(
|
|
175
|
+
(filter) => filter.filter((item) => !item.preselected).length === 0
|
|
176
|
+
)
|
|
177
|
+
}
|
|
178
|
+
)
|
|
179
|
+
if (allFiltersUnselected) {
|
|
180
|
+
this.hideReset = true
|
|
181
|
+
}
|
|
182
|
+
Object.keys(filters).forEach((filter) => {
|
|
183
|
+
this.filters.selected[filter] = filters[filter].map((obj) => obj.tid)
|
|
184
|
+
})
|
|
185
|
+
},
|
|
186
|
+
reset() {
|
|
187
|
+
this.hideReset = true
|
|
188
|
+
Object.keys(this.$refs).forEach((key) => {
|
|
189
|
+
this.$refs[key][0].reset()
|
|
190
|
+
})
|
|
191
|
+
this.filters.selected = {}
|
|
192
|
+
},
|
|
193
|
+
by_primary() {
|
|
194
|
+
let primaryFilter = this.filterFields[0]
|
|
195
|
+
let data = [[primaryFilter.name, this.chart.header]]
|
|
196
|
+
let keys = {}
|
|
197
|
+
|
|
198
|
+
this.filteredList.forEach((element) => {
|
|
199
|
+
// Work off primary field
|
|
200
|
+
let group = null
|
|
201
|
+
if (primaryFilter.date) {
|
|
202
|
+
group = `${element[primaryFilter.record_id].split('/')[2]} `
|
|
203
|
+
} else {
|
|
204
|
+
group = element[primaryFilter.record_id]
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
if (group in keys) {
|
|
208
|
+
keys[group]++
|
|
209
|
+
} else {
|
|
210
|
+
keys[group] = 1
|
|
211
|
+
}
|
|
212
|
+
})
|
|
213
|
+
Object.keys(keys).forEach((item) => {
|
|
214
|
+
data.push([item, keys[item]])
|
|
215
|
+
})
|
|
216
|
+
if (this.chart.type === 'BarChart') {
|
|
217
|
+
this.chart.options.height = data[0].length * 200
|
|
218
|
+
} else {
|
|
219
|
+
this.chart.options.height = this.chartHeight
|
|
220
|
+
}
|
|
221
|
+
return data
|
|
222
|
+
},
|
|
223
|
+
by_months() {
|
|
224
|
+
let primaryFilter = this.filterFields[0]
|
|
225
|
+
if (!primaryFilter.date) {
|
|
226
|
+
return ['Requires date in primary field']
|
|
227
|
+
}
|
|
228
|
+
let data = [
|
|
229
|
+
['Month'],
|
|
230
|
+
['Jan'],
|
|
231
|
+
['Feb'],
|
|
232
|
+
['Mar'],
|
|
233
|
+
['Apr'],
|
|
234
|
+
['May'],
|
|
235
|
+
['Jun'],
|
|
236
|
+
['Jul'],
|
|
237
|
+
['Aug'],
|
|
238
|
+
['Sep'],
|
|
239
|
+
['Oct'],
|
|
240
|
+
['Nov'],
|
|
241
|
+
['Dec']
|
|
242
|
+
]
|
|
243
|
+
let years = this.filteredList
|
|
244
|
+
.map((item) => item[primaryFilter.record_id].split('/')[2])
|
|
245
|
+
.filter((value, index, self) => self.indexOf(value) === index)
|
|
246
|
+
data[0].push(...years)
|
|
247
|
+
for (var i = 1, n = data.length; i < n; ++i) {
|
|
248
|
+
for (var j = 0, m = years.length; j < m; ++j) {
|
|
249
|
+
data[i].push(0)
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
this.filteredList.forEach((element) => {
|
|
253
|
+
let year = element[primaryFilter.record_id].split('/')[2]
|
|
254
|
+
let month = element[primaryFilter.record_id].split('/')[1]
|
|
255
|
+
data[month][data[0].indexOf(year)]++
|
|
256
|
+
})
|
|
257
|
+
for (var i = 2; i < data.length; i++) {
|
|
258
|
+
for (var j = 1; j < data[i].length; j++) {
|
|
259
|
+
data[i][j] = data[i][j] + data[i - 1][j]
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
if (this.chart.type === 'BarChart') {
|
|
263
|
+
this.chart.options.height = data[0].length * 200
|
|
264
|
+
} else {
|
|
265
|
+
this.chart.options.height = this.chartHeight
|
|
266
|
+
}
|
|
267
|
+
return data
|
|
268
|
+
},
|
|
269
|
+
compare() {
|
|
270
|
+
let primaryFilter = this.filterFields[0]
|
|
271
|
+
let comparison = this.filteredList
|
|
272
|
+
.map((item) => item[this.graphSelected])
|
|
273
|
+
.filter((value, index, self) => self.indexOf(value) === index)
|
|
274
|
+
.sort((a, b) => a.localeCompare(b))
|
|
275
|
+
let data = [['Year', ...comparison]]
|
|
276
|
+
let keys = {}
|
|
277
|
+
this.filteredList.forEach((element) => {
|
|
278
|
+
let group = null
|
|
279
|
+
if (primaryFilter.date) {
|
|
280
|
+
group = `${element[primaryFilter.record_id].split('/')[2]} `
|
|
281
|
+
} else {
|
|
282
|
+
group = element[primaryFilter.record_id]
|
|
283
|
+
}
|
|
284
|
+
if (group in keys) {
|
|
285
|
+
} else {
|
|
286
|
+
keys[group] = {}
|
|
287
|
+
comparison.forEach((co) => {
|
|
288
|
+
keys[group][co] = 0
|
|
289
|
+
})
|
|
290
|
+
}
|
|
291
|
+
keys[group][element[this.graphSelected]]++
|
|
292
|
+
})
|
|
293
|
+
Object.keys(keys).forEach((key) => {
|
|
294
|
+
data.push([key, ...Object.entries(keys[key]).map(([k, v]) => v)])
|
|
295
|
+
})
|
|
296
|
+
if (this.chart.type === 'BarChart') {
|
|
297
|
+
this.chart.options.height = data[0].length * 200
|
|
298
|
+
} else {
|
|
299
|
+
this.chart.options.height = this.chartHeight
|
|
300
|
+
}
|
|
301
|
+
return data
|
|
302
|
+
},
|
|
303
|
+
noData() {
|
|
304
|
+
return [
|
|
305
|
+
[
|
|
306
|
+
{ label: 'Results', type: 'string' },
|
|
307
|
+
{ label: 'Results', type: 'number' },
|
|
308
|
+
{ role: 'style', type: 'string' },
|
|
309
|
+
{ role: 'annotation', type: 'string' }
|
|
310
|
+
],
|
|
311
|
+
['', 0, null, 'No results found']
|
|
312
|
+
]
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
</script>
|
|
317
|
+
|
|
318
|
+
<style lang="scss" scoped>
|
|
319
|
+
@import '../../../includes/scss/all';
|
|
320
|
+
|
|
321
|
+
.wcl-directory-filters {
|
|
322
|
+
&__filterButton {
|
|
323
|
+
display: inline-block;
|
|
324
|
+
padding-right: 16px;
|
|
325
|
+
line-height: 3;
|
|
326
|
+
&:last-child {
|
|
327
|
+
padding-right: 0px;
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
</style>
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
</div>
|
|
31
31
|
</template>
|
|
32
32
|
<script>
|
|
33
|
-
import Container from '../../../../Containers/Container'
|
|
34
|
-
import Row from '../../../../Containers/Row'
|
|
35
|
-
import Column from '../../../../Containers/Column'
|
|
33
|
+
import Container from '../../../../Containers/Container/index.vue'
|
|
34
|
+
import Row from '../../../../Containers/Row/index.vue'
|
|
35
|
+
import Column from '../../../../Containers/Column/index.vue'
|
|
36
36
|
import { format } from 'date-fns'
|
|
37
37
|
|
|
38
38
|
export default {
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
</div>
|
|
39
39
|
</template>
|
|
40
40
|
<script>
|
|
41
|
-
import Container from '../../../../Containers/Container'
|
|
42
|
-
import Row from '../../../../Containers/Row'
|
|
43
|
-
import Column from '../../../../Containers/Column'
|
|
41
|
+
import Container from '../../../../Containers/Container/index.vue'
|
|
42
|
+
import Row from '../../../../Containers/Row/index.vue'
|
|
43
|
+
import Column from '../../../../Containers/Column/index.vue'
|
|
44
44
|
import { calcDistance } from './distance'
|
|
45
45
|
|
|
46
46
|
export default {
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
</div>
|
|
20
20
|
</template>
|
|
21
21
|
<script>
|
|
22
|
-
import RecordDetails from './recordDetails'
|
|
23
|
-
import RecordContent from './recordContent'
|
|
22
|
+
import RecordDetails from './recordDetails.vue'
|
|
23
|
+
import RecordContent from './recordContent.vue'
|
|
24
24
|
export default {
|
|
25
25
|
components: {
|
|
26
26
|
RecordDetails,
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
</container>
|
|
33
33
|
</template>
|
|
34
34
|
<script>
|
|
35
|
-
import Container from '../../../../Containers/Container'
|
|
36
|
-
import Row from '../../../../Containers/Row'
|
|
37
|
-
import Column from '../../../../Containers/Column'
|
|
35
|
+
import Container from '../../../../Containers/Container/index.vue'
|
|
36
|
+
import Row from '../../../../Containers/Row/index.vue'
|
|
37
|
+
import Column from '../../../../Containers/Column/index.vue'
|
|
38
38
|
import { format } from 'date-fns'
|
|
39
39
|
|
|
40
40
|
export default {
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
</container>
|
|
24
24
|
</template>
|
|
25
25
|
<script>
|
|
26
|
-
import Container from '../../../../Containers/Container'
|
|
27
|
-
import Row from '../../../../Containers/Row'
|
|
28
|
-
import Column from '../../../../Containers/Column'
|
|
26
|
+
import Container from '../../../../Containers/Container/index.vue'
|
|
27
|
+
import Row from '../../../../Containers/Row/index.vue'
|
|
28
|
+
import Column from '../../../../Containers/Column/index.vue'
|
|
29
29
|
import { format } from 'date-fns'
|
|
30
30
|
|
|
31
31
|
export default {
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
</div>
|
|
14
14
|
</template>
|
|
15
15
|
<script>
|
|
16
|
-
import PrsRecord from './PRS'
|
|
17
|
-
import IspRecord from './ISP'
|
|
18
|
-
import CjRecord from './CJ'
|
|
16
|
+
import PrsRecord from './PRS/index.vue'
|
|
17
|
+
import IspRecord from './ISP/index.vue'
|
|
18
|
+
import CjRecord from './CJ/index.vue'
|
|
19
19
|
|
|
20
20
|
export default {
|
|
21
21
|
components: {
|
|
@@ -49,10 +49,10 @@
|
|
|
49
49
|
</template>
|
|
50
50
|
<script>
|
|
51
51
|
import { DIR_CONFIG } from './constants'
|
|
52
|
-
import DirectoryFilters from '../../Global/DirectoryFilters'
|
|
53
|
-
import Records from './Records/'
|
|
54
|
-
import Pagination from '../../SubComponents/Pagination'
|
|
55
|
-
import Loading from '../../SubComponents/Loading'
|
|
52
|
+
import DirectoryFilters from '../../Global/DirectoryFilters/index.vue'
|
|
53
|
+
import Records from './Records/index.vue'
|
|
54
|
+
import Pagination from '../../SubComponents/Pagination/index.vue'
|
|
55
|
+
import Loading from '../../SubComponents/Loading/index.vue'
|
|
56
56
|
import SectionGroup from '../../Containers/SectionGroup/index.vue'
|
|
57
57
|
|
|
58
58
|
export default {
|
|
@@ -4,68 +4,64 @@ import { storyData, storyDataAr } from './../Constants'
|
|
|
4
4
|
export default {
|
|
5
5
|
title: 'Paragraphs/ListGroup',
|
|
6
6
|
component: ListGroup,
|
|
7
|
+
tags: ['autodocs'],
|
|
7
8
|
argTypes: {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
items: {
|
|
13
|
-
control: 'object',
|
|
14
|
-
defaultValue: storyData.links
|
|
15
|
-
},
|
|
16
|
-
rtlItems: {
|
|
17
|
-
control: 'object',
|
|
18
|
-
defaultValue: storyDataAr.links
|
|
19
|
-
},
|
|
20
|
-
rtl: {
|
|
21
|
-
control: 'boolean',
|
|
22
|
-
defaultValue: false
|
|
23
|
-
},
|
|
24
|
-
titleTag: {
|
|
25
|
-
control: 'text',
|
|
26
|
-
defaultValue: 'h3'
|
|
27
|
-
},
|
|
28
|
-
showListItemNavigationArrow: {
|
|
29
|
-
control: 'boolean',
|
|
30
|
-
defaultValue: true
|
|
9
|
+
list: {
|
|
10
|
+
table: {
|
|
11
|
+
disable: true
|
|
12
|
+
}
|
|
31
13
|
},
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
14
|
+
title: {
|
|
15
|
+
table: {
|
|
16
|
+
disable: true
|
|
17
|
+
}
|
|
35
18
|
},
|
|
36
|
-
|
|
19
|
+
role: {
|
|
37
20
|
table: {
|
|
38
21
|
disable: true
|
|
39
22
|
}
|
|
40
23
|
},
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
24
|
+
subHeading: {
|
|
25
|
+
table: {
|
|
26
|
+
disable: true
|
|
27
|
+
}
|
|
44
28
|
},
|
|
45
|
-
|
|
29
|
+
footerHeading: {
|
|
46
30
|
table: {
|
|
47
31
|
disable: true
|
|
48
32
|
}
|
|
49
33
|
}
|
|
34
|
+
},
|
|
35
|
+
args: {
|
|
36
|
+
darkBackground: false,
|
|
37
|
+
items: storyData.links,
|
|
38
|
+
rtlItems: storyDataAr.links,
|
|
39
|
+
rtl: false,
|
|
40
|
+
titleTag: 'h3',
|
|
41
|
+
showListItemNavigationArrow: true,
|
|
42
|
+
showLargeSpacing: false,
|
|
43
|
+
showListLink: true
|
|
50
44
|
}
|
|
51
45
|
}
|
|
52
46
|
|
|
53
|
-
const Template = (args
|
|
47
|
+
const Template = (args) => ({
|
|
54
48
|
components: { ListGroup },
|
|
49
|
+
setup() {
|
|
50
|
+
return { args };
|
|
51
|
+
},
|
|
55
52
|
data() {
|
|
56
53
|
return {
|
|
57
54
|
storyData,
|
|
58
55
|
storyDataAr
|
|
59
56
|
}
|
|
60
57
|
},
|
|
61
|
-
props: Object.keys(argTypes),
|
|
62
58
|
template: `<list-group
|
|
63
|
-
v-bind="
|
|
64
|
-
:list="rtl ? rtlItems : items"
|
|
65
|
-
:title="(rtl ? storyDataAr.title : storyData.title)"
|
|
66
|
-
:sub-heading="(rtl ? storyDataAr.subHeading : storyData.subHeading)"
|
|
67
|
-
:footer-heading="(rtl ? storyDataAr.footer : storyDataAr.footer)"
|
|
68
|
-
:show-list-link="showListLink"
|
|
59
|
+
v-bind="args"
|
|
60
|
+
:list="args.rtl ? args.rtlItems : args.items"
|
|
61
|
+
:title="(args.rtl ? storyDataAr.title : storyData.title)"
|
|
62
|
+
:sub-heading="(args.rtl ? storyDataAr.subHeading : storyData.subHeading)"
|
|
63
|
+
:footer-heading="(args.rtl ? storyDataAr.footer : storyDataAr.footer)"
|
|
64
|
+
:show-list-link="args.showListLink" />`
|
|
69
65
|
})
|
|
70
66
|
|
|
71
67
|
export const Link = Template.bind({})
|