@gitlab/ui 32.46.0 → 32.50.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/avatar_labeled/avatar_labeled.documentation.js +2 -9
- package/dist/components/base/avatars_inline/avatars_inline.documentation.js +2 -5
- package/dist/components/base/form/form_combobox/form_combobox.documentation.js +2 -9
- package/dist/components/base/form/form_combobox/form_combobox.js +5 -0
- package/dist/components/base/form/form_radio/form_radio.documentation.js +2 -33
- package/dist/components/base/form/form_radio/form_radio.js +15 -2
- package/dist/components/base/form/input_group_text/input_group_text.documentation.js +1 -5
- package/dist/components/base/keyset_pagination/keyset_pagination.documentation.js +2 -84
- package/dist/components/base/keyset_pagination/keyset_pagination.js +42 -0
- package/dist/components/base/modal/modal.documentation.js +2 -32
- package/dist/components/base/modal/modal.js +1 -1
- package/dist/components/charts/gauge/gauge.documentation.js +2 -6
- package/dist/components/charts/tooltip/tooltip.documentation.js +1 -5
- package/dist/components/utilities/intersperse/intersperse.documentation.js +2 -5
- package/documentation/documented_stories.js +10 -0
- package/package.json +3 -3
- package/src/components/base/avatar_labeled/avatar_labeled.documentation.js +0 -9
- package/src/components/base/avatar_labeled/avatar_labeled.md +2 -5
- package/src/components/base/avatar_labeled/avatar_labeled.stories.js +68 -62
- package/src/components/base/avatar_labeled/avatar_labeled.vue +1 -0
- package/src/components/base/avatars_inline/avatars_inline.documentation.js +0 -2
- package/src/components/base/avatars_inline/avatars_inline.md +1 -3
- package/src/components/base/avatars_inline/avatars_inline.stories.js +49 -44
- package/src/components/base/form/form_combobox/form_combobox.documentation.js +0 -8
- package/src/components/base/form/form_combobox/form_combobox.md +0 -2
- package/src/components/base/form/form_combobox/form_combobox.stories.js +30 -30
- package/src/components/base/form/form_combobox/form_combobox.vue +4 -0
- package/src/components/base/form/form_radio/form_radio.documentation.js +0 -31
- package/src/components/base/form/form_radio/form_radio.md +7 -14
- package/src/components/base/form/form_radio/form_radio.stories.js +40 -28
- package/src/components/base/form/form_radio/form_radio.vue +26 -1
- package/src/components/base/form/input_group_text/input_group_text.documentation.js +0 -3
- package/src/components/base/form/input_group_text/input_group_text.stories.js +24 -18
- package/src/components/base/keyset_pagination/keyset_pagination.documentation.js +0 -99
- package/src/components/base/keyset_pagination/keyset_pagination.md +0 -2
- package/src/components/base/keyset_pagination/keyset_pagination.stories.js +60 -58
- package/src/components/base/keyset_pagination/keyset_pagination.vue +35 -1
- package/src/components/base/modal/modal.documentation.js +0 -42
- package/src/components/base/modal/modal.md +2 -7
- package/src/components/base/modal/modal.stories.js +107 -85
- package/src/components/base/modal/modal.vue +20 -0
- package/src/components/charts/gauge/gauge.documentation.js +0 -3
- package/src/components/charts/gauge/gauge.md +0 -2
- package/src/components/charts/gauge/gauge.stories.js +70 -86
- package/src/components/charts/tooltip/tooltip.documentation.js +0 -3
- package/src/components/charts/tooltip/tooltip.stories.js +59 -44
- package/src/components/utilities/intersperse/intersperse.documentation.js +0 -2
- package/src/components/utilities/intersperse/intersperse.md +0 -2
- package/src/components/utilities/intersperse/intersperse.stories.js +38 -38
- package/dist/components/base/avatar_labeled/examples/avatar.labeled.example.js +0 -38
- package/dist/components/base/avatar_labeled/examples/avatar.labeled_badges.example.js +0 -38
- package/dist/components/base/avatar_labeled/examples/avatar.labeled_links.example.js +0 -38
- package/dist/components/base/avatar_labeled/examples/avatar.labeled_tooltip.example.js +0 -38
- package/dist/components/base/avatar_labeled/examples/index.js +0 -31
- package/dist/components/base/avatars_inline/examples/avatars.inline.example.js +0 -58
- package/dist/components/base/avatars_inline/examples/avatars.inline_large.example.js +0 -58
- package/dist/components/base/avatars_inline/examples/avatars.inline_links_and_tooltips.example.js +0 -70
- package/dist/components/base/avatars_inline/examples/avatars.inline_links_and_tooltips_badge.example.js +0 -70
- package/dist/components/base/avatars_inline/examples/index.js +0 -31
- package/dist/components/base/form/form_combobox/examples/form_combobox.basic.example.js +0 -50
- package/dist/components/base/form/form_combobox/examples/index.js +0 -13
- package/dist/components/base/form/form_radio/examples/form_radio.basic.example.js +0 -48
- package/dist/components/base/form/form_radio/examples/form_radio.checked_disabled.example.js +0 -48
- package/dist/components/base/form/form_radio/examples/index.js +0 -19
- package/dist/components/base/form/input_group_text/examples/index.js +0 -13
- package/dist/components/base/form/input_group_text/examples/input_group_text.basic.example.js +0 -38
- package/dist/components/base/keyset_pagination/examples/index.js +0 -37
- package/dist/components/base/keyset_pagination/examples/keyset_pagination.basic.example.js +0 -51
- package/dist/components/base/keyset_pagination/examples/keyset_pagination.events.example.js +0 -64
- package/dist/components/base/keyset_pagination/examples/keyset_pagination.internationalization.example.js +0 -59
- package/dist/components/base/keyset_pagination/examples/keyset_pagination.links.example.js +0 -51
- package/dist/components/base/keyset_pagination/examples/keyset_pagination.slots.example.js +0 -51
- package/dist/components/base/modal/examples/index.js +0 -31
- package/dist/components/base/modal/examples/modal.basic.example.js +0 -62
- package/dist/components/base/modal/examples/modal.disabled.example.js +0 -89
- package/dist/components/base/modal/examples/modal.sizes.example.js +0 -62
- package/dist/components/charts/gauge/examples/gauge.basic.example.js +0 -38
- package/dist/components/charts/gauge/examples/gauge.no_thresholds.example.js +0 -38
- package/dist/components/charts/gauge/examples/gauge.no_value.example.js +0 -38
- package/dist/components/charts/gauge/examples/gauge.with_text.example.js +0 -38
- package/dist/components/charts/gauge/examples/index.js +0 -31
- package/dist/components/charts/tooltip/examples/chart_tooltip.basic.example.js +0 -54
- package/dist/components/charts/tooltip/examples/index.js +0 -13
- package/dist/components/utilities/intersperse/examples/index.js +0 -31
- package/dist/components/utilities/intersperse/examples/intersperse.custom_last_separator.example.js +0 -38
- package/dist/components/utilities/intersperse/examples/intersperse.custom_last_separator_two_items.example.js +0 -38
- package/dist/components/utilities/intersperse/examples/intersperse.custom_separator.example.js +0 -38
- package/dist/components/utilities/intersperse/examples/intersperse.default.example.js +0 -38
- package/src/components/base/avatar_labeled/examples/avatar.labeled.example.vue +0 -8
- package/src/components/base/avatar_labeled/examples/avatar.labeled_badges.example.vue +0 -17
- package/src/components/base/avatar_labeled/examples/avatar.labeled_links.example.vue +0 -10
- package/src/components/base/avatar_labeled/examples/avatar.labeled_tooltip.example.vue +0 -10
- package/src/components/base/avatar_labeled/examples/index.js +0 -36
- package/src/components/base/avatars_inline/examples/avatars.inline.example.vue +0 -18
- package/src/components/base/avatars_inline/examples/avatars.inline_large.example.vue +0 -18
- package/src/components/base/avatars_inline/examples/avatars.inline_links_and_tooltips.example.vue +0 -24
- package/src/components/base/avatars_inline/examples/avatars.inline_links_and_tooltips_badge.example.vue +0 -31
- package/src/components/base/avatars_inline/examples/index.js +0 -36
- package/src/components/base/form/form_combobox/examples/form_combobox.basic.example.vue +0 -31
- package/src/components/base/form/form_combobox/examples/index.js +0 -15
- package/src/components/base/form/form_radio/examples/form_radio.basic.example.vue +0 -16
- package/src/components/base/form/form_radio/examples/form_radio.checked_disabled.example.vue +0 -13
- package/src/components/base/form/form_radio/examples/index.js +0 -22
- package/src/components/base/form/input_group_text/examples/index.js +0 -15
- package/src/components/base/form/input_group_text/examples/input_group_text.basic.example.vue +0 -3
- package/src/components/base/keyset_pagination/examples/index.js +0 -43
- package/src/components/base/keyset_pagination/examples/keyset_pagination.basic.example.vue +0 -16
- package/src/components/base/keyset_pagination/examples/keyset_pagination.events.example.vue +0 -29
- package/src/components/base/keyset_pagination/examples/keyset_pagination.internationalization.example.vue +0 -23
- package/src/components/base/keyset_pagination/examples/keyset_pagination.links.example.vue +0 -20
- package/src/components/base/keyset_pagination/examples/keyset_pagination.slots.example.vue +0 -23
- package/src/components/base/modal/examples/index.js +0 -39
- package/src/components/base/modal/examples/modal.basic.example.vue +0 -39
- package/src/components/base/modal/examples/modal.disabled.example.vue +0 -58
- package/src/components/base/modal/examples/modal.sizes.example.vue +0 -61
- package/src/components/charts/gauge/examples/gauge.basic.example.vue +0 -5
- package/src/components/charts/gauge/examples/gauge.no_thresholds.example.vue +0 -5
- package/src/components/charts/gauge/examples/gauge.no_value.example.vue +0 -5
- package/src/components/charts/gauge/examples/gauge.with_text.example.vue +0 -12
- package/src/components/charts/gauge/examples/index.js +0 -36
- package/src/components/charts/tooltip/examples/chart_tooltip.basic.example.vue +0 -32
- package/src/components/charts/tooltip/examples/index.js +0 -15
- package/src/components/utilities/intersperse/examples/index.js +0 -36
- package/src/components/utilities/intersperse/examples/intersperse.custom_last_separator.example.vue +0 -7
- package/src/components/utilities/intersperse/examples/intersperse.custom_last_separator_two_items.example.vue +0 -6
- package/src/components/utilities/intersperse/examples/intersperse.custom_separator.example.vue +0 -7
- package/src/components/utilities/intersperse/examples/intersperse.default.example.vue +0 -7
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import IntersperseCustomLastSeparator from './intersperse.custom_last_separator.example';
|
|
2
|
-
import IntersperseCustomLastSeparatorTwoItems from './intersperse.custom_last_separator_two_items.example';
|
|
3
|
-
import IntersperseCustomSeparator from './intersperse.custom_separator.example';
|
|
4
|
-
import Intersperse from './intersperse.default.example';
|
|
5
|
-
|
|
6
|
-
var index = [{
|
|
7
|
-
name: 'Basic',
|
|
8
|
-
items: [{
|
|
9
|
-
id: 'intersperse-default',
|
|
10
|
-
name: 'Default Intersperse',
|
|
11
|
-
description: 'Default intersperse usage',
|
|
12
|
-
component: Intersperse
|
|
13
|
-
}, {
|
|
14
|
-
id: 'intersperse-custom-separator',
|
|
15
|
-
name: 'Intersperse with custom separator',
|
|
16
|
-
description: 'Set a custom separator',
|
|
17
|
-
component: IntersperseCustomSeparator
|
|
18
|
-
}, {
|
|
19
|
-
id: 'intersperse-custom-last-separator',
|
|
20
|
-
name: 'Intersperse with custom last separator',
|
|
21
|
-
description: 'Set a custom last separator',
|
|
22
|
-
component: IntersperseCustomLastSeparator
|
|
23
|
-
}, {
|
|
24
|
-
id: 'intersperse-custom-last-separator-two-items',
|
|
25
|
-
name: 'Intersperse with custom last separator and two items',
|
|
26
|
-
description: 'Set a custom last separator on two items',
|
|
27
|
-
component: IntersperseCustomLastSeparatorTwoItems
|
|
28
|
-
}]
|
|
29
|
-
}];
|
|
30
|
-
|
|
31
|
-
export default index;
|
package/dist/components/utilities/intersperse/examples/intersperse.custom_last_separator.example.js
DELETED
|
@@ -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-intersperse',{attrs:{"last-separator":" and "}},[_c('span',[_vm._v("Item 1")]),_vm._v(" "),_c('span',[_vm._v("Item 2")]),_vm._v(" "),_c('span',[_vm._v("Item 3")])])};
|
|
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,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-intersperse',{attrs:{"last-separator":" and "}},[_c('span',[_vm._v("Item 1")]),_vm._v(" "),_c('span',[_vm._v("Item 2")])])};
|
|
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__;
|
package/dist/components/utilities/intersperse/examples/intersperse.custom_separator.example.js
DELETED
|
@@ -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-intersperse',{attrs:{"separator":"/"}},[_c('span',[_vm._v("Item 1")]),_vm._v(" "),_c('span',[_vm._v("Item 2")]),_vm._v(" "),_c('span',[_vm._v("Item 3")])])};
|
|
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,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-intersperse',[_c('span',[_vm._v("Item 1")]),_vm._v(" "),_c('span',[_vm._v("Item 2")]),_vm._v(" "),_c('span',[_vm._v("Item 3")])])};
|
|
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,17 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<gl-avatar-labeled
|
|
3
|
-
:size="32"
|
|
4
|
-
src="https://assets.gitlab-static.net/uploads/-/system/group/avatar/9970/logo-extra-whitespace.png?width=64"
|
|
5
|
-
label="GitLab User"
|
|
6
|
-
sub-label="gitlab"
|
|
7
|
-
>
|
|
8
|
-
<template #meta>
|
|
9
|
-
<div class="gl-p-1">
|
|
10
|
-
<gl-badge class="gl-display-flex!" size="sm" variant="info">2FA</gl-badge>
|
|
11
|
-
</div>
|
|
12
|
-
<div class="gl-p-1">
|
|
13
|
-
<gl-badge class="gl-display-flex!" size="sm" variant="danger">Blocked</gl-badge>
|
|
14
|
-
</div>
|
|
15
|
-
</template>
|
|
16
|
-
</gl-avatar-labeled>
|
|
17
|
-
</template>
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<gl-avatar-labeled
|
|
3
|
-
:size="32"
|
|
4
|
-
src="https://assets.gitlab-static.net/uploads/-/system/group/avatar/9970/logo-extra-whitespace.png?width=64"
|
|
5
|
-
label="GitLab User"
|
|
6
|
-
sub-label="gitlab@example.com"
|
|
7
|
-
label-link="#"
|
|
8
|
-
sub-label-link="mailto:#"
|
|
9
|
-
/>
|
|
10
|
-
</template>
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<gl-avatar-labeled
|
|
3
|
-
v-gl-tooltip="{ placement: 'bottom' }"
|
|
4
|
-
:size="32"
|
|
5
|
-
src="https://assets.gitlab-static.net/uploads/-/system/group/avatar/9970/logo-extra-whitespace.png?width=64"
|
|
6
|
-
label="GitLab User"
|
|
7
|
-
sub-label="gitlab"
|
|
8
|
-
title="Avatar labeled with tooltip"
|
|
9
|
-
/>
|
|
10
|
-
</template>
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import AvatarLabeledExample from './avatar.labeled.example.vue';
|
|
2
|
-
import AvatarLabeledBadgesExample from './avatar.labeled_badges.example.vue';
|
|
3
|
-
import AvatarLabeledSlotsExample from './avatar.labeled_links.example.vue';
|
|
4
|
-
import AvatarLabeledTooltipExample from './avatar.labeled_tooltip.example.vue';
|
|
5
|
-
|
|
6
|
-
export default [
|
|
7
|
-
{
|
|
8
|
-
name: 'Basic',
|
|
9
|
-
items: [
|
|
10
|
-
{
|
|
11
|
-
id: 'avatar-labeled',
|
|
12
|
-
name: 'Avatar Labeled',
|
|
13
|
-
description: 'Avatar with text labels',
|
|
14
|
-
component: AvatarLabeledExample,
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
id: 'avatar-labeled-tooltip',
|
|
18
|
-
name: 'With tooltip',
|
|
19
|
-
description: 'Avatar labeled with tooltip',
|
|
20
|
-
component: AvatarLabeledTooltipExample,
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
id: 'avatar-labeled-badges',
|
|
24
|
-
name: 'With badges',
|
|
25
|
-
description: 'Avatar labeled with badges',
|
|
26
|
-
component: AvatarLabeledBadgesExample,
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
id: 'avatar-labeled-links',
|
|
30
|
-
name: 'With label links',
|
|
31
|
-
description: 'Avatar labeled with links',
|
|
32
|
-
component: AvatarLabeledSlotsExample,
|
|
33
|
-
},
|
|
34
|
-
],
|
|
35
|
-
},
|
|
36
|
-
];
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
export default {
|
|
3
|
-
data() {
|
|
4
|
-
return {
|
|
5
|
-
avatars: [
|
|
6
|
-
{ src: 'https://picsum.photos/id/1005/24' },
|
|
7
|
-
{ src: 'https://picsum.photos/id/1006/24' },
|
|
8
|
-
{ src: 'https://picsum.photos/id/1009/24' },
|
|
9
|
-
{ src: 'https://picsum.photos/id/1011/24' },
|
|
10
|
-
{ src: 'https://picsum.photos/id/1012/24' },
|
|
11
|
-
],
|
|
12
|
-
};
|
|
13
|
-
},
|
|
14
|
-
};
|
|
15
|
-
</script>
|
|
16
|
-
<template>
|
|
17
|
-
<gl-avatars-inline :avatars="avatars" :collapsed="true" :avatar-size="24" :max-visible="2" />
|
|
18
|
-
</template>
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
export default {
|
|
3
|
-
data() {
|
|
4
|
-
return {
|
|
5
|
-
avatars: [
|
|
6
|
-
{ src: 'https://picsum.photos/id/1005/32' },
|
|
7
|
-
{ src: 'https://picsum.photos/id/1006/32' },
|
|
8
|
-
{ src: 'https://picsum.photos/id/1009/32' },
|
|
9
|
-
{ src: 'https://picsum.photos/id/1011/32' },
|
|
10
|
-
{ src: 'https://picsum.photos/id/1012/32' },
|
|
11
|
-
],
|
|
12
|
-
};
|
|
13
|
-
},
|
|
14
|
-
};
|
|
15
|
-
</script>
|
|
16
|
-
<template>
|
|
17
|
-
<gl-avatars-inline :avatars="avatars" :collapsed="true" :avatar-size="32" :max-visible="2" />
|
|
18
|
-
</template>
|
package/src/components/base/avatars_inline/examples/avatars.inline_links_and_tooltips.example.vue
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
export default {
|
|
3
|
-
data() {
|
|
4
|
-
return {
|
|
5
|
-
avatars: [
|
|
6
|
-
{ src: 'https://picsum.photos/id/1005/32', tooltip: 'Avatar 1', href: '//gitlab.com' },
|
|
7
|
-
{ src: 'https://picsum.photos/id/1006/32', tooltip: 'Avatar 2', href: '//gitlab.com' },
|
|
8
|
-
{ src: 'https://picsum.photos/id/1009/32', tooltip: 'Avatar 3', href: '//gitlab.com' },
|
|
9
|
-
{ src: 'https://picsum.photos/id/1011/32', tooltip: 'Avatar 4', href: '//gitlab.com' },
|
|
10
|
-
{ src: 'https://picsum.photos/id/1012/32', tooltip: 'Avatar 5', href: '//gitlab.com' },
|
|
11
|
-
],
|
|
12
|
-
};
|
|
13
|
-
},
|
|
14
|
-
};
|
|
15
|
-
</script>
|
|
16
|
-
<template>
|
|
17
|
-
<gl-avatars-inline :avatars="avatars" :collapsed="true" :avatar-size="32" :max-visible="2">
|
|
18
|
-
<template #avatar="{ avatar }">
|
|
19
|
-
<gl-avatar-link v-gl-tooltip target="blank" :href="avatar.href" :title="avatar.tooltip">
|
|
20
|
-
<gl-avatar :src="avatar.src" :size="32" />
|
|
21
|
-
</gl-avatar-link>
|
|
22
|
-
</template>
|
|
23
|
-
</gl-avatars-inline>
|
|
24
|
-
</template>
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
export default {
|
|
3
|
-
data() {
|
|
4
|
-
return {
|
|
5
|
-
avatars: [
|
|
6
|
-
{ src: 'https://picsum.photos/id/1005/32', tooltip: 'Avatar 1', href: '//gitlab.com' },
|
|
7
|
-
{ src: 'https://picsum.photos/id/1006/32', tooltip: 'Avatar 2', href: '//gitlab.com' },
|
|
8
|
-
{ src: 'https://picsum.photos/id/1009/32', tooltip: 'Avatar 3', href: '//gitlab.com' },
|
|
9
|
-
{ src: 'https://picsum.photos/id/1011/32', tooltip: 'Avatar 4', href: '//gitlab.com' },
|
|
10
|
-
{ src: 'https://picsum.photos/id/1012/32', tooltip: 'Avatar 5', href: '//gitlab.com' },
|
|
11
|
-
],
|
|
12
|
-
};
|
|
13
|
-
},
|
|
14
|
-
};
|
|
15
|
-
</script>
|
|
16
|
-
<template>
|
|
17
|
-
<gl-avatars-inline
|
|
18
|
-
:avatars="avatars"
|
|
19
|
-
:collapsed="true"
|
|
20
|
-
:avatar-size="32"
|
|
21
|
-
:max-visible="2"
|
|
22
|
-
badge-tooltip-prop="tooltip"
|
|
23
|
-
:badge-tooltip-max-chars="20"
|
|
24
|
-
>
|
|
25
|
-
<template #avatar="{ avatar }">
|
|
26
|
-
<gl-avatar-link v-gl-tooltip target="_blank" :href="avatar.href" :title="avatar.tooltip">
|
|
27
|
-
<gl-avatar :src="avatar.src" :size="32" />
|
|
28
|
-
</gl-avatar-link>
|
|
29
|
-
</template>
|
|
30
|
-
</gl-avatars-inline>
|
|
31
|
-
</template>
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import AvatarsInlineExample from './avatars.inline.example.vue';
|
|
2
|
-
import AvatarsInlineLargeExample from './avatars.inline_large.example.vue';
|
|
3
|
-
import AvatarsInlineLinksAndTooltipsExample from './avatars.inline_links_and_tooltips.example.vue';
|
|
4
|
-
import AvatarsInlineLinksAndTooltipsBadgeExample from './avatars.inline_links_and_tooltips_badge.example.vue';
|
|
5
|
-
|
|
6
|
-
export default [
|
|
7
|
-
{
|
|
8
|
-
name: 'Basic',
|
|
9
|
-
items: [
|
|
10
|
-
{
|
|
11
|
-
id: 'avatars-inline',
|
|
12
|
-
name: 'Avatars Inline',
|
|
13
|
-
description: 'Inline Avatars',
|
|
14
|
-
component: AvatarsInlineExample,
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
id: 'avatars-inline-large',
|
|
18
|
-
name: 'Avatars Inline Large',
|
|
19
|
-
description: 'Inline Avatars Large',
|
|
20
|
-
component: AvatarsInlineLargeExample,
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
id: 'avatars-inline-links-and-tooltips',
|
|
24
|
-
name: 'Avatars inline with links and tooltips',
|
|
25
|
-
description: 'Inline Avatars with Links and Tooltips',
|
|
26
|
-
component: AvatarsInlineLinksAndTooltipsExample,
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
id: 'avatars-inline-links-and-tooltips-badge',
|
|
30
|
-
name: 'Avatars inline with tooltip on badge',
|
|
31
|
-
description: 'Inline Avatars with Tooltip on Badge',
|
|
32
|
-
component: AvatarsInlineLinksAndTooltipsBadgeExample,
|
|
33
|
-
},
|
|
34
|
-
],
|
|
35
|
-
},
|
|
36
|
-
];
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
export default {
|
|
3
|
-
tokens: [
|
|
4
|
-
'giraffe',
|
|
5
|
-
'dog',
|
|
6
|
-
'dodo',
|
|
7
|
-
'komodo dragon',
|
|
8
|
-
'hippo',
|
|
9
|
-
'platypus',
|
|
10
|
-
'jackalope',
|
|
11
|
-
'quetzal',
|
|
12
|
-
'badger',
|
|
13
|
-
'vicuña',
|
|
14
|
-
'whale',
|
|
15
|
-
'xenarthra',
|
|
16
|
-
],
|
|
17
|
-
data() {
|
|
18
|
-
return {
|
|
19
|
-
inputVal: '',
|
|
20
|
-
};
|
|
21
|
-
},
|
|
22
|
-
};
|
|
23
|
-
</script>
|
|
24
|
-
|
|
25
|
-
<template>
|
|
26
|
-
<gl-form-combobox
|
|
27
|
-
v-model="inputVal"
|
|
28
|
-
:token-list="$options.tokens"
|
|
29
|
-
label-text="Animals We Tolerate"
|
|
30
|
-
/>
|
|
31
|
-
</template>
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
export default {
|
|
3
|
-
data() {
|
|
4
|
-
return {
|
|
5
|
-
selected: 'one',
|
|
6
|
-
};
|
|
7
|
-
},
|
|
8
|
-
};
|
|
9
|
-
</script>
|
|
10
|
-
|
|
11
|
-
<template>
|
|
12
|
-
<div>
|
|
13
|
-
<gl-form-radio v-model="selected" value="one">One</gl-form-radio>
|
|
14
|
-
<gl-form-radio v-model="selected" value="two">Two</gl-form-radio>
|
|
15
|
-
</div>
|
|
16
|
-
</template>
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import FormRadioBasic from './form_radio.basic.example.vue';
|
|
2
|
-
import FormRadioCheckedDisabled from './form_radio.checked_disabled.example.vue';
|
|
3
|
-
|
|
4
|
-
export default [
|
|
5
|
-
{
|
|
6
|
-
name: 'Basic',
|
|
7
|
-
items: [
|
|
8
|
-
{
|
|
9
|
-
id: 'form-radio-basic',
|
|
10
|
-
name: 'Basic',
|
|
11
|
-
description: 'Basic GlFormRadio',
|
|
12
|
-
component: FormRadioBasic,
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
id: 'form-radio-checked-disabled',
|
|
16
|
-
name: 'Checked and disabled radio',
|
|
17
|
-
description: 'Checked and disabled GlFormRadio',
|
|
18
|
-
component: FormRadioCheckedDisabled,
|
|
19
|
-
},
|
|
20
|
-
],
|
|
21
|
-
},
|
|
22
|
-
];
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import BasicExample from './input_group_text.basic.example.vue';
|
|
2
|
-
|
|
3
|
-
export default [
|
|
4
|
-
{
|
|
5
|
-
name: 'Basic',
|
|
6
|
-
items: [
|
|
7
|
-
{
|
|
8
|
-
id: 'input-group-text-basic',
|
|
9
|
-
name: 'Basic',
|
|
10
|
-
description: 'Basic Input Group Text',
|
|
11
|
-
component: BasicExample,
|
|
12
|
-
},
|
|
13
|
-
],
|
|
14
|
-
},
|
|
15
|
-
];
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import BasicExample from './keyset_pagination.basic.example.vue';
|
|
2
|
-
import EventsExample from './keyset_pagination.events.example.vue';
|
|
3
|
-
import I18nExample from './keyset_pagination.internationalization.example.vue';
|
|
4
|
-
import LinksExample from './keyset_pagination.links.example.vue';
|
|
5
|
-
import SlotsExample from './keyset_pagination.slots.example.vue';
|
|
6
|
-
|
|
7
|
-
export default [
|
|
8
|
-
{
|
|
9
|
-
name: 'Usage examples',
|
|
10
|
-
items: [
|
|
11
|
-
{
|
|
12
|
-
id: 'keyset-pagination-basic',
|
|
13
|
-
name: 'Basic',
|
|
14
|
-
description: 'Basic Cursor Pagination',
|
|
15
|
-
component: BasicExample,
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
id: 'keyset-pagination-slots',
|
|
19
|
-
name: 'Custom button slots',
|
|
20
|
-
description: 'Custom "Prev" or "Next" button content',
|
|
21
|
-
component: SlotsExample,
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
id: 'keyset-pagination-links',
|
|
25
|
-
name: 'Link buttons',
|
|
26
|
-
description: '"Prev" and "Next" buttons as link buttons',
|
|
27
|
-
component: LinksExample,
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
id: 'keyset-pagination-events',
|
|
31
|
-
name: 'Button events',
|
|
32
|
-
description: '"prev" and "next" events',
|
|
33
|
-
component: EventsExample,
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
id: 'keyset-pagination-i18n',
|
|
37
|
-
name: 'Internationalization',
|
|
38
|
-
description: 'Internationalizing the "Prev" and "Next" button text',
|
|
39
|
-
component: I18nExample,
|
|
40
|
-
},
|
|
41
|
-
],
|
|
42
|
-
},
|
|
43
|
-
];
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
/* eslint-disable no-alert */
|
|
3
|
-
export default {
|
|
4
|
-
data() {
|
|
5
|
-
return {
|
|
6
|
-
pageInfo: {
|
|
7
|
-
startCursor:
|
|
8
|
-
'eyJpZCI6IjE3NTg1ODciLCJyZWxlYXNlZF9hdCI6IjIwMjAtMDgtMjAgMTQ6NDc6MDguNTQ1MjE1MDAwIFVUQyJ9',
|
|
9
|
-
endCursor:
|
|
10
|
-
'eyJpZCI6IjEyNjcxNzkiLCJyZWxlYXNlZF9hdCI6IjIwMjAtMDItMTkgMjE6MDA6MDUuODU5NTQ2MDAwIFVUQyJ9',
|
|
11
|
-
hasPreviousPage: true,
|
|
12
|
-
hasNextPage: true,
|
|
13
|
-
},
|
|
14
|
-
};
|
|
15
|
-
},
|
|
16
|
-
methods: {
|
|
17
|
-
onPrev(startCursor) {
|
|
18
|
-
alert(`"prev" event fired with start cursor: "${startCursor}"`);
|
|
19
|
-
},
|
|
20
|
-
onNext(endCursor) {
|
|
21
|
-
alert(`"next" event fired with end cursor: "${endCursor}"`);
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
};
|
|
25
|
-
</script>
|
|
26
|
-
|
|
27
|
-
<template>
|
|
28
|
-
<gl-keyset-pagination v-bind="pageInfo" @prev="onPrev($event)" @next="onNext($event)" />
|
|
29
|
-
</template>
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
export default {
|
|
3
|
-
data() {
|
|
4
|
-
return {
|
|
5
|
-
pageInfo: {
|
|
6
|
-
hasPreviousPage: true,
|
|
7
|
-
hasNextPage: true,
|
|
8
|
-
},
|
|
9
|
-
};
|
|
10
|
-
},
|
|
11
|
-
methods: {
|
|
12
|
-
// Stub version of our i18n function in GitLab
|
|
13
|
-
// eslint-disable-next-line no-underscore-dangle
|
|
14
|
-
__(text) {
|
|
15
|
-
return text;
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
};
|
|
19
|
-
</script>
|
|
20
|
-
|
|
21
|
-
<template>
|
|
22
|
-
<gl-keyset-pagination v-bind="pageInfo" :prev-text="__('Prev')" :next-text="__('Next')" />
|
|
23
|
-
</template>
|