@iamproperty/components 2.7.7 → 2.7.8

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.
@@ -460,6 +460,20 @@ var addBodyClasses = body => {
460
460
 
461
461
  return null;
462
462
  };
463
+ /**
464
+ * Add global events.
465
+ * @param {HTMLElement} body Dom element, this doesn't have to be the body but it is recommended.
466
+ */
467
+
468
+ var addGlobalEvents = body => {
469
+ window.addEventListener('hashchange', function () {
470
+ var hash = location.hash.replace('#', '');
471
+ var label = document.querySelector("label[for=\"".concat(hash, "\"]"));
472
+ var detail = document.querySelector("details[id=\"".concat(hash, "\"]:not([open])"));
473
+ if (label) label.click();else if (detail) detail.setAttribute('open', 'open');
474
+ }, false);
475
+ return null;
476
+ };
463
477
  /**
464
478
  * Check if an element contains certain elements that needs enhancing with the JavaScript helpers, it is recommended to do this on the page body after the dom is loaded. Elements that are loaded via ajax should also run this function.
465
479
  * @param {HTMLElement} element Dom element, this doesn't have to be the body but it is recommended.
@@ -3307,9 +3321,9 @@ var Step_component = normalizeComponent(
3307
3321
  )
3308
3322
 
3309
3323
  /* harmony default export */ var Step = (Step_component.exports);
3310
- ;// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"250299fd-vue-loader-template"}!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/Tabs/Tabs.vue?vue&type=template&id=a94687de&
3311
- var Tabsvue_type_template_id_a94687de_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"wrapper",staticClass:"container tabs__container"},[_vm._l((_vm.tabLinks()),function(value,index){return _c('input',{key:index,staticClass:"d-none",attrs:{"type":"radio","name":value.name,"id":value.id},domProps:{"checked":index == 0? 'checked':''}})}),_c('div',{staticClass:"tabs__links"},_vm._l((_vm.tabLinks()),function(value,index){return _c('label',{key:index,staticClass:"link",attrs:{"for":value.id},on:{"click":function($event){return _vm.openTab(index)}}},[_vm._v(" "+_vm._s(value.tabTitle)+" ")])}),0),_c('div',{staticClass:"tabs"},[_vm._t("default")],2)],2)}
3312
- var Tabsvue_type_template_id_a94687de_staticRenderFns = []
3324
+ ;// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"250299fd-vue-loader-template"}!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/Tabs/Tabs.vue?vue&type=template&id=8b015576&
3325
+ var Tabsvue_type_template_id_8b015576_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"wrapper",staticClass:"container tabs__container"},[_vm._l((_vm.tabLinks()),function(value,index){return _c('input',{key:index,staticClass:"tab__input",attrs:{"type":"radio","name":value.name,"id":value.id},domProps:{"checked":index == 0? 'checked':''}})}),_c('div',{staticClass:"tabs__links"},_vm._l((_vm.tabLinks()),function(value,index){return _c('label',{key:index,staticClass:"link",attrs:{"for":value.id},on:{"click":function($event){return _vm.openTab(index)}}},[_vm._v(" "+_vm._s(value.tabTitle)+" ")])}),0),_c('div',{staticClass:"tabs"},[_vm._t("default")],2)],2)}
3326
+ var Tabsvue_type_template_id_8b015576_staticRenderFns = []
3313
3327
 
3314
3328
 
3315
3329
  ;// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??clonedRuleSet-40[0].rules[0].use[0]!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/Tabs/Tabs.vue?vue&type=script&lang=js&
@@ -3400,8 +3414,8 @@ var Tabsvue_type_template_id_a94687de_staticRenderFns = []
3400
3414
 
3401
3415
  var Tabs_component = normalizeComponent(
3402
3416
  Tabs_Tabsvue_type_script_lang_js_,
3403
- Tabsvue_type_template_id_a94687de_render,
3404
- Tabsvue_type_template_id_a94687de_staticRenderFns,
3417
+ Tabsvue_type_template_id_8b015576_render,
3418
+ Tabsvue_type_template_id_8b015576_staticRenderFns,
3405
3419
  false,
3406
3420
  null,
3407
3421
  null,