@gitlab/ui 37.3.0 → 37.4.2

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 (65) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/components/base/filtered_search/filtered_search_term.js +6 -1
  3. package/dist/components/base/filtered_search/filtered_search_token_segment.js +10 -1
  4. package/dist/components/base/form/form_group/form_group.documentation.js +2 -6
  5. package/dist/components/base/search_box_by_click/search_box_by_click.documentation.js +2 -80
  6. package/dist/components/base/search_box_by_click/search_box_by_click.js +60 -1
  7. package/dist/components/base/search_box_by_type/search_box_by_type.documentation.js +2 -20
  8. package/dist/components/base/search_box_by_type/search_box_by_type.js +19 -5
  9. package/dist/directives/hover_load/hover_load.documentation.js +1 -1
  10. package/dist/directives/resize_observer/resize_observer.documentation.js +2 -5
  11. package/dist/index.css +1 -1
  12. package/dist/index.css.map +1 -1
  13. package/documentation/documented_stories.js +5 -0
  14. package/package.json +1 -1
  15. package/src/components/base/button/button.scss +5 -9
  16. package/src/components/base/filtered_search/filtered_search.spec.js +12 -0
  17. package/src/components/base/filtered_search/filtered_search_term.spec.js +8 -2
  18. package/src/components/base/filtered_search/filtered_search_term.vue +6 -0
  19. package/src/components/base/filtered_search/filtered_search_token_segment.spec.js +46 -37
  20. package/src/components/base/filtered_search/filtered_search_token_segment.vue +14 -1
  21. package/src/components/base/form/form_group/form_group.documentation.js +0 -3
  22. package/src/components/base/form/form_group/form_group.md +0 -2
  23. package/src/components/base/form/form_group/form_group.stories.js +106 -145
  24. package/src/components/base/form/form_select/form_select.spec.js +8 -4
  25. package/src/components/base/search_box_by_click/search_box_by_click.documentation.js +0 -90
  26. package/src/components/base/search_box_by_click/search_box_by_click.md +0 -2
  27. package/src/components/base/search_box_by_click/search_box_by_click.stories.js +91 -48
  28. package/src/components/base/search_box_by_click/search_box_by_click.vue +50 -1
  29. package/src/components/base/search_box_by_type/search_box_by_type.documentation.js +0 -18
  30. package/src/components/base/search_box_by_type/search_box_by_type.md +0 -2
  31. package/src/components/base/search_box_by_type/search_box_by_type.stories.js +49 -43
  32. package/src/components/base/search_box_by_type/search_box_by_type.vue +16 -6
  33. package/src/directives/hover_load/hover_load.md +0 -2
  34. package/src/directives/hover_load/hover_load.stories.js +39 -34
  35. package/src/directives/resize_observer/resize_observer.documentation.js +0 -2
  36. package/src/directives/resize_observer/resize_observer.md +0 -6
  37. package/src/directives/resize_observer/resize_observer.stories.js +70 -51
  38. package/dist/components/base/form/form_group/examples/form_group/form_group.basic.example.js +0 -38
  39. package/dist/components/base/form/form_group/examples/form_group/form_group.disabled.example.js +0 -48
  40. package/dist/components/base/form/form_group/examples/form_group/form_group.textarea.example.js +0 -48
  41. package/dist/components/base/form/form_group/examples/form_group/form_group.validation.example.js +0 -66
  42. package/dist/components/base/form/form_group/examples/form_group/index.js +0 -27
  43. package/dist/components/base/search_box_by_click/examples/index.js +0 -22
  44. package/dist/components/base/search_box_by_click/examples/search_box_by_click.default.example.js +0 -48
  45. package/dist/components/base/search_box_by_click/examples/search_box_by_click.history.example.js +0 -51
  46. package/dist/components/base/search_box_by_click/examples/search_box_by_click.v_model.example.js +0 -54
  47. package/dist/components/base/search_box_by_type/examples/index.js +0 -17
  48. package/dist/components/base/search_box_by_type/examples/search_box_by_type.default.example.js +0 -48
  49. package/dist/components/base/search_box_by_type/examples/search_box_by_type.loading.example.js +0 -65
  50. package/dist/directives/resize_observer/examples/index.js +0 -12
  51. package/dist/directives/resize_observer/examples/resize_observer.basic.example.js +0 -62
  52. package/src/components/base/form/form_group/examples/form_group/form_group.basic.example.vue +0 -11
  53. package/src/components/base/form/form_group/examples/form_group/form_group.disabled.example.vue +0 -21
  54. package/src/components/base/form/form_group/examples/form_group/form_group.textarea.example.vue +0 -15
  55. package/src/components/base/form/form_group/examples/form_group/form_group.validation.example.vue +0 -36
  56. package/src/components/base/form/form_group/examples/form_group/index.js +0 -32
  57. package/src/components/base/search_box_by_click/examples/index.js +0 -26
  58. package/src/components/base/search_box_by_click/examples/search_box_by_click.default.example.vue +0 -14
  59. package/src/components/base/search_box_by_click/examples/search_box_by_click.history.example.vue +0 -23
  60. package/src/components/base/search_box_by_click/examples/search_box_by_click.v_model.example.vue +0 -23
  61. package/src/components/base/search_box_by_type/examples/index.js +0 -20
  62. package/src/components/base/search_box_by_type/examples/search_box_by_type.default.example.vue +0 -14
  63. package/src/components/base/search_box_by_type/examples/search_box_by_type.loading.example.vue +0 -34
  64. package/src/directives/resize_observer/examples/index.js +0 -14
  65. package/src/directives/resize_observer/examples/resize_observer.basic.example.vue +0 -21
@@ -1,60 +1,79 @@
1
- import { withKnobs, select } from '@storybook/addon-knobs';
2
- import { documentedStoriesOf } from '../../../documentation/documented_stories';
3
- import { GlResizeObserverDirective } from '../../index';
1
+ import { GlResizeObserverDirective as GlResizeObserver } from '../../index';
4
2
  import readme from './resize_observer.md';
5
3
 
6
- documentedStoriesOf('directives/resize-observer-directive', readme)
7
- .addParameters({ storyshots: false })
8
- .addDecorator(withKnobs)
9
- .add('default', () => ({
10
- props: {
11
- elementWidth: {
12
- default: select('elementWidth', ['100%', '75%', '50%'], '100%'),
13
- },
14
- elementHeight: {
15
- default: select('elementHeight', ['100%', '75%', '50%'], '100%'),
16
- },
17
- },
18
- directives: {
19
- 'gl-resize-observer': GlResizeObserverDirective,
20
- },
21
- data() {
4
+ const generateProps = ({ elementWidth = '100%', elementHeight = '100%' } = {}) => ({
5
+ elementWidth,
6
+ elementHeight,
7
+ });
8
+
9
+ export const Default = (args, { argTypes }) => ({
10
+ props: Object.keys(argTypes),
11
+ directives: {
12
+ GlResizeObserver,
13
+ },
14
+ data() {
15
+ return {
16
+ width: 0,
17
+ height: 0,
18
+ };
19
+ },
20
+ computed: {
21
+ wrapperStyles() {
22
22
  return {
23
- width: 0,
24
- height: 0,
23
+ height: '400px',
25
24
  };
26
25
  },
27
- computed: {
28
- wrapperStyles() {
29
- return {
30
- height: '400px',
31
- };
32
- },
33
- elementStyles() {
34
- return {
35
- height: this.elementHeight,
36
- width: this.elementWidth,
37
- };
38
- },
26
+ elementStyles() {
27
+ return {
28
+ height: this.elementHeight,
29
+ width: this.elementWidth,
30
+ };
39
31
  },
40
- methods: {
41
- handleResize({ contentRect: { width, height } }) {
42
- this.width = Math.round(width);
43
- this.height = Math.round(height);
44
- },
32
+ },
33
+ methods: {
34
+ handleResize({ contentRect: { width, height } }) {
35
+ this.width = Math.round(width);
36
+ this.height = Math.round(height);
45
37
  },
46
- template: `
38
+ },
39
+ template: `
40
+ <div
41
+ :style="wrapperStyles"
42
+ class="d-flex justify-content-center align-items-center">
47
43
  <div
48
- :style="wrapperStyles"
49
- class="d-flex justify-content-center align-items-center">
50
- <div
51
- v-gl-resize-observer="handleResize"
52
- :style="elementStyles"
53
- class="d-flex position-relative justify-content-center align-items-center bg-light text-dark">
54
- <span class="d-inline-block p-2">
55
- I am {{ width }}px wide and {{ height }}px high.
56
- </span>
57
- </div>
44
+ v-gl-resize-observer="handleResize"
45
+ :style="elementStyles"
46
+ class="d-flex position-relative justify-content-center align-items-center bg-light text-dark">
47
+ <span class="d-inline-block p-2">
48
+ I am {{ width }}px wide and {{ height }}px high.
49
+ </span>
58
50
  </div>
59
- `,
60
- }));
51
+ </div>
52
+ `,
53
+ });
54
+ Default.args = generateProps();
55
+
56
+ const makeControl = () => ({
57
+ options: ['100%', '75%', '50%'],
58
+ control: {
59
+ type: 'select',
60
+ },
61
+ });
62
+
63
+ export default {
64
+ title: 'directives/resize-observer-directive',
65
+ component: GlResizeObserver,
66
+ parameters: {
67
+ knobs: { disable: true },
68
+ storyshots: { disable: true },
69
+ docs: {
70
+ description: {
71
+ component: readme,
72
+ },
73
+ },
74
+ },
75
+ argTypes: {
76
+ elementWidth: makeControl(),
77
+ elementHeight: makeControl(),
78
+ },
79
+ };
@@ -1,38 +0,0 @@
1
- import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
2
-
3
- /* script */
4
-
5
- /* template */
6
- var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('gl-form-group',{attrs:{"id":"group-id","label":"Label","label-size":"sm","description":"Form group description","label-for":"input1"}},[_c('gl-form-input',{attrs:{"id":"input1"}})],1)};
7
- var __vue_staticRenderFns__ = [];
8
-
9
- /* style */
10
- const __vue_inject_styles__ = undefined;
11
- /* scoped */
12
- const __vue_scope_id__ = undefined;
13
- /* module identifier */
14
- const __vue_module_identifier__ = undefined;
15
- /* functional template */
16
- const __vue_is_functional_template__ = false;
17
- /* style inject */
18
-
19
- /* style inject SSR */
20
-
21
- /* style inject shadow dom */
22
-
23
-
24
-
25
- const __vue_component__ = __vue_normalize__(
26
- { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
27
- __vue_inject_styles__,
28
- {},
29
- __vue_scope_id__,
30
- __vue_is_functional_template__,
31
- __vue_module_identifier__,
32
- false,
33
- undefined,
34
- undefined,
35
- undefined
36
- );
37
-
38
- export default __vue_component__;
@@ -1,48 +0,0 @@
1
- import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
2
-
3
- var script = {
4
- computed: {
5
- disabled() {
6
- return true;
7
- }
8
-
9
- }
10
- };
11
-
12
- /* script */
13
- const __vue_script__ = script;
14
-
15
- /* template */
16
- var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('gl-form-group',{attrs:{"id":"group-id","label":"Label Name","label-size":"sm","description":"This feature is disabled","label-for":"input1"}},[_c('gl-form-input',{attrs:{"id":"input1","type":"text","disabled":_vm.disabled,"value":"Disabled"}})],1)};
17
- var __vue_staticRenderFns__ = [];
18
-
19
- /* style */
20
- const __vue_inject_styles__ = undefined;
21
- /* scoped */
22
- const __vue_scope_id__ = undefined;
23
- /* module identifier */
24
- const __vue_module_identifier__ = undefined;
25
- /* functional template */
26
- const __vue_is_functional_template__ = false;
27
- /* style inject */
28
-
29
- /* style inject SSR */
30
-
31
- /* style inject shadow dom */
32
-
33
-
34
-
35
- const __vue_component__ = __vue_normalize__(
36
- { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
37
- __vue_inject_styles__,
38
- __vue_script__,
39
- __vue_scope_id__,
40
- __vue_is_functional_template__,
41
- __vue_module_identifier__,
42
- false,
43
- undefined,
44
- undefined,
45
- undefined
46
- );
47
-
48
- export default __vue_component__;
@@ -1,48 +0,0 @@
1
- import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
2
-
3
- var script = {
4
- data() {
5
- return {
6
- text: ''
7
- };
8
- }
9
-
10
- };
11
-
12
- /* script */
13
- const __vue_script__ = script;
14
-
15
- /* template */
16
- var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('gl-form-group',{attrs:{"id":"group-id-textarea1","label":"Label Name","label-for":"textarea1"}},[_c('gl-form-textarea',{attrs:{"id":"textarea1","placeholder":"Enter something"},model:{value:(_vm.text),callback:function ($$v) {_vm.text=$$v;},expression:"text"}})],1)};
17
- var __vue_staticRenderFns__ = [];
18
-
19
- /* style */
20
- const __vue_inject_styles__ = undefined;
21
- /* scoped */
22
- const __vue_scope_id__ = undefined;
23
- /* module identifier */
24
- const __vue_module_identifier__ = undefined;
25
- /* functional template */
26
- const __vue_is_functional_template__ = false;
27
- /* style inject */
28
-
29
- /* style inject SSR */
30
-
31
- /* style inject shadow dom */
32
-
33
-
34
-
35
- const __vue_component__ = __vue_normalize__(
36
- { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
37
- __vue_inject_styles__,
38
- __vue_script__,
39
- __vue_scope_id__,
40
- __vue_is_functional_template__,
41
- __vue_module_identifier__,
42
- false,
43
- undefined,
44
- undefined,
45
- undefined
46
- );
47
-
48
- export default __vue_component__;
@@ -1,66 +0,0 @@
1
- import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
2
-
3
- var script = {
4
- data() {
5
- return {
6
- name: ''
7
- };
8
- },
9
-
10
- computed: {
11
- state() {
12
- return this.name.length >= 4;
13
- },
14
-
15
- invalidFeedback() {
16
- let feedbackText = 'This field is required.';
17
-
18
- if (this.name.length > 4) {
19
- feedbackText = '';
20
- } else if (this.name.length > 0) {
21
- feedbackText = 'Enter at least 4 characters.';
22
- }
23
-
24
- return feedbackText;
25
- }
26
-
27
- }
28
- };
29
-
30
- /* script */
31
- const __vue_script__ = script;
32
-
33
- /* template */
34
- var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('gl-form-group',{attrs:{"label":"Name","description":"Enter a first and last name.","invalid-feedback":_vm.invalidFeedback,"state":_vm.state,"label-for":"input1"}},[_c('gl-form-input',{attrs:{"id":"input1","state":_vm.state},model:{value:(_vm.name),callback:function ($$v) {_vm.name=(typeof $$v === 'string'? $$v.trim(): $$v);},expression:"name"}})],1)};
35
- var __vue_staticRenderFns__ = [];
36
-
37
- /* style */
38
- const __vue_inject_styles__ = undefined;
39
- /* scoped */
40
- const __vue_scope_id__ = undefined;
41
- /* module identifier */
42
- const __vue_module_identifier__ = undefined;
43
- /* functional template */
44
- const __vue_is_functional_template__ = false;
45
- /* style inject */
46
-
47
- /* style inject SSR */
48
-
49
- /* style inject shadow dom */
50
-
51
-
52
-
53
- const __vue_component__ = __vue_normalize__(
54
- { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
55
- __vue_inject_styles__,
56
- __vue_script__,
57
- __vue_scope_id__,
58
- __vue_is_functional_template__,
59
- __vue_module_identifier__,
60
- false,
61
- undefined,
62
- undefined,
63
- undefined
64
- );
65
-
66
- export default __vue_component__;
@@ -1,27 +0,0 @@
1
- import FormGroupBasicExample from './form_group.basic.example';
2
- import FormGroupDisabledExample from './form_group.disabled.example';
3
- import FormGroupTextareaExample from './form_group.textarea.example';
4
- import FormGroupValidationExample from './form_group.validation.example';
5
-
6
- var index = [{
7
- name: 'Form Group',
8
- items: [{
9
- id: 'form-group',
10
- name: 'basic example',
11
- component: FormGroupBasicExample
12
- }, {
13
- id: 'form-group-validations',
14
- name: 'with validations',
15
- component: FormGroupValidationExample
16
- }, {
17
- id: 'form-group-disabled',
18
- name: 'disabled',
19
- component: FormGroupDisabledExample
20
- }, {
21
- id: 'form-group-textarea',
22
- name: 'textarea',
23
- component: FormGroupTextareaExample
24
- }]
25
- }];
26
-
27
- export default index;
@@ -1,22 +0,0 @@
1
- import SearchBoxByClickDefaultExample from './search_box_by_click.default.example';
2
- import SearchBoxByClickHistoryExample from './search_box_by_click.history.example';
3
- import SearchBoxByClickVModelExample from './search_box_by_click.v_model.example';
4
-
5
- var index = [{
6
- name: 'Search Box By Click',
7
- items: [{
8
- id: 'search-box-by-click',
9
- name: 'default',
10
- component: SearchBoxByClickDefaultExample
11
- }, {
12
- id: 'search-box-by-click-v-model',
13
- name: 'Using v-model',
14
- component: SearchBoxByClickVModelExample
15
- }, {
16
- id: 'search-box-by-click-with-history',
17
- name: 'with history',
18
- component: SearchBoxByClickHistoryExample
19
- }]
20
- }];
21
-
22
- export default index;
@@ -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
- value: ''
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('div',{attrs:{"id":"tooltipcontainer"}},[_c('gl-search-box-by-click',{attrs:{"tooltip-container":"#tooltipcontainer"},model:{value:(_vm.value),callback:function ($$v) {_vm.value=$$v;},expression:"value"}})],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,51 +0,0 @@
1
- import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
2
-
3
- var script = {
4
- data() {
5
- return {
6
- value: '',
7
- history: ['author:@admin', 'assignee:@admin milestone:%12.5', 'label:~test']
8
- };
9
- }
10
-
11
- };
12
-
13
- /* script */
14
- const __vue_script__ = script;
15
-
16
- /* template */
17
- var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{"id":"tooltipcontainer"}},[_c('gl-search-box-by-click',{attrs:{"history-items":_vm.history,"tooltip-container":"#tooltipcontainer"},scopedSlots:_vm._u([{key:"history-item",fn:function(ref){
18
- var historyItem = ref.historyItem;
19
- return [_vm._v("\n "+_vm._s(historyItem)+"\n ")]}}]),model:{value:(_vm.value),callback:function ($$v) {_vm.value=$$v;},expression:"value"}})],1)};
20
- var __vue_staticRenderFns__ = [];
21
-
22
- /* style */
23
- const __vue_inject_styles__ = undefined;
24
- /* scoped */
25
- const __vue_scope_id__ = undefined;
26
- /* module identifier */
27
- const __vue_module_identifier__ = undefined;
28
- /* functional template */
29
- const __vue_is_functional_template__ = false;
30
- /* style inject */
31
-
32
- /* style inject SSR */
33
-
34
- /* style inject shadow dom */
35
-
36
-
37
-
38
- const __vue_component__ = __vue_normalize__(
39
- { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
40
- __vue_inject_styles__,
41
- __vue_script__,
42
- __vue_scope_id__,
43
- __vue_is_functional_template__,
44
- __vue_module_identifier__,
45
- false,
46
- undefined,
47
- undefined,
48
- undefined
49
- );
50
-
51
- 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
- text: ''
7
- };
8
- },
9
-
10
- methods: {
11
- setText() {
12
- this.text = 'Something else';
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',{attrs:{"id":"tooltipcontainer"}},[_c('gl-search-box-by-click',{attrs:{"tooltip-container":"#tooltipcontainer"},model:{value:(_vm.text),callback:function ($$v) {_vm.text=$$v;},expression:"text"}}),_vm._v(" "),_c('gl-button',{staticClass:"gl-mt-4",on:{"click":_vm.setText}},[_vm._v("Click here to set text to \"Something else\" using v-model")])],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,17 +0,0 @@
1
- import SearchBoxByTypeDefaultExample from './search_box_by_type.default.example';
2
- import SearchBoxByTypeLoadingExample from './search_box_by_type.loading.example';
3
-
4
- var index = [{
5
- name: 'Search Box By Type',
6
- items: [{
7
- id: 'search-box-by-type',
8
- name: 'default',
9
- component: SearchBoxByTypeDefaultExample
10
- }, {
11
- id: 'search-box-by-type-loading',
12
- name: 'loading',
13
- component: SearchBoxByTypeLoadingExample
14
- }]
15
- }];
16
-
17
- export default index;
@@ -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
- value: ''
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('div',{attrs:{"id":"tooltipcontainer"}},[_c('gl-search-box-by-type',{attrs:{"tooltip-container":"#tooltipcontainer"},model:{value:(_vm.value),callback:function ($$v) {_vm.value=$$v;},expression:"value"}})],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,65 +0,0 @@
1
- import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
2
-
3
- var script = {
4
- data() {
5
- return {
6
- value: '',
7
- isLoading: false
8
- };
9
- },
10
-
11
- watch: {
12
- value(newValue) {
13
- if (newValue) {
14
- clearTimeout(this.loader);
15
- this.isLoading = true;
16
- this.loader = setTimeout(() => {
17
- this.isLoading = false;
18
- }, 2000);
19
- } else if (this.loader) {
20
- this.isLoading = false;
21
- clearTimeout(this.loader);
22
- this.loader = null;
23
- }
24
- }
25
-
26
- }
27
- };
28
-
29
- /* script */
30
- const __vue_script__ = script;
31
-
32
- /* template */
33
- var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{"id":"tooltipcontainer"}},[_c('gl-search-box-by-type',{attrs:{"is-loading":_vm.isLoading,"tooltip-container":"#tooltipcontainer"},model:{value:(_vm.value),callback:function ($$v) {_vm.value=$$v;},expression:"value"}})],1)};
34
- var __vue_staticRenderFns__ = [];
35
-
36
- /* style */
37
- const __vue_inject_styles__ = undefined;
38
- /* scoped */
39
- const __vue_scope_id__ = undefined;
40
- /* module identifier */
41
- const __vue_module_identifier__ = undefined;
42
- /* functional template */
43
- const __vue_is_functional_template__ = false;
44
- /* style inject */
45
-
46
- /* style inject SSR */
47
-
48
- /* style inject shadow dom */
49
-
50
-
51
-
52
- const __vue_component__ = __vue_normalize__(
53
- { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
54
- __vue_inject_styles__,
55
- __vue_script__,
56
- __vue_scope_id__,
57
- __vue_is_functional_template__,
58
- __vue_module_identifier__,
59
- false,
60
- undefined,
61
- undefined,
62
- undefined
63
- );
64
-
65
- export default __vue_component__;
@@ -1,12 +0,0 @@
1
- import BasicExample from './resize_observer.basic.example';
2
-
3
- var index = [{
4
- name: 'ResizeObserver directive',
5
- items: [{
6
- id: 'resize-observer-directive-example',
7
- name: 'ResizeObserver directive example',
8
- component: BasicExample
9
- }]
10
- }];
11
-
12
- export default index;