@ldmjs/ui 1.0.85 → 1.0.87
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 +2 -2
- package/dist/index.js +94 -56
- package/dist/scss/_multiselect.scss +1 -0
- package/dist/types/dialogs.d.ts +31 -20
- package/package.json +1 -1
package/dist/css/index.css
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.ld-checkbox{display:flex;flex-direction:column;position:relative;min-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]:focus+.v-icon svg{opacity:0}.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+.v-icon svg{opacity:1}.ld-checkbox input[type=checkbox]:checked:focus+.v-icon{background-color:var(--primary-l-3)}.ld-checkbox input[type=checkbox]:checked:focus+.v-icon svg{opacity:1}.ld-checkbox input[type=checkbox]:checked:disabled+.v-icon{background-color:var(--grey-l-3);border:1px solid 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-2b5031ea]{word-wrap:break-word;max-width:100%;padding-bottom:2px;color:var(--label) !important;font-size:var(--font-size)}.label-wrapper[data-v-2b5031ea]{display:flex;align-items:center;min-height:var(--input-height)}.require[data-v-2b5031ea]::after{content:"*";display:inline-block;color:var(--error)}
|
|
3
|
-
.ld-combobox[data-v-
|
|
3
|
+
.ld-combobox[data-v-600caead]{display:flex;min-width:100%;max-width:100%;width:100%}.ld-combobox .combobox-validate[data-v-600caead]{height:20px;background-color:rgba(0,0,0,0);overflow:hidden}.ld-combobox .combobox-loading[data-v-600caead]{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-600caead]:before{content:"";display:block;position:absolute;top:0;left:0;width:25%;height:100%;background-color:var(--primary);animation:loading-600caead 1.4s linear;animation-iteration-count:infinite}@keyframes loading-600caead{from{transform:translateX(-300%)}to{transform:translateX(500%)}}
|
|
4
4
|
.ld-edit-list-box-validate[data-v-76c22520]{display:flex;align-items:center;overflow:hidden;height:20px}.ld-edit-list-box-validate>span[data-v-76c22520]{font-size:var(--font-size--1)}.edit-text-validate[data-v-76c22520]{overflow:hidden;height:20px;font-size:var(--font-size--1)}
|
|
5
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
6
|
.ld-edit-text[data-v-5f734745]{min-width:100%}.input-class[data-v-5f734745]{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-5f734745]:not(.disabled){background-color:var(--white)}.input-class[data-v-5f734745]:focus{border:1px solid var(--grey-l-4);outline:none}.input-class__suffix[data-v-5f734745]{position:absolute;top:3px;right:6px;color:var(--label)}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
.ld-radiobutton[data-v-42a61559]{display:flex;align-items:center;font-size:var(--font-size)}
|
|
10
10
|
.ld-ragiogroup .validate[data-v-572c2151]{overflow:hidden;height:20px}.ld-ragiogroup--row[data-v-572c2151] .ld-radiobutton:not(:first-child){margin-left:8px}
|
|
11
11
|
.ld-select[data-v-40d979ed]{position:relative;min-width:100%}.ld-select[data-v-40d979ed] .v-field__append-inner{display:none}.ld-select[data-v-40d979ed] .v-select{position:relative}.ld-select[data-v-40d979ed] .v-select .v-input__control{position:relative}.ld-select[data-v-40d979ed] .v-select .v-input__control:before{display:block;position:absolute;right:20px;top:calc(var(--input-height)/2);margin-top:-2px;color:var(--grey);border-style:solid;border-width:5px 5px 0;border-color:var(--grey) rgba(0,0,0,0) rgba(0,0,0,0);transition:transform .2s ease;content:"";z-index:1}.ld-select[data-v-40d979ed] .v-input--readonly:before{opacity:.6}.ld-select[data-v-40d979ed] .v-select--active-menu .v-input__control:before{transform:rotate(180deg)}input[type=checkbox]+.v-icon[data-v-40d979ed]{display:block;width:12px !important;height:12px !important;font-size:10px !important;background-color:var(--white);color:rgba(0,0,0,0);border:1px solid var(--grey-l-5)}input[type=checkbox]:checked+.v-icon[data-v-40d979ed]{background-color:var(--primary-l-2);color:var(--white);font-size:10px;font-weight:bold}.v-list-item--density-compact.v-list-item--one-line[data-v-40d979ed]{min-height:var(--input-height)}.v-list-item--density-compact.v-list-item--one-line[data-v-40d979ed] .v-list-item__content{display:flex;flex-wrap:nowrap}.v-list-item--density-compact.v-list-item--one-line[data-v-40d979ed] .v-list-item__content .v-list-item-title{font-size:var(--font-size)}
|
|
12
|
-
.ld-select-list-box[data-v-
|
|
12
|
+
.ld-select-list-box[data-v-6529001f]{display:flex;min-width:100%;max-width:100%;width:100%}.ld-select-list-box .select-list-box-validate[data-v-6529001f]{height:20px;background-color:rgba(0,0,0,0);overflow:hidden}.ld-select-list-box .select-list-box-loading[data-v-6529001f]{position:absolute;left:0;bottom:0;width:calc(100% - var(--input-height));height:3px;overflow:hidden;background-color:var(--grey-l-5)}.ld-select-list-box .select-list-box-loading[data-v-6529001f]:before{content:"";display:block;position:absolute;top:0;left:0;width:25%;height:100%;background-color:var(--primary);animation:loading-6529001f 1.4s linear;animation-iteration-count:infinite}@keyframes loading-6529001f{from{transform:translateX(-300%)}to{transform:translateX(500%)}}
|
|
13
13
|
.ld-splitter[data-v-57e95903]{height:inherit;display:flex}.ld-splitter .splitter-pane[data-v-57e95903]{height:inherit;overflow-y:auto;background:var(--white)}.ld-splitter .splitter[data-v-57e95903]{display:flex;background-color:var(--white) !important;border-color:var(--grey-l-5);border-style:solid}.ld-splitter .splitter--hor[data-v-57e95903]{justify-content:center;width:100%;height:7px;cursor:ns-resize;border-width:1px 0}.ld-splitter .splitter--hor.splitter--disabled[data-v-57e95903]{height:1px;border-top:none}.ld-splitter .splitter--ver[data-v-57e95903]{align-items:center;width:7px;height:100%;cursor:ew-resize;border-width:0 1px}.ld-splitter .splitter--ver.splitter--disabled[data-v-57e95903]{width:1px;border-left:none}.ld-splitter .splitter--disabled[data-v-57e95903]{cursor:default}.ld-splitter .splitter--disabled svg[data-v-57e95903]{display:none}.ld-splitter.splitter[data-v-57e95903]{width:100%;border-left:none;border-right:none}
|
|
14
14
|
.ld-switch[data-v-649de2c4] .v-switch{display:block}.ld-switch[data-v-649de2c4] .v-switch .v-selection-control{min-height:var(--input-height) !important}.ld-switch[data-v-649de2c4] .v-switch .v-selection-control .v-selection-control__wrapper{width:40px}.ld-switch[data-v-649de2c4] .v-switch .v-selection-control:not(.v-selection-control--dirty) .v-selection-control__input{transform:translateX(-12px)}.ld-switch[data-v-649de2c4] .v-switch .v-selection-control:not(.v-selection-control--dirty) .v-switch__track{color:var(--grey-l-4) !important;background-color:var(--grey-l-4) !important}.ld-switch[data-v-649de2c4] .v-switch .v-selection-control .v-switch__track{opacity:1;width:40px}.ld-switch[data-v-649de2c4] .v-switch .v-selection-control--dirty .v-selection-control__input{transform:translateX(12px)}.ld-switch[data-v-649de2c4] .v-switch .v-selection-control--dirty .v-switch__thumb{color:var(--primary-l-3) !important;background-color:var(--primary-l-3) !important}.ld-switch[data-v-649de2c4] .v-switch .v-selection-control--dirty .v-switch__track{opacity:1;background-color:var(--primary-l-2) !important}.ld-switch[data-v-649de2c4] .v-switch .v-selection-control--dirty .v-label{color:var(--primary-l-2) !important}.ld-switch[data-v-649de2c4] .v-switch .v-selection-control .v-switch__thumb{color:var(--white) !important}.ld-switch[data-v-649de2c4] .v-switch .v-selection-control .v-label{padding-inline-start:4px}
|
|
15
15
|
.ld-tabs[data-v-d5bf82f0]{margin-left:0;display:flex;height:100%;width:100%;overflow-y:auto}.ld-tabs .header-text[data-v-d5bf82f0]{font-size:var(--font-size-2)}.ld-tabs-mobile[data-v-d5bf82f0]{height:100%}.ld-tabs .vertical-body[data-v-d5bf82f0]{--w: 44px;display:flex;flex-flow:column nowrap;width:calc(100% - var(--w)) !important;height:100%}.v-window[data-v-d5bf82f0]{background-color:var(--white);box-shadow:1px 0 var(--grey-l-5),-1px 0 0 var(--grey-l-5);overflow-y:auto;height:100%;width:100%}.vertical-window.v-window[data-v-d5bf82f0]{padding:10px 12px;border-bottom:1px solid var(--grey-l-5);border-right:1px solid var(--grey-l-5);border-top:1px solid var(--grey-l-5)}.vertical-window.v-window--no-padding[data-v-d5bf82f0]{padding:0 !important}[data-v-d5bf82f0] .ld-tabs .v-tabs--vertical{background:var(--grey-l-6)}[data-v-d5bf82f0] .ld-tabs .v-tabs--vertical .v-tab{justify-content:flex-start;border:1px solid var(--grey-l-5);border-bottom:none;border-radius:0 !important;text-transform:none !important;width:100%;min-width:auto !important}[data-v-d5bf82f0] .ld-tabs .v-tabs--vertical .v-tab--selected{background-color:var(--white);border-right-color:rgba(0,0,0,0)}[data-v-d5bf82f0] .ld-tabs .v-tabs--vertical .v-tab:last-child{border-bottom:1px solid var(--grey-l-5) !important}[data-v-d5bf82f0] .ld-tabs .v-tabs--vertical .v-slide-group__content{flex-flow:column nowrap;height:100% !important;width:100% !important}[data-v-d5bf82f0] .ld-tabs .v-tabs--vertical .v-slide-group__content .v-btn__content{text-overflow:ellipsis;display:inline-flex;justify-content:flex-start;gap:4px;white-space:nowrap;overflow:hidden}[data-v-d5bf82f0] .ld-tabs .v-tabs--horizontal .v-tab--selected{border-bottom:1px solid var(--primary)}[data-v-d5bf82f0] .ld-tabs .v-tabs .v-tab--selected .v-btn__content{font-weight:bold;color:var(--primary) !important}[data-v-d5bf82f0] .ld-tabs .v-tabs.v-tabs--vertical.no-header .v-tab:first-child{border-top:none}[data-v-d5bf82f0] .ld-tabs .v-tab{height:var(--ld-tab-height) !important;display:flex !important;text-transform:uppercase !important;padding:0 12px !important;font-size:var(--font-size);color:var(--text) !important;letter-spacing:0 !important}[data-v-d5bf82f0] .v-window.mobile .tg-field .v-row .v-col{flex:1 0 0 !important}[data-v-d5bf82f0] .v-window.mobile .tg-field .text-viewer-wrapper .v-col{flex:1 0 0 !important}[data-v-d5bf82f0] .v-slide-group--vertical{border-color:var(--grey-l-5);border:1px}[data-v-d5bf82f0] .v-slide-group--vertical .v-tab__slider{width:0px}[data-v-d5bf82f0] .v-slide-group__prev{display:none}[data-v-d5bf82f0] .v-slide-group__next{display:none}[data-v-d5bf82f0] .v-tabs-bar{flex:none;height:fit-content;height:-moz-max-content;max-height:fit-content;max-height:-moz-max-content;z-index:1}[data-v-d5bf82f0] .v-window-item{height:100%}[data-v-d5bf82f0] .ld-tabs-mobile.hide-tabs .v-tab{display:none !important}[data-v-d5bf82f0] .ld-tabs-mobile.hide-body .v-slide-group{width:100% !important}[data-v-d5bf82f0] .ld-tabs-mobile.hide-body .v-window{display:none !important}[data-v-d5bf82f0] .v-tabs-mobile .v-slide-group__content .v-btn__content{display:block !important}
|
package/dist/index.js
CHANGED
|
@@ -1521,17 +1521,17 @@ function ld_chip_reg(vue, options) {
|
|
|
1521
1521
|
}
|
|
1522
1522
|
/* harmony default export */ const src_ld_chip = (ld_chip_reg);
|
|
1523
1523
|
|
|
1524
|
-
;// ./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-combobox/ld-combobox.vue?vue&type=template&id=
|
|
1524
|
+
;// ./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-combobox/ld-combobox.vue?vue&type=template&id=600caead&scoped=true&ts=true
|
|
1525
1525
|
|
|
1526
|
-
const
|
|
1526
|
+
const ld_comboboxvue_type_template_id_600caead_scoped_true_ts_true_hoisted_1 = {
|
|
1527
1527
|
class: "w-full d-flex align-start overflow-hidden",
|
|
1528
1528
|
style: { "border-radius": "var(--border-radius)" }
|
|
1529
1529
|
};
|
|
1530
|
-
const
|
|
1530
|
+
const ld_comboboxvue_type_template_id_600caead_scoped_true_ts_true_hoisted_2 = {
|
|
1531
1531
|
class: "w-full d-flex position-relative",
|
|
1532
1532
|
style: { "flex-basis": "100%" }
|
|
1533
1533
|
};
|
|
1534
|
-
const
|
|
1534
|
+
const ld_comboboxvue_type_template_id_600caead_scoped_true_ts_true_hoisted_3 = { class: "text-crop" };
|
|
1535
1535
|
const _hoisted_4 = {
|
|
1536
1536
|
key: 0,
|
|
1537
1537
|
class: "d-flex align-center"
|
|
@@ -1554,7 +1554,7 @@ const _hoisted_9 = {
|
|
|
1554
1554
|
key: 0,
|
|
1555
1555
|
class: "combobox-validate"
|
|
1556
1556
|
};
|
|
1557
|
-
function
|
|
1557
|
+
function ld_comboboxvue_type_template_id_600caead_scoped_true_ts_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1558
1558
|
const _component_ld_label = (0,external_vue_.resolveComponent)("ld-label");
|
|
1559
1559
|
const _component_small_chip = (0,external_vue_.resolveComponent)("small-chip");
|
|
1560
1560
|
const _component_v_col = (0,external_vue_.resolveComponent)("v-col");
|
|
@@ -1580,8 +1580,8 @@ function ld_comboboxvue_type_template_id_219a56fa_scoped_true_ts_true_render(_ct
|
|
|
1580
1580
|
class: (0,external_vue_.normalizeClass)(_ctx.inputSizeClasses)
|
|
1581
1581
|
}, {
|
|
1582
1582
|
default: (0,external_vue_.withCtx)(() => [
|
|
1583
|
-
(0,external_vue_.createElementVNode)("div",
|
|
1584
|
-
(0,external_vue_.createElementVNode)("div",
|
|
1583
|
+
(0,external_vue_.createElementVNode)("div", ld_comboboxvue_type_template_id_600caead_scoped_true_ts_true_hoisted_1, [
|
|
1584
|
+
(0,external_vue_.createElementVNode)("div", ld_comboboxvue_type_template_id_600caead_scoped_true_ts_true_hoisted_2, [
|
|
1585
1585
|
(0,external_vue_.createVNode)(_component_multiselect, {
|
|
1586
1586
|
ref: "multiselect",
|
|
1587
1587
|
modelValue: _ctx.selected,
|
|
@@ -1625,7 +1625,7 @@ function ld_comboboxvue_type_template_id_219a56fa_scoped_true_ts_true_render(_ct
|
|
|
1625
1625
|
"onClick:close": ($event) => (_ctx.onRemoveItem(option))
|
|
1626
1626
|
}, {
|
|
1627
1627
|
default: (0,external_vue_.withCtx)(() => [
|
|
1628
|
-
(0,external_vue_.createElementVNode)("span",
|
|
1628
|
+
(0,external_vue_.createElementVNode)("span", ld_comboboxvue_type_template_id_600caead_scoped_true_ts_true_hoisted_3, (0,external_vue_.toDisplayString)(_ctx.$utils.deepValueGetter(option, this.itemTitle)), 1)
|
|
1629
1629
|
]),
|
|
1630
1630
|
_: 2
|
|
1631
1631
|
}, 1032, ["color", "closable", "onClick:close"]))
|
|
@@ -1733,7 +1733,7 @@ function ld_comboboxvue_type_template_id_219a56fa_scoped_true_ts_true_render(_ct
|
|
|
1733
1733
|
}));
|
|
1734
1734
|
}
|
|
1735
1735
|
|
|
1736
|
-
;// ./src/ld-combobox/ld-combobox.vue?vue&type=template&id=
|
|
1736
|
+
;// ./src/ld-combobox/ld-combobox.vue?vue&type=template&id=600caead&scoped=true&ts=true
|
|
1737
1737
|
|
|
1738
1738
|
;// ./node_modules/lodash-es/isObject.js
|
|
1739
1739
|
/**
|
|
@@ -5260,7 +5260,7 @@ SelectListBoxComponent = ld_comboboxvue_type_script_lang_ts_external_decorate([
|
|
|
5260
5260
|
;
|
|
5261
5261
|
|
|
5262
5262
|
|
|
5263
|
-
const ld_combobox_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_comboboxvue_type_script_lang_ts_external, [['render',
|
|
5263
|
+
const ld_combobox_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_comboboxvue_type_script_lang_ts_external, [['render',ld_comboboxvue_type_template_id_600caead_scoped_true_ts_true_render],['__scopeId',"data-v-600caead"]])
|
|
5264
5264
|
|
|
5265
5265
|
/* harmony default export */ const ld_combobox = (ld_combobox_exports_);
|
|
5266
5266
|
;// ./src/ld-combobox/index.ts
|
|
@@ -7740,10 +7740,8 @@ class DialogManager {
|
|
|
7740
7740
|
}
|
|
7741
7741
|
static alert(modal) {
|
|
7742
7742
|
const modalInfo = {
|
|
7743
|
-
|
|
7744
|
-
content: modal.content,
|
|
7743
|
+
...modal,
|
|
7745
7744
|
type: ModalType.Alert,
|
|
7746
|
-
hostObject: modal.hostObject,
|
|
7747
7745
|
managerId: DialogManager._id,
|
|
7748
7746
|
};
|
|
7749
7747
|
return DialogManager.execAsync(modalInfo);
|
|
@@ -7752,7 +7750,6 @@ class DialogManager {
|
|
|
7752
7750
|
const modalInfo = {
|
|
7753
7751
|
...modal,
|
|
7754
7752
|
type: ModalType.Prompt,
|
|
7755
|
-
hostObject: modal.hostObject,
|
|
7756
7753
|
managerId: DialogManager._id,
|
|
7757
7754
|
};
|
|
7758
7755
|
return DialogManager.execAsync(modalInfo);
|
|
@@ -7760,10 +7757,8 @@ class DialogManager {
|
|
|
7760
7757
|
static confirm(modal) {
|
|
7761
7758
|
const modalInfo = {
|
|
7762
7759
|
...modal,
|
|
7763
|
-
content: modal.text,
|
|
7764
7760
|
type: ModalType.Confirm,
|
|
7765
7761
|
closable: true,
|
|
7766
|
-
hostObject: modal.hostObject,
|
|
7767
7762
|
managerId: DialogManager._id,
|
|
7768
7763
|
};
|
|
7769
7764
|
return DialogManager.execAsync(modalInfo);
|
|
@@ -8121,39 +8116,61 @@ const dialog_minimized_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(d
|
|
|
8121
8116
|
/* harmony default export */ const dialog_minimized = (dialog_minimized_exports_);
|
|
8122
8117
|
;// ./src/ld-dialog/dialogs.ts
|
|
8123
8118
|
class Dialog {
|
|
8124
|
-
constructor(
|
|
8125
|
-
this.title = title;
|
|
8126
|
-
this.content = content
|
|
8119
|
+
constructor(data) {
|
|
8120
|
+
this.title = data.title;
|
|
8121
|
+
this.content = data.content;
|
|
8122
|
+
this.pressEnterAsOk = data.pressEnterAsOk !== false;
|
|
8123
|
+
this.pressEscAsCancel = data.pressEscAsCancel !== false;
|
|
8124
|
+
this.hostObject = data.hostObject;
|
|
8127
8125
|
}
|
|
8128
8126
|
}
|
|
8129
8127
|
class AlertDialog extends Dialog {
|
|
8130
8128
|
constructor(data) {
|
|
8131
|
-
super(
|
|
8132
|
-
|
|
8129
|
+
super({
|
|
8130
|
+
title: data.title,
|
|
8131
|
+
content: data.text,
|
|
8132
|
+
pressEnterAsOk: data.pressEnterAsOk,
|
|
8133
|
+
pressEscAsCancel: data.pressEscAsCancel,
|
|
8134
|
+
hostObject: data.hostObject,
|
|
8135
|
+
});
|
|
8133
8136
|
}
|
|
8134
8137
|
}
|
|
8135
8138
|
class PromptDialog extends Dialog {
|
|
8136
8139
|
constructor(data) {
|
|
8137
|
-
super(
|
|
8140
|
+
super({
|
|
8141
|
+
title: data.title,
|
|
8142
|
+
content: data.content,
|
|
8143
|
+
pressEnterAsOk: data.pressEnterAsOk,
|
|
8144
|
+
pressEscAsCancel: data.pressEscAsCancel,
|
|
8145
|
+
hostObject: data.hostObject,
|
|
8146
|
+
});
|
|
8138
8147
|
this.width = data.width || '60%';
|
|
8139
|
-
this.hostObject = data.hostObject;
|
|
8140
8148
|
}
|
|
8141
8149
|
}
|
|
8142
8150
|
class ConfirmDialog extends Dialog {
|
|
8143
8151
|
constructor(data) {
|
|
8144
|
-
super(
|
|
8145
|
-
|
|
8146
|
-
|
|
8152
|
+
super({
|
|
8153
|
+
title: data.title,
|
|
8154
|
+
content: data.text,
|
|
8155
|
+
pressEnterAsOk: data.pressEnterAsOk,
|
|
8156
|
+
pressEscAsCancel: data.pressEscAsCancel,
|
|
8157
|
+
hostObject: data.hostObject,
|
|
8158
|
+
});
|
|
8147
8159
|
this.okTitle = data.okTitle;
|
|
8148
8160
|
this.cancelTitle = data.cancelTitle;
|
|
8149
8161
|
this.okResult = data.okResult;
|
|
8150
8162
|
this.cancelResult = data.cancelResult;
|
|
8151
|
-
this.hostObject = data.hostObject;
|
|
8152
8163
|
}
|
|
8153
8164
|
}
|
|
8154
8165
|
class InfoDialog extends Dialog {
|
|
8155
8166
|
constructor(data) {
|
|
8156
|
-
super(
|
|
8167
|
+
super({
|
|
8168
|
+
title: data.title,
|
|
8169
|
+
content: '',
|
|
8170
|
+
pressEnterAsOk: data.pressEnterAsOk,
|
|
8171
|
+
pressEscAsCancel: data.pressEscAsCancel,
|
|
8172
|
+
hostObject: data.hostObject,
|
|
8173
|
+
});
|
|
8157
8174
|
this.component = data.component;
|
|
8158
8175
|
this.componentProps = data.componentProps;
|
|
8159
8176
|
this.width = data.width;
|
|
@@ -8164,13 +8181,18 @@ class InfoDialog extends Dialog {
|
|
|
8164
8181
|
this.hideFooter = data.hideFooter;
|
|
8165
8182
|
this.minimizable = data.minimizable;
|
|
8166
8183
|
this.description = data.description;
|
|
8167
|
-
this.hostObject = data.hostObject;
|
|
8168
8184
|
this.help = data.help;
|
|
8169
8185
|
}
|
|
8170
8186
|
}
|
|
8171
8187
|
class SelectDialog extends Dialog {
|
|
8172
8188
|
constructor(data) {
|
|
8173
|
-
super(
|
|
8189
|
+
super({
|
|
8190
|
+
title: data.title,
|
|
8191
|
+
content: '',
|
|
8192
|
+
pressEnterAsOk: data.pressEnterAsOk,
|
|
8193
|
+
pressEscAsCancel: data.pressEscAsCancel,
|
|
8194
|
+
hostObject: data.hostObject,
|
|
8195
|
+
});
|
|
8174
8196
|
this.component = data.component;
|
|
8175
8197
|
this.componentProps = data.componentProps;
|
|
8176
8198
|
this.loading = data.loading;
|
|
@@ -8180,20 +8202,24 @@ class SelectDialog extends Dialog {
|
|
|
8180
8202
|
this.selectAsOk = data.selectAsOk;
|
|
8181
8203
|
this.okTitle = data.okTitle;
|
|
8182
8204
|
this.cancelTitle = data.cancelTitle;
|
|
8183
|
-
this.hostObject = data.hostObject;
|
|
8184
8205
|
this.help = data.help;
|
|
8185
8206
|
}
|
|
8186
8207
|
}
|
|
8187
8208
|
class CreateEditDialog extends Dialog {
|
|
8188
8209
|
constructor(data) {
|
|
8189
|
-
super(
|
|
8210
|
+
super({
|
|
8211
|
+
title: data.title,
|
|
8212
|
+
content: '',
|
|
8213
|
+
pressEnterAsOk: data.pressEnterAsOk,
|
|
8214
|
+
pressEscAsCancel: data.pressEscAsCancel,
|
|
8215
|
+
hostObject: data.hostObject,
|
|
8216
|
+
});
|
|
8190
8217
|
this._isChanged = null;
|
|
8191
8218
|
this.component = data.component;
|
|
8192
8219
|
this.componentProps = {
|
|
8193
8220
|
...data.componentProps,
|
|
8194
8221
|
setIsChangedCallback: this.setIsChangedCallback.bind(this),
|
|
8195
8222
|
};
|
|
8196
|
-
this.hostObject = data.hostObject;
|
|
8197
8223
|
this.loading = data.loading;
|
|
8198
8224
|
this.fullHeight = data.fullHeight;
|
|
8199
8225
|
this.width = data.width;
|
|
@@ -8300,6 +8326,8 @@ let DialogComponent = class DialogComponent extends (0,external_vue_class_compon
|
|
|
8300
8326
|
component: modalInfo.component,
|
|
8301
8327
|
componentProps: modalInfo.componentProps,
|
|
8302
8328
|
hostObject: modalInfo.hostObject,
|
|
8329
|
+
pressEnterAsOk: modalInfo.pressEnterAsOk,
|
|
8330
|
+
pressEscAsCancel: modalInfo.pressEscAsCancel,
|
|
8303
8331
|
loading: modalInfo.loading,
|
|
8304
8332
|
noModal: modalInfo.noModal,
|
|
8305
8333
|
type: modalInfo.type,
|
|
@@ -8377,16 +8405,24 @@ let DialogComponent = class DialogComponent extends (0,external_vue_class_compon
|
|
|
8377
8405
|
return;
|
|
8378
8406
|
}
|
|
8379
8407
|
if (e.key === 'Enter') {
|
|
8408
|
+
if (!modal.pressEnterAsOk) {
|
|
8409
|
+
return;
|
|
8410
|
+
}
|
|
8380
8411
|
if (e.shiftKey) {
|
|
8381
8412
|
return;
|
|
8382
8413
|
}
|
|
8383
8414
|
this.handleOk(modal);
|
|
8384
8415
|
}
|
|
8385
8416
|
if (e.key === 'Escape') {
|
|
8417
|
+
if (!modal.pressEscAsCancel) {
|
|
8418
|
+
return;
|
|
8419
|
+
}
|
|
8386
8420
|
this.handleCancel(modal);
|
|
8387
8421
|
}
|
|
8388
8422
|
};
|
|
8389
|
-
|
|
8423
|
+
if (modal.pressEnterAsOk || modal.pressEscAsCancel) {
|
|
8424
|
+
this.dialogListeners.set(modal, listenerHandler.bind(this));
|
|
8425
|
+
}
|
|
8390
8426
|
modal.el = el;
|
|
8391
8427
|
if (this.isConfirmDialog(modal)) {
|
|
8392
8428
|
const btnOk = modal.el.querySelector('#modalOk');
|
|
@@ -8485,6 +8521,7 @@ let DialogComponent = class DialogComponent extends (0,external_vue_class_compon
|
|
|
8485
8521
|
resultSave = await resultSave;
|
|
8486
8522
|
if (resultSave) {
|
|
8487
8523
|
this.modalResult = resultSave;
|
|
8524
|
+
removeModal = true;
|
|
8488
8525
|
}
|
|
8489
8526
|
else {
|
|
8490
8527
|
return;
|
|
@@ -8504,6 +8541,7 @@ let DialogComponent = class DialogComponent extends (0,external_vue_class_compon
|
|
|
8504
8541
|
return;
|
|
8505
8542
|
}
|
|
8506
8543
|
this.modalResult = resultSave;
|
|
8544
|
+
removeModal = true;
|
|
8507
8545
|
}
|
|
8508
8546
|
}
|
|
8509
8547
|
break;
|
|
@@ -12178,42 +12216,42 @@ function ld_select_reg(vue, options) {
|
|
|
12178
12216
|
}
|
|
12179
12217
|
/* harmony default export */ const src_ld_select = (ld_select_reg);
|
|
12180
12218
|
|
|
12181
|
-
;// ./node_modules/ts-loader/index.js??clonedRuleSet-1.use!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use!./src/ld-select-list-box/ld-select-list-box.vue?vue&type=template&id=
|
|
12219
|
+
;// ./node_modules/ts-loader/index.js??clonedRuleSet-1.use!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use!./src/ld-select-list-box/ld-select-list-box.vue?vue&type=template&id=6529001f&scoped=true&ts=true
|
|
12182
12220
|
|
|
12183
|
-
const
|
|
12221
|
+
const ld_select_list_boxvue_type_template_id_6529001f_scoped_true_ts_true_hoisted_1 = {
|
|
12184
12222
|
key: 0,
|
|
12185
12223
|
class: "w-full d-flex align-start overflow-hidden",
|
|
12186
12224
|
style: { "border-radius": "var(--border-radius)", "max-width": "100%" }
|
|
12187
12225
|
};
|
|
12188
|
-
const
|
|
12189
|
-
const
|
|
12226
|
+
const ld_select_list_boxvue_type_template_id_6529001f_scoped_true_ts_true_hoisted_2 = { style: { "display": "block", "overflow": "hidden", "text-overflow": "ellipsis" } };
|
|
12227
|
+
const ld_select_list_boxvue_type_template_id_6529001f_scoped_true_ts_true_hoisted_3 = {
|
|
12190
12228
|
key: 0,
|
|
12191
12229
|
class: "d-flex align-center"
|
|
12192
12230
|
};
|
|
12193
|
-
const
|
|
12194
|
-
const
|
|
12231
|
+
const ld_select_list_boxvue_type_template_id_6529001f_scoped_true_ts_true_hoisted_4 = { class: "d-flex flex-column justify-center" };
|
|
12232
|
+
const ld_select_list_boxvue_type_template_id_6529001f_scoped_true_ts_true_hoisted_5 = {
|
|
12195
12233
|
key: 0,
|
|
12196
12234
|
class: "grey--text",
|
|
12197
12235
|
style: { "font-size": "var(--font-size--1)" }
|
|
12198
12236
|
};
|
|
12199
|
-
const
|
|
12237
|
+
const ld_select_list_boxvue_type_template_id_6529001f_scoped_true_ts_true_hoisted_6 = {
|
|
12200
12238
|
key: 1,
|
|
12201
12239
|
class: "select-list-box-loading"
|
|
12202
12240
|
};
|
|
12203
|
-
const
|
|
12241
|
+
const ld_select_list_boxvue_type_template_id_6529001f_scoped_true_ts_true_hoisted_7 = {
|
|
12204
12242
|
class: "d-flex align-center",
|
|
12205
12243
|
style: { "height": "var(--input-height)" }
|
|
12206
12244
|
};
|
|
12207
|
-
const
|
|
12245
|
+
const ld_select_list_boxvue_type_template_id_6529001f_scoped_true_ts_true_hoisted_8 = {
|
|
12208
12246
|
key: 1,
|
|
12209
12247
|
class: "w-full",
|
|
12210
12248
|
style: { "min-height": "var(--input-height)" }
|
|
12211
12249
|
};
|
|
12212
|
-
const
|
|
12250
|
+
const ld_select_list_boxvue_type_template_id_6529001f_scoped_true_ts_true_hoisted_9 = {
|
|
12213
12251
|
key: 2,
|
|
12214
12252
|
class: "select-list-box-validate"
|
|
12215
12253
|
};
|
|
12216
|
-
function
|
|
12254
|
+
function ld_select_list_boxvue_type_template_id_6529001f_scoped_true_ts_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
12217
12255
|
const _component_ld_label = (0,external_vue_.resolveComponent)("ld-label");
|
|
12218
12256
|
const _component_small_chip = (0,external_vue_.resolveComponent)("small-chip");
|
|
12219
12257
|
const _component_v_col = (0,external_vue_.resolveComponent)("v-col");
|
|
@@ -12241,7 +12279,7 @@ function ld_select_list_boxvue_type_template_id_6f40f6fe_scoped_true_ts_true_ren
|
|
|
12241
12279
|
}, {
|
|
12242
12280
|
default: (0,external_vue_.withCtx)(() => [
|
|
12243
12281
|
(_ctx.multiselect || _ctx.selectedToArray.length === 0)
|
|
12244
|
-
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div",
|
|
12282
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_select_list_boxvue_type_template_id_6529001f_scoped_true_ts_true_hoisted_1, [
|
|
12245
12283
|
(0,external_vue_.createElementVNode)("div", {
|
|
12246
12284
|
class: "w-full d-flex position-relative",
|
|
12247
12285
|
style: (0,external_vue_.normalizeStyle)({
|
|
@@ -12291,7 +12329,7 @@ function ld_select_list_boxvue_type_template_id_6f40f6fe_scoped_true_ts_true_ren
|
|
|
12291
12329
|
"onClick:close": ($event) => (_ctx.onRemoveItem(option))
|
|
12292
12330
|
}, {
|
|
12293
12331
|
default: (0,external_vue_.withCtx)(() => [
|
|
12294
|
-
(0,external_vue_.createElementVNode)("span",
|
|
12332
|
+
(0,external_vue_.createElementVNode)("span", ld_select_list_boxvue_type_template_id_6529001f_scoped_true_ts_true_hoisted_2, (0,external_vue_.toDisplayString)(_ctx.$utils.deepValueGetter(option, this.itemTitle)), 1)
|
|
12295
12333
|
]),
|
|
12296
12334
|
_: 2
|
|
12297
12335
|
}, 1032, ["color", "closable", "onClick:close"]))
|
|
@@ -12319,7 +12357,7 @@ function ld_select_list_boxvue_type_template_id_6f40f6fe_scoped_true_ts_true_ren
|
|
|
12319
12357
|
(0,external_vue_.createVNode)(_component_v_col, { class: "d-flex align-center" }, {
|
|
12320
12358
|
default: (0,external_vue_.withCtx)(() => [
|
|
12321
12359
|
(_ctx.multiselect)
|
|
12322
|
-
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div",
|
|
12360
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_select_list_boxvue_type_template_id_6529001f_scoped_true_ts_true_hoisted_3, [
|
|
12323
12361
|
((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)((0,external_vue_.resolveDynamicComponent)(_ctx.$ldmui.options.aliases['ld-checkbox']), {
|
|
12324
12362
|
key: JSON.stringify(option),
|
|
12325
12363
|
"model-value": _ctx.checkedItems,
|
|
@@ -12334,13 +12372,13 @@ function ld_select_list_boxvue_type_template_id_6f40f6fe_scoped_true_ts_true_ren
|
|
|
12334
12372
|
}, [
|
|
12335
12373
|
(0,external_vue_.renderSlot)(_ctx.$slots, "option-icon", (0,external_vue_.normalizeProps)((0,external_vue_.guardReactiveProps)({ item: option, isSelected: _ctx.checkedItems.includes(_ctx.itemIdentity(option)) })), undefined, true),
|
|
12336
12374
|
_cache[4] || (_cache[4] = (0,external_vue_.createTextVNode)()),
|
|
12337
|
-
(0,external_vue_.createElementVNode)("div",
|
|
12375
|
+
(0,external_vue_.createElementVNode)("div", ld_select_list_boxvue_type_template_id_6529001f_scoped_true_ts_true_hoisted_4, [
|
|
12338
12376
|
(0,external_vue_.renderSlot)(_ctx.$slots, "option", (0,external_vue_.normalizeProps)((0,external_vue_.guardReactiveProps)({ item: option, isSelected: _ctx.checkedItems.includes(_ctx.itemIdentity(option)) })), () => [
|
|
12339
12377
|
(0,external_vue_.createElementVNode)("div", null, (0,external_vue_.toDisplayString)(_ctx.$utils.deepValueGetter(option, _ctx.itemTitle)), 1)
|
|
12340
12378
|
], true),
|
|
12341
12379
|
_cache[3] || (_cache[3] = (0,external_vue_.createTextVNode)()),
|
|
12342
12380
|
(_ctx.optionHint)
|
|
12343
|
-
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div",
|
|
12381
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_select_list_boxvue_type_template_id_6529001f_scoped_true_ts_true_hoisted_5, [
|
|
12344
12382
|
(0,external_vue_.renderSlot)(_ctx.$slots, "option-hint", (0,external_vue_.normalizeProps)((0,external_vue_.guardReactiveProps)({ item: option })), () => [
|
|
12345
12383
|
_cache[2] || (_cache[2] = (0,external_vue_.createTextVNode)(" no slot \"option-hint\" found ", -1))
|
|
12346
12384
|
], true)
|
|
@@ -12387,11 +12425,11 @@ function ld_select_list_boxvue_type_template_id_6f40f6fe_scoped_true_ts_true_ren
|
|
|
12387
12425
|
: (0,external_vue_.createCommentVNode)("", true),
|
|
12388
12426
|
_cache[10] || (_cache[10] = (0,external_vue_.createTextVNode)()),
|
|
12389
12427
|
(_ctx.loading)
|
|
12390
|
-
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div",
|
|
12428
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_select_list_boxvue_type_template_id_6529001f_scoped_true_ts_true_hoisted_6))
|
|
12391
12429
|
: (0,external_vue_.createCommentVNode)("", true)
|
|
12392
12430
|
], 4),
|
|
12393
12431
|
_cache[11] || (_cache[11] = (0,external_vue_.createTextVNode)()),
|
|
12394
|
-
(0,external_vue_.createElementVNode)("div",
|
|
12432
|
+
(0,external_vue_.createElementVNode)("div", ld_select_list_boxvue_type_template_id_6529001f_scoped_true_ts_true_hoisted_7, [
|
|
12395
12433
|
(_ctx.$utils.isDefined(_ctx.help))
|
|
12396
12434
|
? ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_ld_help, {
|
|
12397
12435
|
key: 0,
|
|
@@ -12404,7 +12442,7 @@ function ld_select_list_boxvue_type_template_id_6f40f6fe_scoped_true_ts_true_ren
|
|
|
12404
12442
|
: (0,external_vue_.createCommentVNode)("", true),
|
|
12405
12443
|
_cache[12] || (_cache[12] = (0,external_vue_.createTextVNode)()),
|
|
12406
12444
|
(!_ctx.multiselect && _ctx.$utils.isDefined(_ctx.singleItem))
|
|
12407
|
-
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div",
|
|
12445
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_select_list_boxvue_type_template_id_6529001f_scoped_true_ts_true_hoisted_8, [
|
|
12408
12446
|
(0,external_vue_.renderSlot)(_ctx.$slots, "tag", (0,external_vue_.normalizeProps)((0,external_vue_.guardReactiveProps)({ item: _ctx.singleItem, canRemove: _ctx.canRemove, onRemove: _ctx.onRemoveItem })), () => [
|
|
12409
12447
|
((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_small_chip, {
|
|
12410
12448
|
key: JSON.stringify(_ctx.selected),
|
|
@@ -12422,7 +12460,7 @@ function ld_select_list_boxvue_type_template_id_6f40f6fe_scoped_true_ts_true_ren
|
|
|
12422
12460
|
: (0,external_vue_.createCommentVNode)("", true),
|
|
12423
12461
|
_cache[13] || (_cache[13] = (0,external_vue_.createTextVNode)()),
|
|
12424
12462
|
(!_ctx.hideDetails)
|
|
12425
|
-
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div",
|
|
12463
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_select_list_boxvue_type_template_id_6529001f_scoped_true_ts_true_hoisted_9, [
|
|
12426
12464
|
(0,external_vue_.createVNode)(external_vue_.Transition, { name: "squash" }, {
|
|
12427
12465
|
default: (0,external_vue_.withCtx)(() => [
|
|
12428
12466
|
(_ctx.showHint)
|
|
@@ -12445,7 +12483,7 @@ function ld_select_list_boxvue_type_template_id_6f40f6fe_scoped_true_ts_true_ren
|
|
|
12445
12483
|
}));
|
|
12446
12484
|
}
|
|
12447
12485
|
|
|
12448
|
-
;// ./src/ld-select-list-box/ld-select-list-box.vue?vue&type=template&id=
|
|
12486
|
+
;// ./src/ld-select-list-box/ld-select-list-box.vue?vue&type=template&id=6529001f&scoped=true&ts=true
|
|
12449
12487
|
|
|
12450
12488
|
;// ./node_modules/ts-loader/index.js??clonedRuleSet-1.use!./src/ld-select-list-box/ld-select-list-box.ts?vue&type=script&lang=ts&external
|
|
12451
12489
|
var ld_select_list_boxvue_type_script_lang_ts_external_decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
@@ -12947,7 +12985,7 @@ ld_select_list_boxvue_type_script_lang_ts_external_SelectListBoxComponent = ld_s
|
|
|
12947
12985
|
;
|
|
12948
12986
|
|
|
12949
12987
|
|
|
12950
|
-
const ld_select_list_box_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_select_list_boxvue_type_script_lang_ts_external, [['render',
|
|
12988
|
+
const ld_select_list_box_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_select_list_boxvue_type_script_lang_ts_external, [['render',ld_select_list_boxvue_type_template_id_6529001f_scoped_true_ts_true_render],['__scopeId',"data-v-6529001f"]])
|
|
12951
12989
|
|
|
12952
12990
|
/* harmony default export */ const ld_select_list_box = (ld_select_list_box_exports_);
|
|
12953
12991
|
;// ./src/ld-select-list-box/index.ts
|
package/dist/types/dialogs.d.ts
CHANGED
|
@@ -27,6 +27,8 @@ export interface IModalInfo {
|
|
|
27
27
|
processingDescription?: string | (() => string);
|
|
28
28
|
el?: HTMLElement;
|
|
29
29
|
managerId?: string;
|
|
30
|
+
pressEnterAsOk?: boolean;
|
|
31
|
+
pressEscAsCancel?: boolean;
|
|
30
32
|
hostObject?: IHostObject;
|
|
31
33
|
/**
|
|
32
34
|
* Окно немодальное - это начит окно отображается поверх контента страницы и не ограничивает пользователя
|
|
@@ -95,32 +97,39 @@ export type ModalWindow = IModalWindow<IViewModel<number | string>>;
|
|
|
95
97
|
export class Dialog {
|
|
96
98
|
constructor(
|
|
97
99
|
public title: string,
|
|
98
|
-
public content?: string
|
|
100
|
+
public content?: string,
|
|
101
|
+
public pressEnterAsOk?: boolean,
|
|
102
|
+
public pressEscAsCancel?: boolean,
|
|
103
|
+
public hostObject?: IHostObject
|
|
99
104
|
) {}
|
|
100
105
|
}
|
|
101
106
|
|
|
102
107
|
export class AlertDialog extends Dialog {
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
108
|
+
constructor(data: {
|
|
109
|
+
title: string;
|
|
110
|
+
text: string;
|
|
111
|
+
pressEnterAsOk?: boolean;
|
|
112
|
+
pressEscAsCancel?: boolean;
|
|
113
|
+
hostObject?: IHostObject;
|
|
114
|
+
});
|
|
107
115
|
}
|
|
108
116
|
|
|
109
117
|
export class PromptDialog extends Dialog {
|
|
110
|
-
title: string;
|
|
111
118
|
width?: string;
|
|
112
|
-
|
|
113
|
-
|
|
119
|
+
constructor(data: {
|
|
120
|
+
title: string;
|
|
121
|
+
width?: string;
|
|
122
|
+
pressEnterAsOk?: boolean;
|
|
123
|
+
pressEscAsCancel?: boolean;
|
|
124
|
+
hostObject?: IHostObject;
|
|
125
|
+
});
|
|
114
126
|
}
|
|
115
127
|
|
|
116
128
|
export class ConfirmDialog extends Dialog {
|
|
117
|
-
title: string;
|
|
118
|
-
text: string;
|
|
119
129
|
okTitle?: string;
|
|
120
130
|
cancelTitle?: string;
|
|
121
131
|
okResult?: number | string | boolean;
|
|
122
132
|
cancelResult?: number | string | boolean;
|
|
123
|
-
hostObject?: IHostObject;
|
|
124
133
|
constructor(data: {
|
|
125
134
|
title: string;
|
|
126
135
|
text: string;
|
|
@@ -128,12 +137,13 @@ export class ConfirmDialog extends Dialog {
|
|
|
128
137
|
cancelTitle?: string;
|
|
129
138
|
okResult?: number | string | boolean;
|
|
130
139
|
cancelResult?: number | string | boolean;
|
|
140
|
+
pressEnterAsOk?: boolean;
|
|
141
|
+
pressEscAsCancel?: boolean;
|
|
131
142
|
hostObject?: IHostObject;
|
|
132
143
|
});
|
|
133
144
|
}
|
|
134
145
|
|
|
135
146
|
export class InfoDialog extends Dialog {
|
|
136
|
-
title: string;
|
|
137
147
|
component: string;
|
|
138
148
|
componentProps: Record<string, unknown>;
|
|
139
149
|
width?: string;
|
|
@@ -144,7 +154,6 @@ export class InfoDialog extends Dialog {
|
|
|
144
154
|
hideFooter?: boolean;
|
|
145
155
|
minimizable?: boolean;
|
|
146
156
|
description?: string;
|
|
147
|
-
hostObject?: IHostObject;
|
|
148
157
|
help?: boolean;
|
|
149
158
|
constructor(data: {
|
|
150
159
|
title: string;
|
|
@@ -158,13 +167,14 @@ export class InfoDialog extends Dialog {
|
|
|
158
167
|
hideFooter?: boolean;
|
|
159
168
|
minimizable?: boolean;
|
|
160
169
|
description?: string;
|
|
170
|
+
pressEnterAsOk?: boolean;
|
|
171
|
+
pressEscAsCancel?: boolean;
|
|
161
172
|
hostObject?: IHostObject;
|
|
162
173
|
help?: boolean;
|
|
163
174
|
});
|
|
164
175
|
}
|
|
165
176
|
|
|
166
|
-
export class SelectDialog<T> {
|
|
167
|
-
title: string;
|
|
177
|
+
export class SelectDialog<T> extends Dialog {
|
|
168
178
|
component: string;
|
|
169
179
|
componentProps: {
|
|
170
180
|
disabledItems: Array<T | number | string>;
|
|
@@ -189,7 +199,6 @@ export class SelectDialog<T> {
|
|
|
189
199
|
selectAsOk?: boolean;
|
|
190
200
|
okTitle?: string;
|
|
191
201
|
cancelTitle?: string;
|
|
192
|
-
hostObject?: IHostObject;
|
|
193
202
|
help?: boolean;
|
|
194
203
|
constructor(data: {
|
|
195
204
|
title: string;
|
|
@@ -210,19 +219,19 @@ export class SelectDialog<T> {
|
|
|
210
219
|
selectAsOk?: boolean;
|
|
211
220
|
okTitle?: string;
|
|
212
221
|
cancelTitle?: string;
|
|
222
|
+
pressEnterAsOk?: boolean;
|
|
223
|
+
pressEscAsCancel?: boolean;
|
|
213
224
|
hostObject?: IHostObject;
|
|
214
225
|
help?: boolean;
|
|
215
226
|
});
|
|
216
227
|
}
|
|
217
228
|
|
|
218
|
-
export class CreateEditDialog<T> {
|
|
219
|
-
title: string;
|
|
229
|
+
export class CreateEditDialog<T> extends Dialog {
|
|
220
230
|
component: string;
|
|
221
231
|
componentProps: {
|
|
222
232
|
model: T;
|
|
223
233
|
[key: string]: unknown;
|
|
224
234
|
};
|
|
225
|
-
hostObject?: IHostObject;
|
|
226
235
|
loading?: boolean;
|
|
227
236
|
fullHeight?: boolean;
|
|
228
237
|
width?: string | number;
|
|
@@ -255,7 +264,6 @@ export class CreateEditDialog<T> {
|
|
|
255
264
|
model: T;
|
|
256
265
|
[key: string]: unknown;
|
|
257
266
|
};
|
|
258
|
-
hostObject?: IHostObject;
|
|
259
267
|
loading?: boolean;
|
|
260
268
|
fullHeight?: boolean;
|
|
261
269
|
width?: string | number;
|
|
@@ -280,6 +288,9 @@ export class CreateEditDialog<T> {
|
|
|
280
288
|
noModal?: boolean;
|
|
281
289
|
okTitle?: string;
|
|
282
290
|
cancelTitle?: string;
|
|
291
|
+
pressEnterAsOk?: boolean;
|
|
292
|
+
pressEscAsCancel?: boolean;
|
|
293
|
+
hostObject?: IHostObject;
|
|
283
294
|
help?: boolean;
|
|
284
295
|
});
|
|
285
296
|
}
|