@gitlab/ui 37.3.0 → 37.4.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 +8 -0
- package/dist/components/base/form/form_group/form_group.documentation.js +2 -6
- package/dist/components/base/search_box_by_click/search_box_by_click.documentation.js +2 -80
- package/dist/components/base/search_box_by_click/search_box_by_click.js +60 -1
- package/dist/components/base/search_box_by_type/search_box_by_type.documentation.js +2 -20
- package/dist/components/base/search_box_by_type/search_box_by_type.js +19 -5
- package/dist/directives/hover_load/hover_load.documentation.js +1 -1
- package/dist/directives/resize_observer/resize_observer.documentation.js +2 -5
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/documentation/documented_stories.js +5 -0
- package/package.json +1 -1
- package/src/components/base/button/button.scss +5 -9
- package/src/components/base/form/form_group/form_group.documentation.js +0 -3
- package/src/components/base/form/form_group/form_group.md +0 -2
- package/src/components/base/form/form_group/form_group.stories.js +106 -145
- package/src/components/base/search_box_by_click/search_box_by_click.documentation.js +0 -90
- package/src/components/base/search_box_by_click/search_box_by_click.md +0 -2
- package/src/components/base/search_box_by_click/search_box_by_click.stories.js +91 -48
- package/src/components/base/search_box_by_click/search_box_by_click.vue +50 -1
- package/src/components/base/search_box_by_type/search_box_by_type.documentation.js +0 -18
- package/src/components/base/search_box_by_type/search_box_by_type.md +0 -2
- package/src/components/base/search_box_by_type/search_box_by_type.stories.js +49 -43
- package/src/components/base/search_box_by_type/search_box_by_type.vue +16 -6
- package/src/directives/hover_load/hover_load.md +0 -2
- package/src/directives/hover_load/hover_load.stories.js +39 -34
- package/src/directives/resize_observer/resize_observer.documentation.js +0 -2
- package/src/directives/resize_observer/resize_observer.md +0 -6
- package/src/directives/resize_observer/resize_observer.stories.js +70 -51
- package/dist/components/base/form/form_group/examples/form_group/form_group.basic.example.js +0 -38
- package/dist/components/base/form/form_group/examples/form_group/form_group.disabled.example.js +0 -48
- package/dist/components/base/form/form_group/examples/form_group/form_group.textarea.example.js +0 -48
- package/dist/components/base/form/form_group/examples/form_group/form_group.validation.example.js +0 -66
- package/dist/components/base/form/form_group/examples/form_group/index.js +0 -27
- package/dist/components/base/search_box_by_click/examples/index.js +0 -22
- package/dist/components/base/search_box_by_click/examples/search_box_by_click.default.example.js +0 -48
- package/dist/components/base/search_box_by_click/examples/search_box_by_click.history.example.js +0 -51
- package/dist/components/base/search_box_by_click/examples/search_box_by_click.v_model.example.js +0 -54
- package/dist/components/base/search_box_by_type/examples/index.js +0 -17
- package/dist/components/base/search_box_by_type/examples/search_box_by_type.default.example.js +0 -48
- package/dist/components/base/search_box_by_type/examples/search_box_by_type.loading.example.js +0 -65
- package/dist/directives/resize_observer/examples/index.js +0 -12
- package/dist/directives/resize_observer/examples/resize_observer.basic.example.js +0 -62
- package/src/components/base/form/form_group/examples/form_group/form_group.basic.example.vue +0 -11
- package/src/components/base/form/form_group/examples/form_group/form_group.disabled.example.vue +0 -21
- package/src/components/base/form/form_group/examples/form_group/form_group.textarea.example.vue +0 -15
- package/src/components/base/form/form_group/examples/form_group/form_group.validation.example.vue +0 -36
- package/src/components/base/form/form_group/examples/form_group/index.js +0 -32
- package/src/components/base/search_box_by_click/examples/index.js +0 -26
- package/src/components/base/search_box_by_click/examples/search_box_by_click.default.example.vue +0 -14
- package/src/components/base/search_box_by_click/examples/search_box_by_click.history.example.vue +0 -23
- package/src/components/base/search_box_by_click/examples/search_box_by_click.v_model.example.vue +0 -23
- package/src/components/base/search_box_by_type/examples/index.js +0 -20
- package/src/components/base/search_box_by_type/examples/search_box_by_type.default.example.vue +0 -14
- package/src/components/base/search_box_by_type/examples/search_box_by_type.loading.example.vue +0 -34
- package/src/directives/resize_observer/examples/index.js +0 -14
- package/src/directives/resize_observer/examples/resize_observer.basic.example.vue +0 -21
package/dist/components/base/form/form_group/examples/form_group/form_group.textarea.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
|
-
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__;
|
package/dist/components/base/form/form_group/examples/form_group/form_group.validation.example.js
DELETED
|
@@ -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;
|
package/dist/components/base/search_box_by_click/examples/search_box_by_click.default.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
|
-
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__;
|
package/dist/components/base/search_box_by_click/examples/search_box_by_click.history.example.js
DELETED
|
@@ -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__;
|
package/dist/components/base/search_box_by_click/examples/search_box_by_click.v_model.example.js
DELETED
|
@@ -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;
|
package/dist/components/base/search_box_by_type/examples/search_box_by_type.default.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
|
-
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__;
|
package/dist/components/base/search_box_by_type/examples/search_box_by_type.loading.example.js
DELETED
|
@@ -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;
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
2
|
-
|
|
3
|
-
var script = {
|
|
4
|
-
data() {
|
|
5
|
-
return {
|
|
6
|
-
width: 0,
|
|
7
|
-
height: 0
|
|
8
|
-
};
|
|
9
|
-
},
|
|
10
|
-
|
|
11
|
-
methods: {
|
|
12
|
-
handleResize(_ref) {
|
|
13
|
-
let {
|
|
14
|
-
contentRect: {
|
|
15
|
-
width,
|
|
16
|
-
height
|
|
17
|
-
}
|
|
18
|
-
} = _ref;
|
|
19
|
-
this.width = width;
|
|
20
|
-
this.height = height;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
/* script */
|
|
27
|
-
const __vue_script__ = script;
|
|
28
|
-
|
|
29
|
-
/* template */
|
|
30
|
-
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"gl-resize-observer-directive",rawName:"v-gl-resize-observer-directive",value:(_vm.handleResize),expression:"handleResize"}]},[_c('p',[_vm._v(_vm._s(_vm.width)+" x "+_vm._s(_vm.height))])])};
|
|
31
|
-
var __vue_staticRenderFns__ = [];
|
|
32
|
-
|
|
33
|
-
/* style */
|
|
34
|
-
const __vue_inject_styles__ = undefined;
|
|
35
|
-
/* scoped */
|
|
36
|
-
const __vue_scope_id__ = undefined;
|
|
37
|
-
/* module identifier */
|
|
38
|
-
const __vue_module_identifier__ = undefined;
|
|
39
|
-
/* functional template */
|
|
40
|
-
const __vue_is_functional_template__ = false;
|
|
41
|
-
/* style inject */
|
|
42
|
-
|
|
43
|
-
/* style inject SSR */
|
|
44
|
-
|
|
45
|
-
/* style inject shadow dom */
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
const __vue_component__ = __vue_normalize__(
|
|
50
|
-
{ render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
|
|
51
|
-
__vue_inject_styles__,
|
|
52
|
-
__vue_script__,
|
|
53
|
-
__vue_scope_id__,
|
|
54
|
-
__vue_is_functional_template__,
|
|
55
|
-
__vue_module_identifier__,
|
|
56
|
-
false,
|
|
57
|
-
undefined,
|
|
58
|
-
undefined,
|
|
59
|
-
undefined
|
|
60
|
-
);
|
|
61
|
-
|
|
62
|
-
export default __vue_component__;
|
package/src/components/base/form/form_group/examples/form_group/form_group.disabled.example.vue
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
export default {
|
|
3
|
-
computed: {
|
|
4
|
-
disabled() {
|
|
5
|
-
return true;
|
|
6
|
-
},
|
|
7
|
-
},
|
|
8
|
-
};
|
|
9
|
-
</script>
|
|
10
|
-
|
|
11
|
-
<template>
|
|
12
|
-
<gl-form-group
|
|
13
|
-
id="group-id"
|
|
14
|
-
label="Label Name"
|
|
15
|
-
label-size="sm"
|
|
16
|
-
description="This feature is disabled"
|
|
17
|
-
label-for="input1"
|
|
18
|
-
>
|
|
19
|
-
<gl-form-input id="input1" type="text" :disabled="disabled" value="Disabled" />
|
|
20
|
-
</gl-form-group>
|
|
21
|
-
</template>
|
package/src/components/base/form/form_group/examples/form_group/form_group.textarea.example.vue
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
export default {
|
|
3
|
-
data() {
|
|
4
|
-
return {
|
|
5
|
-
text: '',
|
|
6
|
-
};
|
|
7
|
-
},
|
|
8
|
-
};
|
|
9
|
-
</script>
|
|
10
|
-
|
|
11
|
-
<template>
|
|
12
|
-
<gl-form-group id="group-id-textarea1" label="Label Name" label-for="textarea1">
|
|
13
|
-
<gl-form-textarea id="textarea1" v-model="text" placeholder="Enter something" />
|
|
14
|
-
</gl-form-group>
|
|
15
|
-
</template>
|
package/src/components/base/form/form_group/examples/form_group/form_group.validation.example.vue
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
export default {
|
|
3
|
-
data() {
|
|
4
|
-
return {
|
|
5
|
-
name: '',
|
|
6
|
-
};
|
|
7
|
-
},
|
|
8
|
-
computed: {
|
|
9
|
-
state() {
|
|
10
|
-
return this.name.length >= 4;
|
|
11
|
-
},
|
|
12
|
-
invalidFeedback() {
|
|
13
|
-
let feedbackText = 'This field is required.';
|
|
14
|
-
|
|
15
|
-
if (this.name.length > 4) {
|
|
16
|
-
feedbackText = '';
|
|
17
|
-
} else if (this.name.length > 0) {
|
|
18
|
-
feedbackText = 'Enter at least 4 characters.';
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
return feedbackText;
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
};
|
|
25
|
-
</script>
|
|
26
|
-
<template>
|
|
27
|
-
<gl-form-group
|
|
28
|
-
label="Name"
|
|
29
|
-
description="Enter a first and last name."
|
|
30
|
-
:invalid-feedback="invalidFeedback"
|
|
31
|
-
:state="state"
|
|
32
|
-
label-for="input1"
|
|
33
|
-
>
|
|
34
|
-
<gl-form-input id="input1" v-model.trim="name" :state="state" />
|
|
35
|
-
</gl-form-group>
|
|
36
|
-
</template>
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import FormGroupBasicExample from './form_group.basic.example.vue';
|
|
2
|
-
import FormGroupDisabledExample from './form_group.disabled.example.vue';
|
|
3
|
-
import FormGroupTextareaExample from './form_group.textarea.example.vue';
|
|
4
|
-
import FormGroupValidationExample from './form_group.validation.example.vue';
|
|
5
|
-
|
|
6
|
-
export default [
|
|
7
|
-
{
|
|
8
|
-
name: 'Form Group',
|
|
9
|
-
items: [
|
|
10
|
-
{
|
|
11
|
-
id: 'form-group',
|
|
12
|
-
name: 'basic example',
|
|
13
|
-
component: FormGroupBasicExample,
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
id: 'form-group-validations',
|
|
17
|
-
name: 'with validations',
|
|
18
|
-
component: FormGroupValidationExample,
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
id: 'form-group-disabled',
|
|
22
|
-
name: 'disabled',
|
|
23
|
-
component: FormGroupDisabledExample,
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
id: 'form-group-textarea',
|
|
27
|
-
name: 'textarea',
|
|
28
|
-
component: FormGroupTextareaExample,
|
|
29
|
-
},
|
|
30
|
-
],
|
|
31
|
-
},
|
|
32
|
-
];
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import SearchBoxByClickDefaultExample from './search_box_by_click.default.example.vue';
|
|
2
|
-
import SearchBoxByClickHistoryExample from './search_box_by_click.history.example.vue';
|
|
3
|
-
import SearchBoxByClickVModelExample from './search_box_by_click.v_model.example.vue';
|
|
4
|
-
|
|
5
|
-
export default [
|
|
6
|
-
{
|
|
7
|
-
name: 'Search Box By Click',
|
|
8
|
-
items: [
|
|
9
|
-
{
|
|
10
|
-
id: 'search-box-by-click',
|
|
11
|
-
name: 'default',
|
|
12
|
-
component: SearchBoxByClickDefaultExample,
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
id: 'search-box-by-click-v-model',
|
|
16
|
-
name: 'Using v-model',
|
|
17
|
-
component: SearchBoxByClickVModelExample,
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
id: 'search-box-by-click-with-history',
|
|
21
|
-
name: 'with history',
|
|
22
|
-
component: SearchBoxByClickHistoryExample,
|
|
23
|
-
},
|
|
24
|
-
],
|
|
25
|
-
},
|
|
26
|
-
];
|