hortimagic 1.0.1 → 1.0.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/LICENSE +1 -1
- package/dist/hortimagic.es.js +304 -188
- package/dist/hortimagic.iife.js +40 -29
- package/dist/hortimagic.js +42 -31
- package/dist/hortimagic.txt +42 -31
- package/dist/hortimagic.user.js +42 -31
- package/dist/index.d.ts +68 -8
- package/package.json +2 -1
- package/src/components/hm-dialog.ts +6 -5
- package/src/components/hm-icon.ts +2 -1
- package/src/components/type.d.ts +3 -1
package/dist/hortimagic.es.js
CHANGED
|
@@ -876,7 +876,7 @@ const index$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
|
876
876
|
decoder,
|
|
877
877
|
elements_hooks: elementsHooks,
|
|
878
878
|
encoder,
|
|
879
|
-
eventEmitter,
|
|
879
|
+
event_emitter: eventEmitter,
|
|
880
880
|
iirose_socket: iiroseSocket,
|
|
881
881
|
script_tools: scriptTools,
|
|
882
882
|
tools
|
|
@@ -1472,14 +1472,14 @@ function r(r2) {
|
|
|
1472
1472
|
return await this.updateComplete, this.renderRoot?.querySelector(r2) ?? null;
|
|
1473
1473
|
} });
|
|
1474
1474
|
}
|
|
1475
|
-
var __defProp$
|
|
1476
|
-
var __getOwnPropDesc$
|
|
1477
|
-
var __decorateClass$
|
|
1478
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
1475
|
+
var __defProp$c = Object.defineProperty;
|
|
1476
|
+
var __getOwnPropDesc$a = Object.getOwnPropertyDescriptor;
|
|
1477
|
+
var __decorateClass$c = (decorators, target, key, kind) => {
|
|
1478
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$a(target, key) : target;
|
|
1479
1479
|
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
1480
1480
|
if (decorator = decorators[i3])
|
|
1481
1481
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
1482
|
-
if (kind && result) __defProp$
|
|
1482
|
+
if (kind && result) __defProp$c(target, key, result);
|
|
1483
1483
|
return result;
|
|
1484
1484
|
};
|
|
1485
1485
|
let movePanelItemList = [];
|
|
@@ -1769,61 +1769,61 @@ HmMovePanel.styles = i$4`
|
|
|
1769
1769
|
transform: scale(0.98);
|
|
1770
1770
|
}
|
|
1771
1771
|
`;
|
|
1772
|
-
__decorateClass$
|
|
1772
|
+
__decorateClass$c([
|
|
1773
1773
|
n2({ type: Number })
|
|
1774
1774
|
], HmMovePanel.prototype, "width", 2);
|
|
1775
|
-
__decorateClass$
|
|
1775
|
+
__decorateClass$c([
|
|
1776
1776
|
n2({ type: Number })
|
|
1777
1777
|
], HmMovePanel.prototype, "height", 2);
|
|
1778
|
-
__decorateClass$
|
|
1778
|
+
__decorateClass$c([
|
|
1779
1779
|
n2({ type: String, attribute: "header-background-color" })
|
|
1780
1780
|
], HmMovePanel.prototype, "headerBackgroundColor", 2);
|
|
1781
|
-
__decorateClass$
|
|
1781
|
+
__decorateClass$c([
|
|
1782
1782
|
n2({ type: String, attribute: "header-color" })
|
|
1783
1783
|
], HmMovePanel.prototype, "headerColor", 2);
|
|
1784
|
-
__decorateClass$
|
|
1784
|
+
__decorateClass$c([
|
|
1785
1785
|
n2({ type: String, attribute: "body-background-color" })
|
|
1786
1786
|
], HmMovePanel.prototype, "bodyBackgroundColor", 2);
|
|
1787
|
-
__decorateClass$
|
|
1787
|
+
__decorateClass$c([
|
|
1788
1788
|
n2({ type: String, attribute: "body-color" })
|
|
1789
1789
|
], HmMovePanel.prototype, "bodyColor", 2);
|
|
1790
|
-
__decorateClass$
|
|
1790
|
+
__decorateClass$c([
|
|
1791
1791
|
n2({ type: String, attribute: "footer-background-color" })
|
|
1792
1792
|
], HmMovePanel.prototype, "footerBackgroundColor", 2);
|
|
1793
|
-
__decorateClass$
|
|
1793
|
+
__decorateClass$c([
|
|
1794
1794
|
n2({ type: String, attribute: "button-background-color" })
|
|
1795
1795
|
], HmMovePanel.prototype, "buttonBackgroundColor", 2);
|
|
1796
|
-
__decorateClass$
|
|
1796
|
+
__decorateClass$c([
|
|
1797
1797
|
n2({ type: String, attribute: "button-color" })
|
|
1798
1798
|
], HmMovePanel.prototype, "buttonColor", 2);
|
|
1799
|
-
__decorateClass$
|
|
1799
|
+
__decorateClass$c([
|
|
1800
1800
|
n2({ type: String })
|
|
1801
1801
|
], HmMovePanel.prototype, "titleContent", 2);
|
|
1802
|
-
__decorateClass$
|
|
1802
|
+
__decorateClass$c([
|
|
1803
1803
|
n2({ type: String, attribute: "left-button-text" })
|
|
1804
1804
|
], HmMovePanel.prototype, "leftButtonText", 2);
|
|
1805
|
-
__decorateClass$
|
|
1805
|
+
__decorateClass$c([
|
|
1806
1806
|
n2({ type: String, attribute: "right-button-text" })
|
|
1807
1807
|
], HmMovePanel.prototype, "rightButtonText", 2);
|
|
1808
|
-
__decorateClass$
|
|
1808
|
+
__decorateClass$c([
|
|
1809
1809
|
n2({ type: Boolean, attribute: "is-display" })
|
|
1810
1810
|
], HmMovePanel.prototype, "isDisplay", 2);
|
|
1811
|
-
__decorateClass$
|
|
1811
|
+
__decorateClass$c([
|
|
1812
1812
|
n2({ type: Number })
|
|
1813
1813
|
], HmMovePanel.prototype, "zIndex", 2);
|
|
1814
|
-
__decorateClass$
|
|
1814
|
+
__decorateClass$c([
|
|
1815
1815
|
n2({ type: String })
|
|
1816
1816
|
], HmMovePanel.prototype, "icon", 2);
|
|
1817
|
-
__decorateClass$
|
|
1817
|
+
__decorateClass$c([
|
|
1818
1818
|
n2({ type: Number })
|
|
1819
1819
|
], HmMovePanel.prototype, "left", 2);
|
|
1820
|
-
__decorateClass$
|
|
1820
|
+
__decorateClass$c([
|
|
1821
1821
|
n2({ type: Number })
|
|
1822
1822
|
], HmMovePanel.prototype, "top", 2);
|
|
1823
|
-
__decorateClass$
|
|
1823
|
+
__decorateClass$c([
|
|
1824
1824
|
r(".body")
|
|
1825
1825
|
], HmMovePanel.prototype, "body", 2);
|
|
1826
|
-
HmMovePanel = __decorateClass$
|
|
1826
|
+
HmMovePanel = __decorateClass$c([
|
|
1827
1827
|
t$2("hm-move-panel")
|
|
1828
1828
|
], HmMovePanel);
|
|
1829
1829
|
const hmMovePanel = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -1887,14 +1887,14 @@ class t extends e {
|
|
|
1887
1887
|
}
|
|
1888
1888
|
t.directiveName = "unsafeSVG", t.resultType = 2;
|
|
1889
1889
|
const o = e$1(t);
|
|
1890
|
-
var __defProp$
|
|
1891
|
-
var __getOwnPropDesc$
|
|
1892
|
-
var __decorateClass$
|
|
1893
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
1890
|
+
var __defProp$b = Object.defineProperty;
|
|
1891
|
+
var __getOwnPropDesc$9 = Object.getOwnPropertyDescriptor;
|
|
1892
|
+
var __decorateClass$b = (decorators, target, key, kind) => {
|
|
1893
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$9(target, key) : target;
|
|
1894
1894
|
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
1895
1895
|
if (decorator = decorators[i3])
|
|
1896
1896
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
1897
|
-
if (kind && result) __defProp$
|
|
1897
|
+
if (kind && result) __defProp$b(target, key, result);
|
|
1898
1898
|
return result;
|
|
1899
1899
|
};
|
|
1900
1900
|
const iconMap = /* @__PURE__ */ new Map([
|
|
@@ -1906,7 +1906,9 @@ const iconMap = /* @__PURE__ */ new Map([
|
|
|
1906
1906
|
["template", '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><defs><mask id="SVGZZ153dkC"><path fill="#4d4d4d" stroke="#fff" stroke-linejoin="round" stroke-width="4" d="M23 4H4v22h19zm21 30H4v9h40zm0-30H31v8h13zm0 14H31v8h13z"/></mask></defs><path fill="currentColor" d="M0 0h48v48H0z" mask="url(#SVGZZ153dkC)"/></svg>'],
|
|
1907
1907
|
["js", '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="currentColor" d="M10.77 7.3h.002c1.045.393 2.479.93 2.479 2.45a2.5 2.5 0 0 1-.224 1.02a2.5 2.5 0 0 1-1.515 1.364a2.5 2.5 0 0 1-1.035.115a2 2 0 0 1-.214.012a2.5 2.5 0 0 1-1.673-.65a2.52 2.52 0 0 1-.838-1.859c0-.202.078-.39.22-.532a.77.77 0 0 1 1.06 0a.74.74 0 0 1 .221.53c0 .952 1.041 1 1.25 1s1.25-.048 1.25-1c0-.413-.447-.648-1.514-1.048h-.003C9.19 8.307 7.753 7.77 7.753 6.25q.005-.537.224-1.02a2.5 2.5 0 0 1 .614-.842a2.5 2.5 0 0 1 .9-.52a3.5 3.5 0 0 1 2.023 0a2.52 2.52 0 0 1 1.738 2.381c0 .201-.078.39-.22.531a.77.77 0 0 1-1.061 0a.74.74 0 0 1-.22-.53c0-.952-1.041-1-1.25-1s-1.25.048-1.25 1c0 .413.447.648 1.514 1.048zM5.751 4.5c0-.2.078-.388.22-.53a.77.77 0 0 1 1.06 0c.142.141.22.33.22.53v5a2.75 2.75 0 0 1-4.695 1.945A2.73 2.73 0 0 1 1.75 9.5V9c0-.2.078-.388.22-.53a.77.77 0 0 1 1.061 0c.142.141.22.33.22.53v.5c0 .33.134.652.366.884c.465.465 1.303.465 1.768 0c.232-.233.366-.555.366-.884z"/></svg>'],
|
|
1908
1908
|
["filter", '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M3 4c2.01 2.59 7 9 7 9v7h4v-7s4.98-6.41 7-9z"/></svg>'],
|
|
1909
|
-
["filter-off", '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M3.004 1.59L3 1.586L1.586 3l4.928 4.928L10 12.818V21h4v-5.585l7 7l1.41-1.41L3 1.595zm12.266 9.446L21 3H7.234z"/></svg>']
|
|
1909
|
+
["filter-off", '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M3.004 1.59L3 1.586L1.586 3l4.928 4.928L10 12.818V21h4v-5.585l7 7l1.41-1.41L3 1.595zm12.266 9.446L21 3H7.234z"/></svg>'],
|
|
1910
|
+
["eye", '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M16 11v2h-1v1h-1v1h-1v1h-2v-1h-1v-1H9v-1H8v-2h2v-1h1V8h2v1h1v1h1v1z"/><path fill="currentColor" d="M22 11V9h-1V8h-1V7h-1V6h-2V5H7v1H5v1H4v1H3v1H2v2H1v2h1v2h1v1h1v1h1v1h2v1h10v-1h2v-1h1v-1h1v-1h1v-2h1v-2zm-4 2h-1v2h-1v1h-1v1h-2v1h-2v-1H9v-1H8v-1H7v-2H6v-2h1V9h1V8h1V7h2V6h2v1h2v1h1v1h1v2h1z"/></svg>'],
|
|
1911
|
+
["eye-off", '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M2 13H1v-2h1V9h1V8h1V7h1V6h2V5h8v1h-1v1h-1V6h-2v1H9v1H8v1H7v2H6v2h1v1H6v1H5v1H3v-1H2z"/><path fill="currentColor" d="M8 11h1v1H8zm3-3h1v1h-1zm-2 9H8v1H7v1H6v1H5v1H4v1H3v-1H2v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1V9h1V8h1V7h1V6h1V5h1V4h1V3h1V2h1v1h1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1H9zm3-2h1v1h-1zm1-1h1v1h-1zm2-2h1v1h-1zm-1 1h1v1h-1z"/><path fill="currentColor" d="M23 11v2h-1v2h-1v1h-1v1h-1v1h-2v1H9v-1h1v-1h1v1h2v-1h2v-1h1v-1h1v-2h1v-2h-1v-1h1V9h1V8h2v1h1v2z"/></svg>']
|
|
1910
1912
|
]);
|
|
1911
1913
|
function registerIcon(name2, svgContent) {
|
|
1912
1914
|
iconMap.set(name2, svgContent);
|
|
@@ -1952,13 +1954,13 @@ HmIcon.styles = i$4`
|
|
|
1952
1954
|
height: 100%;
|
|
1953
1955
|
}
|
|
1954
1956
|
`;
|
|
1955
|
-
__decorateClass$
|
|
1957
|
+
__decorateClass$b([
|
|
1956
1958
|
n2({ type: String })
|
|
1957
1959
|
], HmIcon.prototype, "icon", 2);
|
|
1958
|
-
__decorateClass$
|
|
1960
|
+
__decorateClass$b([
|
|
1959
1961
|
n2({ type: String })
|
|
1960
1962
|
], HmIcon.prototype, "size", 2);
|
|
1961
|
-
HmIcon = __decorateClass$
|
|
1963
|
+
HmIcon = __decorateClass$b([
|
|
1962
1964
|
t$2("hm-icon")
|
|
1963
1965
|
], HmIcon);
|
|
1964
1966
|
const hmIcon = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -1969,14 +1971,14 @@ const hmIcon = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProper
|
|
|
1969
1971
|
getIcon,
|
|
1970
1972
|
registerIcon
|
|
1971
1973
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1972
|
-
var __defProp$
|
|
1973
|
-
var __getOwnPropDesc$
|
|
1974
|
-
var __decorateClass$
|
|
1975
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
1974
|
+
var __defProp$a = Object.defineProperty;
|
|
1975
|
+
var __getOwnPropDesc$8 = Object.getOwnPropertyDescriptor;
|
|
1976
|
+
var __decorateClass$a = (decorators, target, key, kind) => {
|
|
1977
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$8(target, key) : target;
|
|
1976
1978
|
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
1977
1979
|
if (decorator = decorators[i3])
|
|
1978
1980
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
1979
|
-
if (kind && result) __defProp$
|
|
1981
|
+
if (kind && result) __defProp$a(target, key, result);
|
|
1980
1982
|
return result;
|
|
1981
1983
|
};
|
|
1982
1984
|
let HmMenu = class extends i$1 {
|
|
@@ -2063,19 +2065,19 @@ HmMenu.styles = i$4`
|
|
|
2063
2065
|
background:rgb(255,255,255);
|
|
2064
2066
|
}
|
|
2065
2067
|
`;
|
|
2066
|
-
__decorateClass$
|
|
2068
|
+
__decorateClass$a([
|
|
2067
2069
|
n2({ type: String })
|
|
2068
2070
|
], HmMenu.prototype, "icon", 2);
|
|
2069
|
-
__decorateClass$
|
|
2071
|
+
__decorateClass$a([
|
|
2070
2072
|
n2({ type: String })
|
|
2071
2073
|
], HmMenu.prototype, "content", 2);
|
|
2072
|
-
__decorateClass$
|
|
2074
|
+
__decorateClass$a([
|
|
2073
2075
|
n2({ type: Boolean })
|
|
2074
2076
|
], HmMenu.prototype, "flag", 2);
|
|
2075
|
-
__decorateClass$
|
|
2077
|
+
__decorateClass$a([
|
|
2076
2078
|
n2({ type: Boolean })
|
|
2077
2079
|
], HmMenu.prototype, "isMenuItem", 2);
|
|
2078
|
-
HmMenu = __decorateClass$
|
|
2080
|
+
HmMenu = __decorateClass$a([
|
|
2079
2081
|
t$2("hm-menu")
|
|
2080
2082
|
], HmMenu);
|
|
2081
2083
|
const hmMenu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -2084,14 +2086,14 @@ const hmMenu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProper
|
|
|
2084
2086
|
return HmMenu;
|
|
2085
2087
|
}
|
|
2086
2088
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2087
|
-
var __defProp$
|
|
2088
|
-
var __getOwnPropDesc$
|
|
2089
|
-
var __decorateClass$
|
|
2090
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
2089
|
+
var __defProp$9 = Object.defineProperty;
|
|
2090
|
+
var __getOwnPropDesc$7 = Object.getOwnPropertyDescriptor;
|
|
2091
|
+
var __decorateClass$9 = (decorators, target, key, kind) => {
|
|
2092
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$7(target, key) : target;
|
|
2091
2093
|
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
2092
2094
|
if (decorator = decorators[i3])
|
|
2093
2095
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
2094
|
-
if (kind && result) __defProp$
|
|
2096
|
+
if (kind && result) __defProp$9(target, key, result);
|
|
2095
2097
|
return result;
|
|
2096
2098
|
};
|
|
2097
2099
|
let HmNotification = class extends i$1 {
|
|
@@ -2210,28 +2212,28 @@ HmNotification.styles = i$4`
|
|
|
2210
2212
|
height: 44px;
|
|
2211
2213
|
}
|
|
2212
2214
|
`;
|
|
2213
|
-
__decorateClass$
|
|
2215
|
+
__decorateClass$9([
|
|
2214
2216
|
n2()
|
|
2215
2217
|
], HmNotification.prototype, "leftIcon", 2);
|
|
2216
|
-
__decorateClass$
|
|
2218
|
+
__decorateClass$9([
|
|
2217
2219
|
n2()
|
|
2218
2220
|
], HmNotification.prototype, "title", 2);
|
|
2219
|
-
__decorateClass$
|
|
2221
|
+
__decorateClass$9([
|
|
2220
2222
|
n2()
|
|
2221
2223
|
], HmNotification.prototype, "content", 2);
|
|
2222
|
-
__decorateClass$
|
|
2224
|
+
__decorateClass$9([
|
|
2223
2225
|
n2()
|
|
2224
2226
|
], HmNotification.prototype, "rightIcon", 2);
|
|
2225
|
-
__decorateClass$
|
|
2227
|
+
__decorateClass$9([
|
|
2226
2228
|
n2()
|
|
2227
2229
|
], HmNotification.prototype, "displayTime", 2);
|
|
2228
|
-
__decorateClass$
|
|
2230
|
+
__decorateClass$9([
|
|
2229
2231
|
n2()
|
|
2230
2232
|
], HmNotification.prototype, "color", 2);
|
|
2231
|
-
__decorateClass$
|
|
2233
|
+
__decorateClass$9([
|
|
2232
2234
|
n2()
|
|
2233
2235
|
], HmNotification.prototype, "backgroundColor", 2);
|
|
2234
|
-
HmNotification = __decorateClass$
|
|
2236
|
+
HmNotification = __decorateClass$9([
|
|
2235
2237
|
t$2("hm-notification")
|
|
2236
2238
|
], HmNotification);
|
|
2237
2239
|
const hmNotification = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -2240,14 +2242,14 @@ const hmNotification = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defi
|
|
|
2240
2242
|
return HmNotification;
|
|
2241
2243
|
}
|
|
2242
2244
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2243
|
-
var __defProp$
|
|
2244
|
-
var __getOwnPropDesc$
|
|
2245
|
-
var __decorateClass$
|
|
2246
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
2245
|
+
var __defProp$8 = Object.defineProperty;
|
|
2246
|
+
var __getOwnPropDesc$6 = Object.getOwnPropertyDescriptor;
|
|
2247
|
+
var __decorateClass$8 = (decorators, target, key, kind) => {
|
|
2248
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$6(target, key) : target;
|
|
2247
2249
|
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
2248
2250
|
if (decorator = decorators[i3])
|
|
2249
2251
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
2250
|
-
if (kind && result) __defProp$
|
|
2252
|
+
if (kind && result) __defProp$8(target, key, result);
|
|
2251
2253
|
return result;
|
|
2252
2254
|
};
|
|
2253
2255
|
let HmButton = class extends i$1 {
|
|
@@ -2355,34 +2357,34 @@ HmButton.styles = i$4`
|
|
|
2355
2357
|
align-items: center;
|
|
2356
2358
|
}
|
|
2357
2359
|
`;
|
|
2358
|
-
__decorateClass$
|
|
2360
|
+
__decorateClass$8([
|
|
2359
2361
|
n2({ type: String })
|
|
2360
2362
|
], HmButton.prototype, "icon", 2);
|
|
2361
|
-
__decorateClass$
|
|
2363
|
+
__decorateClass$8([
|
|
2362
2364
|
n2({ type: String })
|
|
2363
2365
|
], HmButton.prototype, "content", 2);
|
|
2364
|
-
__decorateClass$
|
|
2366
|
+
__decorateClass$8([
|
|
2365
2367
|
n2({ type: String })
|
|
2366
2368
|
], HmButton.prototype, "fontSize", 2);
|
|
2367
|
-
__decorateClass$
|
|
2369
|
+
__decorateClass$8([
|
|
2368
2370
|
n2({ type: String })
|
|
2369
2371
|
], HmButton.prototype, "color", 2);
|
|
2370
|
-
__decorateClass$
|
|
2372
|
+
__decorateClass$8([
|
|
2371
2373
|
n2({ type: String })
|
|
2372
2374
|
], HmButton.prototype, "background", 2);
|
|
2373
|
-
__decorateClass$
|
|
2375
|
+
__decorateClass$8([
|
|
2374
2376
|
n2({ type: String })
|
|
2375
2377
|
], HmButton.prototype, "width", 2);
|
|
2376
|
-
__decorateClass$
|
|
2378
|
+
__decorateClass$8([
|
|
2377
2379
|
n2({ type: String })
|
|
2378
2380
|
], HmButton.prototype, "height", 2);
|
|
2379
|
-
__decorateClass$
|
|
2381
|
+
__decorateClass$8([
|
|
2380
2382
|
n2({ type: Boolean })
|
|
2381
2383
|
], HmButton.prototype, "enable", 2);
|
|
2382
|
-
__decorateClass$
|
|
2384
|
+
__decorateClass$8([
|
|
2383
2385
|
n2({ type: Boolean })
|
|
2384
2386
|
], HmButton.prototype, "loading", 2);
|
|
2385
|
-
HmButton = __decorateClass$
|
|
2387
|
+
HmButton = __decorateClass$8([
|
|
2386
2388
|
t$2("hm-button")
|
|
2387
2389
|
], HmButton);
|
|
2388
2390
|
const hmButton = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -2391,14 +2393,14 @@ const hmButton = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProp
|
|
|
2391
2393
|
return HmButton;
|
|
2392
2394
|
}
|
|
2393
2395
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2394
|
-
var __defProp$
|
|
2395
|
-
var __getOwnPropDesc$
|
|
2396
|
-
var __decorateClass$
|
|
2397
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
2396
|
+
var __defProp$7 = Object.defineProperty;
|
|
2397
|
+
var __getOwnPropDesc$5 = Object.getOwnPropertyDescriptor;
|
|
2398
|
+
var __decorateClass$7 = (decorators, target, key, kind) => {
|
|
2399
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$5(target, key) : target;
|
|
2398
2400
|
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
2399
2401
|
if (decorator = decorators[i3])
|
|
2400
2402
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
2401
|
-
if (kind && result) __defProp$
|
|
2403
|
+
if (kind && result) __defProp$7(target, key, result);
|
|
2402
2404
|
return result;
|
|
2403
2405
|
};
|
|
2404
2406
|
let HmCell = class extends i$1 {
|
|
@@ -2528,22 +2530,22 @@ HmCell.styles = i$4`
|
|
|
2528
2530
|
text-shadow: var(--hm-cell-hover-text-shadow, 0 0 5px rgba(24, 144, 255, 0.2));
|
|
2529
2531
|
}
|
|
2530
2532
|
`;
|
|
2531
|
-
__decorateClass$
|
|
2533
|
+
__decorateClass$7([
|
|
2532
2534
|
n2()
|
|
2533
2535
|
], HmCell.prototype, "titleName", 2);
|
|
2534
|
-
__decorateClass$
|
|
2536
|
+
__decorateClass$7([
|
|
2535
2537
|
n2()
|
|
2536
2538
|
], HmCell.prototype, "descripthion", 2);
|
|
2537
|
-
__decorateClass$
|
|
2539
|
+
__decorateClass$7([
|
|
2538
2540
|
n2()
|
|
2539
2541
|
], HmCell.prototype, "content", 2);
|
|
2540
|
-
__decorateClass$
|
|
2542
|
+
__decorateClass$7([
|
|
2541
2543
|
n2()
|
|
2542
2544
|
], HmCell.prototype, "titleClickCallback", 2);
|
|
2543
|
-
__decorateClass$
|
|
2545
|
+
__decorateClass$7([
|
|
2544
2546
|
n2()
|
|
2545
2547
|
], HmCell.prototype, "contentClickCallback", 2);
|
|
2546
|
-
HmCell = __decorateClass$
|
|
2548
|
+
HmCell = __decorateClass$7([
|
|
2547
2549
|
t$2("hm-cell")
|
|
2548
2550
|
], HmCell);
|
|
2549
2551
|
const hmCell = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -2552,14 +2554,14 @@ const hmCell = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProper
|
|
|
2552
2554
|
return HmCell;
|
|
2553
2555
|
}
|
|
2554
2556
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2555
|
-
var __defProp$
|
|
2556
|
-
var __getOwnPropDesc$
|
|
2557
|
-
var __decorateClass$
|
|
2558
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
2557
|
+
var __defProp$6 = Object.defineProperty;
|
|
2558
|
+
var __getOwnPropDesc$4 = Object.getOwnPropertyDescriptor;
|
|
2559
|
+
var __decorateClass$6 = (decorators, target, key, kind) => {
|
|
2560
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$4(target, key) : target;
|
|
2559
2561
|
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
2560
2562
|
if (decorator = decorators[i3])
|
|
2561
2563
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
2562
|
-
if (kind && result) __defProp$
|
|
2564
|
+
if (kind && result) __defProp$6(target, key, result);
|
|
2563
2565
|
return result;
|
|
2564
2566
|
};
|
|
2565
2567
|
let HmSwipeCell = class extends i$1 {
|
|
@@ -2859,52 +2861,52 @@ HmSwipeCell.styles = i$4`
|
|
|
2859
2861
|
width: 100%;
|
|
2860
2862
|
}
|
|
2861
2863
|
`;
|
|
2862
|
-
__decorateClass$
|
|
2864
|
+
__decorateClass$6([
|
|
2863
2865
|
n2()
|
|
2864
2866
|
], HmSwipeCell.prototype, "_isDragging", 2);
|
|
2865
|
-
__decorateClass$
|
|
2867
|
+
__decorateClass$6([
|
|
2866
2868
|
n2()
|
|
2867
2869
|
], HmSwipeCell.prototype, "_startX", 2);
|
|
2868
|
-
__decorateClass$
|
|
2870
|
+
__decorateClass$6([
|
|
2869
2871
|
n2()
|
|
2870
2872
|
], HmSwipeCell.prototype, "_currentTranslate", 2);
|
|
2871
|
-
__decorateClass$
|
|
2873
|
+
__decorateClass$6([
|
|
2872
2874
|
n2()
|
|
2873
2875
|
], HmSwipeCell.prototype, "_prevTranslate", 2);
|
|
2874
|
-
__decorateClass$
|
|
2876
|
+
__decorateClass$6([
|
|
2875
2877
|
n2()
|
|
2876
2878
|
], HmSwipeCell.prototype, "_animationId", 2);
|
|
2877
|
-
__decorateClass$
|
|
2879
|
+
__decorateClass$6([
|
|
2878
2880
|
n2()
|
|
2879
2881
|
], HmSwipeCell.prototype, "_velocity", 2);
|
|
2880
|
-
__decorateClass$
|
|
2882
|
+
__decorateClass$6([
|
|
2881
2883
|
n2()
|
|
2882
2884
|
], HmSwipeCell.prototype, "_lastX", 2);
|
|
2883
|
-
__decorateClass$
|
|
2885
|
+
__decorateClass$6([
|
|
2884
2886
|
n2()
|
|
2885
2887
|
], HmSwipeCell.prototype, "_lastTime", 2);
|
|
2886
|
-
__decorateClass$
|
|
2888
|
+
__decorateClass$6([
|
|
2887
2889
|
n2()
|
|
2888
2890
|
], HmSwipeCell.prototype, "_isOpen", 2);
|
|
2889
|
-
__decorateClass$
|
|
2891
|
+
__decorateClass$6([
|
|
2890
2892
|
n2()
|
|
2891
2893
|
], HmSwipeCell.prototype, "rightButtonName", 2);
|
|
2892
|
-
__decorateClass$
|
|
2894
|
+
__decorateClass$6([
|
|
2893
2895
|
n2()
|
|
2894
2896
|
], HmSwipeCell.prototype, "rightButtonCallback", 2);
|
|
2895
|
-
__decorateClass$
|
|
2897
|
+
__decorateClass$6([
|
|
2896
2898
|
e$2(".slider")
|
|
2897
2899
|
], HmSwipeCell.prototype, "sliderElement", 2);
|
|
2898
|
-
__decorateClass$
|
|
2900
|
+
__decorateClass$6([
|
|
2899
2901
|
e$2(".content")
|
|
2900
2902
|
], HmSwipeCell.prototype, "contentElement", 2);
|
|
2901
|
-
__decorateClass$
|
|
2903
|
+
__decorateClass$6([
|
|
2902
2904
|
e$2(".left-actions")
|
|
2903
2905
|
], HmSwipeCell.prototype, "leftActions", 2);
|
|
2904
|
-
__decorateClass$
|
|
2906
|
+
__decorateClass$6([
|
|
2905
2907
|
e$2(".right-actions")
|
|
2906
2908
|
], HmSwipeCell.prototype, "rightActions", 2);
|
|
2907
|
-
HmSwipeCell = __decorateClass$
|
|
2909
|
+
HmSwipeCell = __decorateClass$6([
|
|
2908
2910
|
t$2("hm-swipe-cell")
|
|
2909
2911
|
], HmSwipeCell);
|
|
2910
2912
|
const hmSwipeCell = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -2913,14 +2915,14 @@ const hmSwipeCell = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2913
2915
|
return HmSwipeCell;
|
|
2914
2916
|
}
|
|
2915
2917
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2916
|
-
var __defProp$
|
|
2917
|
-
var __getOwnPropDesc$
|
|
2918
|
-
var __decorateClass$
|
|
2919
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
2918
|
+
var __defProp$5 = Object.defineProperty;
|
|
2919
|
+
var __getOwnPropDesc$3 = Object.getOwnPropertyDescriptor;
|
|
2920
|
+
var __decorateClass$5 = (decorators, target, key, kind) => {
|
|
2921
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$3(target, key) : target;
|
|
2920
2922
|
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
2921
2923
|
if (decorator = decorators[i3])
|
|
2922
2924
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
2923
|
-
if (kind && result) __defProp$
|
|
2925
|
+
if (kind && result) __defProp$5(target, key, result);
|
|
2924
2926
|
return result;
|
|
2925
2927
|
};
|
|
2926
2928
|
let HmSwitch = class extends i$1 {
|
|
@@ -3041,31 +3043,31 @@ HmSwitch.styles = i$4`
|
|
|
3041
3043
|
justify-content: center;
|
|
3042
3044
|
}
|
|
3043
3045
|
`;
|
|
3044
|
-
__decorateClass$
|
|
3046
|
+
__decorateClass$5([
|
|
3045
3047
|
n2({ type: Boolean })
|
|
3046
3048
|
], HmSwitch.prototype, "checked", 2);
|
|
3047
|
-
__decorateClass$
|
|
3049
|
+
__decorateClass$5([
|
|
3048
3050
|
n2({ type: Boolean })
|
|
3049
3051
|
], HmSwitch.prototype, "disabled", 2);
|
|
3050
|
-
__decorateClass$
|
|
3052
|
+
__decorateClass$5([
|
|
3051
3053
|
n2({ type: Boolean })
|
|
3052
3054
|
], HmSwitch.prototype, "loading", 2);
|
|
3053
|
-
__decorateClass$
|
|
3055
|
+
__decorateClass$5([
|
|
3054
3056
|
n2({ type: String })
|
|
3055
3057
|
], HmSwitch.prototype, "color", 2);
|
|
3056
|
-
__decorateClass$
|
|
3058
|
+
__decorateClass$5([
|
|
3057
3059
|
n2({ type: String })
|
|
3058
3060
|
], HmSwitch.prototype, "openContent", 2);
|
|
3059
|
-
__decorateClass$
|
|
3061
|
+
__decorateClass$5([
|
|
3060
3062
|
n2({ type: String })
|
|
3061
3063
|
], HmSwitch.prototype, "closeContent", 2);
|
|
3062
|
-
__decorateClass$
|
|
3064
|
+
__decorateClass$5([
|
|
3063
3065
|
n2({ type: String })
|
|
3064
3066
|
], HmSwitch.prototype, "openIcon", 2);
|
|
3065
|
-
__decorateClass$
|
|
3067
|
+
__decorateClass$5([
|
|
3066
3068
|
n2({ type: String })
|
|
3067
3069
|
], HmSwitch.prototype, "closeIcon", 2);
|
|
3068
|
-
HmSwitch = __decorateClass$
|
|
3070
|
+
HmSwitch = __decorateClass$5([
|
|
3069
3071
|
t$2("hm-switch")
|
|
3070
3072
|
], HmSwitch);
|
|
3071
3073
|
const hmSwitch = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -3074,14 +3076,14 @@ const hmSwitch = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProp
|
|
|
3074
3076
|
return HmSwitch;
|
|
3075
3077
|
}
|
|
3076
3078
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3077
|
-
var __defProp$
|
|
3078
|
-
var __getOwnPropDesc$
|
|
3079
|
-
var __decorateClass$
|
|
3080
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
3079
|
+
var __defProp$4 = Object.defineProperty;
|
|
3080
|
+
var __getOwnPropDesc$2 = Object.getOwnPropertyDescriptor;
|
|
3081
|
+
var __decorateClass$4 = (decorators, target, key, kind) => {
|
|
3082
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$2(target, key) : target;
|
|
3081
3083
|
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
3082
3084
|
if (decorator = decorators[i3])
|
|
3083
3085
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
3084
|
-
if (kind && result) __defProp$
|
|
3086
|
+
if (kind && result) __defProp$4(target, key, result);
|
|
3085
3087
|
return result;
|
|
3086
3088
|
};
|
|
3087
3089
|
let HmAccordion = class extends i$1 {
|
|
@@ -3201,16 +3203,16 @@ HmAccordion.styles = i$4`
|
|
|
3201
3203
|
background-color: #f8f9fa;
|
|
3202
3204
|
}
|
|
3203
3205
|
`;
|
|
3204
|
-
__decorateClass$
|
|
3206
|
+
__decorateClass$4([
|
|
3205
3207
|
n2({ type: String, attribute: "max-height" })
|
|
3206
3208
|
], HmAccordion.prototype, "maxHeight", 2);
|
|
3207
|
-
__decorateClass$
|
|
3209
|
+
__decorateClass$4([
|
|
3208
3210
|
n2({ type: Array })
|
|
3209
3211
|
], HmAccordion.prototype, "items", 2);
|
|
3210
|
-
__decorateClass$
|
|
3212
|
+
__decorateClass$4([
|
|
3211
3213
|
n2({ type: Boolean })
|
|
3212
3214
|
], HmAccordion.prototype, "expanded", 2);
|
|
3213
|
-
HmAccordion = __decorateClass$
|
|
3215
|
+
HmAccordion = __decorateClass$4([
|
|
3214
3216
|
t$2("hm-accordion")
|
|
3215
3217
|
], HmAccordion);
|
|
3216
3218
|
const hmAccordion = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -3219,14 +3221,14 @@ const hmAccordion = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3219
3221
|
return HmAccordion;
|
|
3220
3222
|
}
|
|
3221
3223
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3222
|
-
var __defProp$
|
|
3223
|
-
var __getOwnPropDesc$
|
|
3224
|
-
var __decorateClass$
|
|
3225
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
3224
|
+
var __defProp$3 = Object.defineProperty;
|
|
3225
|
+
var __getOwnPropDesc$1 = Object.getOwnPropertyDescriptor;
|
|
3226
|
+
var __decorateClass$3 = (decorators, target, key, kind) => {
|
|
3227
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$1(target, key) : target;
|
|
3226
3228
|
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
3227
3229
|
if (decorator = decorators[i3])
|
|
3228
3230
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
3229
|
-
if (kind && result) __defProp$
|
|
3231
|
+
if (kind && result) __defProp$3(target, key, result);
|
|
3230
3232
|
return result;
|
|
3231
3233
|
};
|
|
3232
3234
|
let HmInput = class extends i$1 {
|
|
@@ -3311,28 +3313,28 @@ HmInput.styles = i$4`
|
|
|
3311
3313
|
height: 16px;
|
|
3312
3314
|
}
|
|
3313
3315
|
`;
|
|
3314
|
-
__decorateClass$
|
|
3316
|
+
__decorateClass$3([
|
|
3315
3317
|
n2({ type: String })
|
|
3316
3318
|
], HmInput.prototype, "type", 2);
|
|
3317
|
-
__decorateClass$
|
|
3319
|
+
__decorateClass$3([
|
|
3318
3320
|
n2({ type: String })
|
|
3319
3321
|
], HmInput.prototype, "icon", 2);
|
|
3320
|
-
__decorateClass$
|
|
3322
|
+
__decorateClass$3([
|
|
3321
3323
|
n2({ type: String })
|
|
3322
3324
|
], HmInput.prototype, "label", 2);
|
|
3323
|
-
__decorateClass$
|
|
3325
|
+
__decorateClass$3([
|
|
3324
3326
|
n2({ type: String })
|
|
3325
3327
|
], HmInput.prototype, "placeholder", 2);
|
|
3326
|
-
__decorateClass$
|
|
3328
|
+
__decorateClass$3([
|
|
3327
3329
|
n2({ type: Boolean })
|
|
3328
3330
|
], HmInput.prototype, "enable", 2);
|
|
3329
|
-
__decorateClass$
|
|
3331
|
+
__decorateClass$3([
|
|
3330
3332
|
n2({ type: Boolean })
|
|
3331
3333
|
], HmInput.prototype, "readonly", 2);
|
|
3332
|
-
__decorateClass$
|
|
3334
|
+
__decorateClass$3([
|
|
3333
3335
|
n2()
|
|
3334
3336
|
], HmInput.prototype, "value", 2);
|
|
3335
|
-
HmInput = __decorateClass$
|
|
3337
|
+
HmInput = __decorateClass$3([
|
|
3336
3338
|
t$2("hm-input")
|
|
3337
3339
|
], HmInput);
|
|
3338
3340
|
const hmInput = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -3341,14 +3343,14 @@ const hmInput = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
|
3341
3343
|
return HmInput;
|
|
3342
3344
|
}
|
|
3343
3345
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3344
|
-
var __defProp$
|
|
3345
|
-
var __getOwnPropDesc
|
|
3346
|
-
var __decorateClass$
|
|
3347
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc
|
|
3346
|
+
var __defProp$2 = Object.defineProperty;
|
|
3347
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3348
|
+
var __decorateClass$2 = (decorators, target, key, kind) => {
|
|
3349
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
3348
3350
|
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
3349
3351
|
if (decorator = decorators[i3])
|
|
3350
3352
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
3351
|
-
if (kind && result) __defProp$
|
|
3353
|
+
if (kind && result) __defProp$2(target, key, result);
|
|
3352
3354
|
return result;
|
|
3353
3355
|
};
|
|
3354
3356
|
let HmDialog = class extends i$1 {
|
|
@@ -3415,7 +3417,7 @@ HmDialog.styles = i$4`
|
|
|
3415
3417
|
left: 0;
|
|
3416
3418
|
width: 100%;
|
|
3417
3419
|
height: 100%;
|
|
3418
|
-
z-index:
|
|
3420
|
+
z-index: 999999;
|
|
3419
3421
|
}
|
|
3420
3422
|
:host([isopen]) {
|
|
3421
3423
|
display: block;
|
|
@@ -3439,6 +3441,7 @@ HmDialog.styles = i$4`
|
|
|
3439
3441
|
min-width: 300px;
|
|
3440
3442
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
3441
3443
|
padding: 20px;
|
|
3444
|
+
color:rgb(0,0,0)
|
|
3442
3445
|
}
|
|
3443
3446
|
|
|
3444
3447
|
.footer {
|
|
@@ -3452,10 +3455,10 @@ HmDialog.styles = i$4`
|
|
|
3452
3455
|
min-width: 80px;
|
|
3453
3456
|
}
|
|
3454
3457
|
`;
|
|
3455
|
-
__decorateClass$
|
|
3458
|
+
__decorateClass$2([
|
|
3456
3459
|
n2({ type: Boolean, attribute: "isopen" })
|
|
3457
3460
|
], HmDialog.prototype, "isOpen", 2);
|
|
3458
|
-
HmDialog = __decorateClass$
|
|
3461
|
+
HmDialog = __decorateClass$2([
|
|
3459
3462
|
t$2("hm-dialog")
|
|
3460
3463
|
], HmDialog);
|
|
3461
3464
|
const hmDialog = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -3510,6 +3513,100 @@ function initNotificationHolder() {
|
|
|
3510
3513
|
notificationHolder.style.zIndex = "999999";
|
|
3511
3514
|
document.body.append(notificationHolder);
|
|
3512
3515
|
}
|
|
3516
|
+
const notification = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3517
|
+
__proto__: null,
|
|
3518
|
+
initNotificationHolder,
|
|
3519
|
+
notificationHolder
|
|
3520
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
3521
|
+
let dialogHolder = document.createElement("div");
|
|
3522
|
+
function initDialogHolder() {
|
|
3523
|
+
dialogHolder.id = "hmDialogHolder";
|
|
3524
|
+
dialogHolder.style.zIndex = "999999";
|
|
3525
|
+
document.body.append(dialogHolder);
|
|
3526
|
+
}
|
|
3527
|
+
const dialog = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3528
|
+
__proto__: null,
|
|
3529
|
+
dialogHolder,
|
|
3530
|
+
initDialogHolder
|
|
3531
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
3532
|
+
var __defProp$1 = Object.defineProperty;
|
|
3533
|
+
var __decorateClass$1 = (decorators, target, key, kind) => {
|
|
3534
|
+
var result = void 0;
|
|
3535
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
3536
|
+
if (decorator = decorators[i3])
|
|
3537
|
+
result = decorator(target, key, result) || result;
|
|
3538
|
+
if (result) __defProp$1(target, key, result);
|
|
3539
|
+
return result;
|
|
3540
|
+
};
|
|
3541
|
+
class HmDialogApp extends i$1 {
|
|
3542
|
+
constructor() {
|
|
3543
|
+
super(...arguments);
|
|
3544
|
+
this.dialogOpen = false;
|
|
3545
|
+
this.message = "请做出选择";
|
|
3546
|
+
this.closeCallback = null;
|
|
3547
|
+
this.cancelCallback = null;
|
|
3548
|
+
this.confirmCallback = null;
|
|
3549
|
+
}
|
|
3550
|
+
/** 触发点击事件 */
|
|
3551
|
+
handelClick() {
|
|
3552
|
+
this.dispatchEvent(new CustomEvent("hmclick"));
|
|
3553
|
+
}
|
|
3554
|
+
static {
|
|
3555
|
+
this.styles = i$4`
|
|
3556
|
+
`;
|
|
3557
|
+
}
|
|
3558
|
+
render() {
|
|
3559
|
+
return x`
|
|
3560
|
+
<hm-dialog
|
|
3561
|
+
?isopen="${this.dialogOpen}"
|
|
3562
|
+
@hm-dialog-close="${() => {
|
|
3563
|
+
this.dialogOpen = false;
|
|
3564
|
+
}}"
|
|
3565
|
+
@hm-dialog-cancel="${() => {
|
|
3566
|
+
if (this.cancelCallback) this.cancelCallback();
|
|
3567
|
+
}}"
|
|
3568
|
+
@hm-dialog-confirm="${() => {
|
|
3569
|
+
if (this.confirmCallback) this.confirmCallback();
|
|
3570
|
+
}}"
|
|
3571
|
+
>
|
|
3572
|
+
<p>${this.message}</p>
|
|
3573
|
+
</hm-dialog>
|
|
3574
|
+
`;
|
|
3575
|
+
}
|
|
3576
|
+
}
|
|
3577
|
+
__decorateClass$1([
|
|
3578
|
+
n2({ type: Boolean })
|
|
3579
|
+
], HmDialogApp.prototype, "dialogOpen");
|
|
3580
|
+
__decorateClass$1([
|
|
3581
|
+
n2({ type: String })
|
|
3582
|
+
], HmDialogApp.prototype, "message");
|
|
3583
|
+
__decorateClass$1([
|
|
3584
|
+
n2({ type: Function })
|
|
3585
|
+
], HmDialogApp.prototype, "closeCallback");
|
|
3586
|
+
__decorateClass$1([
|
|
3587
|
+
n2({ type: Function })
|
|
3588
|
+
], HmDialogApp.prototype, "cancelCallback");
|
|
3589
|
+
__decorateClass$1([
|
|
3590
|
+
n2({ type: Function })
|
|
3591
|
+
], HmDialogApp.prototype, "confirmCallback");
|
|
3592
|
+
let dialogApp;
|
|
3593
|
+
async function initDialogApp() {
|
|
3594
|
+
customElements.define("hm-dialog-app", HmDialogApp);
|
|
3595
|
+
dialogApp = document.createElement("hm-dialog-app");
|
|
3596
|
+
dialogApp.dialogOpen = false;
|
|
3597
|
+
dialogApp.message = "请做出选择";
|
|
3598
|
+
dialogApp.closeCallback = null;
|
|
3599
|
+
dialogApp.cancelCallback = null;
|
|
3600
|
+
dialogApp.confirmCallback = null;
|
|
3601
|
+
dialogHolder.append(dialogApp);
|
|
3602
|
+
}
|
|
3603
|
+
const dialogApp$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3604
|
+
__proto__: null,
|
|
3605
|
+
get dialogApp() {
|
|
3606
|
+
return dialogApp;
|
|
3607
|
+
},
|
|
3608
|
+
initDialogApp
|
|
3609
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
3513
3610
|
let notice = {
|
|
3514
3611
|
success(title, content, displayTime = 2e3) {
|
|
3515
3612
|
let notice2 = document.createElement("hm-notification");
|
|
@@ -3548,22 +3645,27 @@ let notice = {
|
|
|
3548
3645
|
notificationHolder.append(notice2);
|
|
3549
3646
|
}
|
|
3550
3647
|
};
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
|
|
3561
|
-
|
|
3648
|
+
function confirm(message, confirmCallback, cancelCallback, closeCallback) {
|
|
3649
|
+
dialogApp.message = message;
|
|
3650
|
+
if (confirmCallback)
|
|
3651
|
+
dialogApp.confirmCallback = confirmCallback;
|
|
3652
|
+
else
|
|
3653
|
+
dialogApp.confirmCallback = null;
|
|
3654
|
+
if (cancelCallback)
|
|
3655
|
+
dialogApp.cancelCallback = cancelCallback;
|
|
3656
|
+
else
|
|
3657
|
+
dialogApp.cancelCallback = null;
|
|
3658
|
+
if (closeCallback)
|
|
3659
|
+
dialogApp.closeCallback = closeCallback;
|
|
3660
|
+
else
|
|
3661
|
+
dialogApp.closeCallback = null;
|
|
3662
|
+
dialogApp.dialogOpen = true;
|
|
3663
|
+
console.debug("弹窗已打开", dialogApp);
|
|
3562
3664
|
}
|
|
3563
|
-
const
|
|
3665
|
+
const appTools = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3564
3666
|
__proto__: null,
|
|
3565
|
-
|
|
3566
|
-
|
|
3667
|
+
confirm,
|
|
3668
|
+
notice
|
|
3567
3669
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3568
3670
|
async function initExampleApp() {
|
|
3569
3671
|
let panel = document.createElement("hm-move-panel");
|
|
@@ -3723,16 +3825,15 @@ const exampleApp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
|
|
|
3723
3825
|
initExampleApp
|
|
3724
3826
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3725
3827
|
var __defProp = Object.defineProperty;
|
|
3726
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3727
3828
|
var __decorateClass = (decorators, target, key, kind) => {
|
|
3728
|
-
var result =
|
|
3829
|
+
var result = void 0;
|
|
3729
3830
|
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
3730
3831
|
if (decorator = decorators[i3])
|
|
3731
|
-
result =
|
|
3732
|
-
if (
|
|
3832
|
+
result = decorator(target, key, result) || result;
|
|
3833
|
+
if (result) __defProp(target, key, result);
|
|
3733
3834
|
return result;
|
|
3734
3835
|
};
|
|
3735
|
-
|
|
3836
|
+
class HmScriptApp extends i$1 {
|
|
3736
3837
|
constructor() {
|
|
3737
3838
|
super(...arguments);
|
|
3738
3839
|
this.scriptName = "";
|
|
@@ -3742,6 +3843,14 @@ let HmScriptApp = class extends i$1 {
|
|
|
3742
3843
|
this.dialogOpen = false;
|
|
3743
3844
|
this.scriptList = scriptList;
|
|
3744
3845
|
}
|
|
3846
|
+
static {
|
|
3847
|
+
this.styles = i$4`
|
|
3848
|
+
:host {
|
|
3849
|
+
display:block;
|
|
3850
|
+
width: 100%;
|
|
3851
|
+
}
|
|
3852
|
+
`;
|
|
3853
|
+
}
|
|
3745
3854
|
render() {
|
|
3746
3855
|
return x`
|
|
3747
3856
|
<hm-dialog
|
|
@@ -3871,35 +3980,27 @@ let HmScriptApp = class extends i$1 {
|
|
|
3871
3980
|
|
|
3872
3981
|
`;
|
|
3873
3982
|
}
|
|
3874
|
-
};
|
|
3875
|
-
HmScriptApp.styles = i$4`
|
|
3876
|
-
:host {
|
|
3877
|
-
display:block;
|
|
3878
|
-
width: 100%;
|
|
3879
3983
|
}
|
|
3880
|
-
`;
|
|
3881
3984
|
__decorateClass([
|
|
3882
3985
|
n2({ type: String })
|
|
3883
|
-
], HmScriptApp.prototype, "scriptName"
|
|
3986
|
+
], HmScriptApp.prototype, "scriptName");
|
|
3884
3987
|
__decorateClass([
|
|
3885
3988
|
n2({ type: String })
|
|
3886
|
-
], HmScriptApp.prototype, "scriptUrl"
|
|
3989
|
+
], HmScriptApp.prototype, "scriptUrl");
|
|
3887
3990
|
__decorateClass([
|
|
3888
3991
|
n2({ type: Boolean })
|
|
3889
|
-
], HmScriptApp.prototype, "scriptEnable"
|
|
3992
|
+
], HmScriptApp.prototype, "scriptEnable");
|
|
3890
3993
|
__decorateClass([
|
|
3891
3994
|
n2({ type: Boolean })
|
|
3892
|
-
], HmScriptApp.prototype, "scriptIngected"
|
|
3995
|
+
], HmScriptApp.prototype, "scriptIngected");
|
|
3893
3996
|
__decorateClass([
|
|
3894
3997
|
n2({ type: Boolean })
|
|
3895
|
-
], HmScriptApp.prototype, "dialogOpen"
|
|
3998
|
+
], HmScriptApp.prototype, "dialogOpen");
|
|
3896
3999
|
__decorateClass([
|
|
3897
4000
|
n2({ type: Array })
|
|
3898
|
-
], HmScriptApp.prototype, "scriptList"
|
|
3899
|
-
HmScriptApp = __decorateClass([
|
|
3900
|
-
t$2("hm-script-app")
|
|
3901
|
-
], HmScriptApp);
|
|
4001
|
+
], HmScriptApp.prototype, "scriptList");
|
|
3902
4002
|
async function initScriptApp() {
|
|
4003
|
+
customElements.define("hm-script-app", HmScriptApp);
|
|
3903
4004
|
let panel = document.createElement("hm-move-panel");
|
|
3904
4005
|
panel.titleContent = "脚本管理";
|
|
3905
4006
|
panel.icon = "js";
|
|
@@ -3917,8 +4018,13 @@ async function initScriptApp() {
|
|
|
3917
4018
|
});
|
|
3918
4019
|
return menuItem;
|
|
3919
4020
|
}
|
|
4021
|
+
const scriptApp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4022
|
+
__proto__: null,
|
|
4023
|
+
initScriptApp
|
|
4024
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
3920
4025
|
const name = "hortimagic";
|
|
3921
|
-
const version = "1.0.
|
|
4026
|
+
const version = "1.0.3";
|
|
4027
|
+
const changelog = "修复了对话框注册较晚的bug,增加了初始化完成的标志";
|
|
3922
4028
|
const author = "Narlen";
|
|
3923
4029
|
const description = "园艺魔法,花园插件";
|
|
3924
4030
|
const keywords = ["iirose", "plugins", "hortimagic"];
|
|
@@ -3937,6 +4043,7 @@ const pkg = {
|
|
|
3937
4043
|
name,
|
|
3938
4044
|
"private": false,
|
|
3939
4045
|
version,
|
|
4046
|
+
changelog,
|
|
3940
4047
|
author,
|
|
3941
4048
|
description,
|
|
3942
4049
|
keywords,
|
|
@@ -3955,9 +4062,10 @@ const pkg = {
|
|
|
3955
4062
|
async function init() {
|
|
3956
4063
|
try {
|
|
3957
4064
|
initNotificationHolder();
|
|
4065
|
+
initDialogHolder();
|
|
4066
|
+
await initDialogApp();
|
|
3958
4067
|
initMenuHolder();
|
|
3959
4068
|
initMovePanelHolder();
|
|
3960
|
-
initDialogHolder();
|
|
3961
4069
|
notice.normal(pkg.name, "注入网络钩子函数");
|
|
3962
4070
|
await initSocket();
|
|
3963
4071
|
notice.normal(pkg.name, "注入钩子函数");
|
|
@@ -3977,7 +4085,7 @@ async function init() {
|
|
|
3977
4085
|
scriptMenu.flag = menu2.flag;
|
|
3978
4086
|
});
|
|
3979
4087
|
menuHolder.append(menu2, exampleMenu, scriptMenu);
|
|
3980
|
-
notice.success(pkg.name, `${pkg.version}
|
|
4088
|
+
notice.success(pkg.name, `${pkg.version} 已加载`);
|
|
3981
4089
|
} catch (error) {
|
|
3982
4090
|
console.error(error);
|
|
3983
4091
|
}
|
|
@@ -3988,8 +4096,11 @@ const mainApp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
|
3988
4096
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3989
4097
|
const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3990
4098
|
__proto__: null,
|
|
4099
|
+
app_tools: appTools,
|
|
4100
|
+
dialog_app: dialogApp$1,
|
|
3991
4101
|
example_app: exampleApp,
|
|
3992
|
-
main_app: mainApp
|
|
4102
|
+
main_app: mainApp,
|
|
4103
|
+
script_app: scriptApp
|
|
3993
4104
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3994
4105
|
const index = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3995
4106
|
__proto__: null,
|
|
@@ -4003,6 +4114,8 @@ const information = {
|
|
|
4003
4114
|
name: pkg.name,
|
|
4004
4115
|
/** 项目版本 */
|
|
4005
4116
|
version: pkg.version,
|
|
4117
|
+
/** 项目更新日志 */
|
|
4118
|
+
changelog: pkg.changelog,
|
|
4006
4119
|
/** 项目描述 */
|
|
4007
4120
|
description: pkg.description,
|
|
4008
4121
|
/** 项目作者 */
|
|
@@ -4012,10 +4125,13 @@ const information = {
|
|
|
4012
4125
|
/** 项目仓库 */
|
|
4013
4126
|
repository: pkg.repository,
|
|
4014
4127
|
/** 项目构建时间 */
|
|
4015
|
-
buildTime: (/* @__PURE__ */ new Date()).toISOString()
|
|
4128
|
+
buildTime: (/* @__PURE__ */ new Date()).toISOString(),
|
|
4129
|
+
/** 项目是否注入完成 */
|
|
4130
|
+
ingected: false
|
|
4016
4131
|
};
|
|
4017
4132
|
async function main() {
|
|
4018
|
-
init();
|
|
4133
|
+
await init();
|
|
4134
|
+
information.ingected = true;
|
|
4019
4135
|
}
|
|
4020
4136
|
main();
|
|
4021
4137
|
export {
|