@castlabs/ui 4.22.4 → 4.24.0

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.
@@ -2604,7 +2604,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
2604
2604
  name: 'ClUI',
2605
2605
  computed: {
2606
2606
  version: function () {
2607
- return "4.22.4" ?? 0;
2607
+ return "4.24.0" ?? 0;
2608
2608
  }
2609
2609
  }
2610
2610
  }));
@@ -4026,32 +4026,29 @@ ClDropzone_template.install = Vue => {
4026
4026
  Vue.component(ClDropzone_template.name ?? 'ClNoName', ClDropzone_template);
4027
4027
  };
4028
4028
  /* harmony default export */ var ClDropzone = (ClDropzone_template);
4029
- ;// ./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/form/ClField/template.vue?vue&type=template&id=1e758708&ts=true
4029
+ ;// ./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/form/ClField/template.vue?vue&type=template&id=7afc34d1&ts=true
4030
4030
 
4031
- const templatevue_type_template_id_1e758708_ts_true_hoisted_1 = ["for"];
4032
- const templatevue_type_template_id_1e758708_ts_true_hoisted_2 = {
4031
+ const templatevue_type_template_id_7afc34d1_ts_true_hoisted_1 = ["for"];
4032
+ const templatevue_type_template_id_7afc34d1_ts_true_hoisted_2 = {
4033
4033
  key: 0,
4034
4034
  class: "required"
4035
4035
  };
4036
- const templatevue_type_template_id_1e758708_ts_true_hoisted_3 = ["id", "autofocus", "disabled", "maxlength", "minlength", "placeholder", "required"];
4037
- const templatevue_type_template_id_1e758708_ts_true_hoisted_4 = ["id", "autofocus", "disabled", "required"];
4038
- const _hoisted_5 = ["id", "autofocus", "disabled", "maxlength", "minlength", "pattern", "placeholder", "required", "type"];
4036
+ const templatevue_type_template_id_7afc34d1_ts_true_hoisted_3 = ["id", "autofocus", "disabled", "maxlength", "minlength", "placeholder", "required"];
4037
+ const templatevue_type_template_id_7afc34d1_ts_true_hoisted_4 = ["id", "autofocus", "disabled", "required"];
4038
+ const _hoisted_5 = ["id", "autofocus", "disabled", "min", "max", "maxlength", "minlength", "pattern", "placeholder", "required", "type"];
4039
4039
  const _hoisted_6 = ["id", "for"];
4040
4040
  const _hoisted_7 = {
4041
- class: "invalid-feedback"
4042
- };
4043
- const _hoisted_8 = {
4044
4041
  key: 1,
4045
4042
  class: "valid-feedback valid-feedback-none"
4046
4043
  };
4047
- function templatevue_type_template_id_1e758708_ts_true_render(_ctx, _cache, $props, $setup, $data, $options) {
4044
+ function templatevue_type_template_id_7afc34d1_ts_true_render(_ctx, _cache, $props, $setup, $data, $options) {
4048
4045
  return (0,external_vue_namespaceObject.openBlock)(), (0,external_vue_namespaceObject.createElementBlock)(external_vue_namespaceObject.Fragment, null, [_ctx.label ? ((0,external_vue_namespaceObject.openBlock)(), (0,external_vue_namespaceObject.createElementBlock)("label", {
4049
4046
  key: 0,
4050
4047
  for: _ctx.$uid,
4051
4048
  class: (0,external_vue_namespaceObject.normalizeClass)(["form-label", {
4052
4049
  disabled: _ctx.disabled
4053
4050
  }])
4054
- }, [(0,external_vue_namespaceObject.createTextVNode)((0,external_vue_namespaceObject.toDisplayString)(_ctx.label), 1), _ctx.required ? ((0,external_vue_namespaceObject.openBlock)(), (0,external_vue_namespaceObject.createElementBlock)("span", templatevue_type_template_id_1e758708_ts_true_hoisted_2, "*")) : (0,external_vue_namespaceObject.createCommentVNode)("", true)], 10, templatevue_type_template_id_1e758708_ts_true_hoisted_1)) : (0,external_vue_namespaceObject.createCommentVNode)("", true), _ctx.type === 'textarea' ? (0,external_vue_namespaceObject.withDirectives)(((0,external_vue_namespaceObject.openBlock)(), (0,external_vue_namespaceObject.createElementBlock)("textarea", (0,external_vue_namespaceObject.mergeProps)({
4051
+ }, [(0,external_vue_namespaceObject.createTextVNode)((0,external_vue_namespaceObject.toDisplayString)(_ctx.label), 1), _ctx.required ? ((0,external_vue_namespaceObject.openBlock)(), (0,external_vue_namespaceObject.createElementBlock)("span", templatevue_type_template_id_7afc34d1_ts_true_hoisted_2, "*")) : (0,external_vue_namespaceObject.createCommentVNode)("", true)], 10, templatevue_type_template_id_7afc34d1_ts_true_hoisted_1)) : (0,external_vue_namespaceObject.createCommentVNode)("", true), _ctx.type === 'textarea' ? (0,external_vue_namespaceObject.withDirectives)(((0,external_vue_namespaceObject.openBlock)(), (0,external_vue_namespaceObject.createElementBlock)("textarea", (0,external_vue_namespaceObject.mergeProps)({
4055
4052
  key: 1,
4056
4053
  id: _ctx.$uid
4057
4054
  }, _ctx.$attrs, {
@@ -4067,7 +4064,7 @@ function templatevue_type_template_id_1e758708_ts_true_render(_ctx, _cache, $pro
4067
4064
  onBlur: _cache[1] || (_cache[1] = $event => _ctx.validate(true)),
4068
4065
  onChange: _cache[2] || (_cache[2] = $event => _ctx.validate()),
4069
4066
  onInput: _cache[3] || (_cache[3] = $event => _ctx.validate())
4070
- }), null, 16, templatevue_type_template_id_1e758708_ts_true_hoisted_3)), [[external_vue_namespaceObject.vModelText, _ctx.modelValue]]) : _ctx.type === 'select' ? (0,external_vue_namespaceObject.withDirectives)(((0,external_vue_namespaceObject.openBlock)(), (0,external_vue_namespaceObject.createElementBlock)("select", (0,external_vue_namespaceObject.mergeProps)({
4067
+ }), null, 16, templatevue_type_template_id_7afc34d1_ts_true_hoisted_3)), [[external_vue_namespaceObject.vModelText, _ctx.modelValue]]) : _ctx.type === 'select' ? (0,external_vue_namespaceObject.withDirectives)(((0,external_vue_namespaceObject.openBlock)(), (0,external_vue_namespaceObject.createElementBlock)("select", (0,external_vue_namespaceObject.mergeProps)({
4071
4068
  key: 2,
4072
4069
  id: _ctx.$uid,
4073
4070
  "onUpdate:modelValue": _cache[4] || (_cache[4] = $event => _ctx.modelValue = $event),
@@ -4079,7 +4076,7 @@ function templatevue_type_template_id_1e758708_ts_true_render(_ctx, _cache, $pro
4079
4076
  onBlur: _cache[5] || (_cache[5] = $event => _ctx.validate(true)),
4080
4077
  onChange: _cache[6] || (_cache[6] = $event => _ctx.validate()),
4081
4078
  onInput: _cache[7] || (_cache[7] = $event => _ctx.validate())
4082
- }), [(0,external_vue_namespaceObject.renderSlot)(_ctx.$slots, "default")], 16, templatevue_type_template_id_1e758708_ts_true_hoisted_4)), [[external_vue_namespaceObject.vModelSelect, _ctx.modelValue]]) : (0,external_vue_namespaceObject.withDirectives)(((0,external_vue_namespaceObject.openBlock)(), (0,external_vue_namespaceObject.createElementBlock)("input", (0,external_vue_namespaceObject.mergeProps)({
4079
+ }), [(0,external_vue_namespaceObject.renderSlot)(_ctx.$slots, "default")], 16, templatevue_type_template_id_7afc34d1_ts_true_hoisted_4)), [[external_vue_namespaceObject.vModelSelect, _ctx.modelValue]]) : (0,external_vue_namespaceObject.withDirectives)(((0,external_vue_namespaceObject.openBlock)(), (0,external_vue_namespaceObject.createElementBlock)("input", (0,external_vue_namespaceObject.mergeProps)({
4083
4080
  key: 3,
4084
4081
  id: _ctx.$uid
4085
4082
  }, _ctx.$attrs, {
@@ -4088,12 +4085,14 @@ function templatevue_type_template_id_1e758708_ts_true_render(_ctx, _cache, $pro
4088
4085
  autofocus: _ctx.autofocus,
4089
4086
  class: _ctx.clazz,
4090
4087
  disabled: _ctx.disabled,
4088
+ min: _ctx.min,
4089
+ max: _ctx.max,
4091
4090
  maxlength: _ctx.maxlength,
4092
4091
  minlength: _ctx.minlength,
4093
4092
  pattern: _ctx.pattern,
4094
4093
  placeholder: _ctx.placeholder,
4095
4094
  required: _ctx.required,
4096
- type: _ctx.type,
4095
+ type: ['number'].includes(_ctx.type) ? 'text' : _ctx.type,
4097
4096
  onBlur: _cache[9] || (_cache[9] = $event => _ctx.validate(true)),
4098
4097
  onChange: _cache[10] || (_cache[10] = $event => _ctx.validate()),
4099
4098
  onInput: _cache[11] || (_cache[11] = $event => _ctx.validate())
@@ -4104,14 +4103,18 @@ function templatevue_type_template_id_1e758708_ts_true_render(_ctx, _cache, $pro
4104
4103
  class: "cl-file-companion"
4105
4104
  }, (0,external_vue_namespaceObject.toDisplayString)(_ctx.filePlaceholder), 9, _hoisted_6)) : (0,external_vue_namespaceObject.createCommentVNode)("", true), !_ctx.nofeedback ? ((0,external_vue_namespaceObject.openBlock)(), (0,external_vue_namespaceObject.createElementBlock)(external_vue_namespaceObject.Fragment, {
4106
4105
  key: 5
4107
- }, [(0,external_vue_namespaceObject.createElementVNode)("p", _hoisted_7, (0,external_vue_namespaceObject.toDisplayString)(_ctx.invalidMessage), 1), _ctx.help ? ((0,external_vue_namespaceObject.openBlock)(), (0,external_vue_namespaceObject.createElementBlock)("p", {
4106
+ }, [(0,external_vue_namespaceObject.createElementVNode)("p", {
4107
+ class: (0,external_vue_namespaceObject.normalizeClass)(["invalid-feedback", {
4108
+ disabled: _ctx.disabled
4109
+ }])
4110
+ }, (0,external_vue_namespaceObject.toDisplayString)(_ctx.invalidMessage), 3), _ctx.help ? ((0,external_vue_namespaceObject.openBlock)(), (0,external_vue_namespaceObject.createElementBlock)("p", {
4108
4111
  key: 0,
4109
4112
  class: (0,external_vue_namespaceObject.normalizeClass)(["valid-feedback", {
4110
4113
  disabled: _ctx.disabled
4111
4114
  }])
4112
- }, (0,external_vue_namespaceObject.toDisplayString)(_ctx.help), 3)) : ((0,external_vue_namespaceObject.openBlock)(), (0,external_vue_namespaceObject.createElementBlock)("p", _hoisted_8))], 64)) : (0,external_vue_namespaceObject.createCommentVNode)("", true)], 64);
4115
+ }, (0,external_vue_namespaceObject.toDisplayString)(_ctx.help), 3)) : ((0,external_vue_namespaceObject.openBlock)(), (0,external_vue_namespaceObject.createElementBlock)("p", _hoisted_7))], 64)) : (0,external_vue_namespaceObject.createCommentVNode)("", true)], 64);
4113
4116
  }
4114
- ;// ./src/components/form/ClField/template.vue?vue&type=template&id=1e758708&ts=true
4117
+ ;// ./src/components/form/ClField/template.vue?vue&type=template&id=7afc34d1&ts=true
4115
4118
 
4116
4119
  ;// ./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/form/ClField/template.vue?vue&type=script&lang=ts
4117
4120
 
@@ -4179,6 +4182,14 @@ function templatevue_type_template_id_1e758708_ts_true_render(_ctx, _cache, $pro
4179
4182
  type: String,
4180
4183
  default: undefined
4181
4184
  },
4185
+ min: {
4186
+ type: String,
4187
+ default: undefined
4188
+ },
4189
+ max: {
4190
+ type: String,
4191
+ default: undefined
4192
+ },
4182
4193
  pattern: {
4183
4194
  type: String,
4184
4195
  default: undefined
@@ -4214,7 +4225,7 @@ function templatevue_type_template_id_1e758708_ts_true_render(_ctx, _cache, $pro
4214
4225
  },
4215
4226
  methods: {
4216
4227
  runAutotrim: function () {
4217
- if (this.autotrim) {
4228
+ if (this.autotrim || ['number'].includes(this.type)) {
4218
4229
  const input = this.$refs.input;
4219
4230
  input.value = input.value.trim();
4220
4231
  this.modelValue = input.value;
@@ -4228,7 +4239,7 @@ function templatevue_type_template_id_1e758708_ts_true_render(_ctx, _cache, $pro
4228
4239
  },
4229
4240
  validate: function (trim = false) {
4230
4241
  this.valid = true;
4231
- if (trim && this.autotrim) this.runAutotrim();
4242
+ if (trim) this.runAutotrim();
4232
4243
  if (this.type === 'file') {
4233
4244
  this.filePlaceholder = this.modelValue.replace(/.*[/\\]/, '');
4234
4245
  }
@@ -4236,6 +4247,9 @@ function templatevue_type_template_id_1e758708_ts_true_render(_ctx, _cache, $pro
4236
4247
  this.setInvalid('This field may not be blank.');
4237
4248
  } else {
4238
4249
  switch (this.type) {
4250
+ case 'number':
4251
+ this.validateNumber();
4252
+ break;
4239
4253
  case 'email':
4240
4254
  this.validateEMail();
4241
4255
  break;
@@ -4258,6 +4272,31 @@ function templatevue_type_template_id_1e758708_ts_true_render(_ctx, _cache, $pro
4258
4272
  this.setInvalid(this.error);
4259
4273
  }
4260
4274
  },
4275
+ validateNumber: function () {
4276
+ const modelValue = this.modelValue.trim();
4277
+ if (!/^-?[0-9]*$/.test(modelValue.trim())) {
4278
+ this.setInvalid('Please enter a number.');
4279
+ return;
4280
+ }
4281
+ const val = parseInt(modelValue.trim());
4282
+ if (val.toString() !== modelValue) {
4283
+ this.setInvalid('Please enter a number.');
4284
+ return;
4285
+ }
4286
+ if (this.min !== undefined && this.max !== undefined) {
4287
+ if (val < parseInt(this.min) || val > parseInt(this.max)) {
4288
+ this.setInvalid(`Please enter a number between ${this.min} and ${this.max}.`);
4289
+ }
4290
+ } else if (this.min !== undefined) {
4291
+ if (val < parseInt(this.min)) {
4292
+ this.setInvalid(`Please enter a number >= ${this.min}.`);
4293
+ }
4294
+ } else if (this.max !== undefined) {
4295
+ if (val > parseInt(this.max)) {
4296
+ this.setInvalid(`Please enter a number <= ${this.max}.`);
4297
+ }
4298
+ }
4299
+ },
4261
4300
  validateEMail: function () {
4262
4301
  if (!/^[^\s@]+@[^\s@]+\.[^\s@]+[^\s@.]$/.test(this.modelValue)) {
4263
4302
  this.setInvalid('Please enter a valid email address.');
@@ -4287,7 +4326,7 @@ function templatevue_type_template_id_1e758708_ts_true_render(_ctx, _cache, $pro
4287
4326
 
4288
4327
 
4289
4328
  ;
4290
- const ClField_template_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ClField_templatevue_type_script_lang_ts, [['render',templatevue_type_template_id_1e758708_ts_true_render]])
4329
+ const ClField_template_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ClField_templatevue_type_script_lang_ts, [['render',templatevue_type_template_id_7afc34d1_ts_true_render]])
4291
4330
 
4292
4331
  /* harmony default export */ var ClField_template = (ClField_template_exports_);
4293
4332
  ;// ./src/components/form/ClField/index.ts
@@ -4915,25 +4954,25 @@ ClMockRouterLink_template.install = Vue => {
4915
4954
  Vue.component(ClMockRouterLink_template.name ?? 'ClNoName', ClMockRouterLink_template);
4916
4955
  };
4917
4956
  /* harmony default export */ var ClMockRouterLink = (ClMockRouterLink_template);
4918
- ;// ./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/ClModal/template.vue?vue&type=template&id=356c73b0&ts=true
4957
+ ;// ./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/ClModal/template.vue?vue&type=template&id=cd5029d0&ts=true
4919
4958
 
4920
- const templatevue_type_template_id_356c73b0_ts_true_hoisted_1 = ["id"];
4921
- const templatevue_type_template_id_356c73b0_ts_true_hoisted_2 = {
4959
+ const templatevue_type_template_id_cd5029d0_ts_true_hoisted_1 = ["id"];
4960
+ const templatevue_type_template_id_cd5029d0_ts_true_hoisted_2 = {
4922
4961
  class: "modal-dialog"
4923
4962
  };
4924
- const templatevue_type_template_id_356c73b0_ts_true_hoisted_3 = {
4963
+ const templatevue_type_template_id_cd5029d0_ts_true_hoisted_3 = {
4925
4964
  class: "modal-content"
4926
4965
  };
4927
- const templatevue_type_template_id_356c73b0_ts_true_hoisted_4 = {
4966
+ const templatevue_type_template_id_cd5029d0_ts_true_hoisted_4 = {
4928
4967
  class: "modal-header"
4929
4968
  };
4930
- const templatevue_type_template_id_356c73b0_ts_true_hoisted_5 = ["href"];
4931
- const templatevue_type_template_id_356c73b0_ts_true_hoisted_6 = ["id"];
4932
- const templatevue_type_template_id_356c73b0_ts_true_hoisted_7 = {
4969
+ const templatevue_type_template_id_cd5029d0_ts_true_hoisted_5 = ["href"];
4970
+ const templatevue_type_template_id_cd5029d0_ts_true_hoisted_6 = ["id"];
4971
+ const templatevue_type_template_id_cd5029d0_ts_true_hoisted_7 = {
4933
4972
  key: 1,
4934
4973
  class: "modal-body"
4935
4974
  };
4936
- const templatevue_type_template_id_356c73b0_ts_true_hoisted_8 = {
4975
+ const _hoisted_8 = {
4937
4976
  class: "modal-footer"
4938
4977
  };
4939
4978
  const _hoisted_9 = {
@@ -4945,13 +4984,13 @@ const _hoisted_10 = {
4945
4984
  const _hoisted_11 = {
4946
4985
  class: "modal-footer-right cl-spacing-box cl-spacing-none"
4947
4986
  };
4948
- function templatevue_type_template_id_356c73b0_ts_true_render(_ctx, _cache, $props, $setup, $data, $options) {
4987
+ function templatevue_type_template_id_cd5029d0_ts_true_render(_ctx, _cache, $props, $setup, $data, $options) {
4949
4988
  return (0,external_vue_namespaceObject.openBlock)(), (0,external_vue_namespaceObject.createElementBlock)("div", {
4950
4989
  id: _ctx.id,
4951
4990
  class: (0,external_vue_namespaceObject.normalizeClass)(`modal ${_ctx.clazz}`),
4952
4991
  tabindex: "-1",
4953
4992
  "data-bs-backdrop": "static"
4954
- }, [(0,external_vue_namespaceObject.createElementVNode)("div", templatevue_type_template_id_356c73b0_ts_true_hoisted_2, [(0,external_vue_namespaceObject.createElementVNode)("div", templatevue_type_template_id_356c73b0_ts_true_hoisted_3, [(0,external_vue_namespaceObject.createElementVNode)("div", templatevue_type_template_id_356c73b0_ts_true_hoisted_4, [(0,external_vue_namespaceObject.renderSlot)(_ctx.$slots, "title", {}, () => [_cache[1] || (_cache[1] = (0,external_vue_namespaceObject.createTextVNode)(" Information "))]), _ctx.helpUrl ? ((0,external_vue_namespaceObject.openBlock)(), (0,external_vue_namespaceObject.createElementBlock)("a", {
4993
+ }, [(0,external_vue_namespaceObject.createElementVNode)("div", templatevue_type_template_id_cd5029d0_ts_true_hoisted_2, [(0,external_vue_namespaceObject.createElementVNode)("div", templatevue_type_template_id_cd5029d0_ts_true_hoisted_3, [(0,external_vue_namespaceObject.createElementVNode)("div", templatevue_type_template_id_cd5029d0_ts_true_hoisted_4, [(0,external_vue_namespaceObject.renderSlot)(_ctx.$slots, "title", {}, () => [_cache[1] || (_cache[1] = (0,external_vue_namespaceObject.createTextVNode)("Information"))]), _ctx.helpUrl ? ((0,external_vue_namespaceObject.openBlock)(), (0,external_vue_namespaceObject.createElementBlock)("a", {
4955
4994
  key: 0,
4956
4995
  class: "modal-help",
4957
4996
  href: _ctx.helpUrl,
@@ -4959,15 +4998,15 @@ function templatevue_type_template_id_356c73b0_ts_true_render(_ctx, _cache, $pro
4959
4998
  title: "Show help in new window."
4960
4999
  }, _cache[2] || (_cache[2] = [(0,external_vue_namespaceObject.createElementVNode)("i", {
4961
5000
  class: "far fa-question-circle"
4962
- }, null, -1)]), 8, templatevue_type_template_id_356c73b0_ts_true_hoisted_5)) : (0,external_vue_namespaceObject.createCommentVNode)("", true)]), _ctx.form ? ((0,external_vue_namespaceObject.openBlock)(), (0,external_vue_namespaceObject.createElementBlock)("form", {
5001
+ }, null, -1)]), 8, templatevue_type_template_id_cd5029d0_ts_true_hoisted_5)) : (0,external_vue_namespaceObject.createCommentVNode)("", true)]), _ctx.form ? ((0,external_vue_namespaceObject.openBlock)(), (0,external_vue_namespaceObject.createElementBlock)("form", {
4963
5002
  key: 0,
4964
5003
  id: `${_ctx.id}-form`,
4965
5004
  class: "modal-body cl-form container",
4966
5005
  novalidate: "",
4967
5006
  onSubmit: _cache[0] || (_cache[0] = (0,external_vue_namespaceObject.withModifiers)(() => {}, ["prevent"]))
4968
- }, [(0,external_vue_namespaceObject.renderSlot)(_ctx.$slots, "default"), (0,external_vue_namespaceObject.renderSlot)(_ctx.$slots, "body")], 40, templatevue_type_template_id_356c73b0_ts_true_hoisted_6)) : ((0,external_vue_namespaceObject.openBlock)(), (0,external_vue_namespaceObject.createElementBlock)("div", templatevue_type_template_id_356c73b0_ts_true_hoisted_7, [(0,external_vue_namespaceObject.renderSlot)(_ctx.$slots, "default"), (0,external_vue_namespaceObject.renderSlot)(_ctx.$slots, "body")])), (0,external_vue_namespaceObject.createElementVNode)("div", templatevue_type_template_id_356c73b0_ts_true_hoisted_8, [(0,external_vue_namespaceObject.createElementVNode)("span", _hoisted_9, [(0,external_vue_namespaceObject.renderSlot)(_ctx.$slots, "footer-left")]), (0,external_vue_namespaceObject.createElementVNode)("span", _hoisted_10, [(0,external_vue_namespaceObject.renderSlot)(_ctx.$slots, "footer")]), (0,external_vue_namespaceObject.createElementVNode)("span", _hoisted_11, [(0,external_vue_namespaceObject.renderSlot)(_ctx.$slots, "footer-right")])])])])], 10, templatevue_type_template_id_356c73b0_ts_true_hoisted_1);
5007
+ }, [(0,external_vue_namespaceObject.renderSlot)(_ctx.$slots, "default"), (0,external_vue_namespaceObject.renderSlot)(_ctx.$slots, "body")], 40, templatevue_type_template_id_cd5029d0_ts_true_hoisted_6)) : ((0,external_vue_namespaceObject.openBlock)(), (0,external_vue_namespaceObject.createElementBlock)("div", templatevue_type_template_id_cd5029d0_ts_true_hoisted_7, [(0,external_vue_namespaceObject.renderSlot)(_ctx.$slots, "default"), (0,external_vue_namespaceObject.renderSlot)(_ctx.$slots, "body")])), (0,external_vue_namespaceObject.createElementVNode)("div", _hoisted_8, [(0,external_vue_namespaceObject.createElementVNode)("span", _hoisted_9, [(0,external_vue_namespaceObject.renderSlot)(_ctx.$slots, "footer-left")]), (0,external_vue_namespaceObject.createElementVNode)("span", _hoisted_10, [(0,external_vue_namespaceObject.renderSlot)(_ctx.$slots, "footer")]), (0,external_vue_namespaceObject.createElementVNode)("span", _hoisted_11, [(0,external_vue_namespaceObject.renderSlot)(_ctx.$slots, "footer-right")])])])])], 10, templatevue_type_template_id_cd5029d0_ts_true_hoisted_1);
4969
5008
  }
4970
- ;// ./src/components/modal/ClModal/template.vue?vue&type=template&id=356c73b0&ts=true
5009
+ ;// ./src/components/modal/ClModal/template.vue?vue&type=template&id=cd5029d0&ts=true
4971
5010
 
4972
5011
  ;// ./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/ClModal/template.vue?vue&type=script&lang=ts
4973
5012
 
@@ -5028,7 +5067,7 @@ function templatevue_type_template_id_356c73b0_ts_true_render(_ctx, _cache, $pro
5028
5067
 
5029
5068
 
5030
5069
  ;
5031
- const ClModal_template_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ClModal_templatevue_type_script_lang_ts, [['render',templatevue_type_template_id_356c73b0_ts_true_render]])
5070
+ const ClModal_template_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ClModal_templatevue_type_script_lang_ts, [['render',templatevue_type_template_id_cd5029d0_ts_true_render]])
5032
5071
 
5033
5072
  /* harmony default export */ var ClModal_template = (ClModal_template_exports_);
5034
5073
  ;// ./src/components/modal/ClModal/index.ts
@@ -5523,23 +5562,41 @@ ClOrg_template.install = Vue => {
5523
5562
  Vue.component(ClOrg_template.name ?? 'ClNoName', ClOrg_template);
5524
5563
  };
5525
5564
  /* harmony default export */ var ClOrg = (ClOrg_template);
5526
- ;// ./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/ClPage/template.vue?vue&type=template&id=2e5ce23a&ts=true
5565
+ ;// ./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/ClPage/template.vue?vue&type=template&id=30efcf80&ts=true
5527
5566
 
5528
- const templatevue_type_template_id_2e5ce23a_ts_true_hoisted_1 = {
5567
+ const templatevue_type_template_id_30efcf80_ts_true_hoisted_1 = {
5529
5568
  key: 0,
5530
5569
  class: "cl-page-spinner"
5531
5570
  };
5532
- function templatevue_type_template_id_2e5ce23a_ts_true_render(_ctx, _cache, $props, $setup, $data, $options) {
5571
+ function templatevue_type_template_id_30efcf80_ts_true_render(_ctx, _cache, $props, $setup, $data, $options) {
5533
5572
  const _component_cl_section_headline = (0,external_vue_namespaceObject.resolveComponent)("cl-section-headline");
5534
5573
  const _component_cl_spinner = (0,external_vue_namespaceObject.resolveComponent)("cl-spinner");
5574
+ const _component_cl_section_main = (0,external_vue_namespaceObject.resolveComponent)("cl-section-main");
5535
5575
  return (0,external_vue_namespaceObject.openBlock)(), (0,external_vue_namespaceObject.createElementBlock)(external_vue_namespaceObject.Fragment, null, [(0,external_vue_namespaceObject.createVNode)(_component_cl_section_headline, {
5536
5576
  id: _ctx.id ?? _ctx.$route.name,
5537
5577
  title: _ctx.title ?? _ctx.$route.meta?.title ?? 'castLabs'
5538
- }, null, 8, ["id", "title"]), _ctx.loading ? ((0,external_vue_namespaceObject.openBlock)(), (0,external_vue_namespaceObject.createElementBlock)("div", templatevue_type_template_id_2e5ce23a_ts_true_hoisted_1, [(0,external_vue_namespaceObject.createVNode)(_component_cl_spinner)])) : (0,external_vue_namespaceObject.renderSlot)(_ctx.$slots, "default", {
5578
+ }, null, 8, ["id", "title"]), _ctx.loading ? ((0,external_vue_namespaceObject.openBlock)(), (0,external_vue_namespaceObject.createElementBlock)("div", templatevue_type_template_id_30efcf80_ts_true_hoisted_1, [(0,external_vue_namespaceObject.createVNode)(_component_cl_spinner)])) : _ctx.notFound ? (0,external_vue_namespaceObject.renderSlot)(_ctx.$slots, "notFound", {
5539
5579
  key: 1
5580
+ }, () => [(0,external_vue_namespaceObject.createVNode)(_component_cl_section_main, null, {
5581
+ default: (0,external_vue_namespaceObject.withCtx)(() => [_cache[2] || (_cache[2] = (0,external_vue_namespaceObject.createElementVNode)("p", {
5582
+ class: "cl-p-large"
5583
+ }, "Hmm, it seems we can't find what you're looking for.", -1)), _cache[3] || (_cache[3] = (0,external_vue_namespaceObject.createElementVNode)("p", {
5584
+ class: "alert cl-alert-info"
5585
+ }, "This resource may have been moved or it might have expired.", -1)), (0,external_vue_namespaceObject.createElementVNode)("button", {
5586
+ type: "button",
5587
+ class: "btn btn-sm cl-btn-outline-text cl-spacing-large",
5588
+ onClick: _cache[0] || (_cache[0] =
5589
+ //@ts-ignore
5590
+ (...args) => _ctx.back && _ctx.back(...args))
5591
+ }, _cache[1] || (_cache[1] = [(0,external_vue_namespaceObject.createElementVNode)("i", {
5592
+ class: "fas fa-angle-left"
5593
+ }, null, -1), (0,external_vue_namespaceObject.createElementVNode)("span", null, "Back", -1)]))]),
5594
+ _: 1
5595
+ })]) : (0,external_vue_namespaceObject.renderSlot)(_ctx.$slots, "default", {
5596
+ key: 2
5540
5597
  })], 64);
5541
5598
  }
5542
- ;// ./src/components/widget/ClPage/template.vue?vue&type=template&id=2e5ce23a&ts=true
5599
+ ;// ./src/components/widget/ClPage/template.vue?vue&type=template&id=30efcf80&ts=true
5543
5600
 
5544
5601
  ;// ./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/widget/ClPage/template.vue?vue&type=script&lang=ts
5545
5602
 
@@ -5558,6 +5615,15 @@ function templatevue_type_template_id_2e5ce23a_ts_true_render(_ctx, _cache, $pro
5558
5615
  loading: {
5559
5616
  type: Boolean,
5560
5617
  default: false
5618
+ },
5619
+ notFound: {
5620
+ type: Boolean,
5621
+ default: false
5622
+ }
5623
+ },
5624
+ methods: {
5625
+ back() {
5626
+ history.go(-1);
5561
5627
  }
5562
5628
  }
5563
5629
  }));
@@ -5569,7 +5635,7 @@ function templatevue_type_template_id_2e5ce23a_ts_true_render(_ctx, _cache, $pro
5569
5635
 
5570
5636
 
5571
5637
  ;
5572
- const ClPage_template_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ClPage_templatevue_type_script_lang_ts, [['render',templatevue_type_template_id_2e5ce23a_ts_true_render]])
5638
+ const ClPage_template_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ClPage_templatevue_type_script_lang_ts, [['render',templatevue_type_template_id_30efcf80_ts_true_render]])
5573
5639
 
5574
5640
  /* harmony default export */ var ClPage_template = (ClPage_template_exports_);
5575
5641
  ;// ./src/components/widget/ClPage/index.ts