@ldmjs/ui 1.0.0-dev-4 → 1.0.0-dev-6

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/index.js CHANGED
@@ -33,6 +33,29 @@ ___CSS_LOADER_EXPORT___.push([module.id, `.loader[data-v-a5beedac]{width:100%;he
33
33
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
34
34
 
35
35
 
36
+ /***/ }),
37
+
38
+ /***/ 523:
39
+ /***/ ((module, __webpack_exports__, __webpack_require__) => {
40
+
41
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
42
+ /* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
43
+ /* harmony export */ });
44
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(601);
45
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
46
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(314);
47
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__);
48
+ // Imports
49
+
50
+
51
+ var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
52
+ // Module
53
+ ___CSS_LOADER_EXPORT___.push([module.id, `.ld-splitter[data-v-c282e58e]{height:inherit;display:flex}.ld-splitter .splitter-pane[data-v-c282e58e]{height:inherit;overflow-y:auto;background:var(--white)}.ld-splitter .splitter[data-v-c282e58e]{display:flex;align-items:center;width:7px;background-color:var(--white) !important;border-width:0 1px;border-color:var(--grey-l-5);border-style:solid}.ld-splitter.splitter[data-v-c282e58e]{width:100%;border-left:none;border-right:none}
54
+ `, ""]);
55
+ // Exports
56
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
57
+
58
+
36
59
  /***/ }),
37
60
 
38
61
  /***/ 314:
@@ -516,6 +539,25 @@ __webpack_require__.d(__webpack_exports__, {
516
539
 
517
540
  // EXTERNAL MODULE: external "vue"
518
541
  var external_vue_ = __webpack_require__(380);
542
+ ;// CONCATENATED MODULE: ./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/ld-icon/ld-icon.vue?vue&type=template&id=0a1862ae
543
+
544
+
545
+ const _hoisted_1 = { key: 1 }
546
+
547
+ function render(_ctx, _cache, $props, $setup, $data, $options) {
548
+ const _component_svg_icon = (0,external_vue_.resolveComponent)("svg-icon")
549
+
550
+ return (_ctx.array)
551
+ ? ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_svg_icon, (0,external_vue_.mergeProps)({
552
+ key: 0,
553
+ icon: _ctx.array[1],
554
+ class: _ctx.className,
555
+ path: _ctx.path
556
+ }, _ctx.props), null, 16 /* FULL_PROPS */, ["icon", "class", "path"]))
557
+ : ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("span", _hoisted_1, " icon is not found: " + (0,external_vue_.toDisplayString)(_ctx.current), 1 /* TEXT */))
558
+ }
559
+ ;// CONCATENATED MODULE: ./src/ld-icon/ld-icon.vue?vue&type=template&id=0a1862ae
560
+
519
561
  // EXTERNAL MODULE: external "vue-class-component"
520
562
  var external_vue_class_component_ = __webpack_require__(299);
521
563
  // EXTERNAL MODULE: external "vue-property-decorator"
@@ -523,11 +565,11 @@ var external_vue_property_decorator_ = __webpack_require__(70);
523
565
  ;// CONCATENATED MODULE: ./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/ld-icon/svg-icon.vue?vue&type=template&id=65e09608
524
566
 
525
567
 
526
- const _hoisted_1 = { style: {"fill":"transparent","stroke":"transparent"} }
568
+ const svg_iconvue_type_template_id_65e09608_hoisted_1 = { style: {"fill":"transparent","stroke":"transparent"} }
527
569
  const _hoisted_2 = ["href"]
528
570
 
529
- function render(_ctx, _cache, $props, $setup, $data, $options) {
530
- return ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("svg", _hoisted_1, [
571
+ function svg_iconvue_type_template_id_65e09608_render(_ctx, _cache, $props, $setup, $data, $options) {
572
+ return ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("svg", svg_iconvue_type_template_id_65e09608_hoisted_1, [
531
573
  (0,external_vue_.createElementVNode)("use", { href: _ctx.href }, null, 8 /* PROPS */, _hoisted_2)
532
574
  ]))
533
575
  }
@@ -568,7 +610,7 @@ var exportHelper = __webpack_require__(262);
568
610
 
569
611
 
570
612
  ;
571
- const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.A)(SvgIconComponent, [['render',render]])
613
+ const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.A)(SvgIconComponent, [['render',svg_iconvue_type_template_id_65e09608_render]])
572
614
 
573
615
  /* harmony default export */ const svg_icon = (__exports__);
574
616
  ;// CONCATENATED MODULE: ./node_modules/ts-loader/index.js??clonedRuleSet-1.use[0]!./src/ld-icon/ld-icon.ts?vue&type=script&lang=js&external
@@ -656,10 +698,6 @@ IconButtonComponent = ld_iconvue_type_script_lang_js_external_decorate([
656
698
  components: {
657
699
  'svg-icon': svg_icon,
658
700
  },
659
- template: `
660
- <svg-icon v-if="array" :icon="array[1]" :class="className" :path="path" v-bind="props" />
661
- <span v-else> icon is not found: {{ current }} </span>
662
- `,
663
701
  })
664
702
  ], IconButtonComponent);
665
703
  /* harmony default export */ const ld_iconvue_type_script_lang_js_external = (IconButtonComponent);
@@ -670,29 +708,24 @@ IconButtonComponent = ld_iconvue_type_script_lang_js_external_decorate([
670
708
 
671
709
 
672
710
 
673
- const ld_icon_exports_ = ld_iconvue_type_script_lang_js_external;
711
+
712
+ ;
713
+ const ld_icon_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_iconvue_type_script_lang_js_external, [['render',render]])
674
714
 
675
715
  /* harmony default export */ const ld_icon = (ld_icon_exports_);
676
716
  ;// CONCATENATED MODULE: ./src/ld-icon/index.ts
677
717
 
678
-
679
718
  function reg(vue, options) {
680
- if (false) {}
681
- let cmp = (0,external_vue_.defineComponent)(ld_icon);
682
- cmp = cmp.setup.__vccOpts;
683
- cmp = {
684
- ...cmp,
685
- props: {
686
- ...cmp.props,
687
- path: {
688
- default: options?.path ?? 'icons',
689
- },
690
- map: {
691
- default: options?.map ?? { icons: [] }
692
- }
719
+ ld_icon.props = {
720
+ ...ld_icon.props,
721
+ path: {
722
+ default: options?.LdIcon?.path ?? 'icons',
723
+ },
724
+ map: {
725
+ default: options?.LdIcon?.map ?? { icons: [] }
693
726
  }
694
727
  };
695
- vue.component('ld-icon', (0,external_vue_.defineComponent)(cmp));
728
+ vue.component(options?.aliases?.['ld-icon'] ? options.aliases['ld-icon'] : 'ld-icon', ld_icon);
696
729
  }
697
730
  /* harmony default export */ const src_ld_icon = (reg);
698
731
 
@@ -939,11 +972,1077 @@ const ld_loader_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(Loader,
939
972
  /* harmony default export */ const ld_loader = (ld_loader_exports_);
940
973
  ;// CONCATENATED MODULE: ./src/ld-loader/index.ts
941
974
 
942
- function ld_loader_reg(vue) {
943
- vue.component('loader', ld_loader);
975
+ function ld_loader_reg(vue, options) {
976
+ vue.component(options?.aliases?.['ld-loader'] ? options.aliases['ld-loader'] : 'ld-loader', ld_loader);
944
977
  }
945
978
  /* harmony default export */ const src_ld_loader = (ld_loader_reg);
946
979
 
980
+ ;// CONCATENATED MODULE: ./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/ld-button/ld-button.vue?vue&type=template&id=2f14fde1
981
+
982
+
983
+ const ld_buttonvue_type_template_id_2f14fde1_hoisted_1 = { class: "d-inline-flex" }
984
+
985
+ function ld_buttonvue_type_template_id_2f14fde1_render(_ctx, _cache, $props, $setup, $data, $options) {
986
+ const _component_square_button = (0,external_vue_.resolveComponent)("square-button")
987
+ const _component_v_tooltip = (0,external_vue_.resolveComponent)("v-tooltip")
988
+ const _component_small_button = (0,external_vue_.resolveComponent)("small-button")
989
+ const _directive_active = (0,external_vue_.resolveDirective)("active")
990
+
991
+ return ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_buttonvue_type_template_id_2f14fde1_hoisted_1, [
992
+ (_ctx.isTabletView || _ctx.isTabletGlobal)
993
+ ? ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_v_tooltip, {
994
+ key: 0,
995
+ disabled: _ctx.tooltipDisabled
996
+ }, {
997
+ activator: (0,external_vue_.withCtx)(({ props }) => [
998
+ (0,external_vue_.withDirectives)(((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_square_button, (0,external_vue_.mergeProps)(props, {
999
+ "data-testid": _ctx.testid,
1000
+ variant: _ctx.variant,
1001
+ color: _ctx.color,
1002
+ disabled: _ctx.disabled,
1003
+ loading: _ctx.loading,
1004
+ onClick: _ctx.onClick
1005
+ }), {
1006
+ default: (0,external_vue_.withCtx)(() => [
1007
+ (0,external_vue_.renderSlot)(_ctx.$slots, "icon"),
1008
+ (0,external_vue_.createTextVNode)(),
1009
+ (0,external_vue_.renderSlot)(_ctx.$slots, "hidden")
1010
+ ]),
1011
+ _: 2 /* DYNAMIC */
1012
+ }, 1040 /* FULL_PROPS, DYNAMIC_SLOTS */, ["data-testid", "variant", "color", "disabled", "loading", "onClick"])), [
1013
+ [_directive_active, _ctx.active]
1014
+ ])
1015
+ ]),
1016
+ default: (0,external_vue_.withCtx)(() => [
1017
+ (0,external_vue_.createTextVNode)(),
1018
+ (0,external_vue_.renderSlot)(_ctx.$slots, "text")
1019
+ ]),
1020
+ _: 3 /* FORWARDED */
1021
+ }, 8 /* PROPS */, ["disabled"]))
1022
+ : (_ctx.isDesktopView || _ctx.isDesktopGlobal)
1023
+ ? (0,external_vue_.withDirectives)(((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_small_button, {
1024
+ key: 1,
1025
+ "data-testid": _ctx.testid,
1026
+ variant: _ctx.variant,
1027
+ color: _ctx.color,
1028
+ disabled: _ctx.disabled,
1029
+ loading: _ctx.loading,
1030
+ onClick: _ctx.onClick
1031
+ }, {
1032
+ default: (0,external_vue_.withCtx)(() => [
1033
+ (0,external_vue_.renderSlot)(_ctx.$slots, "icon"),
1034
+ (0,external_vue_.createTextVNode)(),
1035
+ (0,external_vue_.renderSlot)(_ctx.$slots, "text"),
1036
+ (0,external_vue_.createTextVNode)(),
1037
+ (0,external_vue_.renderSlot)(_ctx.$slots, "hidden")
1038
+ ]),
1039
+ _: 3 /* FORWARDED */
1040
+ }, 8 /* PROPS */, ["data-testid", "variant", "color", "disabled", "loading", "onClick"])), [
1041
+ [_directive_active, _ctx.active]
1042
+ ])
1043
+ : (_ctx.isMobileView || _ctx.isMobileGlobal)
1044
+ ? (0,external_vue_.withDirectives)(((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_square_button, {
1045
+ key: 2,
1046
+ "data-testid": _ctx.testid,
1047
+ color: _ctx.color,
1048
+ disabled: _ctx.disabled,
1049
+ loading: _ctx.loading,
1050
+ variant: _ctx.variant,
1051
+ onClick: _ctx.onClick
1052
+ }, {
1053
+ default: (0,external_vue_.withCtx)(() => [
1054
+ (0,external_vue_.renderSlot)(_ctx.$slots, "icon"),
1055
+ (0,external_vue_.createTextVNode)(),
1056
+ (0,external_vue_.renderSlot)(_ctx.$slots, "hidden")
1057
+ ]),
1058
+ _: 3 /* FORWARDED */
1059
+ }, 8 /* PROPS */, ["data-testid", "color", "disabled", "loading", "variant", "onClick"])), [
1060
+ [_directive_active, _ctx.active]
1061
+ ])
1062
+ : (0,external_vue_.createCommentVNode)("v-if", true)
1063
+ ]))
1064
+ }
1065
+ ;// CONCATENATED MODULE: ./src/ld-button/ld-button.vue?vue&type=template&id=2f14fde1
1066
+
1067
+ ;// CONCATENATED MODULE: ./node_modules/ts-loader/index.js??clonedRuleSet-1.use[0]!./src/ld-button/ld-button.ts?vue&type=script&lang=js&external
1068
+ var ld_buttonvue_type_script_lang_js_external_decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
1069
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1070
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1071
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
1072
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
1073
+ };
1074
+ var ld_buttonvue_type_script_lang_js_external_metadata = (undefined && undefined.__metadata) || function (k, v) {
1075
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
1076
+ };
1077
+
1078
+ /**
1079
+ * isDesktop - кнопка отображатеся как стандартная кнопка с иконкой и надписью
1080
+ * isTablet - на кнопке остается одна иконка, надпись уходит в tooltip
1081
+ * isMobile - кнопка с одной иконкой без tooltip
1082
+ *
1083
+ * slot name=icon - иконка кнопки
1084
+ * slot name=text - надпись на кнопке или tooltip
1085
+ * slot name=hidden - для вспомогательных скрытых элементов
1086
+ */
1087
+ let ResponsiveButtonComponent = class ResponsiveButtonComponent extends external_vue_property_decorator_.Vue {
1088
+ onClick(value) {
1089
+ this.$emit('click', value);
1090
+ }
1091
+ get isMobileGlobal() {
1092
+ if (this.$utils.isDefined(this.isDesktopView) && this.isDesktopView) {
1093
+ return false;
1094
+ }
1095
+ if (this.$utils.isDefined(this.isTabletView) && this.isTabletView) {
1096
+ return false;
1097
+ }
1098
+ return this.globalMobileKey ? this[this.globalMobileKey] : false;
1099
+ }
1100
+ get isTabletGlobal() {
1101
+ if (this.$utils.isDefined(this.isDesktopView) && this.isDesktopView) {
1102
+ return false;
1103
+ }
1104
+ if (this.$utils.isDefined(this.isMobileView) && this.isMobileView) {
1105
+ return false;
1106
+ }
1107
+ return this.globalTabletKey ? this[this.globalTabletKey] : false;
1108
+ }
1109
+ get isDesktopGlobal() {
1110
+ if (this.$utils.isDefined(this.isTabletView) && this.isTabletView) {
1111
+ return false;
1112
+ }
1113
+ if (this.$utils.isDefined(this.isMobileView) && this.isMobileView) {
1114
+ return false;
1115
+ }
1116
+ return this.globalDesktopKey ? this[this.globalDesktopKey] : false;
1117
+ }
1118
+ };
1119
+ ld_buttonvue_type_script_lang_js_external_decorate([
1120
+ (0,external_vue_property_decorator_.Prop)({ type: String, default: 'flat' }),
1121
+ ld_buttonvue_type_script_lang_js_external_metadata("design:type", String)
1122
+ ], ResponsiveButtonComponent.prototype, "variant", void 0);
1123
+ ld_buttonvue_type_script_lang_js_external_decorate([
1124
+ (0,external_vue_property_decorator_.Prop)({ type: Boolean, default: false }),
1125
+ ld_buttonvue_type_script_lang_js_external_metadata("design:type", Boolean)
1126
+ ], ResponsiveButtonComponent.prototype, "text", void 0);
1127
+ ld_buttonvue_type_script_lang_js_external_decorate([
1128
+ (0,external_vue_property_decorator_.Prop)({ type: String, default: 'primary' }),
1129
+ ld_buttonvue_type_script_lang_js_external_metadata("design:type", String)
1130
+ ], ResponsiveButtonComponent.prototype, "color", void 0);
1131
+ ld_buttonvue_type_script_lang_js_external_decorate([
1132
+ (0,external_vue_property_decorator_.Prop)({ type: String, default: '' }),
1133
+ ld_buttonvue_type_script_lang_js_external_metadata("design:type", String)
1134
+ ], ResponsiveButtonComponent.prototype, "testid", void 0);
1135
+ ld_buttonvue_type_script_lang_js_external_decorate([
1136
+ (0,external_vue_property_decorator_.Prop)({ type: Boolean, default: false }),
1137
+ ld_buttonvue_type_script_lang_js_external_metadata("design:type", Boolean)
1138
+ ], ResponsiveButtonComponent.prototype, "disabled", void 0);
1139
+ ld_buttonvue_type_script_lang_js_external_decorate([
1140
+ (0,external_vue_property_decorator_.Prop)({ type: Boolean, default: false }),
1141
+ ld_buttonvue_type_script_lang_js_external_metadata("design:type", Boolean)
1142
+ ], ResponsiveButtonComponent.prototype, "loading", void 0);
1143
+ ld_buttonvue_type_script_lang_js_external_decorate([
1144
+ (0,external_vue_property_decorator_.Prop)({ type: Boolean, default: false }),
1145
+ ld_buttonvue_type_script_lang_js_external_metadata("design:type", Boolean)
1146
+ ], ResponsiveButtonComponent.prototype, "active", void 0);
1147
+ ld_buttonvue_type_script_lang_js_external_decorate([
1148
+ (0,external_vue_property_decorator_.Prop)({ type: Boolean, default: false }),
1149
+ ld_buttonvue_type_script_lang_js_external_metadata("design:type", Boolean)
1150
+ ], ResponsiveButtonComponent.prototype, "tooltipDisabled", void 0);
1151
+ ld_buttonvue_type_script_lang_js_external_decorate([
1152
+ (0,external_vue_property_decorator_.Prop)({ type: Boolean, default: null }),
1153
+ ld_buttonvue_type_script_lang_js_external_metadata("design:type", Boolean)
1154
+ ], ResponsiveButtonComponent.prototype, "isDesktopView", void 0);
1155
+ ld_buttonvue_type_script_lang_js_external_decorate([
1156
+ (0,external_vue_property_decorator_.Prop)({ type: Boolean, default: null }),
1157
+ ld_buttonvue_type_script_lang_js_external_metadata("design:type", Boolean)
1158
+ ], ResponsiveButtonComponent.prototype, "isTabletView", void 0);
1159
+ ld_buttonvue_type_script_lang_js_external_decorate([
1160
+ (0,external_vue_property_decorator_.Prop)({ type: Boolean, default: null }),
1161
+ ld_buttonvue_type_script_lang_js_external_metadata("design:type", Boolean)
1162
+ ], ResponsiveButtonComponent.prototype, "isMobileView", void 0);
1163
+ ld_buttonvue_type_script_lang_js_external_decorate([
1164
+ (0,external_vue_property_decorator_.Prop)(),
1165
+ ld_buttonvue_type_script_lang_js_external_metadata("design:type", String)
1166
+ ], ResponsiveButtonComponent.prototype, "globalMobileKey", void 0);
1167
+ ld_buttonvue_type_script_lang_js_external_decorate([
1168
+ (0,external_vue_property_decorator_.Prop)(),
1169
+ ld_buttonvue_type_script_lang_js_external_metadata("design:type", String)
1170
+ ], ResponsiveButtonComponent.prototype, "globalTabletKey", void 0);
1171
+ ld_buttonvue_type_script_lang_js_external_decorate([
1172
+ (0,external_vue_property_decorator_.Prop)(),
1173
+ ld_buttonvue_type_script_lang_js_external_metadata("design:type", String)
1174
+ ], ResponsiveButtonComponent.prototype, "globalDesktopKey", void 0);
1175
+ ResponsiveButtonComponent = ld_buttonvue_type_script_lang_js_external_decorate([
1176
+ (0,external_vue_property_decorator_.Options)({
1177
+ emits: ['click'],
1178
+ })
1179
+ ], ResponsiveButtonComponent);
1180
+ /* harmony default export */ const ld_buttonvue_type_script_lang_js_external = (ResponsiveButtonComponent);
1181
+
1182
+ ;// CONCATENATED MODULE: ./src/ld-button/ld-button.ts?vue&type=script&lang=js&external
1183
+
1184
+ ;// CONCATENATED MODULE: ./src/ld-button/ld-button.vue
1185
+
1186
+
1187
+
1188
+
1189
+ ;
1190
+ const ld_button_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_buttonvue_type_script_lang_js_external, [['render',ld_buttonvue_type_template_id_2f14fde1_render]])
1191
+
1192
+ /* harmony default export */ const ld_button = (ld_button_exports_);
1193
+ ;// CONCATENATED MODULE: ./src/ld-button/index.ts
1194
+
1195
+ function ld_button_reg(vue, options) {
1196
+ ld_button.props = {
1197
+ ...ld_button.props,
1198
+ globalMobileKey: {
1199
+ default: options?.LdBtn?.isMobile
1200
+ },
1201
+ globalTabletKey: {
1202
+ default: options?.LdBtn?.isTablet
1203
+ },
1204
+ globalDesktopKey: {
1205
+ default: options?.LdBtn?.isDesktop
1206
+ }
1207
+ };
1208
+ vue.component(options?.aliases?.['ld-button'] ? options.aliases['ld-button'] : 'ld-button', ld_button);
1209
+ }
1210
+ /* harmony default export */ const src_ld_button = (ld_button_reg);
1211
+
1212
+ ;// CONCATENATED MODULE: ./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/ld-splitter/ld-splitter.vue?vue&type=template&id=c282e58e&scoped=true
1213
+
1214
+
1215
+ const ld_splittervue_type_template_id_c282e58e_scoped_true_withScopeId = n => ((0,external_vue_.pushScopeId)("data-v-c282e58e"),n=n(),(0,external_vue_.popScopeId)(),n)
1216
+ const ld_splittervue_type_template_id_c282e58e_scoped_true_hoisted_1 = /*#__PURE__*/ ld_splittervue_type_template_id_c282e58e_scoped_true_withScopeId(() => /*#__PURE__*/(0,external_vue_.createElementVNode)("svg", {
1217
+ xmlns: "http://www.w3.org/2000/svg",
1218
+ version: "1.1",
1219
+ viewBox: "0 0 1.5875 8.4666668",
1220
+ height: "32",
1221
+ width: "6"
1222
+ }, [
1223
+ /*#__PURE__*/(0,external_vue_.createElementVNode)("g", null, [
1224
+ /*#__PURE__*/(0,external_vue_.createElementVNode)("path", {
1225
+ transform: "scale(0.26458333)",
1226
+ d: "M 0.38476562 0.7265625 L 0.38476562 3.2910156 L 2.53125 3.2910156 L 2.53125 0.7265625 L 0.38476562 0.7265625 z M 3.4941406 0.7265625 L 3.4941406 3.2910156 L 5.6699219 3.2910156 L 5.6699219 0.7265625 L 3.4941406 0.7265625 z M 0.38476562 4.2519531 L 0.38476562 6.8144531 L 2.53125 6.8144531 L 2.53125 4.2519531 L 0.38476562 4.2519531 z M 3.4941406 4.2519531 L 3.4941406 6.8144531 L 5.6699219 6.8144531 L 5.6699219 4.2519531 L 3.4941406 4.2519531 z M 0.38476562 7.7753906 L 0.38476562 10.339844 L 2.53125 10.339844 L 2.53125 7.7753906 L 0.38476562 7.7753906 z M 3.4941406 7.7753906 L 3.4941406 10.339844 L 5.6699219 10.339844 L 5.6699219 7.7753906 L 3.4941406 7.7753906 z M 0.38476562 11.298828 L 0.38476562 13.863281 L 2.53125 13.863281 L 2.53125 11.298828 L 0.38476562 11.298828 z M 3.4941406 11.298828 L 3.4941406 13.863281 L 5.6699219 13.863281 L 5.6699219 11.298828 L 3.4941406 11.298828 z M 0.38476562 14.822266 L 0.38476562 17.386719 L 2.53125 17.386719 L 2.53125 14.822266 L 0.38476562 14.822266 z M 3.4941406 14.822266 L 3.4941406 17.386719 L 5.6699219 17.386719 L 5.6699219 14.822266 L 3.4941406 14.822266 z M 0.38476562 18.347656 L 0.38476562 20.910156 L 2.53125 20.910156 L 2.53125 18.347656 L 0.38476562 18.347656 z M 3.4941406 18.347656 L 3.4941406 20.910156 L 5.6699219 20.910156 L 5.6699219 18.347656 L 3.4941406 18.347656 z M 0.38476562 21.871094 L 0.38476562 24.435547 L 2.53125 24.435547 L 2.53125 21.871094 L 0.38476562 21.871094 z M 3.4941406 21.871094 L 3.4941406 24.435547 L 5.6699219 24.435547 L 5.6699219 21.871094 L 3.4941406 21.871094 z M 0.38476562 25.394531 L 0.38476562 27.958984 L 2.53125 27.958984 L 2.53125 25.394531 L 0.38476562 25.394531 z M 3.4941406 25.394531 L 3.4941406 27.958984 L 5.6699219 27.958984 L 5.6699219 25.394531 L 3.4941406 25.394531 z M 0.38476562 28.917969 L 0.38476562 31.482422 L 2.53125 31.482422 L 2.53125 28.917969 L 0.38476562 28.917969 z M 3.4941406 28.917969 L 3.4941406 31.482422 L 5.6699219 31.482422 L 5.6699219 28.917969 L 3.4941406 28.917969 z ",
1227
+ style: {"fill":"#cccccc","stroke-width":"0.831496"}
1228
+ })
1229
+ ])
1230
+ ], -1 /* HOISTED */))
1231
+ const ld_splittervue_type_template_id_c282e58e_scoped_true_hoisted_2 = [
1232
+ ld_splittervue_type_template_id_c282e58e_scoped_true_hoisted_1
1233
+ ]
1234
+
1235
+ function ld_splittervue_type_template_id_c282e58e_scoped_true_render(_ctx, _cache, $props, $setup, $data, $options) {
1236
+ return ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", {
1237
+ style: (0,external_vue_.normalizeStyle)({
1238
+ cursor: _ctx.active ? (_ctx.horizontal ? 'ns-resize' : 'ew-resize') : '',
1239
+ 'user-select': _ctx.active ? 'none' : 'unset',
1240
+ 'flex-direction': _ctx.horizontal ? 'column' : 'row',
1241
+ }),
1242
+ class: (0,external_vue_.normalizeClass)(['ld-splitter', _ctx.mainClass]),
1243
+ onMouseup: _cache[3] || (_cache[3] = (...args) => (_ctx.onUp && _ctx.onUp(...args))),
1244
+ onMousemove: _cache[4] || (_cache[4] = (...args) => (_ctx.onMouseMove && _ctx.onMouseMove(...args))),
1245
+ onTouchmove: _cache[5] || (_cache[5] = (...args) => (_ctx.onTouchMove && _ctx.onTouchMove(...args))),
1246
+ onTouchend: _cache[6] || (_cache[6] = (...args) => (_ctx.onUp && _ctx.onUp(...args)))
1247
+ }, [
1248
+ (0,external_vue_.withDirectives)((0,external_vue_.createElementVNode)("div", {
1249
+ style: (0,external_vue_.normalizeStyle)(_ctx.leftPaneStyle),
1250
+ class: "left-pane splitter-pane"
1251
+ }, [
1252
+ (0,external_vue_.renderSlot)(_ctx.$slots, "left-pane", {}, undefined, true)
1253
+ ], 4 /* STYLE */), [
1254
+ [external_vue_.vShow, _ctx.leftVisibled]
1255
+ ]),
1256
+ (0,external_vue_.createTextVNode)(),
1257
+ (0,external_vue_.withDirectives)((0,external_vue_.createElementVNode)("div", {
1258
+ class: (0,external_vue_.normalizeClass)(["splitter", {active: _ctx.active}]),
1259
+ style: (0,external_vue_.normalizeStyle)(_ctx.splitterStyle),
1260
+ onClick: _cache[0] || (_cache[0] = (...args) => (_ctx.onClick && _ctx.onClick(...args))),
1261
+ onTouchstart: _cache[1] || (_cache[1] = (0,external_vue_.withModifiers)((...args) => (_ctx.onDown && _ctx.onDown(...args)), ["prevent"])),
1262
+ onMousedown: _cache[2] || (_cache[2] = (...args) => (_ctx.onDown && _ctx.onDown(...args)))
1263
+ }, ld_splittervue_type_template_id_c282e58e_scoped_true_hoisted_2, 38 /* CLASS, STYLE, NEED_HYDRATION */), [
1264
+ [external_vue_.vShow, _ctx.leftVisibled && _ctx.rightVisibled]
1265
+ ]),
1266
+ (0,external_vue_.createTextVNode)(),
1267
+ (0,external_vue_.withDirectives)((0,external_vue_.createElementVNode)("div", {
1268
+ style: (0,external_vue_.normalizeStyle)(_ctx.rightPaneStyle),
1269
+ class: "right-pane splitter-pane"
1270
+ }, [
1271
+ (0,external_vue_.renderSlot)(_ctx.$slots, "right-pane", {}, undefined, true)
1272
+ ], 4 /* STYLE */), [
1273
+ [external_vue_.vShow, _ctx.rightVisibled]
1274
+ ])
1275
+ ], 38 /* CLASS, STYLE, NEED_HYDRATION */))
1276
+ }
1277
+ ;// CONCATENATED MODULE: ./src/ld-splitter/ld-splitter.vue?vue&type=template&id=c282e58e&scoped=true
1278
+
1279
+ ;// CONCATENATED MODULE: ./node_modules/lodash-es/isObject.js
1280
+ /**
1281
+ * Checks if `value` is the
1282
+ * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
1283
+ * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
1284
+ *
1285
+ * @static
1286
+ * @memberOf _
1287
+ * @since 0.1.0
1288
+ * @category Lang
1289
+ * @param {*} value The value to check.
1290
+ * @returns {boolean} Returns `true` if `value` is an object, else `false`.
1291
+ * @example
1292
+ *
1293
+ * _.isObject({});
1294
+ * // => true
1295
+ *
1296
+ * _.isObject([1, 2, 3]);
1297
+ * // => true
1298
+ *
1299
+ * _.isObject(_.noop);
1300
+ * // => true
1301
+ *
1302
+ * _.isObject(null);
1303
+ * // => false
1304
+ */
1305
+ function isObject(value) {
1306
+ var type = typeof value;
1307
+ return value != null && (type == 'object' || type == 'function');
1308
+ }
1309
+
1310
+ /* harmony default export */ const lodash_es_isObject = (isObject);
1311
+
1312
+ ;// CONCATENATED MODULE: ./node_modules/lodash-es/_freeGlobal.js
1313
+ /** Detect free variable `global` from Node.js. */
1314
+ var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
1315
+
1316
+ /* harmony default export */ const _freeGlobal = (freeGlobal);
1317
+
1318
+ ;// CONCATENATED MODULE: ./node_modules/lodash-es/_root.js
1319
+
1320
+
1321
+ /** Detect free variable `self`. */
1322
+ var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
1323
+
1324
+ /** Used as a reference to the global object. */
1325
+ var root = _freeGlobal || freeSelf || Function('return this')();
1326
+
1327
+ /* harmony default export */ const _root = (root);
1328
+
1329
+ ;// CONCATENATED MODULE: ./node_modules/lodash-es/now.js
1330
+
1331
+
1332
+ /**
1333
+ * Gets the timestamp of the number of milliseconds that have elapsed since
1334
+ * the Unix epoch (1 January 1970 00:00:00 UTC).
1335
+ *
1336
+ * @static
1337
+ * @memberOf _
1338
+ * @since 2.4.0
1339
+ * @category Date
1340
+ * @returns {number} Returns the timestamp.
1341
+ * @example
1342
+ *
1343
+ * _.defer(function(stamp) {
1344
+ * console.log(_.now() - stamp);
1345
+ * }, _.now());
1346
+ * // => Logs the number of milliseconds it took for the deferred invocation.
1347
+ */
1348
+ var now = function() {
1349
+ return _root.Date.now();
1350
+ };
1351
+
1352
+ /* harmony default export */ const lodash_es_now = (now);
1353
+
1354
+ ;// CONCATENATED MODULE: ./node_modules/lodash-es/_trimmedEndIndex.js
1355
+ /** Used to match a single whitespace character. */
1356
+ var reWhitespace = /\s/;
1357
+
1358
+ /**
1359
+ * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace
1360
+ * character of `string`.
1361
+ *
1362
+ * @private
1363
+ * @param {string} string The string to inspect.
1364
+ * @returns {number} Returns the index of the last non-whitespace character.
1365
+ */
1366
+ function trimmedEndIndex(string) {
1367
+ var index = string.length;
1368
+
1369
+ while (index-- && reWhitespace.test(string.charAt(index))) {}
1370
+ return index;
1371
+ }
1372
+
1373
+ /* harmony default export */ const _trimmedEndIndex = (trimmedEndIndex);
1374
+
1375
+ ;// CONCATENATED MODULE: ./node_modules/lodash-es/_baseTrim.js
1376
+
1377
+
1378
+ /** Used to match leading whitespace. */
1379
+ var reTrimStart = /^\s+/;
1380
+
1381
+ /**
1382
+ * The base implementation of `_.trim`.
1383
+ *
1384
+ * @private
1385
+ * @param {string} string The string to trim.
1386
+ * @returns {string} Returns the trimmed string.
1387
+ */
1388
+ function baseTrim(string) {
1389
+ return string
1390
+ ? string.slice(0, _trimmedEndIndex(string) + 1).replace(reTrimStart, '')
1391
+ : string;
1392
+ }
1393
+
1394
+ /* harmony default export */ const _baseTrim = (baseTrim);
1395
+
1396
+ ;// CONCATENATED MODULE: ./node_modules/lodash-es/_Symbol.js
1397
+
1398
+
1399
+ /** Built-in value references. */
1400
+ var Symbol = _root.Symbol;
1401
+
1402
+ /* harmony default export */ const _Symbol = (Symbol);
1403
+
1404
+ ;// CONCATENATED MODULE: ./node_modules/lodash-es/_getRawTag.js
1405
+
1406
+
1407
+ /** Used for built-in method references. */
1408
+ var objectProto = Object.prototype;
1409
+
1410
+ /** Used to check objects for own properties. */
1411
+ var _getRawTag_hasOwnProperty = objectProto.hasOwnProperty;
1412
+
1413
+ /**
1414
+ * Used to resolve the
1415
+ * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
1416
+ * of values.
1417
+ */
1418
+ var nativeObjectToString = objectProto.toString;
1419
+
1420
+ /** Built-in value references. */
1421
+ var symToStringTag = _Symbol ? _Symbol.toStringTag : undefined;
1422
+
1423
+ /**
1424
+ * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
1425
+ *
1426
+ * @private
1427
+ * @param {*} value The value to query.
1428
+ * @returns {string} Returns the raw `toStringTag`.
1429
+ */
1430
+ function getRawTag(value) {
1431
+ var isOwn = _getRawTag_hasOwnProperty.call(value, symToStringTag),
1432
+ tag = value[symToStringTag];
1433
+
1434
+ try {
1435
+ value[symToStringTag] = undefined;
1436
+ var unmasked = true;
1437
+ } catch (e) {}
1438
+
1439
+ var result = nativeObjectToString.call(value);
1440
+ if (unmasked) {
1441
+ if (isOwn) {
1442
+ value[symToStringTag] = tag;
1443
+ } else {
1444
+ delete value[symToStringTag];
1445
+ }
1446
+ }
1447
+ return result;
1448
+ }
1449
+
1450
+ /* harmony default export */ const _getRawTag = (getRawTag);
1451
+
1452
+ ;// CONCATENATED MODULE: ./node_modules/lodash-es/_objectToString.js
1453
+ /** Used for built-in method references. */
1454
+ var _objectToString_objectProto = Object.prototype;
1455
+
1456
+ /**
1457
+ * Used to resolve the
1458
+ * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
1459
+ * of values.
1460
+ */
1461
+ var _objectToString_nativeObjectToString = _objectToString_objectProto.toString;
1462
+
1463
+ /**
1464
+ * Converts `value` to a string using `Object.prototype.toString`.
1465
+ *
1466
+ * @private
1467
+ * @param {*} value The value to convert.
1468
+ * @returns {string} Returns the converted string.
1469
+ */
1470
+ function objectToString(value) {
1471
+ return _objectToString_nativeObjectToString.call(value);
1472
+ }
1473
+
1474
+ /* harmony default export */ const _objectToString = (objectToString);
1475
+
1476
+ ;// CONCATENATED MODULE: ./node_modules/lodash-es/_baseGetTag.js
1477
+
1478
+
1479
+
1480
+
1481
+ /** `Object#toString` result references. */
1482
+ var nullTag = '[object Null]',
1483
+ undefinedTag = '[object Undefined]';
1484
+
1485
+ /** Built-in value references. */
1486
+ var _baseGetTag_symToStringTag = _Symbol ? _Symbol.toStringTag : undefined;
1487
+
1488
+ /**
1489
+ * The base implementation of `getTag` without fallbacks for buggy environments.
1490
+ *
1491
+ * @private
1492
+ * @param {*} value The value to query.
1493
+ * @returns {string} Returns the `toStringTag`.
1494
+ */
1495
+ function baseGetTag(value) {
1496
+ if (value == null) {
1497
+ return value === undefined ? undefinedTag : nullTag;
1498
+ }
1499
+ return (_baseGetTag_symToStringTag && _baseGetTag_symToStringTag in Object(value))
1500
+ ? _getRawTag(value)
1501
+ : _objectToString(value);
1502
+ }
1503
+
1504
+ /* harmony default export */ const _baseGetTag = (baseGetTag);
1505
+
1506
+ ;// CONCATENATED MODULE: ./node_modules/lodash-es/isObjectLike.js
1507
+ /**
1508
+ * Checks if `value` is object-like. A value is object-like if it's not `null`
1509
+ * and has a `typeof` result of "object".
1510
+ *
1511
+ * @static
1512
+ * @memberOf _
1513
+ * @since 4.0.0
1514
+ * @category Lang
1515
+ * @param {*} value The value to check.
1516
+ * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
1517
+ * @example
1518
+ *
1519
+ * _.isObjectLike({});
1520
+ * // => true
1521
+ *
1522
+ * _.isObjectLike([1, 2, 3]);
1523
+ * // => true
1524
+ *
1525
+ * _.isObjectLike(_.noop);
1526
+ * // => false
1527
+ *
1528
+ * _.isObjectLike(null);
1529
+ * // => false
1530
+ */
1531
+ function isObjectLike(value) {
1532
+ return value != null && typeof value == 'object';
1533
+ }
1534
+
1535
+ /* harmony default export */ const lodash_es_isObjectLike = (isObjectLike);
1536
+
1537
+ ;// CONCATENATED MODULE: ./node_modules/lodash-es/isSymbol.js
1538
+
1539
+
1540
+
1541
+ /** `Object#toString` result references. */
1542
+ var symbolTag = '[object Symbol]';
1543
+
1544
+ /**
1545
+ * Checks if `value` is classified as a `Symbol` primitive or object.
1546
+ *
1547
+ * @static
1548
+ * @memberOf _
1549
+ * @since 4.0.0
1550
+ * @category Lang
1551
+ * @param {*} value The value to check.
1552
+ * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
1553
+ * @example
1554
+ *
1555
+ * _.isSymbol(Symbol.iterator);
1556
+ * // => true
1557
+ *
1558
+ * _.isSymbol('abc');
1559
+ * // => false
1560
+ */
1561
+ function isSymbol(value) {
1562
+ return typeof value == 'symbol' ||
1563
+ (lodash_es_isObjectLike(value) && _baseGetTag(value) == symbolTag);
1564
+ }
1565
+
1566
+ /* harmony default export */ const lodash_es_isSymbol = (isSymbol);
1567
+
1568
+ ;// CONCATENATED MODULE: ./node_modules/lodash-es/toNumber.js
1569
+
1570
+
1571
+
1572
+
1573
+ /** Used as references for various `Number` constants. */
1574
+ var NAN = 0 / 0;
1575
+
1576
+ /** Used to detect bad signed hexadecimal string values. */
1577
+ var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
1578
+
1579
+ /** Used to detect binary string values. */
1580
+ var reIsBinary = /^0b[01]+$/i;
1581
+
1582
+ /** Used to detect octal string values. */
1583
+ var reIsOctal = /^0o[0-7]+$/i;
1584
+
1585
+ /** Built-in method references without a dependency on `root`. */
1586
+ var freeParseInt = parseInt;
1587
+
1588
+ /**
1589
+ * Converts `value` to a number.
1590
+ *
1591
+ * @static
1592
+ * @memberOf _
1593
+ * @since 4.0.0
1594
+ * @category Lang
1595
+ * @param {*} value The value to process.
1596
+ * @returns {number} Returns the number.
1597
+ * @example
1598
+ *
1599
+ * _.toNumber(3.2);
1600
+ * // => 3.2
1601
+ *
1602
+ * _.toNumber(Number.MIN_VALUE);
1603
+ * // => 5e-324
1604
+ *
1605
+ * _.toNumber(Infinity);
1606
+ * // => Infinity
1607
+ *
1608
+ * _.toNumber('3.2');
1609
+ * // => 3.2
1610
+ */
1611
+ function toNumber(value) {
1612
+ if (typeof value == 'number') {
1613
+ return value;
1614
+ }
1615
+ if (lodash_es_isSymbol(value)) {
1616
+ return NAN;
1617
+ }
1618
+ if (lodash_es_isObject(value)) {
1619
+ var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
1620
+ value = lodash_es_isObject(other) ? (other + '') : other;
1621
+ }
1622
+ if (typeof value != 'string') {
1623
+ return value === 0 ? value : +value;
1624
+ }
1625
+ value = _baseTrim(value);
1626
+ var isBinary = reIsBinary.test(value);
1627
+ return (isBinary || reIsOctal.test(value))
1628
+ ? freeParseInt(value.slice(2), isBinary ? 2 : 8)
1629
+ : (reIsBadHex.test(value) ? NAN : +value);
1630
+ }
1631
+
1632
+ /* harmony default export */ const lodash_es_toNumber = (toNumber);
1633
+
1634
+ ;// CONCATENATED MODULE: ./node_modules/lodash-es/debounce.js
1635
+
1636
+
1637
+
1638
+
1639
+ /** Error message constants. */
1640
+ var FUNC_ERROR_TEXT = 'Expected a function';
1641
+
1642
+ /* Built-in method references for those with the same name as other `lodash` methods. */
1643
+ var nativeMax = Math.max,
1644
+ nativeMin = Math.min;
1645
+
1646
+ /**
1647
+ * Creates a debounced function that delays invoking `func` until after `wait`
1648
+ * milliseconds have elapsed since the last time the debounced function was
1649
+ * invoked. The debounced function comes with a `cancel` method to cancel
1650
+ * delayed `func` invocations and a `flush` method to immediately invoke them.
1651
+ * Provide `options` to indicate whether `func` should be invoked on the
1652
+ * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
1653
+ * with the last arguments provided to the debounced function. Subsequent
1654
+ * calls to the debounced function return the result of the last `func`
1655
+ * invocation.
1656
+ *
1657
+ * **Note:** If `leading` and `trailing` options are `true`, `func` is
1658
+ * invoked on the trailing edge of the timeout only if the debounced function
1659
+ * is invoked more than once during the `wait` timeout.
1660
+ *
1661
+ * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
1662
+ * until to the next tick, similar to `setTimeout` with a timeout of `0`.
1663
+ *
1664
+ * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
1665
+ * for details over the differences between `_.debounce` and `_.throttle`.
1666
+ *
1667
+ * @static
1668
+ * @memberOf _
1669
+ * @since 0.1.0
1670
+ * @category Function
1671
+ * @param {Function} func The function to debounce.
1672
+ * @param {number} [wait=0] The number of milliseconds to delay.
1673
+ * @param {Object} [options={}] The options object.
1674
+ * @param {boolean} [options.leading=false]
1675
+ * Specify invoking on the leading edge of the timeout.
1676
+ * @param {number} [options.maxWait]
1677
+ * The maximum time `func` is allowed to be delayed before it's invoked.
1678
+ * @param {boolean} [options.trailing=true]
1679
+ * Specify invoking on the trailing edge of the timeout.
1680
+ * @returns {Function} Returns the new debounced function.
1681
+ * @example
1682
+ *
1683
+ * // Avoid costly calculations while the window size is in flux.
1684
+ * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
1685
+ *
1686
+ * // Invoke `sendMail` when clicked, debouncing subsequent calls.
1687
+ * jQuery(element).on('click', _.debounce(sendMail, 300, {
1688
+ * 'leading': true,
1689
+ * 'trailing': false
1690
+ * }));
1691
+ *
1692
+ * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
1693
+ * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
1694
+ * var source = new EventSource('/stream');
1695
+ * jQuery(source).on('message', debounced);
1696
+ *
1697
+ * // Cancel the trailing debounced invocation.
1698
+ * jQuery(window).on('popstate', debounced.cancel);
1699
+ */
1700
+ function debounce(func, wait, options) {
1701
+ var lastArgs,
1702
+ lastThis,
1703
+ maxWait,
1704
+ result,
1705
+ timerId,
1706
+ lastCallTime,
1707
+ lastInvokeTime = 0,
1708
+ leading = false,
1709
+ maxing = false,
1710
+ trailing = true;
1711
+
1712
+ if (typeof func != 'function') {
1713
+ throw new TypeError(FUNC_ERROR_TEXT);
1714
+ }
1715
+ wait = lodash_es_toNumber(wait) || 0;
1716
+ if (lodash_es_isObject(options)) {
1717
+ leading = !!options.leading;
1718
+ maxing = 'maxWait' in options;
1719
+ maxWait = maxing ? nativeMax(lodash_es_toNumber(options.maxWait) || 0, wait) : maxWait;
1720
+ trailing = 'trailing' in options ? !!options.trailing : trailing;
1721
+ }
1722
+
1723
+ function invokeFunc(time) {
1724
+ var args = lastArgs,
1725
+ thisArg = lastThis;
1726
+
1727
+ lastArgs = lastThis = undefined;
1728
+ lastInvokeTime = time;
1729
+ result = func.apply(thisArg, args);
1730
+ return result;
1731
+ }
1732
+
1733
+ function leadingEdge(time) {
1734
+ // Reset any `maxWait` timer.
1735
+ lastInvokeTime = time;
1736
+ // Start the timer for the trailing edge.
1737
+ timerId = setTimeout(timerExpired, wait);
1738
+ // Invoke the leading edge.
1739
+ return leading ? invokeFunc(time) : result;
1740
+ }
1741
+
1742
+ function remainingWait(time) {
1743
+ var timeSinceLastCall = time - lastCallTime,
1744
+ timeSinceLastInvoke = time - lastInvokeTime,
1745
+ timeWaiting = wait - timeSinceLastCall;
1746
+
1747
+ return maxing
1748
+ ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)
1749
+ : timeWaiting;
1750
+ }
1751
+
1752
+ function shouldInvoke(time) {
1753
+ var timeSinceLastCall = time - lastCallTime,
1754
+ timeSinceLastInvoke = time - lastInvokeTime;
1755
+
1756
+ // Either this is the first call, activity has stopped and we're at the
1757
+ // trailing edge, the system time has gone backwards and we're treating
1758
+ // it as the trailing edge, or we've hit the `maxWait` limit.
1759
+ return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
1760
+ (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
1761
+ }
1762
+
1763
+ function timerExpired() {
1764
+ var time = lodash_es_now();
1765
+ if (shouldInvoke(time)) {
1766
+ return trailingEdge(time);
1767
+ }
1768
+ // Restart the timer.
1769
+ timerId = setTimeout(timerExpired, remainingWait(time));
1770
+ }
1771
+
1772
+ function trailingEdge(time) {
1773
+ timerId = undefined;
1774
+
1775
+ // Only invoke if we have `lastArgs` which means `func` has been
1776
+ // debounced at least once.
1777
+ if (trailing && lastArgs) {
1778
+ return invokeFunc(time);
1779
+ }
1780
+ lastArgs = lastThis = undefined;
1781
+ return result;
1782
+ }
1783
+
1784
+ function cancel() {
1785
+ if (timerId !== undefined) {
1786
+ clearTimeout(timerId);
1787
+ }
1788
+ lastInvokeTime = 0;
1789
+ lastArgs = lastCallTime = lastThis = timerId = undefined;
1790
+ }
1791
+
1792
+ function flush() {
1793
+ return timerId === undefined ? result : trailingEdge(lodash_es_now());
1794
+ }
1795
+
1796
+ function debounced() {
1797
+ var time = lodash_es_now(),
1798
+ isInvoking = shouldInvoke(time);
1799
+
1800
+ lastArgs = arguments;
1801
+ lastThis = this;
1802
+ lastCallTime = time;
1803
+
1804
+ if (isInvoking) {
1805
+ if (timerId === undefined) {
1806
+ return leadingEdge(lastCallTime);
1807
+ }
1808
+ if (maxing) {
1809
+ // Handle invocations in a tight loop.
1810
+ clearTimeout(timerId);
1811
+ timerId = setTimeout(timerExpired, wait);
1812
+ return invokeFunc(lastCallTime);
1813
+ }
1814
+ }
1815
+ if (timerId === undefined) {
1816
+ timerId = setTimeout(timerExpired, wait);
1817
+ }
1818
+ return result;
1819
+ }
1820
+ debounced.cancel = cancel;
1821
+ debounced.flush = flush;
1822
+ return debounced;
1823
+ }
1824
+
1825
+ /* harmony default export */ const lodash_es_debounce = (debounce);
1826
+
1827
+ ;// CONCATENATED MODULE: ./node_modules/ts-loader/index.js??clonedRuleSet-1.use[0]!./src/ld-splitter/ld-splitter.ts?vue&type=script&lang=js&external
1828
+ var ld_splittervue_type_script_lang_js_external_decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
1829
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1830
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1831
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
1832
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
1833
+ };
1834
+ var ld_splittervue_type_script_lang_js_external_metadata = (undefined && undefined.__metadata) || function (k, v) {
1835
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
1836
+ };
1837
+
1838
+
1839
+ let Splitter = class Splitter extends external_vue_property_decorator_.Vue {
1840
+ constructor() {
1841
+ super(...arguments);
1842
+ this.active = false;
1843
+ this.percent = 50;
1844
+ this.hasMoved = false;
1845
+ this.emitResizeDebounced = null;
1846
+ }
1847
+ emitResize(value) {
1848
+ this.$emit('resize', value);
1849
+ }
1850
+ leftSizePercentChanged() {
1851
+ this.percent = this.leftSizePercent;
1852
+ }
1853
+ created() {
1854
+ this.emitResizeDebounced = lodash_es_debounce(this.emitResizeEvent.bind(this), 200);
1855
+ }
1856
+ onClick() {
1857
+ if (this.resizeDisabled) {
1858
+ return;
1859
+ }
1860
+ if (!this.hasMoved) {
1861
+ this.percent = 50;
1862
+ this.emitResize(this.percent);
1863
+ }
1864
+ }
1865
+ onDown() {
1866
+ this.active = true;
1867
+ this.hasMoved = false;
1868
+ }
1869
+ onUp() {
1870
+ this.active = false;
1871
+ }
1872
+ onMove(e) {
1873
+ let offset = 0;
1874
+ let target = e.currentTarget;
1875
+ let percent = 0;
1876
+ if (this.active) {
1877
+ if (this.horizontal) {
1878
+ while (target) {
1879
+ offset += target.offsetTop;
1880
+ target = target.offsetParent;
1881
+ }
1882
+ percent = Math.floor(((e.pageY - offset) / e.currentTarget.offsetHeight) * 10000) / 100;
1883
+ }
1884
+ else {
1885
+ while (target) {
1886
+ offset += target.offsetLeft;
1887
+ target = target.offsetParent;
1888
+ }
1889
+ percent = Math.floor(((e.pageX - offset) / e.currentTarget.offsetWidth) * 10000) / 100;
1890
+ }
1891
+ // последнее условие не позволяет расширять левую часть, если при этом правая станет меньше, чем rightSizeMin
1892
+ if (percent > this.margin && percent < 100 - this.margin && percent <= 100 - Number(this.rightSizeMin)) {
1893
+ this.percent = percent;
1894
+ this.emitResizeDebounced();
1895
+ }
1896
+ this.hasMoved = true;
1897
+ }
1898
+ }
1899
+ onMouseMove(e) {
1900
+ if (this.resizeDisabled) {
1901
+ return;
1902
+ }
1903
+ if (e.buttons === 0 || e.which === 0) {
1904
+ this.active = false;
1905
+ }
1906
+ this.onMove(e);
1907
+ }
1908
+ onTouchMove(e) {
1909
+ this.onMove(e);
1910
+ }
1911
+ emitResizeEvent() {
1912
+ this.emitResize(this.percent);
1913
+ }
1914
+ get mainClass() {
1915
+ return this.$ldmui.options?.aliases?.['ld-splitter'] ? this.$ldmui.options?.aliases?.['ld-splitter'] : '';
1916
+ }
1917
+ get flexDirection() {
1918
+ return this.horizontal ? 'column' : 'row';
1919
+ }
1920
+ get splitterStyle() {
1921
+ const dim = this.resizeDisabled ? 1 : 7;
1922
+ /* eslint-disable-next-line no-nested-ternary */
1923
+ const cursor = this.resizeDisabled ? 'default' : this.horizontal ? 'ns-resize' : 'ew-resize';
1924
+ const styles = this.horizontal
1925
+ ? { width: '100%', height: `${dim}px`, cursor, borderWidth: '1px 0' }
1926
+ : { width: `${dim}px`, cursor };
1927
+ if (this.resizeDisabled) {
1928
+ styles.borderLeft = 'none';
1929
+ }
1930
+ return styles;
1931
+ }
1932
+ get leftPaneStyle() {
1933
+ const unit = this.leftSizeMin.indexOf('px') > -1 ? '' : '%';
1934
+ return this.horizontal
1935
+ ? { height: this.rightVisibled ? this.percent + '%' : '100%', 'min-height': `${this.leftSizeMin}${unit}` }
1936
+ : { width: this.rightVisibled ? this.percent + '%' : '100%', 'min-width': `${this.leftSizeMin}${unit}` };
1937
+ }
1938
+ get rightPaneStyle() {
1939
+ const unit = this.rightSizeMin.indexOf('px') > -1 ? '' : '%';
1940
+ return this.horizontal
1941
+ ? { height: 100 - this.percent + '%', 'min-height': `${this.rightSizeMin}${unit}` }
1942
+ : {
1943
+ width: this.leftVisibled ? 100 - this.percent + '%' : '100%',
1944
+ 'min-width': `${this.rightSizeMin}${unit}`,
1945
+ };
1946
+ }
1947
+ };
1948
+ ld_splittervue_type_script_lang_js_external_decorate([
1949
+ (0,external_vue_property_decorator_.Prop)({ type: Number, default: 10 }),
1950
+ ld_splittervue_type_script_lang_js_external_metadata("design:type", Number)
1951
+ ], Splitter.prototype, "margin", void 0);
1952
+ ld_splittervue_type_script_lang_js_external_decorate([
1953
+ (0,external_vue_property_decorator_.Prop)({ type: Boolean, default: false }),
1954
+ ld_splittervue_type_script_lang_js_external_metadata("design:type", Boolean)
1955
+ ], Splitter.prototype, "horizontal", void 0);
1956
+ ld_splittervue_type_script_lang_js_external_decorate([
1957
+ (0,external_vue_property_decorator_.Prop)({ type: Boolean, default: true }),
1958
+ ld_splittervue_type_script_lang_js_external_metadata("design:type", Boolean)
1959
+ ], Splitter.prototype, "leftVisibled", void 0);
1960
+ ld_splittervue_type_script_lang_js_external_decorate([
1961
+ (0,external_vue_property_decorator_.Prop)({ type: Boolean, default: true }),
1962
+ ld_splittervue_type_script_lang_js_external_metadata("design:type", Boolean)
1963
+ ], Splitter.prototype, "rightVisibled", void 0);
1964
+ ld_splittervue_type_script_lang_js_external_decorate([
1965
+ (0,external_vue_property_decorator_.Prop)({ type: Number, default: 50 }),
1966
+ ld_splittervue_type_script_lang_js_external_metadata("design:type", Number)
1967
+ ], Splitter.prototype, "leftSizePercent", void 0);
1968
+ ld_splittervue_type_script_lang_js_external_decorate([
1969
+ (0,external_vue_property_decorator_.Prop)({ type: String, default: '25' }),
1970
+ ld_splittervue_type_script_lang_js_external_metadata("design:type", String)
1971
+ ], Splitter.prototype, "leftSizeMin", void 0);
1972
+ ld_splittervue_type_script_lang_js_external_decorate([
1973
+ (0,external_vue_property_decorator_.Prop)({ type: String, default: '0' }),
1974
+ ld_splittervue_type_script_lang_js_external_metadata("design:type", String)
1975
+ ], Splitter.prototype, "rightSizeMin", void 0);
1976
+ ld_splittervue_type_script_lang_js_external_decorate([
1977
+ (0,external_vue_property_decorator_.Prop)({ type: Boolean, default: false }),
1978
+ ld_splittervue_type_script_lang_js_external_metadata("design:type", Boolean)
1979
+ ], Splitter.prototype, "resizeDisabled", void 0);
1980
+ ld_splittervue_type_script_lang_js_external_decorate([
1981
+ (0,external_vue_property_decorator_.Watch)('leftSizePercent', { immediate: true }),
1982
+ ld_splittervue_type_script_lang_js_external_metadata("design:type", Function),
1983
+ ld_splittervue_type_script_lang_js_external_metadata("design:paramtypes", []),
1984
+ ld_splittervue_type_script_lang_js_external_metadata("design:returntype", void 0)
1985
+ ], Splitter.prototype, "leftSizePercentChanged", null);
1986
+ Splitter = ld_splittervue_type_script_lang_js_external_decorate([
1987
+ (0,external_vue_property_decorator_.Options)({
1988
+ emits: ['resize'],
1989
+ })
1990
+ ], Splitter);
1991
+ /* harmony default export */ const ld_splittervue_type_script_lang_js_external = (Splitter);
1992
+
1993
+ ;// CONCATENATED MODULE: ./src/ld-splitter/ld-splitter.ts?vue&type=script&lang=js&external
1994
+
1995
+ // EXTERNAL MODULE: ./node_modules/css-loader/dist/cjs.js??clonedRuleSet-2.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-2.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/ld-splitter/ld-splitter.vue?vue&type=style&index=0&id=c282e58e&lang=scss&scoped=true
1996
+ var ld_splittervue_type_style_index_0_id_c282e58e_lang_scss_scoped_true = __webpack_require__(523);
1997
+ ;// CONCATENATED MODULE: ./node_modules/style-loader/dist/cjs.js!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-2.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-2.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/ld-splitter/ld-splitter.vue?vue&type=style&index=0&id=c282e58e&lang=scss&scoped=true
1998
+
1999
+
2000
+
2001
+
2002
+
2003
+
2004
+
2005
+
2006
+
2007
+
2008
+
2009
+ var ld_splittervue_type_style_index_0_id_c282e58e_lang_scss_scoped_true_options = {};
2010
+
2011
+ ld_splittervue_type_style_index_0_id_c282e58e_lang_scss_scoped_true_options.styleTagTransform = (styleTagTransform_default());
2012
+ ld_splittervue_type_style_index_0_id_c282e58e_lang_scss_scoped_true_options.setAttributes = (setAttributesWithoutAttributes_default());
2013
+
2014
+ ld_splittervue_type_style_index_0_id_c282e58e_lang_scss_scoped_true_options.insert = insertBySelector_default().bind(null, "head");
2015
+
2016
+ ld_splittervue_type_style_index_0_id_c282e58e_lang_scss_scoped_true_options.domAPI = (styleDomAPI_default());
2017
+ ld_splittervue_type_style_index_0_id_c282e58e_lang_scss_scoped_true_options.insertStyleElement = (insertStyleElement_default());
2018
+
2019
+ var ld_splittervue_type_style_index_0_id_c282e58e_lang_scss_scoped_true_update = injectStylesIntoStyleTag_default()(ld_splittervue_type_style_index_0_id_c282e58e_lang_scss_scoped_true/* default */.A, ld_splittervue_type_style_index_0_id_c282e58e_lang_scss_scoped_true_options);
2020
+
2021
+
2022
+
2023
+
2024
+ /* harmony default export */ const ld_splitter_ld_splittervue_type_style_index_0_id_c282e58e_lang_scss_scoped_true = (ld_splittervue_type_style_index_0_id_c282e58e_lang_scss_scoped_true/* default */.A && ld_splittervue_type_style_index_0_id_c282e58e_lang_scss_scoped_true/* default */.A.locals ? ld_splittervue_type_style_index_0_id_c282e58e_lang_scss_scoped_true/* default */.A.locals : undefined);
2025
+
2026
+ ;// CONCATENATED MODULE: ./src/ld-splitter/ld-splitter.vue?vue&type=style&index=0&id=c282e58e&lang=scss&scoped=true
2027
+
2028
+ ;// CONCATENATED MODULE: ./src/ld-splitter/ld-splitter.vue
2029
+
2030
+
2031
+
2032
+
2033
+ ;
2034
+
2035
+
2036
+ const ld_splitter_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_splittervue_type_script_lang_js_external, [['render',ld_splittervue_type_template_id_c282e58e_scoped_true_render],['__scopeId',"data-v-c282e58e"]])
2037
+
2038
+ /* harmony default export */ const ld_splitter = (ld_splitter_exports_);
2039
+ ;// CONCATENATED MODULE: ./src/ld-splitter/index.ts
2040
+
2041
+ function ld_splitter_reg(vue, options) {
2042
+ vue.component(options?.aliases?.['ld-splitter'] ? options.aliases['ld-splitter'] : 'ld-splitter', ld_splitter);
2043
+ }
2044
+ /* harmony default export */ const src_ld_splitter = (ld_splitter_reg);
2045
+
947
2046
  ;// CONCATENATED MODULE: ./src/vuetify.ts
948
2047
  const aliases = {
949
2048
  SmallButton: 'VBtn',
@@ -952,6 +2051,10 @@ const aliases = {
952
2051
  SmallBadge: 'VChip',
953
2052
  };
954
2053
  const defaults = {
2054
+ global: {
2055
+ ripple: false,
2056
+ density: 'compact',
2057
+ },
955
2058
  SmallButton: {
956
2059
  variant: 'flat',
957
2060
  color: 'primary',
@@ -984,19 +2087,42 @@ function getVuetifyAliases(components) {
984
2087
  /* harmony default export */ const vuetify = (getVuetifyAliases);
985
2088
 
986
2089
 
2090
+ ;// CONCATENATED MODULE: ./src/directives/active.directive.ts
2091
+ const ActiveDirectiveOptions = {
2092
+ beforeMount(el, binding) {
2093
+ const className = '--active';
2094
+ const value = binding.value;
2095
+ el.classList[value ? 'add' : 'remove'](className);
2096
+ },
2097
+ updated(el, binding) {
2098
+ const className = '--active';
2099
+ const value = binding.value;
2100
+ el.classList[value ? 'add' : 'remove'](className);
2101
+ },
2102
+ };
2103
+
987
2104
  ;// CONCATENATED MODULE: ./src/index.ts
988
2105
 
989
2106
 
990
2107
 
991
2108
 
992
2109
 
2110
+
2111
+
2112
+
993
2113
  const ldmuiPlugin = {
994
2114
  install(vue, options) {
995
- src_ld_icon(vue, options?.LdIcon);
996
- src_ld_loader(vue);
2115
+ src_ld_icon(vue, options);
2116
+ src_ld_loader(vue, options);
2117
+ src_ld_button(vue, options);
2118
+ src_ld_splitter(vue, options);
997
2119
  vue.config.globalProperties.$utils = {
998
2120
  isDefined: isDefined
999
2121
  };
2122
+ vue.config.globalProperties.$ldmui = {
2123
+ options
2124
+ };
2125
+ vue.directive('active', ActiveDirectiveOptions);
1000
2126
  },
1001
2127
  };
1002
2128
  /* harmony default export */ const src = (ldmuiPlugin);