@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.
@@ -470,6 +470,20 @@ var addBodyClasses = body => {
470
470
 
471
471
  return null;
472
472
  };
473
+ /**
474
+ * Add global events.
475
+ * @param {HTMLElement} body Dom element, this doesn't have to be the body but it is recommended.
476
+ */
477
+
478
+ var addGlobalEvents = body => {
479
+ window.addEventListener('hashchange', function () {
480
+ var hash = location.hash.replace('#', '');
481
+ var label = document.querySelector("label[for=\"".concat(hash, "\"]"));
482
+ var detail = document.querySelector("details[id=\"".concat(hash, "\"]:not([open])"));
483
+ if (label) label.click();else if (detail) detail.setAttribute('open', 'open');
484
+ }, false);
485
+ return null;
486
+ };
473
487
  /**
474
488
  * 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.
475
489
  * @param {HTMLElement} element Dom element, this doesn't have to be the body but it is recommended.
@@ -3317,9 +3331,9 @@ var Step_component = normalizeComponent(
3317
3331
  )
3318
3332
 
3319
3333
  /* harmony default export */ var Step = (Step_component.exports);
3320
- ;// 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&
3321
- 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)}
3322
- var Tabsvue_type_template_id_a94687de_staticRenderFns = []
3334
+ ;// 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&
3335
+ 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)}
3336
+ var Tabsvue_type_template_id_8b015576_staticRenderFns = []
3323
3337
 
3324
3338
 
3325
3339
  ;// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??clonedRuleSet-82[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&
@@ -3410,8 +3424,8 @@ var Tabsvue_type_template_id_a94687de_staticRenderFns = []
3410
3424
 
3411
3425
  var Tabs_component = normalizeComponent(
3412
3426
  Tabs_Tabsvue_type_script_lang_js_,
3413
- Tabsvue_type_template_id_a94687de_render,
3414
- Tabsvue_type_template_id_a94687de_staticRenderFns,
3427
+ Tabsvue_type_template_id_8b015576_render,
3428
+ Tabsvue_type_template_id_8b015576_staticRenderFns,
3415
3429
  false,
3416
3430
  null,
3417
3431
  null,