@ldmjs/ui 1.0.16 → 1.0.18
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 +115 -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,113 @@ 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=24b3eb7f&ts=true
|
|
611
|
+
|
|
612
|
+
function ld_chipvue_type_template_id_24b3eb7f_ts_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
613
|
+
const _component_ld_icon = (0,external_vue_.resolveComponent)("ld-icon");
|
|
614
|
+
const _component_v_btn = (0,external_vue_.resolveComponent)("v-btn");
|
|
615
|
+
const _component_v_chip = (0,external_vue_.resolveComponent)("v-chip");
|
|
616
|
+
return ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_v_chip, {
|
|
617
|
+
variant: "outlined",
|
|
618
|
+
color: _ctx.color,
|
|
619
|
+
closable: false,
|
|
620
|
+
class: "small-chip"
|
|
621
|
+
}, {
|
|
622
|
+
append: (0,external_vue_.withCtx)(() => [
|
|
623
|
+
(_ctx.closable)
|
|
624
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_v_btn, {
|
|
625
|
+
key: 0,
|
|
626
|
+
id: "btn-close",
|
|
627
|
+
icon: "",
|
|
628
|
+
width: "18",
|
|
629
|
+
height: "18",
|
|
630
|
+
elevation: "0",
|
|
631
|
+
onClick: _cache[0] || (_cache[0] = ($event) => (_ctx.$emit('click:close')))
|
|
632
|
+
}, {
|
|
633
|
+
default: (0,external_vue_.withCtx)(() => [
|
|
634
|
+
(0,external_vue_.createVNode)(_component_ld_icon, {
|
|
635
|
+
width: "18",
|
|
636
|
+
height: "18",
|
|
637
|
+
icon: "close_sm"
|
|
638
|
+
})
|
|
639
|
+
]),
|
|
640
|
+
_: 1
|
|
641
|
+
}))
|
|
642
|
+
: (0,external_vue_.createCommentVNode)("", true)
|
|
643
|
+
]),
|
|
644
|
+
default: (0,external_vue_.withCtx)(() => [
|
|
645
|
+
(0,external_vue_.renderSlot)(_ctx.$slots, "default"),
|
|
646
|
+
(0,external_vue_.createTextVNode)()
|
|
647
|
+
]),
|
|
648
|
+
_: 3
|
|
649
|
+
}, 8, ["color"]));
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
;// CONCATENATED MODULE: ./src/ld-chip/ld-chip.vue?vue&type=template&id=24b3eb7f&ts=true
|
|
653
|
+
|
|
654
|
+
;// CONCATENATED MODULE: ./node_modules/ts-loader/index.js??clonedRuleSet-1.use!./src/ld-chip/ld-chip.ts?vue&type=script&lang=ts&external
|
|
655
|
+
var ld_chipvue_type_script_lang_ts_external_decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
656
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
657
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
658
|
+
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;
|
|
659
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
660
|
+
};
|
|
661
|
+
var ld_chipvue_type_script_lang_ts_external_metadata = (undefined && undefined.__metadata) || function (k, v) {
|
|
662
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
663
|
+
};
|
|
664
|
+
|
|
665
|
+
|
|
666
|
+
/**
|
|
667
|
+
* Chip
|
|
668
|
+
* @displayName small-chip
|
|
669
|
+
*/
|
|
670
|
+
let ChipComponent = class ChipComponent extends external_vue_class_component_.Vue {
|
|
671
|
+
};
|
|
672
|
+
ld_chipvue_type_script_lang_ts_external_decorate([
|
|
673
|
+
(0,external_vue_property_decorator_.Prop)({ type: Boolean, default: true }),
|
|
674
|
+
ld_chipvue_type_script_lang_ts_external_metadata("design:type", Boolean)
|
|
675
|
+
], ChipComponent.prototype, "closable", void 0);
|
|
676
|
+
ld_chipvue_type_script_lang_ts_external_decorate([
|
|
677
|
+
(0,external_vue_property_decorator_.Prop)({ type: String, default: 'primary' }),
|
|
678
|
+
ld_chipvue_type_script_lang_ts_external_metadata("design:type", String)
|
|
679
|
+
], ChipComponent.prototype, "color", void 0);
|
|
680
|
+
ChipComponent = ld_chipvue_type_script_lang_ts_external_decorate([
|
|
681
|
+
(0,external_vue_class_component_.Options)({
|
|
682
|
+
emits: ['click:close']
|
|
683
|
+
})
|
|
684
|
+
], ChipComponent);
|
|
685
|
+
/* harmony default export */ const ld_chipvue_type_script_lang_ts_external = (ChipComponent);
|
|
686
|
+
|
|
687
|
+
;// CONCATENATED MODULE: ./src/ld-chip/ld-chip.ts?vue&type=script&lang=ts&external
|
|
688
|
+
|
|
689
|
+
;// CONCATENATED MODULE: ./src/ld-chip/ld-chip.vue
|
|
611
690
|
|
|
612
691
|
|
|
613
|
-
const ld_buttonvue_type_template_id_2f14fde1_hoisted_1 = { class: "d-inline-flex" }
|
|
614
692
|
|
|
615
|
-
|
|
693
|
+
|
|
694
|
+
;
|
|
695
|
+
const ld_chip_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_chipvue_type_script_lang_ts_external, [['render',ld_chipvue_type_template_id_24b3eb7f_ts_true_render]])
|
|
696
|
+
|
|
697
|
+
/* harmony default export */ const ld_chip = (ld_chip_exports_);
|
|
698
|
+
;// CONCATENATED MODULE: ./src/ld-chip/index.ts
|
|
699
|
+
|
|
700
|
+
function ld_chip_reg(vue, options) {
|
|
701
|
+
vue.component('small-chip', ld_chip);
|
|
702
|
+
}
|
|
703
|
+
/* harmony default export */ const src_ld_chip = (ld_chip_reg);
|
|
704
|
+
|
|
705
|
+
;// 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
|
|
706
|
+
|
|
707
|
+
|
|
708
|
+
const ld_buttonvue_type_template_id_c4f3f8da_hoisted_1 = { class: "d-inline-flex" }
|
|
709
|
+
|
|
710
|
+
function ld_buttonvue_type_template_id_c4f3f8da_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
616
711
|
const _component_square_button = (0,external_vue_.resolveComponent)("square-button")
|
|
617
712
|
const _component_v_tooltip = (0,external_vue_.resolveComponent)("v-tooltip")
|
|
618
713
|
const _component_small_button = (0,external_vue_.resolveComponent)("small-button")
|
|
619
714
|
const _directive_active = (0,external_vue_.resolveDirective)("active")
|
|
620
715
|
|
|
621
|
-
return ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div",
|
|
716
|
+
return ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_buttonvue_type_template_id_c4f3f8da_hoisted_1, [
|
|
622
717
|
(_ctx.isTabletView || _ctx.isTabletGlobal)
|
|
623
718
|
? ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_v_tooltip, {
|
|
624
719
|
key: 0,
|
|
@@ -629,6 +724,7 @@ function ld_buttonvue_type_template_id_2f14fde1_render(_ctx, _cache, $props, $se
|
|
|
629
724
|
"data-testid": _ctx.testid,
|
|
630
725
|
variant: _ctx.variant,
|
|
631
726
|
color: _ctx.color,
|
|
727
|
+
icon: _ctx.icon,
|
|
632
728
|
disabled: _ctx.disabled,
|
|
633
729
|
loading: _ctx.loading,
|
|
634
730
|
onClick: _ctx.onClick
|
|
@@ -639,7 +735,7 @@ function ld_buttonvue_type_template_id_2f14fde1_render(_ctx, _cache, $props, $se
|
|
|
639
735
|
(0,external_vue_.renderSlot)(_ctx.$slots, "hidden")
|
|
640
736
|
]),
|
|
641
737
|
_: 2
|
|
642
|
-
}, 1040, ["data-testid", "variant", "color", "disabled", "loading", "onClick"])), [
|
|
738
|
+
}, 1040, ["data-testid", "variant", "color", "icon", "disabled", "loading", "onClick"])), [
|
|
643
739
|
[_directive_active, _ctx.active]
|
|
644
740
|
])
|
|
645
741
|
]),
|
|
@@ -677,6 +773,7 @@ function ld_buttonvue_type_template_id_2f14fde1_render(_ctx, _cache, $props, $se
|
|
|
677
773
|
color: _ctx.color,
|
|
678
774
|
disabled: _ctx.disabled,
|
|
679
775
|
loading: _ctx.loading,
|
|
776
|
+
icon: _ctx.icon,
|
|
680
777
|
variant: _ctx.variant,
|
|
681
778
|
onClick: _ctx.onClick
|
|
682
779
|
}, {
|
|
@@ -686,13 +783,13 @@ function ld_buttonvue_type_template_id_2f14fde1_render(_ctx, _cache, $props, $se
|
|
|
686
783
|
(0,external_vue_.renderSlot)(_ctx.$slots, "hidden")
|
|
687
784
|
]),
|
|
688
785
|
_: 3
|
|
689
|
-
}, 8, ["data-testid", "color", "disabled", "loading", "variant", "onClick"])), [
|
|
786
|
+
}, 8, ["data-testid", "color", "disabled", "loading", "icon", "variant", "onClick"])), [
|
|
690
787
|
[_directive_active, _ctx.active]
|
|
691
788
|
])
|
|
692
789
|
: (0,external_vue_.createCommentVNode)("", true)
|
|
693
790
|
]))
|
|
694
791
|
}
|
|
695
|
-
;// CONCATENATED MODULE: ./src/ld-button/ld-button.vue?vue&type=template&id=
|
|
792
|
+
;// CONCATENATED MODULE: ./src/ld-button/ld-button.vue?vue&type=template&id=c4f3f8da
|
|
696
793
|
|
|
697
794
|
;// CONCATENATED MODULE: ./src/mixins/viewport.mixins.ts
|
|
698
795
|
|
|
@@ -777,7 +874,7 @@ ld_buttonvue_type_script_lang_js_external_decorate([
|
|
|
777
874
|
ld_buttonvue_type_script_lang_js_external_decorate([
|
|
778
875
|
(0,external_vue_property_decorator_.Prop)({ type: Boolean, default: false }),
|
|
779
876
|
ld_buttonvue_type_script_lang_js_external_metadata("design:type", Boolean)
|
|
780
|
-
], ResponsiveButtonComponent.prototype, "
|
|
877
|
+
], ResponsiveButtonComponent.prototype, "icon", void 0);
|
|
781
878
|
ld_buttonvue_type_script_lang_js_external_decorate([
|
|
782
879
|
(0,external_vue_property_decorator_.Prop)({ type: String, default: 'primary' }),
|
|
783
880
|
ld_buttonvue_type_script_lang_js_external_metadata("design:type", String)
|
|
@@ -829,7 +926,7 @@ ResponsiveButtonComponent = ld_buttonvue_type_script_lang_js_external_decorate([
|
|
|
829
926
|
|
|
830
927
|
|
|
831
928
|
;
|
|
832
|
-
const ld_button_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_buttonvue_type_script_lang_js_external, [['render',
|
|
929
|
+
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
930
|
|
|
834
931
|
/* harmony default export */ const ld_button = (ld_button_exports_);
|
|
835
932
|
;// CONCATENATED MODULE: ./src/ld-button/index.ts
|
|
@@ -11563,7 +11660,7 @@ var ld_checkboxvue_type_script_lang_ts_external_metadata = (undefined && undefin
|
|
|
11563
11660
|
|
|
11564
11661
|
/**
|
|
11565
11662
|
* Чекбокс
|
|
11566
|
-
* @displayName
|
|
11663
|
+
* @displayName ld-checkbox
|
|
11567
11664
|
*/
|
|
11568
11665
|
class CheckboxComponent extends (0,external_vue_property_decorator_.mixins)(InputMixin, GridMixin) {
|
|
11569
11666
|
constructor() {
|
|
@@ -16226,6 +16323,9 @@ let DialogComponent = class DialogComponent extends (0,external_vue_class_compon
|
|
|
16226
16323
|
if (resultSave) {
|
|
16227
16324
|
this.modalResult = resultSave;
|
|
16228
16325
|
}
|
|
16326
|
+
else {
|
|
16327
|
+
return;
|
|
16328
|
+
}
|
|
16229
16329
|
}
|
|
16230
16330
|
catch (e) {
|
|
16231
16331
|
/* eslint-disable no-console */
|
|
@@ -16237,6 +16337,9 @@ let DialogComponent = class DialogComponent extends (0,external_vue_class_compon
|
|
|
16237
16337
|
}
|
|
16238
16338
|
else {
|
|
16239
16339
|
modal.okLoading = false;
|
|
16340
|
+
if (!resultSave) {
|
|
16341
|
+
return;
|
|
16342
|
+
}
|
|
16240
16343
|
this.modalResult = resultSave;
|
|
16241
16344
|
}
|
|
16242
16345
|
}
|
|
@@ -16574,7 +16677,6 @@ var external_vue_toastification_default = /*#__PURE__*/__webpack_require__.n(ext
|
|
|
16574
16677
|
const aliases = {
|
|
16575
16678
|
SmallButton: 'VBtn',
|
|
16576
16679
|
SquareButton: 'VBtn',
|
|
16577
|
-
SmallChip: 'VChip',
|
|
16578
16680
|
SmallBadge: 'VChip',
|
|
16579
16681
|
};
|
|
16580
16682
|
const defaults = {
|
|
@@ -16592,13 +16694,6 @@ const defaults = {
|
|
|
16592
16694
|
color: 'grey',
|
|
16593
16695
|
class: 'square-sm-button',
|
|
16594
16696
|
},
|
|
16595
|
-
SmallChip: {
|
|
16596
|
-
variant: 'outlined',
|
|
16597
|
-
color: 'primary',
|
|
16598
|
-
closable: true,
|
|
16599
|
-
closeIcon: 'close',
|
|
16600
|
-
class: 'small-chip',
|
|
16601
|
-
},
|
|
16602
16697
|
SmallBadge: {
|
|
16603
16698
|
class: 'v-chip--badge',
|
|
16604
16699
|
variant: 'outlined',
|
|
@@ -16893,6 +16988,7 @@ const ValidateMixinOptions = mixin;
|
|
|
16893
16988
|
|
|
16894
16989
|
|
|
16895
16990
|
|
|
16991
|
+
|
|
16896
16992
|
|
|
16897
16993
|
|
|
16898
16994
|
const ldmuiPlugin = {
|
|
@@ -16954,6 +17050,7 @@ const ldmuiPlugin = {
|
|
|
16954
17050
|
vue.config.globalProperties.$toasted = toast;
|
|
16955
17051
|
src_ld_icon(vue, options);
|
|
16956
17052
|
src_ld_loader(vue, options);
|
|
17053
|
+
src_ld_chip(vue, options);
|
|
16957
17054
|
src_ld_button(vue, options);
|
|
16958
17055
|
src_ld_splitter(vue, options);
|
|
16959
17056
|
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