@gitlab/ui 32.43.3 → 32.44.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 +7 -0
- package/dist/components/base/avatar/avatar.documentation.js +2 -5
- package/dist/components/base/avatar_link/avatar_link.documentation.js +2 -5
- package/dist/components/base/form/form_input/form_input.documentation.js +2 -27
- package/dist/components/base/form/form_input/form_input.js +23 -6
- package/dist/components/base/form/form_text/form_text.documentation.js +1 -4
- package/dist/components/base/pagination/pagination.documentation.js +2 -85
- package/dist/components/base/pagination/pagination.js +76 -0
- package/dist/components/base/segmented_control/segmented_control.documentation.js +2 -14
- package/dist/components/base/segmented_control/segmented_control.js +6 -0
- package/documentation/documented_stories.js +5 -0
- package/package.json +11 -10
- package/src/components/base/alert/alert.spec.js +2 -2
- package/src/components/base/avatar/avatar.documentation.js +0 -2
- package/src/components/base/avatar/avatar.md +0 -2
- package/src/components/base/avatar/avatar.spec.js +1 -2
- package/src/components/base/avatar/avatar.stories.js +88 -101
- package/src/components/base/avatar_link/avatar_link.documentation.js +0 -2
- package/src/components/base/avatar_link/avatar_link.md +4 -7
- package/src/components/base/avatar_link/avatar_link.stories.js +66 -54
- package/src/components/base/filtered_search/filtered_search.spec.js +35 -35
- package/src/components/base/filtered_search/filtered_search_term.spec.js +1 -1
- package/src/components/base/form/form_input/form_input.documentation.js +0 -31
- package/src/components/base/form/form_input/form_input.md +0 -2
- package/src/components/base/form/form_input/form_input.stories.js +50 -42
- package/src/components/base/form/form_input/form_input.vue +23 -6
- package/src/components/base/form/form_input_group/form_input_group.spec.js +1 -3
- package/src/components/base/form/form_text/form_text.documentation.js +0 -2
- package/src/components/base/form/form_text/form_text.md +1 -3
- package/src/components/base/form/form_text/form_text.stories.js +20 -8
- package/src/components/base/icon/icon.spec.js +1 -4
- package/src/components/base/infinite_scroll/infinite_scroll.spec.js +1 -4
- package/src/components/base/modal/modal.spec.js +19 -23
- package/src/components/base/paginated_list/__snapshots__/paginated_list.spec.js.snap +10 -10
- package/src/components/base/pagination/pagination.documentation.js +0 -100
- package/src/components/base/pagination/pagination.md +5 -9
- package/src/components/base/pagination/pagination.spec.js +1 -4
- package/src/components/base/pagination/pagination.stories.js +109 -117
- package/src/components/base/pagination/pagination.vue +85 -0
- package/src/components/base/search_box_by_click/search_box_by_click.spec.js +1 -5
- package/src/components/base/segmented_control/segmented_control.documentation.js +0 -15
- package/src/components/base/segmented_control/segmented_control.md +0 -2
- package/src/components/base/segmented_control/segmented_control.stories.js +46 -36
- package/src/components/base/segmented_control/segmented_control.vue +5 -0
- package/src/components/base/sorting/sorting.spec.js +1 -4
- package/src/components/base/toast/toast.spec.js +4 -6
- package/src/components/base/token/token.spec.js +1 -4
- package/src/components/base/token_selector/token_container.spec.js +2 -3
- package/src/components/charts/gauge/gauge.spec.js +7 -7
- package/src/components/charts/sparkline/sparkline.spec.js +1 -4
- package/src/components/utilities/friendly_wrap/friendly_wrap.spec.js +1 -4
- package/src/components/utilities/intersperse/intersperse.spec.js +1 -4
- package/src/directives/hover_load/hover_load.spec.js +2 -13
- package/src/directives/outside/outside.spec.js +1 -6
- package/src/directives/resize_observer/resize_observer.spec.js +4 -10
- package/src/scss/storybook.scss +8 -0
- package/dist/components/base/avatar/examples/avatar.fallback.example.js +0 -38
- package/dist/components/base/avatar/examples/avatar.image.example.js +0 -38
- package/dist/components/base/avatar/examples/avatar.rect.example.js +0 -38
- package/dist/components/base/avatar/examples/avatar.tooltip.example.js +0 -38
- package/dist/components/base/avatar/examples/index.js +0 -31
- package/dist/components/base/avatar_link/examples/avatar.link.example.js +0 -38
- package/dist/components/base/avatar_link/examples/index.js +0 -13
- package/dist/components/base/form/form_input/examples/form_input/form_input.text.example.js +0 -38
- package/dist/components/base/form/form_input/examples/form_input/form_input.text_disabled.example.js +0 -38
- package/dist/components/base/form/form_input/examples/form_input/form_input.text_reactive.example.js +0 -57
- package/dist/components/base/form/form_input/examples/form_input/index.js +0 -22
- package/dist/components/base/form/form_text/examples/form_text.basic.example.js +0 -38
- package/dist/components/base/form/form_text/examples/index.js +0 -13
- package/dist/components/base/pagination/examples/index.js +0 -37
- package/dist/components/base/pagination/examples/pagination.basic.example.js +0 -45
- package/dist/components/base/pagination/examples/pagination.compact.example.js +0 -58
- package/dist/components/base/pagination/examples/pagination.double_truncation.example.js +0 -45
- package/dist/components/base/pagination/examples/pagination.event.example.js +0 -51
- package/dist/components/base/pagination/examples/pagination.links.example.js +0 -45
- package/dist/components/base/segmented_control/examples/index.js +0 -19
- package/dist/components/base/segmented_control/examples/segmented_control.basic.example.js +0 -65
- package/dist/components/base/segmented_control/examples/segmented_control.whitespace.example.js +0 -55
- package/src/components/base/avatar/examples/avatar.fallback.example.vue +0 -3
- package/src/components/base/avatar/examples/avatar.image.example.vue +0 -3
- package/src/components/base/avatar/examples/avatar.rect.example.vue +0 -6
- package/src/components/base/avatar/examples/avatar.tooltip.example.vue +0 -3
- package/src/components/base/avatar/examples/index.js +0 -36
- package/src/components/base/avatar_link/examples/avatar.link.example.vue +0 -5
- package/src/components/base/avatar_link/examples/index.js +0 -15
- package/src/components/base/form/form_input/examples/form_input/form_input.text.example.vue +0 -3
- package/src/components/base/form/form_input/examples/form_input/form_input.text_disabled.example.vue +0 -3
- package/src/components/base/form/form_input/examples/form_input/form_input.text_reactive.example.vue +0 -24
- package/src/components/base/form/form_input/examples/form_input/index.js +0 -26
- package/src/components/base/form/form_text/examples/form_text.basic.example.vue +0 -5
- package/src/components/base/form/form_text/examples/index.js +0 -15
- package/src/components/base/pagination/examples/index.js +0 -43
- package/src/components/base/pagination/examples/pagination.basic.example.vue +0 -17
- package/src/components/base/pagination/examples/pagination.compact.example.vue +0 -33
- package/src/components/base/pagination/examples/pagination.double_truncation.example.vue +0 -11
- package/src/components/base/pagination/examples/pagination.event.example.vue +0 -26
- package/src/components/base/pagination/examples/pagination.links.example.vue +0 -18
- package/src/components/base/segmented_control/examples/index.js +0 -22
- package/src/components/base/segmented_control/examples/segmented_control.basic.example.vue +0 -19
- package/src/components/base/segmented_control/examples/segmented_control.whitespace.example.vue +0 -18
|
@@ -40,12 +40,12 @@ describe('GlTokenContainer', () => {
|
|
|
40
40
|
};
|
|
41
41
|
|
|
42
42
|
const findTokenByName = (name) => {
|
|
43
|
-
const tokenWrappers = wrapper.
|
|
43
|
+
const tokenWrappers = wrapper.findAll('[role=option]');
|
|
44
44
|
|
|
45
45
|
return tokenWrappers.wrappers.find((tokenWrapper) => tokenWrapper.text() === name);
|
|
46
46
|
};
|
|
47
47
|
|
|
48
|
-
const findTokenContainer = () => wrapper.
|
|
48
|
+
const findTokenContainer = () => wrapper.findComponent({ ref: 'tokenContainer' });
|
|
49
49
|
|
|
50
50
|
const blurActiveElement = () => document.activeElement?.blur?.();
|
|
51
51
|
|
|
@@ -173,7 +173,6 @@ describe('GlTokenContainer', () => {
|
|
|
173
173
|
describe('when escape key is pressed', () => {
|
|
174
174
|
it('fires `cancel-focus` event', async () => {
|
|
175
175
|
await setup(0, keyboard.escape);
|
|
176
|
-
|
|
177
176
|
expect(wrapper.emitted('cancel-focus')).toBeTruthy();
|
|
178
177
|
});
|
|
179
178
|
});
|
|
@@ -108,7 +108,7 @@ describe('gauge component', () => {
|
|
|
108
108
|
createComponent({ value: 'not a number' });
|
|
109
109
|
|
|
110
110
|
return wrapper.vm.$nextTick().then(() => {
|
|
111
|
-
|
|
111
|
+
expect(wrapper).toHaveLoggedVueErrors();
|
|
112
112
|
expect(findDetailText()).toBe(placeholder);
|
|
113
113
|
});
|
|
114
114
|
});
|
|
@@ -196,7 +196,7 @@ describe('gauge component', () => {
|
|
|
196
196
|
it('if some of them are invalid values they are skipped', () => {
|
|
197
197
|
createComponent({ thresholds: [undefined, 95, 'a string', NaN, 50, 15, 25] });
|
|
198
198
|
|
|
199
|
-
|
|
199
|
+
expect(wrapper).toHaveLoggedVueErrors();
|
|
200
200
|
|
|
201
201
|
expect(findAxisColor().length).toBe(3);
|
|
202
202
|
});
|
|
@@ -215,7 +215,7 @@ describe('gauge component', () => {
|
|
|
215
215
|
it('when some values are invalid', () => {
|
|
216
216
|
createComponent({ thresholds: [NaN, 95, undefined, 'a string', 50, 15, 25] });
|
|
217
217
|
|
|
218
|
-
|
|
218
|
+
expect(wrapper).toHaveLoggedVueErrors();
|
|
219
219
|
|
|
220
220
|
expect(findAxisColor().length).toBe(3);
|
|
221
221
|
expect(findAxisColor()[0]).toEqual([0.5, gaugeSafeHues[0]]);
|
|
@@ -235,12 +235,12 @@ describe('gauge component', () => {
|
|
|
235
235
|
});
|
|
236
236
|
|
|
237
237
|
describe('when thresholds that are not numbers are set, they will not show on the arc', () => {
|
|
238
|
-
beforeEach(() => {
|
|
238
|
+
beforeEach(async () => {
|
|
239
239
|
createComponent({ thresholds: ['not a number', NaN, undefined] });
|
|
240
240
|
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
241
|
+
await wrapper.vm.$nextTick();
|
|
242
|
+
// eslint-disable-next-line jest/no-standalone-expect
|
|
243
|
+
expect(wrapper).toHaveLoggedVueErrors();
|
|
244
244
|
});
|
|
245
245
|
|
|
246
246
|
it('axis has a single color set', () => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { shallowMount
|
|
1
|
+
import { shallowMount } from '@vue/test-utils';
|
|
2
2
|
import Chart from '../chart/chart.vue';
|
|
3
3
|
import SparklineChart from './sparkline.vue';
|
|
4
4
|
import { waitForAnimationFrame } from '~/utils/test_utils';
|
|
@@ -19,14 +19,11 @@ jest.mock('~/directives/resize_observer/resize_observer', () => ({
|
|
|
19
19
|
},
|
|
20
20
|
}));
|
|
21
21
|
|
|
22
|
-
const localVue = createLocalVue();
|
|
23
|
-
|
|
24
22
|
describe('sparkline chart component', () => {
|
|
25
23
|
let wrapper;
|
|
26
24
|
let componentOptions;
|
|
27
25
|
const factory = () => {
|
|
28
26
|
componentOptions = {
|
|
29
|
-
localVue,
|
|
30
27
|
propsData: {
|
|
31
28
|
data: [[]],
|
|
32
29
|
variant: null,
|
|
@@ -115,12 +115,9 @@ describe('Friendly wrap component', () => {
|
|
|
115
115
|
});
|
|
116
116
|
|
|
117
117
|
// Assert prop validation failed
|
|
118
|
-
expect(
|
|
118
|
+
expect(wrapper).toHaveLoggedVueErrors();
|
|
119
119
|
|
|
120
120
|
// But it still rendered
|
|
121
121
|
expect(wrapper.text()).toBe('');
|
|
122
|
-
|
|
123
|
-
// Prevent test failure due to console.error calls
|
|
124
|
-
global.console.error.mockReset();
|
|
125
122
|
});
|
|
126
123
|
});
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
import { shallowMount
|
|
1
|
+
import { shallowMount } from '@vue/test-utils';
|
|
2
2
|
import Intersperse from './intersperse.vue';
|
|
3
3
|
|
|
4
|
-
const localVue = createLocalVue();
|
|
5
|
-
|
|
6
4
|
describe('Intersperse Component', () => {
|
|
7
5
|
let wrapper;
|
|
8
6
|
|
|
9
7
|
const createComponent = (defaultSlot = [], options = {}) => {
|
|
10
8
|
wrapper = shallowMount(Intersperse, {
|
|
11
|
-
localVue,
|
|
12
9
|
slots: {
|
|
13
10
|
default: defaultSlot,
|
|
14
11
|
},
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { shallowMount
|
|
1
|
+
import { shallowMount } from '@vue/test-utils';
|
|
2
2
|
import { HoverLoadDirective as hoverLoad } from './hover_load';
|
|
3
3
|
|
|
4
4
|
describe('hover load directive', () => {
|
|
5
5
|
let wrapper;
|
|
6
|
-
const localVue = createLocalVue();
|
|
7
6
|
const findTarget = () => wrapper.find('.target');
|
|
8
7
|
|
|
9
8
|
const createComponent = (handleLoad) => {
|
|
@@ -19,7 +18,7 @@ describe('hover load directive', () => {
|
|
|
19
18
|
template: `<div v-hover-load="handleLoad" class="target"></div>`,
|
|
20
19
|
};
|
|
21
20
|
|
|
22
|
-
wrapper = shallowMount(component
|
|
21
|
+
wrapper = shallowMount(component);
|
|
23
22
|
};
|
|
24
23
|
|
|
25
24
|
afterEach(() => {
|
|
@@ -48,16 +47,6 @@ describe('hover load directive', () => {
|
|
|
48
47
|
}
|
|
49
48
|
);
|
|
50
49
|
|
|
51
|
-
it.each([3, '', undefined, null, false, {}, []])(
|
|
52
|
-
'throws if the handler is %p instead of a function',
|
|
53
|
-
(directiveValue) => {
|
|
54
|
-
// we are going to throw, so we need to suppress error messages in jest output
|
|
55
|
-
jest.spyOn(global.console, 'error').mockImplementation(() => {});
|
|
56
|
-
|
|
57
|
-
expect(() => createComponent(directiveValue)).toThrow(TypeError);
|
|
58
|
-
}
|
|
59
|
-
);
|
|
60
|
-
|
|
61
50
|
it('cleans up the mouseover event when component is destroyed', () => {
|
|
62
51
|
createComponent(jest.fn());
|
|
63
52
|
|
|
@@ -121,9 +121,6 @@ describe('outside directive', () => {
|
|
|
121
121
|
|
|
122
122
|
expect(global.console).toHaveLoggedVueErrors();
|
|
123
123
|
expect(document.addEventListener).not.toHaveBeenCalled();
|
|
124
|
-
|
|
125
|
-
// Prevent test failure due to console.error calls
|
|
126
|
-
global.console.error.mockReset();
|
|
127
124
|
});
|
|
128
125
|
|
|
129
126
|
it('attaches the global listener on first initialisation', async () => {
|
|
@@ -212,9 +209,6 @@ describe('outside directive', () => {
|
|
|
212
209
|
find('outside').trigger('click');
|
|
213
210
|
|
|
214
211
|
expect(onClick.mock.calls).toEqual([]);
|
|
215
|
-
|
|
216
|
-
// Prevent test failure due to console.error calls
|
|
217
|
-
global.console.error.mockReset();
|
|
218
212
|
}
|
|
219
213
|
);
|
|
220
214
|
});
|
|
@@ -313,6 +307,7 @@ describe('outside directive', () => {
|
|
|
313
307
|
throw new Error('mock error');
|
|
314
308
|
});
|
|
315
309
|
|
|
310
|
+
jest.spyOn(global.console, 'error');
|
|
316
311
|
await createComponent({
|
|
317
312
|
methods: {
|
|
318
313
|
onClickThrow,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { shallowMount
|
|
1
|
+
import { shallowMount } from '@vue/test-utils';
|
|
2
2
|
import { GlResizeObserverDirective } from './resize_observer';
|
|
3
3
|
import { useMockResizeObserver } from '~helpers/mock_dom_observer';
|
|
4
4
|
|
|
@@ -6,8 +6,6 @@ describe('resize observer directive', () => {
|
|
|
6
6
|
const { trigger, observersCount, observesElement } = useMockResizeObserver();
|
|
7
7
|
|
|
8
8
|
const mockHandleResize = jest.fn();
|
|
9
|
-
|
|
10
|
-
const localVue = createLocalVue();
|
|
11
9
|
let wrapper;
|
|
12
10
|
|
|
13
11
|
const createComponent = ({ template, data = {} } = {}) => {
|
|
@@ -26,7 +24,7 @@ describe('resize observer directive', () => {
|
|
|
26
24
|
},
|
|
27
25
|
};
|
|
28
26
|
|
|
29
|
-
wrapper = shallowMount(component
|
|
27
|
+
wrapper = shallowMount(component);
|
|
30
28
|
};
|
|
31
29
|
|
|
32
30
|
it('shares one observer between multiple directive instances', () => {
|
|
@@ -102,11 +100,6 @@ describe('resize observer directive', () => {
|
|
|
102
100
|
});
|
|
103
101
|
|
|
104
102
|
describe('check directive value', () => {
|
|
105
|
-
afterEach(() => {
|
|
106
|
-
// we are going to throw, so we need to suppress Vue error messages in jest output
|
|
107
|
-
global.console.error.mockReset();
|
|
108
|
-
});
|
|
109
|
-
|
|
110
103
|
it.each([3, '', undefined, null, false, {}, []])(
|
|
111
104
|
'throws if the handler is %p instead of a function',
|
|
112
105
|
(directiveValue) => {
|
|
@@ -123,8 +116,9 @@ describe('resize observer directive', () => {
|
|
|
123
116
|
};
|
|
124
117
|
|
|
125
118
|
expect(() => {
|
|
126
|
-
wrapper = shallowMount(testComponentWithoutHandler
|
|
119
|
+
wrapper = shallowMount(testComponentWithoutHandler);
|
|
127
120
|
}).toThrow(TypeError);
|
|
121
|
+
expect(wrapper).toHaveLoggedVueErrors();
|
|
128
122
|
}
|
|
129
123
|
);
|
|
130
124
|
});
|
package/src/scss/storybook.scss
CHANGED
|
@@ -12,3 +12,11 @@
|
|
|
12
12
|
@import 'utilities';
|
|
13
13
|
|
|
14
14
|
@import 'components';
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Custom padding for docs pages. This improves the integration in Pajamas pages.
|
|
18
|
+
*/
|
|
19
|
+
.sbdocs-wrapper {
|
|
20
|
+
padding-top: $gl-spacing-scale-2 !important;
|
|
21
|
+
padding-bottom: 0 !important;
|
|
22
|
+
}
|
|
@@ -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-avatar',{attrs:{"entity-name":"Some Project","shape":"rect"}})};
|
|
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-avatar',{attrs:{"src":"https://about.gitlab.com/images/press/gitlab-summit-south-africa.jpg"}})};
|
|
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-avatar',{attrs:{"src":"https://about.gitlab.com/images/press/gitlab-summit-south-africa.jpg","shape":"rect"}})};
|
|
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-avatar',{directives:[{name:"gl-tooltip",rawName:"v-gl-tooltip"}],attrs:{"entity-name":"Some Project","title":"Some Project","shape":"rect"}})};
|
|
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,31 +0,0 @@
|
|
|
1
|
-
import AvatarProjectFallbackExample from './avatar.fallback.example';
|
|
2
|
-
import AvatarImageExample from './avatar.image.example';
|
|
3
|
-
import AvatarRectExample from './avatar.rect.example';
|
|
4
|
-
import AvatarTooltipExample from './avatar.tooltip.example';
|
|
5
|
-
|
|
6
|
-
var index = [{
|
|
7
|
-
name: 'Basic',
|
|
8
|
-
items: [{
|
|
9
|
-
id: 'avatar-image',
|
|
10
|
-
name: 'Default Image',
|
|
11
|
-
description: 'Avatar with an image',
|
|
12
|
-
component: AvatarImageExample
|
|
13
|
-
}, {
|
|
14
|
-
id: 'avatar-image-rect',
|
|
15
|
-
name: 'Rectangular Image',
|
|
16
|
-
description: 'Avatar with a rectangular image',
|
|
17
|
-
component: AvatarRectExample
|
|
18
|
-
}, {
|
|
19
|
-
id: 'avatar-project-fallback',
|
|
20
|
-
name: 'Project/Group Fallback',
|
|
21
|
-
description: 'A fallback for projects or groups without an image',
|
|
22
|
-
component: AvatarProjectFallbackExample
|
|
23
|
-
}, {
|
|
24
|
-
id: 'avatar-with-tooltip',
|
|
25
|
-
name: 'With tooltip',
|
|
26
|
-
description: 'Avatar that displays a tooltip on hover',
|
|
27
|
-
component: AvatarTooltipExample
|
|
28
|
-
}]
|
|
29
|
-
}];
|
|
30
|
-
|
|
31
|
-
export default index;
|
|
@@ -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-avatar-link',{attrs:{"target":"blank","href":"https://gitlab.com/gitlab-org/gitlab"}},[_c('gl-avatar-labeled',{attrs:{"entity-name":"GitLab","label":"GitLab User","sub-label":"@gitlab","size":32}})],1)};
|
|
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-form-input',{attrs:{"type":"text"}})};
|
|
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/base/form/form_input/examples/form_input/form_input.text_disabled.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-form-input',{attrs:{"type":"text","disabled":true,"value":"some text"}})};
|
|
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/base/form/form_input/examples/form_input/form_input.text_reactive.example.js
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* This example ensures that browser native input events lead to updating the component state.
|
|
5
|
-
*/
|
|
6
|
-
var script = {
|
|
7
|
-
data() {
|
|
8
|
-
return {
|
|
9
|
-
value: ''
|
|
10
|
-
};
|
|
11
|
-
},
|
|
12
|
-
|
|
13
|
-
mounted() {
|
|
14
|
-
const inputElement = this.$refs.input.$el;
|
|
15
|
-
inputElement.value = 'some value';
|
|
16
|
-
inputElement.dispatchEvent(new Event('input'));
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
/* script */
|
|
22
|
-
const __vue_script__ = script;
|
|
23
|
-
|
|
24
|
-
/* template */
|
|
25
|
-
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('gl-form-input',{ref:"input",attrs:{"type":"text"},model:{value:(_vm.value),callback:function ($$v) {_vm.value=$$v;},expression:"value"}}),_vm._v(" "),_c('p',{staticClass:"mt-3"},[_vm._v("The entered value is: "+_vm._s(_vm.value))])],1)};
|
|
26
|
-
var __vue_staticRenderFns__ = [];
|
|
27
|
-
|
|
28
|
-
/* style */
|
|
29
|
-
const __vue_inject_styles__ = undefined;
|
|
30
|
-
/* scoped */
|
|
31
|
-
const __vue_scope_id__ = undefined;
|
|
32
|
-
/* module identifier */
|
|
33
|
-
const __vue_module_identifier__ = undefined;
|
|
34
|
-
/* functional template */
|
|
35
|
-
const __vue_is_functional_template__ = false;
|
|
36
|
-
/* style inject */
|
|
37
|
-
|
|
38
|
-
/* style inject SSR */
|
|
39
|
-
|
|
40
|
-
/* style inject shadow dom */
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
const __vue_component__ = __vue_normalize__(
|
|
45
|
-
{ render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
|
|
46
|
-
__vue_inject_styles__,
|
|
47
|
-
__vue_script__,
|
|
48
|
-
__vue_scope_id__,
|
|
49
|
-
__vue_is_functional_template__,
|
|
50
|
-
__vue_module_identifier__,
|
|
51
|
-
false,
|
|
52
|
-
undefined,
|
|
53
|
-
undefined,
|
|
54
|
-
undefined
|
|
55
|
-
);
|
|
56
|
-
|
|
57
|
-
export default __vue_component__;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import FormInputTextExample from './form_input.text.example';
|
|
2
|
-
import FormInputTextDisabledExample from './form_input.text_disabled.example';
|
|
3
|
-
import FormInputTextReactiveExample from './form_input.text_reactive.example';
|
|
4
|
-
|
|
5
|
-
var index = [{
|
|
6
|
-
name: 'Text Input',
|
|
7
|
-
items: [{
|
|
8
|
-
id: 'input-text',
|
|
9
|
-
name: 'default state',
|
|
10
|
-
component: FormInputTextExample
|
|
11
|
-
}, {
|
|
12
|
-
id: 'input-text-reactive',
|
|
13
|
-
name: 'with reactive binding',
|
|
14
|
-
component: FormInputTextReactiveExample
|
|
15
|
-
}, {
|
|
16
|
-
id: 'input-text-disabled',
|
|
17
|
-
name: 'disabled state',
|
|
18
|
-
component: FormInputTextDisabledExample
|
|
19
|
-
}]
|
|
20
|
-
}];
|
|
21
|
-
|
|
22
|
-
export default index;
|