@gitlab/ui 32.46.0 → 32.47.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/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/input_group_text/input_group_text.documentation.js +1 -5
- package/dist/components/charts/tooltip/tooltip.documentation.js +1 -5
- package/documentation/documented_stories.js +3 -0
- package/package.json +1 -1
- 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/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/charts/tooltip/tooltip.documentation.js +0 -3
- package/src/components/charts/tooltip/tooltip.stories.js +59 -44
- 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/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/charts/tooltip/examples/chart_tooltip.basic.example.js +0 -54
- package/dist/components/charts/tooltip/examples/index.js +0 -13
- 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/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/charts/tooltip/examples/chart_tooltip.basic.example.vue +0 -32
- package/src/components/charts/tooltip/examples/index.js +0 -15
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [32.47.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v32.46.0...v32.47.0) (2021-12-13)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **GlInputGroupText:** Migrate storybook story ([3fb2328](https://gitlab.com/gitlab-org/gitlab-ui/commit/3fb2328829b002480149bf5654c6026ff26fd670))
|
|
7
|
+
|
|
1
8
|
# [32.46.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v32.45.1...v32.46.0) (2021-12-13)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var form_combobox = "# GlFormCombobox\n\nUse this component to add a [`FormInput`](/?path=/story/base-form-form-input--default) component\nwith synchronous autocomplete dropdown. It behaves as follows:\n\n- Typing matches tokens; dropdown disappears when there is no match \n- Up and down arrows navigate the dropdown \n- Enter selects keyboard-highlighted item; clicking overrides this \n- Esc closes dropdown when it is open, clears field when it is not \n- Browser/native autocomplete dropdown hidden when ours is open, shows when it is not \n- Tab selects current entered text and moves to next field \n\nThis behavior based on\n[this w3c pattern](https://www.w3.org/TR/wai-aria-practices/examples/combobox/aria1.1pattern/listbox-combo.html)\nand [this accessible combobox example](https://alligator.io/vuejs/vue-a11y-autocomplete/).\n\n## Usage\n\nThe combobox accepts an array of string tokens, a `v-model`, and label text. Internally, it generates\nunique element IDs so multiple can be used on one page without clashing.\n\nOn selection it sets the input value to the selected string and emits a `value-selected` event for\nconsumption by parent components.\n\n```html\n<gl-form-combobox\n v-model=\"inputVal\"\n :token-list=\"tokens\"\n label-text=\"Combobox Label\"\n/>\n```\n\nIt does not have a loading state nor does it accept tokens other than strings. It allows for one\nselected value.\n\n### What if I need to load the options asynchronously?\n\nYou may want to look at [`GlSearchBoxByType`] or [`GlSearchBoxByClick`].\n\n### What if I need multiple options?\n\nThe [`GlTokenSelector`] may be what you need. Alternately, [`GlFilteredSearch`] will let you search\nand include tokens.\n\n## Edge cases\n\nThe algorithm to match tokens with the input is very naive. If you need to use the component with a\nvery large list of matches, you may want to update the implementation or use one of the search\ninputs, like [`GlSearchBoxByType`], [`GlSearchBoxByClick`], or [`GlFilteredSearch`].\n\n[`GlSearchBoxByType`]: https://gitlab-org.gitlab.io/gitlab-ui/?path=/story/base-search-box-by-type--default\n[`GlSearchBoxByClick`]: https://gitlab-org.gitlab.io/gitlab-ui/?path=/story/base-search-box-by-click--default\n[`GlTokenSelector`]: https://gitlab-org.gitlab.io/gitlab-ui/?path=/story/base-token-selector--default\n[`GlFilteredSearch`]: https://gitlab-org.gitlab.io/gitlab-ui/?path=/story/base-filtered-search--default\n";
|
|
1
|
+
var form_combobox = "Use this component to add a [`FormInput`](/?path=/story/base-form-form-input--default) component\nwith synchronous autocomplete dropdown. It behaves as follows:\n\n- Typing matches tokens; dropdown disappears when there is no match \n- Up and down arrows navigate the dropdown \n- Enter selects keyboard-highlighted item; clicking overrides this \n- Esc closes dropdown when it is open, clears field when it is not \n- Browser/native autocomplete dropdown hidden when ours is open, shows when it is not \n- Tab selects current entered text and moves to next field \n\nThis behavior based on\n[this w3c pattern](https://www.w3.org/TR/wai-aria-practices/examples/combobox/aria1.1pattern/listbox-combo.html)\nand [this accessible combobox example](https://alligator.io/vuejs/vue-a11y-autocomplete/).\n\n## Usage\n\nThe combobox accepts an array of string tokens, a `v-model`, and label text. Internally, it generates\nunique element IDs so multiple can be used on one page without clashing.\n\nOn selection it sets the input value to the selected string and emits a `value-selected` event for\nconsumption by parent components.\n\n```html\n<gl-form-combobox\n v-model=\"inputVal\"\n :token-list=\"tokens\"\n label-text=\"Combobox Label\"\n/>\n```\n\nIt does not have a loading state nor does it accept tokens other than strings. It allows for one\nselected value.\n\n### What if I need to load the options asynchronously?\n\nYou may want to look at [`GlSearchBoxByType`] or [`GlSearchBoxByClick`].\n\n### What if I need multiple options?\n\nThe [`GlTokenSelector`] may be what you need. Alternately, [`GlFilteredSearch`] will let you search\nand include tokens.\n\n## Edge cases\n\nThe algorithm to match tokens with the input is very naive. If you need to use the component with a\nvery large list of matches, you may want to update the implementation or use one of the search\ninputs, like [`GlSearchBoxByType`], [`GlSearchBoxByClick`], or [`GlFilteredSearch`].\n\n[`GlSearchBoxByType`]: https://gitlab-org.gitlab.io/gitlab-ui/?path=/story/base-search-box-by-type--default\n[`GlSearchBoxByClick`]: https://gitlab-org.gitlab.io/gitlab-ui/?path=/story/base-search-box-by-click--default\n[`GlTokenSelector`]: https://gitlab-org.gitlab.io/gitlab-ui/?path=/story/base-token-selector--default\n[`GlFilteredSearch`]: https://gitlab-org.gitlab.io/gitlab-ui/?path=/story/base-filtered-search--default\n";
|
|
4
2
|
|
|
5
3
|
var description = /*#__PURE__*/Object.freeze({
|
|
6
4
|
__proto__: null,
|
|
@@ -9,12 +7,7 @@ var description = /*#__PURE__*/Object.freeze({
|
|
|
9
7
|
|
|
10
8
|
var form_combobox_documentation = {
|
|
11
9
|
followsDesignSystem: true,
|
|
12
|
-
description
|
|
13
|
-
examples,
|
|
14
|
-
events: [{
|
|
15
|
-
event: 'value-selected',
|
|
16
|
-
description: 'Emitted when a value is selected.'
|
|
17
|
-
}]
|
|
10
|
+
description
|
|
18
11
|
};
|
|
19
12
|
|
|
20
13
|
export default form_combobox_documentation;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import examples from './examples';
|
|
2
|
-
|
|
3
1
|
var input_group_text = "### Under the hood\n\nUses [`BInputGroupText`](https://bootstrap-vue.org/docs/components/input-group#comp-ref-b-input-group-text)\nfrom Vue Boostrap\n";
|
|
4
2
|
|
|
5
3
|
var description = /*#__PURE__*/Object.freeze({
|
|
@@ -8,9 +6,7 @@ var description = /*#__PURE__*/Object.freeze({
|
|
|
8
6
|
});
|
|
9
7
|
|
|
10
8
|
var input_group_text_documentation = {
|
|
11
|
-
description
|
|
12
|
-
examples,
|
|
13
|
-
propsInfo: {}
|
|
9
|
+
description
|
|
14
10
|
};
|
|
15
11
|
|
|
16
12
|
export default input_group_text_documentation;
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import examples from './examples';
|
|
2
|
-
|
|
3
1
|
var description = "### ECharts custom tooltip\n\nUses GitLab UI's `popover` component in lieu of echart's tooltip.\n";
|
|
4
2
|
|
|
5
3
|
var tooltip_documentation = {
|
|
6
4
|
followsDesignSystem: false,
|
|
7
|
-
description
|
|
8
|
-
examples,
|
|
9
|
-
bootstrapComponent: 'b-popover'
|
|
5
|
+
description
|
|
10
6
|
};
|
|
11
7
|
|
|
12
8
|
export default tooltip_documentation;
|
package/package.json
CHANGED
|
@@ -1,14 +1,6 @@
|
|
|
1
|
-
import examples from './examples';
|
|
2
1
|
import * as description from './form_combobox.md';
|
|
3
2
|
|
|
4
3
|
export default {
|
|
5
4
|
followsDesignSystem: true,
|
|
6
5
|
description,
|
|
7
|
-
examples,
|
|
8
|
-
events: [
|
|
9
|
-
{
|
|
10
|
-
event: 'value-selected',
|
|
11
|
-
description: 'Emitted when a value is selected.',
|
|
12
|
-
},
|
|
13
|
-
],
|
|
14
6
|
};
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import { withKnobs, object, text } from '@storybook/addon-knobs';
|
|
2
|
-
import { documentedStoriesOf } from '../../../../../documentation/documented_stories';
|
|
3
1
|
import { tokenList, labelText } from './constants';
|
|
4
2
|
import readme from './form_combobox.md';
|
|
5
3
|
import GlFormCombobox from './form_combobox.vue';
|
|
6
4
|
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
const getProps = () => {
|
|
12
|
-
return {
|
|
13
|
-
tokenList: {
|
|
14
|
-
type: Array,
|
|
15
|
-
default: object('tokens', tokenList),
|
|
16
|
-
},
|
|
17
|
-
labelText: {
|
|
18
|
-
type: String,
|
|
19
|
-
default: text('label text', labelText),
|
|
20
|
-
},
|
|
21
|
-
};
|
|
22
|
-
};
|
|
5
|
+
const getProps = () => ({
|
|
6
|
+
tokenList,
|
|
7
|
+
labelText,
|
|
8
|
+
});
|
|
23
9
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
},
|
|
34
|
-
template: `
|
|
10
|
+
const Template = (args) => ({
|
|
11
|
+
components: { GlFormCombobox },
|
|
12
|
+
data: () => {
|
|
13
|
+
return {
|
|
14
|
+
value: '',
|
|
15
|
+
};
|
|
16
|
+
},
|
|
17
|
+
props: Object.keys(args),
|
|
18
|
+
template: `
|
|
35
19
|
<gl-form-combobox
|
|
36
20
|
v-model="value"
|
|
37
21
|
:token-list="tokenList"
|
|
38
22
|
:labelText="labelText"
|
|
39
23
|
/>
|
|
40
24
|
`,
|
|
41
|
-
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
export const Default = Template.bind({});
|
|
28
|
+
Default.args = getProps();
|
|
29
|
+
|
|
30
|
+
export default {
|
|
31
|
+
title: 'base/form/form-combobox',
|
|
32
|
+
component: GlFormCombobox,
|
|
33
|
+
parameters: {
|
|
34
|
+
knobs: { disable: true },
|
|
35
|
+
docs: {
|
|
36
|
+
description: {
|
|
37
|
+
component: readme,
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
};
|
|
@@ -1,25 +1,31 @@
|
|
|
1
|
-
import { documentedStoriesOf } from '../../../../../documentation/documented_stories';
|
|
2
1
|
import readme from './input_group_text.md';
|
|
3
2
|
import GlInputGroupText from './input_group_text.vue';
|
|
4
3
|
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
const defaultProps = {};
|
|
10
|
-
|
|
11
|
-
function generateProps(props = {}) {
|
|
12
|
-
return {
|
|
13
|
-
...defaultProps,
|
|
14
|
-
...props,
|
|
15
|
-
};
|
|
16
|
-
}
|
|
4
|
+
const generateProps = (props = {}) => ({
|
|
5
|
+
...props,
|
|
6
|
+
});
|
|
17
7
|
|
|
18
|
-
|
|
19
|
-
components,
|
|
20
|
-
props:
|
|
21
|
-
data: () => ({}),
|
|
8
|
+
const Template = (args) => ({
|
|
9
|
+
components: { GlInputGroupText },
|
|
10
|
+
props: Object.keys(args),
|
|
22
11
|
template: `
|
|
23
12
|
<gl-input-group-text>Some text</gl-input-group-text>
|
|
24
13
|
`,
|
|
25
|
-
})
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
export const Default = Template.bind({});
|
|
17
|
+
Default.args = generateProps();
|
|
18
|
+
|
|
19
|
+
export default {
|
|
20
|
+
title: 'base/form/input-group-text',
|
|
21
|
+
component: GlInputGroupText,
|
|
22
|
+
parameters: {
|
|
23
|
+
controls: { disable: true },
|
|
24
|
+
knobs: { disable: true },
|
|
25
|
+
docs: {
|
|
26
|
+
description: {
|
|
27
|
+
component: readme,
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
};
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { GlChart, GlChartTooltip, GlChartSeriesLabel } from '../../../../charts';
|
|
2
|
-
import { documentedStoriesOf } from '../../../../documentation/documented_stories';
|
|
3
2
|
import {
|
|
4
3
|
SERIES_NAME,
|
|
5
4
|
SERIES_NAME_LONG,
|
|
6
5
|
SERIES_NAME_LONG_WITHOUT_SPACES,
|
|
7
6
|
} from '../../../utils/stories_utils';
|
|
8
|
-
|
|
9
7
|
import readme from './tooltip.md';
|
|
10
8
|
|
|
11
9
|
const components = {
|
|
@@ -33,10 +31,9 @@ const baseStoryOptions = {
|
|
|
33
31
|
},
|
|
34
32
|
};
|
|
35
33
|
|
|
36
|
-
const getStoryOptions = (tooltipContent) => {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
template: `<div class="position-relative">
|
|
34
|
+
const getStoryOptions = (tooltipContent) => ({
|
|
35
|
+
...baseStoryOptions,
|
|
36
|
+
template: `<div class="position-relative">
|
|
40
37
|
<gl-chart
|
|
41
38
|
:options="options"
|
|
42
39
|
:height="100"
|
|
@@ -57,43 +54,61 @@ const getStoryOptions = (tooltipContent) => {
|
|
|
57
54
|
${tooltipContent}
|
|
58
55
|
</gl-chart-tooltip>
|
|
59
56
|
</div>`,
|
|
60
|
-
|
|
61
|
-
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
export const Default = (args, { argTypes }) => ({
|
|
60
|
+
props: Object.keys(argTypes),
|
|
61
|
+
...getStoryOptions('Example Content'),
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
export const WithLongSeriesLabel = (args, { argTypes }) => ({
|
|
65
|
+
props: Object.keys(argTypes),
|
|
66
|
+
...getStoryOptions(`
|
|
67
|
+
<gl-chart-series-label color="#1F78D1">${SERIES_NAME[SERIES_NAME_LONG]}</gl-chart-series-label>
|
|
68
|
+
`),
|
|
69
|
+
});
|
|
62
70
|
|
|
63
|
-
|
|
64
|
-
.
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
)
|
|
70
|
-
.add('with long series label with no spaces', () =>
|
|
71
|
-
getStoryOptions(`
|
|
72
|
-
<gl-chart-series-label color="#1F78D1">${SERIES_NAME[SERIES_NAME_LONG_WITHOUT_SPACES]}</gl-chart-series-label>
|
|
73
|
-
`)
|
|
74
|
-
)
|
|
71
|
+
export const WithLongSeriesLabelWithNoSpaces = (args, { argTypes }) => ({
|
|
72
|
+
props: Object.keys(argTypes),
|
|
73
|
+
...getStoryOptions(`
|
|
74
|
+
<gl-chart-series-label color="#1F78D1">${SERIES_NAME[SERIES_NAME_LONG_WITHOUT_SPACES]}</gl-chart-series-label>
|
|
75
|
+
`),
|
|
76
|
+
});
|
|
75
77
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
78
|
+
export const TitleProp = (args, { argTypes }) => ({
|
|
79
|
+
props: Object.keys(argTypes),
|
|
80
|
+
...baseStoryOptions,
|
|
81
|
+
template: `
|
|
82
|
+
<div class="position-relative">
|
|
83
|
+
<gl-chart
|
|
84
|
+
:options="options"
|
|
85
|
+
:height="100"
|
|
86
|
+
@created="onCreated"
|
|
87
|
+
/>
|
|
88
|
+
<gl-chart-tooltip
|
|
89
|
+
v-if="chart"
|
|
90
|
+
:chart="chart"
|
|
91
|
+
:show="showTooltip"
|
|
92
|
+
:top="top"
|
|
93
|
+
:left="left"
|
|
94
|
+
title="Title from prop"
|
|
95
|
+
>
|
|
96
|
+
Example content
|
|
97
|
+
</gl-chart-tooltip>
|
|
98
|
+
</div>`,
|
|
99
|
+
});
|
|
100
|
+
|
|
101
|
+
export default {
|
|
102
|
+
title: 'charts/chart-tooltip',
|
|
103
|
+
component: GlChartTooltip,
|
|
104
|
+
parameters: {
|
|
105
|
+
bootstrapComponent: 'b-popover',
|
|
106
|
+
knobs: { disable: true },
|
|
107
|
+
controls: { disable: true },
|
|
108
|
+
docs: {
|
|
109
|
+
description: {
|
|
110
|
+
component: readme,
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
},
|
|
114
|
+
};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
2
|
-
|
|
3
|
-
var script = {
|
|
4
|
-
tokens: ['giraffe', 'dog', 'dodo', 'komodo dragon', 'hippo', 'platypus', 'jackalope', 'quetzal', 'badger', 'vicuña', 'whale', 'xenarthra'],
|
|
5
|
-
|
|
6
|
-
data() {
|
|
7
|
-
return {
|
|
8
|
-
inputVal: ''
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
/* script */
|
|
15
|
-
const __vue_script__ = script;
|
|
16
|
-
|
|
17
|
-
/* template */
|
|
18
|
-
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('gl-form-combobox',{attrs:{"token-list":_vm.$options.tokens,"label-text":"Animals We Tolerate"},model:{value:(_vm.inputVal),callback:function ($$v) {_vm.inputVal=$$v;},expression:"inputVal"}})};
|
|
19
|
-
var __vue_staticRenderFns__ = [];
|
|
20
|
-
|
|
21
|
-
/* style */
|
|
22
|
-
const __vue_inject_styles__ = undefined;
|
|
23
|
-
/* scoped */
|
|
24
|
-
const __vue_scope_id__ = undefined;
|
|
25
|
-
/* module identifier */
|
|
26
|
-
const __vue_module_identifier__ = undefined;
|
|
27
|
-
/* functional template */
|
|
28
|
-
const __vue_is_functional_template__ = false;
|
|
29
|
-
/* style inject */
|
|
30
|
-
|
|
31
|
-
/* style inject SSR */
|
|
32
|
-
|
|
33
|
-
/* style inject shadow dom */
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
const __vue_component__ = __vue_normalize__(
|
|
38
|
-
{ render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
|
|
39
|
-
__vue_inject_styles__,
|
|
40
|
-
__vue_script__,
|
|
41
|
-
__vue_scope_id__,
|
|
42
|
-
__vue_is_functional_template__,
|
|
43
|
-
__vue_module_identifier__,
|
|
44
|
-
false,
|
|
45
|
-
undefined,
|
|
46
|
-
undefined,
|
|
47
|
-
undefined
|
|
48
|
-
);
|
|
49
|
-
|
|
50
|
-
export default __vue_component__;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import BasicExample from './input_group_text.basic.example';
|
|
2
|
-
|
|
3
|
-
var index = [{
|
|
4
|
-
name: 'Basic',
|
|
5
|
-
items: [{
|
|
6
|
-
id: 'input-group-text-basic',
|
|
7
|
-
name: 'Basic',
|
|
8
|
-
description: 'Basic Input Group Text',
|
|
9
|
-
component: BasicExample
|
|
10
|
-
}]
|
|
11
|
-
}];
|
|
12
|
-
|
|
13
|
-
export default index;
|
package/dist/components/base/form/input_group_text/examples/input_group_text.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-input-group-text',[_vm._v("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__;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
2
|
-
|
|
3
|
-
var script = {
|
|
4
|
-
data() {
|
|
5
|
-
return {
|
|
6
|
-
echartInstance: null
|
|
7
|
-
};
|
|
8
|
-
},
|
|
9
|
-
|
|
10
|
-
methods: {
|
|
11
|
-
onCreated(chart) {
|
|
12
|
-
this.echartInstance = chart;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
/* script */
|
|
19
|
-
const __vue_script__ = script;
|
|
20
|
-
|
|
21
|
-
/* template */
|
|
22
|
-
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"position-relative"},[_c('gl-chart',{attrs:{"options":{},"height":100},on:{"created":_vm.onCreated}}),_vm._v(" "),(_vm.echartInstance)?_c('gl-chart-tooltip',{attrs:{"chart":_vm.echartInstance,"show":true,"top":"50%","left":"0px"},scopedSlots:_vm._u([{key:"title",fn:function(){return [_c('div',[_vm._v("Tooltip Title")])]},proxy:true}],null,false,1548852484)},[_vm._v("\n Basic Tooltip Content\n ")]):_vm._e()],1)};
|
|
23
|
-
var __vue_staticRenderFns__ = [];
|
|
24
|
-
|
|
25
|
-
/* style */
|
|
26
|
-
const __vue_inject_styles__ = undefined;
|
|
27
|
-
/* scoped */
|
|
28
|
-
const __vue_scope_id__ = undefined;
|
|
29
|
-
/* module identifier */
|
|
30
|
-
const __vue_module_identifier__ = undefined;
|
|
31
|
-
/* functional template */
|
|
32
|
-
const __vue_is_functional_template__ = false;
|
|
33
|
-
/* style inject */
|
|
34
|
-
|
|
35
|
-
/* style inject SSR */
|
|
36
|
-
|
|
37
|
-
/* style inject shadow dom */
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
const __vue_component__ = __vue_normalize__(
|
|
42
|
-
{ render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
|
|
43
|
-
__vue_inject_styles__,
|
|
44
|
-
__vue_script__,
|
|
45
|
-
__vue_scope_id__,
|
|
46
|
-
__vue_is_functional_template__,
|
|
47
|
-
__vue_module_identifier__,
|
|
48
|
-
false,
|
|
49
|
-
undefined,
|
|
50
|
-
undefined,
|
|
51
|
-
undefined
|
|
52
|
-
);
|
|
53
|
-
|
|
54
|
-
export default __vue_component__;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import ChartTooltipBasicExample from './chart_tooltip.basic.example';
|
|
2
|
-
|
|
3
|
-
var index = [{
|
|
4
|
-
name: 'Basic',
|
|
5
|
-
items: [{
|
|
6
|
-
id: 'chart-tooltip-basic',
|
|
7
|
-
name: 'Basic',
|
|
8
|
-
description: 'Basic Tooltip',
|
|
9
|
-
component: ChartTooltipBasicExample
|
|
10
|
-
}]
|
|
11
|
-
}];
|
|
12
|
-
|
|
13
|
-
export default index;
|
|
@@ -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,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,32 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
export default {
|
|
3
|
-
data() {
|
|
4
|
-
return {
|
|
5
|
-
echartInstance: null,
|
|
6
|
-
};
|
|
7
|
-
},
|
|
8
|
-
methods: {
|
|
9
|
-
onCreated(chart) {
|
|
10
|
-
this.echartInstance = chart;
|
|
11
|
-
},
|
|
12
|
-
},
|
|
13
|
-
};
|
|
14
|
-
</script>
|
|
15
|
-
|
|
16
|
-
<template>
|
|
17
|
-
<div class="position-relative">
|
|
18
|
-
<gl-chart :options="{}" :height="100" @created="onCreated" />
|
|
19
|
-
<gl-chart-tooltip
|
|
20
|
-
v-if="echartInstance"
|
|
21
|
-
:chart="echartInstance"
|
|
22
|
-
:show="true"
|
|
23
|
-
top="50%"
|
|
24
|
-
left="0px"
|
|
25
|
-
>
|
|
26
|
-
<template #title>
|
|
27
|
-
<div>Tooltip Title</div>
|
|
28
|
-
</template>
|
|
29
|
-
Basic Tooltip Content
|
|
30
|
-
</gl-chart-tooltip>
|
|
31
|
-
</div>
|
|
32
|
-
</template>
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import ChartTooltipBasicExample from './chart_tooltip.basic.example.vue';
|
|
2
|
-
|
|
3
|
-
export default [
|
|
4
|
-
{
|
|
5
|
-
name: 'Basic',
|
|
6
|
-
items: [
|
|
7
|
-
{
|
|
8
|
-
id: 'chart-tooltip-basic',
|
|
9
|
-
name: 'Basic',
|
|
10
|
-
description: 'Basic Tooltip',
|
|
11
|
-
component: ChartTooltipBasicExample,
|
|
12
|
-
},
|
|
13
|
-
],
|
|
14
|
-
},
|
|
15
|
-
];
|