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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="#abb7c5"><path d="M200-200h57l391-391-57-57-391 391v57Zm-80 80v-170l528-527q12-11 26.5-17t30.5-6q16 0 31 6t26 18l55 56q12 11 17.5 26t5.5 30q0 16-5.5 30.5T817-647L290-120H120Zm640-584-56-56 56 56Zm-141 85-28-29 57 57-29-28Z"/></svg>
|
|
@@ -42991,6 +42991,132 @@ var ToggleInputRadioButtons_component = normalizeComponent(
|
|
|
42991
42991
|
)
|
|
42992
42992
|
|
|
42993
42993
|
/* harmony default export */ var ToggleInputRadioButtons = (ToggleInputRadioButtons_component.exports);
|
|
42994
|
+
// 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&
|
|
42995
|
+
var ToggleInputRadioButtonMinivue_type_template_id_3d259af0_render = function render() {
|
|
42996
|
+
var _vm = this,
|
|
42997
|
+
_c = _vm._self._c;
|
|
42998
|
+
return _c('div', {
|
|
42999
|
+
staticClass: "toggle-input-radio-button-mini-switch-wrapper"
|
|
43000
|
+
}, [_c('label', {
|
|
43001
|
+
class: ['toggle-input-radio-button-mini-switch', {
|
|
43002
|
+
'toggle-input-radio-button-mini-switch-disabled': _vm.disabled
|
|
43003
|
+
}]
|
|
43004
|
+
}, [_c('input', {
|
|
43005
|
+
directives: [{
|
|
43006
|
+
name: "model",
|
|
43007
|
+
rawName: "v-model",
|
|
43008
|
+
value: _vm.value,
|
|
43009
|
+
expression: "value"
|
|
43010
|
+
}],
|
|
43011
|
+
attrs: {
|
|
43012
|
+
"type": "checkbox",
|
|
43013
|
+
"disabled": _vm.disabled
|
|
43014
|
+
},
|
|
43015
|
+
domProps: {
|
|
43016
|
+
"value": _vm.value,
|
|
43017
|
+
"checked": Array.isArray(_vm.value) ? _vm._i(_vm.value, _vm.value) > -1 : _vm.value
|
|
43018
|
+
},
|
|
43019
|
+
on: {
|
|
43020
|
+
"change": function ($event) {
|
|
43021
|
+
var $$a = _vm.value,
|
|
43022
|
+
$$el = $event.target,
|
|
43023
|
+
$$c = $$el.checked ? true : false;
|
|
43024
|
+
if (Array.isArray($$a)) {
|
|
43025
|
+
var $$v = _vm.value,
|
|
43026
|
+
$$i = _vm._i($$a, $$v);
|
|
43027
|
+
if ($$el.checked) {
|
|
43028
|
+
$$i < 0 && (_vm.value = $$a.concat([$$v]));
|
|
43029
|
+
} else {
|
|
43030
|
+
$$i > -1 && (_vm.value = $$a.slice(0, $$i).concat($$a.slice($$i + 1)));
|
|
43031
|
+
}
|
|
43032
|
+
} else {
|
|
43033
|
+
_vm.value = $$c;
|
|
43034
|
+
}
|
|
43035
|
+
}
|
|
43036
|
+
}
|
|
43037
|
+
}), _c('span', {
|
|
43038
|
+
class: ['toggle-input-radio-button-mini-slider', {
|
|
43039
|
+
'toggle-input-radio-button-mini-slider-disabled': _vm.disabled
|
|
43040
|
+
}],
|
|
43041
|
+
style: _vm.value == false ? 'background-color: ' + _vm.inactiveStyles.backgroundColor : 'background-color: ' + _vm.activeStyles.backgroundColor
|
|
43042
|
+
}, [_c('span', {
|
|
43043
|
+
staticClass: "toggle-input-radio-button-mini-text-on",
|
|
43044
|
+
style: 'color: ' + _vm.activeStyles.color
|
|
43045
|
+
}, [_vm._v("On")]), _c('span', {
|
|
43046
|
+
staticClass: "toggle-input-radio-button-mini-text-off",
|
|
43047
|
+
style: 'color: ' + _vm.inactiveStyles.color
|
|
43048
|
+
}, [_vm._v("Off")])])])]);
|
|
43049
|
+
};
|
|
43050
|
+
var ToggleInputRadioButtonMinivue_type_template_id_3d259af0_staticRenderFns = [];
|
|
43051
|
+
|
|
43052
|
+
// CONCATENATED MODULE: ./src/components/forms/ToggleInputRadioButtonMini.vue?vue&type=template&id=3d259af0&
|
|
43053
|
+
|
|
43054
|
+
// 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&
|
|
43055
|
+
/* harmony default export */ var ToggleInputRadioButtonMinivue_type_script_lang_js_ = ({
|
|
43056
|
+
name: 'ToggleInputRadioButtonMini',
|
|
43057
|
+
props: {
|
|
43058
|
+
disabled: {
|
|
43059
|
+
type: Boolean,
|
|
43060
|
+
default: false
|
|
43061
|
+
},
|
|
43062
|
+
// Allows for the passing of background colour and text colour for active and inactive states
|
|
43063
|
+
styles: {
|
|
43064
|
+
type: Object,
|
|
43065
|
+
default: () => ({})
|
|
43066
|
+
}
|
|
43067
|
+
},
|
|
43068
|
+
computed: {
|
|
43069
|
+
value: {
|
|
43070
|
+
get() {
|
|
43071
|
+
return this.$attrs.value;
|
|
43072
|
+
},
|
|
43073
|
+
set(value) {
|
|
43074
|
+
this.$emit('input', value);
|
|
43075
|
+
}
|
|
43076
|
+
},
|
|
43077
|
+
activeStyles() {
|
|
43078
|
+
var _this$styles$active, _this$styles$active2;
|
|
43079
|
+
return {
|
|
43080
|
+
backgroundColor: (_this$styles$active = this.styles.active) !== null && _this$styles$active !== void 0 && _this$styles$active.backgroundColor ? this.styles.active.backgroundColor : '#2196F3',
|
|
43081
|
+
color: (_this$styles$active2 = this.styles.active) !== null && _this$styles$active2 !== void 0 && _this$styles$active2.color ? this.styles.active.color : '#ffffff'
|
|
43082
|
+
};
|
|
43083
|
+
},
|
|
43084
|
+
inactiveStyles() {
|
|
43085
|
+
var _this$styles$inactive, _this$styles$inactive2;
|
|
43086
|
+
return {
|
|
43087
|
+
backgroundColor: (_this$styles$inactive = this.styles.inactive) !== null && _this$styles$inactive !== void 0 && _this$styles$inactive.backgroundColor ? this.styles.inactive.backgroundColor : '#ccc',
|
|
43088
|
+
color: (_this$styles$inactive2 = this.styles.inactive) !== null && _this$styles$inactive2 !== void 0 && _this$styles$inactive2.color ? this.styles.inactive.color : '#3A4A62'
|
|
43089
|
+
};
|
|
43090
|
+
}
|
|
43091
|
+
},
|
|
43092
|
+
watch: {
|
|
43093
|
+
value: function (val) {
|
|
43094
|
+
this.$emit('input', val);
|
|
43095
|
+
}
|
|
43096
|
+
}
|
|
43097
|
+
});
|
|
43098
|
+
// CONCATENATED MODULE: ./src/components/forms/ToggleInputRadioButtonMini.vue?vue&type=script&lang=js&
|
|
43099
|
+
/* harmony default export */ var forms_ToggleInputRadioButtonMinivue_type_script_lang_js_ = (ToggleInputRadioButtonMinivue_type_script_lang_js_);
|
|
43100
|
+
// CONCATENATED MODULE: ./src/components/forms/ToggleInputRadioButtonMini.vue
|
|
43101
|
+
|
|
43102
|
+
|
|
43103
|
+
|
|
43104
|
+
|
|
43105
|
+
|
|
43106
|
+
/* normalize component */
|
|
43107
|
+
|
|
43108
|
+
var ToggleInputRadioButtonMini_component = normalizeComponent(
|
|
43109
|
+
forms_ToggleInputRadioButtonMinivue_type_script_lang_js_,
|
|
43110
|
+
ToggleInputRadioButtonMinivue_type_template_id_3d259af0_render,
|
|
43111
|
+
ToggleInputRadioButtonMinivue_type_template_id_3d259af0_staticRenderFns,
|
|
43112
|
+
false,
|
|
43113
|
+
null,
|
|
43114
|
+
null,
|
|
43115
|
+
null
|
|
43116
|
+
|
|
43117
|
+
)
|
|
43118
|
+
|
|
43119
|
+
/* harmony default export */ var ToggleInputRadioButtonMini = (ToggleInputRadioButtonMini_component.exports);
|
|
42994
43120
|
// 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&
|
|
42995
43121
|
var ToggleInputTextAreavue_type_template_id_60540840_render = function render() {
|
|
42996
43122
|
var _vm = this,
|
|
@@ -48618,8 +48744,8 @@ var TogglePodiumBadge_component = normalizeComponent(
|
|
|
48618
48744
|
)
|
|
48619
48745
|
|
|
48620
48746
|
/* harmony default export */ var TogglePodiumBadge = (TogglePodiumBadge_component.exports);
|
|
48621
|
-
// 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=
|
|
48622
|
-
var
|
|
48747
|
+
// 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&
|
|
48748
|
+
var ToggleBreadCrumbvue_type_template_id_5368c0f2_render = function render() {
|
|
48623
48749
|
var _vm = this,
|
|
48624
48750
|
_c = _vm._self._c;
|
|
48625
48751
|
return _vm.breadcrumb_computed ? _c('div', {
|
|
@@ -48627,7 +48753,16 @@ var ToggleBreadCrumbvue_type_template_id_b829739a_render = function render() {
|
|
|
48627
48753
|
}, _vm._l(_vm.breadcrumb_computed, function (crumb, index) {
|
|
48628
48754
|
return _c('div', {
|
|
48629
48755
|
key: index
|
|
48630
|
-
}, [
|
|
48756
|
+
}, [index === _vm.breadcrumb_computed.length - 1 && _vm.editable ? [_c('div', {
|
|
48757
|
+
staticClass: "toggle-breadcrumb-last-element-container"
|
|
48758
|
+
}, [_c('h1', {
|
|
48759
|
+
staticClass: "toggle-breadcrumb-h1 toggle-breadcrumb-last-element"
|
|
48760
|
+
}, [_vm._v(_vm._s(crumb.name))]), _vm.editable ? _c('div', {
|
|
48761
|
+
staticClass: "toggle-breadcrumb-edit-icon",
|
|
48762
|
+
on: {
|
|
48763
|
+
"click": _vm.editClicked
|
|
48764
|
+
}
|
|
48765
|
+
}) : _vm._e()])] : [crumb.link && !_vm.isNuxt ? _c('router-link', {
|
|
48631
48766
|
staticClass: "back-product",
|
|
48632
48767
|
attrs: {
|
|
48633
48768
|
"to": {
|
|
@@ -48645,16 +48780,15 @@ var ToggleBreadCrumbvue_type_template_id_b829739a_render = function render() {
|
|
|
48645
48780
|
staticClass: "toggle-breadcrumb-arrow-right"
|
|
48646
48781
|
}) : _vm._e(), !crumb.link ? _c('h1', {
|
|
48647
48782
|
staticClass: "toggle-breadcrumb-h1"
|
|
48648
|
-
}, [_vm._v(_vm._s(crumb.name))]) : _vm._e()],
|
|
48783
|
+
}, [_vm._v(_vm._s(crumb.name))]) : _vm._e()]], 2);
|
|
48649
48784
|
}), 0) : _vm._e();
|
|
48650
48785
|
};
|
|
48651
|
-
var
|
|
48786
|
+
var ToggleBreadCrumbvue_type_template_id_5368c0f2_staticRenderFns = [];
|
|
48652
48787
|
|
|
48653
|
-
// CONCATENATED MODULE: ./src/components/breadcrumb/ToggleBreadCrumb.vue?vue&type=template&id=
|
|
48788
|
+
// CONCATENATED MODULE: ./src/components/breadcrumb/ToggleBreadCrumb.vue?vue&type=template&id=5368c0f2&
|
|
48654
48789
|
|
|
48655
48790
|
// 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&
|
|
48656
48791
|
/* harmony default export */ var ToggleBreadCrumbvue_type_script_lang_js_ = ({
|
|
48657
|
-
mixins: [],
|
|
48658
48792
|
props: {
|
|
48659
48793
|
isNuxt: {
|
|
48660
48794
|
type: Boolean,
|
|
@@ -48663,15 +48797,21 @@ var ToggleBreadCrumbvue_type_template_id_b829739a_staticRenderFns = [];
|
|
|
48663
48797
|
breadcrumb: {
|
|
48664
48798
|
type: Array,
|
|
48665
48799
|
required: false
|
|
48800
|
+
},
|
|
48801
|
+
editable: {
|
|
48802
|
+
type: Boolean,
|
|
48803
|
+
default: false
|
|
48666
48804
|
}
|
|
48667
48805
|
},
|
|
48668
|
-
data: function () {
|
|
48669
|
-
return {};
|
|
48670
|
-
},
|
|
48671
48806
|
computed: {
|
|
48672
48807
|
breadcrumb_computed() {
|
|
48673
48808
|
return this.isNuxt ? this.breadcrumb : this.$route.meta.breadcrumb;
|
|
48674
48809
|
}
|
|
48810
|
+
},
|
|
48811
|
+
methods: {
|
|
48812
|
+
editClicked() {
|
|
48813
|
+
this.$emit('edit-clicked');
|
|
48814
|
+
}
|
|
48675
48815
|
}
|
|
48676
48816
|
});
|
|
48677
48817
|
// CONCATENATED MODULE: ./src/components/breadcrumb/ToggleBreadCrumb.vue?vue&type=script&lang=js&
|
|
@@ -48686,8 +48826,8 @@ var ToggleBreadCrumbvue_type_template_id_b829739a_staticRenderFns = [];
|
|
|
48686
48826
|
|
|
48687
48827
|
var ToggleBreadCrumb_component = normalizeComponent(
|
|
48688
48828
|
breadcrumb_ToggleBreadCrumbvue_type_script_lang_js_,
|
|
48689
|
-
|
|
48690
|
-
|
|
48829
|
+
ToggleBreadCrumbvue_type_template_id_5368c0f2_render,
|
|
48830
|
+
ToggleBreadCrumbvue_type_template_id_5368c0f2_staticRenderFns,
|
|
48691
48831
|
false,
|
|
48692
48832
|
null,
|
|
48693
48833
|
null,
|
|
@@ -51955,6 +52095,7 @@ var main = __webpack_require__("dc44");
|
|
|
51955
52095
|
|
|
51956
52096
|
|
|
51957
52097
|
|
|
52098
|
+
|
|
51958
52099
|
|
|
51959
52100
|
|
|
51960
52101
|
const Components = {
|
|
@@ -51973,6 +52114,7 @@ const Components = {
|
|
|
51973
52114
|
ToggleInputPercentage: ToggleInputPercentage,
|
|
51974
52115
|
ToggleInputCurrency: ToggleInputCurrency,
|
|
51975
52116
|
ToggleInputRadioButtons: ToggleInputRadioButtons,
|
|
52117
|
+
ToggleInputRadioButtonMini: ToggleInputRadioButtonMini,
|
|
51976
52118
|
ToggleInputTextArea: ToggleInputTextArea,
|
|
51977
52119
|
ToggleInputCheckboxContainer: ToggleInputCheckboxContainer,
|
|
51978
52120
|
ToggleInputCheckbox: ToggleInputCheckbox,
|