@ldmjs/ui 1.0.67 → 1.0.69
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 +3 -3
- package/dist/index.js +150 -95
- package/dist/lib/floating.js +1 -1
- package/package.json +1 -1
package/dist/css/index.css
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
.ld-checkbox{display:flex;align-items:center;position:relative;height:var(--input-height);font-size:var(--font-size);cursor:pointer}.ld-checkbox input[type=checkbox]{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0}.ld-checkbox input[type=checkbox]+.v-icon{display:flex;align-items:center;width:14px !important;height:15px !important;font-size:11px !important;background-color:var(--white);color:rgba(0,0,0,0);border:1px solid var(--grey-l-5)}.ld-checkbox input[type=checkbox]:focus+.v-icon{background-color:var(--grey-l-6)}.ld-checkbox input[type=checkbox]:checked+.v-icon{background-color:var(--primary-l-2);border:1px solid var(--primary);color:var(--white);font-size:10px;font-weight:bold}.ld-checkbox input[type=checkbox]:checked:focus+.v-icon{background-color:var(--primary-l-3)}.ld-checkbox input[type=checkbox]:checked:disabled+.v-icon{background-color:var(--grey-l-3)}.checkbox-label{word-wrap:break-word;max-width:100%}.checkbox-label--disabled{color:var(--grey-l-3) !important}
|
|
2
2
|
.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)}
|
|
3
3
|
.ld-combobox[data-v-65eddb96]{display:flex;min-width:100%;max-width:100%;width:100%}.ld-combobox .combobox-validate[data-v-65eddb96]{overflow:hidden;height:20px}.ld-combobox .combobox-loading[data-v-65eddb96]{position:absolute;left:0;bottom:0;width:calc(100% - var(--input-height));height:3px;overflow:hidden;background-color:var(--grey-l-5)}.ld-combobox .combobox-loading[data-v-65eddb96]:before{content:"";display:block;position:absolute;top:0;left:0;width:25%;height:100%;background-color:var(--primary);animation:loading-65eddb96 1.4s linear;animation-iteration-count:infinite}@keyframes loading-65eddb96{from{transform:translateX(-300%)}to{transform:translateX(500%)}}
|
|
4
|
-
.ld-edit-list-box-validate[data-v-
|
|
5
|
-
.ld-edit-masked-text[data-v-
|
|
6
|
-
.ld-edit-text[data-v-
|
|
4
|
+
.ld-edit-list-box-validate[data-v-72730efc]{display:flex;align-items:center;overflow:hidden;height:20px}.ld-edit-list-box-validate>span[data-v-72730efc]{font-size:var(--font-size--1)}.edit-text-validate[data-v-72730efc]{overflow:hidden;height:20px;font-size:var(--font-size--1)}
|
|
5
|
+
.ld-edit-masked-text[data-v-75b47890]{min-width:100%;font-size:inherit !important;display:flex}.ld-edit-masked-text .column[data-v-75b47890]{flex-flow:column}input[data-v-75b47890]{border:1px solid var(--grey-l-5);border-radius:var(--border-radius);width:100%;padding:0 8px;font-size:var(--font-size);height:var(--input-height)}input[data-v-75b47890]:focus,input[data-v-75b47890]:active{outline:none;border:1px solid var(--grey-l-4)}input[disabled][data-v-75b47890]{background-color:var(--grey-l-6);color:var(--grey)}.ld-edit-masked-text-validate[data-v-75b47890]{display:flex;align-items:center;overflow:hidden;height:20px;line-height:12px;font-size:var(--font-size--1)}
|
|
6
|
+
.ld-edit-text[data-v-222e429e]{min-width:100%}.input-class[data-v-222e429e]{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-222e429e]:not(.disabled){background-color:var(--white)}.input-class[data-v-222e429e]:focus{border:1px solid var(--grey-l-4);outline:none}.input-class__suffix[data-v-222e429e]{position:absolute;top:3px;right:6px;color:var(--label)}
|
|
7
7
|
.loader[data-v-5bf82ed7]{width:100%;height:100%;top:0px;left:0px;display:flex;justify-content:center;align-items:center;overflow:hidden;transition:opacity .15s linear}.loader__icon[data-v-5bf82ed7]{vertical-align:middle;height:48px}.loader__icon-gray[data-v-5bf82ed7]{color:var(--grey-l-5)}.loader .circle.small[data-v-5bf82ed7]{width:calc(var(--font-size) + 4px);height:calc(var(--font-size) + 4px);border-width:3px}.loader .circle.big[data-v-5bf82ed7]{width:calc(var(--font-size)*3);height:calc(var(--font-size)*3);border-width:3px}.loader .circle[data-v-5bf82ed7]{animation:rotating-5bf82ed7 .7s linear infinite;width:calc(var(--font-size)*2);height:calc(var(--font-size)*2);border-radius:50%;border:2px solid rgba(0,0,0,0)}.loader.loader__color-primary[data-v-5bf82ed7]:not(.loader__transparent){background:hsla(0,0%,100%,.5)}.loader.loader__color-primary .circle[data-v-5bf82ed7]{border-right-color:var(--primary);border-bottom-color:var(--primary)}.loader.loader__color-white[data-v-5bf82ed7]{background:none}.loader.loader__color-white .circle[data-v-5bf82ed7]{border-right-color:var(--white);border-bottom-color:var(--white)}.loader.loader__white-bg[data-v-5bf82ed7]:not(.loader__transparent){background:#fff}.loading-mask-global[data-v-5bf82ed7]{position:fixed !important;width:100vw !important;height:100vh !important}.loading-mask[data-v-5bf82ed7]{position:absolute;-webkit-backface-visibility:hidden;backface-visibility:hidden}.loader__relative[data-v-5bf82ed7]{position:relative}@-moz-keyframes rotating-5bf82ed7{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@-webkit-keyframes rotating-5bf82ed7{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@-o-keyframes rotating-5bf82ed7{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes rotating-5bf82ed7{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}
|
|
8
8
|
.v-toolbar[data-v-523d6f23]{position:relative;background-color:var(--white);box-shadow:var(--shadow-1);z-index:1}.toolbar-wrapper[data-v-523d6f23]{display:grid;width:100%;height:100%;padding:0 12px}.toolbar-wrapper[data-v-523d6f23]:not(.--preview){grid-template-columns:100%;grid-template-rows:var(--input-height);row-gap:4px}.toolbar-wrapper.--preview[data-v-523d6f23]{grid-template-columns:1fr}.toolbar-inner[data-v-523d6f23]{display:grid;grid-template-rows:100%;grid-template-columns:1fr max-content;column-gap:8px}.toolbar-caption[data-v-523d6f23]{--left: calc(var(--input-height) + 8px);display:flex;align-items:center;position:absolute;height:100%;width:calc(100% - var(--left));top:0;left:var(--left)}
|
|
9
9
|
.ld-radiobutton[data-v-a594d8d2]{display:flex;align-items:center;font-size:var(--font-size)}
|
package/dist/index.js
CHANGED
|
@@ -8564,20 +8564,20 @@ function ld_dialog_reg(vue, options) {
|
|
|
8564
8564
|
}
|
|
8565
8565
|
/* harmony default export */ const src_ld_dialog = (ld_dialog_reg);
|
|
8566
8566
|
|
|
8567
|
-
;// ./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-list-box/ld-edit-list-box.vue?vue&type=template&id=
|
|
8567
|
+
;// ./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-list-box/ld-edit-list-box.vue?vue&type=template&id=72730efc&scoped=true&ts=true
|
|
8568
8568
|
|
|
8569
|
-
const
|
|
8570
|
-
const
|
|
8571
|
-
const
|
|
8572
|
-
key:
|
|
8569
|
+
const ld_edit_list_boxvue_type_template_id_72730efc_scoped_true_ts_true_hoisted_1 = { class: "ld-edit-list-box" };
|
|
8570
|
+
const ld_edit_list_boxvue_type_template_id_72730efc_scoped_true_ts_true_hoisted_2 = { class: "text-crop" };
|
|
8571
|
+
const ld_edit_list_boxvue_type_template_id_72730efc_scoped_true_ts_true_hoisted_3 = {
|
|
8572
|
+
key: 3,
|
|
8573
8573
|
class: "d-flex w-full justify-space-between align-center"
|
|
8574
8574
|
};
|
|
8575
|
-
const
|
|
8576
|
-
const
|
|
8575
|
+
const ld_edit_list_boxvue_type_template_id_72730efc_scoped_true_ts_true_hoisted_4 = { class: "edit-text-validate error--text" };
|
|
8576
|
+
const ld_edit_list_boxvue_type_template_id_72730efc_scoped_true_ts_true_hoisted_5 = {
|
|
8577
8577
|
key: 0,
|
|
8578
8578
|
class: "ld-edit-list-box-validate"
|
|
8579
8579
|
};
|
|
8580
|
-
function
|
|
8580
|
+
function ld_edit_list_boxvue_type_template_id_72730efc_scoped_true_ts_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8581
8581
|
const _component_ld_label = (0,external_vue_.resolveComponent)("ld-label");
|
|
8582
8582
|
const _component_small_chip = (0,external_vue_.resolveComponent)("small-chip");
|
|
8583
8583
|
const _component_ld_icon = (0,external_vue_.resolveComponent)("ld-icon");
|
|
@@ -8589,7 +8589,7 @@ function ld_edit_list_boxvue_type_template_id_19372610_scoped_true_ts_true_rende
|
|
|
8589
8589
|
const _component_v_menu = (0,external_vue_.resolveComponent)("v-menu");
|
|
8590
8590
|
const _component_v_col = (0,external_vue_.resolveComponent)("v-col");
|
|
8591
8591
|
const _component_v_row = (0,external_vue_.resolveComponent)("v-row");
|
|
8592
|
-
return ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div",
|
|
8592
|
+
return ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_edit_list_boxvue_type_template_id_72730efc_scoped_true_ts_true_hoisted_1, [
|
|
8593
8593
|
(0,external_vue_.createVNode)(_component_v_row, { "no-gutters": "" }, {
|
|
8594
8594
|
default: (0,external_vue_.withCtx)(() => [
|
|
8595
8595
|
(_ctx.label)
|
|
@@ -8601,7 +8601,7 @@ function ld_edit_list_boxvue_type_template_id_19372610_scoped_true_ts_true_rende
|
|
|
8601
8601
|
"align-label-to-right": _ctx.alignLabelToRight
|
|
8602
8602
|
}, null, 8, ["class", "label", "required", "align-label-to-right"]))
|
|
8603
8603
|
: (0,external_vue_.createCommentVNode)("", true),
|
|
8604
|
-
_cache[
|
|
8604
|
+
_cache[17] || (_cache[17] = (0,external_vue_.createTextVNode)()),
|
|
8605
8605
|
(0,external_vue_.createVNode)(_component_v_col, {
|
|
8606
8606
|
class: (0,external_vue_.normalizeClass)(_ctx.inputSizeClasses)
|
|
8607
8607
|
}, {
|
|
@@ -8609,7 +8609,7 @@ function ld_edit_list_boxvue_type_template_id_19372610_scoped_true_ts_true_rende
|
|
|
8609
8609
|
(0,external_vue_.createVNode)(_component_v_menu, {
|
|
8610
8610
|
modelValue: _ctx.menu,
|
|
8611
8611
|
"onUpdate:modelValue": [
|
|
8612
|
-
_cache[
|
|
8612
|
+
_cache[6] || (_cache[6] = ($event) => ((_ctx.menu) = $event)),
|
|
8613
8613
|
_ctx.onMenu
|
|
8614
8614
|
],
|
|
8615
8615
|
"close-on-content-click": false,
|
|
@@ -8659,7 +8659,7 @@ function ld_edit_list_boxvue_type_template_id_19372610_scoped_true_ts_true_rende
|
|
|
8659
8659
|
"onClick:close": ($event) => (_ctx.onRemoveItem(index))
|
|
8660
8660
|
}, {
|
|
8661
8661
|
default: (0,external_vue_.withCtx)(() => [
|
|
8662
|
-
(0,external_vue_.createElementVNode)("span",
|
|
8662
|
+
(0,external_vue_.createElementVNode)("span", ld_edit_list_boxvue_type_template_id_72730efc_scoped_true_ts_true_hoisted_2, (0,external_vue_.toDisplayString)(item.value), 1)
|
|
8663
8663
|
]),
|
|
8664
8664
|
_: 2
|
|
8665
8665
|
}, 1032, ["color", "closable", "clickable", "onClick", "onClick:close"]))
|
|
@@ -8673,7 +8673,7 @@ function ld_edit_list_boxvue_type_template_id_19372610_scoped_true_ts_true_rende
|
|
|
8673
8673
|
}, {
|
|
8674
8674
|
default: (0,external_vue_.withCtx)(() => [
|
|
8675
8675
|
(0,external_vue_.createVNode)(_component_ld_icon, null, {
|
|
8676
|
-
default: (0,external_vue_.withCtx)(() => _cache[
|
|
8676
|
+
default: (0,external_vue_.withCtx)(() => _cache[7] || (_cache[7] = [
|
|
8677
8677
|
(0,external_vue_.createTextVNode)("add")
|
|
8678
8678
|
])),
|
|
8679
8679
|
_: 1
|
|
@@ -8686,7 +8686,7 @@ function ld_edit_list_boxvue_type_template_id_19372610_scoped_true_ts_true_rende
|
|
|
8686
8686
|
}, 1040, ["modelValue", "id", "multiple", "placeholder", "disabled", "tabindex", "autofocus", "prefix", "suffix", "prepend-inner-icon", "autocomplete", "persistent-hint", "rules", "error", "onBlur"])
|
|
8687
8687
|
]),
|
|
8688
8688
|
default: (0,external_vue_.withCtx)(() => [
|
|
8689
|
-
_cache[
|
|
8689
|
+
_cache[15] || (_cache[15] = (0,external_vue_.createTextVNode)()),
|
|
8690
8690
|
(0,external_vue_.createVNode)(_component_v_card, {
|
|
8691
8691
|
elevation: "0",
|
|
8692
8692
|
style: { "border": "1px solid var(--grey-l-5)" }
|
|
@@ -8696,7 +8696,7 @@ function ld_edit_list_boxvue_type_template_id_19372610_scoped_true_ts_true_rende
|
|
|
8696
8696
|
default: (0,external_vue_.withCtx)(() => [
|
|
8697
8697
|
(0,external_vue_.createElementVNode)("div", {
|
|
8698
8698
|
class: "d-flex flex-column",
|
|
8699
|
-
style: (0,external_vue_.normalizeStyle)({ width: _ctx.isTextType ? '100%' : '252px' })
|
|
8699
|
+
style: (0,external_vue_.normalizeStyle)({ width: _ctx.isTextType || _ctx.isMaskType ? '100%' : '252px' })
|
|
8700
8700
|
}, [
|
|
8701
8701
|
(_ctx.isTextType)
|
|
8702
8702
|
? ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)((0,external_vue_.resolveDynamicComponent)(_ctx.$ldmui.options.aliases['ld-edit-text']), {
|
|
@@ -8711,39 +8711,52 @@ function ld_edit_list_boxvue_type_template_id_19372610_scoped_true_ts_true_rende
|
|
|
8711
8711
|
onInput: _cache[2] || (_cache[2] = ($event) => (_ctx.editError = null))
|
|
8712
8712
|
}, null, 40, ["modelValue", "only-numbers", "onEnter"]))
|
|
8713
8713
|
: (0,external_vue_.createCommentVNode)("", true),
|
|
8714
|
-
_cache[
|
|
8715
|
-
(_ctx.
|
|
8716
|
-
? ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)((0,external_vue_.resolveDynamicComponent)(_ctx.$ldmui.options.aliases['ld-
|
|
8714
|
+
_cache[11] || (_cache[11] = (0,external_vue_.createTextVNode)()),
|
|
8715
|
+
(_ctx.isMaskType)
|
|
8716
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)((0,external_vue_.resolveDynamicComponent)(_ctx.$ldmui.options.aliases['ld-edit-masked-text']), (0,external_vue_.mergeProps)({
|
|
8717
8717
|
key: 1,
|
|
8718
|
+
ref: "edit",
|
|
8719
|
+
modelValue: _ctx.value,
|
|
8720
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => ((_ctx.value) = $event)),
|
|
8721
|
+
autofocus: "",
|
|
8722
|
+
"hide-details": !_ctx.maskProps.inputHint
|
|
8723
|
+
}, _ctx.maskProps, {
|
|
8724
|
+
"persistent-hint": "",
|
|
8725
|
+
onEnter: _ctx.onEnter
|
|
8726
|
+
}), null, 16, ["modelValue", "hide-details", "onEnter"]))
|
|
8727
|
+
: (0,external_vue_.createCommentVNode)("", true),
|
|
8728
|
+
_cache[12] || (_cache[12] = (0,external_vue_.createTextVNode)()),
|
|
8729
|
+
(_ctx.isDateType && !_ctx.calendarDestroy)
|
|
8730
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)((0,external_vue_.resolveDynamicComponent)(_ctx.$ldmui.options.aliases['ld-calendar']), (0,external_vue_.mergeProps)({
|
|
8731
|
+
key: 2,
|
|
8718
8732
|
modelValue: _ctx.date,
|
|
8719
|
-
"onUpdate:modelValue": _cache[
|
|
8720
|
-
|
|
8721
|
-
}, null, 40, ["modelValue", "onSelect"]))
|
|
8733
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => ((_ctx.date) = $event))
|
|
8734
|
+
}, _ctx.calendarProps, { onSelect: _ctx.onDateSelect }), null, 16, ["modelValue", "onSelect"]))
|
|
8722
8735
|
: (0,external_vue_.createCommentVNode)("", true),
|
|
8723
|
-
_cache[
|
|
8736
|
+
_cache[13] || (_cache[13] = (0,external_vue_.createTextVNode)()),
|
|
8724
8737
|
(_ctx.type === 'datetime')
|
|
8725
|
-
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div",
|
|
8738
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_edit_list_boxvue_type_template_id_72730efc_scoped_true_ts_true_hoisted_3, [
|
|
8726
8739
|
((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)((0,external_vue_.resolveDynamicComponent)(_ctx.$ldmui.options.aliases['ld-time']), {
|
|
8727
8740
|
modelValue: _ctx.time,
|
|
8728
8741
|
"onUpdate:modelValue": [
|
|
8729
|
-
_cache[
|
|
8742
|
+
_cache[5] || (_cache[5] = ($event) => ((_ctx.time) = $event)),
|
|
8730
8743
|
_ctx.onTimeInput
|
|
8731
8744
|
],
|
|
8732
8745
|
disabled: _ctx.disabled,
|
|
8733
8746
|
readonly: _ctx.readonly,
|
|
8734
8747
|
onEnter: _ctx.onEnter
|
|
8735
8748
|
}, null, 40, ["modelValue", "disabled", "readonly", "onEnter", "onUpdate:modelValue"])),
|
|
8736
|
-
_cache[
|
|
8749
|
+
_cache[10] || (_cache[10] = (0,external_vue_.createTextVNode)()),
|
|
8737
8750
|
(0,external_vue_.createVNode)(_component_small_button, { onClick: _ctx.onEnter }, {
|
|
8738
|
-
default: (0,external_vue_.withCtx)(() => _cache[
|
|
8751
|
+
default: (0,external_vue_.withCtx)(() => _cache[9] || (_cache[9] = [
|
|
8739
8752
|
(0,external_vue_.createTextVNode)(" Сохранить ")
|
|
8740
8753
|
])),
|
|
8741
8754
|
_: 1
|
|
8742
8755
|
}, 8, ["onClick"])
|
|
8743
8756
|
]))
|
|
8744
8757
|
: (0,external_vue_.createCommentVNode)("", true),
|
|
8745
|
-
_cache[
|
|
8746
|
-
(0,external_vue_.createElementVNode)("div",
|
|
8758
|
+
_cache[14] || (_cache[14] = (0,external_vue_.createTextVNode)()),
|
|
8759
|
+
(0,external_vue_.createElementVNode)("div", ld_edit_list_boxvue_type_template_id_72730efc_scoped_true_ts_true_hoisted_4, (0,external_vue_.toDisplayString)(_ctx.editError), 1)
|
|
8747
8760
|
], 4)
|
|
8748
8761
|
]),
|
|
8749
8762
|
_: 1
|
|
@@ -8754,9 +8767,9 @@ function ld_edit_list_boxvue_type_template_id_19372610_scoped_true_ts_true_rende
|
|
|
8754
8767
|
]),
|
|
8755
8768
|
_: 3
|
|
8756
8769
|
}, 8, ["modelValue", "disabled", "onUpdate:modelValue"]),
|
|
8757
|
-
_cache[
|
|
8770
|
+
_cache[16] || (_cache[16] = (0,external_vue_.createTextVNode)()),
|
|
8758
8771
|
(!_ctx.hideDetails)
|
|
8759
|
-
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div",
|
|
8772
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_edit_list_boxvue_type_template_id_72730efc_scoped_true_ts_true_hoisted_5, [
|
|
8760
8773
|
(0,external_vue_.createVNode)(external_vue_.Transition, { name: "squash" }, {
|
|
8761
8774
|
default: (0,external_vue_.withCtx)(() => [
|
|
8762
8775
|
(0,external_vue_.createElementVNode)("span", {
|
|
@@ -8776,7 +8789,7 @@ function ld_edit_list_boxvue_type_template_id_19372610_scoped_true_ts_true_rende
|
|
|
8776
8789
|
]));
|
|
8777
8790
|
}
|
|
8778
8791
|
|
|
8779
|
-
;// ./src/ld-edit-list-box/ld-edit-list-box.vue?vue&type=template&id=
|
|
8792
|
+
;// ./src/ld-edit-list-box/ld-edit-list-box.vue?vue&type=template&id=72730efc&scoped=true&ts=true
|
|
8780
8793
|
|
|
8781
8794
|
;// ./node_modules/ts-loader/index.js??clonedRuleSet-1.use!./src/ld-edit-list-box/ld-edit-list-box.ts?vue&type=script&lang=ts&external
|
|
8782
8795
|
var ld_edit_list_boxvue_type_script_lang_ts_external_decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
@@ -8854,14 +8867,10 @@ let EditListBoxComponent = class EditListBoxComponent extends (0,external_vue_cl
|
|
|
8854
8867
|
onTypeChanged() {
|
|
8855
8868
|
this.value = null;
|
|
8856
8869
|
}
|
|
8857
|
-
|
|
8858
|
-
if (this.
|
|
8859
|
-
|
|
8870
|
+
onFormat() {
|
|
8871
|
+
if (!this.isTextType) {
|
|
8872
|
+
return;
|
|
8860
8873
|
}
|
|
8861
|
-
this.messagesBucket = {
|
|
8862
|
-
...this.messagesBucket,
|
|
8863
|
-
...this.messages,
|
|
8864
|
-
};
|
|
8865
8874
|
if (this.$utils.isDefined(this.format)) {
|
|
8866
8875
|
try {
|
|
8867
8876
|
this.regexp = new RegExp(this.format);
|
|
@@ -8872,6 +8881,15 @@ let EditListBoxComponent = class EditListBoxComponent extends (0,external_vue_cl
|
|
|
8872
8881
|
}
|
|
8873
8882
|
}
|
|
8874
8883
|
}
|
|
8884
|
+
created() {
|
|
8885
|
+
if (this.form) {
|
|
8886
|
+
this.form.register(this, null);
|
|
8887
|
+
}
|
|
8888
|
+
this.messagesBucket = {
|
|
8889
|
+
...this.messagesBucket,
|
|
8890
|
+
...this.messages,
|
|
8891
|
+
};
|
|
8892
|
+
}
|
|
8875
8893
|
mounted() {
|
|
8876
8894
|
const ref = this.$refs.autocomplete;
|
|
8877
8895
|
const el = ref.$el;
|
|
@@ -8965,6 +8983,9 @@ let EditListBoxComponent = class EditListBoxComponent extends (0,external_vue_cl
|
|
|
8965
8983
|
});
|
|
8966
8984
|
}
|
|
8967
8985
|
editOrAdd(value) {
|
|
8986
|
+
if (!value) {
|
|
8987
|
+
return;
|
|
8988
|
+
}
|
|
8968
8989
|
if (this.$utils.isDefined(this.editableIndex)) {
|
|
8969
8990
|
const insert = Array.isArray(value) ? value[0] : value;
|
|
8970
8991
|
this.selected.splice(this.editableIndex, 1, insert);
|
|
@@ -9062,6 +9083,9 @@ let EditListBoxComponent = class EditListBoxComponent extends (0,external_vue_cl
|
|
|
9062
9083
|
get isDateType() {
|
|
9063
9084
|
return ['date', 'datetime'].includes(this.type);
|
|
9064
9085
|
}
|
|
9086
|
+
get isMaskType() {
|
|
9087
|
+
return this.type === 'mask';
|
|
9088
|
+
}
|
|
9065
9089
|
get locale() {
|
|
9066
9090
|
return this.$ldmui.options.language;
|
|
9067
9091
|
}
|
|
@@ -9098,6 +9122,14 @@ ld_edit_list_boxvue_type_script_lang_ts_external_decorate([
|
|
|
9098
9122
|
(0,external_vue_property_decorator_.Prop)(),
|
|
9099
9123
|
ld_edit_list_boxvue_type_script_lang_ts_external_metadata("design:type", Object)
|
|
9100
9124
|
], EditListBoxComponent.prototype, "messages", void 0);
|
|
9125
|
+
ld_edit_list_boxvue_type_script_lang_ts_external_decorate([
|
|
9126
|
+
(0,external_vue_property_decorator_.Prop)({ type: Object, default: () => ({}) }),
|
|
9127
|
+
ld_edit_list_boxvue_type_script_lang_ts_external_metadata("design:type", Object)
|
|
9128
|
+
], EditListBoxComponent.prototype, "calendarProps", void 0);
|
|
9129
|
+
ld_edit_list_boxvue_type_script_lang_ts_external_decorate([
|
|
9130
|
+
(0,external_vue_property_decorator_.Prop)({ type: Object, default: () => ({}) }),
|
|
9131
|
+
ld_edit_list_boxvue_type_script_lang_ts_external_metadata("design:type", Object)
|
|
9132
|
+
], EditListBoxComponent.prototype, "maskProps", void 0);
|
|
9101
9133
|
ld_edit_list_boxvue_type_script_lang_ts_external_decorate([
|
|
9102
9134
|
(0,external_vue_property_decorator_.Inject)({ from: 'form', default: null }),
|
|
9103
9135
|
ld_edit_list_boxvue_type_script_lang_ts_external_metadata("design:type", Object)
|
|
@@ -9132,6 +9164,12 @@ ld_edit_list_boxvue_type_script_lang_ts_external_decorate([
|
|
|
9132
9164
|
ld_edit_list_boxvue_type_script_lang_ts_external_metadata("design:paramtypes", []),
|
|
9133
9165
|
ld_edit_list_boxvue_type_script_lang_ts_external_metadata("design:returntype", void 0)
|
|
9134
9166
|
], EditListBoxComponent.prototype, "onTypeChanged", null);
|
|
9167
|
+
ld_edit_list_boxvue_type_script_lang_ts_external_decorate([
|
|
9168
|
+
(0,external_vue_property_decorator_.Watch)('format', { immediate: true }),
|
|
9169
|
+
ld_edit_list_boxvue_type_script_lang_ts_external_metadata("design:type", Function),
|
|
9170
|
+
ld_edit_list_boxvue_type_script_lang_ts_external_metadata("design:paramtypes", []),
|
|
9171
|
+
ld_edit_list_boxvue_type_script_lang_ts_external_metadata("design:returntype", void 0)
|
|
9172
|
+
], EditListBoxComponent.prototype, "onFormat", null);
|
|
9135
9173
|
EditListBoxComponent = ld_edit_list_boxvue_type_script_lang_ts_external_decorate([
|
|
9136
9174
|
(0,external_vue_class_component_.Options)({
|
|
9137
9175
|
components: {
|
|
@@ -9151,7 +9189,7 @@ EditListBoxComponent = ld_edit_list_boxvue_type_script_lang_ts_external_decorate
|
|
|
9151
9189
|
;
|
|
9152
9190
|
|
|
9153
9191
|
|
|
9154
|
-
const ld_edit_list_box_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_edit_list_boxvue_type_script_lang_ts_external, [['render',
|
|
9192
|
+
const ld_edit_list_box_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_edit_list_boxvue_type_script_lang_ts_external, [['render',ld_edit_list_boxvue_type_template_id_72730efc_scoped_true_ts_true_render],['__scopeId',"data-v-72730efc"]])
|
|
9155
9193
|
|
|
9156
9194
|
/* harmony default export */ const ld_edit_list_box = (ld_edit_list_box_exports_);
|
|
9157
9195
|
;// ./src/ld-edit-list-box/index.ts
|
|
@@ -9161,31 +9199,31 @@ function ld_edit_list_box_reg(vue, options) {
|
|
|
9161
9199
|
}
|
|
9162
9200
|
/* harmony default export */ const src_ld_edit_list_box = (ld_edit_list_box_reg);
|
|
9163
9201
|
|
|
9164
|
-
;// ./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use!./src/ld-edit-masked-text/ld-edit-masked-text.vue?vue&type=template&id=
|
|
9202
|
+
;// ./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use!./src/ld-edit-masked-text/ld-edit-masked-text.vue?vue&type=template&id=75b47890&scoped=true
|
|
9165
9203
|
|
|
9166
9204
|
|
|
9167
|
-
const
|
|
9168
|
-
const
|
|
9205
|
+
const ld_edit_masked_textvue_type_template_id_75b47890_scoped_true_hoisted_1 = { class: "ld-edit-masked-text" }
|
|
9206
|
+
const ld_edit_masked_textvue_type_template_id_75b47890_scoped_true_hoisted_2 = {
|
|
9169
9207
|
key: 0,
|
|
9170
9208
|
class: "ld-edit-masked-text-validate"
|
|
9171
9209
|
}
|
|
9172
|
-
const
|
|
9210
|
+
const ld_edit_masked_textvue_type_template_id_75b47890_scoped_true_hoisted_3 = {
|
|
9173
9211
|
key: 0,
|
|
9174
9212
|
class: "error--text"
|
|
9175
9213
|
}
|
|
9176
|
-
const
|
|
9214
|
+
const ld_edit_masked_textvue_type_template_id_75b47890_scoped_true_hoisted_4 = {
|
|
9177
9215
|
key: 1,
|
|
9178
9216
|
class: "grey--text"
|
|
9179
9217
|
}
|
|
9180
9218
|
|
|
9181
|
-
function
|
|
9219
|
+
function ld_edit_masked_textvue_type_template_id_75b47890_scoped_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9182
9220
|
const _component_ld_label = (0,external_vue_.resolveComponent)("ld-label")
|
|
9183
9221
|
const _component_ld_icon = (0,external_vue_.resolveComponent)("ld-icon")
|
|
9184
9222
|
const _component_imask_input = (0,external_vue_.resolveComponent)("imask-input")
|
|
9185
9223
|
const _component_v_col = (0,external_vue_.resolveComponent)("v-col")
|
|
9186
9224
|
const _component_v_row = (0,external_vue_.resolveComponent)("v-row")
|
|
9187
9225
|
|
|
9188
|
-
return ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div",
|
|
9226
|
+
return ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_edit_masked_textvue_type_template_id_75b47890_scoped_true_hoisted_1, [
|
|
9189
9227
|
(0,external_vue_.createVNode)(_component_v_row, { "no-gutters": "" }, {
|
|
9190
9228
|
default: (0,external_vue_.withCtx)(() => [
|
|
9191
9229
|
(_ctx.label)
|
|
@@ -9217,7 +9255,8 @@ function ld_edit_masked_textvue_type_template_id_9d94ad66_scoped_true_render(_ct
|
|
|
9217
9255
|
readonly: _ctx.readonly,
|
|
9218
9256
|
"onAccept:masked": _ctx.onInput,
|
|
9219
9257
|
onBlur: _ctx.onBlur,
|
|
9220
|
-
onClick: _ctx.onClick
|
|
9258
|
+
onClick: _ctx.onClick,
|
|
9259
|
+
onKeydown: (0,external_vue_.withKeys)(_ctx.onEnter, ["enter"])
|
|
9221
9260
|
}, {
|
|
9222
9261
|
"append-inner": (0,external_vue_.withCtx)(() => [
|
|
9223
9262
|
(_ctx.clearIcon && _ctx.text)
|
|
@@ -9234,16 +9273,16 @@ function ld_edit_masked_textvue_type_template_id_9d94ad66_scoped_true_render(_ct
|
|
|
9234
9273
|
: (0,external_vue_.createCommentVNode)("", true)
|
|
9235
9274
|
]),
|
|
9236
9275
|
_: 1
|
|
9237
|
-
}, 8, ["value", "mask", "scale", "thousands-separator", "signed", "mapToRadix", "placeholder", "disabled", "readonly", "onAccept:masked", "onBlur", "onClick"]),
|
|
9276
|
+
}, 8, ["value", "mask", "scale", "thousands-separator", "signed", "mapToRadix", "placeholder", "disabled", "readonly", "onAccept:masked", "onBlur", "onClick", "onKeydown"]),
|
|
9238
9277
|
_cache[3] || (_cache[3] = (0,external_vue_.createTextVNode)()),
|
|
9239
9278
|
(!_ctx.hideDetails)
|
|
9240
|
-
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div",
|
|
9279
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_edit_masked_textvue_type_template_id_75b47890_scoped_true_hoisted_2, [
|
|
9241
9280
|
(0,external_vue_.createVNode)(external_vue_.Transition, { name: "squash" }, {
|
|
9242
9281
|
default: (0,external_vue_.withCtx)(() => [
|
|
9243
9282
|
(_ctx.warningHint)
|
|
9244
|
-
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("span",
|
|
9283
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("span", ld_edit_masked_textvue_type_template_id_75b47890_scoped_true_hoisted_3, (0,external_vue_.toDisplayString)(_ctx.validationMessage), 1))
|
|
9245
9284
|
: (_ctx.inputHint && _ctx.persistentHint)
|
|
9246
|
-
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("span",
|
|
9285
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("span", ld_edit_masked_textvue_type_template_id_75b47890_scoped_true_hoisted_4, (0,external_vue_.toDisplayString)(_ctx.inputHint), 1))
|
|
9247
9286
|
: (0,external_vue_.createCommentVNode)("", true)
|
|
9248
9287
|
]),
|
|
9249
9288
|
_: 1
|
|
@@ -9258,7 +9297,7 @@ function ld_edit_masked_textvue_type_template_id_9d94ad66_scoped_true_render(_ct
|
|
|
9258
9297
|
})
|
|
9259
9298
|
]))
|
|
9260
9299
|
}
|
|
9261
|
-
;// ./src/ld-edit-masked-text/ld-edit-masked-text.vue?vue&type=template&id=
|
|
9300
|
+
;// ./src/ld-edit-masked-text/ld-edit-masked-text.vue?vue&type=template&id=75b47890&scoped=true
|
|
9262
9301
|
|
|
9263
9302
|
// EXTERNAL MODULE: external "./lib/imask.js"
|
|
9264
9303
|
var imask_js_ = __webpack_require__(6203);
|
|
@@ -9289,6 +9328,9 @@ let EditMaskedTextComponent = class EditMaskedTextComponent extends (0,external_
|
|
|
9289
9328
|
emitUpdateModelValue(value) {
|
|
9290
9329
|
return value;
|
|
9291
9330
|
}
|
|
9331
|
+
emitEnter() {
|
|
9332
|
+
return true;
|
|
9333
|
+
}
|
|
9292
9334
|
onTextChanged() {
|
|
9293
9335
|
this.internalValue = this.modelValue ? String(this.modelValue) : '';
|
|
9294
9336
|
this.validate();
|
|
@@ -9313,8 +9355,15 @@ let EditMaskedTextComponent = class EditMaskedTextComponent extends (0,external_
|
|
|
9313
9355
|
this.validationMessage = '';
|
|
9314
9356
|
}
|
|
9315
9357
|
onInput(e) {
|
|
9316
|
-
|
|
9317
|
-
|
|
9358
|
+
if (!this.beautify) {
|
|
9359
|
+
const emitData = e?.length ? e?.replace(/\s|(-)/g, '') : null;
|
|
9360
|
+
this.emitUpdateModelValue(emitData);
|
|
9361
|
+
return;
|
|
9362
|
+
}
|
|
9363
|
+
this.emitUpdateModelValue(e?.length ? e : null);
|
|
9364
|
+
}
|
|
9365
|
+
onEnter() {
|
|
9366
|
+
this.emitEnter();
|
|
9318
9367
|
}
|
|
9319
9368
|
validate() {
|
|
9320
9369
|
let funcResult = null;
|
|
@@ -9369,6 +9418,10 @@ ld_edit_masked_textvue_type_script_lang_js_external_decorate([
|
|
|
9369
9418
|
(0,external_vue_property_decorator_.Prop)({ default: false, type: Boolean }),
|
|
9370
9419
|
ld_edit_masked_textvue_type_script_lang_js_external_metadata("design:type", Boolean)
|
|
9371
9420
|
], EditMaskedTextComponent.prototype, "clearIcon", void 0);
|
|
9421
|
+
ld_edit_masked_textvue_type_script_lang_js_external_decorate([
|
|
9422
|
+
(0,external_vue_property_decorator_.Prop)({ type: Boolean, default: false }),
|
|
9423
|
+
ld_edit_masked_textvue_type_script_lang_js_external_metadata("design:type", Boolean)
|
|
9424
|
+
], EditMaskedTextComponent.prototype, "beautify", void 0);
|
|
9372
9425
|
ld_edit_masked_textvue_type_script_lang_js_external_decorate([
|
|
9373
9426
|
(0,external_vue_property_decorator_.Prop)(),
|
|
9374
9427
|
ld_edit_masked_textvue_type_script_lang_js_external_metadata("design:type", String)
|
|
@@ -9387,6 +9440,12 @@ ld_edit_masked_textvue_type_script_lang_js_external_decorate([
|
|
|
9387
9440
|
ld_edit_masked_textvue_type_script_lang_js_external_metadata("design:paramtypes", [String]),
|
|
9388
9441
|
ld_edit_masked_textvue_type_script_lang_js_external_metadata("design:returntype", void 0)
|
|
9389
9442
|
], EditMaskedTextComponent.prototype, "emitUpdateModelValue", null);
|
|
9443
|
+
ld_edit_masked_textvue_type_script_lang_js_external_decorate([
|
|
9444
|
+
Emit('enter'),
|
|
9445
|
+
ld_edit_masked_textvue_type_script_lang_js_external_metadata("design:type", Function),
|
|
9446
|
+
ld_edit_masked_textvue_type_script_lang_js_external_metadata("design:paramtypes", []),
|
|
9447
|
+
ld_edit_masked_textvue_type_script_lang_js_external_metadata("design:returntype", void 0)
|
|
9448
|
+
], EditMaskedTextComponent.prototype, "emitEnter", null);
|
|
9390
9449
|
ld_edit_masked_textvue_type_script_lang_js_external_decorate([
|
|
9391
9450
|
(0,external_vue_property_decorator_.Watch)('modelValue'),
|
|
9392
9451
|
ld_edit_masked_textvue_type_script_lang_js_external_metadata("design:type", Function),
|
|
@@ -9413,7 +9472,7 @@ EditMaskedTextComponent = ld_edit_masked_textvue_type_script_lang_js_external_de
|
|
|
9413
9472
|
;
|
|
9414
9473
|
|
|
9415
9474
|
|
|
9416
|
-
const ld_edit_masked_text_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_edit_masked_textvue_type_script_lang_js_external, [['render',
|
|
9475
|
+
const ld_edit_masked_text_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_edit_masked_textvue_type_script_lang_js_external, [['render',ld_edit_masked_textvue_type_template_id_75b47890_scoped_true_render],['__scopeId',"data-v-75b47890"]])
|
|
9417
9476
|
|
|
9418
9477
|
/* harmony default export */ const ld_edit_masked_text = (ld_edit_masked_text_exports_);
|
|
9419
9478
|
;// ./src/ld-edit-masked-text/index.ts
|
|
@@ -9423,33 +9482,33 @@ function ld_edit_masked_text_reg(vue, options) {
|
|
|
9423
9482
|
}
|
|
9424
9483
|
/* harmony default export */ const src_ld_edit_masked_text = (ld_edit_masked_text_reg);
|
|
9425
9484
|
|
|
9426
|
-
;// ./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=
|
|
9485
|
+
;// ./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=222e429e&scoped=true&ts=true
|
|
9427
9486
|
|
|
9428
|
-
const
|
|
9429
|
-
const
|
|
9430
|
-
const
|
|
9431
|
-
const
|
|
9487
|
+
const ld_edit_textvue_type_template_id_222e429e_scoped_true_ts_true_hoisted_1 = { class: "ld-edit-text" };
|
|
9488
|
+
const ld_edit_textvue_type_template_id_222e429e_scoped_true_ts_true_hoisted_2 = { key: 0 };
|
|
9489
|
+
const ld_edit_textvue_type_template_id_222e429e_scoped_true_ts_true_hoisted_3 = { key: 1 };
|
|
9490
|
+
const ld_edit_textvue_type_template_id_222e429e_scoped_true_ts_true_hoisted_4 = {
|
|
9432
9491
|
key: 1,
|
|
9433
9492
|
class: "d-flex w-100 flex-column",
|
|
9434
9493
|
style: { "position": "relative", "flex-wrap": "wrap" }
|
|
9435
9494
|
};
|
|
9436
|
-
const
|
|
9495
|
+
const ld_edit_textvue_type_template_id_222e429e_scoped_true_ts_true_hoisted_5 = {
|
|
9437
9496
|
key: 0,
|
|
9438
9497
|
class: "input-class__suffix"
|
|
9439
9498
|
};
|
|
9440
|
-
const
|
|
9499
|
+
const ld_edit_textvue_type_template_id_222e429e_scoped_true_ts_true_hoisted_6 = {
|
|
9441
9500
|
key: 1,
|
|
9442
9501
|
class: "v-input__details"
|
|
9443
9502
|
};
|
|
9444
|
-
const
|
|
9503
|
+
const ld_edit_textvue_type_template_id_222e429e_scoped_true_ts_true_hoisted_7 = {
|
|
9445
9504
|
key: 0,
|
|
9446
9505
|
class: "error--text"
|
|
9447
9506
|
};
|
|
9448
|
-
const
|
|
9507
|
+
const ld_edit_textvue_type_template_id_222e429e_scoped_true_ts_true_hoisted_8 = {
|
|
9449
9508
|
key: 1,
|
|
9450
9509
|
class: "grey--text"
|
|
9451
9510
|
};
|
|
9452
|
-
function
|
|
9511
|
+
function ld_edit_textvue_type_template_id_222e429e_scoped_true_ts_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9453
9512
|
const _component_ld_label = (0,external_vue_.resolveComponent)("ld-label");
|
|
9454
9513
|
const _component_ld_icon = (0,external_vue_.resolveComponent)("ld-icon");
|
|
9455
9514
|
const _component_square_button = (0,external_vue_.resolveComponent)("square-button");
|
|
@@ -9458,7 +9517,7 @@ function ld_edit_textvue_type_template_id_571398ce_scoped_true_ts_true_render(_c
|
|
|
9458
9517
|
const _component_imask_input = (0,external_vue_.resolveComponent)("imask-input");
|
|
9459
9518
|
const _component_v_col = (0,external_vue_.resolveComponent)("v-col");
|
|
9460
9519
|
const _component_v_row = (0,external_vue_.resolveComponent)("v-row");
|
|
9461
|
-
return ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div",
|
|
9520
|
+
return ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_edit_textvue_type_template_id_222e429e_scoped_true_ts_true_hoisted_1, [
|
|
9462
9521
|
(0,external_vue_.createVNode)(_component_v_row, { "no-gutters": "" }, {
|
|
9463
9522
|
default: (0,external_vue_.withCtx)(() => [
|
|
9464
9523
|
(_ctx.label)
|
|
@@ -9492,7 +9551,6 @@ function ld_edit_textvue_type_template_id_571398ce_scoped_true_ts_true_render(_c
|
|
|
9492
9551
|
disabled: _ctx.disabled,
|
|
9493
9552
|
readonly: _ctx.readonly,
|
|
9494
9553
|
hint: _ctx.inputHint,
|
|
9495
|
-
mask: _ctx.mask,
|
|
9496
9554
|
tabindex: _ctx.tabIndex,
|
|
9497
9555
|
maxlength: _ctx.maxlength,
|
|
9498
9556
|
autofocus: _ctx.autofocus,
|
|
@@ -9577,8 +9635,8 @@ function ld_edit_textvue_type_template_id_571398ce_scoped_true_ts_true_render(_c
|
|
|
9577
9635
|
default: (0,external_vue_.withCtx)(() => [
|
|
9578
9636
|
_cache[5] || (_cache[5] = (0,external_vue_.createTextVNode)()),
|
|
9579
9637
|
(_ctx.passwordVisible)
|
|
9580
|
-
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("span",
|
|
9581
|
-
: ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("span",
|
|
9638
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("span", ld_edit_textvue_type_template_id_222e429e_scoped_true_ts_true_hoisted_2, (0,external_vue_.toDisplayString)(_ctx.$ldmuii18n.gettext('Hide password')), 1))
|
|
9639
|
+
: ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("span", ld_edit_textvue_type_template_id_222e429e_scoped_true_ts_true_hoisted_3, (0,external_vue_.toDisplayString)(_ctx.$ldmuii18n.gettext('Show password')), 1))
|
|
9582
9640
|
]),
|
|
9583
9641
|
_: 1
|
|
9584
9642
|
}))
|
|
@@ -9587,8 +9645,8 @@ function ld_edit_textvue_type_template_id_571398ce_scoped_true_ts_true_render(_c
|
|
|
9587
9645
|
key: "0"
|
|
9588
9646
|
}
|
|
9589
9647
|
: undefined
|
|
9590
|
-
]), 1032, ["model-value", "type", "class", "persistent-hint", "rules", "validation-value", "placeholder", "disabled", "readonly", "hint", "
|
|
9591
|
-
: ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div",
|
|
9648
|
+
]), 1032, ["model-value", "type", "class", "persistent-hint", "rules", "validation-value", "placeholder", "disabled", "readonly", "hint", "tabindex", "maxlength", "autofocus", "hide-details", "prefix", "suffix", "clearable", "error", "error-messages", "prepend-inner-icon", "autocomplete", "onChange", "onUpdate:modelValue", "onBlur", "onFocus", "onClick", "onKeydown", "onCopy"]))
|
|
9649
|
+
: ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_edit_textvue_type_template_id_222e429e_scoped_true_ts_true_hoisted_4, [
|
|
9592
9650
|
(0,external_vue_.createVNode)(_component_imask_input, {
|
|
9593
9651
|
ref: "maskInput",
|
|
9594
9652
|
value: _ctx.value,
|
|
@@ -9612,17 +9670,17 @@ function ld_edit_textvue_type_template_id_571398ce_scoped_true_ts_true_render(_c
|
|
|
9612
9670
|
}, null, 8, ["value", "maxlength", "scale", "signed", "min", "max", "disabled", "tabindex", "class", "placeholder", "onBlur", "onClick", "onFocus", "onKeydown"]),
|
|
9613
9671
|
_cache[8] || (_cache[8] = (0,external_vue_.createTextVNode)()),
|
|
9614
9672
|
(_ctx.suffix)
|
|
9615
|
-
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div",
|
|
9673
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_edit_textvue_type_template_id_222e429e_scoped_true_ts_true_hoisted_5, (0,external_vue_.toDisplayString)(_ctx.suffix), 1))
|
|
9616
9674
|
: (0,external_vue_.createCommentVNode)("", true),
|
|
9617
9675
|
_cache[9] || (_cache[9] = (0,external_vue_.createTextVNode)()),
|
|
9618
9676
|
(!_ctx.hideDetails)
|
|
9619
|
-
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div",
|
|
9677
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_edit_textvue_type_template_id_222e429e_scoped_true_ts_true_hoisted_6, [
|
|
9620
9678
|
(0,external_vue_.createVNode)(external_vue_.Transition, { name: "squash" }, {
|
|
9621
9679
|
default: (0,external_vue_.withCtx)(() => [
|
|
9622
9680
|
(_ctx.showError)
|
|
9623
|
-
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("span",
|
|
9681
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("span", ld_edit_textvue_type_template_id_222e429e_scoped_true_ts_true_hoisted_7, (0,external_vue_.toDisplayString)(_ctx.validationMessage), 1))
|
|
9624
9682
|
: (_ctx.inputHint && _ctx.persistentHint)
|
|
9625
|
-
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("span",
|
|
9683
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("span", ld_edit_textvue_type_template_id_222e429e_scoped_true_ts_true_hoisted_8, (0,external_vue_.toDisplayString)(_ctx.inputHint), 1))
|
|
9626
9684
|
: (0,external_vue_.createCommentVNode)("", true)
|
|
9627
9685
|
]),
|
|
9628
9686
|
_: 1
|
|
@@ -9639,7 +9697,7 @@ function ld_edit_textvue_type_template_id_571398ce_scoped_true_ts_true_render(_c
|
|
|
9639
9697
|
]));
|
|
9640
9698
|
}
|
|
9641
9699
|
|
|
9642
|
-
;// ./src/ld-edit-text/ld-edit-text.vue?vue&type=template&id=
|
|
9700
|
+
;// ./src/ld-edit-text/ld-edit-text.vue?vue&type=template&id=222e429e&scoped=true&ts=true
|
|
9643
9701
|
|
|
9644
9702
|
;// ./node_modules/ts-loader/index.js??clonedRuleSet-1.use!./src/ld-edit-text/ld-edit-text.ts?vue&type=script&lang=ts&external
|
|
9645
9703
|
var ld_edit_textvue_type_script_lang_ts_external_decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
@@ -9864,10 +9922,6 @@ ld_edit_textvue_type_script_lang_ts_external_decorate([
|
|
|
9864
9922
|
(0,external_vue_property_decorator_.Prop)(),
|
|
9865
9923
|
ld_edit_textvue_type_script_lang_ts_external_metadata("design:type", String)
|
|
9866
9924
|
], EditTextComponent.prototype, "inputHint", void 0);
|
|
9867
|
-
ld_edit_textvue_type_script_lang_ts_external_decorate([
|
|
9868
|
-
(0,external_vue_property_decorator_.Prop)(),
|
|
9869
|
-
ld_edit_textvue_type_script_lang_ts_external_metadata("design:type", String)
|
|
9870
|
-
], EditTextComponent.prototype, "mask", void 0);
|
|
9871
9925
|
ld_edit_textvue_type_script_lang_ts_external_decorate([
|
|
9872
9926
|
(0,external_vue_property_decorator_.Prop)(),
|
|
9873
9927
|
ld_edit_textvue_type_script_lang_ts_external_metadata("design:type", Object)
|
|
@@ -10006,7 +10060,7 @@ EditTextComponent = ld_edit_textvue_type_script_lang_ts_external_decorate([
|
|
|
10006
10060
|
;
|
|
10007
10061
|
|
|
10008
10062
|
|
|
10009
|
-
const ld_edit_text_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_edit_textvue_type_script_lang_ts_external, [['render',
|
|
10063
|
+
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_222e429e_scoped_true_ts_true_render],['__scopeId',"data-v-222e429e"]])
|
|
10010
10064
|
|
|
10011
10065
|
/* harmony default export */ const ld_edit_text = (ld_edit_text_exports_);
|
|
10012
10066
|
;// ./src/ld-edit-text/index.ts
|
|
@@ -14325,10 +14379,13 @@ class TimeComponent extends (0,external_vue_class_component_.mixins)(Validatable
|
|
|
14325
14379
|
return;
|
|
14326
14380
|
}
|
|
14327
14381
|
if (this.testTime(value)) {
|
|
14328
|
-
const [h, m] = value.split(':')
|
|
14329
|
-
this.h
|
|
14330
|
-
|
|
14331
|
-
|
|
14382
|
+
const [h, m] = value.split(':');
|
|
14383
|
+
if (this.testH(h) && this.testM(m)) {
|
|
14384
|
+
const [hh, mm] = [h, m].map(i => Number(i));
|
|
14385
|
+
this.h = datetime.beautify(hh);
|
|
14386
|
+
this.m = datetime.beautify(mm);
|
|
14387
|
+
return;
|
|
14388
|
+
}
|
|
14332
14389
|
}
|
|
14333
14390
|
this.h = '00';
|
|
14334
14391
|
this.m = '00';
|
|
@@ -14472,7 +14529,7 @@ class TimeComponent extends (0,external_vue_class_component_.mixins)(Validatable
|
|
|
14472
14529
|
if (/[2]/.test(value[0]) && /[0123]/.test(value[1])) {
|
|
14473
14530
|
return value;
|
|
14474
14531
|
}
|
|
14475
|
-
return
|
|
14532
|
+
return '';
|
|
14476
14533
|
}
|
|
14477
14534
|
}
|
|
14478
14535
|
testM(value) {
|
|
@@ -19652,10 +19709,9 @@ let DatepickerComponent = class DatepickerComponent extends (0,external_vue_clas
|
|
|
19652
19709
|
if (!this.date && !this.currentMinDate) {
|
|
19653
19710
|
this.currentMinDate = new Date(newVal);
|
|
19654
19711
|
}
|
|
19655
|
-
if (this.date &&
|
|
19656
|
-
|
|
19657
|
-
|
|
19658
|
-
this.currentMinDate = new Date(d);
|
|
19712
|
+
if (this.date &&
|
|
19713
|
+
datetime.compare(new Date(this.date.getFullYear(), this.date.getMonth(), this.date.getDate(), 0, 0, 0, 0), new Date(newVal.getFullYear(), newVal.getMonth(), newVal.getDate(), 0, 0, 0, 0)) > -1) {
|
|
19714
|
+
this.currentMinDate = new Date(newVal);
|
|
19659
19715
|
}
|
|
19660
19716
|
}
|
|
19661
19717
|
async onCurrentMinDateChanged(newVal) {
|
|
@@ -19672,10 +19728,9 @@ let DatepickerComponent = class DatepickerComponent extends (0,external_vue_clas
|
|
|
19672
19728
|
if (!this.date && !this.currentMaxDate) {
|
|
19673
19729
|
this.currentMaxDate = new Date(newVal);
|
|
19674
19730
|
}
|
|
19675
|
-
if (this.date &&
|
|
19676
|
-
|
|
19677
|
-
|
|
19678
|
-
this.currentMaxDate = new Date(d);
|
|
19731
|
+
if (this.date &&
|
|
19732
|
+
datetime.compare(new Date(this.date.getFullYear(), this.date.getMonth(), this.date.getDate(), 0, 0, 0, 0), new Date(newVal.getFullYear(), newVal.getMonth(), newVal.getDate(), 0, 0, 0, 0)) < 1) {
|
|
19733
|
+
this.currentMaxDate = new Date(newVal);
|
|
19679
19734
|
}
|
|
19680
19735
|
}
|
|
19681
19736
|
async onCurrentMaxDateChanged(newVal) {
|
|
@@ -19720,7 +19775,7 @@ let DatepickerComponent = class DatepickerComponent extends (0,external_vue_clas
|
|
|
19720
19775
|
Y: {
|
|
19721
19776
|
mask: IMask.MaskedRange,
|
|
19722
19777
|
from: 1900,
|
|
19723
|
-
to:
|
|
19778
|
+
to: 9999,
|
|
19724
19779
|
},
|
|
19725
19780
|
},
|
|
19726
19781
|
format: date => this.formatDate(date),
|
package/dist/lib/floating.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function webpackUniversalModuleDefinition(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t():"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["ldmui"]=t():e["ldmui"]=t()})(self,(()=>(()=>{"use strict";var e={};(()=>{e.d=(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})}})(),(()=>{e.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{e.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})();var t={};e.r(t),e.d(t,{arrow:()=>v,autoPlacement:()=>m,autoUpdate:()=>autoUpdate,computePosition:()=>floating_ui_dom_esm_computePosition,detectOverflow:()=>detectOverflow,flip:()=>h,getOverflowAncestors:()=>getOverflowAncestors,hide:()=>w,inline:()=>x,limitShift:()=>b,offset:()=>offset,platform:()=>d,shift:()=>p,size:()=>y});const n=["top","right","bottom","left"],o=["start","end"],i=n.reduce(((e,t)=>e.concat(t,t+"-"+o[0],t+"-"+o[1])),[]),r=Math.min,l=Math.max,s=Math.round,c=Math.floor,createCoords=e=>({x:e,y:e}),a={left:"right",right:"left",bottom:"top",top:"bottom"},f={start:"end",end:"start"};function clamp(e,t,n){return l(e,r(t,n))}function evaluate(e,t){return"function"===typeof e?e(t):e}function getSide(e){return e.split("-")[0]}function getAlignment(e){return e.split("-")[1]}function getOppositeAxis(e){return"x"===e?"y":"x"}function getAxisLength(e){return"y"===e?"height":"width"}function getSideAxis(e){return["top","bottom"].includes(getSide(e))?"y":"x"}function getAlignmentAxis(e){return getOppositeAxis(getSideAxis(e))}function getAlignmentSides(e,t,n){void 0===n&&(n=!1);const o=getAlignment(e),i=getAlignmentAxis(e),r=getAxisLength(i);let l="x"===i?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[r]>t.floating[r]&&(l=getOppositePlacement(l)),[l,getOppositePlacement(l)]}function getExpandedPlacements(e){const t=getOppositePlacement(e);return[getOppositeAlignmentPlacement(e),t,getOppositeAlignmentPlacement(t)]}function getOppositeAlignmentPlacement(e){return e.replace(/start|end/g,(e=>f[e]))}function getSideList(e,t,n){const o=["left","right"],i=["right","left"],r=["top","bottom"],l=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:o:t?o:i;case"left":case"right":return t?r:l;default:return[]}}function getOppositeAxisPlacements(e,t,n,o){const i=getAlignment(e);let r=getSideList(getSide(e),"start"===n,o);return i&&(r=r.map((e=>e+"-"+i)),t&&(r=r.concat(r.map(getOppositeAlignmentPlacement)))),r}function getOppositePlacement(e){return e.replace(/left|right|bottom|top/g,(e=>a[e]))}function expandPaddingObject(e){return{top:0,right:0,bottom:0,left:0,...e}}function getPaddingObject(e){return"number"!==typeof e?expandPaddingObject(e):{top:e,right:e,bottom:e,left:e}}function rectToClientRect(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function computeCoordsFromPlacement(e,t,n){let{reference:o,floating:i}=e;const r=getSideAxis(t),l=getAlignmentAxis(t),s=getAxisLength(l),c=getSide(t),a="y"===r,f=o.x+o.width/2-i.width/2,g=o.y+o.height/2-i.height/2,u=o[s]/2-i[s]/2;let d;switch(c){case"top":d={x:f,y:o.y-i.height};break;case"bottom":d={x:f,y:o.y+o.height};break;case"right":d={x:o.x+o.width,y:g};break;case"left":d={x:o.x-i.width,y:g};break;default:d={x:o.x,y:o.y}}switch(getAlignment(t)){case"start":d[l]-=u*(n&&a?-1:1);break;case"end":d[l]+=u*(n&&a?-1:1);break}return d}const computePosition=async(e,t,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:l}=n,s=r.filter(Boolean),c=await(null==l.isRTL?void 0:l.isRTL(t));let a=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:f,y:g}=computeCoordsFromPlacement(a,o,c),u=o,d={},m=0;for(let n=0;n<s.length;n++){const{name:r,fn:p}=s[n],{x:h,y,data:w,reset:v}=await p({x:f,y:g,initialPlacement:o,placement:u,strategy:i,middlewareData:d,rects:a,platform:l,elements:{reference:e,floating:t}});f=null!=h?h:f,g=null!=y?y:g,d={...d,[r]:{...d[r],...w}},v&&m<=50&&(m++,"object"===typeof v&&(v.placement&&(u=v.placement),v.rects&&(a=!0===v.rects?await l.getElementRects({reference:e,floating:t,strategy:i}):v.rects),({x:f,y:g}=computeCoordsFromPlacement(a,u,c))),n=-1)}return{x:f,y:g,placement:u,strategy:i,middlewareData:d}};async function detectOverflow(e,t){var n;void 0===t&&(t={});const{x:o,y:i,platform:r,rects:l,elements:s,strategy:c}=e,{boundary:a="clippingAncestors",rootBoundary:f="viewport",elementContext:g="floating",altBoundary:u=!1,padding:d=0}=evaluate(t,e),m=getPaddingObject(d),p="floating"===g?"reference":"floating",h=s[u?p:g],y=rectToClientRect(await r.getClippingRect({element:null==(n=await(null==r.isElement?void 0:r.isElement(h)))||n?h:h.contextElement||await(null==r.getDocumentElement?void 0:r.getDocumentElement(s.floating)),boundary:a,rootBoundary:f,strategy:c})),w="floating"===g?{...l.floating,x:o,y:i}:l.reference,v=await(null==r.getOffsetParent?void 0:r.getOffsetParent(s.floating)),x=await(null==r.isElement?void 0:r.isElement(v))&&await(null==r.getScale?void 0:r.getScale(v))||{x:1,y:1},b=rectToClientRect(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:w,offsetParent:v,strategy:c}):w);return{top:(y.top-b.top+m.top)/x.y,bottom:(b.bottom-y.bottom+m.bottom)/x.y,left:(y.left-b.left+m.left)/x.x,right:(b.right-y.right+m.right)/x.x}}const arrow=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:i,rects:l,platform:s,elements:c,middlewareData:a}=t,{element:f,padding:g=0}=evaluate(e,t)||{};if(null==f)return{};const u=getPaddingObject(g),d={x:n,y:o},m=getAlignmentAxis(i),p=getAxisLength(m),h=await s.getDimensions(f),y="y"===m,w=y?"top":"left",v=y?"bottom":"right",x=y?"clientHeight":"clientWidth",b=l.reference[p]+l.reference[m]-d[m]-l.floating[p],A=d[m]-l.reference[m],R=await(null==s.getOffsetParent?void 0:s.getOffsetParent(f));let O=R?R[x]:0;O&&await(null==s.isElement?void 0:s.isElement(R))||(O=c.floating[x]||l.floating[p]);const S=b/2-A/2,C=O/2-h[p]/2-1,E=r(u[w],C),T=r(u[v],C),P=E,L=O-h[p]-T,N=O/2-h[p]/2+S,D=clamp(P,N,L),B=!a.arrow&&null!=getAlignment(i)&&N!==D&&l.reference[p]/2-(N<P?E:T)-h[p]/2<0,W=B?N<P?N-P:N-L:0;return{[m]:d[m]+W,data:{[m]:D,centerOffset:N-D-W,...B&&{alignmentOffset:W}},reset:B}}});function getPlacementList(e,t,n){const o=e?[...n.filter((t=>getAlignment(t)===e)),...n.filter((t=>getAlignment(t)!==e))]:n.filter((e=>getSide(e)===e));return o.filter((n=>!e||(getAlignment(n)===e||!!t&&getOppositeAlignmentPlacement(n)!==n)))}const autoPlacement=function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,o,r;const{rects:l,middlewareData:s,placement:c,platform:a,elements:f}=t,{crossAxis:g=!1,alignment:u,allowedPlacements:d=i,autoAlignment:m=!0,...p}=evaluate(e,t),h=void 0!==u||d===i?getPlacementList(u||null,m,d):d,y=await detectOverflow(t,p),w=(null==(n=s.autoPlacement)?void 0:n.index)||0,v=h[w];if(null==v)return{};const x=getAlignmentSides(v,l,await(null==a.isRTL?void 0:a.isRTL(f.floating)));if(c!==v)return{reset:{placement:h[0]}};const b=[y[getSide(v)],y[x[0]],y[x[1]]],A=[...(null==(o=s.autoPlacement)?void 0:o.overflows)||[],{placement:v,overflows:b}],R=h[w+1];if(R)return{data:{index:w+1,overflows:A},reset:{placement:R}};const O=A.map((e=>{const t=getAlignment(e.placement);return[e.placement,t&&g?e.overflows.slice(0,2).reduce(((e,t)=>e+t),0):e.overflows[0],e.overflows]})).sort(((e,t)=>e[1]-t[1])),S=O.filter((e=>e[2].slice(0,getAlignment(e[0])?2:3).every((e=>e<=0)))),C=(null==(r=S[0])?void 0:r[0])||O[0][0];return C!==c?{data:{index:w+1,overflows:A},reset:{placement:C}}:{}}}},flip=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:i,middlewareData:r,rects:l,initialPlacement:s,platform:c,elements:a}=t,{mainAxis:f=!0,crossAxis:g=!0,fallbackPlacements:u,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:p=!0,...h}=evaluate(e,t);if(null!=(n=r.arrow)&&n.alignmentOffset)return{};const y=getSide(i),w=getSide(s)===s,v=await(null==c.isRTL?void 0:c.isRTL(a.floating)),x=u||(w||!p?[getOppositePlacement(s)]:getExpandedPlacements(s));u||"none"===m||x.push(...getOppositeAxisPlacements(s,p,m,v));const b=[s,...x],A=await detectOverflow(t,h),R=[];let O=(null==(o=r.flip)?void 0:o.overflows)||[];if(f&&R.push(A[y]),g){const e=getAlignmentSides(i,l,v);R.push(A[e[0]],A[e[1]])}if(O=[...O,{placement:i,overflows:R}],!R.every((e=>e<=0))){var S,C;const e=((null==(S=r.flip)?void 0:S.index)||0)+1,t=b[e];if(t)return{data:{index:e,overflows:O},reset:{placement:t}};let n=null==(C=O.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:C.placement;if(!n)switch(d){case"bestFit":{var E;const e=null==(E=O.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:E[0];e&&(n=e);break}case"initialPlacement":n=s;break}if(i!==n)return{reset:{placement:n}}}return{}}}};function getSideOffsets(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function isAnySideFullyClipped(e){return n.some((t=>e[t]>=0))}const hide=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...i}=evaluate(e,t);switch(o){case"referenceHidden":{const e=await detectOverflow(t,{...i,elementContext:"reference"}),o=getSideOffsets(e,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:isAnySideFullyClipped(o)}}}case"escaped":{const e=await detectOverflow(t,{...i,altBoundary:!0}),o=getSideOffsets(e,n.floating);return{data:{escapedOffsets:o,escaped:isAnySideFullyClipped(o)}}}default:return{}}}}};function getBoundingRect(e){const t=r(...e.map((e=>e.left))),n=r(...e.map((e=>e.top))),o=l(...e.map((e=>e.right))),i=l(...e.map((e=>e.bottom)));return{x:t,y:n,width:o-t,height:i-n}}function getRectsByLine(e){const t=e.slice().sort(((e,t)=>e.y-t.y)),n=[];let o=null;for(let e=0;e<t.length;e++){const i=t[e];!o||i.y-o.y>o.height/2?n.push([i]):n[n.length-1].push(i),o=i}return n.map((e=>rectToClientRect(getBoundingRect(e))))}const inline=function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){const{placement:n,elements:o,rects:i,platform:s,strategy:c}=t,{padding:a=2,x:f,y:g}=evaluate(e,t),u=Array.from(await(null==s.getClientRects?void 0:s.getClientRects(o.reference))||[]),d=getRectsByLine(u),m=rectToClientRect(getBoundingRect(u)),p=getPaddingObject(a);function getBoundingClientRect(){if(2===d.length&&d[0].left>d[1].right&&null!=f&&null!=g)return d.find((e=>f>e.left-p.left&&f<e.right+p.right&&g>e.top-p.top&&g<e.bottom+p.bottom))||m;if(d.length>=2){if("y"===getSideAxis(n)){const e=d[0],t=d[d.length-1],o="top"===getSide(n),i=e.top,r=t.bottom,l=o?e.left:t.left,s=o?e.right:t.right,c=s-l,a=r-i;return{top:i,bottom:r,left:l,right:s,width:c,height:a,x:l,y:i}}const e="left"===getSide(n),t=l(...d.map((e=>e.right))),o=r(...d.map((e=>e.left))),i=d.filter((n=>e?n.left===o:n.right===t)),s=i[0].top,c=i[i.length-1].bottom,a=o,f=t,g=f-a,u=c-s;return{top:s,bottom:c,left:a,right:f,width:g,height:u,x:a,y:s}}return m}const h=await s.getElementRects({reference:{getBoundingClientRect},floating:o.floating,strategy:c});return i.reference.x!==h.reference.x||i.reference.y!==h.reference.y||i.reference.width!==h.reference.width||i.reference.height!==h.reference.height?{reset:{rects:h}}:{}}}};async function convertValueToCoords(e,t){const{placement:n,platform:o,elements:i}=e,r=await(null==o.isRTL?void 0:o.isRTL(i.floating)),l=getSide(n),s=getAlignment(n),c="y"===getSideAxis(n),a=["left","top"].includes(l)?-1:1,f=r&&c?-1:1,g=evaluate(t,e);let{mainAxis:u,crossAxis:d,alignmentAxis:m}="number"===typeof g?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...g};return s&&"number"===typeof m&&(d="end"===s?-1*m:m),c?{x:d*f,y:u*a}:{x:u*a,y:d*f}}const offset=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:i,y:r,placement:l,middlewareData:s}=t,c=await convertValueToCoords(t,e);return l===(null==(n=s.offset)?void 0:n.placement)&&null!=(o=s.arrow)&&o.alignmentOffset?{}:{x:i+c.x,y:r+c.y,data:{...c,placement:l}}}}},shift=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:i}=t,{mainAxis:r=!0,crossAxis:l=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=evaluate(e,t),a={x:n,y:o},f=await detectOverflow(t,c),g=getSideAxis(getSide(i)),u=getOppositeAxis(g);let d=a[u],m=a[g];if(r){const e="y"===u?"top":"left",t="y"===u?"bottom":"right",n=d+f[e],o=d-f[t];d=clamp(n,d,o)}if(l){const e="y"===g?"top":"left",t="y"===g?"bottom":"right",n=m+f[e],o=m-f[t];m=clamp(n,m,o)}const p=s.fn({...t,[u]:d,[g]:m});return{...p,data:{x:p.x-n,y:p.y-o}}}}},limitShift=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:i,rects:r,middlewareData:l}=t,{offset:s=0,mainAxis:c=!0,crossAxis:a=!0}=evaluate(e,t),f={x:n,y:o},g=getSideAxis(i),u=getOppositeAxis(g);let d=f[u],m=f[g];const p=evaluate(s,t),h="number"===typeof p?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(c){const e="y"===u?"height":"width",t=r.reference[u]-r.floating[e]+h.mainAxis,n=r.reference[u]+r.reference[e]-h.mainAxis;d<t?d=t:d>n&&(d=n)}if(a){var y,w;const e="y"===u?"width":"height",t=["top","left"].includes(getSide(i)),n=r.reference[g]-r.floating[e]+(t&&(null==(y=l.offset)?void 0:y[g])||0)+(t?0:h.crossAxis),o=r.reference[g]+r.reference[e]+(t?0:(null==(w=l.offset)?void 0:w[g])||0)-(t?h.crossAxis:0);m<n?m=n:m>o&&(m=o)}return{[u]:d,[g]:m}}}},size=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:o,platform:i,elements:s}=t,{apply:c=(()=>{}),...a}=evaluate(e,t),f=await detectOverflow(t,a),g=getSide(n),u=getAlignment(n),d="y"===getSideAxis(n),{width:m,height:p}=o.floating;let h,y;"top"===g||"bottom"===g?(h=g,y=u===(await(null==i.isRTL?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(y=g,h="end"===u?"top":"bottom");const w=p-f[h],v=m-f[y],x=!t.middlewareData.shift;let b=w,A=v;if(d){const e=m-f.left-f.right;A=u||x?r(v,e):e}else{const e=p-f.top-f.bottom;b=u||x?r(w,e):e}if(x&&!u){const e=l(f.left,0),t=l(f.right,0),n=l(f.top,0),o=l(f.bottom,0);d?A=m-2*(0!==e||0!==t?e+t:l(f.left,f.right)):b=p-2*(0!==n||0!==o?n+o:l(f.top,f.bottom))}await c({...t,availableWidth:A,availableHeight:b});const R=await i.getDimensions(s.floating);return m!==R.width||p!==R.height?{reset:{rects:!0}}:{}}}};function getNodeName(e){return isNode(e)?(e.nodeName||"").toLowerCase():"#document"}function getWindow(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function getDocumentElement(e){var t;return null==(t=(isNode(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function isNode(e){return e instanceof Node||e instanceof getWindow(e).Node}function isElement(e){return e instanceof Element||e instanceof getWindow(e).Element}function isHTMLElement(e){return e instanceof HTMLElement||e instanceof getWindow(e).HTMLElement}function isShadowRoot(e){return"undefined"!==typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof getWindow(e).ShadowRoot)}function isOverflowElement(e){const{overflow:t,overflowX:n,overflowY:o,display:i}=getComputedStyle(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(i)}function isTableElement(e){return["table","td","th"].includes(getNodeName(e))}function isContainingBlock(e){const t=isWebKit(),n=getComputedStyle(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function getContainingBlock(e){let t=getParentNode(e);while(isHTMLElement(t)&&!isLastTraversableNode(t)){if(isContainingBlock(t))return t;t=getParentNode(t)}return null}function isWebKit(){return!("undefined"===typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function isLastTraversableNode(e){return["html","body","#document"].includes(getNodeName(e))}function getComputedStyle(e){return getWindow(e).getComputedStyle(e)}function getNodeScroll(e){return isElement(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function getParentNode(e){if("html"===getNodeName(e))return e;const t=e.assignedSlot||e.parentNode||isShadowRoot(e)&&e.host||getDocumentElement(e);return isShadowRoot(t)?t.host:t}function getNearestOverflowAncestor(e){const t=getParentNode(e);return isLastTraversableNode(t)?e.ownerDocument?e.ownerDocument.body:e.body:isHTMLElement(t)&&isOverflowElement(t)?t:getNearestOverflowAncestor(t)}function getOverflowAncestors(e,t,n){var o;void 0===t&&(t=[]),void 0===n&&(n=!0);const i=getNearestOverflowAncestor(e),r=i===(null==(o=e.ownerDocument)?void 0:o.body),l=getWindow(i);return r?t.concat(l,l.visualViewport||[],isOverflowElement(i)?i:[],l.frameElement&&n?getOverflowAncestors(l.frameElement):[]):t.concat(i,getOverflowAncestors(i,[],n))}function getCssDimensions(e){const t=getComputedStyle(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const i=isHTMLElement(e),r=i?e.offsetWidth:n,l=i?e.offsetHeight:o,c=s(n)!==r||s(o)!==l;return c&&(n=r,o=l),{width:n,height:o,$:c}}function unwrapElement(e){return isElement(e)?e:e.contextElement}function getScale(e){const t=unwrapElement(e);if(!isHTMLElement(t))return createCoords(1);const n=t.getBoundingClientRect(),{width:o,height:i,$:r}=getCssDimensions(t);let l=(r?s(n.width):n.width)/o,c=(r?s(n.height):n.height)/i;return l&&Number.isFinite(l)||(l=1),c&&Number.isFinite(c)||(c=1),{x:l,y:c}}const g=createCoords(0);function getVisualOffsets(e){const t=getWindow(e);return isWebKit()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:g}function shouldAddVisualOffsets(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==getWindow(e))&&t}function getBoundingClientRect(e,t,n,o){void 0===t&&(t=!1),void 0===n&&(n=!1);const i=e.getBoundingClientRect(),r=unwrapElement(e);let l=createCoords(1);t&&(o?isElement(o)&&(l=getScale(o)):l=getScale(e));const s=shouldAddVisualOffsets(r,n,o)?getVisualOffsets(r):createCoords(0);let c=(i.left+s.x)/l.x,a=(i.top+s.y)/l.y,f=i.width/l.x,g=i.height/l.y;if(r){const e=getWindow(r),t=o&&isElement(o)?getWindow(o):o;let n=e,i=n.frameElement;while(i&&o&&t!==n){const e=getScale(i),t=i.getBoundingClientRect(),o=getComputedStyle(i),r=t.left+(i.clientLeft+parseFloat(o.paddingLeft))*e.x,l=t.top+(i.clientTop+parseFloat(o.paddingTop))*e.y;c*=e.x,a*=e.y,f*=e.x,g*=e.y,c+=r,a+=l,n=getWindow(i),i=n.frameElement}}return rectToClientRect({width:f,height:g,x:c,y:a})}const u=[":popover-open",":modal"];function isTopLayer(e){return u.some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function convertOffsetParentRelativeRectToViewportRelativeRect(e){let{elements:t,rect:n,offsetParent:o,strategy:i}=e;const r="fixed"===i,l=getDocumentElement(o),s=!!t&&isTopLayer(t.floating);if(o===l||s&&r)return n;let c={scrollLeft:0,scrollTop:0},a=createCoords(1);const f=createCoords(0),g=isHTMLElement(o);if((g||!g&&!r)&&(("body"!==getNodeName(o)||isOverflowElement(l))&&(c=getNodeScroll(o)),isHTMLElement(o))){const e=getBoundingClientRect(o);a=getScale(o),f.x=e.x+o.clientLeft,f.y=e.y+o.clientTop}return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-c.scrollLeft*a.x+f.x,y:n.y*a.y-c.scrollTop*a.y+f.y}}function getClientRects(e){return Array.from(e.getClientRects())}function getWindowScrollBarX(e){return getBoundingClientRect(getDocumentElement(e)).left+getNodeScroll(e).scrollLeft}function getDocumentRect(e){const t=getDocumentElement(e),n=getNodeScroll(e),o=e.ownerDocument.body,i=l(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),r=l(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+getWindowScrollBarX(e);const c=-n.scrollTop;return"rtl"===getComputedStyle(o).direction&&(s+=l(t.clientWidth,o.clientWidth)-i),{width:i,height:r,x:s,y:c}}function getViewportRect(e,t){const n=getWindow(e),o=getDocumentElement(e),i=n.visualViewport;let r=o.clientWidth,l=o.clientHeight,s=0,c=0;if(i){r=i.width,l=i.height;const e=isWebKit();(!e||e&&"fixed"===t)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:r,height:l,x:s,y:c}}function getInnerBoundingClientRect(e,t){const n=getBoundingClientRect(e,!0,"fixed"===t),o=n.top+e.clientTop,i=n.left+e.clientLeft,r=isHTMLElement(e)?getScale(e):createCoords(1),l=e.clientWidth*r.x,s=e.clientHeight*r.y,c=i*r.x,a=o*r.y;return{width:l,height:s,x:c,y:a}}function getClientRectFromClippingAncestor(e,t,n){let o;if("viewport"===t)o=getViewportRect(e,n);else if("document"===t)o=getDocumentRect(getDocumentElement(e));else if(isElement(t))o=getInnerBoundingClientRect(t,n);else{const n=getVisualOffsets(e);o={...t,x:t.x-n.x,y:t.y-n.y}}return rectToClientRect(o)}function hasFixedPositionAncestor(e,t){const n=getParentNode(e);return!(n===t||!isElement(n)||isLastTraversableNode(n))&&("fixed"===getComputedStyle(n).position||hasFixedPositionAncestor(n,t))}function getClippingElementAncestors(e,t){const n=t.get(e);if(n)return n;let o=getOverflowAncestors(e,[],!1).filter((e=>isElement(e)&&"body"!==getNodeName(e))),i=null;const r="fixed"===getComputedStyle(e).position;let l=r?getParentNode(e):e;while(isElement(l)&&!isLastTraversableNode(l)){const t=getComputedStyle(l),n=isContainingBlock(l);n||"fixed"!==t.position||(i=null);const s=r?!n&&!i:!n&&"static"===t.position&&!!i&&["absolute","fixed"].includes(i.position)||isOverflowElement(l)&&!n&&hasFixedPositionAncestor(e,l);s?o=o.filter((e=>e!==l)):i=t,l=getParentNode(l)}return t.set(e,o),o}function getClippingRect(e){let{element:t,boundary:n,rootBoundary:o,strategy:i}=e;const s="clippingAncestors"===n?getClippingElementAncestors(t,this._c):[].concat(n),c=[...s,o],a=c[0],f=c.reduce(((e,n)=>{const o=getClientRectFromClippingAncestor(t,n,i);return e.top=l(o.top,e.top),e.right=r(o.right,e.right),e.bottom=r(o.bottom,e.bottom),e.left=l(o.left,e.left),e}),getClientRectFromClippingAncestor(t,a,i));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function getDimensions(e){const{width:t,height:n}=getCssDimensions(e);return{width:t,height:n}}function getRectRelativeToOffsetParent(e,t,n){const o=isHTMLElement(t),i=getDocumentElement(t),r="fixed"===n,l=getBoundingClientRect(e,!0,r,t);let s={scrollLeft:0,scrollTop:0};const c=createCoords(0);if(o||!o&&!r)if(("body"!==getNodeName(t)||isOverflowElement(i))&&(s=getNodeScroll(t)),o){const e=getBoundingClientRect(t,!0,r,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&(c.x=getWindowScrollBarX(i));const a=l.left+s.scrollLeft-c.x,f=l.top+s.scrollTop-c.y;return{x:a,y:f,width:l.width,height:l.height}}function getTrueOffsetParent(e,t){return isHTMLElement(e)&&"fixed"!==getComputedStyle(e).position?t?t(e):e.offsetParent:null}function getOffsetParent(e,t){const n=getWindow(e);if(!isHTMLElement(e)||isTopLayer(e))return n;let o=getTrueOffsetParent(e,t);while(o&&isTableElement(o)&&"static"===getComputedStyle(o).position)o=getTrueOffsetParent(o,t);return o&&("html"===getNodeName(o)||"body"===getNodeName(o)&&"static"===getComputedStyle(o).position&&!isContainingBlock(o))?n:o||getContainingBlock(e)||n}const getElementRects=async function(e){const t=this.getOffsetParent||getOffsetParent,n=this.getDimensions;return{reference:getRectRelativeToOffsetParent(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}};function isRTL(e){return"rtl"===getComputedStyle(e).direction}const d={convertOffsetParentRelativeRectToViewportRelativeRect,getDocumentElement,getClippingRect,getOffsetParent,getElementRects,getClientRects,getDimensions,getScale,isElement,isRTL};function observeMove(e,t){let n,o=null;const i=getDocumentElement(e);function cleanup(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}function refresh(s,a){void 0===s&&(s=!1),void 0===a&&(a=1),cleanup();const{left:f,top:g,width:u,height:d}=e.getBoundingClientRect();if(s||t(),!u||!d)return;const m=c(g),p=c(i.clientWidth-(f+u)),h=c(i.clientHeight-(g+d)),y=c(f),w=-m+"px "+-p+"px "+-h+"px "+-y+"px",v={rootMargin:w,threshold:l(0,r(1,a))||1};let x=!0;function handleObserve(e){const t=e[0].intersectionRatio;if(t!==a){if(!x)return refresh();t?refresh(!1,t):n=setTimeout((()=>{refresh(!1,1e-7)}),100)}x=!1}try{o=new IntersectionObserver(handleObserve,{...v,root:i.ownerDocument})}catch(e){o=new IntersectionObserver(handleObserve,v)}o.observe(e)}return refresh(!0),cleanup}function autoUpdate(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:l="function"===typeof ResizeObserver,layoutShift:s="function"===typeof IntersectionObserver,animationFrame:c=!1}=o,a=unwrapElement(e),f=i||r?[...a?getOverflowAncestors(a):[],...getOverflowAncestors(t)]:[];f.forEach((e=>{i&&e.addEventListener("scroll",n,{passive:!0}),r&&e.addEventListener("resize",n)}));const g=a&&s?observeMove(a,n):null;let u,d=-1,m=null;l&&(m=new ResizeObserver((e=>{let[o]=e;o&&o.target===a&&m&&(m.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame((()=>{var e;null==(e=m)||e.observe(t)}))),n()})),a&&!c&&m.observe(a),m.observe(t));let p=c?getBoundingClientRect(e):null;function frameLoop(){const t=getBoundingClientRect(e);!p||t.x===p.x&&t.y===p.y&&t.width===p.width&&t.height===p.height||n(),p=t,u=requestAnimationFrame(frameLoop)}return c&&frameLoop(),n(),()=>{var e;f.forEach((e=>{i&&e.removeEventListener("scroll",n),r&&e.removeEventListener("resize",n)})),null==g||g(),null==(e=m)||e.disconnect(),m=null,c&&cancelAnimationFrame(u)}}const m=autoPlacement,p=shift,h=flip,y=size,w=hide,v=arrow,x=inline,b=limitShift,floating_ui_dom_esm_computePosition=(e,t,n)=>{const o=new Map,i={platform:d,...n},r={...i.platform,_c:o};return computePosition(e,t,{...i,platform:r})};return t})()));
|
|
1
|
+
(function webpackUniversalModuleDefinition(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t():"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["ldmui"]=t():e["ldmui"]=t()})(self,(()=>(()=>{"use strict";var e={};(()=>{e.d=(t,n)=>{for(var i in n)e.o(n,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:n[i]})}})(),(()=>{e.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{e.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})();var t={};e.r(t),e.d(t,{arrow:()=>x,autoPlacement:()=>p,autoUpdate:()=>autoUpdate,computePosition:()=>floating_ui_dom_esm_computePosition,detectOverflow:()=>d,flip:()=>w,getOverflowAncestors:()=>getOverflowAncestors,hide:()=>v,inline:()=>b,limitShift:()=>A,offset:()=>m,platform:()=>u,shift:()=>h,size:()=>y});const n=["top","right","bottom","left"],i=["start","end"],o=n.reduce(((e,t)=>e.concat(t,t+"-"+i[0],t+"-"+i[1])),[]),r=Math.min,l=Math.max,s=Math.round,c=Math.floor,createCoords=e=>({x:e,y:e}),a={left:"right",right:"left",bottom:"top",top:"bottom"},f={start:"end",end:"start"};function clamp(e,t,n){return l(e,r(t,n))}function evaluate(e,t){return"function"===typeof e?e(t):e}function getSide(e){return e.split("-")[0]}function getAlignment(e){return e.split("-")[1]}function getOppositeAxis(e){return"x"===e?"y":"x"}function getAxisLength(e){return"y"===e?"height":"width"}function getSideAxis(e){return["top","bottom"].includes(getSide(e))?"y":"x"}function getAlignmentAxis(e){return getOppositeAxis(getSideAxis(e))}function getAlignmentSides(e,t,n){void 0===n&&(n=!1);const i=getAlignment(e),o=getAlignmentAxis(e),r=getAxisLength(o);let l="x"===o?i===(n?"end":"start")?"right":"left":"start"===i?"bottom":"top";return t.reference[r]>t.floating[r]&&(l=getOppositePlacement(l)),[l,getOppositePlacement(l)]}function getExpandedPlacements(e){const t=getOppositePlacement(e);return[getOppositeAlignmentPlacement(e),t,getOppositeAlignmentPlacement(t)]}function getOppositeAlignmentPlacement(e){return e.replace(/start|end/g,(e=>f[e]))}function getSideList(e,t,n){const i=["left","right"],o=["right","left"],r=["top","bottom"],l=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:i:t?i:o;case"left":case"right":return t?r:l;default:return[]}}function getOppositeAxisPlacements(e,t,n,i){const o=getAlignment(e);let r=getSideList(getSide(e),"start"===n,i);return o&&(r=r.map((e=>e+"-"+o)),t&&(r=r.concat(r.map(getOppositeAlignmentPlacement)))),r}function getOppositePlacement(e){return e.replace(/left|right|bottom|top/g,(e=>a[e]))}function expandPaddingObject(e){return{top:0,right:0,bottom:0,left:0,...e}}function getPaddingObject(e){return"number"!==typeof e?expandPaddingObject(e):{top:e,right:e,bottom:e,left:e}}function rectToClientRect(e){const{x:t,y:n,width:i,height:o}=e;return{width:i,height:o,top:n,left:t,right:t+i,bottom:n+o,x:t,y:n}}function computeCoordsFromPlacement(e,t,n){let{reference:i,floating:o}=e;const r=getSideAxis(t),l=getAlignmentAxis(t),s=getAxisLength(l),c=getSide(t),a="y"===r,f=i.x+i.width/2-o.width/2,g=i.y+i.height/2-o.height/2,u=i[s]/2-o[s]/2;let d;switch(c){case"top":d={x:f,y:i.y-o.height};break;case"bottom":d={x:f,y:i.y+i.height};break;case"right":d={x:i.x+i.width,y:g};break;case"left":d={x:i.x-o.width,y:g};break;default:d={x:i.x,y:i.y}}switch(getAlignment(t)){case"start":d[l]-=u*(n&&a?-1:1);break;case"end":d[l]+=u*(n&&a?-1:1);break}return d}const computePosition=async(e,t,n)=>{const{placement:i="bottom",strategy:o="absolute",middleware:r=[],platform:l}=n,s=r.filter(Boolean),c=await(null==l.isRTL?void 0:l.isRTL(t));let a=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:g}=computeCoordsFromPlacement(a,i,c),u=i,d={},m=0;for(let n=0;n<s.length;n++){const{name:r,fn:p}=s[n],{x:h,y:w,data:y,reset:v}=await p({x:f,y:g,initialPlacement:i,placement:u,strategy:o,middlewareData:d,rects:a,platform:l,elements:{reference:e,floating:t}});f=null!=h?h:f,g=null!=w?w:g,d={...d,[r]:{...d[r],...y}},v&&m<=50&&(m++,"object"===typeof v&&(v.placement&&(u=v.placement),v.rects&&(a=!0===v.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):v.rects),({x:f,y:g}=computeCoordsFromPlacement(a,u,c))),n=-1)}return{x:f,y:g,placement:u,strategy:o,middlewareData:d}};async function detectOverflow(e,t){var n;void 0===t&&(t={});const{x:i,y:o,platform:r,rects:l,elements:s,strategy:c}=e,{boundary:a="clippingAncestors",rootBoundary:f="viewport",elementContext:g="floating",altBoundary:u=!1,padding:d=0}=evaluate(t,e),m=getPaddingObject(d),p="floating"===g?"reference":"floating",h=s[u?p:g],w=rectToClientRect(await r.getClippingRect({element:null==(n=await(null==r.isElement?void 0:r.isElement(h)))||n?h:h.contextElement||await(null==r.getDocumentElement?void 0:r.getDocumentElement(s.floating)),boundary:a,rootBoundary:f,strategy:c})),y="floating"===g?{x:i,y:o,width:l.floating.width,height:l.floating.height}:l.reference,v=await(null==r.getOffsetParent?void 0:r.getOffsetParent(s.floating)),x=await(null==r.isElement?void 0:r.isElement(v))&&await(null==r.getScale?void 0:r.getScale(v))||{x:1,y:1},b=rectToClientRect(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:v,strategy:c}):y);return{top:(w.top-b.top+m.top)/x.y,bottom:(b.bottom-w.bottom+m.bottom)/x.y,left:(w.left-b.left+m.left)/x.x,right:(b.right-w.right+m.right)/x.x}}const arrow=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:i,placement:o,rects:l,platform:s,elements:c,middlewareData:a}=t,{element:f,padding:g=0}=evaluate(e,t)||{};if(null==f)return{};const u=getPaddingObject(g),d={x:n,y:i},m=getAlignmentAxis(o),p=getAxisLength(m),h=await s.getDimensions(f),w="y"===m,y=w?"top":"left",v=w?"bottom":"right",x=w?"clientHeight":"clientWidth",b=l.reference[p]+l.reference[m]-d[m]-l.floating[p],A=d[m]-l.reference[m],R=await(null==s.getOffsetParent?void 0:s.getOffsetParent(f));let O=R?R[x]:0;O&&await(null==s.isElement?void 0:s.isElement(R))||(O=c.floating[x]||l.floating[p]);const S=b/2-A/2,T=O/2-h[p]/2-1,E=r(u[y],T),L=r(u[v],T),C=E,P=O-h[p]-L,N=O/2-h[p]/2+S,D=clamp(C,N,P),B=!a.arrow&&null!=getAlignment(o)&&N!==D&&l.reference[p]/2-(N<C?E:L)-h[p]/2<0,W=B?N<C?N-C:N-P:0;return{[m]:d[m]+W,data:{[m]:D,centerOffset:N-D-W,...B&&{alignmentOffset:W}},reset:B}}});function getPlacementList(e,t,n){const i=e?[...n.filter((t=>getAlignment(t)===e)),...n.filter((t=>getAlignment(t)!==e))]:n.filter((e=>getSide(e)===e));return i.filter((n=>!e||(getAlignment(n)===e||!!t&&getOppositeAlignmentPlacement(n)!==n)))}const autoPlacement=function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,i,r;const{rects:l,middlewareData:s,placement:c,platform:a,elements:f}=t,{crossAxis:g=!1,alignment:u,allowedPlacements:d=o,autoAlignment:m=!0,...p}=evaluate(e,t),h=void 0!==u||d===o?getPlacementList(u||null,m,d):d,w=await detectOverflow(t,p),y=(null==(n=s.autoPlacement)?void 0:n.index)||0,v=h[y];if(null==v)return{};const x=getAlignmentSides(v,l,await(null==a.isRTL?void 0:a.isRTL(f.floating)));if(c!==v)return{reset:{placement:h[0]}};const b=[w[getSide(v)],w[x[0]],w[x[1]]],A=[...(null==(i=s.autoPlacement)?void 0:i.overflows)||[],{placement:v,overflows:b}],R=h[y+1];if(R)return{data:{index:y+1,overflows:A},reset:{placement:R}};const O=A.map((e=>{const t=getAlignment(e.placement);return[e.placement,t&&g?e.overflows.slice(0,2).reduce(((e,t)=>e+t),0):e.overflows[0],e.overflows]})).sort(((e,t)=>e[1]-t[1])),S=O.filter((e=>e[2].slice(0,getAlignment(e[0])?2:3).every((e=>e<=0)))),T=(null==(r=S[0])?void 0:r[0])||O[0][0];return T!==c?{data:{index:y+1,overflows:A},reset:{placement:T}}:{}}}},flip=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,i;const{placement:o,middlewareData:r,rects:l,initialPlacement:s,platform:c,elements:a}=t,{mainAxis:f=!0,crossAxis:g=!0,fallbackPlacements:u,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:p=!0,...h}=evaluate(e,t);if(null!=(n=r.arrow)&&n.alignmentOffset)return{};const w=getSide(o),y=getSideAxis(s),v=getSide(s)===s,x=await(null==c.isRTL?void 0:c.isRTL(a.floating)),b=u||(v||!p?[getOppositePlacement(s)]:getExpandedPlacements(s)),A="none"!==m;!u&&A&&b.push(...getOppositeAxisPlacements(s,p,m,x));const R=[s,...b],O=await detectOverflow(t,h),S=[];let T=(null==(i=r.flip)?void 0:i.overflows)||[];if(f&&S.push(O[w]),g){const e=getAlignmentSides(o,l,x);S.push(O[e[0]],O[e[1]])}if(T=[...T,{placement:o,overflows:S}],!S.every((e=>e<=0))){var E,L;const e=((null==(E=r.flip)?void 0:E.index)||0)+1,t=R[e];if(t){var C;const n="alignment"===g&&y!==getSideAxis(t),i=(null==(C=T[0])?void 0:C.overflows[0])>0;if(!n||i)return{data:{index:e,overflows:T},reset:{placement:t}}}let n=null==(L=T.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:L.placement;if(!n)switch(d){case"bestFit":{var P;const e=null==(P=T.filter((e=>{if(A){const t=getSideAxis(e.placement);return t===y||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:P[0];e&&(n=e);break}case"initialPlacement":n=s;break}if(o!==n)return{reset:{placement:n}}}return{}}}};function getSideOffsets(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function isAnySideFullyClipped(e){return n.some((t=>e[t]>=0))}const hide=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:i="referenceHidden",...o}=evaluate(e,t);switch(i){case"referenceHidden":{const e=await detectOverflow(t,{...o,elementContext:"reference"}),i=getSideOffsets(e,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:isAnySideFullyClipped(i)}}}case"escaped":{const e=await detectOverflow(t,{...o,altBoundary:!0}),i=getSideOffsets(e,n.floating);return{data:{escapedOffsets:i,escaped:isAnySideFullyClipped(i)}}}default:return{}}}}};function getBoundingRect(e){const t=r(...e.map((e=>e.left))),n=r(...e.map((e=>e.top))),i=l(...e.map((e=>e.right))),o=l(...e.map((e=>e.bottom)));return{x:t,y:n,width:i-t,height:o-n}}function getRectsByLine(e){const t=e.slice().sort(((e,t)=>e.y-t.y)),n=[];let i=null;for(let e=0;e<t.length;e++){const o=t[e];!i||o.y-i.y>i.height/2?n.push([o]):n[n.length-1].push(o),i=o}return n.map((e=>rectToClientRect(getBoundingRect(e))))}const inline=function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){const{placement:n,elements:i,rects:o,platform:s,strategy:c}=t,{padding:a=2,x:f,y:g}=evaluate(e,t),u=Array.from(await(null==s.getClientRects?void 0:s.getClientRects(i.reference))||[]),d=getRectsByLine(u),m=rectToClientRect(getBoundingRect(u)),p=getPaddingObject(a);function getBoundingClientRect(){if(2===d.length&&d[0].left>d[1].right&&null!=f&&null!=g)return d.find((e=>f>e.left-p.left&&f<e.right+p.right&&g>e.top-p.top&&g<e.bottom+p.bottom))||m;if(d.length>=2){if("y"===getSideAxis(n)){const e=d[0],t=d[d.length-1],i="top"===getSide(n),o=e.top,r=t.bottom,l=i?e.left:t.left,s=i?e.right:t.right,c=s-l,a=r-o;return{top:o,bottom:r,left:l,right:s,width:c,height:a,x:l,y:o}}const e="left"===getSide(n),t=l(...d.map((e=>e.right))),i=r(...d.map((e=>e.left))),o=d.filter((n=>e?n.left===i:n.right===t)),s=o[0].top,c=o[o.length-1].bottom,a=i,f=t,g=f-a,u=c-s;return{top:s,bottom:c,left:a,right:f,width:g,height:u,x:a,y:s}}return m}const h=await s.getElementRects({reference:{getBoundingClientRect},floating:i.floating,strategy:c});return o.reference.x!==h.reference.x||o.reference.y!==h.reference.y||o.reference.width!==h.reference.width||o.reference.height!==h.reference.height?{reset:{rects:h}}:{}}}};async function convertValueToCoords(e,t){const{placement:n,platform:i,elements:o}=e,r=await(null==i.isRTL?void 0:i.isRTL(o.floating)),l=getSide(n),s=getAlignment(n),c="y"===getSideAxis(n),a=["left","top"].includes(l)?-1:1,f=r&&c?-1:1,g=evaluate(t,e);let{mainAxis:u,crossAxis:d,alignmentAxis:m}="number"===typeof g?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return s&&"number"===typeof m&&(d="end"===s?-1*m:m),c?{x:d*f,y:u*a}:{x:u*a,y:d*f}}const offset=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,i;const{x:o,y:r,placement:l,middlewareData:s}=t,c=await convertValueToCoords(t,e);return l===(null==(n=s.offset)?void 0:n.placement)&&null!=(i=s.arrow)&&i.alignmentOffset?{}:{x:o+c.x,y:r+c.y,data:{...c,placement:l}}}}},shift=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:o}=t,{mainAxis:r=!0,crossAxis:l=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=evaluate(e,t),a={x:n,y:i},f=await detectOverflow(t,c),g=getSideAxis(getSide(o)),u=getOppositeAxis(g);let d=a[u],m=a[g];if(r){const e="y"===u?"top":"left",t="y"===u?"bottom":"right",n=d+f[e],i=d-f[t];d=clamp(n,d,i)}if(l){const e="y"===g?"top":"left",t="y"===g?"bottom":"right",n=m+f[e],i=m-f[t];m=clamp(n,m,i)}const p=s.fn({...t,[u]:d,[g]:m});return{...p,data:{x:p.x-n,y:p.y-i,enabled:{[u]:r,[g]:l}}}}}},limitShift=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:i,placement:o,rects:r,middlewareData:l}=t,{offset:s=0,mainAxis:c=!0,crossAxis:a=!0}=evaluate(e,t),f={x:n,y:i},g=getSideAxis(o),u=getOppositeAxis(g);let d=f[u],m=f[g];const p=evaluate(s,t),h="number"===typeof p?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(c){const e="y"===u?"height":"width",t=r.reference[u]-r.floating[e]+h.mainAxis,n=r.reference[u]+r.reference[e]-h.mainAxis;d<t?d=t:d>n&&(d=n)}if(a){var w,y;const e="y"===u?"width":"height",t=["top","left"].includes(getSide(o)),n=r.reference[g]-r.floating[e]+(t&&(null==(w=l.offset)?void 0:w[g])||0)+(t?0:h.crossAxis),i=r.reference[g]+r.reference[e]+(t?0:(null==(y=l.offset)?void 0:y[g])||0)-(t?h.crossAxis:0);m<n?m=n:m>i&&(m=i)}return{[u]:d,[g]:m}}}},size=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,i;const{placement:o,rects:s,platform:c,elements:a}=t,{apply:f=(()=>{}),...g}=evaluate(e,t),u=await detectOverflow(t,g),d=getSide(o),m=getAlignment(o),p="y"===getSideAxis(o),{width:h,height:w}=s.floating;let y,v;"top"===d||"bottom"===d?(y=d,v=m===(await(null==c.isRTL?void 0:c.isRTL(a.floating))?"start":"end")?"left":"right"):(v=d,y="end"===m?"top":"bottom");const x=w-u.top-u.bottom,b=h-u.left-u.right,A=r(w-u[y],x),R=r(h-u[v],b),O=!t.middlewareData.shift;let S=A,T=R;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(T=b),null!=(i=t.middlewareData.shift)&&i.enabled.y&&(S=x),O&&!m){const e=l(u.left,0),t=l(u.right,0),n=l(u.top,0),i=l(u.bottom,0);p?T=h-2*(0!==e||0!==t?e+t:l(u.left,u.right)):S=w-2*(0!==n||0!==i?n+i:l(u.top,u.bottom))}await f({...t,availableWidth:T,availableHeight:S});const E=await c.getDimensions(a.floating);return h!==E.width||w!==E.height?{reset:{rects:!0}}:{}}}};function hasWindow(){return"undefined"!==typeof window}function getNodeName(e){return isNode(e)?(e.nodeName||"").toLowerCase():"#document"}function getWindow(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function getDocumentElement(e){var t;return null==(t=(isNode(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function isNode(e){return!!hasWindow()&&(e instanceof Node||e instanceof getWindow(e).Node)}function isElement(e){return!!hasWindow()&&(e instanceof Element||e instanceof getWindow(e).Element)}function isHTMLElement(e){return!!hasWindow()&&(e instanceof HTMLElement||e instanceof getWindow(e).HTMLElement)}function isShadowRoot(e){return!(!hasWindow()||"undefined"===typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof getWindow(e).ShadowRoot)}function isOverflowElement(e){const{overflow:t,overflowX:n,overflowY:i,display:o}=getComputedStyle(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&!["inline","contents"].includes(o)}function isTableElement(e){return["table","td","th"].includes(getNodeName(e))}function isTopLayer(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function isContainingBlock(e){const t=isWebKit(),n=isElement(e)?getComputedStyle(e):e;return["transform","translate","scale","rotate","perspective"].some((e=>!!n[e]&&"none"!==n[e]))||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function getContainingBlock(e){let t=getParentNode(e);while(isHTMLElement(t)&&!isLastTraversableNode(t)){if(isContainingBlock(t))return t;if(isTopLayer(t))return null;t=getParentNode(t)}return null}function isWebKit(){return!("undefined"===typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function isLastTraversableNode(e){return["html","body","#document"].includes(getNodeName(e))}function getComputedStyle(e){return getWindow(e).getComputedStyle(e)}function getNodeScroll(e){return isElement(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function getParentNode(e){if("html"===getNodeName(e))return e;const t=e.assignedSlot||e.parentNode||isShadowRoot(e)&&e.host||getDocumentElement(e);return isShadowRoot(t)?t.host:t}function getNearestOverflowAncestor(e){const t=getParentNode(e);return isLastTraversableNode(t)?e.ownerDocument?e.ownerDocument.body:e.body:isHTMLElement(t)&&isOverflowElement(t)?t:getNearestOverflowAncestor(t)}function getOverflowAncestors(e,t,n){var i;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=getNearestOverflowAncestor(e),r=o===(null==(i=e.ownerDocument)?void 0:i.body),l=getWindow(o);if(r){const e=getFrameElement(l);return t.concat(l,l.visualViewport||[],isOverflowElement(o)?o:[],e&&n?getOverflowAncestors(e):[])}return t.concat(o,getOverflowAncestors(o,[],n))}function getFrameElement(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function getCssDimensions(e){const t=getComputedStyle(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const o=isHTMLElement(e),r=o?e.offsetWidth:n,l=o?e.offsetHeight:i,c=s(n)!==r||s(i)!==l;return c&&(n=r,i=l),{width:n,height:i,$:c}}function unwrapElement(e){return isElement(e)?e:e.contextElement}function getScale(e){const t=unwrapElement(e);if(!isHTMLElement(t))return createCoords(1);const n=t.getBoundingClientRect(),{width:i,height:o,$:r}=getCssDimensions(t);let l=(r?s(n.width):n.width)/i,c=(r?s(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),c&&Number.isFinite(c)||(c=1),{x:l,y:c}}const g=createCoords(0);function getVisualOffsets(e){const t=getWindow(e);return isWebKit()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:g}function shouldAddVisualOffsets(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==getWindow(e))&&t}function getBoundingClientRect(e,t,n,i){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),r=unwrapElement(e);let l=createCoords(1);t&&(i?isElement(i)&&(l=getScale(i)):l=getScale(e));const s=shouldAddVisualOffsets(r,n,i)?getVisualOffsets(r):createCoords(0);let c=(o.left+s.x)/l.x,a=(o.top+s.y)/l.y,f=o.width/l.x,g=o.height/l.y;if(r){const e=getWindow(r),t=i&&isElement(i)?getWindow(i):i;let n=e,o=getFrameElement(n);while(o&&i&&t!==n){const e=getScale(o),t=o.getBoundingClientRect(),i=getComputedStyle(o),r=t.left+(o.clientLeft+parseFloat(i.paddingLeft))*e.x,l=t.top+(o.clientTop+parseFloat(i.paddingTop))*e.y;c*=e.x,a*=e.y,f*=e.x,g*=e.y,c+=r,a+=l,n=getWindow(o),o=getFrameElement(n)}}return rectToClientRect({width:f,height:g,x:c,y:a})}function getWindowScrollBarX(e,t){const n=getNodeScroll(e).scrollLeft;return t?t.left+n:getBoundingClientRect(getDocumentElement(e)).left+n}function getHTMLOffset(e,t,n){void 0===n&&(n=!1);const i=e.getBoundingClientRect(),o=i.left+t.scrollLeft-(n?0:getWindowScrollBarX(e,i)),r=i.top+t.scrollTop;return{x:o,y:r}}function convertOffsetParentRelativeRectToViewportRelativeRect(e){let{elements:t,rect:n,offsetParent:i,strategy:o}=e;const r="fixed"===o,l=getDocumentElement(i),s=!!t&&isTopLayer(t.floating);if(i===l||s&&r)return n;let c={scrollLeft:0,scrollTop:0},a=createCoords(1);const f=createCoords(0),g=isHTMLElement(i);if((g||!g&&!r)&&(("body"!==getNodeName(i)||isOverflowElement(l))&&(c=getNodeScroll(i)),isHTMLElement(i))){const e=getBoundingClientRect(i);a=getScale(i),f.x=e.x+i.clientLeft,f.y=e.y+i.clientTop}const u=!l||g||r?createCoords(0):getHTMLOffset(l,c,!0);return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-c.scrollLeft*a.x+f.x+u.x,y:n.y*a.y-c.scrollTop*a.y+f.y+u.y}}function getClientRects(e){return Array.from(e.getClientRects())}function getDocumentRect(e){const t=getDocumentElement(e),n=getNodeScroll(e),i=e.ownerDocument.body,o=l(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),r=l(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let s=-n.scrollLeft+getWindowScrollBarX(e);const c=-n.scrollTop;return"rtl"===getComputedStyle(i).direction&&(s+=l(t.clientWidth,i.clientWidth)-o),{width:o,height:r,x:s,y:c}}function getViewportRect(e,t){const n=getWindow(e),i=getDocumentElement(e),o=n.visualViewport;let r=i.clientWidth,l=i.clientHeight,s=0,c=0;if(o){r=o.width,l=o.height;const e=isWebKit();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,c=o.offsetTop)}return{width:r,height:l,x:s,y:c}}function getInnerBoundingClientRect(e,t){const n=getBoundingClientRect(e,!0,"fixed"===t),i=n.top+e.clientTop,o=n.left+e.clientLeft,r=isHTMLElement(e)?getScale(e):createCoords(1),l=e.clientWidth*r.x,s=e.clientHeight*r.y,c=o*r.x,a=i*r.y;return{width:l,height:s,x:c,y:a}}function getClientRectFromClippingAncestor(e,t,n){let i;if("viewport"===t)i=getViewportRect(e,n);else if("document"===t)i=getDocumentRect(getDocumentElement(e));else if(isElement(t))i=getInnerBoundingClientRect(t,n);else{const n=getVisualOffsets(e);i={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return rectToClientRect(i)}function hasFixedPositionAncestor(e,t){const n=getParentNode(e);return!(n===t||!isElement(n)||isLastTraversableNode(n))&&("fixed"===getComputedStyle(n).position||hasFixedPositionAncestor(n,t))}function getClippingElementAncestors(e,t){const n=t.get(e);if(n)return n;let i=getOverflowAncestors(e,[],!1).filter((e=>isElement(e)&&"body"!==getNodeName(e))),o=null;const r="fixed"===getComputedStyle(e).position;let l=r?getParentNode(e):e;while(isElement(l)&&!isLastTraversableNode(l)){const t=getComputedStyle(l),n=isContainingBlock(l);n||"fixed"!==t.position||(o=null);const s=r?!n&&!o:!n&&"static"===t.position&&!!o&&["absolute","fixed"].includes(o.position)||isOverflowElement(l)&&!n&&hasFixedPositionAncestor(e,l);s?i=i.filter((e=>e!==l)):o=t,l=getParentNode(l)}return t.set(e,i),i}function getClippingRect(e){let{element:t,boundary:n,rootBoundary:i,strategy:o}=e;const s="clippingAncestors"===n?isTopLayer(t)?[]:getClippingElementAncestors(t,this._c):[].concat(n),c=[...s,i],a=c[0],f=c.reduce(((e,n)=>{const i=getClientRectFromClippingAncestor(t,n,o);return e.top=l(i.top,e.top),e.right=r(i.right,e.right),e.bottom=r(i.bottom,e.bottom),e.left=l(i.left,e.left),e}),getClientRectFromClippingAncestor(t,a,o));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function getDimensions(e){const{width:t,height:n}=getCssDimensions(e);return{width:t,height:n}}function getRectRelativeToOffsetParent(e,t,n){const i=isHTMLElement(t),o=getDocumentElement(t),r="fixed"===n,l=getBoundingClientRect(e,!0,r,t);let s={scrollLeft:0,scrollTop:0};const c=createCoords(0);function setLeftRTLScrollbarOffset(){c.x=getWindowScrollBarX(o)}if(i||!i&&!r)if(("body"!==getNodeName(t)||isOverflowElement(o))&&(s=getNodeScroll(t)),i){const e=getBoundingClientRect(t,!0,r,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else o&&setLeftRTLScrollbarOffset();r&&!i&&o&&setLeftRTLScrollbarOffset();const a=!o||i||r?createCoords(0):getHTMLOffset(o,s),f=l.left+s.scrollLeft-c.x-a.x,g=l.top+s.scrollTop-c.y-a.y;return{x:f,y:g,width:l.width,height:l.height}}function isStaticPositioned(e){return"static"===getComputedStyle(e).position}function getTrueOffsetParent(e,t){if(!isHTMLElement(e)||"fixed"===getComputedStyle(e).position)return null;if(t)return t(e);let n=e.offsetParent;return getDocumentElement(e)===n&&(n=n.ownerDocument.body),n}function getOffsetParent(e,t){const n=getWindow(e);if(isTopLayer(e))return n;if(!isHTMLElement(e)){let t=getParentNode(e);while(t&&!isLastTraversableNode(t)){if(isElement(t)&&!isStaticPositioned(t))return t;t=getParentNode(t)}return n}let i=getTrueOffsetParent(e,t);while(i&&isTableElement(i)&&isStaticPositioned(i))i=getTrueOffsetParent(i,t);return i&&isLastTraversableNode(i)&&isStaticPositioned(i)&&!isContainingBlock(i)?n:i||getContainingBlock(e)||n}const getElementRects=async function(e){const t=this.getOffsetParent||getOffsetParent,n=this.getDimensions,i=await n(e.floating);return{reference:getRectRelativeToOffsetParent(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function isRTL(e){return"rtl"===getComputedStyle(e).direction}const u={convertOffsetParentRelativeRectToViewportRelativeRect,getDocumentElement,getClippingRect,getOffsetParent,getElementRects,getClientRects,getDimensions,getScale,isElement,isRTL};function rectsAreEqual(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function observeMove(e,t){let n,i=null;const o=getDocumentElement(e);function cleanup(){var e;clearTimeout(n),null==(e=i)||e.disconnect(),i=null}function refresh(s,a){void 0===s&&(s=!1),void 0===a&&(a=1),cleanup();const f=e.getBoundingClientRect(),{left:g,top:u,width:d,height:m}=f;if(s||t(),!d||!m)return;const p=c(u),h=c(o.clientWidth-(g+d)),w=c(o.clientHeight-(u+m)),y=c(g),v=-p+"px "+-h+"px "+-w+"px "+-y+"px",x={rootMargin:v,threshold:l(0,r(1,a))||1};let b=!0;function handleObserve(t){const i=t[0].intersectionRatio;if(i!==a){if(!b)return refresh();i?refresh(!1,i):n=setTimeout((()=>{refresh(!1,1e-7)}),1e3)}1!==i||rectsAreEqual(f,e.getBoundingClientRect())||refresh(),b=!1}try{i=new IntersectionObserver(handleObserve,{...x,root:o.ownerDocument})}catch(e){i=new IntersectionObserver(handleObserve,x)}i.observe(e)}return refresh(!0),cleanup}function autoUpdate(e,t,n,i){void 0===i&&(i={});const{ancestorScroll:o=!0,ancestorResize:r=!0,elementResize:l="function"===typeof ResizeObserver,layoutShift:s="function"===typeof IntersectionObserver,animationFrame:c=!1}=i,a=unwrapElement(e),f=o||r?[...a?getOverflowAncestors(a):[],...getOverflowAncestors(t)]:[];f.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),r&&e.addEventListener("resize",n)}));const g=a&&s?observeMove(a,n):null;let u,d=-1,m=null;l&&(m=new ResizeObserver((e=>{let[i]=e;i&&i.target===a&&m&&(m.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame((()=>{var e;null==(e=m)||e.observe(t)}))),n()})),a&&!c&&m.observe(a),m.observe(t));let p=c?getBoundingClientRect(e):null;function frameLoop(){const t=getBoundingClientRect(e);p&&!rectsAreEqual(p,t)&&n(),p=t,u=requestAnimationFrame(frameLoop)}return c&&frameLoop(),n(),()=>{var e;f.forEach((e=>{o&&e.removeEventListener("scroll",n),r&&e.removeEventListener("resize",n)})),null==g||g(),null==(e=m)||e.disconnect(),m=null,c&&cancelAnimationFrame(u)}}const d=detectOverflow,m=offset,p=autoPlacement,h=shift,w=flip,y=size,v=hide,x=arrow,b=inline,A=limitShift,floating_ui_dom_esm_computePosition=(e,t,n)=>{const i=new Map,o={platform:u,...n},r={...o.platform,_c:i};return computePosition(e,t,{...o,platform:r})};return t})()));
|