@gitlab/ui 32.43.1 → 32.45.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.
Files changed (132) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/README.md +6 -1
  3. package/dist/components/base/avatar/avatar.documentation.js +2 -5
  4. package/dist/components/base/avatar_link/avatar_link.documentation.js +2 -5
  5. package/dist/components/base/form/form_group/examples/form_group/form_group.validation.example.js +3 -3
  6. package/dist/components/base/form/form_input/form_input.documentation.js +2 -27
  7. package/dist/components/base/form/form_input/form_input.js +23 -6
  8. package/dist/components/base/form/form_text/form_text.documentation.js +1 -4
  9. package/dist/components/base/form/form_textarea/form_textarea.documentation.js +1 -20
  10. package/dist/components/base/form/form_textarea/form_textarea.js +8 -0
  11. package/dist/components/base/pagination/pagination.documentation.js +2 -85
  12. package/dist/components/base/pagination/pagination.js +76 -0
  13. package/dist/components/base/segmented_control/segmented_control.documentation.js +2 -14
  14. package/dist/components/base/segmented_control/segmented_control.js +6 -0
  15. package/dist/components/charts/chart/chart.js +17 -4
  16. package/dist/components/charts/heatmap/heatmap.js +1 -9
  17. package/dist/components/charts/sparkline/sparkline.js +1 -1
  18. package/dist/utility_classes.css +1 -1
  19. package/dist/utility_classes.css.map +1 -1
  20. package/documentation/documented_stories.js +6 -0
  21. package/package.json +13 -12
  22. package/src/components/base/alert/alert.spec.js +2 -2
  23. package/src/components/base/avatar/avatar.documentation.js +0 -2
  24. package/src/components/base/avatar/avatar.md +0 -2
  25. package/src/components/base/avatar/avatar.spec.js +1 -2
  26. package/src/components/base/avatar/avatar.stories.js +88 -101
  27. package/src/components/base/avatar_link/avatar_link.documentation.js +0 -2
  28. package/src/components/base/avatar_link/avatar_link.md +4 -7
  29. package/src/components/base/avatar_link/avatar_link.stories.js +66 -54
  30. package/src/components/base/filtered_search/filtered_search.spec.js +35 -35
  31. package/src/components/base/filtered_search/filtered_search_term.spec.js +1 -1
  32. package/src/components/base/form/form_group/examples/form_group/form_group.validation.example.vue +3 -3
  33. package/src/components/base/form/form_group/form_group.stories.js +3 -3
  34. package/src/components/base/form/form_input/form_input.documentation.js +0 -31
  35. package/src/components/base/form/form_input/form_input.md +0 -2
  36. package/src/components/base/form/form_input/form_input.stories.js +50 -42
  37. package/src/components/base/form/form_input/form_input.vue +23 -6
  38. package/src/components/base/form/form_input_group/form_input_group.spec.js +1 -3
  39. package/src/components/base/form/form_text/form_text.documentation.js +0 -2
  40. package/src/components/base/form/form_text/form_text.md +1 -3
  41. package/src/components/base/form/form_text/form_text.stories.js +20 -8
  42. package/src/components/base/form/form_textarea/form_textarea.documentation.js +0 -25
  43. package/src/components/base/form/form_textarea/form_textarea.stories.js +31 -30
  44. package/src/components/base/form/form_textarea/form_textarea.vue +8 -0
  45. package/src/components/base/icon/icon.spec.js +1 -4
  46. package/src/components/base/infinite_scroll/infinite_scroll.spec.js +1 -4
  47. package/src/components/base/modal/modal.spec.js +19 -23
  48. package/src/components/base/paginated_list/__snapshots__/paginated_list.spec.js.snap +10 -10
  49. package/src/components/base/pagination/pagination.documentation.js +0 -100
  50. package/src/components/base/pagination/pagination.md +5 -9
  51. package/src/components/base/pagination/pagination.spec.js +1 -4
  52. package/src/components/base/pagination/pagination.stories.js +109 -117
  53. package/src/components/base/pagination/pagination.vue +85 -0
  54. package/src/components/base/search_box_by_click/search_box_by_click.spec.js +1 -5
  55. package/src/components/base/segmented_control/segmented_control.documentation.js +0 -15
  56. package/src/components/base/segmented_control/segmented_control.md +0 -2
  57. package/src/components/base/segmented_control/segmented_control.stories.js +46 -36
  58. package/src/components/base/segmented_control/segmented_control.vue +5 -0
  59. package/src/components/base/sorting/sorting.spec.js +1 -4
  60. package/src/components/base/toast/toast.spec.js +4 -6
  61. package/src/components/base/token/token.spec.js +1 -4
  62. package/src/components/base/token_selector/token_container.spec.js +2 -3
  63. package/src/components/charts/chart/chart.spec.js +33 -4
  64. package/src/components/charts/chart/chart.vue +16 -4
  65. package/src/components/charts/gauge/gauge.spec.js +7 -7
  66. package/src/components/charts/heatmap/heatmap.vue +2 -9
  67. package/src/components/charts/sparkline/sparkline.spec.js +1 -4
  68. package/src/components/charts/sparkline/sparkline.vue +7 -1
  69. package/src/components/utilities/friendly_wrap/friendly_wrap.spec.js +1 -4
  70. package/src/components/utilities/intersperse/intersperse.spec.js +1 -4
  71. package/src/directives/hover_load/hover_load.spec.js +2 -13
  72. package/src/directives/outside/outside.spec.js +1 -6
  73. package/src/directives/resize_observer/resize_observer.spec.js +4 -10
  74. package/src/scss/storybook.scss +8 -0
  75. package/src/scss/utilities.scss +8 -0
  76. package/src/scss/utility-mixins/transform.scss +4 -0
  77. package/dist/components/base/avatar/examples/avatar.fallback.example.js +0 -38
  78. package/dist/components/base/avatar/examples/avatar.image.example.js +0 -38
  79. package/dist/components/base/avatar/examples/avatar.rect.example.js +0 -38
  80. package/dist/components/base/avatar/examples/avatar.tooltip.example.js +0 -38
  81. package/dist/components/base/avatar/examples/index.js +0 -31
  82. package/dist/components/base/avatar_link/examples/avatar.link.example.js +0 -38
  83. package/dist/components/base/avatar_link/examples/index.js +0 -13
  84. package/dist/components/base/form/form_input/examples/form_input/form_input.text.example.js +0 -38
  85. package/dist/components/base/form/form_input/examples/form_input/form_input.text_disabled.example.js +0 -38
  86. package/dist/components/base/form/form_input/examples/form_input/form_input.text_reactive.example.js +0 -57
  87. package/dist/components/base/form/form_input/examples/form_input/index.js +0 -22
  88. package/dist/components/base/form/form_text/examples/form_text.basic.example.js +0 -38
  89. package/dist/components/base/form/form_text/examples/index.js +0 -13
  90. package/dist/components/base/form/form_textarea/examples/form_textarea.basic.example.js +0 -47
  91. package/dist/components/base/form/form_textarea/examples/form_textarea.invalid.example.js +0 -47
  92. package/dist/components/base/form/form_textarea/examples/form_textarea.plaintext.example.js +0 -47
  93. package/dist/components/base/form/form_textarea/examples/form_textarea.readonly.example.js +0 -45
  94. package/dist/components/base/form/form_textarea/examples/form_textarea.submit.example.js +0 -47
  95. package/dist/components/base/form/form_textarea/examples/index.js +0 -37
  96. package/dist/components/base/pagination/examples/index.js +0 -37
  97. package/dist/components/base/pagination/examples/pagination.basic.example.js +0 -45
  98. package/dist/components/base/pagination/examples/pagination.compact.example.js +0 -58
  99. package/dist/components/base/pagination/examples/pagination.double_truncation.example.js +0 -45
  100. package/dist/components/base/pagination/examples/pagination.event.example.js +0 -51
  101. package/dist/components/base/pagination/examples/pagination.links.example.js +0 -45
  102. package/dist/components/base/segmented_control/examples/index.js +0 -19
  103. package/dist/components/base/segmented_control/examples/segmented_control.basic.example.js +0 -65
  104. package/dist/components/base/segmented_control/examples/segmented_control.whitespace.example.js +0 -55
  105. package/src/components/base/avatar/examples/avatar.fallback.example.vue +0 -3
  106. package/src/components/base/avatar/examples/avatar.image.example.vue +0 -3
  107. package/src/components/base/avatar/examples/avatar.rect.example.vue +0 -6
  108. package/src/components/base/avatar/examples/avatar.tooltip.example.vue +0 -3
  109. package/src/components/base/avatar/examples/index.js +0 -36
  110. package/src/components/base/avatar_link/examples/avatar.link.example.vue +0 -5
  111. package/src/components/base/avatar_link/examples/index.js +0 -15
  112. package/src/components/base/form/form_input/examples/form_input/form_input.text.example.vue +0 -3
  113. package/src/components/base/form/form_input/examples/form_input/form_input.text_disabled.example.vue +0 -3
  114. package/src/components/base/form/form_input/examples/form_input/form_input.text_reactive.example.vue +0 -24
  115. package/src/components/base/form/form_input/examples/form_input/index.js +0 -26
  116. package/src/components/base/form/form_text/examples/form_text.basic.example.vue +0 -5
  117. package/src/components/base/form/form_text/examples/index.js +0 -15
  118. package/src/components/base/form/form_textarea/examples/form_textarea.basic.example.vue +0 -11
  119. package/src/components/base/form/form_textarea/examples/form_textarea.invalid.example.vue +0 -11
  120. package/src/components/base/form/form_textarea/examples/form_textarea.plaintext.example.vue +0 -13
  121. package/src/components/base/form/form_textarea/examples/form_textarea.readonly.example.vue +0 -9
  122. package/src/components/base/form/form_textarea/examples/form_textarea.submit.example.vue +0 -11
  123. package/src/components/base/form/form_textarea/examples/index.js +0 -43
  124. package/src/components/base/pagination/examples/index.js +0 -43
  125. package/src/components/base/pagination/examples/pagination.basic.example.vue +0 -17
  126. package/src/components/base/pagination/examples/pagination.compact.example.vue +0 -33
  127. package/src/components/base/pagination/examples/pagination.double_truncation.example.vue +0 -11
  128. package/src/components/base/pagination/examples/pagination.event.example.vue +0 -26
  129. package/src/components/base/pagination/examples/pagination.links.example.vue +0 -18
  130. package/src/components/base/segmented_control/examples/index.js +0 -22
  131. package/src/components/base/segmented_control/examples/segmented_control.basic.example.vue +0 -19
  132. package/src/components/base/segmented_control/examples/segmented_control.whitespace.example.vue +0 -18
@@ -1,38 +0,0 @@
1
- import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
2
-
3
- /* script */
4
-
5
- /* template */
6
- var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('gl-avatar-link',{attrs:{"target":"blank","href":"https://gitlab.com/gitlab-org/gitlab"}},[_c('gl-avatar-labeled',{attrs:{"entity-name":"GitLab","label":"GitLab User","sub-label":"@gitlab","size":32}})],1)};
7
- var __vue_staticRenderFns__ = [];
8
-
9
- /* style */
10
- const __vue_inject_styles__ = undefined;
11
- /* scoped */
12
- const __vue_scope_id__ = undefined;
13
- /* module identifier */
14
- const __vue_module_identifier__ = undefined;
15
- /* functional template */
16
- const __vue_is_functional_template__ = false;
17
- /* style inject */
18
-
19
- /* style inject SSR */
20
-
21
- /* style inject shadow dom */
22
-
23
-
24
-
25
- const __vue_component__ = __vue_normalize__(
26
- { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
27
- __vue_inject_styles__,
28
- {},
29
- __vue_scope_id__,
30
- __vue_is_functional_template__,
31
- __vue_module_identifier__,
32
- false,
33
- undefined,
34
- undefined,
35
- undefined
36
- );
37
-
38
- export default __vue_component__;
@@ -1,13 +0,0 @@
1
- import AvatarLinkExample from './avatar.link.example';
2
-
3
- var index = [{
4
- name: 'Basic',
5
- items: [{
6
- id: 'avatar-link',
7
- name: 'Avatar Link',
8
- description: 'Linked Avatar',
9
- component: AvatarLinkExample
10
- }]
11
- }];
12
-
13
- export default index;
@@ -1,38 +0,0 @@
1
- import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
2
-
3
- /* script */
4
-
5
- /* template */
6
- var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('gl-form-input',{attrs:{"type":"text"}})};
7
- var __vue_staticRenderFns__ = [];
8
-
9
- /* style */
10
- const __vue_inject_styles__ = undefined;
11
- /* scoped */
12
- const __vue_scope_id__ = undefined;
13
- /* module identifier */
14
- const __vue_module_identifier__ = undefined;
15
- /* functional template */
16
- const __vue_is_functional_template__ = false;
17
- /* style inject */
18
-
19
- /* style inject SSR */
20
-
21
- /* style inject shadow dom */
22
-
23
-
24
-
25
- const __vue_component__ = __vue_normalize__(
26
- { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
27
- __vue_inject_styles__,
28
- {},
29
- __vue_scope_id__,
30
- __vue_is_functional_template__,
31
- __vue_module_identifier__,
32
- false,
33
- undefined,
34
- undefined,
35
- undefined
36
- );
37
-
38
- export default __vue_component__;
@@ -1,38 +0,0 @@
1
- import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
2
-
3
- /* script */
4
-
5
- /* template */
6
- var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('gl-form-input',{attrs:{"type":"text","disabled":true,"value":"some text"}})};
7
- var __vue_staticRenderFns__ = [];
8
-
9
- /* style */
10
- const __vue_inject_styles__ = undefined;
11
- /* scoped */
12
- const __vue_scope_id__ = undefined;
13
- /* module identifier */
14
- const __vue_module_identifier__ = undefined;
15
- /* functional template */
16
- const __vue_is_functional_template__ = false;
17
- /* style inject */
18
-
19
- /* style inject SSR */
20
-
21
- /* style inject shadow dom */
22
-
23
-
24
-
25
- const __vue_component__ = __vue_normalize__(
26
- { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
27
- __vue_inject_styles__,
28
- {},
29
- __vue_scope_id__,
30
- __vue_is_functional_template__,
31
- __vue_module_identifier__,
32
- false,
33
- undefined,
34
- undefined,
35
- undefined
36
- );
37
-
38
- export default __vue_component__;
@@ -1,57 +0,0 @@
1
- import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
2
-
3
- /**
4
- * This example ensures that browser native input events lead to updating the component state.
5
- */
6
- var script = {
7
- data() {
8
- return {
9
- value: ''
10
- };
11
- },
12
-
13
- mounted() {
14
- const inputElement = this.$refs.input.$el;
15
- inputElement.value = 'some value';
16
- inputElement.dispatchEvent(new Event('input'));
17
- }
18
-
19
- };
20
-
21
- /* script */
22
- const __vue_script__ = script;
23
-
24
- /* template */
25
- var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('gl-form-input',{ref:"input",attrs:{"type":"text"},model:{value:(_vm.value),callback:function ($$v) {_vm.value=$$v;},expression:"value"}}),_vm._v(" "),_c('p',{staticClass:"mt-3"},[_vm._v("The entered value is: "+_vm._s(_vm.value))])],1)};
26
- var __vue_staticRenderFns__ = [];
27
-
28
- /* style */
29
- const __vue_inject_styles__ = undefined;
30
- /* scoped */
31
- const __vue_scope_id__ = undefined;
32
- /* module identifier */
33
- const __vue_module_identifier__ = undefined;
34
- /* functional template */
35
- const __vue_is_functional_template__ = false;
36
- /* style inject */
37
-
38
- /* style inject SSR */
39
-
40
- /* style inject shadow dom */
41
-
42
-
43
-
44
- const __vue_component__ = __vue_normalize__(
45
- { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
46
- __vue_inject_styles__,
47
- __vue_script__,
48
- __vue_scope_id__,
49
- __vue_is_functional_template__,
50
- __vue_module_identifier__,
51
- false,
52
- undefined,
53
- undefined,
54
- undefined
55
- );
56
-
57
- export default __vue_component__;
@@ -1,22 +0,0 @@
1
- import FormInputTextExample from './form_input.text.example';
2
- import FormInputTextDisabledExample from './form_input.text_disabled.example';
3
- import FormInputTextReactiveExample from './form_input.text_reactive.example';
4
-
5
- var index = [{
6
- name: 'Text Input',
7
- items: [{
8
- id: 'input-text',
9
- name: 'default state',
10
- component: FormInputTextExample
11
- }, {
12
- id: 'input-text-reactive',
13
- name: 'with reactive binding',
14
- component: FormInputTextReactiveExample
15
- }, {
16
- id: 'input-text-disabled',
17
- name: 'disabled state',
18
- component: FormInputTextDisabledExample
19
- }]
20
- }];
21
-
22
- export default index;
@@ -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('div',{staticClass:"gl-form-group"},[_c('gl-form-text',[_vm._v("Some form text")])],1)};
7
- var __vue_staticRenderFns__ = [];
8
-
9
- /* style */
10
- const __vue_inject_styles__ = undefined;
11
- /* scoped */
12
- const __vue_scope_id__ = undefined;
13
- /* module identifier */
14
- const __vue_module_identifier__ = undefined;
15
- /* functional template */
16
- const __vue_is_functional_template__ = false;
17
- /* style inject */
18
-
19
- /* style inject SSR */
20
-
21
- /* style inject shadow dom */
22
-
23
-
24
-
25
- const __vue_component__ = __vue_normalize__(
26
- { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
27
- __vue_inject_styles__,
28
- {},
29
- __vue_scope_id__,
30
- __vue_is_functional_template__,
31
- __vue_module_identifier__,
32
- false,
33
- undefined,
34
- undefined,
35
- undefined
36
- );
37
-
38
- export default __vue_component__;
@@ -1,13 +0,0 @@
1
- import BasicExample from './form_text.basic.example';
2
-
3
- var index = [{
4
- name: 'Basic',
5
- items: [{
6
- id: 'form-text-basic',
7
- name: 'Basic',
8
- description: 'Basic Form Text',
9
- component: BasicExample
10
- }]
11
- }];
12
-
13
- export default index;
@@ -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,37 +0,0 @@
1
- import PaginationBasicExample from './pagination.basic.example';
2
- import PaginationCompactExample from './pagination.compact.example';
3
- import PaginationDoubleTruncation from './pagination.double_truncation.example';
4
- import PaginationEventExample from './pagination.event.example';
5
- import PaginationLinksExample from './pagination.links.example';
6
-
7
- var index = [{
8
- name: 'Basic',
9
- items: [{
10
- id: 'pagination-basic',
11
- name: 'Basic',
12
- description: 'Basic Pagination',
13
- component: PaginationBasicExample
14
- }, {
15
- id: 'pagination-double-truncation',
16
- name: 'Double truncation',
17
- description: 'Double truncation',
18
- component: PaginationDoubleTruncation
19
- }, {
20
- id: 'pagination-compact',
21
- name: 'Compact',
22
- description: 'Compact Pagination',
23
- component: PaginationCompactExample
24
- }, {
25
- id: 'pagination-links',
26
- name: 'Link based pagination',
27
- description: 'Link based pagination',
28
- component: PaginationLinksExample
29
- }, {
30
- id: 'pagination-event',
31
- name: 'Page change event',
32
- description: 'Page change event',
33
- component: PaginationEventExample
34
- }]
35
- }];
36
-
37
- export default index;
@@ -1,45 +0,0 @@
1
- import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
2
-
3
- var script = {
4
- data: () => ({
5
- page: 2
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-pagination',{attrs:{"per-page":10,"total-items":100,"prev-text":"Prev","next-text":"Next"},model:{value:(_vm.page),callback:function ($$v) {_vm.page=$$v;},expression:"page"}})};
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,58 +0,0 @@
1
- import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
2
-
3
- const LAST_PAGE = 3;
4
- var script = {
5
- lastPage: LAST_PAGE,
6
- data: () => ({
7
- page: 1
8
- }),
9
- computed: {
10
- prevPage() {
11
- return Math.max(this.page - 1, 0);
12
- },
13
-
14
- nextPage() {
15
- const nextPage = this.page + 1;
16
- return nextPage > LAST_PAGE ? 0 : nextPage;
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',{staticClass:"text-center"},[_c('gl-pagination',{attrs:{"prev-page":_vm.prevPage,"next-page":_vm.nextPage,"prev-text":"Prev","next-text":"Next","align":"center"},model:{value:(_vm.page),callback:function ($$v) {_vm.page=$$v;},expression:"page"}}),_vm._v("\n Page "+_vm._s(_vm.page)+" of "+_vm._s(_vm.$options.lastPage)+"\n")],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__;