@ldmjs/ui 1.0.30 → 1.0.32
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 +80 -31
- package/dist/scss/_breadcrumbs.scss +1 -0
- package/package.json +1 -1
package/dist/css/index.css
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
.label[data-v-12071c41]{word-wrap:break-word;max-width:100%;padding-bottom:2px;color:var(--label) !important;font-size:var(--font-size)}.label-wrapper[data-v-12071c41]{display:flex;align-items:center;min-height:var(--input-height)}.require[data-v-12071c41]::after{content:'*';display:inline-block;color:var(--error)}
|
|
6
6
|
|
|
7
|
-
.ld-edit-text[data-v-
|
|
7
|
+
.ld-edit-text[data-v-e4dd6820]{min-width:100%}.input-class[data-v-e4dd6820]{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-e4dd6820]:not(.disabled){background-color:var(--white)}.input-class[data-v-e4dd6820]:focus{border:1px solid var(--grey-l-4);outline:none}.input-class__suffix[data-v-e4dd6820]{position:absolute;top:3px;right:6px;color:var(--label)}
|
|
8
8
|
|
|
9
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
|
|
package/dist/index.js
CHANGED
|
@@ -2053,22 +2053,22 @@ function ld_breadcrumbs_reg(vue, options) {
|
|
|
2053
2053
|
}
|
|
2054
2054
|
/* harmony default export */ const src_ld_breadcrumbs = (ld_breadcrumbs_reg);
|
|
2055
2055
|
|
|
2056
|
-
;// 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-edit-text/ld-edit-text.vue?vue&type=template&id=
|
|
2056
|
+
;// 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-edit-text/ld-edit-text.vue?vue&type=template&id=e4dd6820&scoped=true&ts=true
|
|
2057
2057
|
|
|
2058
|
-
const
|
|
2059
|
-
const
|
|
2060
|
-
const
|
|
2061
|
-
const
|
|
2062
|
-
const
|
|
2058
|
+
const ld_edit_textvue_type_template_id_e4dd6820_scoped_true_ts_true_withScopeId = n => (_pushScopeId("data-v-e4dd6820"), n = n(), _popScopeId(), n);
|
|
2059
|
+
const ld_edit_textvue_type_template_id_e4dd6820_scoped_true_ts_true_hoisted_1 = { class: "ld-edit-text" };
|
|
2060
|
+
const ld_edit_textvue_type_template_id_e4dd6820_scoped_true_ts_true_hoisted_2 = { key: 0 };
|
|
2061
|
+
const ld_edit_textvue_type_template_id_e4dd6820_scoped_true_ts_true_hoisted_3 = { key: 1 };
|
|
2062
|
+
const ld_edit_textvue_type_template_id_e4dd6820_scoped_true_ts_true_hoisted_4 = {
|
|
2063
2063
|
key: 1,
|
|
2064
2064
|
class: "d-flex w-100 flex-column",
|
|
2065
2065
|
style: { "position": "relative", "flex-wrap": "wrap" }
|
|
2066
2066
|
};
|
|
2067
|
-
const
|
|
2067
|
+
const ld_edit_textvue_type_template_id_e4dd6820_scoped_true_ts_true_hoisted_5 = {
|
|
2068
2068
|
key: 0,
|
|
2069
2069
|
class: "input-class__suffix"
|
|
2070
2070
|
};
|
|
2071
|
-
const
|
|
2071
|
+
const ld_edit_textvue_type_template_id_e4dd6820_scoped_true_ts_true_hoisted_6 = {
|
|
2072
2072
|
key: 1,
|
|
2073
2073
|
class: "v-input__details"
|
|
2074
2074
|
};
|
|
@@ -2080,7 +2080,7 @@ const _hoisted_8 = {
|
|
|
2080
2080
|
key: 1,
|
|
2081
2081
|
class: "grey--text"
|
|
2082
2082
|
};
|
|
2083
|
-
function
|
|
2083
|
+
function ld_edit_textvue_type_template_id_e4dd6820_scoped_true_ts_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2084
2084
|
const _component_ld_label = (0,external_vue_.resolveComponent)("ld-label");
|
|
2085
2085
|
const _component_ld_icon = (0,external_vue_.resolveComponent)("ld-icon");
|
|
2086
2086
|
const _component_square_button = (0,external_vue_.resolveComponent)("square-button");
|
|
@@ -2089,7 +2089,7 @@ function ld_edit_textvue_type_template_id_3a89856c_scoped_true_ts_true_render(_c
|
|
|
2089
2089
|
const _component_imask_input = (0,external_vue_.resolveComponent)("imask-input");
|
|
2090
2090
|
const _component_v_col = (0,external_vue_.resolveComponent)("v-col");
|
|
2091
2091
|
const _component_v_row = (0,external_vue_.resolveComponent)("v-row");
|
|
2092
|
-
return ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div",
|
|
2092
|
+
return ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_edit_textvue_type_template_id_e4dd6820_scoped_true_ts_true_hoisted_1, [
|
|
2093
2093
|
(0,external_vue_.createVNode)(_component_v_row, { "no-gutters": "" }, {
|
|
2094
2094
|
default: (0,external_vue_.withCtx)(() => [
|
|
2095
2095
|
(_ctx.label)
|
|
@@ -2208,10 +2208,8 @@ function ld_edit_textvue_type_template_id_3a89856c_scoped_true_ts_true_render(_c
|
|
|
2208
2208
|
default: (0,external_vue_.withCtx)(() => [
|
|
2209
2209
|
(0,external_vue_.createTextVNode)(),
|
|
2210
2210
|
(_ctx.passwordVisible)
|
|
2211
|
-
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("span",
|
|
2212
|
-
: (0,external_vue_.
|
|
2213
|
-
(0,external_vue_.createTextVNode)(),
|
|
2214
|
-
ld_edit_textvue_type_template_id_3a89856c_scoped_true_ts_true_hoisted_3
|
|
2211
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("span", ld_edit_textvue_type_template_id_e4dd6820_scoped_true_ts_true_hoisted_2, "Скрыть пароль"))
|
|
2212
|
+
: ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("span", ld_edit_textvue_type_template_id_e4dd6820_scoped_true_ts_true_hoisted_3, "Показать пароль"))
|
|
2215
2213
|
]),
|
|
2216
2214
|
_: 1
|
|
2217
2215
|
}))
|
|
@@ -2221,7 +2219,7 @@ function ld_edit_textvue_type_template_id_3a89856c_scoped_true_ts_true_render(_c
|
|
|
2221
2219
|
}
|
|
2222
2220
|
: undefined
|
|
2223
2221
|
]), 1032, ["model-value", "type", "class", "persistent-hint", "rules", "validation-value", "placeholder", "disabled", "readonly", "hint", "mask", "tabindex", "maxlength", "autofocus", "hide-details", "prefix", "suffix", "clearable", "error", "error-messages", "prepend-inner-icon", "autocomplete", "onChange", "onUpdate:modelValue", "onBlur", "onFocus", "onClick", "onKeydown", "onCopy"]))
|
|
2224
|
-
: ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div",
|
|
2222
|
+
: ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_edit_textvue_type_template_id_e4dd6820_scoped_true_ts_true_hoisted_4, [
|
|
2225
2223
|
(0,external_vue_.createVNode)(_component_imask_input, {
|
|
2226
2224
|
ref: "maskInput",
|
|
2227
2225
|
value: _ctx.value,
|
|
@@ -2244,11 +2242,11 @@ function ld_edit_textvue_type_template_id_3a89856c_scoped_true_ts_true_render(_c
|
|
|
2244
2242
|
}, null, 8, ["value", "maxlength", "scale", "signed", "min", "max", "disabled", "tabindex", "class", "placeholder", "onBlur", "onClick", "onFocus"]),
|
|
2245
2243
|
(0,external_vue_.createTextVNode)(),
|
|
2246
2244
|
(_ctx.suffix)
|
|
2247
|
-
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div",
|
|
2245
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_edit_textvue_type_template_id_e4dd6820_scoped_true_ts_true_hoisted_5, (0,external_vue_.toDisplayString)(_ctx.suffix), 1))
|
|
2248
2246
|
: (0,external_vue_.createCommentVNode)("", true),
|
|
2249
2247
|
(0,external_vue_.createTextVNode)(),
|
|
2250
2248
|
(!_ctx.hideDetails)
|
|
2251
|
-
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div",
|
|
2249
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_edit_textvue_type_template_id_e4dd6820_scoped_true_ts_true_hoisted_6, [
|
|
2252
2250
|
(0,external_vue_.createVNode)(external_vue_.Transition, { name: "squash" }, {
|
|
2253
2251
|
default: (0,external_vue_.withCtx)(() => [
|
|
2254
2252
|
(_ctx.showError)
|
|
@@ -2271,7 +2269,7 @@ function ld_edit_textvue_type_template_id_3a89856c_scoped_true_ts_true_render(_c
|
|
|
2271
2269
|
]));
|
|
2272
2270
|
}
|
|
2273
2271
|
|
|
2274
|
-
;// CONCATENATED MODULE: ./src/ld-edit-text/ld-edit-text.vue?vue&type=template&id=
|
|
2272
|
+
;// CONCATENATED MODULE: ./src/ld-edit-text/ld-edit-text.vue?vue&type=template&id=e4dd6820&scoped=true&ts=true
|
|
2275
2273
|
|
|
2276
2274
|
;// CONCATENATED MODULE: ./src/decorators/emit.decorator.ts
|
|
2277
2275
|
|
|
@@ -3047,7 +3045,7 @@ EditTextComponent = ld_edit_textvue_type_script_lang_ts_external_decorate([
|
|
|
3047
3045
|
;
|
|
3048
3046
|
|
|
3049
3047
|
|
|
3050
|
-
const ld_edit_text_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_edit_textvue_type_script_lang_ts_external, [['render',
|
|
3048
|
+
const ld_edit_text_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_edit_textvue_type_script_lang_ts_external, [['render',ld_edit_textvue_type_template_id_e4dd6820_scoped_true_ts_true_render],['__scopeId',"data-v-e4dd6820"]])
|
|
3051
3049
|
|
|
3052
3050
|
/* harmony default export */ const ld_edit_text = (ld_edit_text_exports_);
|
|
3053
3051
|
;// CONCATENATED MODULE: ./src/ld-edit-text/index.ts
|
|
@@ -11245,12 +11243,32 @@ let SelectListBoxComponent = class SelectListBoxComponent extends (0,external_vu
|
|
|
11245
11243
|
}
|
|
11246
11244
|
async onValueChanged(value) {
|
|
11247
11245
|
if (!this.$utils.isDefined(value)) {
|
|
11246
|
+
if (this.hasSelected) {
|
|
11247
|
+
this.clear();
|
|
11248
|
+
}
|
|
11248
11249
|
return;
|
|
11249
11250
|
}
|
|
11250
11251
|
let val = this.toArray(value);
|
|
11251
11252
|
if (lodash_es_isEqual(val, this.selectedIds)) {
|
|
11252
11253
|
return;
|
|
11253
11254
|
}
|
|
11255
|
+
if (!val.length) {
|
|
11256
|
+
this.clear();
|
|
11257
|
+
return;
|
|
11258
|
+
}
|
|
11259
|
+
if (this.multiselect) {
|
|
11260
|
+
for (const id of [...this.selectedIds]) {
|
|
11261
|
+
if (!val.includes(id)) {
|
|
11262
|
+
const item = this.getEntity(id);
|
|
11263
|
+
if (item) {
|
|
11264
|
+
this.remove(item);
|
|
11265
|
+
}
|
|
11266
|
+
}
|
|
11267
|
+
}
|
|
11268
|
+
}
|
|
11269
|
+
else {
|
|
11270
|
+
this.selected = [];
|
|
11271
|
+
}
|
|
11254
11272
|
val = val.filter(id => !this.selectedIds.includes(id));
|
|
11255
11273
|
if (!val.length) {
|
|
11256
11274
|
return;
|
|
@@ -11371,18 +11389,21 @@ let SelectListBoxComponent = class SelectListBoxComponent extends (0,external_vu
|
|
|
11371
11389
|
}
|
|
11372
11390
|
}
|
|
11373
11391
|
onRemoveItem(item) {
|
|
11374
|
-
|
|
11375
|
-
if (Array.isArray(this.selected)) {
|
|
11376
|
-
this.selected = this.selected.filter(el => this.itemIdentity(el) !== id);
|
|
11377
|
-
}
|
|
11378
|
-
else {
|
|
11379
|
-
this.selected = null;
|
|
11380
|
-
}
|
|
11392
|
+
this.remove(item);
|
|
11381
11393
|
this.onInput();
|
|
11382
11394
|
}
|
|
11383
11395
|
itemIdentity(item) {
|
|
11384
11396
|
return this.$utils.deepValueGetter(item, this.itemValue);
|
|
11385
11397
|
}
|
|
11398
|
+
getEntity(id) {
|
|
11399
|
+
if (Array.isArray(this.selected)) {
|
|
11400
|
+
return this.selected.find(item => id === this.itemIdentity(item));
|
|
11401
|
+
}
|
|
11402
|
+
if (id === this.itemIdentity(this.selected)) {
|
|
11403
|
+
return this.selected;
|
|
11404
|
+
}
|
|
11405
|
+
return null;
|
|
11406
|
+
}
|
|
11386
11407
|
async fetchData() {
|
|
11387
11408
|
if (this.handlers.fetchData instanceof Function) {
|
|
11388
11409
|
this.readedItems = await this.handlers.fetchData();
|
|
@@ -11418,6 +11439,9 @@ let SelectListBoxComponent = class SelectListBoxComponent extends (0,external_vu
|
|
|
11418
11439
|
}
|
|
11419
11440
|
return this.selectedToArray.map(item => this.itemIdentity(item));
|
|
11420
11441
|
}
|
|
11442
|
+
get hasSelected() {
|
|
11443
|
+
return this.selectedIds.length > 0;
|
|
11444
|
+
}
|
|
11421
11445
|
get canRemove() {
|
|
11422
11446
|
const result = !this.readonly && !this.disabled;
|
|
11423
11447
|
if (!result) {
|
|
@@ -11459,6 +11483,20 @@ let SelectListBoxComponent = class SelectListBoxComponent extends (0,external_vu
|
|
|
11459
11483
|
}
|
|
11460
11484
|
return value;
|
|
11461
11485
|
}
|
|
11486
|
+
clear() {
|
|
11487
|
+
this.selected = [];
|
|
11488
|
+
this.onInput();
|
|
11489
|
+
this.validate();
|
|
11490
|
+
}
|
|
11491
|
+
remove(item) {
|
|
11492
|
+
const id = this.itemIdentity(item);
|
|
11493
|
+
if (Array.isArray(this.selected)) {
|
|
11494
|
+
this.selected = this.selected.filter(el => this.itemIdentity(el) !== id);
|
|
11495
|
+
}
|
|
11496
|
+
else {
|
|
11497
|
+
this.selected = null;
|
|
11498
|
+
}
|
|
11499
|
+
}
|
|
11462
11500
|
};
|
|
11463
11501
|
ld_select_list_boxvue_type_script_lang_ts_external_decorate([
|
|
11464
11502
|
(0,external_vue_property_decorator_.Prop)(),
|
|
@@ -13279,12 +13317,18 @@ let ld_comboboxvue_type_script_lang_ts_external_SelectListBoxComponent = class S
|
|
|
13279
13317
|
}
|
|
13280
13318
|
async onValueChanged(value) {
|
|
13281
13319
|
if (!this.$utils.isDefined(value)) {
|
|
13320
|
+
if (this.hasSelected) {
|
|
13321
|
+
this.setSelected([]);
|
|
13322
|
+
}
|
|
13282
13323
|
return;
|
|
13283
13324
|
}
|
|
13284
13325
|
let val = this.toArray(value);
|
|
13285
13326
|
if (lodash_es_isEqual(val, this.selectedIds)) {
|
|
13286
13327
|
return;
|
|
13287
13328
|
}
|
|
13329
|
+
if (!val.length) {
|
|
13330
|
+
this.setSelected([]);
|
|
13331
|
+
}
|
|
13288
13332
|
if (val.length) {
|
|
13289
13333
|
try {
|
|
13290
13334
|
await this.setSelected(val);
|
|
@@ -13522,6 +13566,9 @@ let ld_comboboxvue_type_script_lang_ts_external_SelectListBoxComponent = class S
|
|
|
13522
13566
|
}
|
|
13523
13567
|
return this.selectedToArray.map(item => this.itemIdentity(item));
|
|
13524
13568
|
}
|
|
13569
|
+
get hasSelected() {
|
|
13570
|
+
return this.selectedIds.length > 0;
|
|
13571
|
+
}
|
|
13525
13572
|
get canRemove() {
|
|
13526
13573
|
const result = !this.readonly && !this.disabled;
|
|
13527
13574
|
if (!result) {
|
|
@@ -18810,11 +18857,13 @@ function unregister(input) {
|
|
|
18810
18857
|
}
|
|
18811
18858
|
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
|
|
18812
18859
|
const unwatch = this.watchers.find((i) => i.uid === found.uid);
|
|
18813
|
-
if (unwatch
|
|
18814
|
-
unwatch.valid
|
|
18815
|
-
|
|
18816
|
-
|
|
18817
|
-
unwatch.shouldValidate
|
|
18860
|
+
if (unwatch) {
|
|
18861
|
+
if (unwatch.valid) {
|
|
18862
|
+
unwatch.valid();
|
|
18863
|
+
}
|
|
18864
|
+
if (unwatch.shouldValidate) {
|
|
18865
|
+
unwatch.shouldValidate();
|
|
18866
|
+
}
|
|
18818
18867
|
}
|
|
18819
18868
|
let index = 0;
|
|
18820
18869
|
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
|