@gitlab/ui 36.4.0 → 36.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +28 -0
- package/dist/components/base/drawer/drawer.documentation.js +2 -5
- package/dist/components/base/form/form_radio_group/form_radio_group.documentation.js +2 -48
- package/dist/components/base/form/form_radio_group/form_radio_group.js +22 -2
- package/dist/components/base/pagination/pagination.js +1 -1
- package/dist/components/charts/heatmap/heatmap.documentation.js +0 -3
- package/dist/components/charts/series_label/series_label.documentation.js +2 -5
- package/dist/index.css +2 -2
- 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 +4 -0
- package/package.json +11 -11
- package/scss_to_js/scss_variables.js +1 -0
- package/scss_to_js/scss_variables.json +5 -0
- package/src/components/base/breadcrumb/breadcrumb.stories.js +8 -8
- package/src/components/base/drawer/drawer.documentation.js +0 -2
- package/src/components/base/drawer/drawer.md +0 -6
- package/src/components/base/drawer/drawer.stories.js +66 -34
- package/src/components/base/form/form_radio_group/form_radio_group.documentation.js +0 -48
- package/src/components/base/form/form_radio_group/form_radio_group.md +0 -2
- package/src/components/base/form/form_radio_group/form_radio_group.stories.js +50 -29
- package/src/components/base/form/form_radio_group/form_radio_group.vue +22 -2
- package/src/components/base/paginated_list/__snapshots__/paginated_list.spec.js.snap +10 -10
- package/src/components/base/pagination/pagination.stories.js +5 -1
- package/src/components/base/pagination/pagination.vue +1 -1
- package/src/components/charts/heatmap/heatmap.documentation.js +0 -2
- package/src/components/charts/heatmap/heatmap.stories.js +59 -42
- package/src/components/charts/series_label/series_label.documentation.js +0 -2
- package/src/components/charts/series_label/series_label.md +0 -2
- package/src/components/charts/series_label/series_label.stories.js +62 -59
- package/src/scss/utilities.scss +48 -0
- package/src/scss/utility-mixins/border.scss +21 -0
- package/src/scss/utility-mixins/grid.scss +4 -0
- package/src/scss/variables.scss +2 -0
- package/dist/components/base/drawer/examples/drawer.basic.example.js +0 -58
- package/dist/components/base/drawer/examples/index.js +0 -13
- package/dist/components/base/form/form_radio_group/examples/form_radio_group.options_array.example.js +0 -59
- package/dist/components/base/form/form_radio_group/examples/form_radio_group.slots.example.js +0 -48
- package/dist/components/base/form/form_radio_group/examples/index.js +0 -17
- package/dist/components/charts/heatmap/examples/heatmap.custom_options.example.js +0 -79
- package/dist/components/charts/heatmap/examples/heatmap.hourly.example.js +0 -70
- package/dist/components/charts/heatmap/examples/heatmap.responsive.example.js +0 -70
- package/dist/components/charts/heatmap/examples/heatmap.totals.example.js +0 -62
- package/dist/components/charts/heatmap/examples/index.js +0 -31
- package/dist/components/charts/series_label/examples/index.js +0 -13
- package/dist/components/charts/series_label/examples/series_label.basic.example.js +0 -38
- package/src/components/base/drawer/examples/drawer.basic.example.vue +0 -29
- package/src/components/base/drawer/examples/index.js +0 -15
- package/src/components/base/form/form_radio_group/examples/form_radio_group.options_array.example.vue +0 -27
- package/src/components/base/form/form_radio_group/examples/form_radio_group.slots.example.vue +0 -21
- package/src/components/base/form/form_radio_group/examples/index.js +0 -20
- package/src/components/charts/heatmap/examples/heatmap.custom_options.example.vue +0 -70
- package/src/components/charts/heatmap/examples/heatmap.hourly.example.vue +0 -62
- package/src/components/charts/heatmap/examples/heatmap.responsive.example.vue +0 -63
- package/src/components/charts/heatmap/examples/heatmap.totals.example.vue +0 -38
- package/src/components/charts/heatmap/examples/index.js +0 -36
- package/src/components/charts/series_label/examples/index.js +0 -15
- package/src/components/charts/series_label/examples/series_label.basic.example.vue +0 -3
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import { GlHeatmap } from '../../../charts';
|
|
2
|
-
import { documentedStoriesOf } from '../../../../documentation/documented_stories';
|
|
3
2
|
import { toolbox } from '../../../utils/charts/story_config';
|
|
4
3
|
import readme from '../area/area.md';
|
|
5
4
|
|
|
6
|
-
const components = {
|
|
7
|
-
GlHeatmap,
|
|
8
|
-
};
|
|
9
|
-
|
|
10
5
|
function generateData() {
|
|
11
6
|
let data = [
|
|
12
7
|
[5, 0, 5],
|
|
@@ -21,46 +16,68 @@ function generateData() {
|
|
|
21
16
|
return data;
|
|
22
17
|
}
|
|
23
18
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
data() {
|
|
27
|
-
return {
|
|
28
|
-
data: generateData(),
|
|
29
|
-
xAxisLabels: ['12', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11'],
|
|
30
|
-
yAxisLabels: ['Sat', 'Fri', 'Thu', 'Wed', 'Tue', 'Mon', 'Sun'],
|
|
31
|
-
xAxisName: 'Hour',
|
|
32
|
-
yAxisName: 'Day',
|
|
33
|
-
};
|
|
34
|
-
},
|
|
35
|
-
components,
|
|
36
|
-
template: `<gl-heatmap
|
|
19
|
+
const template = `
|
|
20
|
+
<gl-heatmap
|
|
37
21
|
:data-series="data"
|
|
38
22
|
:x-axis-labels="xAxisLabels"
|
|
39
23
|
:y-axis-labels="yAxisLabels"
|
|
40
24
|
:x-axis-name="xAxisName"
|
|
41
25
|
:y-axis-name="yAxisName"
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
26
|
+
:options="options"
|
|
27
|
+
/>
|
|
28
|
+
`;
|
|
29
|
+
|
|
30
|
+
const generateProps = ({
|
|
31
|
+
data = generateData(),
|
|
32
|
+
xAxisLabels = ['12', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11'],
|
|
33
|
+
yAxisLabels = ['Sat', 'Fri', 'Thu', 'Wed', 'Tue', 'Mon', 'Sun'],
|
|
34
|
+
xAxisName = 'Hour',
|
|
35
|
+
yAxisName = 'Day',
|
|
36
|
+
options = {},
|
|
37
|
+
} = {}) => ({
|
|
38
|
+
data,
|
|
39
|
+
xAxisLabels,
|
|
40
|
+
yAxisLabels,
|
|
41
|
+
xAxisName,
|
|
42
|
+
yAxisName,
|
|
43
|
+
options,
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
const Template = (args, { argTypes }) => ({
|
|
47
|
+
components: {
|
|
48
|
+
GlHeatmap,
|
|
49
|
+
},
|
|
50
|
+
props: Object.keys(argTypes),
|
|
51
|
+
template,
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
export const Default = Template.bind({});
|
|
55
|
+
Default.args = generateProps();
|
|
56
|
+
|
|
57
|
+
export const WithToolbox = Template.bind({});
|
|
58
|
+
WithToolbox.args = generateProps({ options: { toolbox } });
|
|
59
|
+
|
|
60
|
+
export default {
|
|
61
|
+
title: 'charts/heatmap',
|
|
62
|
+
component: GlHeatmap,
|
|
63
|
+
parameters: {
|
|
64
|
+
knobs: { disable: true },
|
|
65
|
+
docs: {
|
|
66
|
+
description: {
|
|
67
|
+
component: readme,
|
|
68
|
+
},
|
|
56
69
|
},
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
70
|
+
},
|
|
71
|
+
argTypes: {
|
|
72
|
+
showToolbox: { control: { disable: true } },
|
|
73
|
+
toolboxZoomIconPath: { control: { disable: true } },
|
|
74
|
+
toolboxBackIconPath: { control: { disable: true } },
|
|
75
|
+
toolboxRestoreIconPath: { control: { disable: true } },
|
|
76
|
+
toolboxSaveAsImageIconPath: { control: { disable: true } },
|
|
77
|
+
dataSeries: { control: { disable: true } },
|
|
78
|
+
formatTooltipText: { control: { disable: true } },
|
|
79
|
+
legendAverageText: { control: { disable: true } },
|
|
80
|
+
legendMaxText: { control: { disable: true } },
|
|
81
|
+
responsive: { control: { disable: true } },
|
|
82
|
+
},
|
|
83
|
+
};
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { withKnobs, text } from '@storybook/addon-knobs';
|
|
2
1
|
import { GlChartSeriesLabel } from '../../../charts';
|
|
3
|
-
import { documentedStoriesOf } from '../../../../documentation/documented_stories';
|
|
4
2
|
import { colorPaletteDefault } from '../../../utils/charts/theme';
|
|
5
3
|
import {
|
|
6
4
|
SERIES_NAME,
|
|
@@ -10,67 +8,72 @@ import {
|
|
|
10
8
|
} from '../../../utils/stories_utils';
|
|
11
9
|
import readme from './series_label.md';
|
|
12
10
|
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
color
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
type: {
|
|
22
|
-
default: text('Series Type', type),
|
|
23
|
-
},
|
|
11
|
+
const generateProps = ({
|
|
12
|
+
color = colorPaletteDefault[0],
|
|
13
|
+
type = 'solid',
|
|
14
|
+
text = SERIES_NAME[SERIES_NAME_SHORT],
|
|
15
|
+
} = {}) => ({
|
|
16
|
+
color,
|
|
17
|
+
type,
|
|
18
|
+
text,
|
|
24
19
|
});
|
|
25
20
|
|
|
26
|
-
const template =
|
|
21
|
+
const template = `
|
|
22
|
+
<gl-chart-series-label
|
|
27
23
|
:color="color"
|
|
28
24
|
:type="type"
|
|
29
25
|
>
|
|
30
|
-
{{
|
|
26
|
+
{{ text }}
|
|
31
27
|
</gl-chart-series-label>`;
|
|
32
28
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
29
|
+
const Template = (_args, { argTypes }) => ({
|
|
30
|
+
components: {
|
|
31
|
+
GlChartSeriesLabel,
|
|
32
|
+
},
|
|
33
|
+
props: Object.keys(argTypes),
|
|
34
|
+
template,
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
export const Default = Template.bind({});
|
|
38
|
+
Default.args = generateProps({ color: '' });
|
|
39
|
+
|
|
40
|
+
export const WithLongName = Template.bind({});
|
|
41
|
+
WithLongName.args = generateProps({ color: '', text: SERIES_NAME[SERIES_NAME_LONG] });
|
|
42
|
+
|
|
43
|
+
export const WithLongNameWithNoSpaces = Template.bind({});
|
|
44
|
+
WithLongNameWithNoSpaces.args = generateProps({
|
|
45
|
+
color: '',
|
|
46
|
+
text: SERIES_NAME[SERIES_NAME_LONG_WITHOUT_SPACES],
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
export const WithColorDashed = Template.bind({});
|
|
50
|
+
WithColorDashed.args = generateProps({ type: 'dashed', text: SERIES_NAME[SERIES_NAME_SHORT] });
|
|
51
|
+
|
|
52
|
+
export const WithColor = Template.bind({});
|
|
53
|
+
WithColor.args = generateProps({ text: SERIES_NAME[SERIES_NAME_SHORT] });
|
|
54
|
+
|
|
55
|
+
export const WithColorAndLongName = Template.bind({});
|
|
56
|
+
WithColorAndLongName.args = generateProps({ text: SERIES_NAME[SERIES_NAME_LONG] });
|
|
57
|
+
|
|
58
|
+
export const WithColorAndLongNameWithNoSpaces = Template.bind({});
|
|
59
|
+
WithColorAndLongNameWithNoSpaces.args = generateProps({
|
|
60
|
+
text: SERIES_NAME[SERIES_NAME_LONG_WITHOUT_SPACES],
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
export default {
|
|
64
|
+
title: 'charts/chart-series-label',
|
|
65
|
+
component: GlChartSeriesLabel,
|
|
66
|
+
parameters: {
|
|
67
|
+
knobs: { disable: true },
|
|
68
|
+
docs: {
|
|
69
|
+
description: {
|
|
70
|
+
component: readme,
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
argTypes: {
|
|
75
|
+
color: {
|
|
76
|
+
control: 'color',
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
};
|
package/src/scss/utilities.scss
CHANGED
|
@@ -865,6 +865,46 @@
|
|
|
865
865
|
.gl-bg-chevron-down\! {
|
|
866
866
|
background-image: url($gl-icon-chevron-down) !important
|
|
867
867
|
}
|
|
868
|
+
.gl-border {
|
|
869
|
+
border: solid $gl-border-size-1 $border-color;
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
.gl-border\! {
|
|
873
|
+
border: solid $gl-border-size-1 $border-color !important;
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
.gl-border-t {
|
|
877
|
+
border-top: solid $gl-border-size-1 $border-color;
|
|
878
|
+
}
|
|
879
|
+
|
|
880
|
+
.gl-border-t\! {
|
|
881
|
+
border-top: solid $gl-border-size-1 $border-color !important;
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
.gl-border-b {
|
|
885
|
+
border-bottom: solid $gl-border-size-1 $border-color;
|
|
886
|
+
}
|
|
887
|
+
|
|
888
|
+
.gl-border-b\! {
|
|
889
|
+
border-bottom: solid $gl-border-size-1 $border-color !important;
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
.gl-border-l {
|
|
893
|
+
border-left: solid $gl-border-size-1 $border-color;
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
.gl-border-l\! {
|
|
897
|
+
border-left: solid $gl-border-size-1 $border-color !important;
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
.gl-border-r {
|
|
901
|
+
border-right: solid $gl-border-size-1 $border-color;
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
.gl-border-r\! {
|
|
905
|
+
border-right: solid $gl-border-size-1 $border-color !important;
|
|
906
|
+
}
|
|
907
|
+
|
|
868
908
|
.gl-border-none {
|
|
869
909
|
border-style: none;
|
|
870
910
|
}
|
|
@@ -3295,6 +3335,14 @@
|
|
|
3295
3335
|
grid-column-start: 1 !important
|
|
3296
3336
|
}
|
|
3297
3337
|
|
|
3338
|
+
.gl-grid-template-columns-2 {
|
|
3339
|
+
grid-template-columns: 1fr 1fr
|
|
3340
|
+
}
|
|
3341
|
+
|
|
3342
|
+
.gl-grid-template-columns-2\! {
|
|
3343
|
+
grid-template-columns: 1fr 1fr !important
|
|
3344
|
+
}
|
|
3345
|
+
|
|
3298
3346
|
.gl-list-style-none {
|
|
3299
3347
|
list-style-type: none
|
|
3300
3348
|
}
|
|
@@ -3,6 +3,27 @@
|
|
|
3
3
|
*
|
|
4
4
|
* naming convention: gl-border-{position}-{style}
|
|
5
5
|
*/
|
|
6
|
+
|
|
7
|
+
@mixin gl-border {
|
|
8
|
+
border: solid $gl-border-size-1 $border-color;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@mixin gl-border-t {
|
|
12
|
+
border-top: solid $gl-border-size-1 $border-color;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@mixin gl-border-b {
|
|
16
|
+
border-bottom: solid $gl-border-size-1 $border-color;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@mixin gl-border-l {
|
|
20
|
+
border-left: solid $gl-border-size-1 $border-color;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@mixin gl-border-r {
|
|
24
|
+
border-right: solid $gl-border-size-1 $border-color;
|
|
25
|
+
}
|
|
26
|
+
|
|
6
27
|
@mixin gl-border-none {
|
|
7
28
|
border-style: none;
|
|
8
29
|
}
|
package/src/scss/variables.scss
CHANGED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
2
|
-
|
|
3
|
-
var script = {
|
|
4
|
-
data() {
|
|
5
|
-
return {
|
|
6
|
-
drawerOpened: false
|
|
7
|
-
};
|
|
8
|
-
},
|
|
9
|
-
|
|
10
|
-
methods: {
|
|
11
|
-
toggle() {
|
|
12
|
-
this.drawerOpened = !this.drawerOpened;
|
|
13
|
-
},
|
|
14
|
-
|
|
15
|
-
close() {
|
|
16
|
-
this.drawerOpened = false;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
/* script */
|
|
23
|
-
const __vue_script__ = script;
|
|
24
|
-
|
|
25
|
-
/* template */
|
|
26
|
-
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('gl-button',{on:{"click":_vm.toggle}},[_vm._v("Toggle drawer")]),_vm._v(" "),_c('gl-drawer',{attrs:{"open":_vm.drawerOpened},on:{"close":_vm.close},scopedSlots:_vm._u([{key:"header",fn:function(){return [_vm._v("Your Title")]},proxy:true}])},[_vm._v(" "),_c('div',[_c('p',[_vm._v("First Body Item")])])])],1)};
|
|
27
|
-
var __vue_staticRenderFns__ = [];
|
|
28
|
-
|
|
29
|
-
/* style */
|
|
30
|
-
const __vue_inject_styles__ = undefined;
|
|
31
|
-
/* scoped */
|
|
32
|
-
const __vue_scope_id__ = undefined;
|
|
33
|
-
/* module identifier */
|
|
34
|
-
const __vue_module_identifier__ = undefined;
|
|
35
|
-
/* functional template */
|
|
36
|
-
const __vue_is_functional_template__ = false;
|
|
37
|
-
/* style inject */
|
|
38
|
-
|
|
39
|
-
/* style inject SSR */
|
|
40
|
-
|
|
41
|
-
/* style inject shadow dom */
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
const __vue_component__ = __vue_normalize__(
|
|
46
|
-
{ render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
|
|
47
|
-
__vue_inject_styles__,
|
|
48
|
-
__vue_script__,
|
|
49
|
-
__vue_scope_id__,
|
|
50
|
-
__vue_is_functional_template__,
|
|
51
|
-
__vue_module_identifier__,
|
|
52
|
-
false,
|
|
53
|
-
undefined,
|
|
54
|
-
undefined,
|
|
55
|
-
undefined
|
|
56
|
-
);
|
|
57
|
-
|
|
58
|
-
export default __vue_component__;
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
2
|
-
|
|
3
|
-
var script = {
|
|
4
|
-
data() {
|
|
5
|
-
return {
|
|
6
|
-
selected: 'String option',
|
|
7
|
-
options: ['String option', {
|
|
8
|
-
text: 'Object option',
|
|
9
|
-
value: 'object'
|
|
10
|
-
}, {
|
|
11
|
-
html: '<i>HTML</i> option',
|
|
12
|
-
value: 'html'
|
|
13
|
-
}, {
|
|
14
|
-
text: 'Disabled option',
|
|
15
|
-
value: 'disabledOption',
|
|
16
|
-
disabled: true
|
|
17
|
-
}]
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
/* script */
|
|
24
|
-
const __vue_script__ = script;
|
|
25
|
-
|
|
26
|
-
/* template */
|
|
27
|
-
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('gl-form-radio-group',{attrs:{"options":_vm.options},model:{value:(_vm.selected),callback:function ($$v) {_vm.selected=$$v;},expression:"selected"}})};
|
|
28
|
-
var __vue_staticRenderFns__ = [];
|
|
29
|
-
|
|
30
|
-
/* style */
|
|
31
|
-
const __vue_inject_styles__ = undefined;
|
|
32
|
-
/* scoped */
|
|
33
|
-
const __vue_scope_id__ = undefined;
|
|
34
|
-
/* module identifier */
|
|
35
|
-
const __vue_module_identifier__ = undefined;
|
|
36
|
-
/* functional template */
|
|
37
|
-
const __vue_is_functional_template__ = false;
|
|
38
|
-
/* style inject */
|
|
39
|
-
|
|
40
|
-
/* style inject SSR */
|
|
41
|
-
|
|
42
|
-
/* style inject shadow dom */
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
const __vue_component__ = __vue_normalize__(
|
|
47
|
-
{ render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
|
|
48
|
-
__vue_inject_styles__,
|
|
49
|
-
__vue_script__,
|
|
50
|
-
__vue_scope_id__,
|
|
51
|
-
__vue_is_functional_template__,
|
|
52
|
-
__vue_module_identifier__,
|
|
53
|
-
false,
|
|
54
|
-
undefined,
|
|
55
|
-
undefined,
|
|
56
|
-
undefined
|
|
57
|
-
);
|
|
58
|
-
|
|
59
|
-
export default __vue_component__;
|
package/dist/components/base/form/form_radio_group/examples/form_radio_group.slots.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
|
-
selected: 'one'
|
|
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-radio-group',{model:{value:(_vm.selected),callback:function ($$v) {_vm.selected=$$v;},expression:"selected"}},[_c('gl-form-radio',{attrs:{"value":"one"}},[_vm._v("One")]),_vm._v(" "),_c('gl-form-radio',{attrs:{"value":"two"},scopedSlots:_vm._u([{key:"help",fn:function(){return [_vm._v("Help text")]},proxy:true}])},[_vm._v("\n Two\n ")]),_vm._v(" "),_c('gl-form-radio',{attrs:{"value":"three"}},[_vm._v("Three")]),_vm._v(" "),_c('gl-form-radio',{attrs:{"value":"four","disabled":""}},[_vm._v("Disabled option")])],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__;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import FormRadioGroupOptionsArray from './form_radio_group.options_array.example';
|
|
2
|
-
import FormRadioGroupSlots from './form_radio_group.slots.example';
|
|
3
|
-
|
|
4
|
-
var index = [{
|
|
5
|
-
name: 'Radio Group',
|
|
6
|
-
items: [{
|
|
7
|
-
id: 'form-radio-group-slots',
|
|
8
|
-
name: 'Form Radio Group using Slots',
|
|
9
|
-
component: FormRadioGroupSlots
|
|
10
|
-
}, {
|
|
11
|
-
id: 'form-radio-group-options-array',
|
|
12
|
-
name: 'Form Radio Group using Options Array',
|
|
13
|
-
component: FormRadioGroupOptionsArray
|
|
14
|
-
}]
|
|
15
|
-
}];
|
|
16
|
-
|
|
17
|
-
export default index;
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
2
|
-
|
|
3
|
-
var script = {
|
|
4
|
-
data() {
|
|
5
|
-
return {
|
|
6
|
-
series: (() => {
|
|
7
|
-
const hours = 24;
|
|
8
|
-
const days = 7;
|
|
9
|
-
const res = [];
|
|
10
|
-
|
|
11
|
-
for (let x = 0; x < hours; x += 1) {
|
|
12
|
-
for (let y = 0; y < days; y += 1) {
|
|
13
|
-
let val = Math.random() * 10;
|
|
14
|
-
|
|
15
|
-
if (Math.random() > 0.5) {
|
|
16
|
-
val = '-';
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
res.push([x, y, val]);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
return res;
|
|
24
|
-
})(),
|
|
25
|
-
xAxisLabels: ['12', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11'],
|
|
26
|
-
yAxisLabels: ['Sat', 'Fri', 'Thu', 'Wed', 'Tue', 'Mon', 'Sun']
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
/* script */
|
|
33
|
-
const __vue_script__ = script;
|
|
34
|
-
|
|
35
|
-
/* template */
|
|
36
|
-
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('gl-heatmap',{attrs:{"data-series":_vm.series,"x-axis-labels":_vm.xAxisLabels,"y-axis-labels":_vm.yAxisLabels,"options":{
|
|
37
|
-
xAxis: {
|
|
38
|
-
splitArea: {
|
|
39
|
-
show: false,
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
yAxis: {
|
|
43
|
-
splitArea: {
|
|
44
|
-
show: false,
|
|
45
|
-
},
|
|
46
|
-
},
|
|
47
|
-
}}})};
|
|
48
|
-
var __vue_staticRenderFns__ = [];
|
|
49
|
-
|
|
50
|
-
/* style */
|
|
51
|
-
const __vue_inject_styles__ = undefined;
|
|
52
|
-
/* scoped */
|
|
53
|
-
const __vue_scope_id__ = undefined;
|
|
54
|
-
/* module identifier */
|
|
55
|
-
const __vue_module_identifier__ = undefined;
|
|
56
|
-
/* functional template */
|
|
57
|
-
const __vue_is_functional_template__ = false;
|
|
58
|
-
/* style inject */
|
|
59
|
-
|
|
60
|
-
/* style inject SSR */
|
|
61
|
-
|
|
62
|
-
/* style inject shadow dom */
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
const __vue_component__ = __vue_normalize__(
|
|
67
|
-
{ render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
|
|
68
|
-
__vue_inject_styles__,
|
|
69
|
-
__vue_script__,
|
|
70
|
-
__vue_scope_id__,
|
|
71
|
-
__vue_is_functional_template__,
|
|
72
|
-
__vue_module_identifier__,
|
|
73
|
-
false,
|
|
74
|
-
undefined,
|
|
75
|
-
undefined,
|
|
76
|
-
undefined
|
|
77
|
-
);
|
|
78
|
-
|
|
79
|
-
export default __vue_component__;
|