@ldmjs/ui 1.0.28 → 1.0.30
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/css/index.css +1 -1
- package/dist/index.js +87 -36
- package/package.json +4 -6
package/dist/css/index.css
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
.ld-edit-text[data-v-3a89856c]{min-width:100%}.input-class[data-v-3a89856c]{height:var(--input-height);font-size:var(--font-size);max-width:100%;border-radius:var(--border-radius);border:1px solid var(--grey-l-5);padding:0 6px}.input-class[data-v-3a89856c]:not(.disabled){background-color:var(--white)}.input-class[data-v-3a89856c]:focus{border:1px solid var(--grey-l-4);outline:none}.input-class__suffix[data-v-3a89856c]{position:absolute;top:3px;right:6px;color:var(--label)}
|
|
8
8
|
|
|
9
|
-
.ld-datepicker[data-v-
|
|
9
|
+
.ld-datepicker[data-v-29494c22]{display:flex;min-width:100%;max-width:100%;width:100%;font-size:var(--font-size)}.ld-datepicker.column[data-v-29494c22]{flex-flow:column nowrap}.ld-datepicker-validate[data-v-29494c22]{overflow:hidden;height:20px}.custom-time-picker[data-v-29494c22]{max-width:var(--date-time-width);border-radius:var(--border-radius);background-color:var(--white);font-size:inherit !important}.custom-time-picker-validate[data-v-29494c22]{overflow:hidden;height:20px}.date-input[data-v-29494c22]{padding-left:5px;width:100%;font-size:var(--font-size)}.time-input[data-v-29494c22]{width:100%;padding-left:5px;font-size:var(--font-size)}.time-input-btn[data-v-29494c22]{padding-right:5px}.dt-col[data-v-29494c22]{max-width:110px}.time-selector[data-v-29494c22]{display:flex;flex-wrap:wrap;max-width:186px;padding:3px}.time-selector>span[data-v-29494c22]{display:inline-block;width:100%;text-align:center;font-family:'Roboto';font-size:var(--font-size-2);font-weight:700}.time-selector .v-btn[data-v-29494c22]{width:30px !important;height:30px !important;max-width:30px !important;max-height:30px !important;min-width:30px !important;min-height:30px !important;margin:3px}[data-v-29494c22] .vc-popover-content-wrapper{position:fixed !important}[data-v-29494c22] .v-input--is-disabled input{color:var(--text) !important}[data-v-29494c22] .vc-popover-content{border-color:var(--grey-l-5)}[data-v-29494c22] .vc-title span{color:var(--text);font-size:var(--font-size-2);font-weight:600;font-family:'Roboto'}[data-v-29494c22] .vc-arrow{color:var(--grey)}[data-v-29494c22] .vc-weekday{color:var(--grey-l-2);font-size:var(--font-size);font-weight:600;font-family:'Roboto'}[data-v-29494c22] .vc-day-content{color:var(--text);font-size:var(--font-size);font-weight:400;font-family:'Roboto'}[data-v-29494c22] .vc-day-content.vc-disabled{color:var(--grey-l-2) !important}[data-v-29494c22] .vc-day-content.vc-highlight-content-solid{color:var(--white) !important;font-weight:600 !important}
|
|
10
10
|
|
|
11
11
|
.ld-tabs[data-v-bd490ea2]{margin-left:0;display:flex;height:100%;width:100%;overflow-y:auto}.ld-tabs .header-text[data-v-bd490ea2]{font-size:var(--font-size-2)}.ld-tabs-mobile[data-v-bd490ea2]{height:100%}.ld-tabs .vertical-body[data-v-bd490ea2]{--w: 44px;display:flex;flex-flow:column nowrap;width:calc(100% - var(--w)) !important;height:100%}.v-window[data-v-bd490ea2]{background-color:var(--white);box-shadow:1px 0 var(--grey-l-5),-1px 0 0 var(--grey-l-5);overflow-y:auto;height:100%;width:100%}.vertical-window.v-window[data-v-bd490ea2]{padding:10px 12px;border-bottom:1px solid var(--grey-l-5);border-right:1px solid var(--grey-l-5);border-top:1px solid var(--grey-l-5)}.vertical-window.v-window--no-padding[data-v-bd490ea2]{padding:0 !important}[data-v-bd490ea2] .ld-tabs .v-tabs--vertical{background:var(--grey-l-6)}[data-v-bd490ea2] .ld-tabs .v-tabs--vertical .v-tab{justify-content:flex-start;border:1px solid var(--grey-l-5);border-bottom:none;border-radius:0 !important;text-transform:none !important;width:100%;min-width:auto !important}[data-v-bd490ea2] .ld-tabs .v-tabs--vertical .v-tab--selected{background-color:var(--white);border-right-color:transparent}[data-v-bd490ea2] .ld-tabs .v-tabs--vertical .v-tab:last-child{border-bottom:1px solid var(--grey-l-5) !important}[data-v-bd490ea2] .ld-tabs .v-tabs--vertical .v-slide-group__content{flex-flow:column nowrap;height:100% !important;width:100% !important}[data-v-bd490ea2] .ld-tabs .v-tabs--vertical .v-slide-group__content .v-btn__content{text-overflow:ellipsis;display:inline-flex;justify-content:flex-start;gap:4px;white-space:nowrap;overflow:hidden}[data-v-bd490ea2] .ld-tabs .v-tabs--horizontal .v-tab--selected{border-bottom:1px solid var(--primary)}[data-v-bd490ea2] .ld-tabs .v-tabs .v-tab--selected .v-btn__content{font-weight:bold;color:var(--primary) !important}[data-v-bd490ea2] .ld-tabs .v-tab{height:var(--ld-tab-height) !important;display:flex !important;text-transform:uppercase !important;padding:0 12px !important;font-size:var(--font-size);color:var(--text) !important;letter-spacing:0 !important}[data-v-bd490ea2] .v-window.mobile .tg-field .v-row .v-col{flex:1 0 0 !important}[data-v-bd490ea2] .v-window.mobile .tg-field .text-viewer-wrapper .v-col{flex:1 0 0 !important}[data-v-bd490ea2] .v-slide-group--vertical{border-color:var(--grey-l-5);border:1px}[data-v-bd490ea2] .v-slide-group--vertical .v-tab__slider{width:0px}[data-v-bd490ea2] .v-slide-group__prev{display:none}[data-v-bd490ea2] .v-slide-group__next{display:none}[data-v-bd490ea2] .v-tabs-bar{flex:none;height:fit-content;height:-moz-max-content;max-height:fit-content;max-height:-moz-max-content;z-index:1}[data-v-bd490ea2] .v-window-item{height:100%}[data-v-bd490ea2] .ld-tabs-mobile.hide-tabs .v-tab{display:none !important}[data-v-bd490ea2] .ld-tabs-mobile.hide-body .v-slide-group{width:100% !important}[data-v-bd490ea2] .ld-tabs-mobile.hide-body .v-window{display:none !important}[data-v-bd490ea2] .v-tabs-mobile .v-slide-group__content .v-btn__content{display:block !important}
|
|
12
12
|
|
package/dist/index.js
CHANGED
|
@@ -638,9 +638,9 @@ function ld_loader_reg(vue, options) {
|
|
|
638
638
|
}
|
|
639
639
|
/* harmony default export */ const src_ld_loader = (ld_loader_reg);
|
|
640
640
|
|
|
641
|
-
;// 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=
|
|
641
|
+
;// 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=153bb3e8&ts=true
|
|
642
642
|
|
|
643
|
-
const
|
|
643
|
+
const ld_chipvue_type_template_id_153bb3e8_ts_true_hoisted_1 = /*#__PURE__*/ (0,external_vue_.createElementVNode)("svg", {
|
|
644
644
|
width: "18",
|
|
645
645
|
height: "18",
|
|
646
646
|
viewBox: "0 0 18 18",
|
|
@@ -673,7 +673,7 @@ const ld_chipvue_type_template_id_4722b6ca_ts_true_hoisted_1 = /*#__PURE__*/ (0,
|
|
|
673
673
|
transform: "matrix(-0.70710678,0.70710678,0.70710678,0.70710678,0,0)"
|
|
674
674
|
})
|
|
675
675
|
], -1);
|
|
676
|
-
function
|
|
676
|
+
function ld_chipvue_type_template_id_153bb3e8_ts_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
677
677
|
const _component_v_btn = (0,external_vue_.resolveComponent)("v-btn");
|
|
678
678
|
const _component_v_chip = (0,external_vue_.resolveComponent)("v-chip");
|
|
679
679
|
return ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_v_chip, {
|
|
@@ -691,10 +691,10 @@ function ld_chipvue_type_template_id_4722b6ca_ts_true_render(_ctx, _cache, $prop
|
|
|
691
691
|
icon: "",
|
|
692
692
|
width: "18",
|
|
693
693
|
height: "18",
|
|
694
|
-
onClick: _cache[0] || (_cache[0] = ($event) => (_ctx.$emit('click:close')))
|
|
694
|
+
onClick: _cache[0] || (_cache[0] = (0,external_vue_.withModifiers)(($event) => (_ctx.$emit('click:close')), ["stop"]))
|
|
695
695
|
}, {
|
|
696
696
|
default: (0,external_vue_.withCtx)(() => [
|
|
697
|
-
|
|
697
|
+
ld_chipvue_type_template_id_153bb3e8_ts_true_hoisted_1
|
|
698
698
|
]),
|
|
699
699
|
_: 1
|
|
700
700
|
}))
|
|
@@ -708,7 +708,7 @@ function ld_chipvue_type_template_id_4722b6ca_ts_true_render(_ctx, _cache, $prop
|
|
|
708
708
|
}, 8, ["color"]));
|
|
709
709
|
}
|
|
710
710
|
|
|
711
|
-
;// CONCATENATED MODULE: ./src/ld-chip/ld-chip.vue?vue&type=template&id=
|
|
711
|
+
;// CONCATENATED MODULE: ./src/ld-chip/ld-chip.vue?vue&type=template&id=153bb3e8&ts=true
|
|
712
712
|
|
|
713
713
|
;// CONCATENATED MODULE: ./node_modules/ts-loader/index.js??clonedRuleSet-1.use!./src/ld-chip/ld-chip.ts?vue&type=script&lang=ts&external
|
|
714
714
|
var ld_chipvue_type_script_lang_ts_external_decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
@@ -751,7 +751,7 @@ ChipComponent = ld_chipvue_type_script_lang_ts_external_decorate([
|
|
|
751
751
|
|
|
752
752
|
|
|
753
753
|
;
|
|
754
|
-
const ld_chip_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_chipvue_type_script_lang_ts_external, [['render',
|
|
754
|
+
const ld_chip_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_chipvue_type_script_lang_ts_external, [['render',ld_chipvue_type_template_id_153bb3e8_ts_true_render]])
|
|
755
755
|
|
|
756
756
|
/* harmony default export */ const ld_chip = (ld_chip_exports_);
|
|
757
757
|
;// CONCATENATED MODULE: ./src/ld-chip/index.ts
|
|
@@ -3057,15 +3057,15 @@ function ld_edit_text_reg(vue, options) {
|
|
|
3057
3057
|
}
|
|
3058
3058
|
/* harmony default export */ const src_ld_edit_text = (ld_edit_text_reg);
|
|
3059
3059
|
|
|
3060
|
-
;// 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-datepicker/ld-datepicker.vue?vue&type=template&id=
|
|
3060
|
+
;// 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-datepicker/ld-datepicker.vue?vue&type=template&id=29494c22&scoped=true
|
|
3061
3061
|
|
|
3062
3062
|
|
|
3063
|
-
const
|
|
3064
|
-
const
|
|
3065
|
-
const
|
|
3066
|
-
const
|
|
3063
|
+
const ld_datepickervue_type_template_id_29494c22_scoped_true_withScopeId = n => (_pushScopeId("data-v-29494c22"),n=n(),_popScopeId(),n)
|
|
3064
|
+
const ld_datepickervue_type_template_id_29494c22_scoped_true_hoisted_1 = { class: "time-selector" }
|
|
3065
|
+
const ld_datepickervue_type_template_id_29494c22_scoped_true_hoisted_2 = { key: 0 }
|
|
3066
|
+
const ld_datepickervue_type_template_id_29494c22_scoped_true_hoisted_3 = { key: 1 }
|
|
3067
3067
|
|
|
3068
|
-
function
|
|
3068
|
+
function ld_datepickervue_type_template_id_29494c22_scoped_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3069
3069
|
const _component_ld_label = (0,external_vue_.resolveComponent)("ld-label")
|
|
3070
3070
|
const _component_ld_icon = (0,external_vue_.resolveComponent)("ld-icon")
|
|
3071
3071
|
const _component_square_button = (0,external_vue_.resolveComponent)("square-button")
|
|
@@ -3133,7 +3133,7 @@ function ld_datepickervue_type_template_id_98da67e2_scoped_true_render(_ctx, _ca
|
|
|
3133
3133
|
style: (0,external_vue_.normalizeStyle)({
|
|
3134
3134
|
position: 'absolute',
|
|
3135
3135
|
top: '0',
|
|
3136
|
-
right: _ctx.showDatePicker ? 'var(--input-height)' : '0'
|
|
3136
|
+
right: _ctx.showDatePicker ? 'calc(var(--input-height) - 4px)' : '0'
|
|
3137
3137
|
}),
|
|
3138
3138
|
onClick: (0,external_vue_.withModifiers)(_ctx.clear, ["stop"])
|
|
3139
3139
|
}, {
|
|
@@ -3237,7 +3237,7 @@ function ld_datepickervue_type_template_id_98da67e2_scoped_true_render(_ctx, _ca
|
|
|
3237
3237
|
? ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_square_button, {
|
|
3238
3238
|
key: 0,
|
|
3239
3239
|
icon: "",
|
|
3240
|
-
style: {"position":"absolute","top":"0","right":"var(--input-height)"},
|
|
3240
|
+
style: {"position":"absolute","top":"0","right":"calc(var(--input-height) - 4px)"},
|
|
3241
3241
|
disabled: _ctx.isDateEmpty,
|
|
3242
3242
|
onClick: (0,external_vue_.withModifiers)(_ctx.clearTimeValue, ["stop"])
|
|
3243
3243
|
}, {
|
|
@@ -3278,13 +3278,13 @@ function ld_datepickervue_type_template_id_98da67e2_scoped_true_render(_ctx, _ca
|
|
|
3278
3278
|
style: {"border":"1px solid var(--grey-l-5)"}
|
|
3279
3279
|
}, {
|
|
3280
3280
|
default: (0,external_vue_.withCtx)(() => [
|
|
3281
|
-
(0,external_vue_.createElementVNode)("div",
|
|
3281
|
+
(0,external_vue_.createElementVNode)("div", ld_datepickervue_type_template_id_29494c22_scoped_true_hoisted_1, [
|
|
3282
3282
|
(_ctx.isHours)
|
|
3283
|
-
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("span",
|
|
3283
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("span", ld_datepickervue_type_template_id_29494c22_scoped_true_hoisted_2, "Часы"))
|
|
3284
3284
|
: (0,external_vue_.createCommentVNode)("", true),
|
|
3285
3285
|
(0,external_vue_.createTextVNode)(),
|
|
3286
3286
|
(_ctx.isMinutes)
|
|
3287
|
-
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("span",
|
|
3287
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("span", ld_datepickervue_type_template_id_29494c22_scoped_true_hoisted_3, "Минуты"))
|
|
3288
3288
|
: (0,external_vue_.createCommentVNode)("", true),
|
|
3289
3289
|
(0,external_vue_.createTextVNode)(),
|
|
3290
3290
|
(0,external_vue_.createElementVNode)("div", null, [
|
|
@@ -3384,7 +3384,7 @@ function ld_datepickervue_type_template_id_98da67e2_scoped_true_render(_ctx, _ca
|
|
|
3384
3384
|
_: 1
|
|
3385
3385
|
}))
|
|
3386
3386
|
}
|
|
3387
|
-
;// CONCATENATED MODULE: ./src/ld-datepicker/ld-datepicker.vue?vue&type=template&id=
|
|
3387
|
+
;// CONCATENATED MODULE: ./src/ld-datepicker/ld-datepicker.vue?vue&type=template&id=29494c22&scoped=true
|
|
3388
3388
|
|
|
3389
3389
|
;// CONCATENATED MODULE: ./node_modules/imask/esm/core/utils.js
|
|
3390
3390
|
/** Checks if value is string */
|
|
@@ -7339,7 +7339,7 @@ var ld_datepickervue_type_script_lang_js_external_decorate = (undefined && undef
|
|
|
7339
7339
|
var ld_datepickervue_type_script_lang_js_external_metadata = (undefined && undefined.__metadata) || function (k, v) {
|
|
7340
7340
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
7341
7341
|
};
|
|
7342
|
-
var ld_datepickervue_type_script_lang_js_external_a, ld_datepickervue_type_script_lang_js_external_b, ld_datepickervue_type_script_lang_js_external_c, _d, _e, _f, _g, _h, _j;
|
|
7342
|
+
var ld_datepickervue_type_script_lang_js_external_a, ld_datepickervue_type_script_lang_js_external_b, ld_datepickervue_type_script_lang_js_external_c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
7343
7343
|
|
|
7344
7344
|
|
|
7345
7345
|
|
|
@@ -7373,6 +7373,9 @@ let DatepickerComponent = class DatepickerComponent extends (0,external_vue_clas
|
|
|
7373
7373
|
this.errorsHandler = [];
|
|
7374
7374
|
this.isHours = true;
|
|
7375
7375
|
this.isMinutes = false;
|
|
7376
|
+
this.currentMinDate = null;
|
|
7377
|
+
this.currentMaxDate = null;
|
|
7378
|
+
this.dateMaskPromise = null;
|
|
7376
7379
|
this.datepickerScrollHandler = null;
|
|
7377
7380
|
}
|
|
7378
7381
|
emitUpdateModelValue(value) {
|
|
@@ -7429,9 +7432,41 @@ let DatepickerComponent = class DatepickerComponent extends (0,external_vue_clas
|
|
|
7429
7432
|
}
|
|
7430
7433
|
}
|
|
7431
7434
|
onMinDateChanged(newVal) {
|
|
7435
|
+
if (!newVal) {
|
|
7436
|
+
return;
|
|
7437
|
+
}
|
|
7438
|
+
if (!this.date && !this.currentMinDate) {
|
|
7439
|
+
this.currentMinDate = new Date(newVal);
|
|
7440
|
+
}
|
|
7441
|
+
if (this.date && datetime.compare(this.date, newVal) < 0) {
|
|
7442
|
+
const d = new Date(this.date);
|
|
7443
|
+
d.setDate(d.getDate() - 1);
|
|
7444
|
+
this.currentMinDate = new Date(d);
|
|
7445
|
+
}
|
|
7446
|
+
}
|
|
7447
|
+
async onCurrentMinDateChanged(newVal) {
|
|
7448
|
+
if (!this.dateMask) {
|
|
7449
|
+
await this.dateMaskPromise;
|
|
7450
|
+
}
|
|
7432
7451
|
this.dateMask.updateOptions({ min: newVal });
|
|
7433
7452
|
}
|
|
7434
7453
|
onMaxDateChanged(newVal) {
|
|
7454
|
+
if (!newVal) {
|
|
7455
|
+
return;
|
|
7456
|
+
}
|
|
7457
|
+
if (!this.date && !this.currentMaxDate) {
|
|
7458
|
+
this.currentMaxDate = new Date(newVal);
|
|
7459
|
+
}
|
|
7460
|
+
if (this.date && datetime.compare(this.date, newVal) > 0) {
|
|
7461
|
+
const d = new Date(this.date);
|
|
7462
|
+
d.setDate(d.getDate() + 1);
|
|
7463
|
+
this.currentMaxDate = new Date(d);
|
|
7464
|
+
}
|
|
7465
|
+
}
|
|
7466
|
+
async onCurrentMaxDateChanged(newVal) {
|
|
7467
|
+
if (!this.dateMask) {
|
|
7468
|
+
await this.dateMaskPromise;
|
|
7469
|
+
}
|
|
7435
7470
|
this.dateMask.updateOptions({ max: newVal });
|
|
7436
7471
|
}
|
|
7437
7472
|
onTimeMenuChanged() {
|
|
@@ -7441,6 +7476,9 @@ let DatepickerComponent = class DatepickerComponent extends (0,external_vue_clas
|
|
|
7441
7476
|
}
|
|
7442
7477
|
}
|
|
7443
7478
|
created() {
|
|
7479
|
+
this.dateMaskPromise = new Promise(resolve => {
|
|
7480
|
+
this.dateMaskPromiseResolve = resolve;
|
|
7481
|
+
});
|
|
7444
7482
|
if (this.form) {
|
|
7445
7483
|
this.form.register(this, null);
|
|
7446
7484
|
}
|
|
@@ -7490,16 +7528,17 @@ let DatepickerComponent = class DatepickerComponent extends (0,external_vue_clas
|
|
|
7490
7528
|
min: null,
|
|
7491
7529
|
max: null,
|
|
7492
7530
|
};
|
|
7493
|
-
if (this.
|
|
7494
|
-
options.min = this.
|
|
7531
|
+
if (this.currentMinDate) {
|
|
7532
|
+
options.min = this.currentMinDate;
|
|
7495
7533
|
}
|
|
7496
|
-
if (this.
|
|
7497
|
-
options.max = this.
|
|
7534
|
+
if (this.currentMaxDate) {
|
|
7535
|
+
options.max = this.currentMaxDate;
|
|
7498
7536
|
}
|
|
7499
7537
|
this.dateMask = IMask(inputEl, options);
|
|
7500
7538
|
this.dateMask._unbindEvents();
|
|
7501
7539
|
this.dateMask._bindEvents();
|
|
7502
7540
|
this.dateMask.on('complete', () => this.onMaskedValueChanged(this.dateMask.value));
|
|
7541
|
+
this.dateMaskPromiseResolve();
|
|
7503
7542
|
this.setTimeMask();
|
|
7504
7543
|
}
|
|
7505
7544
|
else {
|
|
@@ -7844,18 +7883,18 @@ let DatepickerComponent = class DatepickerComponent extends (0,external_vue_clas
|
|
|
7844
7883
|
return this.date.toLocaleDateString(this.locale);
|
|
7845
7884
|
}
|
|
7846
7885
|
get minDateString() {
|
|
7847
|
-
if (!this.
|
|
7886
|
+
if (!this.currentMinDate) {
|
|
7848
7887
|
return null;
|
|
7849
7888
|
}
|
|
7850
|
-
const userTimezoneOffset = this.
|
|
7851
|
-
return new Date(this.
|
|
7889
|
+
const userTimezoneOffset = this.currentMinDate.getTimezoneOffset() * 60000;
|
|
7890
|
+
return new Date(this.currentMinDate.getTime() - userTimezoneOffset).toISOString();
|
|
7852
7891
|
}
|
|
7853
7892
|
get maxDateString() {
|
|
7854
|
-
if (!this.
|
|
7893
|
+
if (!this.currentMaxDate) {
|
|
7855
7894
|
return null;
|
|
7856
7895
|
}
|
|
7857
|
-
const userTimezoneOffset = this.
|
|
7858
|
-
return new Date(this.
|
|
7896
|
+
const userTimezoneOffset = this.currentMaxDate.getTimezoneOffset() * 60000;
|
|
7897
|
+
return new Date(this.currentMaxDate.getTime() + userTimezoneOffset).toISOString();
|
|
7859
7898
|
}
|
|
7860
7899
|
get locale() {
|
|
7861
7900
|
return this.$ldmui.options.language;
|
|
@@ -7952,17 +7991,29 @@ ld_datepickervue_type_script_lang_js_external_decorate([
|
|
|
7952
7991
|
ld_datepickervue_type_script_lang_js_external_metadata("design:returntype", void 0)
|
|
7953
7992
|
], DatepickerComponent.prototype, "onDateonlyChanged", null);
|
|
7954
7993
|
ld_datepickervue_type_script_lang_js_external_decorate([
|
|
7955
|
-
(0,external_vue_property_decorator_.Watch)('minDate'),
|
|
7994
|
+
(0,external_vue_property_decorator_.Watch)('minDate', { immediate: true }),
|
|
7956
7995
|
ld_datepickervue_type_script_lang_js_external_metadata("design:type", Function),
|
|
7957
7996
|
ld_datepickervue_type_script_lang_js_external_metadata("design:paramtypes", [typeof (_h = typeof Date !== "undefined" && Date) === "function" ? _h : Object]),
|
|
7958
7997
|
ld_datepickervue_type_script_lang_js_external_metadata("design:returntype", void 0)
|
|
7959
7998
|
], DatepickerComponent.prototype, "onMinDateChanged", null);
|
|
7960
7999
|
ld_datepickervue_type_script_lang_js_external_decorate([
|
|
7961
|
-
(0,external_vue_property_decorator_.Watch)('
|
|
8000
|
+
(0,external_vue_property_decorator_.Watch)('currentMinDate'),
|
|
7962
8001
|
ld_datepickervue_type_script_lang_js_external_metadata("design:type", Function),
|
|
7963
8002
|
ld_datepickervue_type_script_lang_js_external_metadata("design:paramtypes", [typeof (_j = typeof Date !== "undefined" && Date) === "function" ? _j : Object]),
|
|
8003
|
+
ld_datepickervue_type_script_lang_js_external_metadata("design:returntype", Promise)
|
|
8004
|
+
], DatepickerComponent.prototype, "onCurrentMinDateChanged", null);
|
|
8005
|
+
ld_datepickervue_type_script_lang_js_external_decorate([
|
|
8006
|
+
(0,external_vue_property_decorator_.Watch)('maxDate', { immediate: true }),
|
|
8007
|
+
ld_datepickervue_type_script_lang_js_external_metadata("design:type", Function),
|
|
8008
|
+
ld_datepickervue_type_script_lang_js_external_metadata("design:paramtypes", [typeof (_k = typeof Date !== "undefined" && Date) === "function" ? _k : Object]),
|
|
7964
8009
|
ld_datepickervue_type_script_lang_js_external_metadata("design:returntype", void 0)
|
|
7965
8010
|
], DatepickerComponent.prototype, "onMaxDateChanged", null);
|
|
8011
|
+
ld_datepickervue_type_script_lang_js_external_decorate([
|
|
8012
|
+
(0,external_vue_property_decorator_.Watch)('currentMaxDate'),
|
|
8013
|
+
ld_datepickervue_type_script_lang_js_external_metadata("design:type", Function),
|
|
8014
|
+
ld_datepickervue_type_script_lang_js_external_metadata("design:paramtypes", [typeof (_l = typeof Date !== "undefined" && Date) === "function" ? _l : Object]),
|
|
8015
|
+
ld_datepickervue_type_script_lang_js_external_metadata("design:returntype", Promise)
|
|
8016
|
+
], DatepickerComponent.prototype, "onCurrentMaxDateChanged", null);
|
|
7966
8017
|
ld_datepickervue_type_script_lang_js_external_decorate([
|
|
7967
8018
|
(0,external_vue_property_decorator_.Watch)('timeMenu'),
|
|
7968
8019
|
ld_datepickervue_type_script_lang_js_external_metadata("design:type", Function),
|
|
@@ -7989,7 +8040,7 @@ DatepickerComponent = ld_datepickervue_type_script_lang_js_external_decorate([
|
|
|
7989
8040
|
;
|
|
7990
8041
|
|
|
7991
8042
|
|
|
7992
|
-
const ld_datepicker_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_datepickervue_type_script_lang_js_external, [['render',
|
|
8043
|
+
const ld_datepicker_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_datepickervue_type_script_lang_js_external, [['render',ld_datepickervue_type_template_id_29494c22_scoped_true_render],['__scopeId',"data-v-29494c22"]])
|
|
7993
8044
|
|
|
7994
8045
|
/* harmony default export */ const ld_datepicker = (ld_datepicker_exports_);
|
|
7995
8046
|
;// CONCATENATED MODULE: ./src/ld-datepicker/index.ts
|
|
@@ -17159,7 +17210,7 @@ var ld_data_iteratorvue_type_script_lang_ts_external_metadata = (undefined && un
|
|
|
17159
17210
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
17160
17211
|
};
|
|
17161
17212
|
var DataIteratorComponent_1;
|
|
17162
|
-
var ld_data_iteratorvue_type_script_lang_ts_external_a, ld_data_iteratorvue_type_script_lang_ts_external_b, ld_data_iteratorvue_type_script_lang_ts_external_c, ld_data_iteratorvue_type_script_lang_ts_external_d, ld_data_iteratorvue_type_script_lang_ts_external_e, ld_data_iteratorvue_type_script_lang_ts_external_f, ld_data_iteratorvue_type_script_lang_ts_external_g, ld_data_iteratorvue_type_script_lang_ts_external_h, ld_data_iteratorvue_type_script_lang_ts_external_j,
|
|
17213
|
+
var ld_data_iteratorvue_type_script_lang_ts_external_a, ld_data_iteratorvue_type_script_lang_ts_external_b, ld_data_iteratorvue_type_script_lang_ts_external_c, ld_data_iteratorvue_type_script_lang_ts_external_d, ld_data_iteratorvue_type_script_lang_ts_external_e, ld_data_iteratorvue_type_script_lang_ts_external_f, ld_data_iteratorvue_type_script_lang_ts_external_g, ld_data_iteratorvue_type_script_lang_ts_external_h, ld_data_iteratorvue_type_script_lang_ts_external_j, ld_data_iteratorvue_type_script_lang_ts_external_k, ld_data_iteratorvue_type_script_lang_ts_external_l, _m;
|
|
17163
17214
|
|
|
17164
17215
|
|
|
17165
17216
|
|
|
@@ -18174,7 +18225,7 @@ ld_data_iteratorvue_type_script_lang_ts_external_decorate([
|
|
|
18174
18225
|
ld_data_iteratorvue_type_script_lang_ts_external_decorate([
|
|
18175
18226
|
(0,external_vue_property_decorator_.Watch)('items', { deep: true }),
|
|
18176
18227
|
ld_data_iteratorvue_type_script_lang_ts_external_metadata("design:type", Function),
|
|
18177
|
-
ld_data_iteratorvue_type_script_lang_ts_external_metadata("design:paramtypes", [typeof (ld_data_iteratorvue_type_script_lang_ts_external_j = typeof Array !== "undefined" && Array) === "function" ? ld_data_iteratorvue_type_script_lang_ts_external_j : Object, typeof (
|
|
18228
|
+
ld_data_iteratorvue_type_script_lang_ts_external_metadata("design:paramtypes", [typeof (ld_data_iteratorvue_type_script_lang_ts_external_j = typeof Array !== "undefined" && Array) === "function" ? ld_data_iteratorvue_type_script_lang_ts_external_j : Object, typeof (ld_data_iteratorvue_type_script_lang_ts_external_k = typeof Array !== "undefined" && Array) === "function" ? ld_data_iteratorvue_type_script_lang_ts_external_k : Object]),
|
|
18178
18229
|
ld_data_iteratorvue_type_script_lang_ts_external_metadata("design:returntype", Promise)
|
|
18179
18230
|
], DataIteratorComponent.prototype, "onItemsChanged", null);
|
|
18180
18231
|
ld_data_iteratorvue_type_script_lang_ts_external_decorate([
|
|
@@ -18204,7 +18255,7 @@ ld_data_iteratorvue_type_script_lang_ts_external_decorate([
|
|
|
18204
18255
|
ld_data_iteratorvue_type_script_lang_ts_external_decorate([
|
|
18205
18256
|
(0,external_vue_property_decorator_.Watch)('sortField'),
|
|
18206
18257
|
ld_data_iteratorvue_type_script_lang_ts_external_metadata("design:type", Function),
|
|
18207
|
-
ld_data_iteratorvue_type_script_lang_ts_external_metadata("design:paramtypes", [typeof (
|
|
18258
|
+
ld_data_iteratorvue_type_script_lang_ts_external_metadata("design:paramtypes", [typeof (ld_data_iteratorvue_type_script_lang_ts_external_l = typeof TSortField !== "undefined" && TSortField) === "function" ? ld_data_iteratorvue_type_script_lang_ts_external_l : Object, typeof (_m = typeof TSortField !== "undefined" && TSortField) === "function" ? _m : Object]),
|
|
18208
18259
|
ld_data_iteratorvue_type_script_lang_ts_external_metadata("design:returntype", void 0)
|
|
18209
18260
|
], DataIteratorComponent.prototype, "onSortFieldChanged", null);
|
|
18210
18261
|
ld_data_iteratorvue_type_script_lang_ts_external_decorate([
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ldmjs/ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.30",
|
|
4
4
|
"description": "ldm ui",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"engines": {
|
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
"@floating-ui/dom": "^1.6.3",
|
|
46
46
|
"@ldmjs/core": "1.0.0",
|
|
47
47
|
"@ldmjs/datatable": "1.0.9",
|
|
48
|
+
"@ldmjs/editor": "1.0.1",
|
|
48
49
|
"@ldmjs/treeview": "1.0.1",
|
|
49
50
|
"@popperjs/core": "^2.11.8",
|
|
50
51
|
"@types/babel__core": "^7",
|
|
@@ -53,6 +54,7 @@
|
|
|
53
54
|
"@types/eslint": "^8",
|
|
54
55
|
"@types/jest": "^29.5.12",
|
|
55
56
|
"@types/lodash-es": "^4",
|
|
57
|
+
"@types/markdown-it": "^14",
|
|
56
58
|
"@typescript-eslint/eslint-plugin": "5.41.0",
|
|
57
59
|
"@typescript-eslint/parser": "5.41.0",
|
|
58
60
|
"@vue/test-utils": "2.4.6",
|
|
@@ -71,6 +73,7 @@
|
|
|
71
73
|
"jest-environment-jsdom": "29.2.2",
|
|
72
74
|
"jest-transform-stub": "2.0.0",
|
|
73
75
|
"lodash-es": "4.17.21",
|
|
76
|
+
"markdown-it": "14.1.0",
|
|
74
77
|
"material-design-icons-iconfont": "^6.7.0",
|
|
75
78
|
"md-editor-v3": "4.15.6",
|
|
76
79
|
"mini-css-extract-plugin": "2.8.0",
|
|
@@ -101,10 +104,5 @@
|
|
|
101
104
|
"volta": {
|
|
102
105
|
"node": "18.20.3",
|
|
103
106
|
"yarn": "4.1.0"
|
|
104
|
-
},
|
|
105
|
-
"dependencies": {
|
|
106
|
-
"@ldmjs/editor": "^1.0.0",
|
|
107
|
-
"@vueup/vue-quill": "^1.2.0",
|
|
108
|
-
"quill-delta-to-html": "^0.12.1"
|
|
109
107
|
}
|
|
110
108
|
}
|