@ldmjs/ui 1.0.51 → 1.0.52

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.
@@ -16,4 +16,4 @@
16
16
  .ld-text-viewer[data-v-3fa037a4]{min-width:100%;display:flex;flex-direction:column;white-space:break-spaces;font-size:var(--font-size)}.ld-text-viewer .column[data-v-3fa037a4]{flex-flow:column}
17
17
  .ld-edit-masked-text[data-v-33aa4ec6]{min-width:100%;font-size:inherit !important;display:flex}.ld-edit-masked-text .column[data-v-33aa4ec6]{flex-flow:column}input[data-v-33aa4ec6]{border:1px solid var(--grey-l-5);border-radius:var(--border-radius);width:100%;padding:0 8px;font-size:var(--font-size);height:var(--input-height)}input[data-v-33aa4ec6]:focus,input[data-v-33aa4ec6]:active{outline:none;border:1px solid var(--grey-l-4)}.ld-edit-masked-text-validate[data-v-33aa4ec6]{overflow:hidden;height:20px}
18
18
  .ld-text-markup[data-v-2efb69ff]{display:flex;flex-direction:column;min-width:100%;max-width:100%;width:100%;min-height:180px;padding-bottom:18px}.ld-text-markup-validate[data-v-2efb69ff]{overflow:hidden;height:20px;flex-grow:0}.content-wrapper[data-v-2efb69ff]{display:flex;flex-direction:column;position:relative;background-color:var(--grey-l-6);border-radius:4px}.tabs-wrapper[data-v-2efb69ff]{position:relative;display:flex;width:50%;max-width:155px;margin-bottom:-1px;z-index:1;flex-shrink:0}.tabs-wrapper .v-btn[data-v-2efb69ff]{border:1px solid var(--grey-l-5);height:30px !important;opacity:.6;border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.tabs-wrapper .v-btn[data-v-2efb69ff]:before,.tabs-wrapper .v-btn[data-v-2efb69ff]:after{display:none}.tabs-wrapper .v-btn.active[data-v-2efb69ff]{background-color:var(--white);border:1px solid var(--grey-l-4);border-bottom:none;opacity:1}.content[data-v-2efb69ff]{position:relative;z-index:0;flex-basis:100%;font-size:var(--font-size);color:var(--text)}.content .md-editor[data-v-2efb69ff]{height:100%}.contentbox[data-v-2efb69ff]{border:1px solid var(--grey-l-4);background-color:var(--white);border-radius:0 4px 4px 4px;padding:10px}[data-v-2efb69ff] .contentbox ul{padding:0 12px;list-style:disc;margin-bottom:8px}[data-v-2efb69ff] .contentbox ol{list-style:decimal;padding:0 12px;margin-bottom:8px}[data-v-2efb69ff] .contentbox p{margin-bottom:8px}[data-v-2efb69ff] .contentbox pre{padding:4px}[data-v-2efb69ff] .contentbox code{background:none;color:var(--text);padding:0;font-size:100%}[data-v-2efb69ff] .md-editor{border:1px solid var(--grey-l-4)}
19
- .ld-switch[data-v-89826e86] .v-switch{display:block}.ld-switch[data-v-89826e86] .v-switch .v-selection-control{min-height:var(--input-height) !important}.ld-switch[data-v-89826e86] .v-switch .v-selection-control .v-selection-control__wrapper{width:40px}.ld-switch[data-v-89826e86] .v-switch .v-selection-control:not(.v-selection-control--dirty) .v-selection-control__input{transform:translateX(-12px)}.ld-switch[data-v-89826e86] .v-switch .v-selection-control:not(.v-selection-control--dirty) .v-switch__track{color:var(--grey-l-4) !important;background-color:var(--grey-l-4) !important}.ld-switch[data-v-89826e86] .v-switch .v-selection-control .v-switch__track{opacity:1;width:40px}.ld-switch[data-v-89826e86] .v-switch .v-selection-control--dirty .v-selection-control__input{transform:translateX(12px)}.ld-switch[data-v-89826e86] .v-switch .v-selection-control--dirty .v-switch__thumb{color:var(--primary-l-3) !important;background-color:var(--primary-l-3) !important}.ld-switch[data-v-89826e86] .v-switch .v-selection-control--dirty .v-switch__track{opacity:1;background-color:var(--primary-l-2) !important}.ld-switch[data-v-89826e86] .v-switch .v-selection-control--dirty .v-label{color:var(--primary-l-2) !important}.ld-switch[data-v-89826e86] .v-switch .v-selection-control .v-switch__thumb{color:var(--white) !important}.ld-switch[data-v-89826e86] .v-switch .v-selection-control .v-label{padding-inline-start:4px}
19
+ .ld-switch[data-v-102cfd42] .v-switch{display:block}.ld-switch[data-v-102cfd42] .v-switch .v-selection-control{min-height:var(--input-height) !important}.ld-switch[data-v-102cfd42] .v-switch .v-selection-control .v-selection-control__wrapper{width:40px}.ld-switch[data-v-102cfd42] .v-switch .v-selection-control:not(.v-selection-control--dirty) .v-selection-control__input{transform:translateX(-12px)}.ld-switch[data-v-102cfd42] .v-switch .v-selection-control:not(.v-selection-control--dirty) .v-switch__track{color:var(--grey-l-4) !important;background-color:var(--grey-l-4) !important}.ld-switch[data-v-102cfd42] .v-switch .v-selection-control .v-switch__track{opacity:1;width:40px}.ld-switch[data-v-102cfd42] .v-switch .v-selection-control--dirty .v-selection-control__input{transform:translateX(12px)}.ld-switch[data-v-102cfd42] .v-switch .v-selection-control--dirty .v-switch__thumb{color:var(--primary-l-3) !important;background-color:var(--primary-l-3) !important}.ld-switch[data-v-102cfd42] .v-switch .v-selection-control--dirty .v-switch__track{opacity:1;background-color:var(--primary-l-2) !important}.ld-switch[data-v-102cfd42] .v-switch .v-selection-control--dirty .v-label{color:var(--primary-l-2) !important}.ld-switch[data-v-102cfd42] .v-switch .v-selection-control .v-switch__thumb{color:var(--white) !important}.ld-switch[data-v-102cfd42] .v-switch .v-selection-control .v-label{padding-inline-start:4px}
package/dist/index.js CHANGED
@@ -15583,26 +15583,28 @@ function ld_text_markup_reg(vue, options) {
15583
15583
  }
15584
15584
  /* harmony default export */ const src_ld_text_markup = (ld_text_markup_reg);
15585
15585
 
15586
- ;// ./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use!./src/ld-switch/ld-switch.vue?vue&type=template&id=89826e86&scoped=true
15586
+ ;// ./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use!./src/ld-switch/ld-switch.vue?vue&type=template&id=102cfd42&scoped=true
15587
15587
 
15588
15588
 
15589
- const ld_switchvue_type_template_id_89826e86_scoped_true_hoisted_1 = { class: "ld-switch" }
15589
+ const ld_switchvue_type_template_id_102cfd42_scoped_true_hoisted_1 = { class: "ld-switch" }
15590
15590
 
15591
- function ld_switchvue_type_template_id_89826e86_scoped_true_render(_ctx, _cache, $props, $setup, $data, $options) {
15591
+ function ld_switchvue_type_template_id_102cfd42_scoped_true_render(_ctx, _cache, $props, $setup, $data, $options) {
15592
15592
  const _component_v_switch = (0,external_vue_.resolveComponent)("v-switch")
15593
15593
 
15594
- return ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_switchvue_type_template_id_89826e86_scoped_true_hoisted_1, [
15594
+ return ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_switchvue_type_template_id_102cfd42_scoped_true_hoisted_1, [
15595
15595
  (0,external_vue_.createVNode)(_component_v_switch, {
15596
15596
  modelValue: _ctx.value,
15597
15597
  "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ((_ctx.value) = $event)),
15598
15598
  readonly: _ctx.readonly,
15599
15599
  disabled: _ctx.disabled,
15600
15600
  label: _ctx.label,
15601
+ "true-value": _ctx.trueValue,
15602
+ "false-value": _ctx.falseValue,
15601
15603
  "hide-details": _ctx.hideDetails
15602
- }, null, 8, ["modelValue", "readonly", "disabled", "label", "hide-details"])
15604
+ }, null, 8, ["modelValue", "readonly", "disabled", "label", "true-value", "false-value", "hide-details"])
15603
15605
  ]))
15604
15606
  }
15605
- ;// ./src/ld-switch/ld-switch.vue?vue&type=template&id=89826e86&scoped=true
15607
+ ;// ./src/ld-switch/ld-switch.vue?vue&type=template&id=102cfd42&scoped=true
15606
15608
 
15607
15609
  ;// ./node_modules/ts-loader/index.js??clonedRuleSet-1.use!./src/ld-switch/ld-switch.ts?vue&type=script&lang=js&external
15608
15610
  var ld_switchvue_type_script_lang_js_external_decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
@@ -15627,11 +15629,27 @@ let SwitchComponent = class SwitchComponent extends (0,external_vue_property_dec
15627
15629
  onValueChanged(val) {
15628
15630
  this.$emit('update:model-value', val);
15629
15631
  }
15632
+ created() {
15633
+ if (!this.$utils.isDefined(this.modelValue)) {
15634
+ return;
15635
+ }
15636
+ if (this.$utils.isDefined(this.trueValue) && this.$utils.isDefined(this.falseValue)) {
15637
+ this.value = this.modelValue ? this.trueValue : this.falseValue;
15638
+ }
15639
+ }
15630
15640
  };
15631
15641
  ld_switchvue_type_script_lang_js_external_decorate([
15632
15642
  (0,external_vue_property_decorator_.Prop)(),
15633
15643
  ld_switchvue_type_script_lang_js_external_metadata("design:type", Boolean)
15634
15644
  ], SwitchComponent.prototype, "modelValue", void 0);
15645
+ ld_switchvue_type_script_lang_js_external_decorate([
15646
+ (0,external_vue_property_decorator_.Prop)(),
15647
+ ld_switchvue_type_script_lang_js_external_metadata("design:type", Object)
15648
+ ], SwitchComponent.prototype, "trueValue", void 0);
15649
+ ld_switchvue_type_script_lang_js_external_decorate([
15650
+ (0,external_vue_property_decorator_.Prop)(),
15651
+ ld_switchvue_type_script_lang_js_external_metadata("design:type", Object)
15652
+ ], SwitchComponent.prototype, "falseValue", void 0);
15635
15653
  ld_switchvue_type_script_lang_js_external_decorate([
15636
15654
  (0,external_vue_property_decorator_.Watch)('modelValue', { immediate: true }),
15637
15655
  ld_switchvue_type_script_lang_js_external_metadata("design:type", Function),
@@ -15641,7 +15659,7 @@ ld_switchvue_type_script_lang_js_external_decorate([
15641
15659
  ld_switchvue_type_script_lang_js_external_decorate([
15642
15660
  (0,external_vue_property_decorator_.Watch)('value'),
15643
15661
  ld_switchvue_type_script_lang_js_external_metadata("design:type", Function),
15644
- ld_switchvue_type_script_lang_js_external_metadata("design:paramtypes", [Boolean]),
15662
+ ld_switchvue_type_script_lang_js_external_metadata("design:paramtypes", [Object]),
15645
15663
  ld_switchvue_type_script_lang_js_external_metadata("design:returntype", void 0)
15646
15664
  ], SwitchComponent.prototype, "onValueChanged", null);
15647
15665
  SwitchComponent = ld_switchvue_type_script_lang_js_external_decorate([
@@ -15661,7 +15679,7 @@ SwitchComponent = ld_switchvue_type_script_lang_js_external_decorate([
15661
15679
  ;
15662
15680
 
15663
15681
 
15664
- const ld_switch_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_switchvue_type_script_lang_js_external, [['render',ld_switchvue_type_template_id_89826e86_scoped_true_render],['__scopeId',"data-v-89826e86"]])
15682
+ const ld_switch_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_switchvue_type_script_lang_js_external, [['render',ld_switchvue_type_template_id_102cfd42_scoped_true_render],['__scopeId',"data-v-102cfd42"]])
15665
15683
 
15666
15684
  /* harmony default export */ const ld_switch = (ld_switch_exports_);
15667
15685
  ;// ./src/ld-switch/index.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ldmjs/ui",
3
- "version": "1.0.51",
3
+ "version": "1.0.52",
4
4
  "description": "ldm ui",
5
5
  "main": "dist/index.js",
6
6
  "engines": {