toggle-components-library 1.28.7-beta.1 → 1.30.0-beta.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/arrow-icon.6b7bdc31.svg +3 -0
- package/dist/img/email-icon.3c44b236.svg +3 -0
- package/dist/img/magnifying-glass-icon.9a2b42a1.svg +3 -0
- package/dist/img/mobile-icon.9e16ffcd.svg +6 -0
- package/dist/toggle-components-library.common.js +254 -8
- 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 +254 -8
- package/dist/toggle-components-library.umd.js.map +1 -1
- package/dist/toggle-components-library.umd.min.js +1 -1
- package/dist/toggle-components-library.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/assets/icons/arrow-icon.svg +3 -0
- package/src/assets/icons/email-icon.svg +3 -0
- package/src/assets/icons/magnifying-glass-icon.svg +3 -0
- package/src/assets/icons/mobile-icon.svg +6 -0
- package/src/components/forms/ToggleContactSearch.vue +156 -0
- package/src/components/forms/ToggleInputCrudField.vue +6 -1
- package/src/index.js +3 -1
- package/src/sass/includes/_as_inputs.scss +268 -2
- package/src/sass/includes/_as_loaders.scss +16 -0
- package/src/.DS_Store +0 -0
|
@@ -14392,8 +14392,8 @@ var ToggleInternationalPhoneInputSelect_component = normalizeComponent(
|
|
|
14392
14392
|
)
|
|
14393
14393
|
|
|
14394
14394
|
/* harmony default export */ var ToggleInternationalPhoneInputSelect = (ToggleInternationalPhoneInputSelect_component.exports);
|
|
14395
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"53e05152-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/ToggleInputCrudField.vue?vue&type=template&id=
|
|
14396
|
-
var
|
|
14395
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"53e05152-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/ToggleInputCrudField.vue?vue&type=template&id=513c68d4&
|
|
14396
|
+
var ToggleInputCrudFieldvue_type_template_id_513c68d4_render = function render() {
|
|
14397
14397
|
var _vm = this,
|
|
14398
14398
|
_c = _vm._self._c;
|
|
14399
14399
|
return _c('div', {
|
|
@@ -14417,7 +14417,9 @@ var ToggleInputCrudFieldvue_type_template_id_5e1accbb_render = function render()
|
|
|
14417
14417
|
}
|
|
14418
14418
|
}
|
|
14419
14419
|
}, [_vm._v(" " + _vm._s(_vm.label) + " ")]) : _vm._e(), _c('label', {
|
|
14420
|
-
|
|
14420
|
+
class: ['toggle-input-crud-container-description', {
|
|
14421
|
+
'toggle-input-crud-container-description-hide-overflow': _vm.hideDescriptionOverflow
|
|
14422
|
+
}]
|
|
14421
14423
|
}, [_vm._v(" " + _vm._s(_vm.description ? _vm.description : ' ') + " ")]), _c('div', {
|
|
14422
14424
|
staticClass: "toggle-input-crud-container-buttons"
|
|
14423
14425
|
}, [!_vm.empty ? _c('ToggleButton', {
|
|
@@ -14433,9 +14435,9 @@ var ToggleInputCrudFieldvue_type_template_id_5e1accbb_render = function render()
|
|
|
14433
14435
|
staticClass: "toggle-input-label-error"
|
|
14434
14436
|
}, [_vm._v(" " + _vm._s(_vm.errorMessage) + " ")]) : _vm._e()]);
|
|
14435
14437
|
};
|
|
14436
|
-
var
|
|
14438
|
+
var ToggleInputCrudFieldvue_type_template_id_513c68d4_staticRenderFns = [];
|
|
14437
14439
|
|
|
14438
|
-
// CONCATENATED MODULE: ./src/components/forms/ToggleInputCrudField.vue?vue&type=template&id=
|
|
14440
|
+
// CONCATENATED MODULE: ./src/components/forms/ToggleInputCrudField.vue?vue&type=template&id=513c68d4&
|
|
14439
14441
|
|
|
14440
14442
|
// 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/ToggleInputCrudField.vue?vue&type=script&lang=js&
|
|
14441
14443
|
|
|
@@ -14468,6 +14470,10 @@ var ToggleInputCrudFieldvue_type_template_id_5e1accbb_staticRenderFns = [];
|
|
|
14468
14470
|
empty: {
|
|
14469
14471
|
type: Boolean,
|
|
14470
14472
|
default: false
|
|
14473
|
+
},
|
|
14474
|
+
hideDescriptionOverflow: {
|
|
14475
|
+
type: Boolean,
|
|
14476
|
+
default: false
|
|
14471
14477
|
}
|
|
14472
14478
|
},
|
|
14473
14479
|
created: function () {},
|
|
@@ -14497,8 +14503,8 @@ var ToggleInputCrudFieldvue_type_template_id_5e1accbb_staticRenderFns = [];
|
|
|
14497
14503
|
|
|
14498
14504
|
var ToggleInputCrudField_component = normalizeComponent(
|
|
14499
14505
|
forms_ToggleInputCrudFieldvue_type_script_lang_js_,
|
|
14500
|
-
|
|
14501
|
-
|
|
14506
|
+
ToggleInputCrudFieldvue_type_template_id_513c68d4_render,
|
|
14507
|
+
ToggleInputCrudFieldvue_type_template_id_513c68d4_staticRenderFns,
|
|
14502
14508
|
false,
|
|
14503
14509
|
null,
|
|
14504
14510
|
null,
|
|
@@ -16132,6 +16138,244 @@ var ToggleColourPicker_component = normalizeComponent(
|
|
|
16132
16138
|
)
|
|
16133
16139
|
|
|
16134
16140
|
/* harmony default export */ var ToggleColourPicker = (ToggleColourPicker_component.exports);
|
|
16141
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"53e05152-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/ToggleContactSearch.vue?vue&type=template&id=5d84323e&
|
|
16142
|
+
var ToggleContactSearchvue_type_template_id_5d84323e_render = function render() {
|
|
16143
|
+
var _vm = this,
|
|
16144
|
+
_c = _vm._self._c;
|
|
16145
|
+
return _c('div', {
|
|
16146
|
+
staticClass: "toggle-contact-search-container"
|
|
16147
|
+
}, [_c('div', {
|
|
16148
|
+
staticClass: "toggle-contact-search-error"
|
|
16149
|
+
}, [_vm._v(" " + _vm._s(_vm.isInvalid ? _vm.errorMessage : '') + " ")]), _c('div', {
|
|
16150
|
+
staticClass: "toggle-contact-search-input-container",
|
|
16151
|
+
class: {
|
|
16152
|
+
'toggle-input-is-invalid': _vm.isInvalid,
|
|
16153
|
+
'toggle-contact-search-input-container-active': _vm.showDropdown
|
|
16154
|
+
}
|
|
16155
|
+
}, [_c('div', {
|
|
16156
|
+
staticClass: "toggle-contact-search-icon-input-container"
|
|
16157
|
+
}, [_c('div', {
|
|
16158
|
+
class: {
|
|
16159
|
+
'toggle-contact-search-icon-arrow-container': true,
|
|
16160
|
+
'toggle-contact-search-icon-arrow-container-disabled': _vm.disabled
|
|
16161
|
+
},
|
|
16162
|
+
on: {
|
|
16163
|
+
"click": function ($event) {
|
|
16164
|
+
_vm.showDropdown = !_vm.disabled && !_vm.loading ? !_vm.showDropdown : false;
|
|
16165
|
+
}
|
|
16166
|
+
}
|
|
16167
|
+
}, [_c('div', {
|
|
16168
|
+
staticClass: "toggle-contact-search-icon",
|
|
16169
|
+
class: {
|
|
16170
|
+
'toggle-contact-search-icon-email': _vm.inputType == 'email',
|
|
16171
|
+
'toggle-contact-search-icon-mobile': _vm.inputType == 'mobile'
|
|
16172
|
+
}
|
|
16173
|
+
}), _c('div', {
|
|
16174
|
+
staticClass: "toggle-contact-search-arrow",
|
|
16175
|
+
class: {
|
|
16176
|
+
'toggle-contact-search-arrow-active': _vm.showDropdown
|
|
16177
|
+
}
|
|
16178
|
+
})]), _c('div', {
|
|
16179
|
+
staticClass: "toggle-contact-search-divider"
|
|
16180
|
+
}), _c('input', {
|
|
16181
|
+
directives: [{
|
|
16182
|
+
name: "model",
|
|
16183
|
+
rawName: "v-model",
|
|
16184
|
+
value: _vm.inputVal,
|
|
16185
|
+
expression: "inputVal"
|
|
16186
|
+
}],
|
|
16187
|
+
class: {
|
|
16188
|
+
'toggle-contact-search-input': true,
|
|
16189
|
+
'toggle-contact-search-disabled': _vm.disabled
|
|
16190
|
+
},
|
|
16191
|
+
attrs: {
|
|
16192
|
+
"disabled": _vm.disabled || _vm.loading,
|
|
16193
|
+
"type": "text",
|
|
16194
|
+
"placeholder": _vm.placeholder
|
|
16195
|
+
},
|
|
16196
|
+
domProps: {
|
|
16197
|
+
"value": _vm.inputVal
|
|
16198
|
+
},
|
|
16199
|
+
on: {
|
|
16200
|
+
"keyup": function ($event) {
|
|
16201
|
+
if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "enter", 13, $event.key, "Enter")) return null;
|
|
16202
|
+
return _vm.onEnter.apply(null, arguments);
|
|
16203
|
+
},
|
|
16204
|
+
"input": function ($event) {
|
|
16205
|
+
if ($event.target.composing) return;
|
|
16206
|
+
_vm.inputVal = $event.target.value;
|
|
16207
|
+
}
|
|
16208
|
+
}
|
|
16209
|
+
}), _vm.loading ? _c('div', {
|
|
16210
|
+
staticClass: "toggle-contact-search-loading-container"
|
|
16211
|
+
}, [_c('div', {
|
|
16212
|
+
staticClass: "toggle-inline-loader"
|
|
16213
|
+
})]) : _c('div', {
|
|
16214
|
+
class: {
|
|
16215
|
+
'toggle-contact-search-magnifying-glass-icon': true,
|
|
16216
|
+
'toggle-contact-search-magnifying-glass-icon-disabled': _vm.disabled
|
|
16217
|
+
},
|
|
16218
|
+
on: {
|
|
16219
|
+
"click": _vm.onSearch
|
|
16220
|
+
}
|
|
16221
|
+
})]), _c('Transition', {
|
|
16222
|
+
attrs: {
|
|
16223
|
+
"name": "drop-down"
|
|
16224
|
+
}
|
|
16225
|
+
}, [_vm.showDropdown ? _c('div', {
|
|
16226
|
+
staticClass: "toggle-contact-search-dropdown-container"
|
|
16227
|
+
}, _vm._l(_vm.types, function (type, i) {
|
|
16228
|
+
return _c('div', {
|
|
16229
|
+
key: i,
|
|
16230
|
+
on: {
|
|
16231
|
+
"click": function ($event) {
|
|
16232
|
+
_vm.inputType = type;
|
|
16233
|
+
_vm.showDropdown = false;
|
|
16234
|
+
_vm.loading = false;
|
|
16235
|
+
}
|
|
16236
|
+
}
|
|
16237
|
+
}, [_c('div', {
|
|
16238
|
+
staticClass: "toggle-contact-search-dropdown-item"
|
|
16239
|
+
}, [_c('div', {
|
|
16240
|
+
staticClass: "toggle-contact-search-icon-dropdown",
|
|
16241
|
+
class: _vm.iconForType(type)
|
|
16242
|
+
}), _c('label', {
|
|
16243
|
+
staticClass: "toggle-contact-search-dropdown-item-label",
|
|
16244
|
+
class: {
|
|
16245
|
+
'toggle-contact-search-dropwdown-item-highlighted': type == _vm.inputType
|
|
16246
|
+
}
|
|
16247
|
+
}, [_vm._v(" " + _vm._s(_vm.textForType(type)) + " ")])])]);
|
|
16248
|
+
}), 0) : _vm._e()])], 1)]);
|
|
16249
|
+
};
|
|
16250
|
+
var ToggleContactSearchvue_type_template_id_5d84323e_staticRenderFns = [];
|
|
16251
|
+
|
|
16252
|
+
// CONCATENATED MODULE: ./src/components/forms/ToggleContactSearch.vue?vue&type=template&id=5d84323e&
|
|
16253
|
+
|
|
16254
|
+
// 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/ToggleContactSearch.vue?vue&type=script&lang=js&
|
|
16255
|
+
|
|
16256
|
+
/* harmony default export */ var ToggleContactSearchvue_type_script_lang_js_ = ({
|
|
16257
|
+
mixins: [mixins],
|
|
16258
|
+
props: {
|
|
16259
|
+
value: {
|
|
16260
|
+
type: [Number, String]
|
|
16261
|
+
},
|
|
16262
|
+
types: {
|
|
16263
|
+
type: Array,
|
|
16264
|
+
default: function () {
|
|
16265
|
+
return ['email', 'mobile'];
|
|
16266
|
+
}
|
|
16267
|
+
},
|
|
16268
|
+
isInvalid: {
|
|
16269
|
+
type: Boolean,
|
|
16270
|
+
default: false
|
|
16271
|
+
},
|
|
16272
|
+
errorMessage: {
|
|
16273
|
+
type: String,
|
|
16274
|
+
default: 'No contact found with these details'
|
|
16275
|
+
},
|
|
16276
|
+
loading: {
|
|
16277
|
+
type: Boolean,
|
|
16278
|
+
default: false
|
|
16279
|
+
},
|
|
16280
|
+
disabled: {
|
|
16281
|
+
type: Boolean,
|
|
16282
|
+
default: false
|
|
16283
|
+
}
|
|
16284
|
+
},
|
|
16285
|
+
data() {
|
|
16286
|
+
return {
|
|
16287
|
+
inputType: 'email',
|
|
16288
|
+
showDropdown: false
|
|
16289
|
+
};
|
|
16290
|
+
},
|
|
16291
|
+
watch: {
|
|
16292
|
+
showDropdown: function (val) {
|
|
16293
|
+
if (val) {
|
|
16294
|
+
this.isInvalid = false;
|
|
16295
|
+
}
|
|
16296
|
+
}
|
|
16297
|
+
},
|
|
16298
|
+
created() {
|
|
16299
|
+
window.addEventListener('click', this.windowClick, true);
|
|
16300
|
+
},
|
|
16301
|
+
beforeDestroy() {
|
|
16302
|
+
window.removeEventListener('click', this.windowClick, true);
|
|
16303
|
+
},
|
|
16304
|
+
computed: {
|
|
16305
|
+
inputVal: {
|
|
16306
|
+
get: function () {
|
|
16307
|
+
return this.value;
|
|
16308
|
+
},
|
|
16309
|
+
set: function (value) {
|
|
16310
|
+
this.$emit('input', value);
|
|
16311
|
+
}
|
|
16312
|
+
},
|
|
16313
|
+
placeholder: function () {
|
|
16314
|
+
return this.inputType == 'email' ? 'Enter contact email address' : 'Enter contact mobile number';
|
|
16315
|
+
}
|
|
16316
|
+
},
|
|
16317
|
+
methods: {
|
|
16318
|
+
textForType(type) {
|
|
16319
|
+
switch (type) {
|
|
16320
|
+
case 'email':
|
|
16321
|
+
return 'Search for a contact by email address';
|
|
16322
|
+
case 'mobile':
|
|
16323
|
+
return 'Search for a contact by mobile';
|
|
16324
|
+
default:
|
|
16325
|
+
return 'Search for a contact by ' + this.inputType;
|
|
16326
|
+
}
|
|
16327
|
+
},
|
|
16328
|
+
iconForType(type) {
|
|
16329
|
+
switch (type) {
|
|
16330
|
+
case 'email':
|
|
16331
|
+
return 'toggle-contact-search-icon-email';
|
|
16332
|
+
case 'mobile':
|
|
16333
|
+
return 'toggle-contact-search-icon-mobile';
|
|
16334
|
+
default:
|
|
16335
|
+
return 'toggle-contact-search-icon-email';
|
|
16336
|
+
}
|
|
16337
|
+
},
|
|
16338
|
+
onEnter(e) {
|
|
16339
|
+
this.$emit('enterPressed', {
|
|
16340
|
+
type: this.inputType,
|
|
16341
|
+
value: e.target.value
|
|
16342
|
+
});
|
|
16343
|
+
},
|
|
16344
|
+
onSearch() {
|
|
16345
|
+
this.$emit('clickSearch', {
|
|
16346
|
+
type: this.inputType,
|
|
16347
|
+
value: this.inputVal
|
|
16348
|
+
});
|
|
16349
|
+
},
|
|
16350
|
+
windowClick(e) {
|
|
16351
|
+
if (!e.target.matches('.toggle-contact-search-container *')) {
|
|
16352
|
+
this.showDropdown = false;
|
|
16353
|
+
}
|
|
16354
|
+
}
|
|
16355
|
+
}
|
|
16356
|
+
});
|
|
16357
|
+
// CONCATENATED MODULE: ./src/components/forms/ToggleContactSearch.vue?vue&type=script&lang=js&
|
|
16358
|
+
/* harmony default export */ var forms_ToggleContactSearchvue_type_script_lang_js_ = (ToggleContactSearchvue_type_script_lang_js_);
|
|
16359
|
+
// CONCATENATED MODULE: ./src/components/forms/ToggleContactSearch.vue
|
|
16360
|
+
|
|
16361
|
+
|
|
16362
|
+
|
|
16363
|
+
|
|
16364
|
+
|
|
16365
|
+
/* normalize component */
|
|
16366
|
+
|
|
16367
|
+
var ToggleContactSearch_component = normalizeComponent(
|
|
16368
|
+
forms_ToggleContactSearchvue_type_script_lang_js_,
|
|
16369
|
+
ToggleContactSearchvue_type_template_id_5d84323e_render,
|
|
16370
|
+
ToggleContactSearchvue_type_template_id_5d84323e_staticRenderFns,
|
|
16371
|
+
false,
|
|
16372
|
+
null,
|
|
16373
|
+
null,
|
|
16374
|
+
null
|
|
16375
|
+
|
|
16376
|
+
)
|
|
16377
|
+
|
|
16378
|
+
/* harmony default export */ var ToggleContactSearch = (ToggleContactSearch_component.exports);
|
|
16135
16379
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"53e05152-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/boosters/ToggleBoosterButton.vue?vue&type=template&id=680935ac&scoped=true&
|
|
16136
16380
|
var ToggleBoosterButtonvue_type_template_id_680935ac_scoped_true_render = function render() {
|
|
16137
16381
|
var _vm = this,
|
|
@@ -20184,6 +20428,7 @@ var main = __webpack_require__("dc44");
|
|
|
20184
20428
|
|
|
20185
20429
|
|
|
20186
20430
|
|
|
20431
|
+
|
|
20187
20432
|
|
|
20188
20433
|
|
|
20189
20434
|
const Components = {
|
|
@@ -20247,7 +20492,8 @@ const Components = {
|
|
|
20247
20492
|
ToggleThreeDotsButton: ToggleThreeDotsButton,
|
|
20248
20493
|
ToggleBoosterButton: ToggleBoosterButton,
|
|
20249
20494
|
ToggleBoosterBasicButton: ToggleBoosterBasicButton,
|
|
20250
|
-
ToggleBoosterModal: ToggleBoosterModal
|
|
20495
|
+
ToggleBoosterModal: ToggleBoosterModal,
|
|
20496
|
+
ToggleContactSearch: ToggleContactSearch
|
|
20251
20497
|
};
|
|
20252
20498
|
Object.keys(Components).forEach(name => {
|
|
20253
20499
|
external_commonjs_vue_commonjs2_vue_root_Vue_default.a.component(name, Components[name]);
|