@vmscloud/moz-ui-components-core 0.1.57 → 0.1.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +375 -375
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +277 -246
- package/dist/index.js.map +1 -1
- package/dist/runtime/types.d.ts +2 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -20,7 +20,7 @@ import "dayjs/locale/en.js";
|
|
|
20
20
|
import "dayjs/locale/zh.js";
|
|
21
21
|
import "dayjs/locale/ja.js";
|
|
22
22
|
import { createRef as ve, ref as le } from "lit-html/directives/ref.js";
|
|
23
|
-
import { Virtualizer as Et, elementScroll as
|
|
23
|
+
import { Virtualizer as Et, elementScroll as Pt, observeElementOffset as xt, observeElementRect as Lt } from "@tanstack/virtual-core";
|
|
24
24
|
class rs {
|
|
25
25
|
constructor(t) {
|
|
26
26
|
De(this, "container");
|
|
@@ -2608,6 +2608,7 @@ const vs = be({
|
|
|
2608
2608
|
}), Wr = {
|
|
2609
2609
|
name: "MozButton",
|
|
2610
2610
|
core: vs,
|
|
2611
|
+
booleanProps: ["disabled", "loading"],
|
|
2611
2612
|
props: ["action", "text", "type", "nativeType", "width", "loading", "disabled"],
|
|
2612
2613
|
emits: ["click"],
|
|
2613
2614
|
slots: ["icon", "default"],
|
|
@@ -2640,6 +2641,7 @@ const bs = be({
|
|
|
2640
2641
|
}), Kr = {
|
|
2641
2642
|
name: "MozLabel",
|
|
2642
2643
|
core: bs,
|
|
2644
|
+
booleanProps: ["disabled", "isReadOnly", "required"],
|
|
2643
2645
|
props: ["for", "disabled", "required", "isReadOnly"],
|
|
2644
2646
|
emits: [],
|
|
2645
2647
|
slots: ["default"],
|
|
@@ -2722,6 +2724,7 @@ const ys = be({
|
|
|
2722
2724
|
}), Gr = {
|
|
2723
2725
|
name: "MozToggle",
|
|
2724
2726
|
core: ys,
|
|
2727
|
+
booleanProps: ["disabled", "modelValue", "readonly", "required", "visible"],
|
|
2725
2728
|
props: ["label", "labelPosition", "required", "readonly", "disabled", "visible"],
|
|
2726
2729
|
emits: ["change"],
|
|
2727
2730
|
models: { modelValue: { prop: "modelValue", event: "change" } },
|
|
@@ -2738,7 +2741,7 @@ function Eo(e = "") {
|
|
|
2738
2741
|
></path>
|
|
2739
2742
|
</svg>`;
|
|
2740
2743
|
}
|
|
2741
|
-
function
|
|
2744
|
+
function Po(e = "var(--moz-color-text-subtle)", t = "") {
|
|
2742
2745
|
return a`<svg class=${t} width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2743
2746
|
<path
|
|
2744
2747
|
d="M8 1.5L10.163 5.875L15 6.575L11.5 9.975L12.326 14.775L8 12.5L3.674 14.775L4.5 9.975L1 6.575L5.837 5.875L8 1.5Z"
|
|
@@ -2749,7 +2752,7 @@ function xo(e = "var(--moz-color-text-subtle)", t = "") {
|
|
|
2749
2752
|
></path>
|
|
2750
2753
|
</svg>`;
|
|
2751
2754
|
}
|
|
2752
|
-
function
|
|
2755
|
+
function xo(e = "var(--moz-color-accent)", t = "") {
|
|
2753
2756
|
return a`<svg class=${t} width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2754
2757
|
<path
|
|
2755
2758
|
d="M8 1.5L10.163 5.875L15 6.575L11.5 9.975L12.326 14.775L8 12.5L3.674 14.775L4.5 9.975L1 6.575L5.837 5.875L8 1.5Z"
|
|
@@ -2764,7 +2767,7 @@ function Po(e = "var(--moz-color-accent)", t = "") {
|
|
|
2764
2767
|
const eo = /* @__PURE__ */ new Set(["itemSource", "items", "listClass", "showFavorite", "modelValue", "class", "style"]);
|
|
2765
2768
|
function Lo(e) {
|
|
2766
2769
|
const t = e.itemSource ?? [], o = !!e.favorite, l = e.showFavorite ? e.favoriteSlot != null ? e.favoriteSlot : a`<button type="button" class="favorite-icon" @click=${e.onFavClick}>
|
|
2767
|
-
${o ?
|
|
2770
|
+
${o ? xo(void 0, "favorite-filled") : Po(void 0, "empty")}
|
|
2768
2771
|
</button>` : w;
|
|
2769
2772
|
return a`
|
|
2770
2773
|
<div
|
|
@@ -2789,7 +2792,7 @@ const $s = be({
|
|
|
2789
2792
|
setup(e) {
|
|
2790
2793
|
const t = () => e.emit("click", !!e.props.modelValue), o = (l) => {
|
|
2791
2794
|
const n = e.props, i = !!n.modelValue, h = n.showFavorite ? e.slots.has("favorite") ? e.slot("favorite") : a`<button type="button" class="favorite-icon" @click=${t}>
|
|
2792
|
-
${i ?
|
|
2795
|
+
${i ? xo(void 0, "favorite-filled") : Po(void 0, "empty")}
|
|
2793
2796
|
</button>` : w, c = () => a`<li role="presentation" aria-hidden="true" class="moz-bread-crumb-separator">
|
|
2794
2797
|
${e.slots.has("separator") ? e.slot("separator") : Eo("separator")}
|
|
2795
2798
|
</li>`;
|
|
@@ -2835,6 +2838,7 @@ const $s = be({
|
|
|
2835
2838
|
}), Yr = {
|
|
2836
2839
|
name: "MozBreadCrumb",
|
|
2837
2840
|
core: $s,
|
|
2841
|
+
booleanProps: ["modelValue", "showFavorite"],
|
|
2838
2842
|
props: ["itemSource", "items", "listClass", "showFavorite"],
|
|
2839
2843
|
emits: ["click"],
|
|
2840
2844
|
models: { modelValue: { prop: "modelValue", event: "update:modelValue" } },
|
|
@@ -2855,7 +2859,7 @@ const $s = be({
|
|
|
2855
2859
|
resultEmptyContent: "Check the search conditions and try again.",
|
|
2856
2860
|
searchEmptyHeader: "No search results",
|
|
2857
2861
|
searchEmptyContent: "Please check the filter value and try again."
|
|
2858
|
-
}, zo = new URL("data:image/svg+xml,%3csvg%20width='180'%20height='180'%20viewBox='0%200%20180%20180'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='90'%20cy='90'%20r='90'%20fill='%23F6F8FA'/%3e%3crect%20x='106.5'%20y='49.5'%20width='51'%20height='28'%20rx='7.5'%20fill='%23F6F8FA'%20stroke='%238B919C'/%3e%3cellipse%20cx='90'%20cy='136'%20rx='37'%20ry='2'%20fill='%23C2CBD3'/%3e%3cpath%20d='M34.5%2066C34.5%2061.8579%2037.8579%2058.5%2042%2058.5H143C147.142%2058.5%20150.5%2061.8579%20150.5%2066V115C150.5%20119.694%20146.694%20123.5%20142%20123.5H42C37.8579%20123.5%2034.5%20120.142%2034.5%20116V66Z'%20fill='white'%20stroke='%238B919C'/%3e%3cg%20filter='url(%23filter0_d_2328_1616)'%3e%3crect%20x='32'%20y='56'%20width='116'%20height='65'%20rx='8'%20fill='white'/%3e%3crect%20x='32.5'%20y='56.5'%20width='115'%20height='64'%20rx='7.5'%20stroke='%238B919C'/%3e%3c/g%3e%3ccircle%20cx='126'%20cy='63'%20r='2'%20fill='%23E2E4E9'/%3e%3ccircle%20cx='132'%20cy='63'%20r='2'%20fill='%23E2E4E9'/%3e%3ccircle%20cx='138'%20cy='63'%20r='2'%20fill='%23E2E4E9'/%3e%3crect%20x='40'%20y='74'%20width='100'%20height='26'%20rx='2'%20fill='%23E4E6EB'/%3e%3crect%20x='44'%20y='80'%20width='27'%20height='4'%20fill='%23CBCFD7'/%3e%3crect%20x='92'%20y='80'%20width='27'%20height='4'%20fill='%23CBCFD7'/%3e%3crect%20x='44'%20y='86'%20width='44'%20height='8'%20fill='%23CBCFD7'/%3e%3crect%20x='92'%20y='86'%20width='44'%20height='8'%20fill='%23CBCFD7'/%3e%3crect%20x='116'%20y='104'%20width='24'%20height='9'%20rx='2'%20fill='%23868C98'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M147%2070H33V69H147V70Z'%20fill='%23D6DAE2'/%3e%3cdefs%3e%3cfilter%20id='filter0_d_2328_1616'%20x='32'%20y='56'%20width='118'%20height='67'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dx='2'%20dy='2'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200.886275%200%200%200%200%200.894118%200%200%200%200%200.913725%200%200%200%201%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_2328_1616'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_2328_1616'%20result='shape'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e", import.meta.url).href, ks = new URL("data:image/svg+xml,%3csvg%20width='180'%20height='180'%20viewBox='0%200%20180%20180'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='90'%20cy='90'%20r='90'%20fill='%23F6F8FA'/%3e%3cellipse%20cx='88'%20cy='141'%20rx='37'%20ry='2'%20fill='%23C2CBD3'/%3e%3cpath%20d='M32.5%2059C32.5%2054.8579%2035.8579%2051.5%2040%2051.5H141C145.142%2051.5%20148.5%2054.8579%20148.5%2059V120C148.5%20124.694%20144.694%20128.5%20140%20128.5H40C35.8579%20128.5%2032.5%20125.142%2032.5%20121V59Z'%20fill='white'%20stroke='%238B919C'/%3e%3cg%20filter='url(%23filter0_d_2357_2211)'%3e%3crect%20x='30'%20y='49'%20width='116'%20height='77'%20rx='8'%20fill='white'/%3e%3crect%20x='30.5'%20y='49.5'%20width='115'%20height='76'%20rx='7.5'%20stroke='%238B919C'/%3e%3c/g%3e%3ccircle%20cx='124'%20cy='56'%20r='2'%20fill='%23E2E4E9'/%3e%3ccircle%20cx='130'%20cy='56'%20r='2'%20fill='%23E2E4E9'/%3e%3ccircle%20cx='136'%20cy='56'%20r='2'%20fill='%23E2E4E9'/%3e%3crect%20x='38.5'%20y='90.5'%20width='99'%20height='27'%20rx='1.5'%20stroke='%238B919C'%20stroke-dasharray='2%202'/%3e%3crect%20x='59'%20y='71'%20width='49'%20height='4'%20fill='%23CBCFD7'/%3e%3crect%20x='59'%20y='77'%20width='79'%20height='6'%20fill='%23CBCFD7'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M145%2063H31V62H145V63Z'%20fill='%23D6DAE2'/%3e%3cg%20clip-path='url(%23clip0_2357_2211)'%3e%3cg%20clip-path='url(%23clip1_2357_2211)'%3e%3cpath%20d='M88%2098.2857V109.714'%20stroke='%238B919C'%20stroke-width='1.8'%20stroke-linecap='round'/%3e%3cpath%20d='M82.2856%20104H93.7142'%20stroke='%238B919C'%20stroke-width='1.8'%20stroke-linecap='round'/%3e%3c/g%3e%3c/g%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M46%2084C49.866%2084%2053%2080.866%2053%2077C53%2073.134%2049.866%2070%2046%2070C42.134%2070%2039%2073.134%2039%2077C39%2080.866%2042.134%2084%2046%2084ZM45.5333%2073.8667C45.5333%2073.5353%2045.802%2073.2667%2046.1333%2073.2667H46.3333C46.6647%2073.2667%2046.9333%2073.5353%2046.9333%2073.8667V77.8C46.9333%2078.1314%2046.6647%2078.4%2046.3333%2078.4H46.1333C45.802%2078.4%2045.5333%2078.1314%2045.5333%2077.8V73.8667ZM45.5333%2079.9333C45.5333%2079.602%2045.802%2079.3333%2046.1333%2079.3333H46.3333C46.6647%2079.3333%2046.9333%2079.602%2046.9333%2079.9333V80.1333C46.9333%2080.4647%2046.6647%2080.7333%2046.3333%2080.7333H46.1333C45.802%2080.7333%2045.5333%2080.4647%2045.5333%2080.1333V79.9333Z'%20fill='%23868C98'/%3e%3cdefs%3e%3cfilter%20id='filter0_d_2357_2211'%20x='30'%20y='49'%20width='118'%20height='79'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dx='2'%20dy='2'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200.886275%200%200%200%200%200.894118%200%200%200%200%200.913725%200%200%200%201%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_2357_2211'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_2357_2211'%20result='shape'/%3e%3c/filter%3e%3cclipPath%20id='clip0_2357_2211'%3e%3crect%20width='16'%20height='16'%20fill='white'%20transform='translate(80%2096)'/%3e%3c/clipPath%3e%3cclipPath%20id='clip1_2357_2211'%3e%3crect%20width='16'%20height='16'%20fill='white'%20transform='translate(80%2096)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", import.meta.url).href, Es = new URL("data:image/svg+xml,%3csvg%20width='180'%20height='180'%20viewBox='0%200%20180%20180'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='90'%20cy='90'%20r='90'%20fill='%23F6F8FA'/%3e%3crect%20x='106.5'%20y='49.5'%20width='51'%20height='28'%20rx='7.5'%20fill='%23F6F8FA'%20stroke='%238B919C'/%3e%3cellipse%20cx='90'%20cy='136'%20rx='37'%20ry='2'%20fill='%23C2CBD3'/%3e%3cpath%20d='M34.5%2066C34.5%2061.8579%2037.8579%2058.5%2042%2058.5H143C147.142%2058.5%20150.5%2061.8579%20150.5%2066V115C150.5%20119.694%20146.694%20123.5%20142%20123.5H42C37.8579%20123.5%2034.5%20120.142%2034.5%20116V66Z'%20fill='white'%20stroke='%238B919C'/%3e%3cg%20filter='url(%23filter0_d_2328_1616)'%3e%3crect%20x='32'%20y='56'%20width='116'%20height='65'%20rx='8'%20fill='white'/%3e%3crect%20x='32.5'%20y='56.5'%20width='115'%20height='64'%20rx='7.5'%20stroke='%238B919C'/%3e%3c/g%3e%3ccircle%20cx='126'%20cy='63'%20r='2'%20fill='%23E2E4E9'/%3e%3ccircle%20cx='132'%20cy='63'%20r='2'%20fill='%23E2E4E9'/%3e%3ccircle%20cx='138'%20cy='63'%20r='2'%20fill='%23E2E4E9'/%3e%3crect%20x='40'%20y='74'%20width='100'%20height='26'%20rx='2'%20fill='%23E4E6EB'/%3e%3crect%20x='44'%20y='80'%20width='27'%20height='4'%20fill='%23CBCFD7'/%3e%3crect%20x='92'%20y='80'%20width='27'%20height='4'%20fill='%23CBCFD7'/%3e%3crect%20x='44'%20y='86'%20width='44'%20height='8'%20fill='%23CBCFD7'/%3e%3crect%20x='92'%20y='86'%20width='44'%20height='8'%20fill='%23CBCFD7'/%3e%3crect%20x='116'%20y='104'%20width='24'%20height='9'%20rx='2'%20fill='%23868C98'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M147%2070H33V69H147V70Z'%20fill='%23D6DAE2'/%3e%3cdefs%3e%3cfilter%20id='filter0_d_2328_1616'%20x='32'%20y='56'%20width='118'%20height='67'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dx='2'%20dy='2'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200.886275%200%200%200%200%200.894118%200%200%200%200%200.913725%200%200%200%201%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_2328_1616'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_2328_1616'%20result='shape'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e", import.meta.url).href, xs = new URL("data:image/svg+xml,%3csvg%20width='180'%20height='180'%20viewBox='0%200%20180%20180'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='90'%20cy='90'%20r='90'%20fill='%23F6F8FA'/%3e%3cellipse%20cx='88'%20cy='141'%20rx='37'%20ry='2'%20fill='%23C2CBD3'/%3e%3cpath%20d='M32.5%2059C32.5%2054.8579%2035.8579%2051.5%2040%2051.5H141C145.142%2051.5%20148.5%2054.8579%20148.5%2059V120C148.5%20124.694%20144.694%20128.5%20140%20128.5H40C35.8579%20128.5%2032.5%20125.142%2032.5%20121V59Z'%20fill='white'%20stroke='%238B919C'/%3e%3cg%20filter='url(%23filter0_d_2357_2190)'%3e%3crect%20x='30'%20y='49'%20width='116'%20height='77'%20rx='8'%20fill='white'/%3e%3crect%20x='30.5'%20y='49.5'%20width='115'%20height='76'%20rx='7.5'%20stroke='%238B919C'/%3e%3c/g%3e%3ccircle%20cx='124'%20cy='56'%20r='2'%20fill='%23E2E4E9'/%3e%3ccircle%20cx='130'%20cy='56'%20r='2'%20fill='%23E2E4E9'/%3e%3ccircle%20cx='136'%20cy='56'%20r='2'%20fill='%23E2E4E9'/%3e%3crect%20x='38.5'%20y='70.5'%20width='99'%20height='47'%20rx='1.5'%20stroke='%238B919C'%20stroke-dasharray='2%202'/%3e%3crect%20x='50'%20y='81'%20width='27.54'%20height='4'%20rx='2'%20fill='%23A6ABB3'/%3e%3crect%20x='50'%20y='97'%20width='27.54'%20height='4'%20rx='2'%20fill='%23A6ABB3'/%3e%3crect%20x='50'%20y='87'%20width='51'%20height='4'%20rx='2'%20fill='%23CBCFD7'/%3e%3crect%20x='50'%20y='103'%20width='51'%20height='4'%20rx='2'%20fill='%23CBCFD7'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M145%2063H31V62H145V63Z'%20fill='%23D6DAE2'/%3e%3cpath%20d='M123.553%20101.582L119.095%2097.1196C117.866%2097.9205%20116.394%2098.3781%20114.808%2098.2923C111.421%2098.135%20108.521%2095.4892%20108.064%2092.1283C107.435%2087.3372%20111.564%2083.2899%20116.394%2084.1051C119.18%2084.577%20121.495%2086.7509%20122.11%2089.5111C122.581%2091.5991%20122.124%2093.5441%20121.11%2095.0887L125.582%2099.5651C126.139%20100.123%20126.139%20101.024%20125.582%20101.582C125.025%20102.139%20124.11%20102.139%20123.553%20101.582ZM119.438%2091.1558C119.438%2088.796%20117.509%2086.8653%20115.151%2086.8653C112.793%2086.8653%20110.864%2088.796%20110.864%2091.1558C110.864%2093.5155%20112.793%2095.4463%20115.151%2095.4463C117.509%2095.4463%20119.438%2093.5155%20119.438%2091.1558Z'%20fill='%23868C98'/%3e%3cdefs%3e%3cfilter%20id='filter0_d_2357_2190'%20x='30'%20y='49'%20width='118'%20height='79'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dx='2'%20dy='2'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200.886275%200%200%200%200%200.894118%200%200%200%200%200.913725%200%200%200%201%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_2357_2190'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_2357_2190'%20result='shape'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e", import.meta.url).href, Ps = /* @__PURE__ */ new Set([
|
|
2862
|
+
}, zo = new URL("data:image/svg+xml,%3csvg%20width='180'%20height='180'%20viewBox='0%200%20180%20180'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='90'%20cy='90'%20r='90'%20fill='%23F6F8FA'/%3e%3crect%20x='106.5'%20y='49.5'%20width='51'%20height='28'%20rx='7.5'%20fill='%23F6F8FA'%20stroke='%238B919C'/%3e%3cellipse%20cx='90'%20cy='136'%20rx='37'%20ry='2'%20fill='%23C2CBD3'/%3e%3cpath%20d='M34.5%2066C34.5%2061.8579%2037.8579%2058.5%2042%2058.5H143C147.142%2058.5%20150.5%2061.8579%20150.5%2066V115C150.5%20119.694%20146.694%20123.5%20142%20123.5H42C37.8579%20123.5%2034.5%20120.142%2034.5%20116V66Z'%20fill='white'%20stroke='%238B919C'/%3e%3cg%20filter='url(%23filter0_d_2328_1616)'%3e%3crect%20x='32'%20y='56'%20width='116'%20height='65'%20rx='8'%20fill='white'/%3e%3crect%20x='32.5'%20y='56.5'%20width='115'%20height='64'%20rx='7.5'%20stroke='%238B919C'/%3e%3c/g%3e%3ccircle%20cx='126'%20cy='63'%20r='2'%20fill='%23E2E4E9'/%3e%3ccircle%20cx='132'%20cy='63'%20r='2'%20fill='%23E2E4E9'/%3e%3ccircle%20cx='138'%20cy='63'%20r='2'%20fill='%23E2E4E9'/%3e%3crect%20x='40'%20y='74'%20width='100'%20height='26'%20rx='2'%20fill='%23E4E6EB'/%3e%3crect%20x='44'%20y='80'%20width='27'%20height='4'%20fill='%23CBCFD7'/%3e%3crect%20x='92'%20y='80'%20width='27'%20height='4'%20fill='%23CBCFD7'/%3e%3crect%20x='44'%20y='86'%20width='44'%20height='8'%20fill='%23CBCFD7'/%3e%3crect%20x='92'%20y='86'%20width='44'%20height='8'%20fill='%23CBCFD7'/%3e%3crect%20x='116'%20y='104'%20width='24'%20height='9'%20rx='2'%20fill='%23868C98'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M147%2070H33V69H147V70Z'%20fill='%23D6DAE2'/%3e%3cdefs%3e%3cfilter%20id='filter0_d_2328_1616'%20x='32'%20y='56'%20width='118'%20height='67'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dx='2'%20dy='2'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200.886275%200%200%200%200%200.894118%200%200%200%200%200.913725%200%200%200%201%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_2328_1616'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_2328_1616'%20result='shape'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e", import.meta.url).href, ks = new URL("data:image/svg+xml,%3csvg%20width='180'%20height='180'%20viewBox='0%200%20180%20180'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='90'%20cy='90'%20r='90'%20fill='%23F6F8FA'/%3e%3cellipse%20cx='88'%20cy='141'%20rx='37'%20ry='2'%20fill='%23C2CBD3'/%3e%3cpath%20d='M32.5%2059C32.5%2054.8579%2035.8579%2051.5%2040%2051.5H141C145.142%2051.5%20148.5%2054.8579%20148.5%2059V120C148.5%20124.694%20144.694%20128.5%20140%20128.5H40C35.8579%20128.5%2032.5%20125.142%2032.5%20121V59Z'%20fill='white'%20stroke='%238B919C'/%3e%3cg%20filter='url(%23filter0_d_2357_2211)'%3e%3crect%20x='30'%20y='49'%20width='116'%20height='77'%20rx='8'%20fill='white'/%3e%3crect%20x='30.5'%20y='49.5'%20width='115'%20height='76'%20rx='7.5'%20stroke='%238B919C'/%3e%3c/g%3e%3ccircle%20cx='124'%20cy='56'%20r='2'%20fill='%23E2E4E9'/%3e%3ccircle%20cx='130'%20cy='56'%20r='2'%20fill='%23E2E4E9'/%3e%3ccircle%20cx='136'%20cy='56'%20r='2'%20fill='%23E2E4E9'/%3e%3crect%20x='38.5'%20y='90.5'%20width='99'%20height='27'%20rx='1.5'%20stroke='%238B919C'%20stroke-dasharray='2%202'/%3e%3crect%20x='59'%20y='71'%20width='49'%20height='4'%20fill='%23CBCFD7'/%3e%3crect%20x='59'%20y='77'%20width='79'%20height='6'%20fill='%23CBCFD7'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M145%2063H31V62H145V63Z'%20fill='%23D6DAE2'/%3e%3cg%20clip-path='url(%23clip0_2357_2211)'%3e%3cg%20clip-path='url(%23clip1_2357_2211)'%3e%3cpath%20d='M88%2098.2857V109.714'%20stroke='%238B919C'%20stroke-width='1.8'%20stroke-linecap='round'/%3e%3cpath%20d='M82.2856%20104H93.7142'%20stroke='%238B919C'%20stroke-width='1.8'%20stroke-linecap='round'/%3e%3c/g%3e%3c/g%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M46%2084C49.866%2084%2053%2080.866%2053%2077C53%2073.134%2049.866%2070%2046%2070C42.134%2070%2039%2073.134%2039%2077C39%2080.866%2042.134%2084%2046%2084ZM45.5333%2073.8667C45.5333%2073.5353%2045.802%2073.2667%2046.1333%2073.2667H46.3333C46.6647%2073.2667%2046.9333%2073.5353%2046.9333%2073.8667V77.8C46.9333%2078.1314%2046.6647%2078.4%2046.3333%2078.4H46.1333C45.802%2078.4%2045.5333%2078.1314%2045.5333%2077.8V73.8667ZM45.5333%2079.9333C45.5333%2079.602%2045.802%2079.3333%2046.1333%2079.3333H46.3333C46.6647%2079.3333%2046.9333%2079.602%2046.9333%2079.9333V80.1333C46.9333%2080.4647%2046.6647%2080.7333%2046.3333%2080.7333H46.1333C45.802%2080.7333%2045.5333%2080.4647%2045.5333%2080.1333V79.9333Z'%20fill='%23868C98'/%3e%3cdefs%3e%3cfilter%20id='filter0_d_2357_2211'%20x='30'%20y='49'%20width='118'%20height='79'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dx='2'%20dy='2'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200.886275%200%200%200%200%200.894118%200%200%200%200%200.913725%200%200%200%201%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_2357_2211'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_2357_2211'%20result='shape'/%3e%3c/filter%3e%3cclipPath%20id='clip0_2357_2211'%3e%3crect%20width='16'%20height='16'%20fill='white'%20transform='translate(80%2096)'/%3e%3c/clipPath%3e%3cclipPath%20id='clip1_2357_2211'%3e%3crect%20width='16'%20height='16'%20fill='white'%20transform='translate(80%2096)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", import.meta.url).href, Es = new URL("data:image/svg+xml,%3csvg%20width='180'%20height='180'%20viewBox='0%200%20180%20180'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='90'%20cy='90'%20r='90'%20fill='%23F6F8FA'/%3e%3crect%20x='106.5'%20y='49.5'%20width='51'%20height='28'%20rx='7.5'%20fill='%23F6F8FA'%20stroke='%238B919C'/%3e%3cellipse%20cx='90'%20cy='136'%20rx='37'%20ry='2'%20fill='%23C2CBD3'/%3e%3cpath%20d='M34.5%2066C34.5%2061.8579%2037.8579%2058.5%2042%2058.5H143C147.142%2058.5%20150.5%2061.8579%20150.5%2066V115C150.5%20119.694%20146.694%20123.5%20142%20123.5H42C37.8579%20123.5%2034.5%20120.142%2034.5%20116V66Z'%20fill='white'%20stroke='%238B919C'/%3e%3cg%20filter='url(%23filter0_d_2328_1616)'%3e%3crect%20x='32'%20y='56'%20width='116'%20height='65'%20rx='8'%20fill='white'/%3e%3crect%20x='32.5'%20y='56.5'%20width='115'%20height='64'%20rx='7.5'%20stroke='%238B919C'/%3e%3c/g%3e%3ccircle%20cx='126'%20cy='63'%20r='2'%20fill='%23E2E4E9'/%3e%3ccircle%20cx='132'%20cy='63'%20r='2'%20fill='%23E2E4E9'/%3e%3ccircle%20cx='138'%20cy='63'%20r='2'%20fill='%23E2E4E9'/%3e%3crect%20x='40'%20y='74'%20width='100'%20height='26'%20rx='2'%20fill='%23E4E6EB'/%3e%3crect%20x='44'%20y='80'%20width='27'%20height='4'%20fill='%23CBCFD7'/%3e%3crect%20x='92'%20y='80'%20width='27'%20height='4'%20fill='%23CBCFD7'/%3e%3crect%20x='44'%20y='86'%20width='44'%20height='8'%20fill='%23CBCFD7'/%3e%3crect%20x='92'%20y='86'%20width='44'%20height='8'%20fill='%23CBCFD7'/%3e%3crect%20x='116'%20y='104'%20width='24'%20height='9'%20rx='2'%20fill='%23868C98'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M147%2070H33V69H147V70Z'%20fill='%23D6DAE2'/%3e%3cdefs%3e%3cfilter%20id='filter0_d_2328_1616'%20x='32'%20y='56'%20width='118'%20height='67'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dx='2'%20dy='2'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200.886275%200%200%200%200%200.894118%200%200%200%200%200.913725%200%200%200%201%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_2328_1616'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_2328_1616'%20result='shape'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e", import.meta.url).href, Ps = new URL("data:image/svg+xml,%3csvg%20width='180'%20height='180'%20viewBox='0%200%20180%20180'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='90'%20cy='90'%20r='90'%20fill='%23F6F8FA'/%3e%3cellipse%20cx='88'%20cy='141'%20rx='37'%20ry='2'%20fill='%23C2CBD3'/%3e%3cpath%20d='M32.5%2059C32.5%2054.8579%2035.8579%2051.5%2040%2051.5H141C145.142%2051.5%20148.5%2054.8579%20148.5%2059V120C148.5%20124.694%20144.694%20128.5%20140%20128.5H40C35.8579%20128.5%2032.5%20125.142%2032.5%20121V59Z'%20fill='white'%20stroke='%238B919C'/%3e%3cg%20filter='url(%23filter0_d_2357_2190)'%3e%3crect%20x='30'%20y='49'%20width='116'%20height='77'%20rx='8'%20fill='white'/%3e%3crect%20x='30.5'%20y='49.5'%20width='115'%20height='76'%20rx='7.5'%20stroke='%238B919C'/%3e%3c/g%3e%3ccircle%20cx='124'%20cy='56'%20r='2'%20fill='%23E2E4E9'/%3e%3ccircle%20cx='130'%20cy='56'%20r='2'%20fill='%23E2E4E9'/%3e%3ccircle%20cx='136'%20cy='56'%20r='2'%20fill='%23E2E4E9'/%3e%3crect%20x='38.5'%20y='70.5'%20width='99'%20height='47'%20rx='1.5'%20stroke='%238B919C'%20stroke-dasharray='2%202'/%3e%3crect%20x='50'%20y='81'%20width='27.54'%20height='4'%20rx='2'%20fill='%23A6ABB3'/%3e%3crect%20x='50'%20y='97'%20width='27.54'%20height='4'%20rx='2'%20fill='%23A6ABB3'/%3e%3crect%20x='50'%20y='87'%20width='51'%20height='4'%20rx='2'%20fill='%23CBCFD7'/%3e%3crect%20x='50'%20y='103'%20width='51'%20height='4'%20rx='2'%20fill='%23CBCFD7'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M145%2063H31V62H145V63Z'%20fill='%23D6DAE2'/%3e%3cpath%20d='M123.553%20101.582L119.095%2097.1196C117.866%2097.9205%20116.394%2098.3781%20114.808%2098.2923C111.421%2098.135%20108.521%2095.4892%20108.064%2092.1283C107.435%2087.3372%20111.564%2083.2899%20116.394%2084.1051C119.18%2084.577%20121.495%2086.7509%20122.11%2089.5111C122.581%2091.5991%20122.124%2093.5441%20121.11%2095.0887L125.582%2099.5651C126.139%20100.123%20126.139%20101.024%20125.582%20101.582C125.025%20102.139%20124.11%20102.139%20123.553%20101.582ZM119.438%2091.1558C119.438%2088.796%20117.509%2086.8653%20115.151%2086.8653C112.793%2086.8653%20110.864%2088.796%20110.864%2091.1558C110.864%2093.5155%20112.793%2095.4463%20115.151%2095.4463C117.509%2095.4463%20119.438%2093.5155%20119.438%2091.1558Z'%20fill='%23868C98'/%3e%3cdefs%3e%3cfilter%20id='filter0_d_2357_2190'%20x='30'%20y='49'%20width='118'%20height='79'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dx='2'%20dy='2'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200.886275%200%200%200%200%200.894118%200%200%200%200%200.913725%200%200%200%201%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_2357_2190'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_2357_2190'%20result='shape'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e", import.meta.url).href, xs = /* @__PURE__ */ new Set([
|
|
2859
2863
|
"isReadOnly",
|
|
2860
2864
|
"isCustomState",
|
|
2861
2865
|
"headerMsg",
|
|
@@ -2872,7 +2876,7 @@ const $s = be({
|
|
|
2872
2876
|
custom_empty: zo,
|
|
2873
2877
|
data_empty: ks,
|
|
2874
2878
|
result_empty: Es,
|
|
2875
|
-
search_empty:
|
|
2879
|
+
search_empty: Ps
|
|
2876
2880
|
}, zs = {
|
|
2877
2881
|
custom_empty: "customEmptyHeader",
|
|
2878
2882
|
data_empty: "dataEmptyHeader",
|
|
@@ -2914,7 +2918,7 @@ const $s = be({
|
|
|
2914
2918
|
};
|
|
2915
2919
|
return {
|
|
2916
2920
|
render() {
|
|
2917
|
-
const l = e.props, n = we(l,
|
|
2921
|
+
const l = e.props, n = we(l, xs);
|
|
2918
2922
|
if (l.composed)
|
|
2919
2923
|
return a`
|
|
2920
2924
|
<div
|
|
@@ -2947,6 +2951,7 @@ const $s = be({
|
|
|
2947
2951
|
}), Zr = {
|
|
2948
2952
|
name: "MozEmptyState",
|
|
2949
2953
|
core: Ms,
|
|
2954
|
+
booleanProps: ["composed", "isCustomState", "isReadOnly", "useImg"],
|
|
2950
2955
|
props: [
|
|
2951
2956
|
"isReadOnly",
|
|
2952
2957
|
"isCustomState",
|
|
@@ -3115,6 +3120,7 @@ const As = be({
|
|
|
3115
3120
|
}), jr = {
|
|
3116
3121
|
name: "MozCheckBox",
|
|
3117
3122
|
core: As,
|
|
3123
|
+
booleanProps: ["checked", "disabled", "indeterminate", "modelValue", "readonly"],
|
|
3118
3124
|
props: ["label", "fieldId", "disabled", "readonly", "checked", "indeterminate", "modelValue"],
|
|
3119
3125
|
emits: ["change", "update:modelValue"],
|
|
3120
3126
|
slots: [],
|
|
@@ -3261,7 +3267,7 @@ const As = be({
|
|
|
3261
3267
|
ee(T, W(-1));
|
|
3262
3268
|
break;
|
|
3263
3269
|
}
|
|
3264
|
-
}, Q = !!s.iconOnly, O = e.slots.has("item-icon"),
|
|
3270
|
+
}, Q = !!s.iconOnly, O = e.slots.has("item-icon"), P = !Q && e.slots.has("item-badge");
|
|
3265
3271
|
return a`
|
|
3266
3272
|
<div
|
|
3267
3273
|
class=${V("radio-container", {
|
|
@@ -3293,7 +3299,7 @@ const As = be({
|
|
|
3293
3299
|
>
|
|
3294
3300
|
${O ? a`<span class="segment-icon">${e.slot("item-icon", f)}</span>` : w}
|
|
3295
3301
|
${Q ? w : A}
|
|
3296
|
-
${
|
|
3302
|
+
${P ? a`<span class="segment-badge">${e.slot("item-badge", f)}</span>` : w}
|
|
3297
3303
|
</button>
|
|
3298
3304
|
`;
|
|
3299
3305
|
})}
|
|
@@ -3362,6 +3368,7 @@ const As = be({
|
|
|
3362
3368
|
}), Xr = {
|
|
3363
3369
|
name: "MozRadio",
|
|
3364
3370
|
core: Is,
|
|
3371
|
+
booleanProps: ["disabled", "iconOnly", "required"],
|
|
3365
3372
|
props: [
|
|
3366
3373
|
"label",
|
|
3367
3374
|
"text",
|
|
@@ -3510,6 +3517,7 @@ const Fs = /* @__PURE__ */ new Set([
|
|
|
3510
3517
|
}), Qr = {
|
|
3511
3518
|
name: "MozInput",
|
|
3512
3519
|
core: Rs,
|
|
3520
|
+
booleanProps: ["required", "disabled", "isReadOnly", "useInvalidV2"],
|
|
3513
3521
|
props: [
|
|
3514
3522
|
"label",
|
|
3515
3523
|
"value",
|
|
@@ -3680,6 +3688,7 @@ const Hs = /* @__PURE__ */ new Set([
|
|
|
3680
3688
|
}), Jr = {
|
|
3681
3689
|
name: "MozPasswordInput",
|
|
3682
3690
|
core: Us,
|
|
3691
|
+
booleanProps: ["disabled", "required", "useInvalidV2"],
|
|
3683
3692
|
props: [
|
|
3684
3693
|
"label",
|
|
3685
3694
|
"value",
|
|
@@ -3806,6 +3815,7 @@ const Hs = /* @__PURE__ */ new Set([
|
|
|
3806
3815
|
}), ei = {
|
|
3807
3816
|
name: "MozTextArea",
|
|
3808
3817
|
core: Ws,
|
|
3818
|
+
booleanProps: ["disabled", "immediatelyFocus", "required"],
|
|
3809
3819
|
props: [
|
|
3810
3820
|
"id",
|
|
3811
3821
|
"label",
|
|
@@ -3972,6 +3982,7 @@ const js = /* @__PURE__ */ new Set([
|
|
|
3972
3982
|
}), ti = {
|
|
3973
3983
|
name: "MozNumberInput",
|
|
3974
3984
|
core: Xs,
|
|
3985
|
+
booleanProps: ["disabled", "nullable", "required", "shortMode"],
|
|
3975
3986
|
props: ["label", "name", "width", "required", "step", "min", "max", "disabled", "shortMode", "nullable", "modelValue"],
|
|
3976
3987
|
emits: ["change", "mounted", "enter", "update:modelValue"],
|
|
3977
3988
|
slots: [],
|
|
@@ -4095,6 +4106,7 @@ const Js = /* @__PURE__ */ new Set(["itemSource", "vertical", "tabWidth", "maxTa
|
|
|
4095
4106
|
}), oi = {
|
|
4096
4107
|
name: "MozTab",
|
|
4097
4108
|
core: el,
|
|
4109
|
+
booleanProps: ["closeAble", "vertical"],
|
|
4098
4110
|
props: ["itemSource", "vertical", "tabWidth", "maxTabWidth", "closeAble", "modelValue"],
|
|
4099
4111
|
emits: ["change", "close", "update:modelValue"],
|
|
4100
4112
|
slots: [],
|
|
@@ -4166,6 +4178,7 @@ const Js = /* @__PURE__ */ new Set(["itemSource", "vertical", "tabWidth", "maxTa
|
|
|
4166
4178
|
}), si = {
|
|
4167
4179
|
name: "MozSlider",
|
|
4168
4180
|
core: ol,
|
|
4181
|
+
booleanProps: ["disabled"],
|
|
4169
4182
|
props: ["id", "width", "label", "min", "max", "step", "disabled", "modelValue"],
|
|
4170
4183
|
emits: ["change", "update:modelValue"],
|
|
4171
4184
|
slots: [],
|
|
@@ -4291,7 +4304,7 @@ const il = /* @__PURE__ */ new Set(["rowHeight", "exceptWeeks", "min", "max", "m
|
|
|
4291
4304
|
)}${Q(nl(), p, "다음 달")}
|
|
4292
4305
|
</div>
|
|
4293
4306
|
</div>
|
|
4294
|
-
`,
|
|
4307
|
+
`, P = a`
|
|
4295
4308
|
<div class="moz-calendar-row">
|
|
4296
4309
|
${W.map(
|
|
4297
4310
|
(z) => a`<div
|
|
@@ -4374,7 +4387,7 @@ const il = /* @__PURE__ */ new Set(["rowHeight", "exceptWeeks", "min", "max", "m
|
|
|
4374
4387
|
const E = we(k, il);
|
|
4375
4388
|
return a`
|
|
4376
4389
|
<div class=${V("moz-calendar-container", k.class)} ${ue(E)}>
|
|
4377
|
-
${O}${l ?
|
|
4390
|
+
${O}${l ? P : w}${T}${_}
|
|
4378
4391
|
</div>
|
|
4379
4392
|
`;
|
|
4380
4393
|
}
|
|
@@ -4553,6 +4566,7 @@ const pl = "YYYY-MM-DD", ml = /* @__PURE__ */ new Set([
|
|
|
4553
4566
|
}), ni = {
|
|
4554
4567
|
name: "MozDateInput",
|
|
4555
4568
|
core: hl,
|
|
4569
|
+
booleanProps: ["disabled", "readonly", "required", "showSpin"],
|
|
4556
4570
|
props: ["label", "name", "width", "required", "disabled", "readonly", "format", "showSpin", "min", "max", "modelValue"],
|
|
4557
4571
|
emits: ["change", "focus", "focusOut", "close", "update:modelValue"],
|
|
4558
4572
|
slots: [],
|
|
@@ -4780,7 +4794,7 @@ const yl = () => {
|
|
|
4780
4794
|
})), e.props.hideOthers && queueMicrotask(() => {
|
|
4781
4795
|
m() && W();
|
|
4782
4796
|
}));
|
|
4783
|
-
},
|
|
4797
|
+
}, P = () => {
|
|
4784
4798
|
if (Q(), !Z) return;
|
|
4785
4799
|
Z = !1, J && ($l(), J = !1), M();
|
|
4786
4800
|
const C = ne;
|
|
@@ -4811,7 +4825,7 @@ const yl = () => {
|
|
|
4811
4825
|
}, Y = () => {
|
|
4812
4826
|
e.props.closeOnOutsideClick && A();
|
|
4813
4827
|
}, X = (C) => {
|
|
4814
|
-
C ? E() : (
|
|
4828
|
+
C ? E() : (P(), H(), A());
|
|
4815
4829
|
}, Ce = (C, F) => {
|
|
4816
4830
|
document.addEventListener("mouseup", C), document.addEventListener("mousemove", F);
|
|
4817
4831
|
}, qe = (C, F) => {
|
|
@@ -4833,16 +4847,16 @@ const yl = () => {
|
|
|
4833
4847
|
C.preventDefault();
|
|
4834
4848
|
const F = t.value;
|
|
4835
4849
|
if (!F) return;
|
|
4836
|
-
const ye = F.getBoundingClientRect(),
|
|
4837
|
-
if (!
|
|
4838
|
-
const Me =
|
|
4850
|
+
const ye = F.getBoundingClientRect(), Pe = p() ?? ye.width, xe = v() ?? ye.height;
|
|
4851
|
+
if (!Pe || !xe) return;
|
|
4852
|
+
const Me = Pe / xe, Ie = { x: C.clientX, y: C.clientY }, We = e.props, Xe = (Qe) => {
|
|
4839
4853
|
let Ze = Qe.clientX - Ie.x, g = Qe.clientY - Ie.y;
|
|
4840
4854
|
if (We.keepAspectRatio) {
|
|
4841
4855
|
const te = Ze / Me;
|
|
4842
4856
|
Math.abs(g) > Math.abs(te) ? g = te : Ze = g * Me;
|
|
4843
4857
|
}
|
|
4844
|
-
const N = Math.max(We.minWidth, Math.min(
|
|
4845
|
-
let R = Math.max(We.minHeight, Math.min(
|
|
4858
|
+
const N = Math.max(We.minWidth, Math.min(Pe + Ze, We.maxWidth));
|
|
4859
|
+
let R = Math.max(We.minHeight, Math.min(xe + g, We.maxHeight));
|
|
4846
4860
|
We.keepAspectRatio && N / R !== Me && (R = N / Me), u(N), S(R);
|
|
4847
4861
|
}, ot = () => {
|
|
4848
4862
|
document.removeEventListener("mousemove", Xe), document.removeEventListener("mouseup", ot);
|
|
@@ -4858,13 +4872,13 @@ const yl = () => {
|
|
|
4858
4872
|
C.preventDefault(), F.focus();
|
|
4859
4873
|
return;
|
|
4860
4874
|
}
|
|
4861
|
-
const
|
|
4862
|
-
C.shiftKey ? (!Ie || Me ===
|
|
4875
|
+
const Pe = ye[0], xe = ye[ye.length - 1], Me = document.activeElement, Ie = Me instanceof Node && F.contains(Me);
|
|
4876
|
+
C.shiftKey ? (!Ie || Me === Pe || Me === F) && (C.preventDefault(), xe.focus()) : (!Ie || Me === xe) && (C.preventDefault(), Pe.focus());
|
|
4863
4877
|
return;
|
|
4864
4878
|
}
|
|
4865
4879
|
};
|
|
4866
4880
|
e.onCleanup(() => {
|
|
4867
|
-
|
|
4881
|
+
P(), window.removeEventListener("keydown", ce), window.removeEventListener("resize", _), H(), window.removeEventListener("unload", H), qe(L, d);
|
|
4868
4882
|
});
|
|
4869
4883
|
const Ee = () => {
|
|
4870
4884
|
const C = e.props;
|
|
@@ -4907,11 +4921,11 @@ const yl = () => {
|
|
|
4907
4921
|
G = F, ge ? re() : Q(), queueMicrotask(() => X(ge));
|
|
4908
4922
|
}
|
|
4909
4923
|
if (!(C.useVShow ? !0 : F)) return w;
|
|
4910
|
-
const
|
|
4924
|
+
const Pe = C.useVShow ? !F : !1, xe = p(), Me = v(), Ie = C.side, We = !!Ie || C.autoPosition === !1, Xe = {
|
|
4911
4925
|
...ke(C.style),
|
|
4912
4926
|
// 모델 값이 없으면 **키 자체를 두지 않는다.** `width: undefined` 를 얹으면 소비자가
|
|
4913
4927
|
// `style` 로 준 width/height 가 지워진다(styleMap 이 undefined 를 "제거" 로 읽는다).
|
|
4914
|
-
...
|
|
4928
|
+
...xe ? { width: `${Te(xe)}rem` } : {},
|
|
4915
4929
|
...Me ? { height: `${Te(Me)}rem` } : {},
|
|
4916
4930
|
...We ? {} : { left: `${Te(I)}rem`, top: `${Te(y)}rem` }
|
|
4917
4931
|
}, ot = !!C.draggable && !We, Qe = !!C.resizeable && !Ie, Ze = typeof C.contentsPadding == "number" ? `${Te(C.contentsPadding)}rem` : C.contentsPadding, g = Ee(), N = we(C, Cl), R = e.slots.has("title") ? e.slot("title") : a`<span class="truncate">${C.title}</span>`, te = e.slots.has("description"), se = e.slots.has("default") ? e.slot("default") : a`<div class="moz-dialog-body">
|
|
@@ -4940,7 +4954,7 @@ const yl = () => {
|
|
|
4940
4954
|
Ie ? `moz-popup-side moz-popup-side-${Ie}` : null,
|
|
4941
4955
|
C.showBackdrop === !1 ? "moz-popup-no-backdrop" : null
|
|
4942
4956
|
)}
|
|
4943
|
-
style=${Le(
|
|
4957
|
+
style=${Le(Pe ? "display: none;" : void 0)}
|
|
4944
4958
|
>
|
|
4945
4959
|
${C.showBackdrop === !1 ? w : a`<div class="moz-popup-backdrop" aria-hidden="true" @click=${Y}></div>`}
|
|
4946
4960
|
<div
|
|
@@ -4981,6 +4995,7 @@ const yl = () => {
|
|
|
4981
4995
|
}), ri = {
|
|
4982
4996
|
name: "MozPopup",
|
|
4983
4997
|
core: kl,
|
|
4998
|
+
booleanProps: ["autoPosition", "closeOnOutsideClick", "disabledConfirmButton", "draggable", "focusTrap", "hideOthers", "keepAspectRatio", "loading", "lockScroll", "resizeable", "showBackdrop", "showCloseButton", "showFooterBorder", "showHeader", "useVShow", "visible"],
|
|
4984
4999
|
props: [
|
|
4985
5000
|
"title",
|
|
4986
5001
|
"minWidth",
|
|
@@ -5132,13 +5147,13 @@ const to = 250, it = 24, El = /* @__PURE__ */ new Set([
|
|
|
5132
5147
|
"class",
|
|
5133
5148
|
"style"
|
|
5134
5149
|
]);
|
|
5135
|
-
function
|
|
5150
|
+
function Pl(e, t) {
|
|
5136
5151
|
let o;
|
|
5137
5152
|
return (...l) => {
|
|
5138
5153
|
o && clearTimeout(o), o = setTimeout(() => e(...l), t);
|
|
5139
5154
|
};
|
|
5140
5155
|
}
|
|
5141
|
-
function
|
|
5156
|
+
function xl(e) {
|
|
5142
5157
|
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
5143
5158
|
}
|
|
5144
5159
|
const Ll = be({
|
|
@@ -5178,8 +5193,8 @@ const Ll = be({
|
|
|
5178
5193
|
},
|
|
5179
5194
|
overscan: 5,
|
|
5180
5195
|
observeElementRect: Lt,
|
|
5181
|
-
observeElementOffset:
|
|
5182
|
-
scrollToFn:
|
|
5196
|
+
observeElementOffset: xt,
|
|
5197
|
+
scrollToFn: Pt,
|
|
5183
5198
|
onChange: () => e.requestUpdate()
|
|
5184
5199
|
});
|
|
5185
5200
|
e.onCleanup(() => {
|
|
@@ -5198,7 +5213,7 @@ const Ll = be({
|
|
|
5198
5213
|
return (e.props.itemsSource ?? []).filter((L) => D(L).toLowerCase().indexOf(d) > -1);
|
|
5199
5214
|
}, J = (d) => {
|
|
5200
5215
|
if (!u) return [{ part: d, highlight: !1 }];
|
|
5201
|
-
const L =
|
|
5216
|
+
const L = xl(u), j = new RegExp(`(${L})`, "gi");
|
|
5202
5217
|
return d.split(j).map((ie) => ({
|
|
5203
5218
|
part: ie,
|
|
5204
5219
|
highlight: u.toLowerCase() === ie.toLowerCase()
|
|
@@ -5238,18 +5253,18 @@ const Ll = be({
|
|
|
5238
5253
|
listWidth: () => e.props.listWidth,
|
|
5239
5254
|
ignoreScrollTargets: (d) => d === c,
|
|
5240
5255
|
requestClose: () => {
|
|
5241
|
-
p &&
|
|
5256
|
+
p && P(!1);
|
|
5242
5257
|
}
|
|
5243
5258
|
});
|
|
5244
5259
|
e.onCleanup(() => ee.destroy());
|
|
5245
5260
|
const re = (d) => {
|
|
5246
|
-
`${d.ctrlKey ? "ctrl+" : ""}${d.altKey ? "alt+" : ""}${d.key.toLowerCase()}` === "escape" &&
|
|
5261
|
+
`${d.ctrlKey ? "ctrl+" : ""}${d.altKey ? "alt+" : ""}${d.key.toLowerCase()}` === "escape" && P(!1);
|
|
5247
5262
|
}, Q = (d) => {
|
|
5248
5263
|
const j = it * d - to / 2;
|
|
5249
5264
|
return Math.max(0, j + it);
|
|
5250
5265
|
};
|
|
5251
5266
|
let O = null;
|
|
5252
|
-
const
|
|
5267
|
+
const P = (d) => {
|
|
5253
5268
|
p !== d && (p = d, e.requestUpdate(), d ? (O = Mt(), ee.open(), S.save = "", window.addEventListener("keydown", re), queueMicrotask(() => {
|
|
5254
5269
|
var j;
|
|
5255
5270
|
const L = m();
|
|
@@ -5264,11 +5279,11 @@ const Ll = be({
|
|
|
5264
5279
|
})));
|
|
5265
5280
|
}, T = () => {
|
|
5266
5281
|
var d;
|
|
5267
|
-
e.props.disabled || (
|
|
5282
|
+
e.props.disabled || (P(!p), (d = i.value) == null || d.focus());
|
|
5268
5283
|
}, _ = (d) => {
|
|
5269
5284
|
var L;
|
|
5270
|
-
r(d),
|
|
5271
|
-
}, E =
|
|
5285
|
+
r(d), P(!1), (L = i.value) == null || L.focus();
|
|
5286
|
+
}, E = Pl((d) => {
|
|
5272
5287
|
u = d.target.value, e.requestUpdate(), queueMicrotask(() => {
|
|
5273
5288
|
const L = Z().length;
|
|
5274
5289
|
$.setOptions({ ...$.options, count: L }), $.measure(), c && (c.scrollTop = 0, $.scrollToIndex(0), $.measure());
|
|
@@ -5299,7 +5314,7 @@ const Ll = be({
|
|
|
5299
5314
|
const j = L.indexOf(document.activeElement), ie = j < 0 ? d > 0 ? 0 : L.length - 1 : Math.min(L.length - 1, Math.max(0, j + d));
|
|
5300
5315
|
(ce = L[ie]) == null || ce.focus();
|
|
5301
5316
|
}, Y = (d) => d.find((L) => L.getAttribute("aria-selected") === "true") ?? null, X = (d) => {
|
|
5302
|
-
|
|
5317
|
+
P(!0), queueMicrotask(
|
|
5303
5318
|
() => queueMicrotask(() => {
|
|
5304
5319
|
if (h.value) return;
|
|
5305
5320
|
const L = f();
|
|
@@ -5308,7 +5323,7 @@ const Ll = be({
|
|
|
5308
5323
|
);
|
|
5309
5324
|
}, Ce = () => {
|
|
5310
5325
|
var d;
|
|
5311
|
-
|
|
5326
|
+
P(!1), (d = i.value) == null || d.focus();
|
|
5312
5327
|
}, qe = (d) => {
|
|
5313
5328
|
if (d.key === "Tab") {
|
|
5314
5329
|
z(d);
|
|
@@ -5475,19 +5490,19 @@ const Ll = be({
|
|
|
5475
5490
|
>
|
|
5476
5491
|
<div class="inner-container" style=${oe({ height: `${Ee}px` })} ${le(n)}>
|
|
5477
5492
|
${$e.map(({ index: C, value: F, start: ye }) => {
|
|
5478
|
-
const
|
|
5493
|
+
const Pe = d.useObjBinding ? F && L && F[j] === L[j] : F[j] === L;
|
|
5479
5494
|
return a`<div
|
|
5480
5495
|
data-index=${C}
|
|
5481
5496
|
role="option"
|
|
5482
|
-
aria-selected=${
|
|
5483
|
-
${le((
|
|
5484
|
-
|
|
5497
|
+
aria-selected=${Pe ? "true" : "false"}
|
|
5498
|
+
${le((xe) => {
|
|
5499
|
+
xe && $.measureElement(xe);
|
|
5485
5500
|
})}
|
|
5486
5501
|
style=${oe({ transform: `translateY(${ye}px)` })}
|
|
5487
5502
|
class=${V("list-box-item virtual-row", { "list-selected": F[j] === L })}
|
|
5488
5503
|
@click=${() => _(d.useObjBinding ? F : F[j])}
|
|
5489
5504
|
tabindex="0"
|
|
5490
|
-
@keydown=${(
|
|
5505
|
+
@keydown=${(xe) => Oe(xe, d.useObjBinding ? F : F[j])}
|
|
5491
5506
|
>
|
|
5492
5507
|
${e.slots.has("list-item") ? e.slot("list-item", {
|
|
5493
5508
|
text: D(F),
|
|
@@ -5496,10 +5511,10 @@ const Ll = be({
|
|
|
5496
5511
|
highlightText: J(D(F))
|
|
5497
5512
|
}) : a`<div class="highlight-container" title=${D(F)}>
|
|
5498
5513
|
${J(D(F)).map(
|
|
5499
|
-
(
|
|
5514
|
+
(xe) => a`<span class=${V({ highlight: xe.highlight })}>${xe.part}</span>`
|
|
5500
5515
|
)}
|
|
5501
5516
|
</div>`}
|
|
5502
|
-
${
|
|
5517
|
+
${Pe ? Wt("12", "var(--moz-color-accent)", !1, "icon-check") : w}
|
|
5503
5518
|
</div>`;
|
|
5504
5519
|
})}
|
|
5505
5520
|
</div>
|
|
@@ -5515,6 +5530,7 @@ const Ll = be({
|
|
|
5515
5530
|
}), ii = {
|
|
5516
5531
|
name: "MozSelect",
|
|
5517
5532
|
core: Ll,
|
|
5533
|
+
booleanProps: ["disabled", "readonly", "required", "useFilter", "useObjBinding"],
|
|
5518
5534
|
props: [
|
|
5519
5535
|
"itemsSource",
|
|
5520
5536
|
"label",
|
|
@@ -5676,8 +5692,8 @@ const Dl = be({
|
|
|
5676
5692
|
estimateSize: () => G,
|
|
5677
5693
|
overscan: 5,
|
|
5678
5694
|
observeElementRect: Lt,
|
|
5679
|
-
observeElementOffset:
|
|
5680
|
-
scrollToFn:
|
|
5695
|
+
observeElementOffset: xt,
|
|
5696
|
+
scrollToFn: Pt,
|
|
5681
5697
|
onChange: () => e.requestUpdate()
|
|
5682
5698
|
});
|
|
5683
5699
|
e.onCleanup(() => {
|
|
@@ -5701,7 +5717,7 @@ const Dl = be({
|
|
|
5701
5717
|
if (g.length < N.length || g.length === 0 || N.length === 0) return !1;
|
|
5702
5718
|
const R = new Set(g);
|
|
5703
5719
|
return N.every((te) => R.has(te[c()]));
|
|
5704
|
-
}, Q = () => new Set(W().map((g) => g[c()])), O = () => new Set(r()),
|
|
5720
|
+
}, Q = () => new Set(W().map((g) => g[c()])), O = () => new Set(r()), P = () => {
|
|
5705
5721
|
const g = Q(), N = O();
|
|
5706
5722
|
return !g.size || !N.size || N.size < g.size ? !1 : Array.from(g).every((R) => N.has(R));
|
|
5707
5723
|
}, T = () => k.save || k.blur || k.change, _ = () => {
|
|
@@ -5784,7 +5800,7 @@ const Dl = be({
|
|
|
5784
5800
|
B(Array.from(R));
|
|
5785
5801
|
}
|
|
5786
5802
|
}, Oe = (g) => {
|
|
5787
|
-
if (g.stopPropagation(),
|
|
5803
|
+
if (g.stopPropagation(), P()) {
|
|
5788
5804
|
const N = Q();
|
|
5789
5805
|
B(r().filter((R) => !N.has(R)));
|
|
5790
5806
|
} else {
|
|
@@ -5859,14 +5875,14 @@ const Dl = be({
|
|
|
5859
5875
|
const R = (N = l.value) == null ? void 0 : N.querySelector("input:first-child, button:first-child");
|
|
5860
5876
|
R == null || R.focus();
|
|
5861
5877
|
}
|
|
5862
|
-
},
|
|
5878
|
+
}, Pe = (g) => {
|
|
5863
5879
|
var se, me, ge;
|
|
5864
5880
|
const N = ((se = l.value) == null ? void 0 : se.querySelectorAll("input, button")) ?? [], R = N[0], te = N[N.length - 1];
|
|
5865
5881
|
(g.target === R || g.target === te) && n.value && (g.target === R && g.shiftKey ? (g.stopPropagation(), g.preventDefault(), (me = n.value) == null || me.focus()) : g.target === te && !g.shiftKey && (g.stopPropagation(), g.preventDefault(), (ge = n.value) == null || ge.focus()));
|
|
5866
|
-
},
|
|
5882
|
+
}, xe = (g) => {
|
|
5867
5883
|
g.key === "Tab" && ye(g);
|
|
5868
5884
|
}, Me = (g) => {
|
|
5869
|
-
!e.props.inline && g.key === "Tab" &&
|
|
5885
|
+
!e.props.inline && g.key === "Tab" && Pe(g);
|
|
5870
5886
|
}, Ie = (g) => {
|
|
5871
5887
|
!u && !e.props.inline || (S = g.target.value, q = [], e.emit("update:filterValue", S), e.requestUpdate(), queueMicrotask(() => {
|
|
5872
5888
|
Z.setOptions({ ...Z.options, count: W().length }), Z.measure(), h && (h.scrollTop = 0);
|
|
@@ -5948,7 +5964,7 @@ const Dl = be({
|
|
|
5948
5964
|
role="button"
|
|
5949
5965
|
tabindex=${g.disabled || g.readonly || g.loading ? "-1" : "0"}
|
|
5950
5966
|
aria-disabled=${g.disabled || g.readonly || g.loading ? "true" : "false"}
|
|
5951
|
-
aria-pressed=${
|
|
5967
|
+
aria-pressed=${P() ? "true" : "false"}
|
|
5952
5968
|
aria-label=${ge}
|
|
5953
5969
|
@click=${Oe}
|
|
5954
5970
|
@keydown=${(Se) => Xe(Se, () => Oe({ stopPropagation() {
|
|
@@ -5959,7 +5975,7 @@ const Dl = be({
|
|
|
5959
5975
|
aria-hidden="true"
|
|
5960
5976
|
tabindex="-1"
|
|
5961
5977
|
class=${V("moz-checkbox", { "is-indeterminate": R.some((Se) => te.has(Se[N])) && !re() })}
|
|
5962
|
-
.checked=${
|
|
5978
|
+
.checked=${P()}
|
|
5963
5979
|
/>
|
|
5964
5980
|
<div class="highlight-container">
|
|
5965
5981
|
<span title=${ge}>${ge}</span>
|
|
@@ -6065,7 +6081,7 @@ const Dl = be({
|
|
|
6065
6081
|
aria-controls=${v}
|
|
6066
6082
|
aria-label=${Le(te["aria-label"] ?? g.label ?? void 0)}
|
|
6067
6083
|
?disabled=${!!g.disabled}
|
|
6068
|
-
@keydown=${
|
|
6084
|
+
@keydown=${xe}
|
|
6069
6085
|
${le(n)}
|
|
6070
6086
|
>
|
|
6071
6087
|
${me}
|
|
@@ -6085,6 +6101,7 @@ const Dl = be({
|
|
|
6085
6101
|
}), ai = {
|
|
6086
6102
|
name: "MozMultiSelect",
|
|
6087
6103
|
core: Dl,
|
|
6104
|
+
booleanProps: ["autoSelectNewItems", "disabled", "inline", "loading", "preserveMissingValues", "readonly", "required", "selectAllWhenEmpty", "useFilter", "useSelectAll", "useSpecificSelect"],
|
|
6088
6105
|
props: [
|
|
6089
6106
|
"itemsSource",
|
|
6090
6107
|
"inline",
|
|
@@ -6223,7 +6240,7 @@ const Il = /* @__PURE__ */ new Set([
|
|
|
6223
6240
|
const re = K.selectionStart || 0, Q = r;
|
|
6224
6241
|
if (K.selectionStart !== K.selectionEnd || re >= Q.length) return;
|
|
6225
6242
|
M.preventDefault();
|
|
6226
|
-
const O = Q.replace(/:/g, ""),
|
|
6243
|
+
const O = Q.replace(/:/g, ""), P = (Q.slice(0, re).match(/:/g) || []).length, T = re - P;
|
|
6227
6244
|
let _ = O.substring(0, T) + ee;
|
|
6228
6245
|
T + 1 < O.length && (_ += O.substring(T + 1)), _.length > 4 && (_ = _.slice(0, 4));
|
|
6229
6246
|
let E = _, z = T + 1;
|
|
@@ -6237,9 +6254,9 @@ const Il = /* @__PURE__ */ new Set([
|
|
|
6237
6254
|
let Q = K.value;
|
|
6238
6255
|
const O = Q.length < re.length;
|
|
6239
6256
|
Q = Z(Q);
|
|
6240
|
-
const
|
|
6241
|
-
if (!O &&
|
|
6242
|
-
const T = (Q.slice(0, ee).match(/:/g) || []).length, _ = ee - T, E =
|
|
6257
|
+
const P = Q.replace(/:/g, "");
|
|
6258
|
+
if (!O && P.length >= 2) {
|
|
6259
|
+
const T = (Q.slice(0, ee).match(/:/g) || []).length, _ = ee - T, E = P.slice(0, 2), z = P.slice(2);
|
|
6243
6260
|
Q = E + (z ? `:${z}` : ":");
|
|
6244
6261
|
let A = _;
|
|
6245
6262
|
_ > 2 && (A = _ + 1), r = Q, p = Q, e.requestUpdate(), setTimeout(() => K.setSelectionRange(A, A), 0);
|
|
@@ -6272,8 +6289,8 @@ const Il = /* @__PURE__ */ new Set([
|
|
|
6272
6289
|
S = r;
|
|
6273
6290
|
const O = r;
|
|
6274
6291
|
if (/^\d{2}:\d{2}$/.test(O)) {
|
|
6275
|
-
const [
|
|
6276
|
-
!isNaN(
|
|
6292
|
+
const [P, T] = O.split(":").map(Number);
|
|
6293
|
+
!isNaN(P) && !isNaN(T) && P >= 0 && P <= 23 && T >= 0 && T <= 59 && O !== M.modelValue && (s = P, m = T, queueMicrotask(() => e.emit("update:modelValue", O)));
|
|
6277
6294
|
}
|
|
6278
6295
|
}
|
|
6279
6296
|
const K = M.disabled ? "var(--moz-color-text-muted)" : c ? "var(--moz-color-accent)" : "var(--moz-color-text-subtle)", ee = we(M, Il), re = "__:__", Q = [];
|
|
@@ -6373,6 +6390,7 @@ const Il = /* @__PURE__ */ new Set([
|
|
|
6373
6390
|
}), di = {
|
|
6374
6391
|
name: "MozTimePicker",
|
|
6375
6392
|
core: Bl,
|
|
6393
|
+
booleanProps: ["disabled", "required"],
|
|
6376
6394
|
props: ["width", "modelValue", "label", "disabled", "hourLabel", "minuteLabel", "currentTimeLabel", "required"],
|
|
6377
6395
|
emits: ["update:modelValue"],
|
|
6378
6396
|
slots: [],
|
|
@@ -6531,7 +6549,7 @@ const Ul = be({
|
|
|
6531
6549
|
r().requestRead && r().requestRead(f).then(() => {
|
|
6532
6550
|
s = !1, e.requestUpdate();
|
|
6533
6551
|
});
|
|
6534
|
-
}, 300),
|
|
6552
|
+
}, 300), P = (f, H) => {
|
|
6535
6553
|
f.key === "Backspace" && n[H].value === "" && n.length > 1 && ($(H), e.requestUpdate());
|
|
6536
6554
|
}, T = (f) => {
|
|
6537
6555
|
f.key === "Enter" && (h = !0, e.requestUpdate(), setTimeout(() => l == null ? void 0 : l.focus(), 0));
|
|
@@ -6582,7 +6600,7 @@ const Ul = be({
|
|
|
6582
6600
|
setValue: (X) => {
|
|
6583
6601
|
n[f.idx].value = X, e.requestUpdate();
|
|
6584
6602
|
},
|
|
6585
|
-
onKeydown: (X) =>
|
|
6603
|
+
onKeydown: (X) => P(X, f.idx),
|
|
6586
6604
|
onKeyup: (X) => T(X),
|
|
6587
6605
|
onBlur: () => _(f.idx)
|
|
6588
6606
|
}) : a`<span class="tag-input-preview tag-input-common">${f.value}</span>`}
|
|
@@ -6704,7 +6722,7 @@ const Ul = be({
|
|
|
6704
6722
|
setValue: (X) => {
|
|
6705
6723
|
n[Y].value = X, e.requestUpdate();
|
|
6706
6724
|
},
|
|
6707
|
-
onKeydown: (X) =>
|
|
6725
|
+
onKeydown: (X) => P(X, Y),
|
|
6708
6726
|
onKeyup: (X) => T(X),
|
|
6709
6727
|
onBlur: () => _(Y)
|
|
6710
6728
|
}) : a`<span class="tag-input-preview tag-input-common">
|
|
@@ -6739,6 +6757,7 @@ const Ul = be({
|
|
|
6739
6757
|
}), ci = {
|
|
6740
6758
|
name: "MozTagInput",
|
|
6741
6759
|
core: Ul,
|
|
6760
|
+
booleanProps: ["disableDelete", "disableUpdate", "dynamicSearch", "isExpandTop", "pushOnBlur", "required", "simplify"],
|
|
6742
6761
|
props: [
|
|
6743
6762
|
"modelValue",
|
|
6744
6763
|
"required",
|
|
@@ -6785,19 +6804,19 @@ const Kl = 500, Gl = be({
|
|
|
6785
6804
|
let n = !1, i = !1, h = !1, c = !1, s = null, m = !1, r = !1, p = !1, u = !1;
|
|
6786
6805
|
const v = /* @__PURE__ */ new Map(), S = /* @__PURE__ */ new Map(), I = /* @__PURE__ */ new Map(), y = /* @__PURE__ */ new Map(), $ = () => {
|
|
6787
6806
|
n && i && (s || e.props.itemSource) && o && !u && (u = !0, e.emit("open", { target: o }));
|
|
6788
|
-
}, q = (
|
|
6789
|
-
const T = h !==
|
|
6790
|
-
h =
|
|
6807
|
+
}, q = (P) => {
|
|
6808
|
+
const T = h !== P;
|
|
6809
|
+
h = P, e.requestUpdate(), T && !P && setTimeout(() => {
|
|
6791
6810
|
n = !1, c = !1, u = !1, e.emit("close", { target: o }), e.requestUpdate();
|
|
6792
6811
|
}, 50);
|
|
6793
|
-
}, k = (
|
|
6794
|
-
const T = n !==
|
|
6795
|
-
n =
|
|
6812
|
+
}, k = (P) => {
|
|
6813
|
+
const T = n !== P;
|
|
6814
|
+
n = P, e.requestUpdate(), T && (setTimeout(() => {
|
|
6796
6815
|
i = n, e.requestUpdate(), $();
|
|
6797
6816
|
}, 0), q(n), $());
|
|
6798
|
-
}, D = (
|
|
6817
|
+
}, D = (P) => {
|
|
6799
6818
|
if (e.props.disableCloseOnClickBackdrop) return;
|
|
6800
|
-
const T = ["list-box-container"], _ =
|
|
6819
|
+
const T = ["list-box-container"], _ = P.composedPath();
|
|
6801
6820
|
_.includes(o) || T.forEach((E) => {
|
|
6802
6821
|
(!E || E && !_.some((z) => {
|
|
6803
6822
|
var A;
|
|
@@ -6807,86 +6826,86 @@ const Kl = 500, Gl = be({
|
|
|
6807
6826
|
}, G = () => {
|
|
6808
6827
|
(e.props.beforeClose ?? (() => {
|
|
6809
6828
|
})) && (q(!1), window.removeEventListener("mousedown", D), window.removeEventListener("resize", G));
|
|
6810
|
-
}, Z = (
|
|
6811
|
-
|
|
6829
|
+
}, Z = (P, T) => {
|
|
6830
|
+
P instanceof Function && (s = P(T)), k(!0), setTimeout(() => k(!0), 60);
|
|
6812
6831
|
}, J = () => {
|
|
6813
6832
|
n ? G() : Z();
|
|
6814
6833
|
}, ne = () => {
|
|
6815
|
-
const
|
|
6816
|
-
if (!
|
|
6817
|
-
const T =
|
|
6834
|
+
const P = e.props.fixPosition;
|
|
6835
|
+
if (!P) return;
|
|
6836
|
+
const T = P.selector && document.querySelector(P.selector) || t;
|
|
6818
6837
|
if (!T || !o || !l.value) return;
|
|
6819
6838
|
const _ = T.getBoundingClientRect(), E = l.value.getBoundingClientRect();
|
|
6820
|
-
m = _.left + T.clientWidth < E.left + o.clientWidth, r = _.left + T.clientWidth < E.left + o.clientWidth * 2, p = _.top + T.clientHeight < E.top + o.clientHeight,
|
|
6821
|
-
}, pe = (
|
|
6822
|
-
c || (o && t && (e.props.fixPosition ? ne() : (m = t.clientWidth <
|
|
6839
|
+
m = _.left + T.clientWidth < E.left + o.clientWidth, r = _.left + T.clientWidth < E.left + o.clientWidth * 2, p = _.top + T.clientHeight < E.top + o.clientHeight, P.useTeleport ? (o.style.left = `${E.left}px`, o.style.top = `${E.top}px`) : (o.style.left = `${l.value.offsetLeft}px`, o.style.top = `${l.value.offsetTop}px`), e.requestUpdate();
|
|
6840
|
+
}, pe = (P) => {
|
|
6841
|
+
c || (o && t && (e.props.fixPosition ? ne() : (m = t.clientWidth < P.clientX + o.clientWidth, r = t.clientWidth < P.clientX + o.clientWidth * 2, p = t.clientHeight < P.clientY + o.clientHeight, o.style.left = `${P.clientX}px`, o.style.top = `${P.clientY}px`)), t && (t.style.pointerEvents = "none"), window.addEventListener("mousedown", D), window.addEventListener("resize", G), c = !0, e.requestUpdate());
|
|
6823
6842
|
};
|
|
6824
6843
|
e.onCleanup(() => {
|
|
6825
6844
|
window.removeEventListener("mousedown", D), window.removeEventListener("resize", G);
|
|
6826
6845
|
});
|
|
6827
|
-
const W = (
|
|
6828
|
-
let T = y.get(
|
|
6846
|
+
const W = (P) => {
|
|
6847
|
+
let T = y.get(P);
|
|
6829
6848
|
return T || (T = Wl((_, E, z) => {
|
|
6830
6849
|
E.children && (M(z, E), v.set(z, _), e.requestUpdate());
|
|
6831
|
-
}, 400), y.set(
|
|
6832
|
-
}, M = (
|
|
6833
|
-
if (!T.children || S.get(
|
|
6834
|
-
const _ = I.get(
|
|
6850
|
+
}, 400), y.set(P, T)), T;
|
|
6851
|
+
}, M = (P, T) => {
|
|
6852
|
+
if (!T.children || S.get(P)) return;
|
|
6853
|
+
const _ = I.get(P);
|
|
6835
6854
|
if (!_) return;
|
|
6836
6855
|
const E = _.getBoundingClientRect();
|
|
6837
|
-
S.set(
|
|
6838
|
-
}, K = (
|
|
6839
|
-
|
|
6840
|
-
}, ee = (
|
|
6856
|
+
S.set(P, _.clientHeight + E.top > document.body.offsetHeight);
|
|
6857
|
+
}, K = (P, T) => {
|
|
6858
|
+
P.function ? (P.function(), G()) : P.children && (M(T, P), v.set(T, !0), e.requestUpdate());
|
|
6859
|
+
}, ee = (P) => typeof P.disabled == "function" ? P.disabled() : !!P.disabled, re = (P, T, _, E) => {
|
|
6841
6860
|
const z = v.get(E) ?? !1, A = S.get(E) ?? !1, B = W(E);
|
|
6842
6861
|
return a`<div
|
|
6843
6862
|
class=${V({
|
|
6844
|
-
"context-menu-item-enable-hover": !("hover" in
|
|
6863
|
+
"context-menu-item-enable-hover": !("hover" in P) || P.hover,
|
|
6845
6864
|
"context-menu-item-wrapper": !0,
|
|
6846
6865
|
"context-menu-item-wrapper-selected": z,
|
|
6847
|
-
"context-menu-item-wrapper-disabled": ee(
|
|
6866
|
+
"context-menu-item-wrapper-disabled": ee(P)
|
|
6848
6867
|
})}
|
|
6849
|
-
@mouseenter=${() => B(!0,
|
|
6850
|
-
@mouseleave=${() => B(!1,
|
|
6868
|
+
@mouseenter=${() => B(!0, P, E)}
|
|
6869
|
+
@mouseleave=${() => B(!1, P, E)}
|
|
6851
6870
|
>
|
|
6852
6871
|
<div
|
|
6853
6872
|
class=${V({
|
|
6854
6873
|
"context-menu-sub-items-wrapper-right": _ && !A,
|
|
6855
6874
|
"context-menu-sub-items-wrapper-bottom": A && !_,
|
|
6856
6875
|
"context-menu-sub-items-wrapper-bottom-right": A && _,
|
|
6857
|
-
"context-menu-sub-items-wrapper-hide": !
|
|
6876
|
+
"context-menu-sub-items-wrapper-hide": !P.children || !z,
|
|
6858
6877
|
"context-menu-sub-items-wrapper": !A && !_
|
|
6859
6878
|
})}
|
|
6860
6879
|
${le((f) => {
|
|
6861
6880
|
f && I.set(E, f);
|
|
6862
6881
|
})}
|
|
6863
6882
|
>
|
|
6864
|
-
${
|
|
6883
|
+
${P.children ? O(P.children, T + 1, _, E) : w}
|
|
6865
6884
|
</div>
|
|
6866
|
-
${
|
|
6867
|
-
class=${`context-menu-item-${
|
|
6885
|
+
${P.template ? a`<div
|
|
6886
|
+
class=${`context-menu-item-${P.template}`}
|
|
6868
6887
|
@mouseup=${() => {
|
|
6869
6888
|
var f;
|
|
6870
|
-
(!("hover" in
|
|
6889
|
+
(!("hover" in P) || P.hover) && ((f = P.function) == null || f.call(P), G());
|
|
6871
6890
|
}}
|
|
6872
6891
|
>
|
|
6873
|
-
${Q(
|
|
6892
|
+
${Q(P)}
|
|
6874
6893
|
</div>` : a`<div
|
|
6875
6894
|
class="context-menu-item"
|
|
6876
6895
|
role="menuitem"
|
|
6877
6896
|
tabindex="-1"
|
|
6878
|
-
aria-disabled=${ee(
|
|
6879
|
-
aria-haspopup=${
|
|
6880
|
-
@click=${() => K(
|
|
6897
|
+
aria-disabled=${ee(P) ? "true" : "false"}
|
|
6898
|
+
aria-haspopup=${P.children ? "menu" : "false"}
|
|
6899
|
+
@click=${() => K(P, E)}
|
|
6881
6900
|
>
|
|
6882
|
-
<div class="context-menu-item-left">${
|
|
6883
|
-
${
|
|
6901
|
+
<div class="context-menu-item-left">${P.text}</div>
|
|
6902
|
+
${P.children ? a`<div class="context-menu-item-right"></div>` : w}
|
|
6884
6903
|
</div>`}
|
|
6885
6904
|
</div>`;
|
|
6886
|
-
}, Q = (
|
|
6887
|
-
const T =
|
|
6905
|
+
}, Q = (P) => {
|
|
6906
|
+
const T = P.template, _ = T.includes("[col-padding]") ? "col-padding" : T.includes("[row-padding]") ? "row-padding" : T.includes("[padding]") ? "padding" : null, E = e.slots.has(T) ? e.slot(T, { props: { ...P } }) : w;
|
|
6888
6907
|
return _ ? a`<div class="context-menu-item-template" data-layout=${_}>${E}</div>` : a`${E}`;
|
|
6889
|
-
}, O = (
|
|
6908
|
+
}, O = (P, T, _, E) => {
|
|
6890
6909
|
const z = T === 0;
|
|
6891
6910
|
return a`<div
|
|
6892
6911
|
role=${z ? "menu" : "group"}
|
|
@@ -6895,7 +6914,7 @@ const Kl = 500, Gl = be({
|
|
|
6895
6914
|
style=${oe({ minWidth: e.props.minWidth })}
|
|
6896
6915
|
${ue(z ? we(e.props, _l) : {})}
|
|
6897
6916
|
>
|
|
6898
|
-
${
|
|
6917
|
+
${P.map((A, B) => {
|
|
6899
6918
|
const f = `${E}/${T}-${B}`;
|
|
6900
6919
|
return a`<div class="context-menu-item-outer-wrapper" style=${oe({ display: A != null && A.hidden ? "none" : "" })}>
|
|
6901
6920
|
${A.separator ? a`<div class="context-menu-separator"></div>` : re(A, T, _, f)}
|
|
@@ -6911,20 +6930,20 @@ const Kl = 500, Gl = be({
|
|
|
6911
6930
|
toggle: J
|
|
6912
6931
|
},
|
|
6913
6932
|
render() {
|
|
6914
|
-
const
|
|
6915
|
-
return
|
|
6933
|
+
const P = e.props;
|
|
6934
|
+
return P.fixPosition ? a`<div
|
|
6916
6935
|
class="context-menu-fixed-position-space"
|
|
6917
6936
|
style=${oe({
|
|
6918
|
-
left: typeof
|
|
6919
|
-
top: typeof
|
|
6937
|
+
left: typeof P.fixPosition.left == "string" ? P.fixPosition.left : `${P.fixPosition.left}px`,
|
|
6938
|
+
top: typeof P.fixPosition.top == "string" ? P.fixPosition.top : `${P.fixPosition.top}px`
|
|
6920
6939
|
})}
|
|
6921
6940
|
${le(l)}
|
|
6922
6941
|
></div>` : w;
|
|
6923
6942
|
},
|
|
6924
6943
|
renderPortal() {
|
|
6925
|
-
const
|
|
6944
|
+
const P = e.props, T = s || P.itemSource;
|
|
6926
6945
|
if (!n || !T) return w;
|
|
6927
|
-
const _ =
|
|
6946
|
+
const _ = P.transition, E = P.direction;
|
|
6928
6947
|
return a`
|
|
6929
6948
|
<div
|
|
6930
6949
|
class="context-menu-wrapper"
|
|
@@ -6946,8 +6965,8 @@ const Kl = 500, Gl = be({
|
|
|
6946
6965
|
})}
|
|
6947
6966
|
style=${oe({
|
|
6948
6967
|
transitionDuration: `${Kl}ms`,
|
|
6949
|
-
...
|
|
6950
|
-
...
|
|
6968
|
+
...P.toTopCenter ? { transform: "translate(-50%, -100%)" } : {},
|
|
6969
|
+
...P.toBottomCenter ? { transform: "translate(-50%, 0)" } : {}
|
|
6951
6970
|
})}
|
|
6952
6971
|
@contextmenu=${(z) => z.preventDefault()}
|
|
6953
6972
|
${le((z) => {
|
|
@@ -6963,6 +6982,7 @@ const Kl = 500, Gl = be({
|
|
|
6963
6982
|
}), ui = {
|
|
6964
6983
|
name: "MozContextMenu",
|
|
6965
6984
|
core: Gl,
|
|
6985
|
+
booleanProps: ["disableCloseOnClickBackdrop", "noPadding", "toBottomCenter", "toTopCenter"],
|
|
6966
6986
|
props: [
|
|
6967
6987
|
"itemSource",
|
|
6968
6988
|
"beforeClose",
|
|
@@ -7047,8 +7067,8 @@ const tn = be({
|
|
|
7047
7067
|
},
|
|
7048
7068
|
overscan: 5,
|
|
7049
7069
|
observeElementRect: Lt,
|
|
7050
|
-
observeElementOffset:
|
|
7051
|
-
scrollToFn:
|
|
7070
|
+
observeElementOffset: xt,
|
|
7071
|
+
scrollToFn: Pt,
|
|
7052
7072
|
onChange: () => e.requestUpdate()
|
|
7053
7073
|
});
|
|
7054
7074
|
e.onCleanup(() => {
|
|
@@ -7102,8 +7122,8 @@ const tn = be({
|
|
|
7102
7122
|
if (!await ce.validator(d))
|
|
7103
7123
|
return S[L] = ce.message, e.requestUpdate(), !1;
|
|
7104
7124
|
return !0;
|
|
7105
|
-
},
|
|
7106
|
-
validate:
|
|
7125
|
+
}, P = async (d = "save") => re() !== "" ? !1 : await O(ee(), d), T = {
|
|
7126
|
+
validate: P,
|
|
7107
7127
|
initValidator: () => {
|
|
7108
7128
|
S.change = "", S.blur = "", S.save = "", e.requestUpdate();
|
|
7109
7129
|
}
|
|
@@ -7175,7 +7195,7 @@ const tn = be({
|
|
|
7175
7195
|
});
|
|
7176
7196
|
}, 300);
|
|
7177
7197
|
return {
|
|
7178
|
-
api: { validate:
|
|
7198
|
+
api: { validate: P },
|
|
7179
7199
|
render() {
|
|
7180
7200
|
const d = e.props, L = m();
|
|
7181
7201
|
if (L !== I) {
|
|
@@ -7284,14 +7304,14 @@ const tn = be({
|
|
|
7284
7304
|
>
|
|
7285
7305
|
<div class="inner-container" style=${oe({ height: `${ce}px` })} ${le(n)}>
|
|
7286
7306
|
${Ee.map(({ index: C, value: F, start: ye }) => {
|
|
7287
|
-
const
|
|
7307
|
+
const Pe = D(F);
|
|
7288
7308
|
return a`<div
|
|
7289
7309
|
data-index=${C}
|
|
7290
|
-
${le((
|
|
7291
|
-
|
|
7310
|
+
${le((xe) => {
|
|
7311
|
+
xe && q.measureElement(xe);
|
|
7292
7312
|
})}
|
|
7293
7313
|
style=${oe({ transform: `translateY(${ye}px)` })}
|
|
7294
|
-
class=${V("virtual-row table-row", { "row-selected":
|
|
7314
|
+
class=${V("virtual-row table-row", { "row-selected": Pe, "row-focused": C === v })}
|
|
7295
7315
|
@click=${() => H(F)}
|
|
7296
7316
|
@mouseenter=${() => {
|
|
7297
7317
|
v = C, e.requestUpdate();
|
|
@@ -7299,17 +7319,17 @@ const tn = be({
|
|
|
7299
7319
|
tabindex="0"
|
|
7300
7320
|
>
|
|
7301
7321
|
${L.map(
|
|
7302
|
-
(
|
|
7322
|
+
(xe, Me) => a`<div
|
|
7303
7323
|
class="table-cell"
|
|
7304
7324
|
style=${oe({ width: W(Me), minWidth: W(Me), maxWidth: W(Me) })}
|
|
7305
|
-
title=${String(F[
|
|
7325
|
+
title=${String(F[xe] ?? "")}
|
|
7306
7326
|
>
|
|
7307
|
-
${K(String(F[
|
|
7327
|
+
${K(String(F[xe] ?? "")).map(
|
|
7308
7328
|
(Ie) => a`<span class=${V({ highlight: Ie.highlight })}>${Ie.part}</span>`
|
|
7309
7329
|
)}
|
|
7310
7330
|
</div>`
|
|
7311
7331
|
)}
|
|
7312
|
-
${
|
|
7332
|
+
${Pe ? Wt("12", "var(--moz-color-accent)", !1, "icon-check") : w}
|
|
7313
7333
|
</div>`;
|
|
7314
7334
|
})}
|
|
7315
7335
|
</div>
|
|
@@ -7324,6 +7344,7 @@ const tn = be({
|
|
|
7324
7344
|
}), pi = {
|
|
7325
7345
|
name: "MozTableSelect",
|
|
7326
7346
|
core: tn,
|
|
7347
|
+
booleanProps: ["disabled", "readonly", "required", "useFilter", "useObjKeyProp"],
|
|
7327
7348
|
props: [
|
|
7328
7349
|
"itemsSource",
|
|
7329
7350
|
"label",
|
|
@@ -7582,25 +7603,25 @@ const un = /* @__PURE__ */ new Set([
|
|
|
7582
7603
|
let K = M;
|
|
7583
7604
|
const ee = () => e.slots.has("list-item");
|
|
7584
7605
|
let re = [], Q = [], O = e.props.itemsSource;
|
|
7585
|
-
const
|
|
7606
|
+
const P = () => {
|
|
7586
7607
|
re = rn(e.props.itemsSource ?? [], p()), Q = an(re);
|
|
7587
7608
|
};
|
|
7588
|
-
|
|
7609
|
+
P();
|
|
7589
7610
|
const T = () => {
|
|
7590
7611
|
const b = /* @__PURE__ */ new Map();
|
|
7591
|
-
return re.forEach((
|
|
7592
|
-
}, _ = (b) => b.name ?? "", E = (b) => new Set(S()).has(b.code), z = (b) => Z.some((
|
|
7612
|
+
return re.forEach((x) => b.set(x.code, x)), b;
|
|
7613
|
+
}, _ = (b) => b.name ?? "", E = (b) => new Set(S()).has(b.code), z = (b) => Z.some((x) => dt(x.item, b)), A = () => new Set(S()), B = () => {
|
|
7593
7614
|
let b = [];
|
|
7594
7615
|
if (!$)
|
|
7595
7616
|
b = Q;
|
|
7596
7617
|
else {
|
|
7597
|
-
const
|
|
7618
|
+
const x = [], U = /* @__PURE__ */ new Set(), de = (ae) => `depth${ae.depth}_${ae.code}`;
|
|
7598
7619
|
for (const ae of Q)
|
|
7599
7620
|
if (ae.depth !== s) {
|
|
7600
|
-
for (;
|
|
7601
|
-
|
|
7621
|
+
for (; x.length && x[x.length - 1].depth >= ae.depth; ) x.pop();
|
|
7622
|
+
x.push(ae);
|
|
7602
7623
|
} else if (_(ae).toLowerCase().indexOf($.toLowerCase()) > -1) {
|
|
7603
|
-
for (const fe of
|
|
7624
|
+
for (const fe of x) {
|
|
7604
7625
|
const Ae = de(fe);
|
|
7605
7626
|
U.has(Ae) || (b.push(fe), U.add(Ae));
|
|
7606
7627
|
}
|
|
@@ -7609,7 +7630,7 @@ const un = /* @__PURE__ */ new Set([
|
|
|
7609
7630
|
}
|
|
7610
7631
|
}
|
|
7611
7632
|
if (D) {
|
|
7612
|
-
const
|
|
7633
|
+
const x = /* @__PURE__ */ new Set(), U = T(), de = A();
|
|
7613
7634
|
b.filter((he) => {
|
|
7614
7635
|
if (Ce(he, de)) return !0;
|
|
7615
7636
|
if (m() && !Ge(c, he.depth)) {
|
|
@@ -7619,49 +7640,49 @@ const un = /* @__PURE__ */ new Set([
|
|
|
7619
7640
|
return !1;
|
|
7620
7641
|
}).forEach((he) => {
|
|
7621
7642
|
let fe = he;
|
|
7622
|
-
for (; fe && (
|
|
7643
|
+
for (; fe && (x.add(fe.code), !!fe.parent); )
|
|
7623
7644
|
fe = U.get(fe.parent);
|
|
7624
|
-
}), b = b.filter((he) =>
|
|
7645
|
+
}), b = b.filter((he) => x.has(he.code));
|
|
7625
7646
|
}
|
|
7626
7647
|
return b;
|
|
7627
7648
|
}, f = () => B().filter((b) => !(b.categoryLv1ID || b.categoryLv2ID)), H = () => {
|
|
7628
7649
|
const b = f();
|
|
7629
|
-
return B().filter((
|
|
7630
|
-
}, Y = () => new Set(H().map((b) => b.code)), X = () => dn(H()), Ce = (b,
|
|
7650
|
+
return B().filter((x) => !b.includes(x));
|
|
7651
|
+
}, Y = () => new Set(H().map((b) => b.code)), X = () => dn(H()), Ce = (b, x) => m() ? Ge(s, b.depth) ? x.has(b.code) : ne.has(b.code) || pe.has(b.code) : v() === b.code, qe = (b) => {
|
|
7631
7652
|
if (Ge(c, b.depth)) return !0;
|
|
7632
|
-
const
|
|
7633
|
-
return
|
|
7653
|
+
const x = Ct(B(), b);
|
|
7654
|
+
return x.length === 0 ? !0 : ao(gt(x), A());
|
|
7634
7655
|
}, _e = () => {
|
|
7635
|
-
const b = S().length,
|
|
7636
|
-
if (b <
|
|
7656
|
+
const b = S().length, x = f().length;
|
|
7657
|
+
if (b < x || b === 0 || x === 0) return !1;
|
|
7637
7658
|
for (const U of X())
|
|
7638
7659
|
if (!A().has(U)) return !1;
|
|
7639
7660
|
return !0;
|
|
7640
7661
|
}, Oe = () => {
|
|
7641
|
-
const b = X(),
|
|
7642
|
-
return !b.size || !
|
|
7662
|
+
const b = X(), x = A();
|
|
7663
|
+
return !b.size || !x.size || x.size < b.size ? !1 : Array.from(b).every((U) => x.has(U));
|
|
7643
7664
|
}, d = () => m() ? !!e.props.useSelectAll : !1, L = () => {
|
|
7644
|
-
const b = v(),
|
|
7665
|
+
const b = v(), x = T();
|
|
7645
7666
|
if (typeof b == "string")
|
|
7646
|
-
return
|
|
7647
|
-
const U = Array.isArray(b) ? b : [], de = U.filter((ae) =>
|
|
7667
|
+
return x.has(b) ? x.get(b).name : b;
|
|
7668
|
+
const U = Array.isArray(b) ? b : [], de = U.filter((ae) => x.has(ae)).map((ae) => x.get(ae).name);
|
|
7648
7669
|
return U.length ? m() && de.length > 1 ? e.props.headerFormat.replace(/\{count(:.*?)?}/g, `${de.length.toLocaleString()}`) : de.join(", ") || "" : "";
|
|
7649
7670
|
}, j = () => J.save || J.blur || J.change, ie = () => {
|
|
7650
7671
|
const b = [];
|
|
7651
7672
|
return e.props.required && b.push({
|
|
7652
7673
|
message: e.locale.TreeSelect.required.replace("{label}", e.props.label || ""),
|
|
7653
7674
|
type: "save",
|
|
7654
|
-
validator: (
|
|
7675
|
+
validator: (x) => !!x.length
|
|
7655
7676
|
}), [...b, ...e.props.rules ?? []];
|
|
7656
|
-
}, ce = async (b,
|
|
7677
|
+
}, ce = async (b, x) => {
|
|
7657
7678
|
const U = ie();
|
|
7658
7679
|
if (U.length <= 0) return;
|
|
7659
7680
|
if (e.props.disabled) return !0;
|
|
7660
|
-
J[
|
|
7661
|
-
const de = U.filter((ae) => ae.type ===
|
|
7681
|
+
J[x] = "", e.requestUpdate();
|
|
7682
|
+
const de = U.filter((ae) => ae.type === x);
|
|
7662
7683
|
for (const ae of de)
|
|
7663
7684
|
if (!await ae.validator(b))
|
|
7664
|
-
return J[
|
|
7685
|
+
return J[x] = ae.message, e.requestUpdate(), !1;
|
|
7665
7686
|
return !0;
|
|
7666
7687
|
}, Ee = async (b = "save") => j() !== "" ? !1 : await ce(S(), b) ?? !0, $e = {
|
|
7667
7688
|
validate: Ee,
|
|
@@ -7675,23 +7696,23 @@ const un = /* @__PURE__ */ new Set([
|
|
|
7675
7696
|
var b;
|
|
7676
7697
|
return (b = e.validator) == null ? void 0 : b.removeValidator($e);
|
|
7677
7698
|
}));
|
|
7678
|
-
const C = (b,
|
|
7679
|
-
const
|
|
7680
|
-
dt(S(),
|
|
7699
|
+
const C = (b, x) => b.filter((U) => E(U) !== x).map((U) => U.code), F = (b) => {
|
|
7700
|
+
const x = Array.from(new Set(b));
|
|
7701
|
+
dt(S(), x) || (I(x), e.emit("change", x, x.filter(Boolean)), ce(x, "change"), ye(x));
|
|
7681
7702
|
}, ye = (b) => {
|
|
7682
|
-
b.length === re.length ? f().forEach((
|
|
7683
|
-
const U = H().find((de) => de.code ===
|
|
7703
|
+
b.length === re.length ? f().forEach((x) => ut(W, x.depth, x.code)) : b.forEach((x) => {
|
|
7704
|
+
const U = H().find((de) => de.code === x);
|
|
7684
7705
|
U && cn(W, U.categoryLv1ID ?? "", U.categoryLv2ID ?? "");
|
|
7685
7706
|
});
|
|
7686
|
-
},
|
|
7707
|
+
}, Pe = (b, x, U) => {
|
|
7687
7708
|
if (U.shiftKey && Z.length > 0) {
|
|
7688
|
-
const de = Z[0], ae = Math.min(de.index,
|
|
7709
|
+
const de = Z[0], ae = Math.min(de.index, x), he = Math.max(de.index, x);
|
|
7689
7710
|
Z = B().slice(ae, he + 1).map((fe, Ae) => ({ item: fe, index: ae + Ae }));
|
|
7690
|
-
} else U.ctrlKey ? Z.push({ item: b, index:
|
|
7691
|
-
},
|
|
7711
|
+
} else U.ctrlKey ? Z.push({ item: b, index: x }) : Z = [{ item: b, index: x }];
|
|
7712
|
+
}, xe = (b, x) => {
|
|
7692
7713
|
if (!Ge(c, b.depth)) {
|
|
7693
7714
|
const { childDepthList: U } = Ft(B(), b);
|
|
7694
|
-
if (
|
|
7715
|
+
if (x) {
|
|
7695
7716
|
const de = gt(U);
|
|
7696
7717
|
I(S().filter((ae) => !de.has(ae))), uo(W, B(), b, s);
|
|
7697
7718
|
} else {
|
|
@@ -7699,21 +7720,21 @@ const un = /* @__PURE__ */ new Set([
|
|
|
7699
7720
|
I([...S(), ...de]);
|
|
7700
7721
|
}
|
|
7701
7722
|
}
|
|
7702
|
-
}, Me = (b,
|
|
7723
|
+
}, Me = (b, x) => {
|
|
7703
7724
|
const de = Z.map((fe) => fe.item).filter((fe) => fe.depth === s), ae = C(de, b);
|
|
7704
7725
|
let he = [];
|
|
7705
|
-
if (
|
|
7706
|
-
const { childDepthList: fe } = Ft(B(),
|
|
7726
|
+
if (x.depth !== c) {
|
|
7727
|
+
const { childDepthList: fe } = Ft(B(), x), Ae = gt(fe);
|
|
7707
7728
|
he = S().filter((Ne) => !Ae.has(Ne));
|
|
7708
7729
|
} else
|
|
7709
7730
|
he = S();
|
|
7710
|
-
b ?
|
|
7711
|
-
}, Ie = (b,
|
|
7731
|
+
b ? x.depth === c ? he = [...he, ...ae] : co(W, B(), x, s) : (vt(W), he = he.filter((fe) => !ae.some((Ae) => fe === Ae))), F(he);
|
|
7732
|
+
}, Ie = (b, x, U, de) => {
|
|
7712
7733
|
const ae = Z.some((he) => he.item.code === b.code);
|
|
7713
|
-
(Z.length <= 1 || !ae) &&
|
|
7714
|
-
}, We = (b,
|
|
7715
|
-
b[r()] !== !0 && (!U.ctrlKey && !U.shiftKey && Z.length <= 1 && Ie(b,
|
|
7716
|
-
}, Xe = (b,
|
|
7734
|
+
(Z.length <= 1 || !ae) && Pe(b, x, { shiftKey: !1, ctrlKey: !1 }), Me(!de, b), xe(b, de), e.requestUpdate();
|
|
7735
|
+
}, We = (b, x, U, de) => {
|
|
7736
|
+
b[r()] !== !0 && (!U.ctrlKey && !U.shiftKey && Z.length <= 1 && Ie(b, x, U, de), Pe(b, x, U), e.requestUpdate());
|
|
7737
|
+
}, Xe = (b, x, U) => {
|
|
7717
7738
|
if (b[r()] === !0) return;
|
|
7718
7739
|
let de = [], ae = !1;
|
|
7719
7740
|
const he = b.code;
|
|
@@ -7723,49 +7744,49 @@ const un = /* @__PURE__ */ new Set([
|
|
|
7723
7744
|
const { childDepthList: fe } = Ft(B(), b), Ae = gt(fe);
|
|
7724
7745
|
ae = ao(Ae, A()) && Ae.size === A().size, ae ? uo(W, B(), b, s) : (de = [], vt(W), co(W, B(), b, s));
|
|
7725
7746
|
}
|
|
7726
|
-
F(de),
|
|
7747
|
+
F(de), xe(b, ae), Pe(b, x, U), e.requestUpdate();
|
|
7727
7748
|
}, ot = (b) => {
|
|
7728
7749
|
I(b), Je(!1);
|
|
7729
|
-
}, Qe = (b,
|
|
7750
|
+
}, Qe = (b, x) => {
|
|
7730
7751
|
B().filter((de) => de.parent === b).forEach((de) => {
|
|
7731
|
-
if (de.isHidden =
|
|
7732
|
-
const he = !
|
|
7752
|
+
if (de.isHidden = x, de.depth === s) return;
|
|
7753
|
+
const he = !x && !de.isExpanded ? !0 : x;
|
|
7733
7754
|
Qe(de.code, he);
|
|
7734
7755
|
});
|
|
7735
|
-
}, Ze = (b,
|
|
7736
|
-
|
|
7756
|
+
}, Ze = (b, x) => {
|
|
7757
|
+
x.stopPropagation(), b.isExpanded = !b.isExpanded, Qe(b.code, !b.isExpanded), queueMicrotask(() => Fe.measure()), e.requestUpdate();
|
|
7737
7758
|
}, g = (b) => {
|
|
7738
|
-
Q.forEach((
|
|
7739
|
-
|
|
7759
|
+
Q.forEach((x) => {
|
|
7760
|
+
x.isExpanded = b, x.depth > 0 ? x.isHidden = !b : x.isHidden = !1;
|
|
7740
7761
|
}), queueMicrotask(() => Fe.measure()), e.requestUpdate();
|
|
7741
7762
|
}, N = (b) => {
|
|
7742
7763
|
b.stopPropagation(), Y().size === A().size && [...Y()].every((U) => A().has(U)) ? (f().forEach((U) => St(W, U.depth, U.code)), F([])) : (vt(W), f().forEach((U) => ut(W, U.depth, U.code)), F([...Y()]));
|
|
7743
7764
|
}, R = (b) => {
|
|
7744
7765
|
if (b.stopPropagation(), Oe()) {
|
|
7745
|
-
const
|
|
7746
|
-
F(S().filter((U) => !
|
|
7766
|
+
const x = X();
|
|
7767
|
+
F(S().filter((U) => !x.has(U))), f().forEach((U) => St(W, U.depth, U.code));
|
|
7747
7768
|
} else {
|
|
7748
|
-
const
|
|
7749
|
-
F(Array.from(
|
|
7769
|
+
const x = /* @__PURE__ */ new Set([...S(), ...Y()]);
|
|
7770
|
+
F(Array.from(x)), f().forEach((U) => ut(W, U.depth, U.code));
|
|
7750
7771
|
}
|
|
7751
7772
|
}, te = (b) => {
|
|
7752
7773
|
q = b.target.scrollTop > 0, e.requestUpdate();
|
|
7753
7774
|
}, se = () => {
|
|
7754
7775
|
const b = o.value;
|
|
7755
7776
|
if (!b) return;
|
|
7756
|
-
const
|
|
7757
|
-
let U = `${
|
|
7758
|
-
e.props.listBoxWidth && (U = typeof e.props.listBoxWidth == "number" ? `${e.props.listBoxWidth}px` : e.props.listBoxWidth), G = { width: String(U), left: `${
|
|
7759
|
-
}, me = (b,
|
|
7760
|
-
const de = window.innerHeight || document.documentElement.clientHeight, ae = window.innerWidth || document.documentElement.clientWidth, he = b.getBoundingClientRect(), fe =
|
|
7777
|
+
const x = b.getBoundingClientRect();
|
|
7778
|
+
let U = `${x.width}px`;
|
|
7779
|
+
e.props.listBoxWidth && (U = typeof e.props.listBoxWidth == "number" ? `${e.props.listBoxWidth}px` : e.props.listBoxWidth), G = { width: String(U), left: `${x.left}px`, top: `${x.top + (k ? 0 : x.height)}px` }, e.requestUpdate();
|
|
7780
|
+
}, me = (b, x, U = 10) => {
|
|
7781
|
+
const de = window.innerHeight || document.documentElement.clientHeight, ae = window.innerWidth || document.documentElement.clientWidth, he = b.getBoundingClientRect(), fe = x.getBoundingClientRect(), Ae = he.bottom + fe.height + U > de;
|
|
7761
7782
|
if (!Ae) return !1;
|
|
7762
7783
|
const Ne = he.top - fe.height - U < 0, Re = he.right + fe.width + U > ae, Ue = he.left - fe.width - U < 0;
|
|
7763
7784
|
return Ae && !Ne || Re && !Ue;
|
|
7764
7785
|
}, ge = (b) => {
|
|
7765
7786
|
b.target !== h && Je(!1);
|
|
7766
7787
|
}, Se = (b) => {
|
|
7767
|
-
var
|
|
7768
|
-
!((
|
|
7788
|
+
var x, U;
|
|
7789
|
+
!((x = t.value) != null && x.contains(b.target)) && !((U = l.value) != null && U.contains(b.target)) && (Je(!1), document.removeEventListener("click", Se, { capture: !0 }));
|
|
7769
7790
|
}, Ve = (b) => {
|
|
7770
7791
|
var U;
|
|
7771
7792
|
`${b.ctrlKey ? "ctrl+" : ""}${b.altKey ? "alt+" : ""}${b.key.toLowerCase()}` === "escape" && (Je(!1), (U = n.value) == null || U.focus());
|
|
@@ -7776,17 +7797,17 @@ const un = /* @__PURE__ */ new Set([
|
|
|
7776
7797
|
let Ke = null;
|
|
7777
7798
|
const Je = (b) => {
|
|
7778
7799
|
y !== b && (y = b, e.requestUpdate(), b ? (Ke = Mt(), document.body.addEventListener("scroll", ge, { capture: !0 }), document.addEventListener("click", Se, { capture: !0 }), J.save = "", window.addEventListener("keydown", Ve), se(), queueMicrotask(() => {
|
|
7779
|
-
var
|
|
7780
|
-
o.value && h && (k = me(o.value, h)), se(), i.value ? i.value.focus() : (
|
|
7800
|
+
var x;
|
|
7801
|
+
o.value && h && (k = me(o.value, h)), se(), i.value ? i.value.focus() : (x = n.value) == null || x.focus();
|
|
7781
7802
|
})) : (Ke == null || Ke.release(), Ke = null, document.body.removeEventListener("scroll", ge, { capture: !0 }), document.removeEventListener("click", Se, { capture: !0 }), ce(S(), "blur"), window.removeEventListener("keydown", Ve), $ = "", e.emit("close")));
|
|
7782
7803
|
}, rt = () => {
|
|
7783
7804
|
e.props.disabled || Je(!y);
|
|
7784
7805
|
};
|
|
7785
7806
|
let st;
|
|
7786
7807
|
const At = (b) => {
|
|
7787
|
-
const
|
|
7808
|
+
const x = b.target.value;
|
|
7788
7809
|
st && clearTimeout(st), st = setTimeout(() => {
|
|
7789
|
-
$ =
|
|
7810
|
+
$ = x, e.requestUpdate(), queueMicrotask(() => {
|
|
7790
7811
|
Fe.setOptions({ ...Fe.options, count: B().length }), Fe.measure();
|
|
7791
7812
|
});
|
|
7792
7813
|
}, 300);
|
|
@@ -7798,46 +7819,46 @@ const un = /* @__PURE__ */ new Set([
|
|
|
7798
7819
|
count: 0,
|
|
7799
7820
|
getScrollElement: () => h,
|
|
7800
7821
|
estimateSize: (b) => {
|
|
7801
|
-
const
|
|
7802
|
-
return
|
|
7822
|
+
const x = B()[b];
|
|
7823
|
+
return x != null && x.isHidden ? 0 : ee() && x && Ge(c, x.depth) ? K : M;
|
|
7803
7824
|
},
|
|
7804
7825
|
// 드롭다운이 아직 배치되지 않은 시점에는 높이가 0 으로 읽힌다. 0 을 캐시하면 행이 겹쳐 사라지고,
|
|
7805
7826
|
// 다음 측정에서 virtual-core 가 그 차이만큼 스크롤을 보정해 목록이 열리자마자 아래로 밀린다.
|
|
7806
7827
|
measureElement: (b) => {
|
|
7807
|
-
const
|
|
7808
|
-
return
|
|
7828
|
+
const x = b.getBoundingClientRect().height;
|
|
7829
|
+
return x > 0 ? x : Fe.options.estimateSize(Number(b.dataset.index));
|
|
7809
7830
|
},
|
|
7810
7831
|
overscan: 3,
|
|
7811
7832
|
observeElementRect: Lt,
|
|
7812
|
-
observeElementOffset:
|
|
7813
|
-
scrollToFn:
|
|
7833
|
+
observeElementOffset: xt,
|
|
7834
|
+
scrollToFn: Pt,
|
|
7814
7835
|
onChange: () => e.requestUpdate()
|
|
7815
7836
|
});
|
|
7816
7837
|
e.onCleanup(Fe._didMount());
|
|
7817
7838
|
const Uo = (b) => {
|
|
7818
7839
|
h = b ?? null, b && (Fe._willUpdate(), e.requestUpdate());
|
|
7819
|
-
}, _o = (b,
|
|
7820
|
-
if (!b ||
|
|
7840
|
+
}, _o = (b, x) => {
|
|
7841
|
+
if (!b || x !== c) return;
|
|
7821
7842
|
const U = b.getBoundingClientRect().height;
|
|
7822
7843
|
U > 0 && (K = U);
|
|
7823
|
-
}, Wo = (b) => b.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), jt = (b,
|
|
7824
|
-
if (!$ || !Ge(c,
|
|
7844
|
+
}, Wo = (b) => b.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), jt = (b, x) => {
|
|
7845
|
+
if (!$ || !Ge(c, x)) return [{ part: b, highlight: !1 }];
|
|
7825
7846
|
const U = new RegExp(`(${Wo($)})`, "gi");
|
|
7826
7847
|
return b.split(U).map((de) => ({ part: de, highlight: $.toLowerCase() === de.toLowerCase() }));
|
|
7827
7848
|
};
|
|
7828
7849
|
let Xt = v();
|
|
7829
7850
|
const Ko = (b) => {
|
|
7830
|
-
const { index:
|
|
7851
|
+
const { index: x, item: U, start: de, isSelected: ae, isIndeterminate: he, isDisabled: fe, isFocused: Ae } = b;
|
|
7831
7852
|
if (U.isHidden) return w;
|
|
7832
7853
|
const Ne = e.props, Re = U.depth, Ue = Ge(c, Re), je = m(), nt = (Be) => {
|
|
7833
7854
|
Re !== c ? Ze(U, Be) : ot(U.code);
|
|
7834
7855
|
}, ht = (Be) => {
|
|
7835
|
-
je ? We(U,
|
|
7856
|
+
je ? We(U, x, Be, ae && qe(U)) : nt(Be);
|
|
7836
7857
|
}, Dt = () => {
|
|
7837
|
-
Ie(U,
|
|
7858
|
+
Ie(U, x, {}, ae && qe(U));
|
|
7838
7859
|
}, qt = Ue ? "하나만" : "그룹만";
|
|
7839
7860
|
return a`<div
|
|
7840
|
-
data-index=${
|
|
7861
|
+
data-index=${x}
|
|
7841
7862
|
${le((Be) => {
|
|
7842
7863
|
Be && (Fe.measureElement(Be), _o(Be, Re));
|
|
7843
7864
|
})}
|
|
@@ -7887,7 +7908,7 @@ const un = /* @__PURE__ */ new Set([
|
|
|
7887
7908
|
)}`}
|
|
7888
7909
|
</div>
|
|
7889
7910
|
${!je && ae && Ue ? Wt("12", "var(--moz-color-accent)", !1, "icon-check") : w}
|
|
7890
|
-
${je && Ne.useSpecificSelect && !fe ? a`<button type="button" class="item-only item-only-btn" @click=${(Be) => Xe(U,
|
|
7911
|
+
${je && Ne.useSpecificSelect && !fe ? a`<button type="button" class="item-only item-only-btn" @click=${(Be) => Xe(U, x, Be)}>
|
|
7891
7912
|
${qt}
|
|
7892
7913
|
</button>` : w}
|
|
7893
7914
|
</div>
|
|
@@ -7897,9 +7918,9 @@ const un = /* @__PURE__ */ new Set([
|
|
|
7897
7918
|
api: { validate: Ee },
|
|
7898
7919
|
render() {
|
|
7899
7920
|
const b = e.props;
|
|
7900
|
-
b.itemsSource !== O && (O = b.itemsSource,
|
|
7901
|
-
const
|
|
7902
|
-
|
|
7921
|
+
b.itemsSource !== O && (O = b.itemsSource, P());
|
|
7922
|
+
const x = v();
|
|
7923
|
+
x !== Xt && (Xt = x, typeof x != "string" && ye(S()));
|
|
7903
7924
|
const U = typeof b.width == "number" ? `${Te(b.width)}rem` : b.width, de = e.slots.has("icon") ? e.slot("icon", { isOpen: y }) : y ? Gt("14", "var(--moz-color-accent)") : Kt("14", "var(--moz-color-text-subtle)", b.disabled), ae = we(b, un), { aria: he, dom: fe } = pt(ae);
|
|
7904
7925
|
return a`
|
|
7905
7926
|
<div
|
|
@@ -7942,16 +7963,16 @@ const un = /* @__PURE__ */ new Set([
|
|
|
7942
7963
|
},
|
|
7943
7964
|
renderPortal() {
|
|
7944
7965
|
if (!y) return w;
|
|
7945
|
-
const b = e.props,
|
|
7946
|
-
Fe.options.count !==
|
|
7966
|
+
const b = e.props, x = B();
|
|
7967
|
+
Fe.options.count !== x.length && Fe.setOptions({ ...Fe.options, count: x.length }), Fe._willUpdate();
|
|
7947
7968
|
const U = Fe.getTotalSize(), de = A(), ae = zt(
|
|
7948
7969
|
Fe.getVirtualItems(),
|
|
7949
|
-
|
|
7970
|
+
x.length,
|
|
7950
7971
|
M,
|
|
7951
7972
|
h
|
|
7952
7973
|
).map((Ne) => {
|
|
7953
|
-
if (Ne.index >=
|
|
7954
|
-
const Re =
|
|
7974
|
+
if (Ne.index >= x.length) return null;
|
|
7975
|
+
const Re = x[Ne.index];
|
|
7955
7976
|
if (!Re) return null;
|
|
7956
7977
|
let Ue = Ce(Re, de), je = !1;
|
|
7957
7978
|
if (m() && !Ge(c, Re.depth)) {
|
|
@@ -7989,19 +8010,19 @@ const un = /* @__PURE__ */ new Set([
|
|
|
7989
8010
|
</div>
|
|
7990
8011
|
</div>
|
|
7991
8012
|
|
|
7992
|
-
${d() && re.length > 0 &&
|
|
8013
|
+
${d() && re.length > 0 && x.length > 0 ? a`<div class=${V("list-box-item multi-select-item multi-select-all", { "is-scrolled": q })} @click=${R}>
|
|
7993
8014
|
<div class="select-all-content">
|
|
7994
8015
|
${It({ indeterminate: Ae > 0 && _e() === !1, checked: Oe() })}
|
|
7995
8016
|
<div><span title=${he}>${he}</span></div>
|
|
7996
8017
|
</div>
|
|
7997
|
-
${$ &&
|
|
8018
|
+
${$ && x.length > 0 ? a`<button type="button" class="item-only" @click=${N}>${e.locale.TreeSelect.specificResults}</button>` : w}
|
|
7998
8019
|
</div>` : w}
|
|
7999
8020
|
|
|
8000
8021
|
<div class="list-box-container" @scroll=${te} ${le(Uo)}>
|
|
8001
8022
|
<div class="inner-container" style=${oe({ height: `${U}px` })}>
|
|
8002
8023
|
${ae.map((Ne) => Ko(Ne))}
|
|
8003
8024
|
</div>
|
|
8004
|
-
${
|
|
8025
|
+
${x.length <= 0 ? a`<div class="list-box-item loading not-hover">
|
|
8005
8026
|
${e.slots.has("empty") ? e.slot("empty") : e.locale.TreeSelect.noData}
|
|
8006
8027
|
</div>` : w}
|
|
8007
8028
|
</div>
|
|
@@ -8019,6 +8040,7 @@ const un = /* @__PURE__ */ new Set([
|
|
|
8019
8040
|
}), mi = {
|
|
8020
8041
|
name: "MozTreeSelect",
|
|
8021
8042
|
core: pn,
|
|
8043
|
+
booleanProps: ["disabled", "readonly", "required", "useFilter", "useMultiSelect", "useSelectAll", "useSpecificSelect"],
|
|
8022
8044
|
props: [
|
|
8023
8045
|
"itemsSource",
|
|
8024
8046
|
"label",
|
|
@@ -8061,12 +8083,12 @@ const un = /* @__PURE__ */ new Set([
|
|
|
8061
8083
|
k();
|
|
8062
8084
|
const D = (O) => $() ? O.clientHeight : O.clientWidth, G = () => D(i[u]), Z = () => D(h[u]), J = () => D(i[v]), ne = () => D(h[v]), pe = (O) => {
|
|
8063
8085
|
if (!s) return;
|
|
8064
|
-
let
|
|
8065
|
-
S = +(
|
|
8086
|
+
let P = $() ? O.movementY : O.movementX;
|
|
8087
|
+
S = +(P > 0), S !== I && I !== null && (u = p, v = p + 1), I = S;
|
|
8066
8088
|
const T = n[p].getBoundingClientRect(), _ = $() ? O.clientY - T.top + window.scrollY : O.clientX - T.left + window.scrollX;
|
|
8067
|
-
(S === 0 && _ > 10 || S === 1 && _ < -10) && (
|
|
8089
|
+
(S === 0 && _ > 10 || S === 1 && _ < -10) && (P = P / (Math.abs(_) / 10)), (S === 0 && $() ? O.clientY < T.top : O.clientX < T.left) && (y = 0), (S === 1 && $() ? O.clientY > T.top : O.clientX > T.left) && (y = 0);
|
|
8068
8090
|
const E = (B) => l[B][$() ? "clientHeight" : "clientWidth"];
|
|
8069
|
-
if (m = E(u) +
|
|
8091
|
+
if (m = E(u) + P, r = E(v) + E(u) - m, !(m > G() && m < Z() || m < G() && S === 1 || m > G() && S === 0)) {
|
|
8070
8092
|
if (m < G()) {
|
|
8071
8093
|
if (u - 1 < 0 && S === 0) {
|
|
8072
8094
|
y += $() ? O.movementY : O.movementX;
|
|
@@ -8098,7 +8120,7 @@ const un = /* @__PURE__ */ new Set([
|
|
|
8098
8120
|
}
|
|
8099
8121
|
if (S === 0 && y > 0 || S === 1 && y < 0 || S === 0 && r > ne() || S === 1 && r < J() || S === 0 && m < G() || S === 1 && m > Z())
|
|
8100
8122
|
return;
|
|
8101
|
-
const z = t[$() ? "clientHeight" : "clientWidth"], A = E(u) +
|
|
8123
|
+
const z = t[$() ? "clientHeight" : "clientWidth"], A = E(u) + P;
|
|
8102
8124
|
c[u] = `clamp(${G()}px, ${A / z * 100}%, ${Z()}px)`, c[v] = "1fr", e.requestUpdate(), queueMicrotask(() => {
|
|
8103
8125
|
const B = E(v);
|
|
8104
8126
|
c[v] = `clamp(${J()}px, ${B / z * 100}%, ${ne()}px)`, e.requestUpdate();
|
|
@@ -8107,8 +8129,8 @@ const un = /* @__PURE__ */ new Set([
|
|
|
8107
8129
|
p = -1, u = -1, v = -1, s = !1, y = 0, document.removeEventListener("mousemove", pe), document.removeEventListener("mouseup", W), e.requestUpdate();
|
|
8108
8130
|
}, M = (O) => {
|
|
8109
8131
|
O.preventDefault(), s = !0, $() ? O.clientY : O.clientX, document.addEventListener("mousemove", pe), document.addEventListener("mouseup", W), e.requestUpdate();
|
|
8110
|
-
}, K = (O,
|
|
8111
|
-
p =
|
|
8132
|
+
}, K = (O, P) => {
|
|
8133
|
+
p = P, u = P, v = P + 1, y = 0, M(O);
|
|
8112
8134
|
};
|
|
8113
8135
|
let ee = null;
|
|
8114
8136
|
const re = () => {
|
|
@@ -8127,14 +8149,14 @@ const un = /* @__PURE__ */ new Set([
|
|
|
8127
8149
|
e.props.panes !== Q && (Q = e.props.panes, queueMicrotask(() => {
|
|
8128
8150
|
k(), e.requestUpdate();
|
|
8129
8151
|
}));
|
|
8130
|
-
const
|
|
8152
|
+
const P = $() ? "gridTemplateRows" : "gridTemplateColumns", T = O.length - 1, _ = we(e.props, mn);
|
|
8131
8153
|
return a`
|
|
8132
8154
|
<div
|
|
8133
8155
|
${ue(_)}
|
|
8134
8156
|
class=${V("splitter", e.props.class)}
|
|
8135
8157
|
style=${oe({
|
|
8136
8158
|
display: "grid",
|
|
8137
|
-
[
|
|
8159
|
+
[P]: c.join(" "),
|
|
8138
8160
|
width: "100%",
|
|
8139
8161
|
height: "100%",
|
|
8140
8162
|
overflow: "hidden",
|
|
@@ -8147,7 +8169,7 @@ const un = /* @__PURE__ */ new Set([
|
|
|
8147
8169
|
${O.map((E, z) => {
|
|
8148
8170
|
const A = z === T ? "100%" : c[z + 1] !== "0" ? "calc(100% - 10px) 10px" : "100%";
|
|
8149
8171
|
return a`<div
|
|
8150
|
-
style=${oe({ display: "grid", [
|
|
8172
|
+
style=${oe({ display: "grid", [P]: A, overflow: "hidden" })}
|
|
8151
8173
|
${le((B) => {
|
|
8152
8174
|
l[z] = B ?? null;
|
|
8153
8175
|
})}
|
|
@@ -8199,6 +8221,7 @@ const un = /* @__PURE__ */ new Set([
|
|
|
8199
8221
|
}), hi = {
|
|
8200
8222
|
name: "MozSplitPane",
|
|
8201
8223
|
core: hn,
|
|
8224
|
+
booleanProps: ["horizontal"],
|
|
8202
8225
|
props: ["horizontal", "panes"],
|
|
8203
8226
|
emits: [],
|
|
8204
8227
|
// Vue 는 제공된 슬롯 전부(Object.keys) 등록하지만 React(createMozComponent)는 spec.slots 만 등록하므로
|
|
@@ -8412,6 +8435,7 @@ const Sn = be({
|
|
|
8412
8435
|
}), fi = {
|
|
8413
8436
|
name: "MozController",
|
|
8414
8437
|
core: Sn,
|
|
8438
|
+
booleanProps: ["customQueryParamsPanel", "showFavorite", "showFilterButton", "showPreset"],
|
|
8415
8439
|
props: [
|
|
8416
8440
|
"height",
|
|
8417
8441
|
"setControlHeight",
|
|
@@ -8462,7 +8486,7 @@ function En(e = "var(--moz-color-on-accent)") {
|
|
|
8462
8486
|
></path>
|
|
8463
8487
|
</svg>`;
|
|
8464
8488
|
}
|
|
8465
|
-
function
|
|
8489
|
+
function Pn(e = "var(--moz-color-on-accent)") {
|
|
8466
8490
|
return a`<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
8467
8491
|
<mask id="mask0_6027_4458" style="mask-type: luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="30" height="30">
|
|
8468
8492
|
<path d="M30 0H0V30H30V0Z" fill="#FFF"></path>
|
|
@@ -8475,7 +8499,7 @@ function xn(e = "var(--moz-color-on-accent)") {
|
|
|
8475
8499
|
</g>
|
|
8476
8500
|
</svg>`;
|
|
8477
8501
|
}
|
|
8478
|
-
function
|
|
8502
|
+
function xn(e = "var(--moz-color-on-accent)") {
|
|
8479
8503
|
return a`<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
8480
8504
|
<path
|
|
8481
8505
|
fill-rule="evenodd"
|
|
@@ -8543,7 +8567,7 @@ function Mn(e) {
|
|
|
8543
8567
|
}
|
|
8544
8568
|
}
|
|
8545
8569
|
function Vn(e) {
|
|
8546
|
-
return e === "error" ?
|
|
8570
|
+
return e === "error" ? Pn("var(--moz-color-on-accent)") : e === "info" ? xn("var(--moz-color-on-accent)") : e === "success" ? En("var(--moz-color-on-accent)") : Ln("var(--moz-color-on-accent)");
|
|
8547
8571
|
}
|
|
8548
8572
|
const Ho = be({
|
|
8549
8573
|
name: "moz-toast",
|
|
@@ -8696,6 +8720,7 @@ const Ho = be({
|
|
|
8696
8720
|
}, vi = {
|
|
8697
8721
|
name: "MozToast",
|
|
8698
8722
|
core: Ho,
|
|
8723
|
+
booleanProps: ["composed", "dismissible", "inline", "pauseOnHover", "queue", "showProgress"],
|
|
8699
8724
|
props: [
|
|
8700
8725
|
"message",
|
|
8701
8726
|
"type",
|
|
@@ -8852,6 +8877,7 @@ const Dn = No, qn = /* @__PURE__ */ new Set([
|
|
|
8852
8877
|
}), wi = {
|
|
8853
8878
|
name: "MozTooltip",
|
|
8854
8879
|
core: Rn,
|
|
8880
|
+
booleanProps: ["arrow", "open"],
|
|
8855
8881
|
props: ["open", "anchor", "text", "side", "align", "sideOffset", "collisionPadding", "arrow", "tooltipId"],
|
|
8856
8882
|
emits: ["placed"],
|
|
8857
8883
|
slots: ["content"],
|
|
@@ -9002,6 +9028,7 @@ const Dn = No, qn = /* @__PURE__ */ new Set([
|
|
|
9002
9028
|
}), bi = {
|
|
9003
9029
|
name: "MozPopover",
|
|
9004
9030
|
core: Hn,
|
|
9031
|
+
booleanProps: ["matchTriggerWidth", "open", "trapFocus"],
|
|
9005
9032
|
props: [
|
|
9006
9033
|
"open",
|
|
9007
9034
|
"anchor",
|
|
@@ -9068,6 +9095,7 @@ const Dn = No, qn = /* @__PURE__ */ new Set([
|
|
|
9068
9095
|
}), Ci = {
|
|
9069
9096
|
name: "MozCollapsible",
|
|
9070
9097
|
core: _n,
|
|
9098
|
+
booleanProps: ["disabled", "forceMount", "open"],
|
|
9071
9099
|
props: ["open", "contentId", "disabled", "forceMount"],
|
|
9072
9100
|
emits: ["heightChange"],
|
|
9073
9101
|
slots: ["content"],
|
|
@@ -9190,7 +9218,7 @@ const Dn = No, qn = /* @__PURE__ */ new Set([
|
|
|
9190
9218
|
E && (re(), e.emit("scroll", { scrollTop: E.scrollTop, scrollLeft: E.scrollLeft }));
|
|
9191
9219
|
}, O = () => {
|
|
9192
9220
|
pe(), W(), t && t.removeEventListener("scroll", Q), s == null || s.disconnect(), s = null, m == null || m.disconnect(), m = null, t = null;
|
|
9193
|
-
},
|
|
9221
|
+
}, P = () => {
|
|
9194
9222
|
const E = e.props.viewport ?? null;
|
|
9195
9223
|
if (E !== t && (O(), t = E, !!t)) {
|
|
9196
9224
|
if (t.addEventListener("scroll", Q, { passive: !0 }), typeof ResizeObserver < "u") {
|
|
@@ -9212,14 +9240,14 @@ const Dn = No, qn = /* @__PURE__ */ new Set([
|
|
|
9212
9240
|
const ie = z.pointerId, ce = (F) => {
|
|
9213
9241
|
v = F.pointerType !== "touch" && [r, n, i].some((ye) => {
|
|
9214
9242
|
if (!ye || ye.hidden) return !1;
|
|
9215
|
-
const
|
|
9216
|
-
return F.clientX >=
|
|
9243
|
+
const Pe = ye.getBoundingClientRect();
|
|
9244
|
+
return F.clientX >= Pe.left && F.clientX < Pe.right && F.clientY >= Pe.top && F.clientY < Pe.bottom;
|
|
9217
9245
|
});
|
|
9218
9246
|
}, Ee = (F) => {
|
|
9219
9247
|
if (F.pointerId !== ie) return;
|
|
9220
9248
|
ce(F);
|
|
9221
|
-
const ye = (f ? F.clientY : F.clientX) - X,
|
|
9222
|
-
f ? A.scrollTop =
|
|
9249
|
+
const ye = (f ? F.clientY : F.clientX) - X, Pe = Ce + ye / L * j;
|
|
9250
|
+
f ? A.scrollTop = Pe : A.scrollLeft = Pe;
|
|
9223
9251
|
}, $e = (F) => {
|
|
9224
9252
|
F.pointerId === ie && (ce(F), F.type !== "pointerup" && (v = !1), I == null || I(), e.requestUpdate());
|
|
9225
9253
|
};
|
|
@@ -9259,7 +9287,7 @@ const Dn = No, qn = /* @__PURE__ */ new Set([
|
|
|
9259
9287
|
};
|
|
9260
9288
|
return {
|
|
9261
9289
|
render() {
|
|
9262
|
-
|
|
9290
|
+
P(), M();
|
|
9263
9291
|
const E = e.props, z = we(E, Gn), A = K("vertical") && K("horizontal");
|
|
9264
9292
|
return a`<div
|
|
9265
9293
|
class=${V("moz-scroll-area-bars", E.class)}
|
|
@@ -9314,6 +9342,7 @@ const er = be({
|
|
|
9314
9342
|
}), Si = {
|
|
9315
9343
|
name: "MozBadge",
|
|
9316
9344
|
core: er,
|
|
9345
|
+
booleanProps: ["dot"],
|
|
9317
9346
|
props: ["tone", "appearance", "size", "dot", "text"],
|
|
9318
9347
|
emits: [],
|
|
9319
9348
|
slots: ["default"],
|
|
@@ -9396,6 +9425,7 @@ const nr = be({
|
|
|
9396
9425
|
}), ki = {
|
|
9397
9426
|
name: "MozChip",
|
|
9398
9427
|
core: nr,
|
|
9428
|
+
booleanProps: ["disabled", "labelInteractive", "removable", "selected"],
|
|
9399
9429
|
props: ["tone", "appearance", "size", "selected", "disabled", "removable", "labelInteractive", "removeLabel", "text"],
|
|
9400
9430
|
emits: ["click", "remove"],
|
|
9401
9431
|
slots: ["icon", "default"],
|
|
@@ -9542,6 +9572,7 @@ const fr = be({
|
|
|
9542
9572
|
}), Ei = {
|
|
9543
9573
|
name: "MozCallout",
|
|
9544
9574
|
core: fr,
|
|
9575
|
+
booleanProps: ["compact", "dismissible", "hideIcon", "live"],
|
|
9545
9576
|
props: ["tone", "title", "text", "dismissible", "dismissLabel", "hideIcon", "compact", "live"],
|
|
9546
9577
|
emits: ["dismiss"],
|
|
9547
9578
|
slots: ["icon", "heading", "default"],
|
|
@@ -9653,8 +9684,8 @@ export {
|
|
|
9653
9684
|
Mo as iconCheckBoxChecked,
|
|
9654
9685
|
Vo as iconCheckboxIndeterminate,
|
|
9655
9686
|
Qs as iconClose,
|
|
9656
|
-
|
|
9657
|
-
|
|
9687
|
+
Po as iconFavorite,
|
|
9688
|
+
xo as iconFavoriteFilled,
|
|
9658
9689
|
Ao as iconInfo,
|
|
9659
9690
|
Bs as iconPasswordHidden,
|
|
9660
9691
|
Os as iconPasswordVisible,
|