@castlabs/ui 4.18.2 → 4.18.3
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/castlabs-ui.common.js +41 -14
- package/dist/castlabs-ui.common.js.map +1 -1
- package/dist/castlabs-ui.css +1 -1
- package/dist/castlabs-ui.umd.js +41 -14
- package/dist/castlabs-ui.umd.js.map +1 -1
- package/dist/castlabs-ui.umd.min.js +1 -1
- package/dist/castlabs-ui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/navigation/ClNavSide/ClNavDrawer/style.scss +10 -0
|
@@ -1900,7 +1900,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1900
1900
|
name: 'ClUI',
|
|
1901
1901
|
computed: {
|
|
1902
1902
|
version: function () {
|
|
1903
|
-
return "4.18.
|
|
1903
|
+
return "4.18.3" ?? 0;
|
|
1904
1904
|
}
|
|
1905
1905
|
}
|
|
1906
1906
|
}));
|
|
@@ -4413,22 +4413,22 @@ ClModalConfirm_template.install = Vue => {
|
|
|
4413
4413
|
Vue.component(ClModalConfirm_template.name ?? 'ClNoName', ClModalConfirm_template);
|
|
4414
4414
|
};
|
|
4415
4415
|
/* harmony default export */ var ClModalConfirm = (ClModalConfirm_template);
|
|
4416
|
-
;// ./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/modal/ClModalOk/template.vue?vue&type=template&id=
|
|
4416
|
+
;// ./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/modal/ClModalOk/template.vue?vue&type=template&id=7f90f406&ts=true
|
|
4417
4417
|
|
|
4418
|
-
const
|
|
4418
|
+
const templatevue_type_template_id_7f90f406_ts_true_hoisted_1 = {
|
|
4419
4419
|
key: 0,
|
|
4420
4420
|
class: "fas fa-angle-left"
|
|
4421
4421
|
};
|
|
4422
|
-
const
|
|
4422
|
+
const templatevue_type_template_id_7f90f406_ts_true_hoisted_2 = {
|
|
4423
4423
|
key: 0,
|
|
4424
4424
|
class: "fas fa-angle-right"
|
|
4425
4425
|
};
|
|
4426
|
-
function
|
|
4426
|
+
function templatevue_type_template_id_7f90f406_ts_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4427
4427
|
const _component_cl_modal = (0,external_vue_namespaceObject.resolveComponent)("cl-modal");
|
|
4428
4428
|
return (0,external_vue_namespaceObject.openBlock)(), (0,external_vue_namespaceObject.createBlock)(_component_cl_modal, {
|
|
4429
4429
|
id: _ctx.id,
|
|
4430
4430
|
"on-open": _ctx.onOpen,
|
|
4431
|
-
"on-close": _ctx.onClose
|
|
4431
|
+
"on-close": _ctx.onClose ?? _ctx.close
|
|
4432
4432
|
}, {
|
|
4433
4433
|
title: (0,external_vue_namespaceObject.withCtx)(() => [(0,external_vue_namespaceObject.createTextVNode)((0,external_vue_namespaceObject.toDisplayString)(_ctx.title), 1)]),
|
|
4434
4434
|
body: (0,external_vue_namespaceObject.withCtx)(() => [(0,external_vue_namespaceObject.renderSlot)(_ctx.$slots, "default"), (0,external_vue_namespaceObject.createTextVNode)((0,external_vue_namespaceObject.toDisplayString)(_ctx.body), 1)]),
|
|
@@ -4436,8 +4436,10 @@ function templatevue_type_template_id_0fccf694_ts_true_render(_ctx, _cache, $pro
|
|
|
4436
4436
|
key: 0,
|
|
4437
4437
|
type: "button",
|
|
4438
4438
|
class: "btn cl-btn-outline-text it-cancel",
|
|
4439
|
-
onClick: _cache[0] || (_cache[0] =
|
|
4440
|
-
|
|
4439
|
+
onClick: _cache[0] || (_cache[0] =
|
|
4440
|
+
//@ts-ignore
|
|
4441
|
+
(...args) => _ctx.emitCancel && _ctx.emitCancel(...args))
|
|
4442
|
+
}, [_ctx.angles ? ((0,external_vue_namespaceObject.openBlock)(), (0,external_vue_namespaceObject.createElementBlock)("i", templatevue_type_template_id_7f90f406_ts_true_hoisted_1)) : (0,external_vue_namespaceObject.createCommentVNode)("", true), (0,external_vue_namespaceObject.createElementVNode)("span", null, (0,external_vue_namespaceObject.toDisplayString)(_ctx.cancel), 1)])) : (0,external_vue_namespaceObject.createCommentVNode)("", true)]),
|
|
4441
4443
|
"footer-right": (0,external_vue_namespaceObject.withCtx)(() => [(0,external_vue_namespaceObject.createElementVNode)("button", {
|
|
4442
4444
|
type: "button",
|
|
4443
4445
|
class: (0,external_vue_namespaceObject.normalizeClass)(["btn it-ok", {
|
|
@@ -4445,12 +4447,14 @@ function templatevue_type_template_id_0fccf694_ts_true_render(_ctx, _cache, $pro
|
|
|
4445
4447
|
'cl-btn-outline-text': !_ctx.angles,
|
|
4446
4448
|
'cl-btn-spinner': _ctx.spinner
|
|
4447
4449
|
}]),
|
|
4448
|
-
onClick: _cache[1] || (_cache[1] =
|
|
4449
|
-
|
|
4450
|
+
onClick: _cache[1] || (_cache[1] =
|
|
4451
|
+
//@ts-ignore
|
|
4452
|
+
(...args) => _ctx.emitOk && _ctx.emitOk(...args))
|
|
4453
|
+
}, [(0,external_vue_namespaceObject.createElementVNode)("span", null, (0,external_vue_namespaceObject.toDisplayString)(_ctx.ok ?? _ctx.button), 1), _ctx.angles ? ((0,external_vue_namespaceObject.openBlock)(), (0,external_vue_namespaceObject.createElementBlock)("i", templatevue_type_template_id_7f90f406_ts_true_hoisted_2)) : (0,external_vue_namespaceObject.createCommentVNode)("", true)], 2)]),
|
|
4450
4454
|
_: 3
|
|
4451
4455
|
}, 8, ["id", "on-open", "on-close"]);
|
|
4452
4456
|
}
|
|
4453
|
-
;// ./src/components/modal/ClModalOk/template.vue?vue&type=template&id=
|
|
4457
|
+
;// ./src/components/modal/ClModalOk/template.vue?vue&type=template&id=7f90f406&ts=true
|
|
4454
4458
|
|
|
4455
4459
|
;// ./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/index.js??ruleSet[0].use[0]!./src/components/modal/ClModalOk/template.vue?vue&type=script&lang=ts
|
|
4456
4460
|
|
|
@@ -4492,14 +4496,37 @@ function templatevue_type_template_id_0fccf694_ts_true_render(_ctx, _cache, $pro
|
|
|
4492
4496
|
},
|
|
4493
4497
|
onClose: {
|
|
4494
4498
|
type: Function,
|
|
4495
|
-
default:
|
|
4499
|
+
default: undefined
|
|
4496
4500
|
},
|
|
4497
4501
|
onOpen: {
|
|
4498
4502
|
type: Function,
|
|
4499
4503
|
default: () => {}
|
|
4500
4504
|
}
|
|
4501
4505
|
},
|
|
4502
|
-
emits: ['ok', 'cancel']
|
|
4506
|
+
emits: ['ok', 'cancel'],
|
|
4507
|
+
data() {
|
|
4508
|
+
return {
|
|
4509
|
+
emitted: false
|
|
4510
|
+
};
|
|
4511
|
+
},
|
|
4512
|
+
methods: {
|
|
4513
|
+
emitOk: function () {
|
|
4514
|
+
this.$emit('ok');
|
|
4515
|
+
this.emitted = true;
|
|
4516
|
+
},
|
|
4517
|
+
emitCancel: function () {
|
|
4518
|
+
this.$emit('cancel');
|
|
4519
|
+
this.emitted = true;
|
|
4520
|
+
},
|
|
4521
|
+
close: function () {
|
|
4522
|
+
// ESC press emits 'cancel', but should not fire double
|
|
4523
|
+
if (!this.emitted) {
|
|
4524
|
+
this.$emit('cancel');
|
|
4525
|
+
}
|
|
4526
|
+
this.emitted = false;
|
|
4527
|
+
if (this.onClose) this.onClose();
|
|
4528
|
+
}
|
|
4529
|
+
}
|
|
4503
4530
|
}));
|
|
4504
4531
|
;// ./src/components/modal/ClModalOk/template.vue?vue&type=script&lang=ts
|
|
4505
4532
|
|
|
@@ -4509,7 +4536,7 @@ function templatevue_type_template_id_0fccf694_ts_true_render(_ctx, _cache, $pro
|
|
|
4509
4536
|
|
|
4510
4537
|
|
|
4511
4538
|
;
|
|
4512
|
-
const ClModalOk_template_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ClModalOk_templatevue_type_script_lang_ts, [['render',
|
|
4539
|
+
const ClModalOk_template_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ClModalOk_templatevue_type_script_lang_ts, [['render',templatevue_type_template_id_7f90f406_ts_true_render]])
|
|
4513
4540
|
|
|
4514
4541
|
/* harmony default export */ var ClModalOk_template = (ClModalOk_template_exports_);
|
|
4515
4542
|
;// ./src/components/modal/ClModalOk/index.ts
|