@castlabs/ui 4.18.4 → 4.18.5

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.
@@ -2643,7 +2643,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
2643
2643
  name: 'ClUI',
2644
2644
  computed: {
2645
2645
  version: function () {
2646
- return "4.18.4" ?? 0;
2646
+ return "4.18.5" ?? 0;
2647
2647
  }
2648
2648
  }
2649
2649
  }));
@@ -2705,7 +2705,7 @@ template.install = Vue => {
2705
2705
  Vue.component(template.name ?? 'ClNoName', template);
2706
2706
  };
2707
2707
  /* harmony default export */ var ClAlert = (template);
2708
- ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-86.use[2]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[4]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/widget/ClBackCancelOk/template.vue?vue&type=template&id=3b6d2ff0&ts=true
2708
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-86.use[2]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[4]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/components/widget/ClBackCancelOk/template.vue?vue&type=template&id=0775da53&ts=true
2709
2709
 
2710
2710
  const _hoisted_1 = {
2711
2711
  key: 0
@@ -2714,8 +2714,8 @@ const _hoisted_2 = {
2714
2714
  key: 1
2715
2715
  };
2716
2716
  const _hoisted_3 = ["disabled"];
2717
- function templatevue_type_template_id_3b6d2ff0_ts_true_render(_ctx, _cache, $props, $setup, $data, $options) {
2718
- const _component_cl_modal_ok = (0,external_vue_.resolveComponent)("cl-modal-ok");
2717
+ function templatevue_type_template_id_0775da53_ts_true_render(_ctx, _cache, $props, $setup, $data, $options) {
2718
+ const _component_cl_modal = (0,external_vue_.resolveComponent)("cl-modal");
2719
2719
  const _component_cl_section_main = (0,external_vue_.resolveComponent)("cl-section-main");
2720
2720
  return (0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_cl_section_main, {
2721
2721
  class: "cl-back-cancel-ok"
@@ -2739,21 +2739,27 @@ function templatevue_type_template_id_3b6d2ff0_ts_true_render(_ctx, _cache, $pro
2739
2739
  onClick: _cache[1] || (_cache[1] = $event => _ctx.$emit('ok'))
2740
2740
  }, [(0,external_vue_.createElementVNode)("span", null, (0,external_vue_.toDisplayString)(_ctx.ok), 1), _cache[5] || (_cache[5] = (0,external_vue_.createElementVNode)("i", {
2741
2741
  class: "fas fa-angle-right"
2742
- }, null, -1))], 10, _hoisted_3)) : (0,external_vue_.createCommentVNode)("", true)], 2), (0,external_vue_.createVNode)(_component_cl_modal_ok, {
2743
- id: _ctx.ID_MODAL,
2744
- title: "Unsaved changes",
2745
- ok: "Continue editing",
2746
- cancel: "Discard changes",
2747
- onCancel: _cache[2] || (_cache[2] = $event => _ctx.emit('cancel', true)),
2748
- onOk: _cache[3] || (_cache[3] = $event => _ctx.clModalHide())
2742
+ }, null, -1))], 10, _hoisted_3)) : (0,external_vue_.createCommentVNode)("", true)], 2), (0,external_vue_.createVNode)(_component_cl_modal, {
2743
+ id: _ctx.ID_MODAL
2749
2744
  }, {
2750
- default: (0,external_vue_.withCtx)(() => [(0,external_vue_.renderSlot)(_ctx.$slots, "modal", {}, () => [_cache[6] || (_cache[6] = (0,external_vue_.createElementVNode)("p", null, "There are unsaved changes. Do you want to discard them or continue editing?", -1))])]),
2745
+ title: (0,external_vue_.withCtx)(() => _cache[6] || (_cache[6] = [(0,external_vue_.createTextVNode)(" Unsaved changes ")])),
2746
+ body: (0,external_vue_.withCtx)(() => [(0,external_vue_.renderSlot)(_ctx.$slots, "modal", {}, () => [_cache[7] || (_cache[7] = (0,external_vue_.createElementVNode)("p", null, "There are unsaved changes. Do you want to discard them or continue editing?", -1))])]),
2747
+ "footer-left": (0,external_vue_.withCtx)(() => [(0,external_vue_.createElementVNode)("button", {
2748
+ type: "button",
2749
+ class: "btn cl-btn-outline-text it-cancel",
2750
+ onClick: _cache[2] || (_cache[2] = $event => _ctx.emit('cancel', true))
2751
+ }, "Discard changes")]),
2752
+ "footer-right": (0,external_vue_.withCtx)(() => [(0,external_vue_.createElementVNode)("button", {
2753
+ type: "button",
2754
+ class: "btn cl-btn-outline-primary it-ok",
2755
+ onClick: _cache[3] || (_cache[3] = $event => _ctx.clModalHide())
2756
+ }, "Continue editing")]),
2751
2757
  _: 3
2752
2758
  }, 8, ["id"])]),
2753
2759
  _: 3
2754
2760
  });
2755
2761
  }
2756
- ;// ./src/components/widget/ClBackCancelOk/template.vue?vue&type=template&id=3b6d2ff0&ts=true
2762
+ ;// ./src/components/widget/ClBackCancelOk/template.vue?vue&type=template&id=0775da53&ts=true
2757
2763
 
2758
2764
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
2759
2765
  var es_array_push = __webpack_require__(4114);
@@ -3538,8 +3544,8 @@ const clRefHTMLElement = ref => ref;
3538
3544
  this.$emit('cancel');
3539
3545
  }
3540
3546
  },
3541
- emit: function (what, hide = false) {
3542
- if (hide) clModalHide();
3547
+ emit: function (what) {
3548
+ clModalHide();
3543
3549
  this.$emit(what);
3544
3550
  }
3545
3551
  }
@@ -3552,7 +3558,7 @@ const clRefHTMLElement = ref => ref;
3552
3558
 
3553
3559
 
3554
3560
  ;
3555
- const ClBackCancelOk_template_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ClBackCancelOk_templatevue_type_script_lang_ts, [['render',templatevue_type_template_id_3b6d2ff0_ts_true_render]])
3561
+ const ClBackCancelOk_template_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ClBackCancelOk_templatevue_type_script_lang_ts, [['render',templatevue_type_template_id_0775da53_ts_true_render]])
3556
3562
 
3557
3563
  /* harmony default export */ var ClBackCancelOk_template = (ClBackCancelOk_template_exports_);
3558
3564
  ;// ./src/components/widget/ClBackCancelOk/index.ts