@ldmjs/ui 1.0.72 → 1.0.73
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/index.js +54 -25
- package/dist/types/dialogs.d.ts +7 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6613,10 +6613,10 @@ function ld_data_iterator_reg(vue, options) {
|
|
|
6613
6613
|
}
|
|
6614
6614
|
/* harmony default export */ const src_ld_data_iterator = (ld_data_iterator_reg);
|
|
6615
6615
|
|
|
6616
|
-
;// ./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-dialog/ld-dialog.vue?vue&type=template&id=
|
|
6616
|
+
;// ./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-dialog/ld-dialog.vue?vue&type=template&id=464e4710&ts=true
|
|
6617
6617
|
|
|
6618
|
-
const
|
|
6619
|
-
function
|
|
6618
|
+
const ld_dialogvue_type_template_id_464e4710_ts_true_hoisted_1 = { class: "ld-dialog" };
|
|
6619
|
+
function ld_dialogvue_type_template_id_464e4710_ts_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6620
6620
|
const _component_minimized = (0,external_vue_.resolveComponent)("minimized");
|
|
6621
6621
|
const _component_v_spacer = (0,external_vue_.resolveComponent)("v-spacer");
|
|
6622
6622
|
const _component_square_button = (0,external_vue_.resolveComponent)("square-button");
|
|
@@ -6626,7 +6626,7 @@ function ld_dialogvue_type_template_id_7187923d_ts_true_render(_ctx, _cache, $pr
|
|
|
6626
6626
|
const _component_v_card_actions = (0,external_vue_.resolveComponent)("v-card-actions");
|
|
6627
6627
|
const _component_v_card = (0,external_vue_.resolveComponent)("v-card");
|
|
6628
6628
|
const _component_v_dialog = (0,external_vue_.resolveComponent)("v-dialog");
|
|
6629
|
-
return ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div",
|
|
6629
|
+
return ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", ld_dialogvue_type_template_id_464e4710_ts_true_hoisted_1, [
|
|
6630
6630
|
(0,external_vue_.createVNode)(_component_minimized, {
|
|
6631
6631
|
id: _ctx.id,
|
|
6632
6632
|
dialogs: _ctx.minimized,
|
|
@@ -6634,7 +6634,7 @@ function ld_dialogvue_type_template_id_7187923d_ts_true_render(_ctx, _cache, $pr
|
|
|
6634
6634
|
onClose: _cache[1] || (_cache[1] = ($event) => (_ctx.handleCancel($event))),
|
|
6635
6635
|
onCloseAll: _ctx.handleCancelAll
|
|
6636
6636
|
}, null, 8, ["id", "dialogs", "onCloseAll"]),
|
|
6637
|
-
_cache[
|
|
6637
|
+
_cache[18] || (_cache[18] = (0,external_vue_.createTextVNode)()),
|
|
6638
6638
|
((0,external_vue_.openBlock)(true), (0,external_vue_.createElementBlock)(external_vue_.Fragment, null, (0,external_vue_.renderList)(_ctx.modals, (modal) => {
|
|
6639
6639
|
return ((0,external_vue_.openBlock)(), (0,external_vue_.createElementBlock)("div", {
|
|
6640
6640
|
key: modal.id,
|
|
@@ -6666,20 +6666,40 @@ function ld_dialogvue_type_template_id_7187923d_ts_true_render(_ctx, _cache, $pr
|
|
|
6666
6666
|
(0,external_vue_.createElementVNode)("span", {
|
|
6667
6667
|
class: (0,external_vue_.normalizeClass)({ 'font-weight-bold': _ctx.isMobileGlobal })
|
|
6668
6668
|
}, (0,external_vue_.toDisplayString)(_ctx.modalTitle(modal)), 3),
|
|
6669
|
-
_cache[6] || (_cache[6] = (0,external_vue_.createTextVNode)()),
|
|
6670
|
-
(0,external_vue_.createVNode)(_component_v_spacer),
|
|
6671
6669
|
_cache[7] || (_cache[7] = (0,external_vue_.createTextVNode)()),
|
|
6672
|
-
(
|
|
6670
|
+
(0,external_vue_.createVNode)(_component_v_spacer),
|
|
6671
|
+
_cache[8] || (_cache[8] = (0,external_vue_.createTextVNode)()),
|
|
6672
|
+
(modal.help)
|
|
6673
6673
|
? ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_square_button, {
|
|
6674
6674
|
key: 0,
|
|
6675
6675
|
icon: "",
|
|
6676
|
+
onClick: ($event) => (_ctx.onHelp(modal))
|
|
6677
|
+
}, {
|
|
6678
|
+
default: (0,external_vue_.withCtx)(() => [
|
|
6679
|
+
((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)((0,external_vue_.resolveDynamicComponent)(_ctx.$ldmui.options.aliases['ld-icon']), {
|
|
6680
|
+
color: modal.darkTitle ? 'white' : 'primary'
|
|
6681
|
+
}, {
|
|
6682
|
+
default: (0,external_vue_.withCtx)(() => _cache[2] || (_cache[2] = [
|
|
6683
|
+
(0,external_vue_.createTextVNode)("\r\n help\r\n ")
|
|
6684
|
+
])),
|
|
6685
|
+
_: 2
|
|
6686
|
+
}, 1032, ["color"]))
|
|
6687
|
+
]),
|
|
6688
|
+
_: 2
|
|
6689
|
+
}, 1032, ["onClick"]))
|
|
6690
|
+
: (0,external_vue_.createCommentVNode)("", true),
|
|
6691
|
+
_cache[9] || (_cache[9] = (0,external_vue_.createTextVNode)()),
|
|
6692
|
+
(modal.minimizable && !_ctx.isMobileGlobal)
|
|
6693
|
+
? ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_square_button, {
|
|
6694
|
+
key: 1,
|
|
6695
|
+
icon: "",
|
|
6676
6696
|
onClick: ($event) => (_ctx.onMinimize(modal))
|
|
6677
6697
|
}, {
|
|
6678
6698
|
default: (0,external_vue_.withCtx)(() => [
|
|
6679
6699
|
((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)((0,external_vue_.resolveDynamicComponent)(_ctx.$ldmui.options.aliases['ld-icon']), {
|
|
6680
6700
|
color: modal.darkTitle ? 'white' : 'grey'
|
|
6681
6701
|
}, {
|
|
6682
|
-
default: (0,external_vue_.withCtx)(() => _cache[
|
|
6702
|
+
default: (0,external_vue_.withCtx)(() => _cache[3] || (_cache[3] = [
|
|
6683
6703
|
(0,external_vue_.createTextVNode)("\r\n minimize\r\n ")
|
|
6684
6704
|
])),
|
|
6685
6705
|
_: 2
|
|
@@ -6688,10 +6708,10 @@ function ld_dialogvue_type_template_id_7187923d_ts_true_render(_ctx, _cache, $pr
|
|
|
6688
6708
|
_: 2
|
|
6689
6709
|
}, 1032, ["onClick"]))
|
|
6690
6710
|
: (0,external_vue_.createCommentVNode)("", true),
|
|
6691
|
-
_cache[
|
|
6711
|
+
_cache[10] || (_cache[10] = (0,external_vue_.createTextVNode)()),
|
|
6692
6712
|
(_ctx.isExpanded(modal) && !_ctx.isMobileGlobal)
|
|
6693
6713
|
? ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_square_button, {
|
|
6694
|
-
key:
|
|
6714
|
+
key: 2,
|
|
6695
6715
|
icon: "",
|
|
6696
6716
|
onClick: ($event) => (_ctx.onExpandCollapse(modal))
|
|
6697
6717
|
}, {
|
|
@@ -6699,7 +6719,7 @@ function ld_dialogvue_type_template_id_7187923d_ts_true_render(_ctx, _cache, $pr
|
|
|
6699
6719
|
((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)((0,external_vue_.resolveDynamicComponent)(_ctx.$ldmui.options.aliases['ld-icon']), {
|
|
6700
6720
|
color: modal.darkTitle ? 'white' : 'grey'
|
|
6701
6721
|
}, {
|
|
6702
|
-
default: (0,external_vue_.withCtx)(() => _cache[
|
|
6722
|
+
default: (0,external_vue_.withCtx)(() => _cache[4] || (_cache[4] = [
|
|
6703
6723
|
(0,external_vue_.createTextVNode)("\r\n close_fullscreen\r\n ")
|
|
6704
6724
|
])),
|
|
6705
6725
|
_: 2
|
|
@@ -6708,10 +6728,10 @@ function ld_dialogvue_type_template_id_7187923d_ts_true_render(_ctx, _cache, $pr
|
|
|
6708
6728
|
_: 2
|
|
6709
6729
|
}, 1032, ["onClick"]))
|
|
6710
6730
|
: (0,external_vue_.createCommentVNode)("", true),
|
|
6711
|
-
_cache[
|
|
6731
|
+
_cache[11] || (_cache[11] = (0,external_vue_.createTextVNode)()),
|
|
6712
6732
|
(_ctx.isCollapsed(modal) && !_ctx.isMobileGlobal)
|
|
6713
6733
|
? ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_square_button, {
|
|
6714
|
-
key:
|
|
6734
|
+
key: 3,
|
|
6715
6735
|
icon: "",
|
|
6716
6736
|
onClick: ($event) => (_ctx.onExpandCollapse(modal))
|
|
6717
6737
|
}, {
|
|
@@ -6719,7 +6739,7 @@ function ld_dialogvue_type_template_id_7187923d_ts_true_render(_ctx, _cache, $pr
|
|
|
6719
6739
|
((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)((0,external_vue_.resolveDynamicComponent)(_ctx.$ldmui.options.aliases['ld-icon']), {
|
|
6720
6740
|
color: modal.darkTitle ? 'white' : 'grey'
|
|
6721
6741
|
}, {
|
|
6722
|
-
default: (0,external_vue_.withCtx)(() => _cache[
|
|
6742
|
+
default: (0,external_vue_.withCtx)(() => _cache[5] || (_cache[5] = [
|
|
6723
6743
|
(0,external_vue_.createTextVNode)("\r\n open_in_full\r\n ")
|
|
6724
6744
|
])),
|
|
6725
6745
|
_: 2
|
|
@@ -6728,10 +6748,10 @@ function ld_dialogvue_type_template_id_7187923d_ts_true_render(_ctx, _cache, $pr
|
|
|
6728
6748
|
_: 2
|
|
6729
6749
|
}, 1032, ["onClick"]))
|
|
6730
6750
|
: (0,external_vue_.createCommentVNode)("", true),
|
|
6731
|
-
_cache[
|
|
6751
|
+
_cache[12] || (_cache[12] = (0,external_vue_.createTextVNode)()),
|
|
6732
6752
|
(modal.closable || _ctx.isMobileGlobal)
|
|
6733
6753
|
? ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_square_button, {
|
|
6734
|
-
key:
|
|
6754
|
+
key: 4,
|
|
6735
6755
|
icon: "",
|
|
6736
6756
|
class: "ml-1",
|
|
6737
6757
|
onClick: ($event) => (_ctx.handleCancel(modal, true))
|
|
@@ -6740,7 +6760,7 @@ function ld_dialogvue_type_template_id_7187923d_ts_true_render(_ctx, _cache, $pr
|
|
|
6740
6760
|
((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)((0,external_vue_.resolveDynamicComponent)(_ctx.$ldmui.options.aliases['ld-icon']), {
|
|
6741
6761
|
color: _ctx.isTitleDark(modal) ? 'white' : 'grey'
|
|
6742
6762
|
}, {
|
|
6743
|
-
default: (0,external_vue_.withCtx)(() => _cache[
|
|
6763
|
+
default: (0,external_vue_.withCtx)(() => _cache[6] || (_cache[6] = [
|
|
6744
6764
|
(0,external_vue_.createTextVNode)("\r\n close\r\n ")
|
|
6745
6765
|
])),
|
|
6746
6766
|
_: 2
|
|
@@ -6752,7 +6772,7 @@ function ld_dialogvue_type_template_id_7187923d_ts_true_render(_ctx, _cache, $pr
|
|
|
6752
6772
|
]),
|
|
6753
6773
|
_: 2
|
|
6754
6774
|
}, 1032, ["class"]),
|
|
6755
|
-
_cache[
|
|
6775
|
+
_cache[16] || (_cache[16] = (0,external_vue_.createTextVNode)()),
|
|
6756
6776
|
(_ctx.isAlertDialog(modal) || _ctx.isConfirmDialog(modal))
|
|
6757
6777
|
? ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_v_card_text, {
|
|
6758
6778
|
key: 0,
|
|
@@ -6786,7 +6806,7 @@ function ld_dialogvue_type_template_id_7187923d_ts_true_render(_ctx, _cache, $pr
|
|
|
6786
6806
|
options: { transparent: true, global: false },
|
|
6787
6807
|
visible: modal.loading
|
|
6788
6808
|
}, null, 8, ["visible"])),
|
|
6789
|
-
_cache[
|
|
6809
|
+
_cache[13] || (_cache[13] = (0,external_vue_.createTextVNode)()),
|
|
6790
6810
|
(!modal.loading && (_ctx.isInfoDialog(modal) || _ctx.isSelectDialog(modal)))
|
|
6791
6811
|
? ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)((0,external_vue_.resolveDynamicComponent)(modal.component), (0,external_vue_.mergeProps)({
|
|
6792
6812
|
key: 0,
|
|
@@ -6798,7 +6818,7 @@ function ld_dialogvue_type_template_id_7187923d_ts_true_render(_ctx, _cache, $pr
|
|
|
6798
6818
|
onExternalComponentCreated: ($event) => (_ctx.onComponentInstanceCreated(modal, $event))
|
|
6799
6819
|
}), null, 16, ["onSetResult", "onSetResultAndClose", "onCancel", "onExternalComponentCreated"]))
|
|
6800
6820
|
: (0,external_vue_.createCommentVNode)("", true),
|
|
6801
|
-
_cache[
|
|
6821
|
+
_cache[14] || (_cache[14] = (0,external_vue_.createTextVNode)()),
|
|
6802
6822
|
(!modal.loading && _ctx.isCreateEditDialog(modal))
|
|
6803
6823
|
? ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)((0,external_vue_.resolveDynamicComponent)(modal.component), (0,external_vue_.mergeProps)({
|
|
6804
6824
|
key: 1,
|
|
@@ -6817,7 +6837,7 @@ function ld_dialogvue_type_template_id_7187923d_ts_true_render(_ctx, _cache, $pr
|
|
|
6817
6837
|
_: 2
|
|
6818
6838
|
}, 1032, ["style"]))
|
|
6819
6839
|
: (0,external_vue_.createCommentVNode)("", true),
|
|
6820
|
-
_cache[
|
|
6840
|
+
_cache[17] || (_cache[17] = (0,external_vue_.createTextVNode)()),
|
|
6821
6841
|
(!modal.hideFooter)
|
|
6822
6842
|
? ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_v_card_actions, {
|
|
6823
6843
|
key: 3,
|
|
@@ -6837,7 +6857,7 @@ function ld_dialogvue_type_template_id_7187923d_ts_true_render(_ctx, _cache, $pr
|
|
|
6837
6857
|
]),
|
|
6838
6858
|
_: 2
|
|
6839
6859
|
}, 1032, ["disabled", "loading", "onClick"]),
|
|
6840
|
-
_cache[
|
|
6860
|
+
_cache[15] || (_cache[15] = (0,external_vue_.createTextVNode)()),
|
|
6841
6861
|
(!_ctx.isAlertDialog(modal) && !_ctx.isInfoDialog(modal))
|
|
6842
6862
|
? ((0,external_vue_.openBlock)(), (0,external_vue_.createBlock)(_component_small_button, {
|
|
6843
6863
|
key: 0,
|
|
@@ -6868,7 +6888,7 @@ function ld_dialogvue_type_template_id_7187923d_ts_true_render(_ctx, _cache, $pr
|
|
|
6868
6888
|
]));
|
|
6869
6889
|
}
|
|
6870
6890
|
|
|
6871
|
-
;// ./src/ld-dialog/ld-dialog.vue?vue&type=template&id=
|
|
6891
|
+
;// ./src/ld-dialog/ld-dialog.vue?vue&type=template&id=464e4710&ts=true
|
|
6872
6892
|
|
|
6873
6893
|
// EXTERNAL MODULE: external "@ldmjs/core"
|
|
6874
6894
|
var core_ = __webpack_require__(934);
|
|
@@ -7953,6 +7973,7 @@ class InfoDialog extends Dialog {
|
|
|
7953
7973
|
this.minimizable = data.minimizable;
|
|
7954
7974
|
this.description = data.description;
|
|
7955
7975
|
this.hostObject = data.hostObject;
|
|
7976
|
+
this.help = data.help;
|
|
7956
7977
|
}
|
|
7957
7978
|
}
|
|
7958
7979
|
class SelectDialog extends Dialog {
|
|
@@ -7968,6 +7989,7 @@ class SelectDialog extends Dialog {
|
|
|
7968
7989
|
this.okTitle = data.okTitle;
|
|
7969
7990
|
this.cancelTitle = data.cancelTitle;
|
|
7970
7991
|
this.hostObject = data.hostObject;
|
|
7992
|
+
this.help = data.help;
|
|
7971
7993
|
}
|
|
7972
7994
|
}
|
|
7973
7995
|
class CreateEditDialog extends Dialog {
|
|
@@ -7996,6 +8018,7 @@ class CreateEditDialog extends Dialog {
|
|
|
7996
8018
|
this.noModal = data.noModal;
|
|
7997
8019
|
this.okTitle = data.okTitle;
|
|
7998
8020
|
this.cancelTitle = data.cancelTitle;
|
|
8021
|
+
this.help = data.help;
|
|
7999
8022
|
this.isChanged = () => {
|
|
8000
8023
|
if (this._isChanged instanceof Function) {
|
|
8001
8024
|
return this._isChanged();
|
|
@@ -8122,6 +8145,7 @@ let DialogComponent = class DialogComponent extends (0,external_vue_class_compon
|
|
|
8122
8145
|
* т.к. это причина зависания страницы, если одновременно несколько диалогов на экране
|
|
8123
8146
|
*/
|
|
8124
8147
|
retainFocus: false,
|
|
8148
|
+
help: modalInfo.help,
|
|
8125
8149
|
};
|
|
8126
8150
|
if (modal.expandable) {
|
|
8127
8151
|
modal.expanded = modalInfo.expanded;
|
|
@@ -8435,6 +8459,11 @@ let DialogComponent = class DialogComponent extends (0,external_vue_class_compon
|
|
|
8435
8459
|
}
|
|
8436
8460
|
this.dialogManager.dialogProcessing(modal);
|
|
8437
8461
|
}
|
|
8462
|
+
onHelp(modal) {
|
|
8463
|
+
if (modal.componentInstance && modal.componentInstance.onHelp) {
|
|
8464
|
+
modal.componentInstance.onHelp();
|
|
8465
|
+
}
|
|
8466
|
+
}
|
|
8438
8467
|
remove(modal) {
|
|
8439
8468
|
modal.resolved = true;
|
|
8440
8469
|
this.$nextTick(() => {
|
|
@@ -8589,7 +8618,7 @@ DialogComponent = ld_dialogvue_type_script_lang_ts_external_decorate([
|
|
|
8589
8618
|
|
|
8590
8619
|
|
|
8591
8620
|
;
|
|
8592
|
-
const ld_dialog_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_dialogvue_type_script_lang_ts_external, [['render',
|
|
8621
|
+
const ld_dialog_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ld_dialogvue_type_script_lang_ts_external, [['render',ld_dialogvue_type_template_id_464e4710_ts_true_render]])
|
|
8593
8622
|
|
|
8594
8623
|
/* harmony default export */ const ld_dialog = (ld_dialog_exports_);
|
|
8595
8624
|
;// ./src/ld-dialog/index.ts
|
package/dist/types/dialogs.d.ts
CHANGED
|
@@ -64,6 +64,7 @@ export interface IModalInfo {
|
|
|
64
64
|
height: string | number;
|
|
65
65
|
noModal?: boolean;
|
|
66
66
|
};
|
|
67
|
+
help?: boolean;
|
|
67
68
|
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
|
|
68
69
|
resolveFunction?: (data?: any) => void;
|
|
69
70
|
/**
|
|
@@ -144,6 +145,7 @@ export class InfoDialog extends Dialog {
|
|
|
144
145
|
minimizable?: boolean;
|
|
145
146
|
description?: string;
|
|
146
147
|
hostObject?: IHostObject;
|
|
148
|
+
help?: boolean;
|
|
147
149
|
constructor(data: {
|
|
148
150
|
title: string;
|
|
149
151
|
component: string;
|
|
@@ -157,6 +159,7 @@ export class InfoDialog extends Dialog {
|
|
|
157
159
|
minimizable?: boolean;
|
|
158
160
|
description?: string;
|
|
159
161
|
hostObject?: IHostObject;
|
|
162
|
+
help?: boolean;
|
|
160
163
|
});
|
|
161
164
|
}
|
|
162
165
|
|
|
@@ -187,6 +190,7 @@ export class SelectDialog<T> {
|
|
|
187
190
|
okTitle?: string;
|
|
188
191
|
cancelTitle?: string;
|
|
189
192
|
hostObject?: IHostObject;
|
|
193
|
+
help?: boolean;
|
|
190
194
|
constructor(data: {
|
|
191
195
|
title: string;
|
|
192
196
|
component: string;
|
|
@@ -207,6 +211,7 @@ export class SelectDialog<T> {
|
|
|
207
211
|
okTitle?: string;
|
|
208
212
|
cancelTitle?: string;
|
|
209
213
|
hostObject?: IHostObject;
|
|
214
|
+
help?: boolean;
|
|
210
215
|
});
|
|
211
216
|
}
|
|
212
217
|
|
|
@@ -242,6 +247,7 @@ export class CreateEditDialog<T> {
|
|
|
242
247
|
noModal?: boolean;
|
|
243
248
|
okTitle?: string;
|
|
244
249
|
cancelTitle?: string;
|
|
250
|
+
help?: boolean;
|
|
245
251
|
constructor(data: {
|
|
246
252
|
title: string;
|
|
247
253
|
component: string;
|
|
@@ -274,5 +280,6 @@ export class CreateEditDialog<T> {
|
|
|
274
280
|
noModal?: boolean;
|
|
275
281
|
okTitle?: string;
|
|
276
282
|
cancelTitle?: string;
|
|
283
|
+
help?: boolean;
|
|
277
284
|
});
|
|
278
285
|
}
|