@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.
@@ -2625,7 +2625,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
2625
2625
  name: 'ClUI',
2626
2626
  computed: {
2627
2627
  version: function () {
2628
- return "4.18.4" ?? 0;
2628
+ return "4.18.5" ?? 0;
2629
2629
  }
2630
2630
  }
2631
2631
  }));
@@ -2687,7 +2687,7 @@ template.install = Vue => {
2687
2687
  Vue.component(template.name ?? 'ClNoName', template);
2688
2688
  };
2689
2689
  /* harmony default export */ var ClAlert = (template);
2690
- ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-41.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
2690
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-41.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
2691
2691
 
2692
2692
  const _hoisted_1 = {
2693
2693
  key: 0
@@ -2696,8 +2696,8 @@ const _hoisted_2 = {
2696
2696
  key: 1
2697
2697
  };
2698
2698
  const _hoisted_3 = ["disabled"];
2699
- function templatevue_type_template_id_3b6d2ff0_ts_true_render(_ctx, _cache, $props, $setup, $data, $options) {
2700
- const _component_cl_modal_ok = (0,external_vue_namespaceObject.resolveComponent)("cl-modal-ok");
2699
+ function templatevue_type_template_id_0775da53_ts_true_render(_ctx, _cache, $props, $setup, $data, $options) {
2700
+ const _component_cl_modal = (0,external_vue_namespaceObject.resolveComponent)("cl-modal");
2701
2701
  const _component_cl_section_main = (0,external_vue_namespaceObject.resolveComponent)("cl-section-main");
2702
2702
  return (0,external_vue_namespaceObject.openBlock)(), (0,external_vue_namespaceObject.createBlock)(_component_cl_section_main, {
2703
2703
  class: "cl-back-cancel-ok"
@@ -2721,21 +2721,27 @@ function templatevue_type_template_id_3b6d2ff0_ts_true_render(_ctx, _cache, $pro
2721
2721
  onClick: _cache[1] || (_cache[1] = $event => _ctx.$emit('ok'))
2722
2722
  }, [(0,external_vue_namespaceObject.createElementVNode)("span", null, (0,external_vue_namespaceObject.toDisplayString)(_ctx.ok), 1), _cache[5] || (_cache[5] = (0,external_vue_namespaceObject.createElementVNode)("i", {
2723
2723
  class: "fas fa-angle-right"
2724
- }, null, -1))], 10, _hoisted_3)) : (0,external_vue_namespaceObject.createCommentVNode)("", true)], 2), (0,external_vue_namespaceObject.createVNode)(_component_cl_modal_ok, {
2725
- id: _ctx.ID_MODAL,
2726
- title: "Unsaved changes",
2727
- ok: "Continue editing",
2728
- cancel: "Discard changes",
2729
- onCancel: _cache[2] || (_cache[2] = $event => _ctx.emit('cancel', true)),
2730
- onOk: _cache[3] || (_cache[3] = $event => _ctx.clModalHide())
2724
+ }, null, -1))], 10, _hoisted_3)) : (0,external_vue_namespaceObject.createCommentVNode)("", true)], 2), (0,external_vue_namespaceObject.createVNode)(_component_cl_modal, {
2725
+ id: _ctx.ID_MODAL
2731
2726
  }, {
2732
- default: (0,external_vue_namespaceObject.withCtx)(() => [(0,external_vue_namespaceObject.renderSlot)(_ctx.$slots, "modal", {}, () => [_cache[6] || (_cache[6] = (0,external_vue_namespaceObject.createElementVNode)("p", null, "There are unsaved changes. Do you want to discard them or continue editing?", -1))])]),
2727
+ title: (0,external_vue_namespaceObject.withCtx)(() => _cache[6] || (_cache[6] = [(0,external_vue_namespaceObject.createTextVNode)(" Unsaved changes ")])),
2728
+ body: (0,external_vue_namespaceObject.withCtx)(() => [(0,external_vue_namespaceObject.renderSlot)(_ctx.$slots, "modal", {}, () => [_cache[7] || (_cache[7] = (0,external_vue_namespaceObject.createElementVNode)("p", null, "There are unsaved changes. Do you want to discard them or continue editing?", -1))])]),
2729
+ "footer-left": (0,external_vue_namespaceObject.withCtx)(() => [(0,external_vue_namespaceObject.createElementVNode)("button", {
2730
+ type: "button",
2731
+ class: "btn cl-btn-outline-text it-cancel",
2732
+ onClick: _cache[2] || (_cache[2] = $event => _ctx.emit('cancel', true))
2733
+ }, "Discard changes")]),
2734
+ "footer-right": (0,external_vue_namespaceObject.withCtx)(() => [(0,external_vue_namespaceObject.createElementVNode)("button", {
2735
+ type: "button",
2736
+ class: "btn cl-btn-outline-primary it-ok",
2737
+ onClick: _cache[3] || (_cache[3] = $event => _ctx.clModalHide())
2738
+ }, "Continue editing")]),
2733
2739
  _: 3
2734
2740
  }, 8, ["id"])]),
2735
2741
  _: 3
2736
2742
  });
2737
2743
  }
2738
- ;// ./src/components/widget/ClBackCancelOk/template.vue?vue&type=template&id=3b6d2ff0&ts=true
2744
+ ;// ./src/components/widget/ClBackCancelOk/template.vue?vue&type=template&id=0775da53&ts=true
2739
2745
 
2740
2746
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
2741
2747
  var es_array_push = __webpack_require__(4114);
@@ -3520,8 +3526,8 @@ const clRefHTMLElement = ref => ref;
3520
3526
  this.$emit('cancel');
3521
3527
  }
3522
3528
  },
3523
- emit: function (what, hide = false) {
3524
- if (hide) clModalHide();
3529
+ emit: function (what) {
3530
+ clModalHide();
3525
3531
  this.$emit(what);
3526
3532
  }
3527
3533
  }
@@ -3534,7 +3540,7 @@ const clRefHTMLElement = ref => ref;
3534
3540
 
3535
3541
 
3536
3542
  ;
3537
- const ClBackCancelOk_template_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ClBackCancelOk_templatevue_type_script_lang_ts, [['render',templatevue_type_template_id_3b6d2ff0_ts_true_render]])
3543
+ const ClBackCancelOk_template_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ClBackCancelOk_templatevue_type_script_lang_ts, [['render',templatevue_type_template_id_0775da53_ts_true_render]])
3538
3544
 
3539
3545
  /* harmony default export */ var ClBackCancelOk_template = (ClBackCancelOk_template_exports_);
3540
3546
  ;// ./src/components/widget/ClBackCancelOk/index.ts