@gitlab/ui 32.42.0 → 32.43.3
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/README.md +6 -1
- package/dist/components/base/form/form_group/examples/form_group/form_group.validation.example.js +3 -3
- package/dist/components/base/form/form_textarea/form_textarea.documentation.js +1 -20
- package/dist/components/base/form/form_textarea/form_textarea.js +8 -0
- package/dist/components/regions/empty_state/empty_state.js +1 -1
- package/dist/utility_classes.css +1 -1
- package/dist/utility_classes.css.map +1 -1
- package/documentation/documented_stories.js +1 -0
- package/package.json +11 -11
- package/src/components/base/form/form_group/examples/form_group/form_group.validation.example.vue +3 -3
- package/src/components/base/form/form_group/form_group.stories.js +3 -3
- package/src/components/base/form/form_textarea/form_textarea.documentation.js +0 -25
- package/src/components/base/form/form_textarea/form_textarea.stories.js +31 -30
- package/src/components/base/form/form_textarea/form_textarea.vue +8 -0
- package/src/components/regions/empty_state/empty_state.vue +8 -2
- package/src/scss/utilities.scss +12 -0
- package/src/scss/utility-mixins/sizing.scss +6 -0
- package/dist/components/base/form/form_textarea/examples/form_textarea.basic.example.js +0 -47
- package/dist/components/base/form/form_textarea/examples/form_textarea.invalid.example.js +0 -47
- package/dist/components/base/form/form_textarea/examples/form_textarea.plaintext.example.js +0 -47
- package/dist/components/base/form/form_textarea/examples/form_textarea.readonly.example.js +0 -45
- package/dist/components/base/form/form_textarea/examples/form_textarea.submit.example.js +0 -47
- package/dist/components/base/form/form_textarea/examples/index.js +0 -37
- package/src/components/base/form/form_textarea/examples/form_textarea.basic.example.vue +0 -11
- package/src/components/base/form/form_textarea/examples/form_textarea.invalid.example.vue +0 -11
- package/src/components/base/form/form_textarea/examples/form_textarea.plaintext.example.vue +0 -13
- package/src/components/base/form/form_textarea/examples/form_textarea.readonly.example.vue +0 -9
- package/src/components/base/form/form_textarea/examples/form_textarea.submit.example.vue +0 -11
- package/src/components/base/form/form_textarea/examples/index.js +0 -43
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gitlab/ui",
|
|
3
|
-
"version": "32.
|
|
3
|
+
"version": "32.43.3",
|
|
4
4
|
"description": "GitLab UI Components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"@babel/standalone": "^7.0.0",
|
|
61
61
|
"bootstrap-vue": "2.20.1",
|
|
62
62
|
"copy-to-clipboard": "^3.0.8",
|
|
63
|
-
"dompurify": "^2.3.
|
|
63
|
+
"dompurify": "^2.3.4",
|
|
64
64
|
"echarts": "^5.2.1",
|
|
65
65
|
"highlight.js": "^10.6.0",
|
|
66
66
|
"js-beautify": "^1.8.8",
|
|
@@ -84,19 +84,19 @@
|
|
|
84
84
|
"@babel/preset-env": "^7.10.2",
|
|
85
85
|
"@gitlab/eslint-plugin": "10.0.0",
|
|
86
86
|
"@gitlab/stylelint-config": "2.6.0",
|
|
87
|
-
"@gitlab/svgs": "1.
|
|
87
|
+
"@gitlab/svgs": "1.226.0",
|
|
88
88
|
"@rollup/plugin-commonjs": "^11.1.0",
|
|
89
89
|
"@rollup/plugin-node-resolve": "^7.1.3",
|
|
90
90
|
"@rollup/plugin-replace": "^2.3.2",
|
|
91
|
-
"@storybook/addon-a11y": "6.4.
|
|
92
|
-
"@storybook/addon-docs": "6.4.
|
|
93
|
-
"@storybook/addon-essentials": "6.4.
|
|
91
|
+
"@storybook/addon-a11y": "6.4.8",
|
|
92
|
+
"@storybook/addon-docs": "6.4.8",
|
|
93
|
+
"@storybook/addon-essentials": "6.4.8",
|
|
94
94
|
"@storybook/addon-knobs": "6.4.0",
|
|
95
|
-
"@storybook/addon-storyshots": "6.4.
|
|
96
|
-
"@storybook/addon-storyshots-puppeteer": "6.4.
|
|
97
|
-
"@storybook/addon-viewport": "6.4.
|
|
98
|
-
"@storybook/theming": "6.4.
|
|
99
|
-
"@storybook/vue": "6.4.
|
|
95
|
+
"@storybook/addon-storyshots": "6.4.8",
|
|
96
|
+
"@storybook/addon-storyshots-puppeteer": "6.4.8",
|
|
97
|
+
"@storybook/addon-viewport": "6.4.8",
|
|
98
|
+
"@storybook/theming": "6.4.8",
|
|
99
|
+
"@storybook/vue": "6.4.8",
|
|
100
100
|
"@vue/test-utils": "1.1.3",
|
|
101
101
|
"autoprefixer": "^9.7.6",
|
|
102
102
|
"babel-jest": "^26.6.3",
|
package/src/components/base/form/form_group/examples/form_group/form_group.validation.example.vue
CHANGED
|
@@ -10,12 +10,12 @@ export default {
|
|
|
10
10
|
return this.name.length >= 4;
|
|
11
11
|
},
|
|
12
12
|
invalidFeedback() {
|
|
13
|
-
let feedbackText = '
|
|
13
|
+
let feedbackText = 'This field is required.';
|
|
14
14
|
|
|
15
15
|
if (this.name.length > 4) {
|
|
16
16
|
feedbackText = '';
|
|
17
17
|
} else if (this.name.length > 0) {
|
|
18
|
-
feedbackText = 'Enter at least 4 characters';
|
|
18
|
+
feedbackText = 'Enter at least 4 characters.';
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
return feedbackText;
|
|
@@ -26,7 +26,7 @@ export default {
|
|
|
26
26
|
<template>
|
|
27
27
|
<gl-form-group
|
|
28
28
|
label="Name"
|
|
29
|
-
description="
|
|
29
|
+
description="Enter a first and last name."
|
|
30
30
|
:invalid-feedback="invalidFeedback"
|
|
31
31
|
:state="state"
|
|
32
32
|
label-for="input1"
|
|
@@ -101,19 +101,19 @@ documentedStoriesOf('base/form/form-group', readme)
|
|
|
101
101
|
`,
|
|
102
102
|
}))
|
|
103
103
|
.add('with validations', () => ({
|
|
104
|
-
props: generateProps({ label: 'Name', description: '
|
|
104
|
+
props: generateProps({ label: 'Name', description: 'Enter a first and last name.' }),
|
|
105
105
|
components,
|
|
106
106
|
computed: {
|
|
107
107
|
state() {
|
|
108
108
|
return this.name.length >= 4;
|
|
109
109
|
},
|
|
110
110
|
invalidFeedback() {
|
|
111
|
-
let feedbackText = '
|
|
111
|
+
let feedbackText = 'This field is required.';
|
|
112
112
|
|
|
113
113
|
if (this.name.length > 4) {
|
|
114
114
|
feedbackText = '';
|
|
115
115
|
} else if (this.name.length > 0) {
|
|
116
|
-
feedbackText = 'Enter at least 4 characters';
|
|
116
|
+
feedbackText = 'Enter at least 4 characters.';
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
return feedbackText;
|
|
@@ -1,30 +1,5 @@
|
|
|
1
|
-
import examples from './examples';
|
|
2
1
|
import description from './form_textarea.md';
|
|
3
2
|
|
|
4
3
|
export default {
|
|
5
4
|
description,
|
|
6
|
-
examples,
|
|
7
|
-
bootstrapComponent: 'b-form-textarea',
|
|
8
|
-
events: [
|
|
9
|
-
{
|
|
10
|
-
event: 'input',
|
|
11
|
-
args: [
|
|
12
|
-
{
|
|
13
|
-
arg: 'value',
|
|
14
|
-
description: '(String)',
|
|
15
|
-
},
|
|
16
|
-
],
|
|
17
|
-
description: 'Emitted to update the v-model',
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
event: 'update',
|
|
21
|
-
args: [
|
|
22
|
-
{
|
|
23
|
-
arg: 'value',
|
|
24
|
-
description: '(String)',
|
|
25
|
-
},
|
|
26
|
-
],
|
|
27
|
-
description: `Triggered by user interaction. Emitted after any formatting (not including 'trim' or 'number' props). Useful for getting the currently entered value when the 'debounce' or 'lazy' props are set.`,
|
|
28
|
-
},
|
|
29
|
-
],
|
|
30
5
|
};
|
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
import { withKnobs, boolean } from '@storybook/addon-knobs';
|
|
2
|
-
import { documentedStoriesOf } from '../../../../../documentation/documented_stories';
|
|
3
1
|
import { GlFormTextarea } from '../../../../../index';
|
|
4
2
|
import readme from './form_textarea.md';
|
|
5
3
|
|
|
6
|
-
const components = {
|
|
7
|
-
GlFormTextarea,
|
|
8
|
-
};
|
|
9
|
-
|
|
10
4
|
const template = `
|
|
11
5
|
<gl-form-textarea
|
|
12
6
|
v-model="model"
|
|
@@ -16,28 +10,35 @@ const template = `
|
|
|
16
10
|
/>
|
|
17
11
|
`;
|
|
18
12
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
default: 'hello',
|
|
29
|
-
},
|
|
30
|
-
noResize: {
|
|
31
|
-
type: Boolean,
|
|
32
|
-
default: boolean('no-resize', noResize),
|
|
33
|
-
},
|
|
34
|
-
};
|
|
35
|
-
}
|
|
13
|
+
const generateProps = ({
|
|
14
|
+
model = 'We take inspiration from other companies, and we always go for the boring solutions. Just like the rest of our work, we continually adjust our values and strive always to make them better. We used to have more values, but it was difficult to remember them all, so we condensed them and gave sub-values and created an acronym. Everyone is welcome to suggest improvements.',
|
|
15
|
+
placeholder = 'hello',
|
|
16
|
+
noResize = GlFormTextarea.props.noResize.default,
|
|
17
|
+
} = {}) => ({
|
|
18
|
+
model,
|
|
19
|
+
placeholder,
|
|
20
|
+
noResize,
|
|
21
|
+
});
|
|
36
22
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
.
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
23
|
+
const Template = (args) => ({
|
|
24
|
+
components: { GlFormTextarea },
|
|
25
|
+
props: Object.keys(args),
|
|
26
|
+
template,
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
export const Default = Template.bind({});
|
|
30
|
+
Default.args = generateProps();
|
|
31
|
+
|
|
32
|
+
export default {
|
|
33
|
+
title: 'base/form/form-textarea',
|
|
34
|
+
component: GlFormTextarea,
|
|
35
|
+
parameters: {
|
|
36
|
+
bootstrapComponent: 'b-form-textarea',
|
|
37
|
+
knobs: { disable: true },
|
|
38
|
+
docs: {
|
|
39
|
+
description: {
|
|
40
|
+
component: readme,
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
};
|
|
@@ -38,9 +38,17 @@ export default {
|
|
|
38
38
|
// Swap purpose of input and update events from underlying BFormTextarea.
|
|
39
39
|
// See https://gitlab.com/gitlab-org/gitlab-ui/-/issues/631.
|
|
40
40
|
input: (...args) => {
|
|
41
|
+
/**
|
|
42
|
+
* Emitted to update the v-model
|
|
43
|
+
*/
|
|
41
44
|
this.$emit('update', ...args);
|
|
42
45
|
},
|
|
43
46
|
update: (...args) => {
|
|
47
|
+
/**
|
|
48
|
+
* Triggered by user interaction.
|
|
49
|
+
* Emitted after any formatting (not including 'trim' or 'number' props).
|
|
50
|
+
* Useful for getting the currently entered value when the 'debounce' or 'lazy' props are set.
|
|
51
|
+
*/
|
|
44
52
|
this.$emit(model.event, ...args);
|
|
45
53
|
},
|
|
46
54
|
};
|
|
@@ -104,8 +104,14 @@ export default {
|
|
|
104
104
|
</div>
|
|
105
105
|
<div :class="compact ? 'col-sm-9' : 'col-12'">
|
|
106
106
|
<div class="text-content gl-mx-auto gl-my-0" :class="{ 'gl-p-5': !compact }">
|
|
107
|
-
<h1
|
|
108
|
-
|
|
107
|
+
<h1
|
|
108
|
+
ref="title"
|
|
109
|
+
class="gl-font-size-h-display gl-line-height-36"
|
|
110
|
+
:class="compact ? 'h5' : 'h4'"
|
|
111
|
+
>
|
|
112
|
+
{{ title }}
|
|
113
|
+
</h1>
|
|
114
|
+
<p v-if="description || $scopedSlots.description" ref="description" class="gl-mt-3">
|
|
109
115
|
<!--
|
|
110
116
|
@slot Use this slot to customize the empty state's description
|
|
111
117
|
area. Overrides the `description` prop.
|
package/src/scss/utilities.scss
CHANGED
|
@@ -4384,6 +4384,18 @@
|
|
|
4384
4384
|
max-width: 50% !important;
|
|
4385
4385
|
}
|
|
4386
4386
|
}
|
|
4387
|
+
|
|
4388
|
+
.gl-md-max-w-70p {
|
|
4389
|
+
@include gl-media-breakpoint-up(md) {
|
|
4390
|
+
max-width: 70%;
|
|
4391
|
+
}
|
|
4392
|
+
}
|
|
4393
|
+
|
|
4394
|
+
.gl-md-max-w-70p\! {
|
|
4395
|
+
@include gl-media-breakpoint-up(md) {
|
|
4396
|
+
max-width: 70% !important;
|
|
4397
|
+
}
|
|
4398
|
+
}
|
|
4387
4399
|
.gl-p-0 {
|
|
4388
4400
|
padding: 0;
|
|
4389
4401
|
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
2
|
-
|
|
3
|
-
var script = {
|
|
4
|
-
// We need this because without a v-model this input will reset on every keystroke
|
|
5
|
-
// https://github.com/bootstrap-vue/bootstrap-vue/issues/1915
|
|
6
|
-
data: () => ({
|
|
7
|
-
text: ''
|
|
8
|
-
})
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
/* script */
|
|
12
|
-
const __vue_script__ = script;
|
|
13
|
-
|
|
14
|
-
/* template */
|
|
15
|
-
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('gl-form-textarea',{attrs:{"placeholder":"Enter something"},model:{value:(_vm.text),callback:function ($$v) {_vm.text=$$v;},expression:"text"}})};
|
|
16
|
-
var __vue_staticRenderFns__ = [];
|
|
17
|
-
|
|
18
|
-
/* style */
|
|
19
|
-
const __vue_inject_styles__ = undefined;
|
|
20
|
-
/* scoped */
|
|
21
|
-
const __vue_scope_id__ = undefined;
|
|
22
|
-
/* module identifier */
|
|
23
|
-
const __vue_module_identifier__ = undefined;
|
|
24
|
-
/* functional template */
|
|
25
|
-
const __vue_is_functional_template__ = false;
|
|
26
|
-
/* style inject */
|
|
27
|
-
|
|
28
|
-
/* style inject SSR */
|
|
29
|
-
|
|
30
|
-
/* style inject shadow dom */
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
const __vue_component__ = __vue_normalize__(
|
|
35
|
-
{ render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
|
|
36
|
-
__vue_inject_styles__,
|
|
37
|
-
__vue_script__,
|
|
38
|
-
__vue_scope_id__,
|
|
39
|
-
__vue_is_functional_template__,
|
|
40
|
-
__vue_module_identifier__,
|
|
41
|
-
false,
|
|
42
|
-
undefined,
|
|
43
|
-
undefined,
|
|
44
|
-
undefined
|
|
45
|
-
);
|
|
46
|
-
|
|
47
|
-
export default __vue_component__;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
2
|
-
|
|
3
|
-
var script = {
|
|
4
|
-
// We need this because without a v-model this input will reset on every keystroke
|
|
5
|
-
// https://github.com/bootstrap-vue/bootstrap-vue/issues/1915
|
|
6
|
-
data: () => ({
|
|
7
|
-
text: 'This is invalid'
|
|
8
|
-
})
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
/* script */
|
|
12
|
-
const __vue_script__ = script;
|
|
13
|
-
|
|
14
|
-
/* template */
|
|
15
|
-
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('gl-form-textarea',{attrs:{"placeholder":"Enter something","state":false},model:{value:(_vm.text),callback:function ($$v) {_vm.text=$$v;},expression:"text"}})};
|
|
16
|
-
var __vue_staticRenderFns__ = [];
|
|
17
|
-
|
|
18
|
-
/* style */
|
|
19
|
-
const __vue_inject_styles__ = undefined;
|
|
20
|
-
/* scoped */
|
|
21
|
-
const __vue_scope_id__ = undefined;
|
|
22
|
-
/* module identifier */
|
|
23
|
-
const __vue_module_identifier__ = undefined;
|
|
24
|
-
/* functional template */
|
|
25
|
-
const __vue_is_functional_template__ = false;
|
|
26
|
-
/* style inject */
|
|
27
|
-
|
|
28
|
-
/* style inject SSR */
|
|
29
|
-
|
|
30
|
-
/* style inject shadow dom */
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
const __vue_component__ = __vue_normalize__(
|
|
35
|
-
{ render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
|
|
36
|
-
__vue_inject_styles__,
|
|
37
|
-
__vue_script__,
|
|
38
|
-
__vue_scope_id__,
|
|
39
|
-
__vue_is_functional_template__,
|
|
40
|
-
__vue_module_identifier__,
|
|
41
|
-
false,
|
|
42
|
-
undefined,
|
|
43
|
-
undefined,
|
|
44
|
-
undefined
|
|
45
|
-
);
|
|
46
|
-
|
|
47
|
-
export default __vue_component__;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
2
|
-
|
|
3
|
-
var script = {
|
|
4
|
-
// We need this because without a v-model this input will reset on every keystroke
|
|
5
|
-
// https://github.com/bootstrap-vue/bootstrap-vue/issues/1915
|
|
6
|
-
data: () => ({
|
|
7
|
-
text: "This is some plain text.\nIt is read only and doesn't look like an input."
|
|
8
|
-
})
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
/* script */
|
|
12
|
-
const __vue_script__ = script;
|
|
13
|
-
|
|
14
|
-
/* template */
|
|
15
|
-
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('gl-form-textarea',{attrs:{"plaintext":""},model:{value:(_vm.text),callback:function ($$v) {_vm.text=$$v;},expression:"text"}})};
|
|
16
|
-
var __vue_staticRenderFns__ = [];
|
|
17
|
-
|
|
18
|
-
/* style */
|
|
19
|
-
const __vue_inject_styles__ = undefined;
|
|
20
|
-
/* scoped */
|
|
21
|
-
const __vue_scope_id__ = undefined;
|
|
22
|
-
/* module identifier */
|
|
23
|
-
const __vue_module_identifier__ = undefined;
|
|
24
|
-
/* functional template */
|
|
25
|
-
const __vue_is_functional_template__ = false;
|
|
26
|
-
/* style inject */
|
|
27
|
-
|
|
28
|
-
/* style inject SSR */
|
|
29
|
-
|
|
30
|
-
/* style inject shadow dom */
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
const __vue_component__ = __vue_normalize__(
|
|
35
|
-
{ render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
|
|
36
|
-
__vue_inject_styles__,
|
|
37
|
-
__vue_script__,
|
|
38
|
-
__vue_scope_id__,
|
|
39
|
-
__vue_is_functional_template__,
|
|
40
|
-
__vue_module_identifier__,
|
|
41
|
-
false,
|
|
42
|
-
undefined,
|
|
43
|
-
undefined,
|
|
44
|
-
undefined
|
|
45
|
-
);
|
|
46
|
-
|
|
47
|
-
export default __vue_component__;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
2
|
-
|
|
3
|
-
var script = {
|
|
4
|
-
data: () => ({
|
|
5
|
-
text: 'This is some readonly text.'
|
|
6
|
-
})
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
/* script */
|
|
10
|
-
const __vue_script__ = script;
|
|
11
|
-
|
|
12
|
-
/* template */
|
|
13
|
-
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('gl-form-textarea',{attrs:{"readonly":""},model:{value:(_vm.text),callback:function ($$v) {_vm.text=$$v;},expression:"text"}})};
|
|
14
|
-
var __vue_staticRenderFns__ = [];
|
|
15
|
-
|
|
16
|
-
/* style */
|
|
17
|
-
const __vue_inject_styles__ = undefined;
|
|
18
|
-
/* scoped */
|
|
19
|
-
const __vue_scope_id__ = undefined;
|
|
20
|
-
/* module identifier */
|
|
21
|
-
const __vue_module_identifier__ = undefined;
|
|
22
|
-
/* functional template */
|
|
23
|
-
const __vue_is_functional_template__ = false;
|
|
24
|
-
/* style inject */
|
|
25
|
-
|
|
26
|
-
/* style inject SSR */
|
|
27
|
-
|
|
28
|
-
/* style inject shadow dom */
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
const __vue_component__ = __vue_normalize__(
|
|
33
|
-
{ render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
|
|
34
|
-
__vue_inject_styles__,
|
|
35
|
-
__vue_script__,
|
|
36
|
-
__vue_scope_id__,
|
|
37
|
-
__vue_is_functional_template__,
|
|
38
|
-
__vue_module_identifier__,
|
|
39
|
-
false,
|
|
40
|
-
undefined,
|
|
41
|
-
undefined,
|
|
42
|
-
undefined
|
|
43
|
-
);
|
|
44
|
-
|
|
45
|
-
export default __vue_component__;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
2
|
-
|
|
3
|
-
var script = {
|
|
4
|
-
// We need this because without a v-model this input will reset on every keystroke
|
|
5
|
-
// https://github.com/bootstrap-vue/bootstrap-vue/issues/1915
|
|
6
|
-
data: () => ({
|
|
7
|
-
text: ''
|
|
8
|
-
})
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
/* script */
|
|
12
|
-
const __vue_script__ = script;
|
|
13
|
-
|
|
14
|
-
/* template */
|
|
15
|
-
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('gl-form-textarea',{attrs:{"placeholder":"Enter something","submit-on-enter":""},model:{value:(_vm.text),callback:function ($$v) {_vm.text=$$v;},expression:"text"}})};
|
|
16
|
-
var __vue_staticRenderFns__ = [];
|
|
17
|
-
|
|
18
|
-
/* style */
|
|
19
|
-
const __vue_inject_styles__ = undefined;
|
|
20
|
-
/* scoped */
|
|
21
|
-
const __vue_scope_id__ = undefined;
|
|
22
|
-
/* module identifier */
|
|
23
|
-
const __vue_module_identifier__ = undefined;
|
|
24
|
-
/* functional template */
|
|
25
|
-
const __vue_is_functional_template__ = false;
|
|
26
|
-
/* style inject */
|
|
27
|
-
|
|
28
|
-
/* style inject SSR */
|
|
29
|
-
|
|
30
|
-
/* style inject shadow dom */
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
const __vue_component__ = __vue_normalize__(
|
|
35
|
-
{ render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
|
|
36
|
-
__vue_inject_styles__,
|
|
37
|
-
__vue_script__,
|
|
38
|
-
__vue_scope_id__,
|
|
39
|
-
__vue_is_functional_template__,
|
|
40
|
-
__vue_module_identifier__,
|
|
41
|
-
false,
|
|
42
|
-
undefined,
|
|
43
|
-
undefined,
|
|
44
|
-
undefined
|
|
45
|
-
);
|
|
46
|
-
|
|
47
|
-
export default __vue_component__;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import FormTextAreaBasic from './form_textarea.basic.example';
|
|
2
|
-
import FormTextAreaInvalid from './form_textarea.invalid.example';
|
|
3
|
-
import FormTextAreaPlaintext from './form_textarea.plaintext.example';
|
|
4
|
-
import FormTextReadOnlytext from './form_textarea.readonly.example';
|
|
5
|
-
import FormTextSubmitOnEnter from './form_textarea.submit.example';
|
|
6
|
-
|
|
7
|
-
var index = [{
|
|
8
|
-
name: 'Basic',
|
|
9
|
-
items: [{
|
|
10
|
-
id: 'form-textarea-basic',
|
|
11
|
-
name: 'Basic',
|
|
12
|
-
description: 'Basic Form Textarea',
|
|
13
|
-
component: FormTextAreaBasic
|
|
14
|
-
}, {
|
|
15
|
-
id: 'form-textarea-invalid',
|
|
16
|
-
name: 'Invalid',
|
|
17
|
-
description: 'Invalid Form Textarea',
|
|
18
|
-
component: FormTextAreaInvalid
|
|
19
|
-
}, {
|
|
20
|
-
id: 'form-textarea-plaintext',
|
|
21
|
-
name: 'Plaintext',
|
|
22
|
-
description: 'Plaintext Form Textarea',
|
|
23
|
-
component: FormTextAreaPlaintext
|
|
24
|
-
}, {
|
|
25
|
-
id: 'form-textarea-readonly',
|
|
26
|
-
name: 'Read Only',
|
|
27
|
-
description: 'Read Only Form Textarea',
|
|
28
|
-
component: FormTextReadOnlytext
|
|
29
|
-
}, {
|
|
30
|
-
id: 'form-textarea-submit-on-enter',
|
|
31
|
-
name: 'Submit On Enter',
|
|
32
|
-
description: 'Submit On Enter Form Textarea',
|
|
33
|
-
component: FormTextSubmitOnEnter
|
|
34
|
-
}]
|
|
35
|
-
}];
|
|
36
|
-
|
|
37
|
-
export default index;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
export default {
|
|
3
|
-
// We need this because without a v-model this input will reset on every keystroke
|
|
4
|
-
// https://github.com/bootstrap-vue/bootstrap-vue/issues/1915
|
|
5
|
-
data: () => ({ text: '' }),
|
|
6
|
-
};
|
|
7
|
-
</script>
|
|
8
|
-
|
|
9
|
-
<template>
|
|
10
|
-
<gl-form-textarea v-model="text" placeholder="Enter something" />
|
|
11
|
-
</template>
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
export default {
|
|
3
|
-
// We need this because without a v-model this input will reset on every keystroke
|
|
4
|
-
// https://github.com/bootstrap-vue/bootstrap-vue/issues/1915
|
|
5
|
-
data: () => ({ text: 'This is invalid' }),
|
|
6
|
-
};
|
|
7
|
-
</script>
|
|
8
|
-
|
|
9
|
-
<template>
|
|
10
|
-
<gl-form-textarea v-model="text" placeholder="Enter something" :state="false" />
|
|
11
|
-
</template>
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
export default {
|
|
3
|
-
// We need this because without a v-model this input will reset on every keystroke
|
|
4
|
-
// https://github.com/bootstrap-vue/bootstrap-vue/issues/1915
|
|
5
|
-
data: () => ({
|
|
6
|
-
text: "This is some plain text.\nIt is read only and doesn't look like an input.",
|
|
7
|
-
}),
|
|
8
|
-
};
|
|
9
|
-
</script>
|
|
10
|
-
|
|
11
|
-
<template>
|
|
12
|
-
<gl-form-textarea v-model="text" plaintext />
|
|
13
|
-
</template>
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
export default {
|
|
3
|
-
// We need this because without a v-model this input will reset on every keystroke
|
|
4
|
-
// https://github.com/bootstrap-vue/bootstrap-vue/issues/1915
|
|
5
|
-
data: () => ({ text: '' }),
|
|
6
|
-
};
|
|
7
|
-
</script>
|
|
8
|
-
|
|
9
|
-
<template>
|
|
10
|
-
<gl-form-textarea v-model="text" placeholder="Enter something" submit-on-enter />
|
|
11
|
-
</template>
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import FormTextAreaBasic from './form_textarea.basic.example.vue';
|
|
2
|
-
import FormTextAreaInvalid from './form_textarea.invalid.example.vue';
|
|
3
|
-
import FormTextAreaPlaintext from './form_textarea.plaintext.example.vue';
|
|
4
|
-
import FormTextReadOnlytext from './form_textarea.readonly.example.vue';
|
|
5
|
-
import FormTextSubmitOnEnter from './form_textarea.submit.example.vue';
|
|
6
|
-
|
|
7
|
-
export default [
|
|
8
|
-
{
|
|
9
|
-
name: 'Basic',
|
|
10
|
-
items: [
|
|
11
|
-
{
|
|
12
|
-
id: 'form-textarea-basic',
|
|
13
|
-
name: 'Basic',
|
|
14
|
-
description: 'Basic Form Textarea',
|
|
15
|
-
component: FormTextAreaBasic,
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
id: 'form-textarea-invalid',
|
|
19
|
-
name: 'Invalid',
|
|
20
|
-
description: 'Invalid Form Textarea',
|
|
21
|
-
component: FormTextAreaInvalid,
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
id: 'form-textarea-plaintext',
|
|
25
|
-
name: 'Plaintext',
|
|
26
|
-
description: 'Plaintext Form Textarea',
|
|
27
|
-
component: FormTextAreaPlaintext,
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
id: 'form-textarea-readonly',
|
|
31
|
-
name: 'Read Only',
|
|
32
|
-
description: 'Read Only Form Textarea',
|
|
33
|
-
component: FormTextReadOnlytext,
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
id: 'form-textarea-submit-on-enter',
|
|
37
|
-
name: 'Submit On Enter',
|
|
38
|
-
description: 'Submit On Enter Form Textarea',
|
|
39
|
-
component: FormTextSubmitOnEnter,
|
|
40
|
-
},
|
|
41
|
-
],
|
|
42
|
-
},
|
|
43
|
-
];
|