@worksafevictoria/wcl7.5 1.1.6 → 1.1.7
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
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import ScrollSpy from './index.vue'
|
|
2
|
+
import { BCol, BRow, BContainer } from 'bootstrap-vue-next'
|
|
2
3
|
|
|
3
|
-
const
|
|
4
|
+
const englishItemList = [
|
|
4
5
|
{
|
|
5
6
|
text: 'Section one heading',
|
|
6
7
|
id: 'item-1'
|
|
@@ -42,30 +43,22 @@ export default {
|
|
|
42
43
|
title: 'Paragraphs/ScrollSpy',
|
|
43
44
|
component: ScrollSpy,
|
|
44
45
|
argTypes: {
|
|
45
|
-
title: {
|
|
46
|
-
control: 'text',
|
|
47
|
-
defaultValue: 'On this page'
|
|
48
|
-
},
|
|
49
46
|
itemList: {
|
|
50
|
-
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
itemListArabic:
|
|
57
|
-
|
|
58
|
-
defaultValue: arabicItemList
|
|
59
|
-
},
|
|
60
|
-
rtl: {
|
|
61
|
-
control: 'boolean',
|
|
62
|
-
defaultValue: false
|
|
47
|
+
table: {disable: true}
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
args: {
|
|
51
|
+
title: 'On this page',
|
|
52
|
+
itemListEnglish: englishItemList,
|
|
53
|
+
itemListArabic: arabicItemList,
|
|
54
|
+
rtl: false
|
|
63
55
|
}
|
|
64
|
-
}
|
|
65
56
|
}
|
|
66
|
-
const DefaultContent = (args
|
|
67
|
-
components: { ScrollSpy },
|
|
68
|
-
|
|
57
|
+
const DefaultContent = (args) => ({
|
|
58
|
+
components: { ScrollSpy, BCol, BRow, BContainer },
|
|
59
|
+
setup() {
|
|
60
|
+
return { args }
|
|
61
|
+
},
|
|
69
62
|
data() {
|
|
70
63
|
return {
|
|
71
64
|
text: `
|
|
@@ -79,7 +72,7 @@ const DefaultContent = (args, { argTypes }) => ({
|
|
|
79
72
|
ipsum commodo tempor sunt in proident.
|
|
80
73
|
`,
|
|
81
74
|
arabicText: `هنالك العديد من الأنواع المتوفرة لنصوص لوريم إيبسوم، ولكن الغالبية تم تعديلها بشكل ما عبر إدخال بعض النوادر أو الكلمات العشوائية إلى النص. إن كنت تريد أن تستخدم نص لوريم إيبسوم ما، عليك أن تتحقق أولاً أن ليس هناك أي كلمات أو عبارات محرجة أو غير لائقة مخبأة في هذا النص. بينما تعمل جميع مولّدات نصوص لوريم إيبسوم على الإنترنت على إعادة تكرار مقاطع من نص لوريم إيبسوم نفسه عدة مرات بما تتطلبه الحاجة، يقوم مولّدنا هذا باستخدام كلمات من قاموس يحوي على أكثر من 200 كلمة لا تينية، مضاف إليها مجموعة من الجمل النموذجية، لتكوين نص لوريم إيبسوم ذو شكل منطقي قريب إلى النص الحقيقي. وبالتالي يكون النص الناتح خالي من التكرار، أو أي كلمات أو عبارات غير لائقة أو ما شابه. وهذا ما يجعله أول مولّد نص لوريم إيبسوم حقيقي على الإنترنت.`,
|
|
82
|
-
|
|
75
|
+
englishItemList,
|
|
83
76
|
arabicItemList
|
|
84
77
|
}
|
|
85
78
|
},
|
|
@@ -126,7 +119,7 @@ const DefaultContent = (args, { argTypes }) => ({
|
|
|
126
119
|
</div>
|
|
127
120
|
</b-col>
|
|
128
121
|
<b-col cols="4">
|
|
129
|
-
<scroll-spy v-bind="
|
|
122
|
+
<scroll-spy v-bind="args" :item-list="args.itemListEnglish" />
|
|
130
123
|
</b-col>
|
|
131
124
|
</b-row>
|
|
132
125
|
|
|
@@ -174,11 +167,10 @@ const DefaultContent = (args, { argTypes }) => ({
|
|
|
174
167
|
</div>
|
|
175
168
|
</b-col>
|
|
176
169
|
<b-col cols="4">
|
|
177
|
-
<scroll-spy v-bind="
|
|
170
|
+
<scroll-spy v-bind="args" :item-list="args.arabicItemList" />
|
|
178
171
|
</b-col>
|
|
179
172
|
</b-row>
|
|
180
173
|
</b-container>`
|
|
181
174
|
})
|
|
182
175
|
|
|
183
176
|
export const Default = DefaultContent.bind({})
|
|
184
|
-
Default.parameters = { controls: { exclude: ['itemList'] } }
|
|
@@ -22,10 +22,11 @@
|
|
|
22
22
|
|
|
23
23
|
<script>
|
|
24
24
|
import SectionGroup from '../../Containers/SectionGroup/index.vue'
|
|
25
|
+
import { BNavbar, BListGroup, BListGroupItem } from 'bootstrap-vue-next'
|
|
25
26
|
|
|
26
27
|
export default {
|
|
27
28
|
name: 'ScrollSpy',
|
|
28
|
-
components: { SectionGroup },
|
|
29
|
+
components: { SectionGroup, BNavbar, BListGroup, BListGroupItem },
|
|
29
30
|
props: {
|
|
30
31
|
title: {
|
|
31
32
|
type: String,
|