@ldmjs/ui 1.0.74 → 1.0.76
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/README.md +1 -0
- package/dist/css/index.css +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +91 -44
- package/dist/lib/calendar.js +1 -1
- package/dist/lib/floating.js +1 -1
- package/dist/lib/imask.js +1 -1
- package/dist/lib/multiselect.js +1 -1
- package/dist/lib/runtime-template.js +1 -1
- package/dist/lib/toastification.js +1 -1
- package/dist/scss/_multiselect.scss +0 -1
- package/dist/utils/validators.js +1 -1
- package/package.json +6 -4
package/README.md
CHANGED
package/dist/css/index.css
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
.ld-radiobutton[data-v-42a61559]{display:flex;align-items:center;font-size:var(--font-size)}
|
|
10
10
|
.ld-ragiogroup .validate[data-v-572c2151]{overflow:hidden;height:20px}.ld-ragiogroup--row[data-v-572c2151] .ld-radiobutton:not(:first-child){margin-left:8px}
|
|
11
11
|
.ld-select[data-v-04200e92]{position:relative;min-width:100%}.ld-select[data-v-04200e92] .v-field__append-inner{display:none}.ld-select[data-v-04200e92] .v-select{position:relative}.ld-select[data-v-04200e92] .v-select .v-input__control{position:relative}.ld-select[data-v-04200e92] .v-select .v-input__control:before{display:block;position:absolute;right:20px;top:calc(var(--input-height)/2);margin-top:-2px;color:var(--grey);border-style:solid;border-width:5px 5px 0;border-color:var(--grey) rgba(0,0,0,0) rgba(0,0,0,0);transition:transform .2s ease;content:"";z-index:1}.ld-select[data-v-04200e92] .v-input--readonly:before{opacity:.6}.ld-select[data-v-04200e92] .v-select--active-menu .v-input__control:before{transform:rotate(180deg)}input[type=checkbox]+.v-icon[data-v-04200e92]{display:block;width:12px !important;height:12px !important;font-size:10px !important;background-color:var(--white);color:rgba(0,0,0,0);border:1px solid var(--grey-l-5)}input[type=checkbox]:checked+.v-icon[data-v-04200e92]{background-color:var(--primary-l-2);color:var(--white);font-size:10px;font-weight:bold}.v-list-item--density-compact.v-list-item--one-line[data-v-04200e92]{min-height:var(--input-height)}.v-list-item--density-compact.v-list-item--one-line[data-v-04200e92] .v-list-item__content{display:flex;flex-wrap:nowrap}.v-list-item--density-compact.v-list-item--one-line[data-v-04200e92] .v-list-item__content .v-list-item-title{font-size:var(--font-size)}
|
|
12
|
-
.ld-select-list-box[data-v-
|
|
12
|
+
.ld-select-list-box[data-v-f23df862]{display:flex;min-width:100%;max-width:100%;width:100%}.ld-select-list-box .select-list-box-validate[data-v-f23df862]{overflow:hidden;height:20px}.ld-select-list-box .select-list-box-loading[data-v-f23df862]{position:absolute;left:0;bottom:0;width:calc(100% - var(--input-height));height:3px;overflow:hidden;background-color:var(--grey-l-5)}.ld-select-list-box .select-list-box-loading[data-v-f23df862]:before{content:"";display:block;position:absolute;top:0;left:0;width:25%;height:100%;background-color:var(--primary);animation:loading-f23df862 1.4s linear;animation-iteration-count:infinite}@keyframes loading-f23df862{from{transform:translateX(-300%)}to{transform:translateX(500%)}}
|
|
13
13
|
.ld-splitter[data-v-57e95903]{height:inherit;display:flex}.ld-splitter .splitter-pane[data-v-57e95903]{height:inherit;overflow-y:auto;background:var(--white)}.ld-splitter .splitter[data-v-57e95903]{display:flex;background-color:var(--white) !important;border-color:var(--grey-l-5);border-style:solid}.ld-splitter .splitter--hor[data-v-57e95903]{justify-content:center;width:100%;height:7px;cursor:ns-resize;border-width:1px 0}.ld-splitter .splitter--hor.splitter--disabled[data-v-57e95903]{height:1px;border-top:none}.ld-splitter .splitter--ver[data-v-57e95903]{align-items:center;width:7px;height:100%;cursor:ew-resize;border-width:0 1px}.ld-splitter .splitter--ver.splitter--disabled[data-v-57e95903]{width:1px;border-left:none}.ld-splitter .splitter--disabled[data-v-57e95903]{cursor:default}.ld-splitter .splitter--disabled svg[data-v-57e95903]{display:none}.ld-splitter.splitter[data-v-57e95903]{width:100%;border-left:none;border-right:none}
|
|
14
14
|
.ld-switch[data-v-649de2c4] .v-switch{display:block}.ld-switch[data-v-649de2c4] .v-switch .v-selection-control{min-height:var(--input-height) !important}.ld-switch[data-v-649de2c4] .v-switch .v-selection-control .v-selection-control__wrapper{width:40px}.ld-switch[data-v-649de2c4] .v-switch .v-selection-control:not(.v-selection-control--dirty) .v-selection-control__input{transform:translateX(-12px)}.ld-switch[data-v-649de2c4] .v-switch .v-selection-control:not(.v-selection-control--dirty) .v-switch__track{color:var(--grey-l-4) !important;background-color:var(--grey-l-4) !important}.ld-switch[data-v-649de2c4] .v-switch .v-selection-control .v-switch__track{opacity:1;width:40px}.ld-switch[data-v-649de2c4] .v-switch .v-selection-control--dirty .v-selection-control__input{transform:translateX(12px)}.ld-switch[data-v-649de2c4] .v-switch .v-selection-control--dirty .v-switch__thumb{color:var(--primary-l-3) !important;background-color:var(--primary-l-3) !important}.ld-switch[data-v-649de2c4] .v-switch .v-selection-control--dirty .v-switch__track{opacity:1;background-color:var(--primary-l-2) !important}.ld-switch[data-v-649de2c4] .v-switch .v-selection-control--dirty .v-label{color:var(--primary-l-2) !important}.ld-switch[data-v-649de2c4] .v-switch .v-selection-control .v-switch__thumb{color:var(--white) !important}.ld-switch[data-v-649de2c4] .v-switch .v-selection-control .v-label{padding-inline-start:4px}
|
|
15
15
|
.ld-tabs[data-v-0a53a285]{margin-left:0;display:flex;height:100%;width:100%;overflow-y:auto}.ld-tabs .header-text[data-v-0a53a285]{font-size:var(--font-size-2)}.ld-tabs-mobile[data-v-0a53a285]{height:100%}.ld-tabs .vertical-body[data-v-0a53a285]{--w: 44px;display:flex;flex-flow:column nowrap;width:calc(100% - var(--w)) !important;height:100%}.v-window[data-v-0a53a285]{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-0a53a285]{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-0a53a285]{padding:0 !important}[data-v-0a53a285] .ld-tabs .v-tabs--vertical{background:var(--grey-l-6)}[data-v-0a53a285] .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-0a53a285] .ld-tabs .v-tabs--vertical .v-tab--selected{background-color:var(--white);border-right-color:rgba(0,0,0,0)}[data-v-0a53a285] .ld-tabs .v-tabs--vertical .v-tab:last-child{border-bottom:1px solid var(--grey-l-5) !important}[data-v-0a53a285] .ld-tabs .v-tabs--vertical .v-slide-group__content{flex-flow:column nowrap;height:100% !important;width:100% !important}[data-v-0a53a285] .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-0a53a285] .ld-tabs .v-tabs--horizontal .v-tab--selected{border-bottom:1px solid var(--primary)}[data-v-0a53a285] .ld-tabs .v-tabs .v-tab--selected .v-btn__content{font-weight:bold;color:var(--primary) !important}[data-v-0a53a285] .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-0a53a285] .v-window.mobile .tg-field .v-row .v-col{flex:1 0 0 !important}[data-v-0a53a285] .v-window.mobile .tg-field .text-viewer-wrapper .v-col{flex:1 0 0 !important}[data-v-0a53a285] .v-slide-group--vertical{border-color:var(--grey-l-5);border:1px}[data-v-0a53a285] .v-slide-group--vertical .v-tab__slider{width:0px}[data-v-0a53a285] .v-slide-group__prev{display:none}[data-v-0a53a285] .v-slide-group__next{display:none}[data-v-0a53a285] .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-0a53a285] .v-window-item{height:100%}[data-v-0a53a285] .ld-tabs-mobile.hide-tabs .v-tab{display:none !important}[data-v-0a53a285] .ld-tabs-mobile.hide-body .v-slide-group{width:100% !important}[data-v-0a53a285] .ld-tabs-mobile.hide-body .v-window{display:none !important}[data-v-0a53a285] .v-tabs-mobile .v-slide-group__content .v-btn__content{display:block !important}
|
package/dist/index.d.ts
CHANGED
|
@@ -65,6 +65,8 @@ export declare function fileToArrayBuffer(value: File | Blob): Promise<ArrayBuff
|
|
|
65
65
|
export declare function fileToBase64(value: File | Blob): Promise<string>;
|
|
66
66
|
/* convert Base64 string to Uint8Array */
|
|
67
67
|
export declare function base64ToUint8Array(base64: string): Uint8Array;
|
|
68
|
+
/* convert Base64 string to Blob */
|
|
69
|
+
export declare function base64ToBlob(base64: string): Blob;
|
|
68
70
|
/* convert Uint8Array to Hexadecimal system */
|
|
69
71
|
export declare function uint8ArrayToHex(bytes: Uint8Array): string;
|
|
70
72
|
/* convert a hex string to an ArrayBuffer */
|
package/dist/index.js
CHANGED
|
@@ -255,6 +255,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
255
255
|
alphaRule: () => (/* reexport */ validators_js_.alphaRule),
|
|
256
256
|
awaiting: () => (/* reexport */ awaiting),
|
|
257
257
|
base64: () => (/* reexport */ base64),
|
|
258
|
+
base64ToBlob: () => (/* reexport */ base64ToBlob),
|
|
258
259
|
base64ToUint8Array: () => (/* reexport */ base64ToUint8Array),
|
|
259
260
|
betweenRule: () => (/* reexport */ validators_js_.betweenRule),
|
|
260
261
|
cookie: () => (/* reexport */ cookie),
|
|
@@ -296,6 +297,7 @@ __webpack_require__.r(utils_namespaceObject);
|
|
|
296
297
|
__webpack_require__.d(utils_namespaceObject, {
|
|
297
298
|
awaiting: () => (awaiting),
|
|
298
299
|
base64: () => (base64),
|
|
300
|
+
base64ToBlob: () => (base64ToBlob),
|
|
299
301
|
base64ToUint8Array: () => (base64ToUint8Array),
|
|
300
302
|
cookie: () => (cookie),
|
|
301
303
|
deepValueGetter: () => (deepValueGetter),
|
|
@@ -420,7 +422,7 @@ class BreadcrumbsComponent extends external_vue_property_decorator_.Vue {
|
|
|
420
422
|
go(item) {
|
|
421
423
|
if (!this.$router) {
|
|
422
424
|
/* eslint-disable no-console */
|
|
423
|
-
console.
|
|
425
|
+
console.error('Router is undefined');
|
|
424
426
|
return;
|
|
425
427
|
}
|
|
426
428
|
if (item.route) {
|
|
@@ -469,18 +471,18 @@ function reg(vue, options) {
|
|
|
469
471
|
}
|
|
470
472
|
/* harmony default export */ const src_ld_breadcrumbs = (reg);
|
|
471
473
|
|
|
472
|
-
;// ./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=
|
|
474
|
+
;// ./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=748c0a08
|
|
473
475
|
|
|
474
476
|
|
|
475
|
-
const
|
|
477
|
+
const ld_buttonvue_type_template_id_748c0a08_hoisted_1 = { class: "d-inline-flex" }
|
|
476
478
|
|
|
477
|
-
function
|
|
479
|
+
function ld_buttonvue_type_template_id_748c0a08_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
478
480
|
const _component_square_button = (0,external_vue_.resolveComponent)("square-button")
|
|
479
481
|
const _component_v_tooltip = (0,external_vue_.resolveComponent)("v-tooltip")
|
|
480
482
|
const _component_small_button = (0,external_vue_.resolveComponent)("small-button")
|
|
481
483
|
const _directive_active = (0,external_vue_.resolveDirective)("active")
|
|
482
484
|
|
|
483
|
-
return ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div",
|
|
485
|
+
return ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_buttonvue_type_template_id_748c0a08_hoisted_1, [
|
|
484
486
|
(_ctx.isTabletView || _ctx.isTabletGlobal)
|
|
485
487
|
? ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_v_tooltip, {
|
|
486
488
|
key: 0,
|
|
@@ -488,6 +490,7 @@ function ld_buttonvue_type_template_id_c4f3f8da_render(_ctx, _cache, $props, $se
|
|
|
488
490
|
}, {
|
|
489
491
|
activator: (0,external_vue_.withCtx)(({ props }) => [
|
|
490
492
|
(0,external_vue_.withDirectives)(((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_square_button, (0,external_vue_.mergeProps)(props, {
|
|
493
|
+
id: _ctx.id,
|
|
491
494
|
"data-testid": _ctx.testid,
|
|
492
495
|
variant: _ctx.variant,
|
|
493
496
|
color: _ctx.color,
|
|
@@ -502,7 +505,7 @@ function ld_buttonvue_type_template_id_c4f3f8da_render(_ctx, _cache, $props, $se
|
|
|
502
505
|
(0,external_vue_.renderSlot)(_ctx.$slots, "hidden")
|
|
503
506
|
]),
|
|
504
507
|
_: 2
|
|
505
|
-
}, 1040, ["data-testid", "variant", "color", "icon", "disabled", "loading", "onClick"])), [
|
|
508
|
+
}, 1040, ["id", "data-testid", "variant", "color", "icon", "disabled", "loading", "onClick"])), [
|
|
506
509
|
[_directive_active, _ctx.active]
|
|
507
510
|
])
|
|
508
511
|
]),
|
|
@@ -515,6 +518,7 @@ function ld_buttonvue_type_template_id_c4f3f8da_render(_ctx, _cache, $props, $se
|
|
|
515
518
|
: (_ctx.isDesktopView || _ctx.isDesktopGlobal)
|
|
516
519
|
? (0,external_vue_.withDirectives)(((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_small_button, {
|
|
517
520
|
key: 1,
|
|
521
|
+
id: _ctx.id,
|
|
518
522
|
"data-testid": _ctx.testid,
|
|
519
523
|
variant: _ctx.variant,
|
|
520
524
|
color: _ctx.color,
|
|
@@ -530,12 +534,13 @@ function ld_buttonvue_type_template_id_c4f3f8da_render(_ctx, _cache, $props, $se
|
|
|
530
534
|
(0,external_vue_.renderSlot)(_ctx.$slots, "hidden")
|
|
531
535
|
]),
|
|
532
536
|
_: 3
|
|
533
|
-
}, 8, ["data-testid", "variant", "color", "disabled", "loading", "onClick"])), [
|
|
537
|
+
}, 8, ["id", "data-testid", "variant", "color", "disabled", "loading", "onClick"])), [
|
|
534
538
|
[_directive_active, _ctx.active]
|
|
535
539
|
])
|
|
536
540
|
: (_ctx.isMobileView || _ctx.isMobileGlobal)
|
|
537
541
|
? (0,external_vue_.withDirectives)(((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_square_button, {
|
|
538
542
|
key: 2,
|
|
543
|
+
id: _ctx.id,
|
|
539
544
|
"data-testid": _ctx.testid,
|
|
540
545
|
color: _ctx.color,
|
|
541
546
|
disabled: _ctx.disabled,
|
|
@@ -550,13 +555,13 @@ function ld_buttonvue_type_template_id_c4f3f8da_render(_ctx, _cache, $props, $se
|
|
|
550
555
|
(0,external_vue_.renderSlot)(_ctx.$slots, "hidden")
|
|
551
556
|
]),
|
|
552
557
|
_: 3
|
|
553
|
-
}, 8, ["data-testid", "color", "disabled", "loading", "icon", "variant", "onClick"])), [
|
|
558
|
+
}, 8, ["id", "data-testid", "color", "disabled", "loading", "icon", "variant", "onClick"])), [
|
|
554
559
|
[_directive_active, _ctx.active]
|
|
555
560
|
])
|
|
556
561
|
: (0,external_vue_.createCommentVNode)("", true)
|
|
557
562
|
]))
|
|
558
563
|
}
|
|
559
|
-
;// ./src/ld-button/ld-button.vue?vue&type=template&id=
|
|
564
|
+
;// ./src/ld-button/ld-button.vue?vue&type=template&id=748c0a08
|
|
560
565
|
|
|
561
566
|
// EXTERNAL MODULE: external "vue-class-component"
|
|
562
567
|
var external_vue_class_component_ = __webpack_require__(9299);
|
|
@@ -686,6 +691,10 @@ let ResponsiveButtonComponent = class ResponsiveButtonComponent extends (0,exter
|
|
|
686
691
|
return this.globalDesktopKey ? this[this.globalDesktopKey] : false;
|
|
687
692
|
}
|
|
688
693
|
};
|
|
694
|
+
ld_buttonvue_type_script_lang_js_external_decorate([
|
|
695
|
+
(0,external_vue_property_decorator_.Prop)({ type: String, default: '' }),
|
|
696
|
+
ld_buttonvue_type_script_lang_js_external_metadata("design:type", String)
|
|
697
|
+
], ResponsiveButtonComponent.prototype, "id", void 0);
|
|
689
698
|
ld_buttonvue_type_script_lang_js_external_decorate([
|
|
690
699
|
(0,external_vue_property_decorator_.Prop)({ type: String, default: 'flat' }),
|
|
691
700
|
ld_buttonvue_type_script_lang_js_external_metadata("design:type", String)
|
|
@@ -751,7 +760,7 @@ ResponsiveButtonComponent = ld_buttonvue_type_script_lang_js_external_decorate([
|
|
|
751
760
|
|
|
752
761
|
|
|
753
762
|
;
|
|
754
|
-
const ld_button_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_buttonvue_type_script_lang_js_external, [['render',
|
|
763
|
+
const ld_button_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_buttonvue_type_script_lang_js_external, [['render',ld_buttonvue_type_template_id_748c0a08_render]])
|
|
755
764
|
|
|
756
765
|
/* harmony default export */ const ld_button = (ld_button_exports_);
|
|
757
766
|
;// ./src/ld-button/index.ts
|
|
@@ -7267,6 +7276,25 @@ function base64ToUint8Array(base64) {
|
|
|
7267
7276
|
}
|
|
7268
7277
|
return arr;
|
|
7269
7278
|
}
|
|
7279
|
+
/**
|
|
7280
|
+
* Конвертирование из base64 в Blob
|
|
7281
|
+
* @param b64Data
|
|
7282
|
+
* @param sliceSize
|
|
7283
|
+
*/
|
|
7284
|
+
function base64ToBlob(data, sliceSize = 512) {
|
|
7285
|
+
const byteCharacters = window.atob(data);
|
|
7286
|
+
const byteArrays = [];
|
|
7287
|
+
for (let offset = 0; offset < byteCharacters.length; offset += sliceSize) {
|
|
7288
|
+
const slice = byteCharacters.slice(offset, offset + sliceSize);
|
|
7289
|
+
const byteNumbers = new Array(slice.length);
|
|
7290
|
+
for (let i = 0; i < slice.length; i++) {
|
|
7291
|
+
byteNumbers[i] = slice.charCodeAt(i);
|
|
7292
|
+
}
|
|
7293
|
+
const byteArray = new Uint8Array(byteNumbers);
|
|
7294
|
+
byteArrays.push(byteArray);
|
|
7295
|
+
}
|
|
7296
|
+
return new Blob(byteArrays);
|
|
7297
|
+
}
|
|
7270
7298
|
function uint8ArrayToHex(bytes) {
|
|
7271
7299
|
const hex = [];
|
|
7272
7300
|
/* eslint-disable-next-line @typescript-eslint/prefer-for-of */
|
|
@@ -7556,7 +7584,7 @@ class DialogManager {
|
|
|
7556
7584
|
}
|
|
7557
7585
|
}
|
|
7558
7586
|
finally {
|
|
7559
|
-
|
|
7587
|
+
DialogManager._id = '';
|
|
7560
7588
|
}
|
|
7561
7589
|
}
|
|
7562
7590
|
activate(info) {
|
|
@@ -8457,11 +8485,11 @@ let DialogComponent = class DialogComponent extends (0,external_vue_class_compon
|
|
|
8457
8485
|
break;
|
|
8458
8486
|
}
|
|
8459
8487
|
modal.show = false;
|
|
8488
|
+
let okResult = this.modalResult;
|
|
8460
8489
|
if (modal.type !== ModalType.Select && modal.type !== ModalType.CreateEdit) {
|
|
8461
|
-
|
|
8462
|
-
return modal.resolveFunction(okResult);
|
|
8490
|
+
okResult = this.$utils.isDefined(modal.okResult) ? modal.okResult : okResult;
|
|
8463
8491
|
}
|
|
8464
|
-
modal.resolveFunction(
|
|
8492
|
+
modal.resolveFunction(okResult ?? true);
|
|
8465
8493
|
this.modalResult = null;
|
|
8466
8494
|
}
|
|
8467
8495
|
finally {
|
|
@@ -12117,46 +12145,42 @@ function ld_select_reg(vue, options) {
|
|
|
12117
12145
|
}
|
|
12118
12146
|
/* harmony default export */ const src_ld_select = (ld_select_reg);
|
|
12119
12147
|
|
|
12120
|
-
;// ./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-select-list-box/ld-select-list-box.vue?vue&type=template&id=
|
|
12148
|
+
;// ./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-select-list-box/ld-select-list-box.vue?vue&type=template&id=f23df862&scoped=true&ts=true
|
|
12121
12149
|
|
|
12122
|
-
const
|
|
12150
|
+
const ld_select_list_boxvue_type_template_id_f23df862_scoped_true_ts_true_hoisted_1 = {
|
|
12123
12151
|
key: 0,
|
|
12124
12152
|
class: "w-full d-flex align-start overflow-hidden",
|
|
12125
|
-
style: { "border-radius": "var(--border-radius)" }
|
|
12153
|
+
style: { "border-radius": "var(--border-radius)", "max-width": "100%" }
|
|
12126
12154
|
};
|
|
12127
|
-
const
|
|
12128
|
-
|
|
12129
|
-
style: { "flex-basis": "100%" }
|
|
12130
|
-
};
|
|
12131
|
-
const ld_select_list_boxvue_type_template_id_b7c0d2d4_scoped_true_ts_true_hoisted_3 = { class: "text-crop" };
|
|
12132
|
-
const ld_select_list_boxvue_type_template_id_b7c0d2d4_scoped_true_ts_true_hoisted_4 = {
|
|
12155
|
+
const ld_select_list_boxvue_type_template_id_f23df862_scoped_true_ts_true_hoisted_2 = { style: { "display": "block", "overflow": "hidden", "text-overflow": "ellipsis" } };
|
|
12156
|
+
const ld_select_list_boxvue_type_template_id_f23df862_scoped_true_ts_true_hoisted_3 = {
|
|
12133
12157
|
key: 0,
|
|
12134
12158
|
class: "d-flex align-center"
|
|
12135
12159
|
};
|
|
12136
|
-
const
|
|
12137
|
-
const
|
|
12160
|
+
const ld_select_list_boxvue_type_template_id_f23df862_scoped_true_ts_true_hoisted_4 = { class: "d-flex flex-column justify-center" };
|
|
12161
|
+
const ld_select_list_boxvue_type_template_id_f23df862_scoped_true_ts_true_hoisted_5 = {
|
|
12138
12162
|
key: 0,
|
|
12139
12163
|
class: "grey--text",
|
|
12140
12164
|
style: { "font-size": "var(--font-size--1)" }
|
|
12141
12165
|
};
|
|
12142
|
-
const
|
|
12166
|
+
const ld_select_list_boxvue_type_template_id_f23df862_scoped_true_ts_true_hoisted_6 = {
|
|
12143
12167
|
key: 1,
|
|
12144
12168
|
class: "select-list-box-loading"
|
|
12145
12169
|
};
|
|
12146
|
-
const
|
|
12170
|
+
const ld_select_list_boxvue_type_template_id_f23df862_scoped_true_ts_true_hoisted_7 = {
|
|
12147
12171
|
class: "d-flex align-center",
|
|
12148
12172
|
style: { "height": "var(--input-height)" }
|
|
12149
12173
|
};
|
|
12150
|
-
const
|
|
12174
|
+
const ld_select_list_boxvue_type_template_id_f23df862_scoped_true_ts_true_hoisted_8 = {
|
|
12151
12175
|
key: 1,
|
|
12152
12176
|
class: "w-full",
|
|
12153
12177
|
style: { "min-height": "var(--input-height)" }
|
|
12154
12178
|
};
|
|
12155
|
-
const
|
|
12179
|
+
const ld_select_list_boxvue_type_template_id_f23df862_scoped_true_ts_true_hoisted_9 = {
|
|
12156
12180
|
key: 2,
|
|
12157
12181
|
class: "select-list-box-validate"
|
|
12158
12182
|
};
|
|
12159
|
-
function
|
|
12183
|
+
function ld_select_list_boxvue_type_template_id_f23df862_scoped_true_ts_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
12160
12184
|
const _component_ld_label = (0,external_vue_.resolveComponent)("ld-label");
|
|
12161
12185
|
const _component_small_chip = (0,external_vue_.resolveComponent)("small-chip");
|
|
12162
12186
|
const _component_v_col = (0,external_vue_.resolveComponent)("v-col");
|
|
@@ -12184,8 +12208,14 @@ function ld_select_list_boxvue_type_template_id_b7c0d2d4_scoped_true_ts_true_ren
|
|
|
12184
12208
|
}, {
|
|
12185
12209
|
default: (0,external_vue_.withCtx)(() => [
|
|
12186
12210
|
(_ctx.multiselect || _ctx.selectedToArray.length === 0)
|
|
12187
|
-
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div",
|
|
12188
|
-
(0,external_vue_.createElementVNode)("div",
|
|
12211
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_select_list_boxvue_type_template_id_f23df862_scoped_true_ts_true_hoisted_1, [
|
|
12212
|
+
(0,external_vue_.createElementVNode)("div", {
|
|
12213
|
+
class: "w-full d-flex position-relative",
|
|
12214
|
+
style: (0,external_vue_.normalizeStyle)({
|
|
12215
|
+
'flex-basis': '100%',
|
|
12216
|
+
'max-width': _ctx.fixWrapperMaxWidth,
|
|
12217
|
+
})
|
|
12218
|
+
}, [
|
|
12189
12219
|
(0,external_vue_.createVNode)(_component_multiselect, {
|
|
12190
12220
|
ref: "multiselect",
|
|
12191
12221
|
modelValue: _ctx.selected,
|
|
@@ -12195,6 +12225,7 @@ function ld_select_list_boxvue_type_template_id_b7c0d2d4_scoped_true_ts_true_ren
|
|
|
12195
12225
|
],
|
|
12196
12226
|
"track-by": "id",
|
|
12197
12227
|
class: (0,external_vue_.normalizeClass)({ 'multiselect--with-right-button': !_ctx.isDialogDisabled }),
|
|
12228
|
+
style: (0,external_vue_.normalizeStyle)({ 'max-width': _ctx.fixMultiselectMaxWidth }),
|
|
12198
12229
|
multiple: _ctx.multiselect,
|
|
12199
12230
|
placeholder: _ctx.placeholder,
|
|
12200
12231
|
"select-label": '',
|
|
@@ -12226,7 +12257,7 @@ function ld_select_list_boxvue_type_template_id_b7c0d2d4_scoped_true_ts_true_ren
|
|
|
12226
12257
|
"onClick:close": ($event) => (_ctx.onRemoveItem(option))
|
|
12227
12258
|
}, {
|
|
12228
12259
|
default: (0,external_vue_.withCtx)(() => [
|
|
12229
|
-
(0,external_vue_.createElementVNode)("span",
|
|
12260
|
+
(0,external_vue_.createElementVNode)("span", ld_select_list_boxvue_type_template_id_f23df862_scoped_true_ts_true_hoisted_2, (0,external_vue_.toDisplayString)(_ctx.$utils.deepValueGetter(option, this.itemTitle)), 1)
|
|
12230
12261
|
]),
|
|
12231
12262
|
_: 2
|
|
12232
12263
|
}, 1032, ["color", "closable", "onClick:close"]))
|
|
@@ -12254,7 +12285,7 @@ function ld_select_list_boxvue_type_template_id_b7c0d2d4_scoped_true_ts_true_ren
|
|
|
12254
12285
|
(0,external_vue_.createVNode)(_component_v_col, { class: "d-flex align-center" }, {
|
|
12255
12286
|
default: (0,external_vue_.withCtx)(() => [
|
|
12256
12287
|
(_ctx.multiselect)
|
|
12257
|
-
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div",
|
|
12288
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_select_list_boxvue_type_template_id_f23df862_scoped_true_ts_true_hoisted_3, [
|
|
12258
12289
|
((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)((0,external_vue_.resolveDynamicComponent)(_ctx.$ldmui.options.aliases['ld-checkbox']), {
|
|
12259
12290
|
key: JSON.stringify(option),
|
|
12260
12291
|
"model-value": _ctx.checkedItems,
|
|
@@ -12269,13 +12300,13 @@ function ld_select_list_boxvue_type_template_id_b7c0d2d4_scoped_true_ts_true_ren
|
|
|
12269
12300
|
}, [
|
|
12270
12301
|
(0,external_vue_.renderSlot)(_ctx.$slots, "option-icon", (0,external_vue_.normalizeProps)((0,external_vue_.guardReactiveProps)({ item: option, isSelected: _ctx.checkedItems.includes(_ctx.itemIdentity(option)) })), undefined, true),
|
|
12271
12302
|
_cache[4] || (_cache[4] = (0,external_vue_.createTextVNode)()),
|
|
12272
|
-
(0,external_vue_.createElementVNode)("div",
|
|
12303
|
+
(0,external_vue_.createElementVNode)("div", ld_select_list_boxvue_type_template_id_f23df862_scoped_true_ts_true_hoisted_4, [
|
|
12273
12304
|
(0,external_vue_.renderSlot)(_ctx.$slots, "option", (0,external_vue_.normalizeProps)((0,external_vue_.guardReactiveProps)({ item: option, isSelected: _ctx.checkedItems.includes(_ctx.itemIdentity(option)) })), () => [
|
|
12274
12305
|
(0,external_vue_.createElementVNode)("div", null, (0,external_vue_.toDisplayString)(_ctx.$utils.deepValueGetter(option, _ctx.itemTitle)), 1)
|
|
12275
12306
|
], true),
|
|
12276
12307
|
_cache[3] || (_cache[3] = (0,external_vue_.createTextVNode)()),
|
|
12277
12308
|
(_ctx.optionHint)
|
|
12278
|
-
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div",
|
|
12309
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_select_list_boxvue_type_template_id_f23df862_scoped_true_ts_true_hoisted_5, [
|
|
12279
12310
|
(0,external_vue_.renderSlot)(_ctx.$slots, "option-hint", (0,external_vue_.normalizeProps)((0,external_vue_.guardReactiveProps)({ item: option })), () => [
|
|
12280
12311
|
_cache[2] || (_cache[2] = (0,external_vue_.createTextVNode)(" no slot \"option-hint\" found "))
|
|
12281
12312
|
], true)
|
|
@@ -12294,7 +12325,7 @@ function ld_select_list_boxvue_type_template_id_b7c0d2d4_scoped_true_ts_true_ren
|
|
|
12294
12325
|
(0,external_vue_.createElementVNode)("span", null, (0,external_vue_.toDisplayString)(_ctx.message), 1)
|
|
12295
12326
|
]),
|
|
12296
12327
|
_: 3
|
|
12297
|
-
}, 8, ["modelValue", "class", "multiple", "placeholder", "options", "searchable", "internal-search", "close-on-select", "disabled", "limit", "tabindex", "allow-empty", "onClose", "onSearchChange", "onUpdate:modelValue"]),
|
|
12328
|
+
}, 8, ["modelValue", "class", "style", "multiple", "placeholder", "options", "searchable", "internal-search", "close-on-select", "disabled", "limit", "tabindex", "allow-empty", "onClose", "onSearchChange", "onUpdate:modelValue"]),
|
|
12298
12329
|
_cache[9] || (_cache[9] = (0,external_vue_.createTextVNode)()),
|
|
12299
12330
|
(!_ctx.isDialogDisabled)
|
|
12300
12331
|
? ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_square_button, {
|
|
@@ -12322,11 +12353,11 @@ function ld_select_list_boxvue_type_template_id_b7c0d2d4_scoped_true_ts_true_ren
|
|
|
12322
12353
|
: (0,external_vue_.createCommentVNode)("", true),
|
|
12323
12354
|
_cache[10] || (_cache[10] = (0,external_vue_.createTextVNode)()),
|
|
12324
12355
|
(_ctx.loading)
|
|
12325
|
-
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div",
|
|
12356
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_select_list_boxvue_type_template_id_f23df862_scoped_true_ts_true_hoisted_6))
|
|
12326
12357
|
: (0,external_vue_.createCommentVNode)("", true)
|
|
12327
|
-
]),
|
|
12358
|
+
], 4),
|
|
12328
12359
|
_cache[11] || (_cache[11] = (0,external_vue_.createTextVNode)()),
|
|
12329
|
-
(0,external_vue_.createElementVNode)("div",
|
|
12360
|
+
(0,external_vue_.createElementVNode)("div", ld_select_list_boxvue_type_template_id_f23df862_scoped_true_ts_true_hoisted_7, [
|
|
12330
12361
|
(_ctx.$utils.isDefined(_ctx.help))
|
|
12331
12362
|
? ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_ld_help, {
|
|
12332
12363
|
key: 0,
|
|
@@ -12339,7 +12370,7 @@ function ld_select_list_boxvue_type_template_id_b7c0d2d4_scoped_true_ts_true_ren
|
|
|
12339
12370
|
: (0,external_vue_.createCommentVNode)("", true),
|
|
12340
12371
|
_cache[12] || (_cache[12] = (0,external_vue_.createTextVNode)()),
|
|
12341
12372
|
(!_ctx.multiselect && _ctx.$utils.isDefined(_ctx.singleItem))
|
|
12342
|
-
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div",
|
|
12373
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_select_list_boxvue_type_template_id_f23df862_scoped_true_ts_true_hoisted_8, [
|
|
12343
12374
|
(0,external_vue_.renderSlot)(_ctx.$slots, "tag", (0,external_vue_.normalizeProps)((0,external_vue_.guardReactiveProps)({ item: _ctx.singleItem, onRemove: _ctx.onRemoveItem })), () => [
|
|
12344
12375
|
((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_small_chip, {
|
|
12345
12376
|
key: JSON.stringify(_ctx.selected),
|
|
@@ -12357,7 +12388,7 @@ function ld_select_list_boxvue_type_template_id_b7c0d2d4_scoped_true_ts_true_ren
|
|
|
12357
12388
|
: (0,external_vue_.createCommentVNode)("", true),
|
|
12358
12389
|
_cache[13] || (_cache[13] = (0,external_vue_.createTextVNode)()),
|
|
12359
12390
|
(!_ctx.hideDetails)
|
|
12360
|
-
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div",
|
|
12391
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_select_list_boxvue_type_template_id_f23df862_scoped_true_ts_true_hoisted_9, [
|
|
12361
12392
|
(0,external_vue_.createVNode)(external_vue_.Transition, { name: "squash" }, {
|
|
12362
12393
|
default: (0,external_vue_.withCtx)(() => [
|
|
12363
12394
|
(_ctx.showHint)
|
|
@@ -12380,7 +12411,7 @@ function ld_select_list_boxvue_type_template_id_b7c0d2d4_scoped_true_ts_true_ren
|
|
|
12380
12411
|
}));
|
|
12381
12412
|
}
|
|
12382
12413
|
|
|
12383
|
-
;// ./src/ld-select-list-box/ld-select-list-box.vue?vue&type=template&id=
|
|
12414
|
+
;// ./src/ld-select-list-box/ld-select-list-box.vue?vue&type=template&id=f23df862&scoped=true&ts=true
|
|
12384
12415
|
|
|
12385
12416
|
;// ./node_modules/ts-loader/index.js??clonedRuleSet-1.use!./src/ld-select-list-box/ld-select-list-box.ts?vue&type=script&lang=ts&external
|
|
12386
12417
|
var ld_select_list_boxvue_type_script_lang_ts_external_decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
@@ -12681,6 +12712,22 @@ let ld_select_list_boxvue_type_script_lang_ts_external_SelectListBoxComponent =
|
|
|
12681
12712
|
get isInternalSearch() {
|
|
12682
12713
|
return this.internalSearch || this.isRestricted;
|
|
12683
12714
|
}
|
|
12715
|
+
get fixMultiselectMaxWidth() {
|
|
12716
|
+
let i = 0;
|
|
12717
|
+
if (!this.isDialogDisabled) {
|
|
12718
|
+
i++;
|
|
12719
|
+
}
|
|
12720
|
+
const w = `var(--input-height) *${i} `;
|
|
12721
|
+
return `calc(100% - ${w})`;
|
|
12722
|
+
}
|
|
12723
|
+
get fixWrapperMaxWidth() {
|
|
12724
|
+
let i = 0;
|
|
12725
|
+
if (this.$utils.isDefined(this.help)) {
|
|
12726
|
+
i++;
|
|
12727
|
+
}
|
|
12728
|
+
const w = `var(--input-height) *${i} `;
|
|
12729
|
+
return `calc(100% - ${w})`;
|
|
12730
|
+
}
|
|
12684
12731
|
emitUpdate() {
|
|
12685
12732
|
this.emitUpdateValue();
|
|
12686
12733
|
this.emitUpdateItems();
|
|
@@ -12866,7 +12913,7 @@ ld_select_list_boxvue_type_script_lang_ts_external_SelectListBoxComponent = ld_s
|
|
|
12866
12913
|
;
|
|
12867
12914
|
|
|
12868
12915
|
|
|
12869
|
-
const ld_select_list_box_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_select_list_boxvue_type_script_lang_ts_external, [['render',
|
|
12916
|
+
const ld_select_list_box_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_select_list_boxvue_type_script_lang_ts_external, [['render',ld_select_list_boxvue_type_template_id_f23df862_scoped_true_ts_true_render],['__scopeId',"data-v-f23df862"]])
|
|
12870
12917
|
|
|
12871
12918
|
/* harmony default export */ const ld_select_list_box = (ld_select_list_box_exports_);
|
|
12872
12919
|
;// ./src/ld-select-list-box/index.ts
|