@farris/ui-vue 1.3.0 → 1.3.3
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/components/accordion/index.esm.js +103 -99
- package/components/accordion/index.umd.cjs +1 -1
- package/components/avatar/index.esm.js +454 -398
- package/components/avatar/index.umd.cjs +1 -1
- package/components/binding-selector/index.esm.js +444 -0
- package/components/binding-selector/index.umd.cjs +1 -0
- package/components/binding-selector/package.json +8 -0
- package/components/border-editor/index.esm.js +5 -3
- package/components/border-editor/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +143 -139
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/calendar/index.esm.js +479 -476
- package/components/calendar/index.umd.cjs +1 -1
- package/components/capsule/index.esm.js +255 -252
- package/components/capsule/index.umd.cjs +1 -1
- package/components/checkbox/index.esm.js +652 -567
- package/components/checkbox/index.umd.cjs +1 -1
- package/components/color-picker/index.esm.js +518 -521
- package/components/color-picker/index.umd.cjs +2 -2
- package/components/combo-list/index.esm.js +659 -553
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-tree/index.esm.js +162 -155
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/common/index.esm.js +866 -747
- package/components/common/index.umd.cjs +1 -1
- package/components/component/index.esm.js +371 -998
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +1174 -1280
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +340 -991
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-grid/index.esm.js +6066 -5847
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +3400 -3486
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +2328 -2446
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/designer-canvas/index.css +1 -1
- package/components/designer-canvas/index.esm.js +9551 -1200
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/designer-outline/index.esm.js +2 -1
- package/components/designer-outline/index.umd.cjs +1 -1
- package/components/drawer/index.esm.js +34 -38
- package/components/drawer/index.umd.cjs +1 -1
- package/components/dropdown/index.esm.js +234 -231
- package/components/dropdown/index.umd.cjs +2 -2
- package/components/dynamic-form/index.esm.js +1996 -2630
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +138 -123
- package/components/dynamic-resolver/index.umd.cjs +1 -1
- package/components/dynamic-view/index.esm.js +218 -218
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/event-parameter/index.esm.js +311 -0
- package/components/event-parameter/index.umd.cjs +1 -0
- package/components/event-parameter/package.json +8 -0
- package/components/events-editor/index.css +1 -1
- package/components/events-editor/index.esm.js +548 -586
- package/components/events-editor/index.umd.cjs +1 -1
- package/components/expression-editor/index.esm.js +95 -91
- package/components/expression-editor/index.umd.cjs +1 -1
- package/components/external-container/index.esm.js +2871 -3736
- package/components/external-container/index.umd.cjs +1 -1
- package/components/field-selector/index.esm.js +3380 -3645
- package/components/field-selector/index.umd.cjs +1 -1
- package/components/filter-bar/index.css +1 -1
- package/components/filter-bar/index.esm.js +10543 -3207
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/flow-canvas/index.css +1 -1
- package/components/flow-canvas/index.esm.js +9775 -1312
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/image-cropper/index.esm.js +442 -438
- package/components/image-cropper/index.umd.cjs +1 -1
- package/components/input-group/index.esm.js +587 -807
- package/components/input-group/index.umd.cjs +1 -1
- package/components/layout/index.esm.js +415 -381
- package/components/layout/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +361 -1024
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/list-view/index.esm.js +2265 -2371
- package/components/list-view/index.umd.cjs +1 -1
- package/components/lookup/index.esm.js +6425 -6257
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.esm.js +6164 -5946
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/message-box/index.esm.js +252 -252
- package/components/message-box/index.umd.cjs +1 -1
- package/components/modal/index.esm.js +70 -70
- package/components/modal/index.umd.cjs +1 -1
- package/components/nav/index.esm.js +524 -1474
- package/components/nav/index.umd.cjs +3 -3
- package/components/number-range/index.esm.js +547 -502
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +646 -574
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.esm.js +1181 -2028
- package/components/order/index.umd.cjs +1 -1
- package/components/page-footer/index.esm.js +134 -131
- package/components/page-footer/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +1185 -2027
- package/components/page-header/index.umd.cjs +1 -1
- package/components/pagination/index.esm.js +442 -1368
- package/components/pagination/index.umd.cjs +1 -1
- package/components/progress/index.esm.js +238 -235
- package/components/progress/index.umd.cjs +3 -3
- package/components/property-editor/index.esm.js +1635 -1713
- package/components/property-editor/index.umd.cjs +2 -2
- package/components/property-panel/index.esm.js +791 -716
- package/components/property-panel/index.umd.cjs +1 -1
- package/components/query-solution/index.css +1 -1
- package/components/query-solution/index.esm.js +12203 -5274
- package/components/query-solution/index.umd.cjs +6 -1
- package/components/radio-button/index.esm.js +97 -97
- package/components/radio-button/index.umd.cjs +1 -1
- package/components/radio-group/index.css +1 -1
- package/components/radio-group/index.esm.js +1873 -520
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/rate/index.esm.js +299 -300
- package/components/rate/index.umd.cjs +1 -1
- package/components/response-layout/index.esm.js +176 -173
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +715 -659
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +1032 -1883
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +4767 -5693
- package/components/schema-selector/index.umd.cjs +2 -2
- package/components/search-box/index.esm.js +169 -161
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +490 -1167
- package/components/section/index.umd.cjs +1 -1
- package/components/smoke-detector/index.esm.js +154 -151
- package/components/smoke-detector/index.umd.cjs +1 -1
- package/components/splitter/index.esm.js +575 -1204
- package/components/splitter/index.umd.cjs +1 -1
- package/components/splitter/style.js +2 -0
- package/components/step/index.esm.js +279 -276
- package/components/step/index.umd.cjs +1 -1
- package/components/switch/index.esm.js +478 -428
- package/components/switch/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +2591 -3326
- package/components/tabs/index.umd.cjs +1 -1
- package/components/tags/index.esm.js +442 -439
- package/components/tags/index.umd.cjs +1 -1
- package/components/text/index.esm.js +309 -307
- package/components/text/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +500 -430
- package/components/textarea/index.umd.cjs +1 -1
- package/components/time-picker/index.esm.js +1391 -1341
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/transfer/index.esm.js +574 -575
- package/components/transfer/index.umd.cjs +1 -1
- package/components/tree-grid/index.esm.js +3422 -3536
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +2661 -2764
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/uploader/index.esm.js +675 -674
- package/components/uploader/index.umd.cjs +2 -2
- package/components/verify-detail/index.esm.js +300 -297
- package/components/verify-detail/index.umd.cjs +1 -1
- package/components/video/index.esm.js +454 -1089
- package/components/video/index.umd.cjs +1 -1
- package/components/weather/index.esm.js +709 -706
- package/components/weather/index.umd.cjs +5 -5
- package/farris.all.esm.js +54780 -52757
- package/farris.all.umd.cjs +14 -9
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/binding-selector/index.d.ts +55 -0
- package/types/binding-selector/src/binding-selector.component.d.ts +11 -0
- package/types/binding-selector/src/binding-selector.props.d.ts +52 -0
- package/types/binding-selector/src/components/binding-selector-container.component.d.ts +13 -0
- package/types/binding-selector/src/composition/use-field-selection.d.ts +9 -0
- package/types/combo-list/src/components/list-container.component.d.ts +6 -6
- package/types/combo-list/src/components/list-container.props.d.ts +1 -1
- package/types/combo-tree/src/components/tree-container.component.d.ts +5 -5
- package/types/common/directive/area-response.d.ts +10 -0
- package/types/common/entity/entity-schema.d.ts +26 -11
- package/types/common/index.d.ts +9 -0
- package/types/common/radio-checkbox/radio-checkbox.props.d.ts +1 -0
- package/types/common/types.d.ts +2 -2
- package/types/common/utils/resolve-field.d.ts +2 -0
- package/types/common/utils/use-class.d.ts +7 -0
- package/types/component/src/designer/use-designer-rules.d.ts +2 -2
- package/types/condition/src/condition-fields.design.component.d.ts +18 -0
- package/types/condition/src/types.d.ts +5 -4
- package/types/content-container/src/designer/use-designer-rules.d.ts +3 -3
- package/types/data-grid/index.d.ts +8 -5
- package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +20 -0
- package/types/data-grid/src/{designer/data-grid-column.props.d.ts → data-grid-column.props.d.ts} +1 -1
- package/types/data-grid/src/data-grid.component.d.ts +3 -2
- package/types/data-grid/src/data-grid.props.d.ts +2 -2
- package/types/data-grid/src/designer/data-grid.design.component.d.ts +2 -2
- package/types/data-grid/src/designer/grid-field-editor.component.d.ts +14 -14
- package/types/data-grid/src/designer/use-designer-rules.d.ts +2 -2
- package/types/data-grid/src/schema/schema-resolver.d.ts +1 -1
- package/types/data-view/components/row/hierarchy-row.component.d.ts +2 -2
- package/types/data-view/composition/data/use-tree-data.d.ts +1 -1
- package/types/data-view/composition/types.d.ts +9 -11
- package/types/date-picker/src/components/calendar/calendar.component.d.ts +3 -3
- package/types/date-picker/src/components/month/month.component.d.ts +3 -3
- package/types/date-picker/src/components/year/year.component.d.ts +3 -3
- package/types/designer-canvas/index.d.ts +3 -1
- package/types/designer-canvas/src/composition/dg-control.d.ts +5 -0
- package/types/designer-canvas/src/composition/function/drag-resolve.d.ts +5 -0
- package/types/designer-canvas/src/composition/rule/use-dragula-common-rule.d.ts +4 -0
- package/types/designer-canvas/src/composition/rule/use-template-rule.d.ts +30 -0
- package/types/designer-canvas/src/composition/types.d.ts +49 -41
- package/types/designer-canvas/src/types.d.ts +10 -21
- package/types/dynamic-form/index.d.ts +1 -1
- package/types/dynamic-form/src/designer/form-group-use-designer-rules.d.ts +3 -0
- package/types/dynamic-form/src/designer/response-form-use-designer-rules.d.ts +3 -0
- package/types/dynamic-form/src/designer/response-form.design.component.d.ts +7 -1
- package/types/dynamic-form/src/property-config/{form.property-config.d.ts → response-form.property-config.d.ts} +1 -1
- package/types/dynamic-form/src/schema/{schema-resolver.d.ts → response-form-schema-resolver.d.ts} +1 -1
- package/types/dynamic-form/src/types.d.ts +1 -1
- package/types/dynamic-resolver/src/common/toolbar-resolver.d.ts +6 -1
- package/types/dynamic-resolver/src/converter/row-number.converter.d.ts +3 -0
- package/types/entity-binding-selector/composition/use-entity-tree.d.ts +7 -0
- package/types/entity-binding-selector/entity-binding-selector.component.d.ts +11 -0
- package/types/entity-binding-selector/entity-binding-selector.props.d.ts +3 -0
- package/types/enum-editor/src/components/enum-editor-container.component.d.ts +3 -3
- package/types/enum-editor/src/enum-editor.component.d.ts +3 -3
- package/types/event-parameter/index.d.ts +31 -0
- package/types/event-parameter/src/composition/type.d.ts +77 -0
- package/types/event-parameter/src/composition/use-editor-combotree.d.ts +3 -0
- package/types/event-parameter/src/composition/use-editor-input.d.ts +3 -0
- package/types/event-parameter/src/composition/use-editor-select.d.ts +3 -0
- package/types/event-parameter/src/composition/use-editor-switch.d.ts +3 -0
- package/types/event-parameter/src/composition/use-editor.d.ts +3 -0
- package/types/event-parameter/src/event-parameter.component.d.ts +8 -0
- package/types/event-parameter/src/event-parameter.props.d.ts +34 -0
- package/types/external-container/src/designer/import-external-schema.component.d.ts +1 -1
- package/types/external-container/src/designer/use-designer-rules.d.ts +3 -3
- package/types/field-selector/src/field-selector.component.d.ts +1 -2
- package/types/field-selector/src/field-selector.props.d.ts +0 -9
- package/types/input-group/src/designer/use-input-group-rules.d.ts +1 -2
- package/types/layout/src/designer/layout-pane-use-designer-rules.d.ts +3 -3
- package/types/list-nav/src/designer/use-designer-rules.d.ts +3 -0
- package/types/list-view/src/designer/list-view-table.design.component.d.ts +15 -0
- package/types/list-view/src/list-view-table.component.d.ts +15 -0
- package/types/lookup/src/composition/use-user-data.d.ts +2 -2
- package/types/lookup/src/property-config/lookup.property-config.d.ts +2 -6
- package/types/modal/src/composition/modal.service.d.ts +2 -1
- package/types/page-header/src/designer/page-header.design.component.d.ts +1 -1
- package/types/page-header/src/page-header.component.d.ts +1 -1
- package/types/pagination/src/components/buttons/goto-buttons.component.d.ts +2 -2
- package/types/pagination/src/components/buttons/next-buttons.component.d.ts +2 -2
- package/types/pagination/src/components/buttons/previous-buttons.component.d.ts +2 -2
- package/types/pagination/src/components/pages/page-list.component.d.ts +2 -2
- package/types/pagination/src/components/pages/page-number.component.d.ts +2 -2
- package/types/property-panel/index.d.ts +3 -1
- package/types/property-panel/src/composition/entity/input-base-property.d.ts +1 -1
- package/types/property-panel/src/composition/entity/property-entity.d.ts +1 -1
- package/types/property-panel/src/composition/type.d.ts +0 -13
- package/types/query-solution/src/composition/types.d.ts +35 -4
- package/types/query-solution/src/composition/use-header.d.ts +21 -0
- package/types/query-solution/src/composition/{use-filter.d.ts → use-http.d.ts} +2 -2
- package/types/query-solution/src/composition/use-solution.d.ts +20 -0
- package/types/query-solution/src/designer/query-solution-config/composition/types.d.ts +43 -35
- package/types/query-solution/src/designer/query-solution-config/composition/use-panel.d.ts +2 -16
- package/types/query-solution/src/designer/query-solution-config/composition/use-property.d.ts +19 -0
- package/types/query-solution/src/designer/query-solution-config/composition/use-querysolution-rules.d.ts +3 -0
- package/types/query-solution/src/designer/query-solution-config/composition/use-transfer.d.ts +1 -1
- package/types/query-solution/src/designer/query-solution-config/query-solution-config.props.d.ts +14 -14
- package/types/query-solution/src/property-config/query-solution.property-config.d.ts +12 -0
- package/types/query-solution/src/query-solution.d.ts +10 -2
- package/types/query-solution/src/solutions.d.ts +108 -509
- package/types/radio-group/src/designer/item-collection-editor-inner.component.d.ts +29 -0
- package/types/radio-group/src/designer/item-collection-editor.component.d.ts +29 -0
- package/types/radio-group/src/designer/item-collection-editor.props.d.ts +21 -0
- package/types/radio-group/src/schema/schema-mapper.d.ts +1 -0
- package/types/radio-group/src/schema/schema-resolver.d.ts +1 -0
- package/types/response-layout-editor/index.d.ts +3 -1
- package/types/response-toolbar/src/designer/use-designer-rules.d.ts +3 -3
- package/types/response-toolbar/src/property-config/response-toolbar-item.property-config.d.ts +1 -0
- package/types/response-toolbar/src/property-config/response-toolbar.property-config.d.ts +1 -0
- package/types/section/src/designer/use-designer-rules.d.ts +3 -3
- package/types/section/src/property-config/section.property-config.d.ts +17 -17
- package/types/section/src/schema/schema-resolver.d.ts +1 -2
- package/types/section/src/schema/toolbar-resolver.d.ts +1 -1
- package/types/splitter/src/components/splitter-pane.component.d.ts +1 -1
- package/types/splitter/src/designer/splitter-pane-use-designer-rules.d.ts +3 -3
- package/types/splitter/src/designer/splitter-use-designer-rules.d.ts +3 -3
- package/types/tabs/src/composition/types.d.ts +4 -1
- package/types/tabs/src/designer/tab-page-use-designer-rules.d.ts +3 -3
- package/types/tabs/src/designer/tab-use-designer-rules.d.ts +3 -3
- package/types/tabs/src/property-config/tab-page.property-config.d.ts +9 -59
- package/types/tabs/src/property-config/tabs.property-config.d.ts +8 -71
- package/types/tabs/src/schema/schema-resolver.d.ts +1 -2
- package/types/text/src/composition/types.d.ts +4 -4
- package/types/textarea/src/property-config/textarea.property-config.d.ts +23 -0
- package/types/tree-grid/index.d.ts +3 -3
- package/types/tree-grid/src/tree-grid.component.d.ts +1 -1
- package/types/weather/src/composition/use-weather-charts.d.ts +15 -0
- package/types/weather/src/composition/use-weather-color.d.ts +15 -0
- package/types/weather/src/composition/use-weather-data.d.ts +15 -0
- package/types/weather/src/composition/use-weather-format-number.d.ts +15 -0
- package/types/designer-canvas/src/composition/rule/use-drag-drop-rules.d.ts +0 -19
- package/types/designer-canvas/src/composition/use-dragula-common-rule.d.ts +0 -4
- package/types/dynamic-form/src/designer/use-designer-rules.d.ts +0 -3
- package/types/list-nav/src/composition/use-designer-rules.d.ts +0 -3
- package/types/property-panel/src/composition/entity/use-input-rules.d.ts +0 -3
- package/types/query-solution/src/designer/query-solution-config/composition/mock-data.d.ts +0 -6
- package/types/tree-grid/src/schema/column-resolver.d.ts +0 -3
- package/types/weather/src/composition/types.d.ts +0 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var ze = Object.defineProperty;
|
|
2
2
|
var Re = (t, e, n) => e in t ? ze(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
|
-
var
|
|
4
|
-
import { ref as l, computed as y, createVNode as
|
|
3
|
+
var V = (t, e, n) => Re(t, typeof e != "symbol" ? e + "" : e, n);
|
|
4
|
+
import { ref as l, computed as y, createVNode as c, Fragment as ne, createTextVNode as Se, defineComponent as oe, watch as X, onMounted as se, onUnmounted as ue, Teleport as He, Transition as Oe, shallowRef as Ie, createApp as je, nextTick as Le, render as te, h as Fe, cloneVNode as De, mergeProps as ie, reactive as W } from "vue";
|
|
5
5
|
const Pe = {
|
|
6
6
|
width: { Type: Number, default: 400 },
|
|
7
7
|
type: { Type: String, default: "info" },
|
|
@@ -15,30 +15,31 @@ const Pe = {
|
|
|
15
15
|
function ae() {
|
|
16
16
|
return new DOMException("The request is not allowed", "NotAllowedError");
|
|
17
17
|
}
|
|
18
|
-
async function
|
|
18
|
+
async function Ne(t) {
|
|
19
19
|
if (!navigator.clipboard)
|
|
20
20
|
throw ae();
|
|
21
21
|
return navigator.clipboard.writeText(t);
|
|
22
22
|
}
|
|
23
|
-
async function
|
|
23
|
+
async function Ve(t) {
|
|
24
24
|
const e = document.createElement("span");
|
|
25
25
|
e.textContent = t, e.style.whiteSpace = "pre", e.style.webkitUserSelect = "auto", e.style.userSelect = "all", document.body.appendChild(e);
|
|
26
26
|
const n = window.getSelection(), a = window.document.createRange();
|
|
27
27
|
n == null || n.removeAllRanges(), a.selectNode(e), n == null || n.addRange(a);
|
|
28
|
-
let
|
|
28
|
+
let d = !1;
|
|
29
29
|
try {
|
|
30
|
-
|
|
30
|
+
d = window.document.execCommand("copy");
|
|
31
31
|
} finally {
|
|
32
32
|
n == null || n.removeAllRanges(), window.document.body.removeChild(e);
|
|
33
33
|
}
|
|
34
|
-
if (!
|
|
34
|
+
if (!d)
|
|
35
|
+
throw ae();
|
|
35
36
|
}
|
|
36
37
|
async function We(t) {
|
|
37
38
|
try {
|
|
38
|
-
await
|
|
39
|
+
await Ne(t);
|
|
39
40
|
} catch (e) {
|
|
40
41
|
try {
|
|
41
|
-
await
|
|
42
|
+
await Ve(t);
|
|
42
43
|
} catch (n) {
|
|
43
44
|
throw n || e || ae();
|
|
44
45
|
}
|
|
@@ -51,8 +52,8 @@ function Ae() {
|
|
|
51
52
|
return { onCopy: t };
|
|
52
53
|
}
|
|
53
54
|
function $e(t, e, n, a) {
|
|
54
|
-
const
|
|
55
|
-
"font-size": `${
|
|
55
|
+
const d = l(14), v = l(140), h = l(""), s = l(a.value.length), u = y(() => a.value), i = y(() => ({
|
|
56
|
+
"font-size": `${d.value}px`,
|
|
56
57
|
height: "100%"
|
|
57
58
|
}));
|
|
58
59
|
function w(g) {
|
|
@@ -61,24 +62,24 @@ function $e(t, e, n, a) {
|
|
|
61
62
|
s.value = B.length;
|
|
62
63
|
}
|
|
63
64
|
}
|
|
64
|
-
return () =>
|
|
65
|
+
return () => c(ne, null, [c("textarea", {
|
|
65
66
|
title: "promptMessage",
|
|
66
67
|
name: "promptMessage",
|
|
67
68
|
class: "form-control",
|
|
68
|
-
style:
|
|
69
|
+
style: i.value,
|
|
69
70
|
rows: "4",
|
|
70
|
-
maxlength:
|
|
71
|
+
maxlength: v.value,
|
|
71
72
|
onInput: (g) => w(g)
|
|
72
|
-
}, [
|
|
73
|
+
}, [u.value]), c("span", {
|
|
73
74
|
class: "textarea-wordcount",
|
|
74
75
|
title: h.value,
|
|
75
76
|
style: "position: absolute; bottom: 76px; right: 32px; cursor: pointer; text-align: right;"
|
|
76
|
-
}, [s.value + " / " +
|
|
77
|
+
}, [s.value + " / " + v.value])]);
|
|
77
78
|
}
|
|
78
79
|
function Xe(t, e, n, a) {
|
|
79
|
-
const
|
|
80
|
+
const d = $e(t, e, n, a), v = /* @__PURE__ */ new Map([["text-area", d]]);
|
|
80
81
|
function h(s) {
|
|
81
|
-
return
|
|
82
|
+
return v.get(s) || null;
|
|
82
83
|
}
|
|
83
84
|
return { getEditorRender: h };
|
|
84
85
|
}
|
|
@@ -113,7 +114,7 @@ function Ue(t, e) {
|
|
|
113
114
|
return () => n && n();
|
|
114
115
|
}
|
|
115
116
|
function qe(t) {
|
|
116
|
-
const e = l(3), n = l(480), a = y(() => !!t.value && !!t.value.date),
|
|
117
|
+
const e = l(3), n = l(480), a = y(() => !!t.value && !!t.value.date), d = y(() => `发生时间 : ${t.value && t.value.date || ""}`), v = y(() => !!t.value && !!t.value.detail), h = y(() => {
|
|
117
118
|
const C = `${n.value}px`;
|
|
118
119
|
return {
|
|
119
120
|
overflow: "hidden",
|
|
@@ -123,64 +124,64 @@ function qe(t) {
|
|
|
123
124
|
"-webkit-line-clamp": e.value,
|
|
124
125
|
"max-height": C
|
|
125
126
|
};
|
|
126
|
-
}), s = y(() => t.value && t.value.detail || ""),
|
|
127
|
+
}), s = y(() => t.value && t.value.detail || ""), u = y(() => !0), i = l(!1), w = l("展开"), g = l("收起"), B = y(() => {
|
|
127
128
|
const C = {
|
|
128
129
|
display: "block",
|
|
129
130
|
color: "#2A87FF"
|
|
130
131
|
};
|
|
131
|
-
return C["text-align"] =
|
|
132
|
+
return C["text-align"] = i.value ? "" : "right", C;
|
|
132
133
|
});
|
|
133
134
|
function E(C, p) {
|
|
134
|
-
|
|
135
|
+
i.value = !i.value, e.value = i.value ? 20 : 3;
|
|
135
136
|
}
|
|
136
|
-
function
|
|
137
|
+
function R(C) {
|
|
137
138
|
return E();
|
|
138
139
|
}
|
|
139
140
|
function O(C) {
|
|
140
141
|
return E();
|
|
141
142
|
}
|
|
142
|
-
return () =>
|
|
143
|
+
return () => c("div", {
|
|
143
144
|
class: "toast-msg-detail"
|
|
144
|
-
}, [a.value &&
|
|
145
|
+
}, [a.value && c("div", null, [d.value]), v.value && c("div", {
|
|
145
146
|
id: "exception_error_msg",
|
|
146
147
|
ref: "exceptionMessageRef",
|
|
147
148
|
style: h.value
|
|
148
|
-
}, [Se("详细信息 : "),
|
|
149
|
+
}, [Se("详细信息 : "), c("span", {
|
|
149
150
|
innerHTML: s.value
|
|
150
|
-
}, null)]),
|
|
151
|
+
}, null)]), u.value && c("span", {
|
|
151
152
|
style: B.value
|
|
152
|
-
}, [
|
|
153
|
-
onClick:
|
|
153
|
+
}, [i.value && c("span", {
|
|
154
|
+
onClick: R,
|
|
154
155
|
style: "cursor: pointer;"
|
|
155
|
-
}, [g.value]), !
|
|
156
|
+
}, [g.value]), !i.value && c("span", {
|
|
156
157
|
onClick: O,
|
|
157
158
|
style: "cursor: pointer;"
|
|
158
159
|
}, [w.value])])]);
|
|
159
160
|
}
|
|
160
161
|
function Je(t) {
|
|
161
|
-
return () =>
|
|
162
|
+
return () => c("p", {
|
|
162
163
|
class: "toast-msg-detail",
|
|
163
164
|
innerHTML: t.value
|
|
164
165
|
}, null);
|
|
165
166
|
}
|
|
166
167
|
function Ke(t, e, n, a) {
|
|
167
|
-
const
|
|
168
|
+
const d = l(t.exceptionInfo), v = y(() => {
|
|
168
169
|
const B = {
|
|
169
170
|
"f-icon": !0
|
|
170
171
|
}, E = `f-icon-${e.value}`;
|
|
171
172
|
return B[E] = !0, B;
|
|
172
|
-
}), h = y(() => n.value ||
|
|
173
|
+
}), h = y(() => n.value || d.value && d.value.message), s = y(() => a.value), u = y(() => !!a.value), i = y(() => !!d.value);
|
|
173
174
|
function w() {
|
|
174
|
-
return
|
|
175
|
+
return i.value ? qe(d) : u.value ? Je(s) : () => null;
|
|
175
176
|
}
|
|
176
177
|
const g = w();
|
|
177
|
-
return () =>
|
|
178
|
+
return () => c(ne, null, [c("div", {
|
|
178
179
|
class: "float-left modal-tips-iconwrap"
|
|
179
|
-
}, [
|
|
180
|
-
class:
|
|
181
|
-
}, null)]),
|
|
180
|
+
}, [c("span", {
|
|
181
|
+
class: v.value
|
|
182
|
+
}, null)]), c("div", {
|
|
182
183
|
class: "modal-tips-content"
|
|
183
|
-
}, [
|
|
184
|
+
}, [c("p", {
|
|
184
185
|
class: "toast-msg-title",
|
|
185
186
|
innerHTML: h.value
|
|
186
187
|
}, null), g()])]);
|
|
@@ -189,60 +190,60 @@ function Ge(t, e, n) {
|
|
|
189
190
|
const {
|
|
190
191
|
onCopy: a
|
|
191
192
|
} = e, {
|
|
192
|
-
toShowFeedback:
|
|
193
|
-
} = n,
|
|
193
|
+
toShowFeedback: d
|
|
194
|
+
} = n, v = l("复制成功"), h = l("复制详细信息"), s = l(t.exceptionInfo || {
|
|
194
195
|
date: "",
|
|
195
196
|
message: "",
|
|
196
197
|
detail: ""
|
|
197
|
-
}),
|
|
198
|
-
function
|
|
199
|
-
a(
|
|
200
|
-
|
|
198
|
+
}), u = y(() => s.value && s.value.detail || "");
|
|
199
|
+
function i(w) {
|
|
200
|
+
a(u.value).catch((g) => {
|
|
201
|
+
v.value = "复制失败";
|
|
201
202
|
}).finally(() => {
|
|
202
|
-
|
|
203
|
-
|
|
203
|
+
d.value = !0, setTimeout(() => {
|
|
204
|
+
d.value = !1;
|
|
204
205
|
}, 700);
|
|
205
206
|
});
|
|
206
207
|
}
|
|
207
|
-
return () =>
|
|
208
|
+
return () => c("span", {
|
|
208
209
|
style: "width: 100%;color: #2A87FF;padding-left: 37px;"
|
|
209
|
-
}, [
|
|
210
|
-
onClick:
|
|
210
|
+
}, [c("span", {
|
|
211
|
+
onClick: i,
|
|
211
212
|
style: "cursor: pointer;"
|
|
212
213
|
}, [h.value])]);
|
|
213
214
|
}
|
|
214
215
|
function Qe(t, e, n, a) {
|
|
215
|
-
const
|
|
216
|
-
function p(
|
|
217
|
-
|
|
216
|
+
const d = l(t.type), v = l([]), h = l(t.exceptionInfo), s = l(t.okButtonText), u = l(t.cancelButtonText), i = l(!0), w = l(!0), g = y(() => !!(v.value && v.value.length)), B = y(() => h.value && h.value.date && h.value.message && h.value.detail), E = y(() => !(v.value && v.value.length) && (s.value || u.value)), R = y(() => w.value && s.value), O = y(() => i.value && u.value), C = Ge(t, n, a);
|
|
217
|
+
function p(z) {
|
|
218
|
+
d.value === "question" && e.emit("reject"), e.emit("close");
|
|
218
219
|
}
|
|
219
|
-
function T(
|
|
220
|
-
|
|
220
|
+
function T(z) {
|
|
221
|
+
d.value === "question" && e.emit("accept"), e.emit("close");
|
|
221
222
|
}
|
|
222
|
-
return () =>
|
|
223
|
+
return () => c("div", {
|
|
223
224
|
class: "modal-footer"
|
|
224
|
-
}, [B.value && C(), E.value && O.value &&
|
|
225
|
+
}, [B.value && C(), E.value && O.value && c("button", {
|
|
225
226
|
type: "button",
|
|
226
227
|
class: "btn btn-secondary btn-lg",
|
|
227
228
|
onClick: p
|
|
228
|
-
}, [
|
|
229
|
+
}, [u.value]), E.value && R.value && c("button", {
|
|
229
230
|
type: "button",
|
|
230
231
|
class: "btn btn-primary btn-lg",
|
|
231
232
|
onClick: T
|
|
232
|
-
}, [s.value]), g.value &&
|
|
233
|
+
}, [s.value]), g.value && v.value.length && v.value.map((z) => c("button", {
|
|
233
234
|
type: "button",
|
|
234
|
-
onClick:
|
|
235
|
-
class:
|
|
236
|
-
}, [
|
|
237
|
-
class:
|
|
238
|
-
}, null),
|
|
235
|
+
onClick: z.handle,
|
|
236
|
+
class: z.class
|
|
237
|
+
}, [z.iconClass && c("span", {
|
|
238
|
+
class: z.iconClass
|
|
239
|
+
}, null), z.text]))]);
|
|
239
240
|
}
|
|
240
241
|
const J = /* @__PURE__ */ oe({
|
|
241
242
|
name: "FMessageBox",
|
|
242
243
|
props: Pe,
|
|
243
244
|
emits: ["accept", "reject", "close"],
|
|
244
245
|
setup(t, e) {
|
|
245
|
-
const n = l(t.type), a = l(t.title),
|
|
246
|
+
const n = l(t.type), a = l(t.title), d = l(t.detail), v = y(() => {
|
|
246
247
|
const C = {
|
|
247
248
|
"modal-tips": !0,
|
|
248
249
|
"d-flex": !0,
|
|
@@ -252,30 +253,30 @@ const J = /* @__PURE__ */ oe({
|
|
|
252
253
|
}), h = y(() => {
|
|
253
254
|
const C = {};
|
|
254
255
|
return n.value === "prompt" ? C.padding = "0.5rem 0.5rem 1rem 1.5rem" : n.value === "error" && (C.padding = "0.5rem 1.5rem 1rem 1.5rem"), C;
|
|
255
|
-
}), s = Ae(),
|
|
256
|
+
}), s = Ae(), u = Xe(t, n, a, d), i = Ye(), {
|
|
256
257
|
feedbackStyle: w,
|
|
257
258
|
feedbackMessage: g
|
|
258
|
-
} =
|
|
259
|
+
} = i;
|
|
259
260
|
function B() {
|
|
260
|
-
return
|
|
261
|
+
return c("div", {
|
|
261
262
|
style: w.value
|
|
262
263
|
}, [g.value]);
|
|
263
264
|
}
|
|
264
265
|
function E() {
|
|
265
266
|
switch (n.value) {
|
|
266
267
|
case "prompt":
|
|
267
|
-
return Ue(t,
|
|
268
|
+
return Ue(t, u);
|
|
268
269
|
default:
|
|
269
|
-
return Ke(t, n, a,
|
|
270
|
+
return Ke(t, n, a, d);
|
|
270
271
|
}
|
|
271
272
|
}
|
|
272
|
-
const
|
|
273
|
-
return () =>
|
|
273
|
+
const R = E(), O = Qe(t, e, s, i);
|
|
274
|
+
return () => c("div", {
|
|
274
275
|
class: "farris-messager"
|
|
275
|
-
}, [
|
|
276
|
-
class:
|
|
276
|
+
}, [c("section", {
|
|
277
|
+
class: v.value,
|
|
277
278
|
style: h.value
|
|
278
|
-
}, [
|
|
279
|
+
}, [R()]), O(), B()]);
|
|
279
280
|
}
|
|
280
281
|
}), Ze = {
|
|
281
282
|
/**
|
|
@@ -338,26 +339,26 @@ const J = /* @__PURE__ */ oe({
|
|
|
338
339
|
enableEsc: { type: Boolean, default: !0 },
|
|
339
340
|
enableEnter: { type: Boolean, default: !1 }
|
|
340
341
|
};
|
|
341
|
-
class
|
|
342
|
+
class S {
|
|
342
343
|
constructor(e, n) {
|
|
343
344
|
this.x = e, this.y = n;
|
|
344
345
|
}
|
|
345
346
|
static getTransformInfo(e) {
|
|
346
347
|
const a = window.getComputedStyle(e).getPropertyValue("transform").replace(/[^-\d,]/g, "").split(",");
|
|
347
348
|
if (a.length >= 6) {
|
|
348
|
-
const
|
|
349
|
-
return { x:
|
|
349
|
+
const d = parseInt(a[4], 10), v = parseInt(a[5], 10);
|
|
350
|
+
return { x: d, y: v };
|
|
350
351
|
}
|
|
351
352
|
return { x: 0, y: 0 };
|
|
352
353
|
}
|
|
353
354
|
static fromEvent(e, n = null) {
|
|
354
355
|
if (this.isMouseEvent(e))
|
|
355
|
-
return new
|
|
356
|
+
return new S(e.clientX, e.clientY);
|
|
356
357
|
if (n === null || e.changedTouches.length === 1)
|
|
357
|
-
return new
|
|
358
|
+
return new S(e.changedTouches[0].clientX, e.changedTouches[0].clientY);
|
|
358
359
|
for (let a = 0; a < e.changedTouches.length; a++)
|
|
359
360
|
if (e.changedTouches[a].target === n)
|
|
360
|
-
return new
|
|
361
|
+
return new S(e.changedTouches[a].clientX, e.changedTouches[a].clientY);
|
|
361
362
|
}
|
|
362
363
|
static isMouseEvent(e) {
|
|
363
364
|
return Object.prototype.toString.apply(e).indexOf("MouseEvent") === 8;
|
|
@@ -366,19 +367,19 @@ class R {
|
|
|
366
367
|
return !!e && "x" in e && "y" in e;
|
|
367
368
|
}
|
|
368
369
|
static getCurrent(e) {
|
|
369
|
-
const n = new
|
|
370
|
+
const n = new S(0, 0);
|
|
370
371
|
if (window) {
|
|
371
372
|
const a = window.getComputedStyle(e);
|
|
372
373
|
if (a) {
|
|
373
|
-
const
|
|
374
|
-
n.x = isNaN(
|
|
374
|
+
const d = parseInt(a.getPropertyValue("left"), 10), v = parseInt(a.getPropertyValue("top"), 10);
|
|
375
|
+
n.x = isNaN(d) ? 0 : d, n.y = isNaN(v) ? 0 : v;
|
|
375
376
|
}
|
|
376
377
|
return n;
|
|
377
378
|
}
|
|
378
379
|
return null;
|
|
379
380
|
}
|
|
380
381
|
static copy(e) {
|
|
381
|
-
return new
|
|
382
|
+
return new S(0, 0).set(e);
|
|
382
383
|
}
|
|
383
384
|
get value() {
|
|
384
385
|
return { x: this.x, y: this.y };
|
|
@@ -422,21 +423,21 @@ class A {
|
|
|
422
423
|
}
|
|
423
424
|
}
|
|
424
425
|
function _e(t, e) {
|
|
425
|
-
const n = l(), a = l(),
|
|
426
|
+
const n = l(), a = l(), d = l(), v = l(), h = l(), s = l(), u = l(), i = l(), w = l(), g = l(), B = l(), E = l(), R = l(t.draggable), O = l(!1);
|
|
426
427
|
function C() {
|
|
427
|
-
const
|
|
428
|
+
const r = a.value || document.body, f = window.getComputedStyle(r);
|
|
428
429
|
if (!f || !n.value)
|
|
429
430
|
return;
|
|
430
|
-
const M =
|
|
431
|
-
|
|
431
|
+
const M = S.getTransformInfo(n.value), b = {};
|
|
432
|
+
u.value && (b.deltaL = n.value.offsetLeft - u.value.x, b.deltaT = n.value.offsetTop - u.value.y);
|
|
432
433
|
const H = f.getPropertyValue("position");
|
|
433
|
-
b.width =
|
|
434
|
+
b.width = r.clientWidth, b.height = r.clientHeight, b.pr = parseInt(f.getPropertyValue("padding-right"), 10), b.pb = parseInt(f.getPropertyValue("padding-bottom"), 10), b.position = f.getPropertyValue("position"), H === "static" && (r.style.position = "relative"), b.translateX = M.x, b.translateY = M.y, g.value = b;
|
|
434
435
|
}
|
|
435
|
-
function p(
|
|
436
|
+
function p(r) {
|
|
436
437
|
if (n.value) {
|
|
437
|
-
|
|
438
|
-
const f =
|
|
439
|
-
|
|
438
|
+
v.value = A.getCurrent(n.value), h.value = S.getCurrent(n.value), s.value = v.value ? A.copy(v.value) : null, u.value = h.value ? S.copy(h.value) : null, C();
|
|
439
|
+
const f = r.target.getAttribute("type") || "";
|
|
440
|
+
i.value = {
|
|
440
441
|
n: !!f.match(/n/),
|
|
441
442
|
s: !!f.match(/s/),
|
|
442
443
|
w: !!f.match(/w/),
|
|
@@ -445,49 +446,49 @@ function _e(t, e) {
|
|
|
445
446
|
}
|
|
446
447
|
}
|
|
447
448
|
function T() {
|
|
448
|
-
var
|
|
449
|
+
var r, f, M, b;
|
|
449
450
|
if (n.value) {
|
|
450
451
|
const H = n.value;
|
|
451
|
-
|
|
452
|
+
i.value && ((i.value.n || i.value.s) && ((r = s.value) != null && r.height) && (H.style.height = s.value.height + "px"), (i.value.w || i.value.e) && ((f = s.value) != null && f.width) && (H.style.width = s.value.width + "px"), u.value && ((M = u.value) != null && M.x && (H.style.left = u.value.x + "px"), (b = u.value) != null && b.y && (H.style.top = u.value.y + "px")));
|
|
452
453
|
}
|
|
453
454
|
}
|
|
454
|
-
function
|
|
455
|
-
const
|
|
456
|
-
s.value &&
|
|
455
|
+
function z() {
|
|
456
|
+
const r = t.minHeight ? t.minHeight : 1, f = t.minWidth ? t.minWidth : 1;
|
|
457
|
+
s.value && u.value && i.value && v.value && (s.value.height < r && (s.value.height = r, i.value.n && h.value && (u.value.y = h.value.y + (v.value.height - r))), s.value.width < f && (s.value.width = f, i.value.w && h.value && (u.value.x = h.value.x + (v.value.width - f))), t.maxHeight && s.value.height > t.maxHeight && (s.value.height = t.maxHeight, h.value && i.value.n && (u.value.y = h.value.y + (v.value.height - t.maxHeight))), t.maxWidth && s.value.width > t.maxWidth && (s.value.width = t.maxWidth, i.value.w && h.value && (u.value.x = h.value.x + (v.value.width - t.maxWidth))));
|
|
457
458
|
}
|
|
458
459
|
function F() {
|
|
459
460
|
if (a.value) {
|
|
460
|
-
const
|
|
461
|
-
if (
|
|
462
|
-
const f =
|
|
463
|
-
|
|
461
|
+
const r = g.value;
|
|
462
|
+
if (u.value && s.value && i.value && v.value) {
|
|
463
|
+
const f = r.width - r.pr - r.deltaL - r.translateX - u.value.x, M = r.height - r.pb - r.deltaT - r.translateY - u.value.y;
|
|
464
|
+
i.value.n && u.value.y + r.translateY < 0 && h.value && (u.value.y = -r.translateY, s.value.height = v.value.height + h.value.y + r.translateY), i.value.w && u.value.x + r.translateX < 0 && h.value && (u.value.x = -r.translateX, s.value.width = v.value.width + h.value.x + r.translateX), s.value.width > f && (s.value.width = f), s.value.height > M && (s.value.height = M);
|
|
464
465
|
}
|
|
465
466
|
}
|
|
466
467
|
}
|
|
467
|
-
function D(
|
|
468
|
-
if (!
|
|
468
|
+
function D(r) {
|
|
469
|
+
if (!d.value || !v.value || !h.value || !i.value)
|
|
469
470
|
return;
|
|
470
|
-
|
|
471
|
-
const f =
|
|
472
|
-
|
|
471
|
+
r.subtract(d.value);
|
|
472
|
+
const f = r.x, M = r.y;
|
|
473
|
+
i.value.n ? (u.value.y = h.value.y + M, s.value.height = v.value.height - M) : i.value.s && (s.value.height = v.value.height + M), i.value.e ? s.value.width = v.value.width + f : i.value.w && (s.value.width = v.value.width - f, u.value.x = h.value.x + f), F(), z(), T();
|
|
473
474
|
}
|
|
474
|
-
function $(
|
|
475
|
+
function $(r) {
|
|
475
476
|
if (!w.value)
|
|
476
477
|
return;
|
|
477
|
-
const f =
|
|
478
|
+
const f = S.fromEvent(r);
|
|
478
479
|
f && D(f);
|
|
479
480
|
}
|
|
480
481
|
function m() {
|
|
481
482
|
if (n.value) {
|
|
482
483
|
const {
|
|
483
|
-
width:
|
|
484
|
+
width: r,
|
|
484
485
|
height: f,
|
|
485
486
|
x: M,
|
|
486
487
|
y: b
|
|
487
|
-
} = n.value.getBoundingClientRect(), H =
|
|
488
|
+
} = n.value.getBoundingClientRect(), H = S.getTransformInfo(n.value);
|
|
488
489
|
return {
|
|
489
490
|
size: {
|
|
490
|
-
width:
|
|
491
|
+
width: r,
|
|
491
492
|
height: f
|
|
492
493
|
},
|
|
493
494
|
position: {
|
|
@@ -498,66 +499,66 @@ function _e(t, e) {
|
|
|
498
499
|
}
|
|
499
500
|
return null;
|
|
500
501
|
}
|
|
501
|
-
function x(
|
|
502
|
+
function x(r) {
|
|
502
503
|
if (n.value) {
|
|
503
504
|
const f = m();
|
|
504
505
|
B.value = f;
|
|
505
506
|
}
|
|
506
|
-
|
|
507
|
+
d.value = void 0, v.value = null, h.value = null, s.value = null, u.value = null, i.value = null, w.value = null, document.removeEventListener("mousemove", $), document.removeEventListener("mouseup", x);
|
|
507
508
|
}
|
|
508
509
|
function j() {
|
|
509
510
|
document.addEventListener("mousemove", $), document.addEventListener("mouseup", x);
|
|
510
511
|
}
|
|
511
|
-
function I(
|
|
512
|
-
|
|
512
|
+
function I(r) {
|
|
513
|
+
r instanceof MouseEvent && r.button === 2 || R.value && (r.stopPropagation(), r.preventDefault(), d.value = S.fromEvent(r), w.value = r.target, p(r), j());
|
|
513
514
|
}
|
|
514
|
-
function L(
|
|
515
|
-
return n.value =
|
|
515
|
+
function L(r) {
|
|
516
|
+
return n.value = r, c(ne, null, [c("div", {
|
|
516
517
|
class: "fv-resizable-handle fv-resizable-n",
|
|
517
518
|
type: "n",
|
|
518
519
|
onMousedown: (f) => I(f)
|
|
519
|
-
}, null),
|
|
520
|
+
}, null), c("div", {
|
|
520
521
|
class: "fv-resizable-handle fv-resizable-e",
|
|
521
522
|
type: "e",
|
|
522
523
|
onMousedown: (f) => I(f)
|
|
523
|
-
}, null),
|
|
524
|
+
}, null), c("div", {
|
|
524
525
|
class: "fv-resizable-handle fv-resizable-s",
|
|
525
526
|
type: "s",
|
|
526
527
|
onMousedown: (f) => I(f)
|
|
527
|
-
}, null),
|
|
528
|
+
}, null), c("div", {
|
|
528
529
|
class: "fv-resizable-handle fv-resizable-w",
|
|
529
530
|
type: "w",
|
|
530
531
|
onMousedown: (f) => I(f)
|
|
531
|
-
}, null),
|
|
532
|
+
}, null), c("div", {
|
|
532
533
|
class: "fv-resizable-handle fv-resizable-ne",
|
|
533
534
|
type: "ne",
|
|
534
535
|
onMousedown: (f) => I(f)
|
|
535
|
-
}, null),
|
|
536
|
+
}, null), c("div", {
|
|
536
537
|
class: "fv-resizable-handle fv-resizable-se fv-resizable-diagonal",
|
|
537
538
|
type: "se",
|
|
538
539
|
onMousedown: (f) => I(f)
|
|
539
|
-
}, null),
|
|
540
|
+
}, null), c("div", {
|
|
540
541
|
class: "fv-resizable-handle fv-resizable-sw",
|
|
541
542
|
type: "sw",
|
|
542
543
|
onMousedown: (f) => I(f)
|
|
543
|
-
}, null),
|
|
544
|
+
}, null), c("div", {
|
|
544
545
|
class: "fv-resizable-handle fv-resizable-nw",
|
|
545
546
|
type: "nw",
|
|
546
547
|
onMousedown: (f) => I(f)
|
|
547
548
|
}, null)]);
|
|
548
549
|
}
|
|
549
|
-
function
|
|
550
|
+
function N(r = !0) {
|
|
550
551
|
const f = a.value || document.body, M = A.getCurrent(f), b = n.value;
|
|
551
|
-
|
|
552
|
+
r && (E.value = m(), E.value.transform = b.style.transform), M && b && (s.value = M, b.style.height = s.value.height - 14 + "px", b.style.width = s.value.width - 14 + "px", b.style.left = "7px", b.style.top = "7px", b.style.transform = "", B.value = {
|
|
552
553
|
size: s.value,
|
|
553
554
|
position: {
|
|
554
555
|
x: 0,
|
|
555
556
|
y: 0
|
|
556
557
|
}
|
|
557
|
-
},
|
|
558
|
+
}, R.value = !1, O.value = !0);
|
|
558
559
|
}
|
|
559
560
|
function K() {
|
|
560
|
-
var
|
|
561
|
+
var r, f;
|
|
561
562
|
if (E.value) {
|
|
562
563
|
const M = {
|
|
563
564
|
width: E.value.size.width || 0,
|
|
@@ -566,32 +567,32 @@ function _e(t, e) {
|
|
|
566
567
|
x: (window.innerWidth - M.width) / 2,
|
|
567
568
|
y: (window.innerHeight - M.height) / 2
|
|
568
569
|
};
|
|
569
|
-
(
|
|
570
|
+
(r = s.value) == null || r.set(M), (f = u.value) == null || f.set(b);
|
|
570
571
|
const H = n.value;
|
|
571
572
|
H.style.height = M.height + "px", H.style.width = M.width + "px", H.style.left = `${b.x}px`, H.style.top = `${b.y}px`, H.style.transform = "", B.value = {
|
|
572
573
|
size: M,
|
|
573
574
|
position: b
|
|
574
|
-
},
|
|
575
|
+
}, R.value = t.draggable, O.value = !1;
|
|
575
576
|
}
|
|
576
577
|
}
|
|
577
578
|
function G() {
|
|
578
579
|
if (n.value) {
|
|
579
|
-
const
|
|
580
|
-
if (
|
|
580
|
+
const r = A.getCurrent(n.value);
|
|
581
|
+
if (r) {
|
|
581
582
|
const {
|
|
582
583
|
width: f,
|
|
583
584
|
height: M
|
|
584
|
-
} =
|
|
585
|
+
} = r;
|
|
585
586
|
n.value.style.left = `${(window.innerWidth - f) / 2}px`, n.value.style.top = `${(window.innerHeight - M) / 2}px`, n.value.style.transform = "";
|
|
586
587
|
}
|
|
587
588
|
}
|
|
588
589
|
}
|
|
589
590
|
function Q() {
|
|
590
|
-
const
|
|
591
|
-
O.value ?
|
|
591
|
+
const r = () => {
|
|
592
|
+
O.value ? N(!1) : G();
|
|
592
593
|
};
|
|
593
|
-
return window.addEventListener("resize",
|
|
594
|
-
window.removeEventListener("resize",
|
|
594
|
+
return window.addEventListener("resize", r), () => {
|
|
595
|
+
window.removeEventListener("resize", r);
|
|
595
596
|
};
|
|
596
597
|
}
|
|
597
598
|
const U = Q();
|
|
@@ -599,15 +600,15 @@ function _e(t, e) {
|
|
|
599
600
|
renderResizeBar: L,
|
|
600
601
|
boundingElement: a,
|
|
601
602
|
resizedEventParam: B,
|
|
602
|
-
maximize:
|
|
603
|
+
maximize: N,
|
|
603
604
|
restore: K,
|
|
604
|
-
allowDrag:
|
|
605
|
+
allowDrag: R,
|
|
605
606
|
isMaximized: O,
|
|
606
607
|
unWindowResizeHandle: U
|
|
607
608
|
};
|
|
608
609
|
}
|
|
609
610
|
function et(t, e, n) {
|
|
610
|
-
const a = l(),
|
|
611
|
+
const a = l(), d = l(t.draggable), v = l(t.lockAxis), h = l(), s = l(), u = l(!1), i = l(new S(0, 0)), w = l(new S(0, 0)), g = l(new S(0, 0)), B = l(new S(0, 0));
|
|
611
612
|
X(() => n.value, (m) => {
|
|
612
613
|
h.value.style.cursor = m ? "move" : "default";
|
|
613
614
|
});
|
|
@@ -617,14 +618,14 @@ function et(t, e, n) {
|
|
|
617
618
|
if (x === m)
|
|
618
619
|
return !0;
|
|
619
620
|
for (const j in x.children)
|
|
620
|
-
if (
|
|
621
|
+
if (Object.prototype.hasOwnProperty.call(x.children, j) && E(m, x.children[j]))
|
|
621
622
|
return !0;
|
|
622
623
|
return !1;
|
|
623
624
|
}
|
|
624
|
-
function
|
|
625
|
+
function R() {
|
|
625
626
|
var I, L;
|
|
626
627
|
let m = g.value.x + w.value.x, x = g.value.y + w.value.y;
|
|
627
|
-
|
|
628
|
+
v.value === "x" ? (m = ((I = i.value) == null ? void 0 : I.x) || 0, g.value.x = 0) : v.value === "y" && (x = ((L = i.value) == null ? void 0 : L.y) || 0, g.value.y = 0);
|
|
628
629
|
const j = `translate3d(${Math.round(m)}px, ${Math.round(x)}px, 0px)`;
|
|
629
630
|
a.value && (a.value.style.transform = j), B.value.x = m, B.value.y = x;
|
|
630
631
|
}
|
|
@@ -637,24 +638,24 @@ function et(t, e, n) {
|
|
|
637
638
|
bottom: m.bottom > x.bottom,
|
|
638
639
|
left: m.left < x.left
|
|
639
640
|
};
|
|
640
|
-
return j.top || (g.value.y -= x.top - m.top), j.bottom || (g.value.y -= x.bottom - m.bottom), j.right || (g.value.x -= x.right - m.right), j.left || (g.value.x -= x.left - m.left),
|
|
641
|
+
return j.top || (g.value.y -= x.top - m.top), j.bottom || (g.value.y -= x.bottom - m.bottom), j.right || (g.value.x -= x.right - m.right), j.left || (g.value.x -= x.left - m.left), R(), j;
|
|
641
642
|
}
|
|
642
643
|
function C(m) {
|
|
643
|
-
m && (
|
|
644
|
+
m && (i.value && m.subtract(i.value), g.value.set(m), R(), O());
|
|
644
645
|
}
|
|
645
646
|
function p(m) {
|
|
646
|
-
|
|
647
|
+
u.value && d.value && (m.stopPropagation(), m.preventDefault(), C(S.fromEvent(m, h.value)));
|
|
647
648
|
}
|
|
648
649
|
function T() {
|
|
649
650
|
var m;
|
|
650
|
-
|
|
651
|
+
u.value && (u.value = !1, w.value.add(g.value), g.value.reset(), (m = a.value) == null || m.classList.remove("ng-dragging"), document.removeEventListener("mousemove", p), document.removeEventListener("mouseup", T));
|
|
651
652
|
}
|
|
652
|
-
function
|
|
653
|
-
!
|
|
653
|
+
function z() {
|
|
654
|
+
!u.value && h.value && (u.value = !0, h.value.classList.add("ng-dragging"), document.addEventListener("mousemove", p), document.addEventListener("mouseup", T));
|
|
654
655
|
}
|
|
655
656
|
function F() {
|
|
656
657
|
if (a.value) {
|
|
657
|
-
const m =
|
|
658
|
+
const m = S.getTransformInfo(a.value);
|
|
658
659
|
w.value.set(m);
|
|
659
660
|
return;
|
|
660
661
|
}
|
|
@@ -664,10 +665,10 @@ function et(t, e, n) {
|
|
|
664
665
|
if (!n.value || m instanceof MouseEvent && m.button === 2)
|
|
665
666
|
return;
|
|
666
667
|
const x = m.target || m.srcElement;
|
|
667
|
-
h.value !== void 0 && x && !E(x, h.value) ||
|
|
668
|
+
h.value !== void 0 && x && !E(x, h.value) || d.value !== !1 && (document.body.click(), m.stopPropagation(), m.preventDefault(), i.value = S.fromEvent(m, a.value), F(), z());
|
|
668
669
|
}
|
|
669
670
|
function $(m, x, j) {
|
|
670
|
-
if (
|
|
671
|
+
if (d.value && x) {
|
|
671
672
|
if (m)
|
|
672
673
|
h.value = m;
|
|
673
674
|
else if (t.dragHandle) {
|
|
@@ -699,8 +700,8 @@ function re(t, e) {
|
|
|
699
700
|
function tt(t, e) {
|
|
700
701
|
const n = l(t.enableEsc);
|
|
701
702
|
let a = null;
|
|
702
|
-
return n.value ? (a = re("Escape", (
|
|
703
|
-
e.emit("esc", { event:
|
|
703
|
+
return n.value ? (a = re("Escape", (d) => {
|
|
704
|
+
e.emit("esc", { event: d.event, type: "esc" });
|
|
704
705
|
}), {
|
|
705
706
|
remove: a
|
|
706
707
|
}) : null;
|
|
@@ -708,8 +709,8 @@ function tt(t, e) {
|
|
|
708
709
|
function nt(t, e) {
|
|
709
710
|
const n = l(t.enableEnter);
|
|
710
711
|
let a = null;
|
|
711
|
-
return n.value ? (a = re("Enter", (
|
|
712
|
-
e.emit("enter", { event:
|
|
712
|
+
return n.value ? (a = re("Enter", (d) => {
|
|
713
|
+
e.emit("enter", { event: d.event, type: "enter" });
|
|
713
714
|
}), {
|
|
714
715
|
remove: a
|
|
715
716
|
}) : null;
|
|
@@ -719,9 +720,9 @@ const ce = /* @__PURE__ */ oe({
|
|
|
719
720
|
props: Ze,
|
|
720
721
|
emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter"],
|
|
721
722
|
setup(t, e) {
|
|
722
|
-
const n = l(t.width || 300), a = l(t.height || 200),
|
|
723
|
+
const n = l(t.width || 300), a = l(t.height || 200), d = l(t.modelValue), v = l(""), h = l(t.class), s = l(t.fitContent), u = l(t.showHeader), i = l(""), w = l(t.showCloseButton), g = l(t.showMaxButton), B = l(!1), E = l(""), R = l(""), O = l(""), C = l(t.showButtons), p = l(t.title), T = l(t.reiszeable), z = l(t.containment || null), F = l();
|
|
723
724
|
function D(o, k) {
|
|
724
|
-
|
|
725
|
+
d.value = !1, e.emit("update:modelValue", !1), k != null && e.emit(k ? "accept" : "cancel"), e.emit("closed", o);
|
|
725
726
|
}
|
|
726
727
|
const $ = [{
|
|
727
728
|
name: "cancel",
|
|
@@ -737,12 +738,12 @@ const ce = /* @__PURE__ */ oe({
|
|
|
737
738
|
handle: (o) => {
|
|
738
739
|
D(o, !0);
|
|
739
740
|
}
|
|
740
|
-
}], m = l(t.buttons && t.buttons.length ? t.buttons : $), x = y(() => !!
|
|
741
|
+
}], m = l(t.buttons && t.buttons.length ? t.buttons : $), x = y(() => !!i.value), j = y(() => !!C.value && !!m.value), I = l(), L = l(), N = l(!1), {
|
|
741
742
|
renderResizeBar: K,
|
|
742
743
|
maximize: G,
|
|
743
744
|
restore: Q,
|
|
744
745
|
boundingElement: U,
|
|
745
|
-
resizedEventParam:
|
|
746
|
+
resizedEventParam: r,
|
|
746
747
|
allowDrag: f,
|
|
747
748
|
unWindowResizeHandle: M
|
|
748
749
|
} = _e(t), {
|
|
@@ -751,12 +752,12 @@ const ce = /* @__PURE__ */ oe({
|
|
|
751
752
|
X(() => t.title, (o, k) => {
|
|
752
753
|
o !== k && (p.value = o);
|
|
753
754
|
}), X(() => t.modelValue, (o, k) => {
|
|
754
|
-
o !== k && (
|
|
755
|
+
o !== k && (d.value = o);
|
|
755
756
|
}), X(() => t.showHeader, (o, k) => {
|
|
756
|
-
o !== k && (
|
|
757
|
+
o !== k && (u.value = o);
|
|
757
758
|
}), X(() => t.showButtons, (o, k) => {
|
|
758
759
|
o !== k && (C.value = o);
|
|
759
|
-
}), X(() =>
|
|
760
|
+
}), X(() => r.value, (o, k) => {
|
|
760
761
|
const Y = o || {}, q = k || {};
|
|
761
762
|
JSON.stringify(Y) !== JSON.stringify(q) && e.emit("resize", {
|
|
762
763
|
newSize: o,
|
|
@@ -767,7 +768,7 @@ const ce = /* @__PURE__ */ oe({
|
|
|
767
768
|
const o = document.querySelectorAll(".farris-modal").length;
|
|
768
769
|
(!o || o - 1 <= 0) && document.body.classList.remove("modal-open"), F.value && F.value.classList.remove("show");
|
|
769
770
|
}
|
|
770
|
-
const Z = y(() => (
|
|
771
|
+
const Z = y(() => (d.value ? document.body.classList.add("modal-open") : H(), d.value)), ve = y(() => {
|
|
771
772
|
const o = {
|
|
772
773
|
modal: !0,
|
|
773
774
|
"farris-modal": !0,
|
|
@@ -788,16 +789,16 @@ const ce = /* @__PURE__ */ oe({
|
|
|
788
789
|
height: s.value ? "auto" : `${a.value}px`
|
|
789
790
|
})), me = y(() => ({
|
|
790
791
|
"modal-content": !0,
|
|
791
|
-
"modal-content-has-header":
|
|
792
|
+
"modal-content-has-header": u.value
|
|
792
793
|
})), ge = y(() => {
|
|
793
794
|
const o = {
|
|
794
|
-
display:
|
|
795
|
+
display: u.value ? "" : "none"
|
|
795
796
|
};
|
|
796
797
|
return o["pointer-events"] = f.value ? "auto" : "none", o;
|
|
797
798
|
}), pe = y(() => ({
|
|
798
799
|
"f-icon": !0,
|
|
799
800
|
modal_maximize: !0,
|
|
800
|
-
modalrevert:
|
|
801
|
+
modalrevert: N.value
|
|
801
802
|
})), ye = y(() => ({
|
|
802
803
|
"modal-body": !0,
|
|
803
804
|
"f-utils-flex-column": E.value === "iframe"
|
|
@@ -812,11 +813,11 @@ const ce = /* @__PURE__ */ oe({
|
|
|
812
813
|
return Object.assign(o, k);
|
|
813
814
|
});
|
|
814
815
|
function le(o) {
|
|
815
|
-
if (o.stopPropagation(),
|
|
816
|
-
|
|
816
|
+
if (o.stopPropagation(), N.value) {
|
|
817
|
+
N.value = !1, Q();
|
|
817
818
|
return;
|
|
818
819
|
}
|
|
819
|
-
G(),
|
|
820
|
+
G(), N.value = !0;
|
|
820
821
|
}
|
|
821
822
|
async function be(o, k) {
|
|
822
823
|
o.handle && await o.handle(k, o) && e.emit("closed", k);
|
|
@@ -826,7 +827,7 @@ const ce = /* @__PURE__ */ oe({
|
|
|
826
827
|
}
|
|
827
828
|
let _ = null, ee = null;
|
|
828
829
|
se(() => {
|
|
829
|
-
L.value && !
|
|
830
|
+
L.value && !z.value && (z.value = L.value.parentElement, U.value = z.value, b(I.value, L.value, U.value)), Z.value && document.body.classList.add("modal-open"), _ = tt(t, e), ee = nt(t, e);
|
|
830
831
|
}), ue(() => {
|
|
831
832
|
H(), M && M(), _ && _.remove(), ee && ee.remove();
|
|
832
833
|
}), e.expose({
|
|
@@ -836,87 +837,87 @@ const ce = /* @__PURE__ */ oe({
|
|
|
836
837
|
maxDialog: le
|
|
837
838
|
});
|
|
838
839
|
function Me() {
|
|
839
|
-
return
|
|
840
|
+
return c("ul", null, [B.value && c("li", {
|
|
840
841
|
class: "f-btn-icon f-bare"
|
|
841
|
-
}, [
|
|
842
|
+
}, [c("span", {
|
|
842
843
|
class: "f-icon modal_minimize"
|
|
843
|
-
}, null)]), g.value &&
|
|
844
|
+
}, null)]), g.value && c("li", {
|
|
844
845
|
onClick: le,
|
|
845
846
|
class: "f-btn-icon f-bare",
|
|
846
847
|
style: "pointer-events: auto;"
|
|
847
|
-
}, [
|
|
848
|
+
}, [c("span", {
|
|
848
849
|
class: pe.value
|
|
849
|
-
}, null)]), w.value &&
|
|
850
|
+
}, null)]), w.value && c("li", {
|
|
850
851
|
class: "f-btn-icon f-bare",
|
|
851
852
|
onClick: (o) => D(o, !1),
|
|
852
853
|
style: "pointer-events: auto;"
|
|
853
|
-
}, [
|
|
854
|
+
}, [c("span", {
|
|
854
855
|
class: "f-icon modal_close"
|
|
855
856
|
}, null)])]);
|
|
856
857
|
}
|
|
857
858
|
function Te() {
|
|
858
|
-
return
|
|
859
|
+
return c("div", {
|
|
859
860
|
class: "modal-footer",
|
|
860
861
|
style: xe.value
|
|
861
|
-
}, [m.value && m.value.map((o) =>
|
|
862
|
+
}, [m.value && m.value.map((o) => c("button", {
|
|
862
863
|
name: o.name,
|
|
863
864
|
type: "button",
|
|
864
865
|
class: o.class + (o.iconClass ? " btn-icontext" : ""),
|
|
865
866
|
onClick: (k) => {
|
|
866
867
|
be(o, k);
|
|
867
868
|
}
|
|
868
|
-
}, [!!o.iconClass &&
|
|
869
|
+
}, [!!o.iconClass && c("i", {
|
|
869
870
|
class: o.iconClass
|
|
870
871
|
}, null), o.text]))]);
|
|
871
872
|
}
|
|
872
873
|
function ke() {
|
|
873
|
-
return
|
|
874
|
+
return c("div", {
|
|
874
875
|
ref: I,
|
|
875
876
|
class: "modal-header",
|
|
876
877
|
style: ge.value
|
|
877
|
-
}, [
|
|
878
|
+
}, [c("div", {
|
|
878
879
|
class: "modal-title"
|
|
879
|
-
}, [x.value &&
|
|
880
|
-
class:
|
|
880
|
+
}, [x.value && c("span", {
|
|
881
|
+
class: i.value,
|
|
881
882
|
style: "margin-right: 8px"
|
|
882
|
-
}, null),
|
|
883
|
+
}, null), c("span", {
|
|
883
884
|
class: "modal-title-label"
|
|
884
|
-
}, [p.value])]),
|
|
885
|
+
}, [p.value])]), c("div", {
|
|
885
886
|
class: "actions"
|
|
886
887
|
}, [Me()])]);
|
|
887
888
|
}
|
|
888
889
|
function Be(o) {
|
|
889
890
|
o.stopPropagation();
|
|
890
891
|
}
|
|
891
|
-
return () =>
|
|
892
|
+
return () => c(He, {
|
|
892
893
|
to: "body"
|
|
893
894
|
}, {
|
|
894
|
-
default: () => [Z.value &&
|
|
895
|
+
default: () => [Z.value && c(Oe, {
|
|
895
896
|
name: "fade",
|
|
896
897
|
appear: !0
|
|
897
898
|
}, {
|
|
898
899
|
default: () => {
|
|
899
900
|
var o, k;
|
|
900
|
-
return [
|
|
901
|
+
return [c("div", {
|
|
901
902
|
class: ve.value,
|
|
902
903
|
style: "display: block",
|
|
903
904
|
ref: F,
|
|
904
905
|
onClick: Be
|
|
905
|
-
}, [
|
|
906
|
-
id:
|
|
906
|
+
}, [c("div", {
|
|
907
|
+
id: v.value,
|
|
907
908
|
class: fe.value,
|
|
908
909
|
style: he.value,
|
|
909
910
|
ref: L
|
|
910
|
-
}, [
|
|
911
|
+
}, [c("div", {
|
|
911
912
|
class: me.value
|
|
912
|
-
}, [
|
|
913
|
+
}, [u.value && ke(), c("div", {
|
|
913
914
|
class: ye.value
|
|
914
|
-
}, [(k = (o = e.slots).default) == null ? void 0 : k.call(o), E.value === "iframe" &&
|
|
915
|
-
title:
|
|
915
|
+
}, [(k = (o = e.slots).default) == null ? void 0 : k.call(o), E.value === "iframe" && c("iframe", {
|
|
916
|
+
title: v.value,
|
|
916
917
|
class: "f-utils-fill",
|
|
917
918
|
width: "100%",
|
|
918
919
|
frameborder: "0",
|
|
919
|
-
src:
|
|
920
|
+
src: R.value
|
|
920
921
|
}, null)]), j.value && Te()]), !s.value && T.value && L.value && K(L.value)])])];
|
|
921
922
|
}
|
|
922
923
|
})]
|
|
@@ -933,22 +934,22 @@ function at(t) {
|
|
|
933
934
|
const e = document.createElement("div");
|
|
934
935
|
e.style.display = "contents";
|
|
935
936
|
const n = je({
|
|
936
|
-
setup(a,
|
|
937
|
+
setup(a, d) {
|
|
937
938
|
ue(() => {
|
|
938
939
|
document.body.removeChild(e);
|
|
939
940
|
});
|
|
940
|
-
const
|
|
941
|
+
const v = l(), h = l(t.class || ""), s = l(!!t.showButtons), u = l(!!t.showHeader), i = l(t.showCloseButton == null ? !0 : t.showCloseButton), w = l(!0), g = l(t.title || ""), B = t.acceptCallback || (() => {
|
|
941
942
|
}), E = t.rejectCallback || (() => {
|
|
942
|
-
}),
|
|
943
|
+
}), R = t.closedCallback || ((T) => {
|
|
943
944
|
}), O = t.resizeHandle || ((T) => {
|
|
944
945
|
}), C = de(t), p = (T) => {
|
|
945
|
-
w.value = !1, n.unmount(),
|
|
946
|
+
w.value = !1, n.unmount(), R(T);
|
|
946
947
|
};
|
|
947
948
|
return se(() => {
|
|
948
|
-
}),
|
|
949
|
-
modalRef:
|
|
950
|
-
}), () =>
|
|
951
|
-
ref:
|
|
949
|
+
}), d.expose({
|
|
950
|
+
modalRef: v
|
|
951
|
+
}), () => c(ce, {
|
|
952
|
+
ref: v,
|
|
952
953
|
class: h.value,
|
|
953
954
|
modelValue: w.value,
|
|
954
955
|
"onUpdate:modelValue": (T) => w.value = T,
|
|
@@ -956,9 +957,9 @@ function at(t) {
|
|
|
956
957
|
width: t.width,
|
|
957
958
|
height: t.height,
|
|
958
959
|
buttons: t.buttons,
|
|
959
|
-
"show-header":
|
|
960
|
+
"show-header": u.value,
|
|
960
961
|
"show-buttons": s.value,
|
|
961
|
-
"show-close-button":
|
|
962
|
+
"show-close-button": i.value,
|
|
962
963
|
"show-max-button": !1,
|
|
963
964
|
onAccept: B,
|
|
964
965
|
onCancel: E,
|
|
@@ -974,13 +975,13 @@ function at(t) {
|
|
|
974
975
|
}
|
|
975
976
|
class lt {
|
|
976
977
|
constructor(e) {
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
this.appContext = e ? e._context : null;
|
|
978
|
+
V(this, "appContext", null);
|
|
979
|
+
V(this, "modalRef", l());
|
|
980
|
+
V(this, "activeModalIndex", l(0));
|
|
981
|
+
V(this, "modalRefs", {});
|
|
982
|
+
V(this, "isUseEscCloseModal", l(!1));
|
|
983
|
+
V(this, "activeModalInstance", y(() => this.modalRefs[this.activeModalIndex.value]));
|
|
984
|
+
this.app = e, this.appContext = e ? e._context : null;
|
|
984
985
|
}
|
|
985
986
|
getCurrentModal() {
|
|
986
987
|
return this.activeModalInstance.value;
|
|
@@ -1000,21 +1001,21 @@ class lt {
|
|
|
1000
1001
|
title: "",
|
|
1001
1002
|
showButtons: !0,
|
|
1002
1003
|
showHeader: !0
|
|
1003
|
-
}, e)),
|
|
1004
|
+
}, e)), d = l(!0), v = a.value.acceptCallback || (() => {
|
|
1004
1005
|
}), h = a.value.rejectCallback || (() => {
|
|
1005
1006
|
}), s = a.value.closedCallback || ((p, T) => {
|
|
1006
|
-
}),
|
|
1007
|
+
}), u = a.value.resizeHandle || ((p) => {
|
|
1007
1008
|
});
|
|
1008
|
-
let
|
|
1009
|
+
let i;
|
|
1009
1010
|
const w = de(a.value), g = (p) => {
|
|
1010
|
-
var
|
|
1011
|
-
|
|
1012
|
-
const T = (
|
|
1011
|
+
var z;
|
|
1012
|
+
d.value = !1;
|
|
1013
|
+
const T = (z = p == null ? void 0 : p.target) == null ? void 0 : z.classList.contains("modal_close");
|
|
1013
1014
|
s(p, this.isUseEscCloseModal.value ? "esc" : T ? "icon" : "button");
|
|
1014
1015
|
}, B = (p) => {
|
|
1015
|
-
g(p),
|
|
1016
|
-
if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value], te(null, n),
|
|
1017
|
-
const T = Object.keys(this.modalRefs);
|
|
1016
|
+
g(p), i && Le(() => {
|
|
1017
|
+
if (this.modalRefs[this.activeModalIndex.value] && delete this.modalRefs[this.activeModalIndex.value], te(null, n), i = null, this.modalRef.value = null, this.modalRefs) {
|
|
1018
|
+
const T = Object.keys(this.modalRefs).map((z) => Number(z));
|
|
1018
1019
|
T.length > 0 ? this.activeModalIndex.value = Math.max(...T) : this.activeModalIndex.value = 0;
|
|
1019
1020
|
}
|
|
1020
1021
|
this.isUseEscCloseModal.value = !1;
|
|
@@ -1022,21 +1023,21 @@ class lt {
|
|
|
1022
1023
|
}, E = (p) => {
|
|
1023
1024
|
var T;
|
|
1024
1025
|
this.isUseEscCloseModal.value = !0, this.activeModalInstance && ((T = this.activeModalInstance.value) == null || T.close(p == null ? void 0 : p.event));
|
|
1025
|
-
},
|
|
1026
|
+
}, R = () => c(ce, ie({
|
|
1026
1027
|
ref: this.modalRef,
|
|
1027
|
-
modelValue:
|
|
1028
|
-
"onUpdate:modelValue": (p) =>
|
|
1028
|
+
modelValue: d.value,
|
|
1029
|
+
"onUpdate:modelValue": (p) => d.value = p
|
|
1029
1030
|
}, a.value, {
|
|
1030
|
-
onAccept:
|
|
1031
|
+
onAccept: v,
|
|
1031
1032
|
onCancel: h,
|
|
1032
1033
|
onClosed: B,
|
|
1033
|
-
onResize:
|
|
1034
|
+
onResize: u,
|
|
1034
1035
|
onEsc: E
|
|
1035
1036
|
}), {
|
|
1036
|
-
default: () => [w && w()]
|
|
1037
|
+
default: () => [w && w(this.app)]
|
|
1037
1038
|
});
|
|
1038
|
-
return
|
|
1039
|
-
const T = Fe(
|
|
1039
|
+
return i = ((p) => {
|
|
1040
|
+
const T = Fe(R, p);
|
|
1040
1041
|
return T.appContext = this.appContext, te(T, n), T;
|
|
1041
1042
|
})({
|
|
1042
1043
|
...a.value
|
|
@@ -1046,7 +1047,7 @@ class lt {
|
|
|
1046
1047
|
a.value = {
|
|
1047
1048
|
...a.value,
|
|
1048
1049
|
...p
|
|
1049
|
-
},
|
|
1050
|
+
}, i && te(De(i, {
|
|
1050
1051
|
...a
|
|
1051
1052
|
}), n);
|
|
1052
1053
|
},
|
|
@@ -1057,27 +1058,26 @@ class lt {
|
|
|
1057
1058
|
}
|
|
1058
1059
|
class P {
|
|
1059
1060
|
static show(e) {
|
|
1060
|
-
|
|
1061
|
-
const a = W({
|
|
1061
|
+
const n = W({
|
|
1062
1062
|
...e
|
|
1063
|
-
}),
|
|
1064
|
-
}),
|
|
1063
|
+
}), a = !1, d = n.type === "error" || n.type === "prompt", v = n.type === "error" ? "错误提示" : n.type === "prompt" && n.title || "", h = n.acceptCallback || (() => {
|
|
1064
|
+
}), s = n.rejectCallback || (() => {
|
|
1065
1065
|
});
|
|
1066
|
-
let u = null;
|
|
1066
|
+
let u = null, i = new lt(u);
|
|
1067
1067
|
const w = () => {
|
|
1068
|
-
u && (u == null || u.destroy(),
|
|
1068
|
+
u && (u == null || u.destroy(), i = null);
|
|
1069
1069
|
};
|
|
1070
|
-
u =
|
|
1070
|
+
u = i == null ? void 0 : i.open({
|
|
1071
1071
|
class: "modal-message modal-message-type-info",
|
|
1072
|
-
title:
|
|
1073
|
-
showButtons:
|
|
1072
|
+
title: v,
|
|
1073
|
+
showButtons: a,
|
|
1074
1074
|
showHeader: d,
|
|
1075
|
-
width:
|
|
1075
|
+
width: n.width || 400,
|
|
1076
1076
|
fitContent: !0,
|
|
1077
1077
|
showMaxButton: !1,
|
|
1078
|
-
render: () =>
|
|
1079
|
-
onAccept:
|
|
1080
|
-
onReject:
|
|
1078
|
+
render: () => c(J, ie(n, {
|
|
1079
|
+
onAccept: h,
|
|
1080
|
+
onReject: s,
|
|
1081
1081
|
onClose: w
|
|
1082
1082
|
}), null)
|
|
1083
1083
|
});
|
|
@@ -1113,7 +1113,7 @@ class P {
|
|
|
1113
1113
|
P.show(a);
|
|
1114
1114
|
}
|
|
1115
1115
|
static error(e, n, a) {
|
|
1116
|
-
const
|
|
1116
|
+
const d = W({
|
|
1117
1117
|
width: 500,
|
|
1118
1118
|
type: "error",
|
|
1119
1119
|
okButtonText: "关闭",
|
|
@@ -1124,7 +1124,7 @@ class P {
|
|
|
1124
1124
|
detail: n
|
|
1125
1125
|
}
|
|
1126
1126
|
});
|
|
1127
|
-
P.show(
|
|
1127
|
+
P.show(d);
|
|
1128
1128
|
}
|
|
1129
1129
|
static prompt(e, n) {
|
|
1130
1130
|
const a = W({
|
|
@@ -1136,17 +1136,17 @@ class P {
|
|
|
1136
1136
|
});
|
|
1137
1137
|
P.show(a);
|
|
1138
1138
|
}
|
|
1139
|
-
static question(e, n, a,
|
|
1140
|
-
const
|
|
1139
|
+
static question(e, n, a, d) {
|
|
1140
|
+
const v = W({
|
|
1141
1141
|
type: "question",
|
|
1142
1142
|
title: e,
|
|
1143
1143
|
detail: n,
|
|
1144
1144
|
okButtonText: "确定",
|
|
1145
1145
|
cancelButtonText: "取消",
|
|
1146
1146
|
acceptCallback: a,
|
|
1147
|
-
rejectCallback:
|
|
1147
|
+
rejectCallback: d
|
|
1148
1148
|
});
|
|
1149
|
-
P.show(
|
|
1149
|
+
P.show(v);
|
|
1150
1150
|
}
|
|
1151
1151
|
}
|
|
1152
1152
|
J.install = (t) => {
|