@ldmjs/ui 1.0.17 → 1.0.19
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/calendar.js +1 -1
- package/dist/index.js +137 -18
- package/dist/scss/_buttons.scss +42 -28
- package/dist/scss/_chip.scss +4 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -607,18 +607,141 @@ function ld_loader_reg(vue, options) {
|
|
|
607
607
|
}
|
|
608
608
|
/* harmony default export */ const src_ld_loader = (ld_loader_reg);
|
|
609
609
|
|
|
610
|
-
;// CONCATENATED MODULE: ./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use!./src/ld-
|
|
610
|
+
;// CONCATENATED MODULE: ./node_modules/ts-loader/index.js??clonedRuleSet-1.use!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use!./src/ld-chip/ld-chip.vue?vue&type=template&id=4722b6ca&ts=true
|
|
611
|
+
|
|
612
|
+
const ld_chipvue_type_template_id_4722b6ca_ts_true_hoisted_1 = /*#__PURE__*/ (0,external_vue_.createElementVNode)("svg", {
|
|
613
|
+
width: "18",
|
|
614
|
+
height: "18",
|
|
615
|
+
viewBox: "0 0 18 18",
|
|
616
|
+
fill: "none",
|
|
617
|
+
id: "close_18",
|
|
618
|
+
version: "1.1",
|
|
619
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
620
|
+
}, [
|
|
621
|
+
/*#__PURE__*/ (0,external_vue_.createElementVNode)("rect", {
|
|
622
|
+
style: { "fill": "currentColor", "stroke-width": "1.5" },
|
|
623
|
+
id: "rect1",
|
|
624
|
+
width: "1.1693057",
|
|
625
|
+
height: "13.973204",
|
|
626
|
+
x: "11.941731",
|
|
627
|
+
y: "-7.1519666",
|
|
628
|
+
rx: "0.85917288",
|
|
629
|
+
ry: "0.65454429",
|
|
630
|
+
transform: "rotate(45)"
|
|
631
|
+
}),
|
|
632
|
+
/*#__PURE__*/ (0,external_vue_.createTextVNode)(),
|
|
633
|
+
/*#__PURE__*/ (0,external_vue_.createElementVNode)("rect", {
|
|
634
|
+
style: { "fill": "currentColor", "stroke-width": "1.5" },
|
|
635
|
+
id: "rect1-1",
|
|
636
|
+
width: "1.1693057",
|
|
637
|
+
height: "13.973204",
|
|
638
|
+
x: "-0.76293743",
|
|
639
|
+
y: "5.5370965",
|
|
640
|
+
rx: "0.85917288",
|
|
641
|
+
ry: "0.65454429",
|
|
642
|
+
transform: "matrix(-0.70710678,0.70710678,0.70710678,0.70710678,0,0)"
|
|
643
|
+
})
|
|
644
|
+
], -1);
|
|
645
|
+
function ld_chipvue_type_template_id_4722b6ca_ts_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
646
|
+
const _component_v_btn = (0,external_vue_.resolveComponent)("v-btn");
|
|
647
|
+
const _component_v_chip = (0,external_vue_.resolveComponent)("v-chip");
|
|
648
|
+
return ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_v_chip, {
|
|
649
|
+
variant: "outlined",
|
|
650
|
+
color: _ctx.color,
|
|
651
|
+
closable: false,
|
|
652
|
+
class: "small-chip"
|
|
653
|
+
}, {
|
|
654
|
+
append: (0,external_vue_.withCtx)(() => [
|
|
655
|
+
(_ctx.closable)
|
|
656
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_v_btn, {
|
|
657
|
+
key: 0,
|
|
658
|
+
id: "btn-close",
|
|
659
|
+
variant: "text",
|
|
660
|
+
icon: "",
|
|
661
|
+
width: "18",
|
|
662
|
+
height: "18",
|
|
663
|
+
onClick: _cache[0] || (_cache[0] = ($event) => (_ctx.$emit('click:close')))
|
|
664
|
+
}, {
|
|
665
|
+
default: (0,external_vue_.withCtx)(() => [
|
|
666
|
+
ld_chipvue_type_template_id_4722b6ca_ts_true_hoisted_1
|
|
667
|
+
]),
|
|
668
|
+
_: 1
|
|
669
|
+
}))
|
|
670
|
+
: (0,external_vue_.createCommentVNode)("", true)
|
|
671
|
+
]),
|
|
672
|
+
default: (0,external_vue_.withCtx)(() => [
|
|
673
|
+
(0,external_vue_.renderSlot)(_ctx.$slots, "default"),
|
|
674
|
+
(0,external_vue_.createTextVNode)()
|
|
675
|
+
]),
|
|
676
|
+
_: 3
|
|
677
|
+
}, 8, ["color"]));
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
;// CONCATENATED MODULE: ./src/ld-chip/ld-chip.vue?vue&type=template&id=4722b6ca&ts=true
|
|
681
|
+
|
|
682
|
+
;// CONCATENATED MODULE: ./node_modules/ts-loader/index.js??clonedRuleSet-1.use!./src/ld-chip/ld-chip.ts?vue&type=script&lang=ts&external
|
|
683
|
+
var ld_chipvue_type_script_lang_ts_external_decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
684
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
685
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
686
|
+
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;
|
|
687
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
688
|
+
};
|
|
689
|
+
var ld_chipvue_type_script_lang_ts_external_metadata = (undefined && undefined.__metadata) || function (k, v) {
|
|
690
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
691
|
+
};
|
|
692
|
+
|
|
693
|
+
|
|
694
|
+
/**
|
|
695
|
+
* Chip
|
|
696
|
+
* @displayName small-chip
|
|
697
|
+
*/
|
|
698
|
+
let ChipComponent = class ChipComponent extends external_vue_class_component_.Vue {
|
|
699
|
+
};
|
|
700
|
+
ld_chipvue_type_script_lang_ts_external_decorate([
|
|
701
|
+
(0,external_vue_property_decorator_.Prop)({ type: Boolean, default: true }),
|
|
702
|
+
ld_chipvue_type_script_lang_ts_external_metadata("design:type", Boolean)
|
|
703
|
+
], ChipComponent.prototype, "closable", void 0);
|
|
704
|
+
ld_chipvue_type_script_lang_ts_external_decorate([
|
|
705
|
+
(0,external_vue_property_decorator_.Prop)({ type: String, default: 'primary' }),
|
|
706
|
+
ld_chipvue_type_script_lang_ts_external_metadata("design:type", String)
|
|
707
|
+
], ChipComponent.prototype, "color", void 0);
|
|
708
|
+
ChipComponent = ld_chipvue_type_script_lang_ts_external_decorate([
|
|
709
|
+
(0,external_vue_class_component_.Options)({
|
|
710
|
+
emits: ['click:close']
|
|
711
|
+
})
|
|
712
|
+
], ChipComponent);
|
|
713
|
+
/* harmony default export */ const ld_chipvue_type_script_lang_ts_external = (ChipComponent);
|
|
714
|
+
|
|
715
|
+
;// CONCATENATED MODULE: ./src/ld-chip/ld-chip.ts?vue&type=script&lang=ts&external
|
|
716
|
+
|
|
717
|
+
;// CONCATENATED MODULE: ./src/ld-chip/ld-chip.vue
|
|
718
|
+
|
|
611
719
|
|
|
612
720
|
|
|
613
|
-
const ld_buttonvue_type_template_id_2f14fde1_hoisted_1 = { class: "d-inline-flex" }
|
|
614
721
|
|
|
615
|
-
|
|
722
|
+
;
|
|
723
|
+
const ld_chip_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_chipvue_type_script_lang_ts_external, [['render',ld_chipvue_type_template_id_4722b6ca_ts_true_render]])
|
|
724
|
+
|
|
725
|
+
/* harmony default export */ const ld_chip = (ld_chip_exports_);
|
|
726
|
+
;// CONCATENATED MODULE: ./src/ld-chip/index.ts
|
|
727
|
+
|
|
728
|
+
function ld_chip_reg(vue, options) {
|
|
729
|
+
vue.component('small-chip', ld_chip);
|
|
730
|
+
}
|
|
731
|
+
/* harmony default export */ const src_ld_chip = (ld_chip_reg);
|
|
732
|
+
|
|
733
|
+
;// CONCATENATED MODULE: ./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use!./src/ld-button/ld-button.vue?vue&type=template&id=c4f3f8da
|
|
734
|
+
|
|
735
|
+
|
|
736
|
+
const ld_buttonvue_type_template_id_c4f3f8da_hoisted_1 = { class: "d-inline-flex" }
|
|
737
|
+
|
|
738
|
+
function ld_buttonvue_type_template_id_c4f3f8da_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
616
739
|
const _component_square_button = (0,external_vue_.resolveComponent)("square-button")
|
|
617
740
|
const _component_v_tooltip = (0,external_vue_.resolveComponent)("v-tooltip")
|
|
618
741
|
const _component_small_button = (0,external_vue_.resolveComponent)("small-button")
|
|
619
742
|
const _directive_active = (0,external_vue_.resolveDirective)("active")
|
|
620
743
|
|
|
621
|
-
return ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div",
|
|
744
|
+
return ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_buttonvue_type_template_id_c4f3f8da_hoisted_1, [
|
|
622
745
|
(_ctx.isTabletView || _ctx.isTabletGlobal)
|
|
623
746
|
? ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_v_tooltip, {
|
|
624
747
|
key: 0,
|
|
@@ -629,6 +752,7 @@ function ld_buttonvue_type_template_id_2f14fde1_render(_ctx, _cache, $props, $se
|
|
|
629
752
|
"data-testid": _ctx.testid,
|
|
630
753
|
variant: _ctx.variant,
|
|
631
754
|
color: _ctx.color,
|
|
755
|
+
icon: _ctx.icon,
|
|
632
756
|
disabled: _ctx.disabled,
|
|
633
757
|
loading: _ctx.loading,
|
|
634
758
|
onClick: _ctx.onClick
|
|
@@ -639,7 +763,7 @@ function ld_buttonvue_type_template_id_2f14fde1_render(_ctx, _cache, $props, $se
|
|
|
639
763
|
(0,external_vue_.renderSlot)(_ctx.$slots, "hidden")
|
|
640
764
|
]),
|
|
641
765
|
_: 2
|
|
642
|
-
}, 1040, ["data-testid", "variant", "color", "disabled", "loading", "onClick"])), [
|
|
766
|
+
}, 1040, ["data-testid", "variant", "color", "icon", "disabled", "loading", "onClick"])), [
|
|
643
767
|
[_directive_active, _ctx.active]
|
|
644
768
|
])
|
|
645
769
|
]),
|
|
@@ -677,6 +801,7 @@ function ld_buttonvue_type_template_id_2f14fde1_render(_ctx, _cache, $props, $se
|
|
|
677
801
|
color: _ctx.color,
|
|
678
802
|
disabled: _ctx.disabled,
|
|
679
803
|
loading: _ctx.loading,
|
|
804
|
+
icon: _ctx.icon,
|
|
680
805
|
variant: _ctx.variant,
|
|
681
806
|
onClick: _ctx.onClick
|
|
682
807
|
}, {
|
|
@@ -686,13 +811,13 @@ function ld_buttonvue_type_template_id_2f14fde1_render(_ctx, _cache, $props, $se
|
|
|
686
811
|
(0,external_vue_.renderSlot)(_ctx.$slots, "hidden")
|
|
687
812
|
]),
|
|
688
813
|
_: 3
|
|
689
|
-
}, 8, ["data-testid", "color", "disabled", "loading", "variant", "onClick"])), [
|
|
814
|
+
}, 8, ["data-testid", "color", "disabled", "loading", "icon", "variant", "onClick"])), [
|
|
690
815
|
[_directive_active, _ctx.active]
|
|
691
816
|
])
|
|
692
817
|
: (0,external_vue_.createCommentVNode)("", true)
|
|
693
818
|
]))
|
|
694
819
|
}
|
|
695
|
-
;// CONCATENATED MODULE: ./src/ld-button/ld-button.vue?vue&type=template&id=
|
|
820
|
+
;// CONCATENATED MODULE: ./src/ld-button/ld-button.vue?vue&type=template&id=c4f3f8da
|
|
696
821
|
|
|
697
822
|
;// CONCATENATED MODULE: ./src/mixins/viewport.mixins.ts
|
|
698
823
|
|
|
@@ -777,7 +902,7 @@ ld_buttonvue_type_script_lang_js_external_decorate([
|
|
|
777
902
|
ld_buttonvue_type_script_lang_js_external_decorate([
|
|
778
903
|
(0,external_vue_property_decorator_.Prop)({ type: Boolean, default: false }),
|
|
779
904
|
ld_buttonvue_type_script_lang_js_external_metadata("design:type", Boolean)
|
|
780
|
-
], ResponsiveButtonComponent.prototype, "
|
|
905
|
+
], ResponsiveButtonComponent.prototype, "icon", void 0);
|
|
781
906
|
ld_buttonvue_type_script_lang_js_external_decorate([
|
|
782
907
|
(0,external_vue_property_decorator_.Prop)({ type: String, default: 'primary' }),
|
|
783
908
|
ld_buttonvue_type_script_lang_js_external_metadata("design:type", String)
|
|
@@ -829,7 +954,7 @@ ResponsiveButtonComponent = ld_buttonvue_type_script_lang_js_external_decorate([
|
|
|
829
954
|
|
|
830
955
|
|
|
831
956
|
;
|
|
832
|
-
const ld_button_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_buttonvue_type_script_lang_js_external, [['render',
|
|
957
|
+
const ld_button_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_buttonvue_type_script_lang_js_external, [['render',ld_buttonvue_type_template_id_c4f3f8da_render]])
|
|
833
958
|
|
|
834
959
|
/* harmony default export */ const ld_button = (ld_button_exports_);
|
|
835
960
|
;// CONCATENATED MODULE: ./src/ld-button/index.ts
|
|
@@ -11563,7 +11688,7 @@ var ld_checkboxvue_type_script_lang_ts_external_metadata = (undefined && undefin
|
|
|
11563
11688
|
|
|
11564
11689
|
/**
|
|
11565
11690
|
* Чекбокс
|
|
11566
|
-
* @displayName
|
|
11691
|
+
* @displayName ld-checkbox
|
|
11567
11692
|
*/
|
|
11568
11693
|
class CheckboxComponent extends (0,external_vue_property_decorator_.mixins)(InputMixin, GridMixin) {
|
|
11569
11694
|
constructor() {
|
|
@@ -16580,7 +16705,6 @@ var external_vue_toastification_default = /*#__PURE__*/__webpack_require__.n(ext
|
|
|
16580
16705
|
const aliases = {
|
|
16581
16706
|
SmallButton: 'VBtn',
|
|
16582
16707
|
SquareButton: 'VBtn',
|
|
16583
|
-
SmallChip: 'VChip',
|
|
16584
16708
|
SmallBadge: 'VChip',
|
|
16585
16709
|
};
|
|
16586
16710
|
const defaults = {
|
|
@@ -16598,13 +16722,6 @@ const defaults = {
|
|
|
16598
16722
|
color: 'grey',
|
|
16599
16723
|
class: 'square-sm-button',
|
|
16600
16724
|
},
|
|
16601
|
-
SmallChip: {
|
|
16602
|
-
variant: 'outlined',
|
|
16603
|
-
color: 'primary',
|
|
16604
|
-
closable: true,
|
|
16605
|
-
closeIcon: 'close',
|
|
16606
|
-
class: 'small-chip',
|
|
16607
|
-
},
|
|
16608
16725
|
SmallBadge: {
|
|
16609
16726
|
class: 'v-chip--badge',
|
|
16610
16727
|
variant: 'outlined',
|
|
@@ -16899,6 +17016,7 @@ const ValidateMixinOptions = mixin;
|
|
|
16899
17016
|
|
|
16900
17017
|
|
|
16901
17018
|
|
|
17019
|
+
|
|
16902
17020
|
|
|
16903
17021
|
|
|
16904
17022
|
const ldmuiPlugin = {
|
|
@@ -16960,6 +17078,7 @@ const ldmuiPlugin = {
|
|
|
16960
17078
|
vue.config.globalProperties.$toasted = toast;
|
|
16961
17079
|
src_ld_icon(vue, options);
|
|
16962
17080
|
src_ld_loader(vue, options);
|
|
17081
|
+
src_ld_chip(vue, options);
|
|
16963
17082
|
src_ld_button(vue, options);
|
|
16964
17083
|
src_ld_splitter(vue, options);
|
|
16965
17084
|
src_ld_toggle_buttons(vue, options);
|
package/dist/scss/_buttons.scss
CHANGED
|
@@ -85,9 +85,9 @@ body {
|
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
-
&.bg-
|
|
88
|
+
&.bg-grey {
|
|
89
89
|
background-color: var(--grey-l-6) !important;
|
|
90
|
-
color: var(--text);
|
|
90
|
+
color: var(--text) !important;
|
|
91
91
|
|
|
92
92
|
&:hover {
|
|
93
93
|
color: var(--grey) !important;
|
|
@@ -204,6 +204,7 @@ body {
|
|
|
204
204
|
&.v-btn--icon {
|
|
205
205
|
border: none;
|
|
206
206
|
border-radius: var(--border-radius);
|
|
207
|
+
background: none !important;
|
|
207
208
|
}
|
|
208
209
|
|
|
209
210
|
.v-icon:not(.custom-icon) {
|
|
@@ -212,58 +213,71 @@ body {
|
|
|
212
213
|
|
|
213
214
|
&.bg-primary {
|
|
214
215
|
color: var(--white) !important;
|
|
215
|
-
|
|
216
|
+
&:not(.v-btn--icon) {
|
|
217
|
+
background-color: var(--primary-l-2) !important;
|
|
216
218
|
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
219
|
+
&:hover {
|
|
220
|
+
background-color: var(--primary-l-1) !important;
|
|
221
|
+
}
|
|
220
222
|
|
|
221
|
-
|
|
222
|
-
|
|
223
|
+
&:active {
|
|
224
|
+
background-color: var(--primary) !important;
|
|
225
|
+
}
|
|
223
226
|
}
|
|
224
227
|
}
|
|
225
228
|
|
|
226
229
|
&.bg-success {
|
|
227
|
-
background-color: var(--success) !important;
|
|
228
230
|
color: var(--white) !important;
|
|
231
|
+
&:not(.v-btn--icon) {
|
|
232
|
+
background-color: var(--success) !important;
|
|
229
233
|
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
234
|
+
&:hover {
|
|
235
|
+
background-color: var(--success-d-1) !important;
|
|
236
|
+
}
|
|
233
237
|
|
|
234
|
-
|
|
235
|
-
|
|
238
|
+
&:active {
|
|
239
|
+
background-color: var(--success-d-2) !important;
|
|
240
|
+
}
|
|
236
241
|
}
|
|
237
242
|
|
|
238
243
|
&[disabled] {
|
|
239
|
-
background-color: var(--grey-l-5) !important;
|
|
240
244
|
color: var(--grey) !important;
|
|
245
|
+
|
|
246
|
+
&:not(.v-btn--icon) {
|
|
247
|
+
background-color: var(--grey-l-5) !important;
|
|
248
|
+
}
|
|
241
249
|
}
|
|
242
250
|
}
|
|
243
251
|
|
|
244
252
|
&.bg-grey {
|
|
245
|
-
|
|
253
|
+
color: var(--grey);
|
|
254
|
+
&:not(.v-btn--icon) {
|
|
255
|
+
background-color: var(--grey-l-6) !important;
|
|
246
256
|
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
257
|
+
&:hover {
|
|
258
|
+
svg {
|
|
259
|
+
color: var(--grey-l-1) !important;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
250
262
|
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
263
|
+
&:active {
|
|
264
|
+
background-color: var(--grey-l-4) !important;
|
|
265
|
+
svg {
|
|
266
|
+
color: var(--text) !important;
|
|
267
|
+
}
|
|
254
268
|
}
|
|
255
269
|
}
|
|
256
270
|
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
svg {
|
|
260
|
-
color: var(--text) !important;
|
|
261
|
-
}
|
|
271
|
+
svg {
|
|
272
|
+
color: var(--grey);
|
|
262
273
|
}
|
|
263
274
|
|
|
264
275
|
&[disabled] {
|
|
265
|
-
background-color: var(--grey-l-5) !important;
|
|
266
276
|
color: var(--grey) !important;
|
|
277
|
+
|
|
278
|
+
&:not(.v-btn--icon) {
|
|
279
|
+
background-color: var(--grey-l-5) !important;
|
|
280
|
+
}
|
|
267
281
|
}
|
|
268
282
|
}
|
|
269
283
|
|
package/dist/scss/_chip.scss
CHANGED