@gitlab/ui 32.64.0 → 32.66.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/CHANGELOG.md +28 -0
- package/dist/components/base/paginated_list/paginated_list.documentation.js +2 -5
- package/dist/components/base/toast/toast.documentation.js +2 -5
- package/dist/components/utilities/intersection_observer/intersection_observer.documentation.js +1 -20
- package/dist/components/utilities/intersection_observer/intersection_observer.js +12 -0
- package/dist/utility_classes.css +1 -1
- package/dist/utility_classes.css.map +1 -1
- package/documentation/documented_stories.js +3 -0
- package/package.json +1 -1
- package/src/components/base/paginated_list/paginated_list.documentation.js +0 -2
- package/src/components/base/paginated_list/paginated_list.md +0 -2
- package/src/components/base/paginated_list/paginated_list.stories.js +162 -154
- package/src/components/base/toast/toast.documentation.js +0 -2
- package/src/components/base/toast/toast.md +0 -11
- package/src/components/base/toast/toast.stories.js +66 -50
- package/src/components/utilities/intersection_observer/intersection_observer.documentation.js +0 -23
- package/src/components/utilities/intersection_observer/intersection_observer.stories.js +91 -80
- package/src/components/utilities/intersection_observer/intersection_observer.vue +15 -0
- package/src/scss/utilities.scss +30 -4
- package/src/scss/utility-mixins/flex.scss +1 -1
- package/src/scss/utility-mixins/opacity.scss +8 -0
- package/src/scss/utility-mixins/spacing.scss +7 -1
- package/dist/components/base/paginated_list/examples/index.js +0 -49
- package/dist/components/base/paginated_list/examples/paginated_list.basic.example.js +0 -51
- package/dist/components/base/paginated_list/examples/paginated_list.no_filter.example.js +0 -51
- package/dist/components/base/paginated_list/examples/paginated_list.with_empty_list.example.js +0 -38
- package/dist/components/base/paginated_list/examples/paginated_list.with_filter_function.example.js +0 -51
- package/dist/components/base/paginated_list/examples/paginated_list.with_header_slot.example.js +0 -51
- package/dist/components/base/paginated_list/examples/paginated_list.with_row_slot.example.js +0 -53
- package/dist/components/base/paginated_list/examples/paginated_list.with_subheader_slot.example.js +0 -51
- package/dist/components/base/toast/examples/index.js +0 -19
- package/dist/components/base/toast/examples/toast.action.example.js +0 -40
- package/dist/components/base/toast/examples/toast.default.example.js +0 -38
- package/dist/components/utilities/intersection_observer/examples/index.js +0 -19
- package/dist/components/utilities/intersection_observer/examples/intersection_observer.image.example.js +0 -62
- package/dist/components/utilities/intersection_observer/examples/intersection_observer.last_appeared.example.js +0 -83
- package/src/components/base/paginated_list/examples/index.js +0 -57
- package/src/components/base/paginated_list/examples/paginated_list.basic.example.vue +0 -19
- package/src/components/base/paginated_list/examples/paginated_list.no_filter.example.vue +0 -20
- package/src/components/base/paginated_list/examples/paginated_list.with_empty_list.example.vue +0 -3
- package/src/components/base/paginated_list/examples/paginated_list.with_filter_function.example.vue +0 -20
- package/src/components/base/paginated_list/examples/paginated_list.with_header_slot.example.vue +0 -23
- package/src/components/base/paginated_list/examples/paginated_list.with_row_slot.example.vue +0 -25
- package/src/components/base/paginated_list/examples/paginated_list.with_subheader_slot.example.vue +0 -23
- package/src/components/base/toast/examples/index.js +0 -22
- package/src/components/base/toast/examples/toast.action.example.vue +0 -11
- package/src/components/base/toast/examples/toast.default.example.vue +0 -3
- package/src/components/utilities/intersection_observer/examples/index.js +0 -23
- package/src/components/utilities/intersection_observer/examples/intersection_observer.image.example.vue +0 -29
- package/src/components/utilities/intersection_observer/examples/intersection_observer.last_appeared.example.vue +0 -43
package/dist/components/base/paginated_list/examples/paginated_list.with_row_slot.example.js
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
2
|
-
|
|
3
|
-
/* script */
|
|
4
|
-
|
|
5
|
-
/* template */
|
|
6
|
-
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('gl-paginated-list',{attrs:{"list":[
|
|
7
|
-
{ id: 'foo' },
|
|
8
|
-
{ id: 'bar' },
|
|
9
|
-
{ id: 'baz' },
|
|
10
|
-
{ id: 'qux' },
|
|
11
|
-
{ id: 'quux' },
|
|
12
|
-
{ id: 'corge' },
|
|
13
|
-
{ id: 'grault' },
|
|
14
|
-
{ id: 'garply' },
|
|
15
|
-
{ id: 'waldo' },
|
|
16
|
-
{ id: 'fred' },
|
|
17
|
-
{ id: 'xyzzy' },
|
|
18
|
-
{ id: 'plugh' },
|
|
19
|
-
{ id: 'thud' } ]},scopedSlots:_vm._u([{key:"default",fn:function(ref){
|
|
20
|
-
var listItem = ref.listItem;
|
|
21
|
-
return [_c('gl-button',{staticClass:"order-1",attrs:{"variant":"success"},on:{"click":_vm.alert}},[_vm._v("\n "+_vm._s(listItem.id)+"\n ")])]}}])})};
|
|
22
|
-
var __vue_staticRenderFns__ = [];
|
|
23
|
-
|
|
24
|
-
/* style */
|
|
25
|
-
const __vue_inject_styles__ = undefined;
|
|
26
|
-
/* scoped */
|
|
27
|
-
const __vue_scope_id__ = undefined;
|
|
28
|
-
/* module identifier */
|
|
29
|
-
const __vue_module_identifier__ = undefined;
|
|
30
|
-
/* functional template */
|
|
31
|
-
const __vue_is_functional_template__ = false;
|
|
32
|
-
/* style inject */
|
|
33
|
-
|
|
34
|
-
/* style inject SSR */
|
|
35
|
-
|
|
36
|
-
/* style inject shadow dom */
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
const __vue_component__ = __vue_normalize__(
|
|
41
|
-
{ render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
|
|
42
|
-
__vue_inject_styles__,
|
|
43
|
-
{},
|
|
44
|
-
__vue_scope_id__,
|
|
45
|
-
__vue_is_functional_template__,
|
|
46
|
-
__vue_module_identifier__,
|
|
47
|
-
false,
|
|
48
|
-
undefined,
|
|
49
|
-
undefined,
|
|
50
|
-
undefined
|
|
51
|
-
);
|
|
52
|
-
|
|
53
|
-
export default __vue_component__;
|
package/dist/components/base/paginated_list/examples/paginated_list.with_subheader_slot.example.js
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
2
|
-
|
|
3
|
-
/* script */
|
|
4
|
-
|
|
5
|
-
/* template */
|
|
6
|
-
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('gl-paginated-list',{attrs:{"list":[
|
|
7
|
-
{ id: 'foo' },
|
|
8
|
-
{ id: 'bar' },
|
|
9
|
-
{ id: 'baz' },
|
|
10
|
-
{ id: 'qux' },
|
|
11
|
-
{ id: 'quux' },
|
|
12
|
-
{ id: 'corge' },
|
|
13
|
-
{ id: 'grault' },
|
|
14
|
-
{ id: 'garply' },
|
|
15
|
-
{ id: 'waldo' },
|
|
16
|
-
{ id: 'fred' },
|
|
17
|
-
{ id: 'xyzzy' },
|
|
18
|
-
{ id: 'plugh' },
|
|
19
|
-
{ id: 'thud' } ]},scopedSlots:_vm._u([{key:"subheader",fn:function(){return [_vm._v("\n Dropdown content can go here when like when an action button is clicked\n ")]},proxy:true}])})};
|
|
20
|
-
var __vue_staticRenderFns__ = [];
|
|
21
|
-
|
|
22
|
-
/* style */
|
|
23
|
-
const __vue_inject_styles__ = undefined;
|
|
24
|
-
/* scoped */
|
|
25
|
-
const __vue_scope_id__ = undefined;
|
|
26
|
-
/* module identifier */
|
|
27
|
-
const __vue_module_identifier__ = undefined;
|
|
28
|
-
/* functional template */
|
|
29
|
-
const __vue_is_functional_template__ = false;
|
|
30
|
-
/* style inject */
|
|
31
|
-
|
|
32
|
-
/* style inject SSR */
|
|
33
|
-
|
|
34
|
-
/* style inject shadow dom */
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
const __vue_component__ = __vue_normalize__(
|
|
39
|
-
{ render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
|
|
40
|
-
__vue_inject_styles__,
|
|
41
|
-
{},
|
|
42
|
-
__vue_scope_id__,
|
|
43
|
-
__vue_is_functional_template__,
|
|
44
|
-
__vue_module_identifier__,
|
|
45
|
-
false,
|
|
46
|
-
undefined,
|
|
47
|
-
undefined,
|
|
48
|
-
undefined
|
|
49
|
-
);
|
|
50
|
-
|
|
51
|
-
export default __vue_component__;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import ToastActionExample from './toast.action.example';
|
|
2
|
-
import ToastDefaultExample from './toast.default.example';
|
|
3
|
-
|
|
4
|
-
var index = [{
|
|
5
|
-
name: 'Basic',
|
|
6
|
-
items: [{
|
|
7
|
-
id: 'toast-default',
|
|
8
|
-
name: 'Default',
|
|
9
|
-
description: 'Default Toast',
|
|
10
|
-
component: ToastDefaultExample
|
|
11
|
-
}, {
|
|
12
|
-
id: 'toast-action',
|
|
13
|
-
name: 'Action',
|
|
14
|
-
description: 'Toast with an Action',
|
|
15
|
-
component: ToastActionExample
|
|
16
|
-
}]
|
|
17
|
-
}];
|
|
18
|
-
|
|
19
|
-
export default index;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
2
|
-
|
|
3
|
-
/* script */
|
|
4
|
-
|
|
5
|
-
/* template */
|
|
6
|
-
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('gl-button',{on:{"click":function($event){_vm.$toast.show('This is a toast with an action.', {
|
|
7
|
-
action: { text: 'Undo', onClick: function () {} },
|
|
8
|
-
});}}},[_vm._v("\n Show toast with an action\n")])};
|
|
9
|
-
var __vue_staticRenderFns__ = [];
|
|
10
|
-
|
|
11
|
-
/* style */
|
|
12
|
-
const __vue_inject_styles__ = undefined;
|
|
13
|
-
/* scoped */
|
|
14
|
-
const __vue_scope_id__ = undefined;
|
|
15
|
-
/* module identifier */
|
|
16
|
-
const __vue_module_identifier__ = undefined;
|
|
17
|
-
/* functional template */
|
|
18
|
-
const __vue_is_functional_template__ = false;
|
|
19
|
-
/* style inject */
|
|
20
|
-
|
|
21
|
-
/* style inject SSR */
|
|
22
|
-
|
|
23
|
-
/* style inject shadow dom */
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
const __vue_component__ = __vue_normalize__(
|
|
28
|
-
{ render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
|
|
29
|
-
__vue_inject_styles__,
|
|
30
|
-
{},
|
|
31
|
-
__vue_scope_id__,
|
|
32
|
-
__vue_is_functional_template__,
|
|
33
|
-
__vue_module_identifier__,
|
|
34
|
-
false,
|
|
35
|
-
undefined,
|
|
36
|
-
undefined,
|
|
37
|
-
undefined
|
|
38
|
-
);
|
|
39
|
-
|
|
40
|
-
export default __vue_component__;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
2
|
-
|
|
3
|
-
/* script */
|
|
4
|
-
|
|
5
|
-
/* template */
|
|
6
|
-
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('gl-button',{on:{"click":function($event){return _vm.$toast.show('This is the default toast.')}}},[_vm._v("Show default toast")])};
|
|
7
|
-
var __vue_staticRenderFns__ = [];
|
|
8
|
-
|
|
9
|
-
/* style */
|
|
10
|
-
const __vue_inject_styles__ = undefined;
|
|
11
|
-
/* scoped */
|
|
12
|
-
const __vue_scope_id__ = undefined;
|
|
13
|
-
/* module identifier */
|
|
14
|
-
const __vue_module_identifier__ = undefined;
|
|
15
|
-
/* functional template */
|
|
16
|
-
const __vue_is_functional_template__ = false;
|
|
17
|
-
/* style inject */
|
|
18
|
-
|
|
19
|
-
/* style inject SSR */
|
|
20
|
-
|
|
21
|
-
/* style inject shadow dom */
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
const __vue_component__ = __vue_normalize__(
|
|
26
|
-
{ render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
|
|
27
|
-
__vue_inject_styles__,
|
|
28
|
-
{},
|
|
29
|
-
__vue_scope_id__,
|
|
30
|
-
__vue_is_functional_template__,
|
|
31
|
-
__vue_module_identifier__,
|
|
32
|
-
false,
|
|
33
|
-
undefined,
|
|
34
|
-
undefined,
|
|
35
|
-
undefined
|
|
36
|
-
);
|
|
37
|
-
|
|
38
|
-
export default __vue_component__;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import ImageExample from './intersection_observer.image.example';
|
|
2
|
-
import LastAppearedExample from './intersection_observer.last_appeared.example';
|
|
3
|
-
|
|
4
|
-
var index = [{
|
|
5
|
-
name: 'Intersection observer',
|
|
6
|
-
items: [{
|
|
7
|
-
id: 'intersection-observer-last-appeared',
|
|
8
|
-
name: 'Last appeared at',
|
|
9
|
-
description: 'Logs when the component last appeared on the screen',
|
|
10
|
-
component: LastAppearedExample
|
|
11
|
-
}, {
|
|
12
|
-
id: 'intersection-observer-lazy-loaded-image',
|
|
13
|
-
name: 'Lazy loaded image',
|
|
14
|
-
description: "This image switches between a gif and a still image when it's on or off the screen",
|
|
15
|
-
component: ImageExample
|
|
16
|
-
}]
|
|
17
|
-
}];
|
|
18
|
-
|
|
19
|
-
export default index;
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
2
|
-
|
|
3
|
-
var script = {
|
|
4
|
-
data: () => ({
|
|
5
|
-
isInView: false
|
|
6
|
-
}),
|
|
7
|
-
computed: {
|
|
8
|
-
imageUrl() {
|
|
9
|
-
// If the image is in view, return the high res one. If not return nothing, or a low res one
|
|
10
|
-
return this.isInView ? '../../img/gitlab-summit-south-africa.jpg' : '../../img/gitlab-summit-south-africa-min.jpg';
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
},
|
|
14
|
-
methods: {
|
|
15
|
-
appear() {
|
|
16
|
-
this.isInView = true;
|
|
17
|
-
},
|
|
18
|
-
|
|
19
|
-
disappear() {
|
|
20
|
-
this.isInView = false;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
/* script */
|
|
27
|
-
const __vue_script__ = script;
|
|
28
|
-
|
|
29
|
-
/* template */
|
|
30
|
-
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('gl-intersection-observer',{on:{"appear":_vm.appear,"disappear":_vm.disappear}},[_c('img',{staticStyle:{"max-width":"100%","height":"auto"},attrs:{"src":_vm.imageUrl}})])};
|
|
31
|
-
var __vue_staticRenderFns__ = [];
|
|
32
|
-
|
|
33
|
-
/* style */
|
|
34
|
-
const __vue_inject_styles__ = undefined;
|
|
35
|
-
/* scoped */
|
|
36
|
-
const __vue_scope_id__ = undefined;
|
|
37
|
-
/* module identifier */
|
|
38
|
-
const __vue_module_identifier__ = undefined;
|
|
39
|
-
/* functional template */
|
|
40
|
-
const __vue_is_functional_template__ = false;
|
|
41
|
-
/* style inject */
|
|
42
|
-
|
|
43
|
-
/* style inject SSR */
|
|
44
|
-
|
|
45
|
-
/* style inject shadow dom */
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
const __vue_component__ = __vue_normalize__(
|
|
50
|
-
{ render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
|
|
51
|
-
__vue_inject_styles__,
|
|
52
|
-
__vue_script__,
|
|
53
|
-
__vue_scope_id__,
|
|
54
|
-
__vue_is_functional_template__,
|
|
55
|
-
__vue_module_identifier__,
|
|
56
|
-
false,
|
|
57
|
-
undefined,
|
|
58
|
-
undefined,
|
|
59
|
-
undefined
|
|
60
|
-
);
|
|
61
|
-
|
|
62
|
-
export default __vue_component__;
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
2
|
-
|
|
3
|
-
var script = {
|
|
4
|
-
data: () => ({
|
|
5
|
-
appearedAt: null,
|
|
6
|
-
now: null,
|
|
7
|
-
interval: null
|
|
8
|
-
}),
|
|
9
|
-
computed: {
|
|
10
|
-
secondsSinceAppearance() {
|
|
11
|
-
if (!this.appearedAt) {
|
|
12
|
-
return 0;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
return Math.floor((this.now - this.appearedAt) / 1000);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
},
|
|
19
|
-
|
|
20
|
-
destroyed() {
|
|
21
|
-
this.clearInterval();
|
|
22
|
-
},
|
|
23
|
-
|
|
24
|
-
methods: {
|
|
25
|
-
appear() {
|
|
26
|
-
this.clearInterval();
|
|
27
|
-
this.interval = setInterval(this.tick, 1000);
|
|
28
|
-
this.tick();
|
|
29
|
-
this.appearedAt = this.now;
|
|
30
|
-
},
|
|
31
|
-
|
|
32
|
-
disappear() {
|
|
33
|
-
this.clearInterval();
|
|
34
|
-
},
|
|
35
|
-
|
|
36
|
-
clearInterval() {
|
|
37
|
-
clearInterval(this.interval);
|
|
38
|
-
},
|
|
39
|
-
|
|
40
|
-
tick() {
|
|
41
|
-
this.now = new Date().getTime();
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
/* script */
|
|
48
|
-
const __vue_script__ = script;
|
|
49
|
-
|
|
50
|
-
/* template */
|
|
51
|
-
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('gl-intersection-observer',{on:{"appear":_vm.appear,"disappear":_vm.disappear}},[_c('span',[_vm._v("Last appeared "+_vm._s(_vm.secondsSinceAppearance)+" seconds ago")])])};
|
|
52
|
-
var __vue_staticRenderFns__ = [];
|
|
53
|
-
|
|
54
|
-
/* style */
|
|
55
|
-
const __vue_inject_styles__ = undefined;
|
|
56
|
-
/* scoped */
|
|
57
|
-
const __vue_scope_id__ = undefined;
|
|
58
|
-
/* module identifier */
|
|
59
|
-
const __vue_module_identifier__ = undefined;
|
|
60
|
-
/* functional template */
|
|
61
|
-
const __vue_is_functional_template__ = false;
|
|
62
|
-
/* style inject */
|
|
63
|
-
|
|
64
|
-
/* style inject SSR */
|
|
65
|
-
|
|
66
|
-
/* style inject shadow dom */
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
const __vue_component__ = __vue_normalize__(
|
|
71
|
-
{ render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
|
|
72
|
-
__vue_inject_styles__,
|
|
73
|
-
__vue_script__,
|
|
74
|
-
__vue_scope_id__,
|
|
75
|
-
__vue_is_functional_template__,
|
|
76
|
-
__vue_module_identifier__,
|
|
77
|
-
false,
|
|
78
|
-
undefined,
|
|
79
|
-
undefined,
|
|
80
|
-
undefined
|
|
81
|
-
);
|
|
82
|
-
|
|
83
|
-
export default __vue_component__;
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import PaginatedListBasicExample from './paginated_list.basic.example.vue';
|
|
2
|
-
import PaginatedListNoFilterExample from './paginated_list.no_filter.example.vue';
|
|
3
|
-
import PaginatedListWithEmptyListExample from './paginated_list.with_empty_list.example.vue';
|
|
4
|
-
import PaginatedListWithFilterFunctionExample from './paginated_list.with_filter_function.example.vue';
|
|
5
|
-
import PaginatedListWithHeaderSlotExample from './paginated_list.with_header_slot.example.vue';
|
|
6
|
-
import PaginatedListWithRowSlotExample from './paginated_list.with_row_slot.example.vue';
|
|
7
|
-
import PaginatedListWithSubheaderSlotExample from './paginated_list.with_subheader_slot.example.vue';
|
|
8
|
-
|
|
9
|
-
export default [
|
|
10
|
-
{
|
|
11
|
-
name: 'Basic',
|
|
12
|
-
items: [
|
|
13
|
-
{
|
|
14
|
-
id: 'paginated-list-basic',
|
|
15
|
-
name: 'Basic',
|
|
16
|
-
description: 'Basic Paginated List',
|
|
17
|
-
component: PaginatedListBasicExample,
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
id: 'paginated-list-no-filter',
|
|
21
|
-
name: 'No Filter',
|
|
22
|
-
description: 'Paginated List with no button',
|
|
23
|
-
component: PaginatedListNoFilterExample,
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
id: 'paginated-list-with-empty-list',
|
|
27
|
-
name: 'With empty list',
|
|
28
|
-
description: 'Paginated List empty list',
|
|
29
|
-
component: PaginatedListWithEmptyListExample,
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
id: 'paginated-list-with-header-slot',
|
|
33
|
-
name: 'With header slot',
|
|
34
|
-
description: 'Paginated List header slot',
|
|
35
|
-
component: PaginatedListWithHeaderSlotExample,
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
id: 'paginated-list-with-subheader-slot',
|
|
39
|
-
name: 'With subheader slot',
|
|
40
|
-
description: 'Paginated List subheader slot',
|
|
41
|
-
component: PaginatedListWithSubheaderSlotExample,
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
id: 'paginated-list-with-row-slot',
|
|
45
|
-
name: 'With row slot',
|
|
46
|
-
description: 'Paginated List with row slot',
|
|
47
|
-
component: PaginatedListWithRowSlotExample,
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
id: 'paginated-list-with-filter-function',
|
|
51
|
-
name: 'With filter function',
|
|
52
|
-
description: 'Paginated List with filter function',
|
|
53
|
-
component: PaginatedListWithFilterFunctionExample,
|
|
54
|
-
},
|
|
55
|
-
],
|
|
56
|
-
},
|
|
57
|
-
];
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<gl-paginated-list
|
|
3
|
-
:list="[
|
|
4
|
-
{ id: 'foo' },
|
|
5
|
-
{ id: 'bar' },
|
|
6
|
-
{ id: 'baz' },
|
|
7
|
-
{ id: 'qux' },
|
|
8
|
-
{ id: 'quux' },
|
|
9
|
-
{ id: 'corge' },
|
|
10
|
-
{ id: 'grault' },
|
|
11
|
-
{ id: 'garply' },
|
|
12
|
-
{ id: 'waldo' },
|
|
13
|
-
{ id: 'fred' },
|
|
14
|
-
{ id: 'xyzzy' },
|
|
15
|
-
{ id: 'plugh' },
|
|
16
|
-
{ id: 'thud' },
|
|
17
|
-
]"
|
|
18
|
-
/>
|
|
19
|
-
</template>
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<gl-paginated-list
|
|
3
|
-
:list="[
|
|
4
|
-
{ id: 'foo' },
|
|
5
|
-
{ id: 'bar' },
|
|
6
|
-
{ id: 'baz' },
|
|
7
|
-
{ id: 'qux' },
|
|
8
|
-
{ id: 'quux' },
|
|
9
|
-
{ id: 'corge' },
|
|
10
|
-
{ id: 'grault' },
|
|
11
|
-
{ id: 'garply' },
|
|
12
|
-
{ id: 'waldo' },
|
|
13
|
-
{ id: 'fred' },
|
|
14
|
-
{ id: 'xyzzy' },
|
|
15
|
-
{ id: 'plugh' },
|
|
16
|
-
{ id: 'thud' },
|
|
17
|
-
]"
|
|
18
|
-
:filterable="false"
|
|
19
|
-
/>
|
|
20
|
-
</template>
|
package/src/components/base/paginated_list/examples/paginated_list.with_filter_function.example.vue
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<gl-paginated-list
|
|
3
|
-
:list="[
|
|
4
|
-
{ id: 'foo' },
|
|
5
|
-
{ id: 'bar' },
|
|
6
|
-
{ id: 'baz' },
|
|
7
|
-
{ id: 'qux' },
|
|
8
|
-
{ id: 'quux' },
|
|
9
|
-
{ id: 'corge' },
|
|
10
|
-
{ id: 'grault' },
|
|
11
|
-
{ id: 'garply' },
|
|
12
|
-
{ id: 'waldo' },
|
|
13
|
-
{ id: 'fred' },
|
|
14
|
-
{ id: 'xyzzy' },
|
|
15
|
-
{ id: 'plugh' },
|
|
16
|
-
{ id: 'thud' },
|
|
17
|
-
]"
|
|
18
|
-
:filter="(item, queryStr) => item.id.includes(queryStr)"
|
|
19
|
-
/>
|
|
20
|
-
</template>
|
package/src/components/base/paginated_list/examples/paginated_list.with_header_slot.example.vue
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<gl-paginated-list
|
|
3
|
-
:list="[
|
|
4
|
-
{ id: 'foo' },
|
|
5
|
-
{ id: 'bar' },
|
|
6
|
-
{ id: 'baz' },
|
|
7
|
-
{ id: 'qux' },
|
|
8
|
-
{ id: 'quux' },
|
|
9
|
-
{ id: 'corge' },
|
|
10
|
-
{ id: 'grault' },
|
|
11
|
-
{ id: 'garply' },
|
|
12
|
-
{ id: 'waldo' },
|
|
13
|
-
{ id: 'fred' },
|
|
14
|
-
{ id: 'xyzzy' },
|
|
15
|
-
{ id: 'plugh' },
|
|
16
|
-
{ id: 'thud' },
|
|
17
|
-
]"
|
|
18
|
-
>
|
|
19
|
-
<template #header>
|
|
20
|
-
<gl-button variant="success" class="order-1">Foo Button</gl-button>
|
|
21
|
-
</template>
|
|
22
|
-
</gl-paginated-list>
|
|
23
|
-
</template>
|
package/src/components/base/paginated_list/examples/paginated_list.with_row_slot.example.vue
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<gl-paginated-list
|
|
3
|
-
:list="[
|
|
4
|
-
{ id: 'foo' },
|
|
5
|
-
{ id: 'bar' },
|
|
6
|
-
{ id: 'baz' },
|
|
7
|
-
{ id: 'qux' },
|
|
8
|
-
{ id: 'quux' },
|
|
9
|
-
{ id: 'corge' },
|
|
10
|
-
{ id: 'grault' },
|
|
11
|
-
{ id: 'garply' },
|
|
12
|
-
{ id: 'waldo' },
|
|
13
|
-
{ id: 'fred' },
|
|
14
|
-
{ id: 'xyzzy' },
|
|
15
|
-
{ id: 'plugh' },
|
|
16
|
-
{ id: 'thud' },
|
|
17
|
-
]"
|
|
18
|
-
>
|
|
19
|
-
<template #default="{ listItem }">
|
|
20
|
-
<gl-button variant="success" class="order-1" @click="alert">
|
|
21
|
-
{{ listItem.id }}
|
|
22
|
-
</gl-button>
|
|
23
|
-
</template>
|
|
24
|
-
</gl-paginated-list>
|
|
25
|
-
</template>
|
package/src/components/base/paginated_list/examples/paginated_list.with_subheader_slot.example.vue
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<gl-paginated-list
|
|
3
|
-
:list="[
|
|
4
|
-
{ id: 'foo' },
|
|
5
|
-
{ id: 'bar' },
|
|
6
|
-
{ id: 'baz' },
|
|
7
|
-
{ id: 'qux' },
|
|
8
|
-
{ id: 'quux' },
|
|
9
|
-
{ id: 'corge' },
|
|
10
|
-
{ id: 'grault' },
|
|
11
|
-
{ id: 'garply' },
|
|
12
|
-
{ id: 'waldo' },
|
|
13
|
-
{ id: 'fred' },
|
|
14
|
-
{ id: 'xyzzy' },
|
|
15
|
-
{ id: 'plugh' },
|
|
16
|
-
{ id: 'thud' },
|
|
17
|
-
]"
|
|
18
|
-
>
|
|
19
|
-
<template #subheader>
|
|
20
|
-
Dropdown content can go here when like when an action button is clicked
|
|
21
|
-
</template>
|
|
22
|
-
</gl-paginated-list>
|
|
23
|
-
</template>
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import ToastActionExample from './toast.action.example.vue';
|
|
2
|
-
import ToastDefaultExample from './toast.default.example.vue';
|
|
3
|
-
|
|
4
|
-
export default [
|
|
5
|
-
{
|
|
6
|
-
name: 'Basic',
|
|
7
|
-
items: [
|
|
8
|
-
{
|
|
9
|
-
id: 'toast-default',
|
|
10
|
-
name: 'Default',
|
|
11
|
-
description: 'Default Toast',
|
|
12
|
-
component: ToastDefaultExample,
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
id: 'toast-action',
|
|
16
|
-
name: 'Action',
|
|
17
|
-
description: 'Toast with an Action',
|
|
18
|
-
component: ToastActionExample,
|
|
19
|
-
},
|
|
20
|
-
],
|
|
21
|
-
},
|
|
22
|
-
];
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import ImageExample from './intersection_observer.image.example.vue';
|
|
2
|
-
import LastAppearedExample from './intersection_observer.last_appeared.example.vue';
|
|
3
|
-
|
|
4
|
-
export default [
|
|
5
|
-
{
|
|
6
|
-
name: 'Intersection observer',
|
|
7
|
-
items: [
|
|
8
|
-
{
|
|
9
|
-
id: 'intersection-observer-last-appeared',
|
|
10
|
-
name: 'Last appeared at',
|
|
11
|
-
description: 'Logs when the component last appeared on the screen',
|
|
12
|
-
component: LastAppearedExample,
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
id: 'intersection-observer-lazy-loaded-image',
|
|
16
|
-
name: 'Lazy loaded image',
|
|
17
|
-
description:
|
|
18
|
-
"This image switches between a gif and a still image when it's on or off the screen",
|
|
19
|
-
component: ImageExample,
|
|
20
|
-
},
|
|
21
|
-
],
|
|
22
|
-
},
|
|
23
|
-
];
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
export default {
|
|
3
|
-
data: () => ({
|
|
4
|
-
isInView: false,
|
|
5
|
-
}),
|
|
6
|
-
computed: {
|
|
7
|
-
imageUrl() {
|
|
8
|
-
// If the image is in view, return the high res one. If not return nothing, or a low res one
|
|
9
|
-
return this.isInView
|
|
10
|
-
? '../../img/gitlab-summit-south-africa.jpg'
|
|
11
|
-
: '../../img/gitlab-summit-south-africa-min.jpg';
|
|
12
|
-
},
|
|
13
|
-
},
|
|
14
|
-
methods: {
|
|
15
|
-
appear() {
|
|
16
|
-
this.isInView = true;
|
|
17
|
-
},
|
|
18
|
-
disappear() {
|
|
19
|
-
this.isInView = false;
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
};
|
|
23
|
-
</script>
|
|
24
|
-
|
|
25
|
-
<template>
|
|
26
|
-
<gl-intersection-observer @appear="appear" @disappear="disappear">
|
|
27
|
-
<img :src="imageUrl" style="max-width: 100%; height: auto" />
|
|
28
|
-
</gl-intersection-observer>
|
|
29
|
-
</template>
|