@asd20/ui 3.2.362 → 3.2.363
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/package.json +1 -1
- package/src/components/organisms/Asd20PageFooter/index.vue +1 -0
- package/src/components/templates/Asd20SalaryCalculatorTemplate/index.stories.js +58 -0
- package/src/components/templates/Asd20SalaryCalculatorTemplate/index.vue +733 -0
- package/src/components/templates/Asd20SchoolHomeTemplate/index.vue +1 -1
- package/src/data/page-queries/salary-calculator-page-result.json +2566 -0
- package/src/data/page-queries/school-home-page-query-result.json +1 -1
package/package.json
CHANGED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { storiesOf } from '@storybook/vue'
|
|
2
|
+
import { withKnobs, boolean } from '@storybook/addon-knobs'
|
|
3
|
+
|
|
4
|
+
import mockPageMixin from '../../../mixins/mockPageMixin'
|
|
5
|
+
|
|
6
|
+
import Asd20SalaryCalculatorTemplate from '.'
|
|
7
|
+
import pageQueryResult from '../../../data/page-queries/salary-calculator-page-result.json'
|
|
8
|
+
import notifications from '../../../data/messages/notifications'
|
|
9
|
+
|
|
10
|
+
const info = {
|
|
11
|
+
summary: 'Salary Calculator Template',
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const wrapper = {
|
|
15
|
+
mixins: [mockPageMixin],
|
|
16
|
+
components: {
|
|
17
|
+
Asd20SalaryCalculatorTemplate,
|
|
18
|
+
},
|
|
19
|
+
|
|
20
|
+
data: () => ({ pageQueryResult }),
|
|
21
|
+
|
|
22
|
+
computed: {
|
|
23
|
+
activeNotificationsByType() {
|
|
24
|
+
const empty = {
|
|
25
|
+
inline: [],
|
|
26
|
+
banner: [],
|
|
27
|
+
floating: [],
|
|
28
|
+
status: [],
|
|
29
|
+
}
|
|
30
|
+
return boolean('Show Notifications', false)
|
|
31
|
+
? notifications || empty
|
|
32
|
+
: empty
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
const stories = storiesOf('Templates - Asd20SalaryCalculatorTemplate', module)
|
|
38
|
+
stories.addDecorator(withKnobs)
|
|
39
|
+
|
|
40
|
+
stories.add(
|
|
41
|
+
'Default',
|
|
42
|
+
() => ({
|
|
43
|
+
...wrapper,
|
|
44
|
+
template: `
|
|
45
|
+
<Asd20SalaryCalculatorTemplate
|
|
46
|
+
v-bind="templateProps"
|
|
47
|
+
:menu-open.sync="menuOpen"
|
|
48
|
+
:search-open.sync="searchOpen"
|
|
49
|
+
|
|
50
|
+
@announcements-in-view="loadAnnouncements"
|
|
51
|
+
@stories-in-view="loadStories"
|
|
52
|
+
@events-in-view="loadEvents"
|
|
53
|
+
@files-in-view="loadFiles"
|
|
54
|
+
|
|
55
|
+
/>`,
|
|
56
|
+
}),
|
|
57
|
+
{ info }
|
|
58
|
+
)
|