@gitlab/ui 37.1.0 → 37.4.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 +22 -0
- package/dist/components/base/form/form_group/form_group.documentation.js +2 -6
- package/dist/components/base/form/form_input_group/form_input_group.documentation.js +2 -26
- package/dist/components/base/form/form_input_group/form_input_group.js +7 -0
- package/dist/components/base/loading_icon/loading_icon.js +1 -1
- package/dist/components/base/pagination/pagination.js +22 -2
- package/dist/components/base/path/path.js +9 -3
- package/dist/components/base/search_box_by_click/search_box_by_click.documentation.js +2 -80
- package/dist/components/base/search_box_by_click/search_box_by_click.js +60 -1
- package/dist/components/base/search_box_by_type/search_box_by_type.documentation.js +2 -20
- package/dist/components/base/search_box_by_type/search_box_by_type.js +19 -5
- package/dist/directives/hover_load/hover_load.documentation.js +1 -1
- package/dist/directives/resize_observer/resize_observer.documentation.js +2 -5
- package/dist/directives/safe_html/safe_html.documentation.js +1 -1
- package/dist/directives/safe_link/safe_link.documentation.js +2 -3
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/utility_classes.css +1 -1
- package/dist/utility_classes.css.map +1 -1
- package/documentation/documented_stories.js +8 -0
- package/package.json +1 -1
- package/src/components/base/button/button.scss +5 -9
- package/src/components/base/form/form_group/form_group.documentation.js +0 -3
- package/src/components/base/form/form_group/form_group.md +0 -2
- package/src/components/base/form/form_group/form_group.stories.js +106 -145
- package/src/components/base/form/form_input_group/form_input_group.documentation.js +0 -28
- package/src/components/base/form/form_input_group/form_input_group.md +0 -4
- package/src/components/base/form/form_input_group/form_input_group.stories.js +84 -62
- package/src/components/base/form/form_input_group/form_input_group.vue +9 -0
- package/src/components/base/loading_icon/loading_icon.vue +1 -1
- package/src/components/base/pagination/pagination.spec.js +9 -2
- package/src/components/base/pagination/pagination.vue +22 -6
- package/src/components/base/path/path.spec.js +12 -0
- package/src/components/base/path/path.vue +8 -3
- package/src/components/base/search_box_by_click/search_box_by_click.documentation.js +0 -90
- package/src/components/base/search_box_by_click/search_box_by_click.md +0 -2
- package/src/components/base/search_box_by_click/search_box_by_click.stories.js +91 -48
- package/src/components/base/search_box_by_click/search_box_by_click.vue +50 -1
- package/src/components/base/search_box_by_type/search_box_by_type.documentation.js +0 -18
- package/src/components/base/search_box_by_type/search_box_by_type.md +0 -2
- package/src/components/base/search_box_by_type/search_box_by_type.stories.js +49 -43
- package/src/components/base/search_box_by_type/search_box_by_type.vue +16 -6
- package/src/components/base/tabs/tabs/tabs.stories.js +2 -4
- package/src/directives/hover_load/hover_load.md +0 -2
- package/src/directives/hover_load/hover_load.stories.js +39 -34
- package/src/directives/resize_observer/resize_observer.documentation.js +0 -2
- package/src/directives/resize_observer/resize_observer.md +0 -6
- package/src/directives/resize_observer/resize_observer.stories.js +70 -51
- package/src/directives/safe_html/safe_html.md +0 -4
- package/src/directives/safe_html/safe_html.stories.js +53 -44
- package/src/directives/safe_link/safe_link.documentation.js +0 -1
- package/src/directives/safe_link/safe_link.md +0 -4
- package/src/directives/safe_link/safe_link.stories.js +31 -30
- package/src/scss/utilities.scss +8 -0
- package/src/scss/utility-mixins/background.scss +4 -0
- package/dist/components/base/form/form_group/examples/form_group/form_group.basic.example.js +0 -38
- package/dist/components/base/form/form_group/examples/form_group/form_group.disabled.example.js +0 -48
- package/dist/components/base/form/form_group/examples/form_group/form_group.textarea.example.js +0 -48
- package/dist/components/base/form/form_group/examples/form_group/form_group.validation.example.js +0 -66
- package/dist/components/base/form/form_group/examples/form_group/index.js +0 -27
- package/dist/components/base/form/form_input_group/examples/form_input_group.basic.example.js +0 -38
- package/dist/components/base/form/form_input_group/examples/form_input_group.predefined_options.example.js +0 -54
- package/dist/components/base/form/form_input_group/examples/form_input_group.predefined_reactive.example.js +0 -55
- package/dist/components/base/form/form_input_group/examples/form_input_group.reactive.example.js +0 -48
- package/dist/components/base/form/form_input_group/examples/index.js +0 -27
- package/dist/components/base/search_box_by_click/examples/index.js +0 -22
- package/dist/components/base/search_box_by_click/examples/search_box_by_click.default.example.js +0 -48
- package/dist/components/base/search_box_by_click/examples/search_box_by_click.history.example.js +0 -51
- package/dist/components/base/search_box_by_click/examples/search_box_by_click.v_model.example.js +0 -54
- package/dist/components/base/search_box_by_type/examples/index.js +0 -17
- package/dist/components/base/search_box_by_type/examples/search_box_by_type.default.example.js +0 -48
- package/dist/components/base/search_box_by_type/examples/search_box_by_type.loading.example.js +0 -65
- package/dist/directives/resize_observer/examples/index.js +0 -12
- package/dist/directives/resize_observer/examples/resize_observer.basic.example.js +0 -62
- package/src/components/base/form/form_group/examples/form_group/form_group.basic.example.vue +0 -11
- package/src/components/base/form/form_group/examples/form_group/form_group.disabled.example.vue +0 -21
- package/src/components/base/form/form_group/examples/form_group/form_group.textarea.example.vue +0 -15
- package/src/components/base/form/form_group/examples/form_group/form_group.validation.example.vue +0 -36
- package/src/components/base/form/form_group/examples/form_group/index.js +0 -32
- package/src/components/base/form/form_input_group/examples/form_input_group.basic.example.vue +0 -10
- package/src/components/base/form/form_input_group/examples/form_input_group.predefined_options.example.vue +0 -25
- package/src/components/base/form/form_input_group/examples/form_input_group.predefined_reactive.example.vue +0 -32
- package/src/components/base/form/form_input_group/examples/form_input_group.reactive.example.vue +0 -25
- package/src/components/base/form/form_input_group/examples/index.js +0 -32
- package/src/components/base/search_box_by_click/examples/index.js +0 -26
- package/src/components/base/search_box_by_click/examples/search_box_by_click.default.example.vue +0 -14
- package/src/components/base/search_box_by_click/examples/search_box_by_click.history.example.vue +0 -23
- package/src/components/base/search_box_by_click/examples/search_box_by_click.v_model.example.vue +0 -23
- package/src/components/base/search_box_by_type/examples/index.js +0 -20
- package/src/components/base/search_box_by_type/examples/search_box_by_type.default.example.vue +0 -14
- package/src/components/base/search_box_by_type/examples/search_box_by_type.loading.example.vue +0 -34
- package/src/directives/resize_observer/examples/index.js +0 -14
- package/src/directives/resize_observer/examples/resize_observer.basic.example.vue +0 -21
|
@@ -7,10 +7,8 @@ const components = {
|
|
|
7
7
|
GlTab,
|
|
8
8
|
};
|
|
9
9
|
|
|
10
|
-
const defaultValue = (prop) => GlTabs.props[prop].default;
|
|
11
|
-
|
|
12
10
|
const generateProps = ({
|
|
13
|
-
justified
|
|
11
|
+
justified,
|
|
14
12
|
actionPrimary = null,
|
|
15
13
|
actionSecondary = null,
|
|
16
14
|
actionTertiary = null,
|
|
@@ -238,7 +236,7 @@ WithScrollAndGrowing.parameters = {
|
|
|
238
236
|
};
|
|
239
237
|
|
|
240
238
|
export default {
|
|
241
|
-
title: 'base/tabs
|
|
239
|
+
title: 'base/tabs',
|
|
242
240
|
component: GlTabs,
|
|
243
241
|
subcomponents: { GlTab, GlScrollableTabs },
|
|
244
242
|
parameters: {
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { text } from '@storybook/addon-knobs';
|
|
2
|
-
import { documentedStoriesOf } from '../../../documentation/documented_stories';
|
|
3
1
|
import { GlHoverLoadDirective } from '../../index';
|
|
4
2
|
import readme from './hover_load.md';
|
|
5
3
|
|
|
@@ -8,39 +6,46 @@ const directives = {
|
|
|
8
6
|
};
|
|
9
7
|
|
|
10
8
|
// eslint-disable-next-line no-script-url
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
9
|
+
const generateProps = ({ endpoint = 'some/endpoint' } = {}) => ({
|
|
10
|
+
endpoint,
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
export const Default = (_args, { argTypes }) => ({
|
|
14
|
+
props: Object.keys(argTypes),
|
|
15
|
+
directives,
|
|
16
|
+
data: () => ({
|
|
17
|
+
isPreloaded: false,
|
|
18
|
+
}),
|
|
19
|
+
methods: {
|
|
20
|
+
handlePreload() {
|
|
21
|
+
fetch(this.endpoint);
|
|
22
|
+
this.isPreloaded = true;
|
|
16
23
|
},
|
|
17
|
-
}
|
|
18
|
-
|
|
24
|
+
},
|
|
25
|
+
template: `
|
|
26
|
+
<div>
|
|
27
|
+
<a
|
|
28
|
+
:href="endpoint"
|
|
29
|
+
v-gl-hover-load="handlePreload"
|
|
30
|
+
>
|
|
31
|
+
Hover me to preload
|
|
32
|
+
</a>
|
|
33
|
+
|
|
34
|
+
<span>(Preloaded: {{isPreloaded}})</span>
|
|
35
|
+
</div>
|
|
36
|
+
`,
|
|
37
|
+
});
|
|
38
|
+
Default.args = generateProps();
|
|
19
39
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
methods: {
|
|
29
|
-
handlePreload() {
|
|
30
|
-
fetch(this.endpoint);
|
|
31
|
-
this.isPreloaded = true;
|
|
40
|
+
export default {
|
|
41
|
+
title: 'directives/hover-load-directive',
|
|
42
|
+
component: GlHoverLoadDirective,
|
|
43
|
+
parameters: {
|
|
44
|
+
storyshots: { disable: true },
|
|
45
|
+
docs: {
|
|
46
|
+
description: {
|
|
47
|
+
component: readme,
|
|
32
48
|
},
|
|
33
49
|
},
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
<a
|
|
37
|
-
:href="endpoint"
|
|
38
|
-
v-gl-hover-load="handlePreload"
|
|
39
|
-
>
|
|
40
|
-
Hover me to preload
|
|
41
|
-
</a>
|
|
42
|
-
|
|
43
|
-
<span>(Preloaded: {{isPreloaded}})</span>
|
|
44
|
-
</div>
|
|
45
|
-
`,
|
|
46
|
-
}));
|
|
50
|
+
},
|
|
51
|
+
};
|
|
@@ -1,60 +1,79 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { documentedStoriesOf } from '../../../documentation/documented_stories';
|
|
3
|
-
import { GlResizeObserverDirective } from '../../index';
|
|
1
|
+
import { GlResizeObserverDirective as GlResizeObserver } from '../../index';
|
|
4
2
|
import readme from './resize_observer.md';
|
|
5
3
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
4
|
+
const generateProps = ({ elementWidth = '100%', elementHeight = '100%' } = {}) => ({
|
|
5
|
+
elementWidth,
|
|
6
|
+
elementHeight,
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
export const Default = (args, { argTypes }) => ({
|
|
10
|
+
props: Object.keys(argTypes),
|
|
11
|
+
directives: {
|
|
12
|
+
GlResizeObserver,
|
|
13
|
+
},
|
|
14
|
+
data() {
|
|
15
|
+
return {
|
|
16
|
+
width: 0,
|
|
17
|
+
height: 0,
|
|
18
|
+
};
|
|
19
|
+
},
|
|
20
|
+
computed: {
|
|
21
|
+
wrapperStyles() {
|
|
22
22
|
return {
|
|
23
|
-
|
|
24
|
-
height: 0,
|
|
23
|
+
height: '400px',
|
|
25
24
|
};
|
|
26
25
|
},
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
},
|
|
33
|
-
elementStyles() {
|
|
34
|
-
return {
|
|
35
|
-
height: this.elementHeight,
|
|
36
|
-
width: this.elementWidth,
|
|
37
|
-
};
|
|
38
|
-
},
|
|
26
|
+
elementStyles() {
|
|
27
|
+
return {
|
|
28
|
+
height: this.elementHeight,
|
|
29
|
+
width: this.elementWidth,
|
|
30
|
+
};
|
|
39
31
|
},
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
32
|
+
},
|
|
33
|
+
methods: {
|
|
34
|
+
handleResize({ contentRect: { width, height } }) {
|
|
35
|
+
this.width = Math.round(width);
|
|
36
|
+
this.height = Math.round(height);
|
|
45
37
|
},
|
|
46
|
-
|
|
38
|
+
},
|
|
39
|
+
template: `
|
|
40
|
+
<div
|
|
41
|
+
:style="wrapperStyles"
|
|
42
|
+
class="d-flex justify-content-center align-items-center">
|
|
47
43
|
<div
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
<span class="d-inline-block p-2">
|
|
55
|
-
I am {{ width }}px wide and {{ height }}px high.
|
|
56
|
-
</span>
|
|
57
|
-
</div>
|
|
44
|
+
v-gl-resize-observer="handleResize"
|
|
45
|
+
:style="elementStyles"
|
|
46
|
+
class="d-flex position-relative justify-content-center align-items-center bg-light text-dark">
|
|
47
|
+
<span class="d-inline-block p-2">
|
|
48
|
+
I am {{ width }}px wide and {{ height }}px high.
|
|
49
|
+
</span>
|
|
58
50
|
</div>
|
|
59
|
-
|
|
60
|
-
|
|
51
|
+
</div>
|
|
52
|
+
`,
|
|
53
|
+
});
|
|
54
|
+
Default.args = generateProps();
|
|
55
|
+
|
|
56
|
+
const makeControl = () => ({
|
|
57
|
+
options: ['100%', '75%', '50%'],
|
|
58
|
+
control: {
|
|
59
|
+
type: 'select',
|
|
60
|
+
},
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
export default {
|
|
64
|
+
title: 'directives/resize-observer-directive',
|
|
65
|
+
component: GlResizeObserver,
|
|
66
|
+
parameters: {
|
|
67
|
+
knobs: { disable: true },
|
|
68
|
+
storyshots: { disable: true },
|
|
69
|
+
docs: {
|
|
70
|
+
description: {
|
|
71
|
+
component: readme,
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
argTypes: {
|
|
76
|
+
elementWidth: makeControl(),
|
|
77
|
+
elementHeight: makeControl(),
|
|
78
|
+
},
|
|
79
|
+
};
|
|
@@ -1,50 +1,59 @@
|
|
|
1
|
-
import { withKnobs, text } from '@storybook/addon-knobs';
|
|
2
1
|
import { sanitize } from 'dompurify';
|
|
3
|
-
import {
|
|
4
|
-
import { documentedStoriesOf } from '../../../documentation/documented_stories';
|
|
5
|
-
import { GlSafeHtmlDirective } from '../../index';
|
|
2
|
+
import { GlSafeHtmlDirective as GlSafeHtml } from '../../index';
|
|
6
3
|
import readme from './safe_html.md';
|
|
7
4
|
|
|
8
|
-
|
|
9
|
-
.
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
5
|
+
const generateProps = ({
|
|
6
|
+
unsafeHTML = '<a href="javascript:alert(document.domain)">Click me</a>',
|
|
7
|
+
} = {}) => ({
|
|
8
|
+
unsafeHTML,
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
export const Default = (_args, { argTypes }) => ({
|
|
12
|
+
directives: {
|
|
13
|
+
GlSafeHtml,
|
|
14
|
+
},
|
|
15
|
+
props: Object.keys(argTypes),
|
|
16
|
+
computed: {
|
|
17
|
+
sanitizedHtml() {
|
|
18
|
+
return sanitize(this.unsafeHTML);
|
|
20
19
|
},
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
},
|
|
21
|
+
template: `
|
|
22
|
+
<table class="gl-table">
|
|
23
|
+
<thead>
|
|
24
|
+
<tr>
|
|
25
|
+
<th>Directive</th>
|
|
26
|
+
<th>Output</th>
|
|
27
|
+
<th>Rendered</th>
|
|
28
|
+
</tr>
|
|
29
|
+
</thead>
|
|
30
|
+
<tbody>
|
|
31
|
+
<tr>
|
|
32
|
+
<td><strong>v-html</strong></td>
|
|
33
|
+
<td><code>{{ unsafeHTML }}</code></td>
|
|
34
|
+
<td>N/A for security reasons</td>
|
|
35
|
+
</tr>
|
|
36
|
+
<tr>
|
|
37
|
+
<td><strong>v-safe-html</strong></td>
|
|
38
|
+
<td><code>{{ sanitizedHtml }}</code></td>
|
|
39
|
+
<td v-gl-safe-html="unsafeHTML"></td>
|
|
40
|
+
</tr>
|
|
41
|
+
</tbody>
|
|
42
|
+
</table>
|
|
43
|
+
`,
|
|
44
|
+
});
|
|
45
|
+
Default.args = generateProps();
|
|
46
|
+
|
|
47
|
+
export default {
|
|
48
|
+
title: 'directives/safe-html-directive',
|
|
49
|
+
component: GlSafeHtml,
|
|
50
|
+
parameters: {
|
|
51
|
+
storyshots: { disable: true },
|
|
52
|
+
knobs: { disable: true },
|
|
53
|
+
docs: {
|
|
54
|
+
description: {
|
|
55
|
+
component: readme,
|
|
24
56
|
},
|
|
25
57
|
},
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
<table class="gl-table">
|
|
29
|
-
<thead>
|
|
30
|
-
<tr>
|
|
31
|
-
<th>Directive</th>
|
|
32
|
-
<th>Output</th>
|
|
33
|
-
<th>Rendered</th>
|
|
34
|
-
</tr>
|
|
35
|
-
</thead>
|
|
36
|
-
<tbody>
|
|
37
|
-
<tr>
|
|
38
|
-
<td><strong>v-html</strong></td>
|
|
39
|
-
<td><code v-html="$options.escape(unsafeHTML)"></code></td>
|
|
40
|
-
<td>N/A for security reasons</td>
|
|
41
|
-
</tr>
|
|
42
|
-
<tr>
|
|
43
|
-
<td><strong>v-safe-html</strong></td>
|
|
44
|
-
<td><code v-html="$options.escape(sanitizedHtml)"></code></td>
|
|
45
|
-
<td v-gl-safe-html="unsafeHTML"></td>
|
|
46
|
-
</tr>
|
|
47
|
-
</tbody>
|
|
48
|
-
</table>
|
|
49
|
-
`,
|
|
50
|
-
}));
|
|
58
|
+
},
|
|
59
|
+
};
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { withKnobs, text, select } from '@storybook/addon-knobs';
|
|
2
|
-
import { documentedStoriesOf } from '../../../documentation/documented_stories';
|
|
3
|
-
import { targetOptions } from '../../utils/constants';
|
|
4
1
|
import { SafeLinkDirective as SafeLink } from './safe_link';
|
|
5
2
|
import readme from './safe_link.md';
|
|
6
3
|
|
|
@@ -9,31 +6,35 @@ const directives = {
|
|
|
9
6
|
};
|
|
10
7
|
|
|
11
8
|
// eslint-disable-next-line no-script-url
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
9
|
+
const generateProps = ({ href = 'javascript:alert(1)', target = '_blank' } = {}) => ({
|
|
10
|
+
href,
|
|
11
|
+
target,
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
export const Default = (_args, { argTypes }) => ({
|
|
15
|
+
props: Object.keys(argTypes),
|
|
16
|
+
directives,
|
|
17
|
+
template: `
|
|
18
|
+
<a
|
|
19
|
+
:href="href"
|
|
20
|
+
:target="target"
|
|
21
|
+
v-safe-link
|
|
22
|
+
>
|
|
23
|
+
This is a secure link
|
|
24
|
+
</a>`,
|
|
25
|
+
});
|
|
26
|
+
Default.args = generateProps();
|
|
24
27
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
:
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
</a>`,
|
|
39
|
-
}));
|
|
28
|
+
export default {
|
|
29
|
+
title: 'directives/safe-link-directive',
|
|
30
|
+
component: SafeLink,
|
|
31
|
+
parameters: {
|
|
32
|
+
knobs: { disable: true },
|
|
33
|
+
storyshots: { disable: true },
|
|
34
|
+
docs: {
|
|
35
|
+
description: {
|
|
36
|
+
component: readme,
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
};
|
package/src/scss/utilities.scss
CHANGED
|
@@ -410,6 +410,14 @@
|
|
|
410
410
|
background-color: $orange-700 !important
|
|
411
411
|
}
|
|
412
412
|
|
|
413
|
+
.gl-bg-purple-50 {
|
|
414
|
+
background-color: $purple-50
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
.gl-bg-purple-50\! {
|
|
418
|
+
background-color: $purple-50 !important
|
|
419
|
+
}
|
|
420
|
+
|
|
413
421
|
.gl-bg-red-50 {
|
|
414
422
|
background-color: $red-50
|
|
415
423
|
}
|
package/dist/components/base/form/form_group/examples/form_group/form_group.basic.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-group',{attrs:{"id":"group-id","label":"Label","label-size":"sm","description":"Form group description","label-for":"input1"}},[_c('gl-form-input',{attrs:{"id":"input1"}})],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__;
|
package/dist/components/base/form/form_group/examples/form_group/form_group.disabled.example.js
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
2
|
-
|
|
3
|
-
var script = {
|
|
4
|
-
computed: {
|
|
5
|
-
disabled() {
|
|
6
|
-
return true;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
/* script */
|
|
13
|
-
const __vue_script__ = script;
|
|
14
|
-
|
|
15
|
-
/* template */
|
|
16
|
-
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('gl-form-group',{attrs:{"id":"group-id","label":"Label Name","label-size":"sm","description":"This feature is disabled","label-for":"input1"}},[_c('gl-form-input',{attrs:{"id":"input1","type":"text","disabled":_vm.disabled,"value":"Disabled"}})],1)};
|
|
17
|
-
var __vue_staticRenderFns__ = [];
|
|
18
|
-
|
|
19
|
-
/* style */
|
|
20
|
-
const __vue_inject_styles__ = undefined;
|
|
21
|
-
/* scoped */
|
|
22
|
-
const __vue_scope_id__ = undefined;
|
|
23
|
-
/* module identifier */
|
|
24
|
-
const __vue_module_identifier__ = undefined;
|
|
25
|
-
/* functional template */
|
|
26
|
-
const __vue_is_functional_template__ = false;
|
|
27
|
-
/* style inject */
|
|
28
|
-
|
|
29
|
-
/* style inject SSR */
|
|
30
|
-
|
|
31
|
-
/* style inject shadow dom */
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
const __vue_component__ = __vue_normalize__(
|
|
36
|
-
{ render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
|
|
37
|
-
__vue_inject_styles__,
|
|
38
|
-
__vue_script__,
|
|
39
|
-
__vue_scope_id__,
|
|
40
|
-
__vue_is_functional_template__,
|
|
41
|
-
__vue_module_identifier__,
|
|
42
|
-
false,
|
|
43
|
-
undefined,
|
|
44
|
-
undefined,
|
|
45
|
-
undefined
|
|
46
|
-
);
|
|
47
|
-
|
|
48
|
-
export default __vue_component__;
|
package/dist/components/base/form/form_group/examples/form_group/form_group.textarea.example.js
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
2
|
-
|
|
3
|
-
var script = {
|
|
4
|
-
data() {
|
|
5
|
-
return {
|
|
6
|
-
text: ''
|
|
7
|
-
};
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
/* script */
|
|
13
|
-
const __vue_script__ = script;
|
|
14
|
-
|
|
15
|
-
/* template */
|
|
16
|
-
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('gl-form-group',{attrs:{"id":"group-id-textarea1","label":"Label Name","label-for":"textarea1"}},[_c('gl-form-textarea',{attrs:{"id":"textarea1","placeholder":"Enter something"},model:{value:(_vm.text),callback:function ($$v) {_vm.text=$$v;},expression:"text"}})],1)};
|
|
17
|
-
var __vue_staticRenderFns__ = [];
|
|
18
|
-
|
|
19
|
-
/* style */
|
|
20
|
-
const __vue_inject_styles__ = undefined;
|
|
21
|
-
/* scoped */
|
|
22
|
-
const __vue_scope_id__ = undefined;
|
|
23
|
-
/* module identifier */
|
|
24
|
-
const __vue_module_identifier__ = undefined;
|
|
25
|
-
/* functional template */
|
|
26
|
-
const __vue_is_functional_template__ = false;
|
|
27
|
-
/* style inject */
|
|
28
|
-
|
|
29
|
-
/* style inject SSR */
|
|
30
|
-
|
|
31
|
-
/* style inject shadow dom */
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
const __vue_component__ = __vue_normalize__(
|
|
36
|
-
{ render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
|
|
37
|
-
__vue_inject_styles__,
|
|
38
|
-
__vue_script__,
|
|
39
|
-
__vue_scope_id__,
|
|
40
|
-
__vue_is_functional_template__,
|
|
41
|
-
__vue_module_identifier__,
|
|
42
|
-
false,
|
|
43
|
-
undefined,
|
|
44
|
-
undefined,
|
|
45
|
-
undefined
|
|
46
|
-
);
|
|
47
|
-
|
|
48
|
-
export default __vue_component__;
|