toggle-components-library 1.37.1 → 1.38.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/dist/img/edit-icon.9a5af324.svg +1 -0
- package/dist/toggle-components-library.common.js +154 -12
- package/dist/toggle-components-library.common.js.map +1 -1
- package/dist/toggle-components-library.css +1 -1
- package/dist/toggle-components-library.umd.js +154 -12
- package/dist/toggle-components-library.umd.js.map +1 -1
- package/dist/toggle-components-library.umd.min.js +110 -110
- package/dist/toggle-components-library.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/assets/icons/edit-icon.svg +1 -0
- package/src/components/breadcrumb/ToggleBreadCrumb.vue +22 -18
- package/src/components/forms/ToggleInputRadioButtonMini.vue +56 -0
- package/src/index.js +2 -0
- package/src/sass/includes/_as_breadcrumb.scss +27 -1
- package/src/sass/includes/_as_inputs.scss +67 -0
|
@@ -43000,6 +43000,132 @@ var ToggleInputRadioButtons_component = normalizeComponent(
|
|
|
43000
43000
|
)
|
|
43001
43001
|
|
|
43002
43002
|
/* harmony default export */ var ToggleInputRadioButtons = (ToggleInputRadioButtons_component.exports);
|
|
43003
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"141a65b5-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/forms/ToggleInputRadioButtonMini.vue?vue&type=template&id=3d259af0&
|
|
43004
|
+
var ToggleInputRadioButtonMinivue_type_template_id_3d259af0_render = function render() {
|
|
43005
|
+
var _vm = this,
|
|
43006
|
+
_c = _vm._self._c;
|
|
43007
|
+
return _c('div', {
|
|
43008
|
+
staticClass: "toggle-input-radio-button-mini-switch-wrapper"
|
|
43009
|
+
}, [_c('label', {
|
|
43010
|
+
class: ['toggle-input-radio-button-mini-switch', {
|
|
43011
|
+
'toggle-input-radio-button-mini-switch-disabled': _vm.disabled
|
|
43012
|
+
}]
|
|
43013
|
+
}, [_c('input', {
|
|
43014
|
+
directives: [{
|
|
43015
|
+
name: "model",
|
|
43016
|
+
rawName: "v-model",
|
|
43017
|
+
value: _vm.value,
|
|
43018
|
+
expression: "value"
|
|
43019
|
+
}],
|
|
43020
|
+
attrs: {
|
|
43021
|
+
"type": "checkbox",
|
|
43022
|
+
"disabled": _vm.disabled
|
|
43023
|
+
},
|
|
43024
|
+
domProps: {
|
|
43025
|
+
"value": _vm.value,
|
|
43026
|
+
"checked": Array.isArray(_vm.value) ? _vm._i(_vm.value, _vm.value) > -1 : _vm.value
|
|
43027
|
+
},
|
|
43028
|
+
on: {
|
|
43029
|
+
"change": function ($event) {
|
|
43030
|
+
var $$a = _vm.value,
|
|
43031
|
+
$$el = $event.target,
|
|
43032
|
+
$$c = $$el.checked ? true : false;
|
|
43033
|
+
if (Array.isArray($$a)) {
|
|
43034
|
+
var $$v = _vm.value,
|
|
43035
|
+
$$i = _vm._i($$a, $$v);
|
|
43036
|
+
if ($$el.checked) {
|
|
43037
|
+
$$i < 0 && (_vm.value = $$a.concat([$$v]));
|
|
43038
|
+
} else {
|
|
43039
|
+
$$i > -1 && (_vm.value = $$a.slice(0, $$i).concat($$a.slice($$i + 1)));
|
|
43040
|
+
}
|
|
43041
|
+
} else {
|
|
43042
|
+
_vm.value = $$c;
|
|
43043
|
+
}
|
|
43044
|
+
}
|
|
43045
|
+
}
|
|
43046
|
+
}), _c('span', {
|
|
43047
|
+
class: ['toggle-input-radio-button-mini-slider', {
|
|
43048
|
+
'toggle-input-radio-button-mini-slider-disabled': _vm.disabled
|
|
43049
|
+
}],
|
|
43050
|
+
style: _vm.value == false ? 'background-color: ' + _vm.inactiveStyles.backgroundColor : 'background-color: ' + _vm.activeStyles.backgroundColor
|
|
43051
|
+
}, [_c('span', {
|
|
43052
|
+
staticClass: "toggle-input-radio-button-mini-text-on",
|
|
43053
|
+
style: 'color: ' + _vm.activeStyles.color
|
|
43054
|
+
}, [_vm._v("On")]), _c('span', {
|
|
43055
|
+
staticClass: "toggle-input-radio-button-mini-text-off",
|
|
43056
|
+
style: 'color: ' + _vm.inactiveStyles.color
|
|
43057
|
+
}, [_vm._v("Off")])])])]);
|
|
43058
|
+
};
|
|
43059
|
+
var ToggleInputRadioButtonMinivue_type_template_id_3d259af0_staticRenderFns = [];
|
|
43060
|
+
|
|
43061
|
+
// CONCATENATED MODULE: ./src/components/forms/ToggleInputRadioButtonMini.vue?vue&type=template&id=3d259af0&
|
|
43062
|
+
|
|
43063
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/forms/ToggleInputRadioButtonMini.vue?vue&type=script&lang=js&
|
|
43064
|
+
/* harmony default export */ var ToggleInputRadioButtonMinivue_type_script_lang_js_ = ({
|
|
43065
|
+
name: 'ToggleInputRadioButtonMini',
|
|
43066
|
+
props: {
|
|
43067
|
+
disabled: {
|
|
43068
|
+
type: Boolean,
|
|
43069
|
+
default: false
|
|
43070
|
+
},
|
|
43071
|
+
// Allows for the passing of background colour and text colour for active and inactive states
|
|
43072
|
+
styles: {
|
|
43073
|
+
type: Object,
|
|
43074
|
+
default: () => ({})
|
|
43075
|
+
}
|
|
43076
|
+
},
|
|
43077
|
+
computed: {
|
|
43078
|
+
value: {
|
|
43079
|
+
get() {
|
|
43080
|
+
return this.$attrs.value;
|
|
43081
|
+
},
|
|
43082
|
+
set(value) {
|
|
43083
|
+
this.$emit('input', value);
|
|
43084
|
+
}
|
|
43085
|
+
},
|
|
43086
|
+
activeStyles() {
|
|
43087
|
+
var _this$styles$active, _this$styles$active2;
|
|
43088
|
+
return {
|
|
43089
|
+
backgroundColor: (_this$styles$active = this.styles.active) !== null && _this$styles$active !== void 0 && _this$styles$active.backgroundColor ? this.styles.active.backgroundColor : '#2196F3',
|
|
43090
|
+
color: (_this$styles$active2 = this.styles.active) !== null && _this$styles$active2 !== void 0 && _this$styles$active2.color ? this.styles.active.color : '#ffffff'
|
|
43091
|
+
};
|
|
43092
|
+
},
|
|
43093
|
+
inactiveStyles() {
|
|
43094
|
+
var _this$styles$inactive, _this$styles$inactive2;
|
|
43095
|
+
return {
|
|
43096
|
+
backgroundColor: (_this$styles$inactive = this.styles.inactive) !== null && _this$styles$inactive !== void 0 && _this$styles$inactive.backgroundColor ? this.styles.inactive.backgroundColor : '#ccc',
|
|
43097
|
+
color: (_this$styles$inactive2 = this.styles.inactive) !== null && _this$styles$inactive2 !== void 0 && _this$styles$inactive2.color ? this.styles.inactive.color : '#3A4A62'
|
|
43098
|
+
};
|
|
43099
|
+
}
|
|
43100
|
+
},
|
|
43101
|
+
watch: {
|
|
43102
|
+
value: function (val) {
|
|
43103
|
+
this.$emit('input', val);
|
|
43104
|
+
}
|
|
43105
|
+
}
|
|
43106
|
+
});
|
|
43107
|
+
// CONCATENATED MODULE: ./src/components/forms/ToggleInputRadioButtonMini.vue?vue&type=script&lang=js&
|
|
43108
|
+
/* harmony default export */ var forms_ToggleInputRadioButtonMinivue_type_script_lang_js_ = (ToggleInputRadioButtonMinivue_type_script_lang_js_);
|
|
43109
|
+
// CONCATENATED MODULE: ./src/components/forms/ToggleInputRadioButtonMini.vue
|
|
43110
|
+
|
|
43111
|
+
|
|
43112
|
+
|
|
43113
|
+
|
|
43114
|
+
|
|
43115
|
+
/* normalize component */
|
|
43116
|
+
|
|
43117
|
+
var ToggleInputRadioButtonMini_component = normalizeComponent(
|
|
43118
|
+
forms_ToggleInputRadioButtonMinivue_type_script_lang_js_,
|
|
43119
|
+
ToggleInputRadioButtonMinivue_type_template_id_3d259af0_render,
|
|
43120
|
+
ToggleInputRadioButtonMinivue_type_template_id_3d259af0_staticRenderFns,
|
|
43121
|
+
false,
|
|
43122
|
+
null,
|
|
43123
|
+
null,
|
|
43124
|
+
null
|
|
43125
|
+
|
|
43126
|
+
)
|
|
43127
|
+
|
|
43128
|
+
/* harmony default export */ var ToggleInputRadioButtonMini = (ToggleInputRadioButtonMini_component.exports);
|
|
43003
43129
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"141a65b5-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/forms/ToggleInputTextArea.vue?vue&type=template&id=60540840&
|
|
43004
43130
|
var ToggleInputTextAreavue_type_template_id_60540840_render = function render() {
|
|
43005
43131
|
var _vm = this,
|
|
@@ -48627,8 +48753,8 @@ var TogglePodiumBadge_component = normalizeComponent(
|
|
|
48627
48753
|
)
|
|
48628
48754
|
|
|
48629
48755
|
/* harmony default export */ var TogglePodiumBadge = (TogglePodiumBadge_component.exports);
|
|
48630
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"141a65b5-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/breadcrumb/ToggleBreadCrumb.vue?vue&type=template&id=
|
|
48631
|
-
var
|
|
48756
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"141a65b5-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/breadcrumb/ToggleBreadCrumb.vue?vue&type=template&id=5368c0f2&
|
|
48757
|
+
var ToggleBreadCrumbvue_type_template_id_5368c0f2_render = function render() {
|
|
48632
48758
|
var _vm = this,
|
|
48633
48759
|
_c = _vm._self._c;
|
|
48634
48760
|
return _vm.breadcrumb_computed ? _c('div', {
|
|
@@ -48636,7 +48762,16 @@ var ToggleBreadCrumbvue_type_template_id_b829739a_render = function render() {
|
|
|
48636
48762
|
}, _vm._l(_vm.breadcrumb_computed, function (crumb, index) {
|
|
48637
48763
|
return _c('div', {
|
|
48638
48764
|
key: index
|
|
48639
|
-
}, [
|
|
48765
|
+
}, [index === _vm.breadcrumb_computed.length - 1 && _vm.editable ? [_c('div', {
|
|
48766
|
+
staticClass: "toggle-breadcrumb-last-element-container"
|
|
48767
|
+
}, [_c('h1', {
|
|
48768
|
+
staticClass: "toggle-breadcrumb-h1 toggle-breadcrumb-last-element"
|
|
48769
|
+
}, [_vm._v(_vm._s(crumb.name))]), _vm.editable ? _c('div', {
|
|
48770
|
+
staticClass: "toggle-breadcrumb-edit-icon",
|
|
48771
|
+
on: {
|
|
48772
|
+
"click": _vm.editClicked
|
|
48773
|
+
}
|
|
48774
|
+
}) : _vm._e()])] : [crumb.link && !_vm.isNuxt ? _c('router-link', {
|
|
48640
48775
|
staticClass: "back-product",
|
|
48641
48776
|
attrs: {
|
|
48642
48777
|
"to": {
|
|
@@ -48654,16 +48789,15 @@ var ToggleBreadCrumbvue_type_template_id_b829739a_render = function render() {
|
|
|
48654
48789
|
staticClass: "toggle-breadcrumb-arrow-right"
|
|
48655
48790
|
}) : _vm._e(), !crumb.link ? _c('h1', {
|
|
48656
48791
|
staticClass: "toggle-breadcrumb-h1"
|
|
48657
|
-
}, [_vm._v(_vm._s(crumb.name))]) : _vm._e()],
|
|
48792
|
+
}, [_vm._v(_vm._s(crumb.name))]) : _vm._e()]], 2);
|
|
48658
48793
|
}), 0) : _vm._e();
|
|
48659
48794
|
};
|
|
48660
|
-
var
|
|
48795
|
+
var ToggleBreadCrumbvue_type_template_id_5368c0f2_staticRenderFns = [];
|
|
48661
48796
|
|
|
48662
|
-
// CONCATENATED MODULE: ./src/components/breadcrumb/ToggleBreadCrumb.vue?vue&type=template&id=
|
|
48797
|
+
// CONCATENATED MODULE: ./src/components/breadcrumb/ToggleBreadCrumb.vue?vue&type=template&id=5368c0f2&
|
|
48663
48798
|
|
|
48664
48799
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/breadcrumb/ToggleBreadCrumb.vue?vue&type=script&lang=js&
|
|
48665
48800
|
/* harmony default export */ var ToggleBreadCrumbvue_type_script_lang_js_ = ({
|
|
48666
|
-
mixins: [],
|
|
48667
48801
|
props: {
|
|
48668
48802
|
isNuxt: {
|
|
48669
48803
|
type: Boolean,
|
|
@@ -48672,15 +48806,21 @@ var ToggleBreadCrumbvue_type_template_id_b829739a_staticRenderFns = [];
|
|
|
48672
48806
|
breadcrumb: {
|
|
48673
48807
|
type: Array,
|
|
48674
48808
|
required: false
|
|
48809
|
+
},
|
|
48810
|
+
editable: {
|
|
48811
|
+
type: Boolean,
|
|
48812
|
+
default: false
|
|
48675
48813
|
}
|
|
48676
48814
|
},
|
|
48677
|
-
data: function () {
|
|
48678
|
-
return {};
|
|
48679
|
-
},
|
|
48680
48815
|
computed: {
|
|
48681
48816
|
breadcrumb_computed() {
|
|
48682
48817
|
return this.isNuxt ? this.breadcrumb : this.$route.meta.breadcrumb;
|
|
48683
48818
|
}
|
|
48819
|
+
},
|
|
48820
|
+
methods: {
|
|
48821
|
+
editClicked() {
|
|
48822
|
+
this.$emit('edit-clicked');
|
|
48823
|
+
}
|
|
48684
48824
|
}
|
|
48685
48825
|
});
|
|
48686
48826
|
// CONCATENATED MODULE: ./src/components/breadcrumb/ToggleBreadCrumb.vue?vue&type=script&lang=js&
|
|
@@ -48695,8 +48835,8 @@ var ToggleBreadCrumbvue_type_template_id_b829739a_staticRenderFns = [];
|
|
|
48695
48835
|
|
|
48696
48836
|
var ToggleBreadCrumb_component = normalizeComponent(
|
|
48697
48837
|
breadcrumb_ToggleBreadCrumbvue_type_script_lang_js_,
|
|
48698
|
-
|
|
48699
|
-
|
|
48838
|
+
ToggleBreadCrumbvue_type_template_id_5368c0f2_render,
|
|
48839
|
+
ToggleBreadCrumbvue_type_template_id_5368c0f2_staticRenderFns,
|
|
48700
48840
|
false,
|
|
48701
48841
|
null,
|
|
48702
48842
|
null,
|
|
@@ -51964,6 +52104,7 @@ var main = __webpack_require__("dc44");
|
|
|
51964
52104
|
|
|
51965
52105
|
|
|
51966
52106
|
|
|
52107
|
+
|
|
51967
52108
|
|
|
51968
52109
|
|
|
51969
52110
|
const Components = {
|
|
@@ -51982,6 +52123,7 @@ const Components = {
|
|
|
51982
52123
|
ToggleInputPercentage: ToggleInputPercentage,
|
|
51983
52124
|
ToggleInputCurrency: ToggleInputCurrency,
|
|
51984
52125
|
ToggleInputRadioButtons: ToggleInputRadioButtons,
|
|
52126
|
+
ToggleInputRadioButtonMini: ToggleInputRadioButtonMini,
|
|
51985
52127
|
ToggleInputTextArea: ToggleInputTextArea,
|
|
51986
52128
|
ToggleInputCheckboxContainer: ToggleInputCheckboxContainer,
|
|
51987
52129
|
ToggleInputCheckbox: ToggleInputCheckbox,
|