@vmscloud/moz-ui-components-core 0.1.43 → 0.1.45
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/components/radio/index.d.ts +6 -2
- package/dist/components/radio/radio.core.d.ts +24 -0
- package/dist/index.cjs +679 -676
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1706 -1699
- package/dist/index.js.map +1 -1
- package/dist/styles/default/index.css +30 -0
- package/dist/styles/default/radio.css +30 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";var El=Object.defineProperty;var Pl=(e,t,
|
|
2
|
-
조회 조건을 변경하였다면, 조회 버튼을 다시 눌러주세요.`,searchEmptyHeader:"검색 결과 없음",searchEmptyContent:"필터 값을 확인하고 다시 시도해 주세요."},TableSelect:{searchPlaceholder:"검색",emptyText:"데이터가 없습니다",requiredMessage:"{label} 은(는) 필수입니다",footerSelect:"선택",footerNavigate:"이동",footerClose:"닫기"},Common:{requiredMessage:"{label} 은(는) 필수입니다"},Grid:{layoutSetting:"보기 설정",filter:"필터",sort:"정렬",customCellStyle:"조건부 서식 설정",reset:"초기화",searchFilter:"검색",newView:"새 뷰",selectAll:"전체 선택",columnPicker:"열 표시/숨김 설정",viewToolbar:"Tool Bar 보기",viewFooter:"Footer 보기",viewGroupPanel:"그룹 패널 보기",resetFilterAndSort:"필터 및 정렬 초기화",defaultView:"기본 뷰",filterPopup:"필터 설정",resetFilter:"필터 초기화",addFilter:"필터 추가",sortingPopup:"정렬 설정",ascending:"오름차순",descending:"내림차순",resetSort:"정렬 초기화",addSort:"정렬 추가",symbolEqual:"같음",symbolNotEqual:"같지 않음",symbolContains:"포함",symbolNotContains:"포함하지 않음",symbolLessThan:"보다 작음",symbolGreaterThan:"보다 큼",symbolLessOrEqual:"이하",symbolGreaterOrEqual:"이상",symbolEmpty:"비어 있음",symbolNotEmpty:"비어 있지 않음",customCellRuleNamePlaceholder:"규칙 이름을 입력하세요",addFormulaCondition:"조건 추가",applicationColumn:"적용 열",backgroundColor:"배경색",fontColor:"글꼴 색",resetCustomCell:"초기화",addFormulaConditionSet:"규칙 추가",customColor:"사용자 지정 색상",formulaConditionSet:"새 규칙",contextFilterAndSort:"필터 및 정렬",contextAddFilter:"필터 추가",contextSelectFilter:"선택 값으로 필터",contextResetColumnFilter:"열 필터 초기화",contextResetColumnSort:"열 정렬 초기화",contextResetColumnAll:"열 필터/정렬 초기화",contextDataCopy:"선택한 데이터 복사",contextDataExcelCopy:"Excel 복사",contextDataWithHeaderCopy:"선택한 데이터 복사 (헤더 포함)",contextPin:"열 고정 / 해제",contextColumnPicker:"열 표시/숨김 설정",contextMoveColumnFirst:"첫 번째 열로 보내기",contextAutoSizeColumns:"열 너비 자동 조정",contextGroupPanel:"그룹 패널",contextGroupToggle:"그룹 접기/펼치기",contextGroupCollapseAll:"모든 그룹 접기",contextGroupExpandAll:"모든 그룹 펼치기",groupPanelPlaceholder:"열을 드래그 앤 드롭하여 그룹을 만듭니다.",contextBulkEdit:"데이터 일괄변경 [{name}]",contextImport:"가져오기",contextImportExcel:"Excel 가져오기 (덮어쓰기)",contextImportExcelAppend:"Excel 가져오기 (추가)",contextExport:"내보내기",contextExportXlsx:"엑셀 내보내기 (xlsx)",contextExportCsv:"CSV 내보내기 (csv)",contextSum:"합계",check:"확인",cancel:"취소",save:"저장",remove:"삭제",close:"닫기",pause:"일시 중지",add:"추가",immediateApply:"바로 적용",warning:"경고",mozWarning:"경고",confirmCancel:"취소하시겠습니까?",alreadyExcelProgress:"Excel 작업이 이미 진행 중입니다.",downloadFail:"다운로드에 실패했습니다.",addDataWithFilterSort:"필터/정렬이 적용된 상태에서 데이터를 추가하시겠습니까?",resetAndAdd:"초기화 후 추가",confirmDeleteGeneral:"{name}을(를) 삭제하시겠습니까?",toastCopySuccess:"복사되었습니다.",toastSaveSuccess:"저장되었습니다.",toastSaveError:"저장에 실패했습니다.",toastResetSuccess:"초기화되었습니다.",toastRequiredVal:"필수 값을 입력하세요.",excelInvalidExcel:"유효하지 않은 Excel 파일입니다.",excelInvalidUpload:"유효하지 않은 업로드 데이터입니다.",downloadFormat:"서식 내려받기",click:"클릭",drag:"드래그",overwriteSelected:"선택한 항목을 덮어쓰시겠습니까?",fileOverwrite:"파일을 덮어쓰시겠습니까?",dropHere:"이 곳을 클릭 또는 파일을 드래그 하세요.",dropHerePrefix:"이 곳을 ",dropHereMiddle:" 또는 파일을 ",dropHereSuffix:" 하세요.",withFormatting:"서식 포함",requestTimedOut:"요청 시간이 초과되었습니다.",serverError:"서버 오류가 발생했습니다.",total:"전체",correct:"정상",error:"오류",success:"성공",fail:"실패",excelExportConfirmLargeData:"대용량 데이터를 내보내시겠습니까?",footerTotalRowCount:"총 개수: {totalRowCount}개",footerFilteredRowCount:"{filterdRowCount} / {totalRowCount}",aggregateAverage:"평균",aggregateCount:"개수",aggregateMin:"최소",aggregateMax:"최대",aggregateSum:"합계",settings:"설정",collapseToolbar:"툴바 접기",expandToolbar:"툴바 펼치기",searchPrev:"이전 검색 결과",searchNext:"다음 검색 결과",searchGoTo:"결과 번호로 이동",searching:"검색 중...",deleteCondition:"조건 삭제",deleteSort:"정렬 삭제",selectPlaceholder:"선택",byValueLabel:"레이블",decrease:"감소",increase:"증가",selectColor:"색상 선택",noColor:"색상 없음",customColorInput:"직접 입력",alignLeft:"왼쪽 정렬",alignCenter:"가운데 정렬",alignRight:"오른쪽 정렬",alignLabel:"정렬",fontStyleLabel:"글자 스타일",bold:"굵게",italic:"기울임",underline:"밑줄",columnOptions:"컬럼 옵션",showAllColumns:"전체 표시",commonSection:"공통",headerLabelField:"헤더 라벨",pinColumn:"고정",pinLeft:"왼쪽",pinNone:"없음",pinRight:"오른쪽",columnWidthPx:"너비(px)",headerSection:"헤더",cellSection:"셀",fontLabel:"글자",sizeLabel:"크기",displayMask:"표시 형식(마스크)",resetThisColumn:"이 컬럼 초기화",selectColumnHint:"컬럼을 선택하세요",showColumnNamed:"{column} 표시",columnTextColor:"글자색",cellStyleTitle:"셀 스타일",formulaHelp:"수식 도움말",validFormula:"유효한 수식",formulaHint:"컬럼을 선택하거나 값을 입력해 수식을 작성하세요.",ruleName:"규칙 이름",targetColumns:"적용 컬럼",allColumns:"전체 컬럼",colorLabel:"색상",cellBgColor:"배경 색상",cellTextColor:"텍스트 색상",moveUp:"위로",moveDown:"아래로",formulaPlaceholder:"예: [수요수량] > [재고수량] AND [우선순위] < 3",helpColumnRef:"컬럼 참조",helpCompare:"비교",helpArithmetic:"산술",helpLogic:"논리",helpString:"문자열",helpNull:"NULL 체크",helpValue:"값",groupColon:"그룹:",groupEmptyHint:"여기에 컬럼을 추가해 그룹화",addGroupBtn:"+ 그룹 추가",ungroup:"해제",removeGroup:"그룹 제거",excelImportTitle:"Excel 가져오기",processing:"처리 중…",excelPreview:"미리보기 {shown}행 / 총 {total}행+",clientImportFile:"파일에서 가져오기 (클라이언트)",clientExportXlsx:"XLSX (클라이언트)",groupExpand:"그룹 펼치기",groupCollapse:"그룹 접기",fontSizeDefault:"기본",maskGroupNone:"없음",maskGroupNumber:"숫자",maskGroupDate:"날짜",maskGroupString:"문자열",maskNoneText:"마스크 없음",maskNoneDesc:"원본 값 그대로 표시",maskThousandsText:"천 단위 구분 (1,234)",maskThousandsDesc:"예: 1234 → 1,234",maskDecimal2Text:"소수 2자리 (#,##0.00)",maskDecimal2Desc:"예: 1234.5 → 1,234.50",maskKrwText:"원화 (₩1,234)",maskKrwDesc:"예: 1234 → ₩1,234",maskUsdText:"달러 ($1,234.00)",maskUsdDesc:"예: 1234.5 → $1,234.50",maskPercentText:"퍼센트 (12%)",maskPercentDesc:"예: 12 → 12%",maskDateIsoDesc:"예: 2026-05-26",maskDateKoDesc:"예: 2026년 05월 26일",maskDatetimeDesc:"예: 2026-05-26 14:30",maskDateUsDesc:"예: 05/26/2026",maskPhoneText:"전화번호 (010-1234-5678)",maskPhoneDesc:"예: 01012345678 → 010-1234-5678",maskRrnText:"주민등록번호 (000000-0000000)",maskRrnDesc:"예: 9501011234567 → 950101-1234567",maskBizText:"사업자등록번호 (000-00-00000)",maskBizDesc:"예: 1234567890 → 123-45-67890"},GridPivot:{setting:"피봇 설정",gridSetting:"그리드 설정",fieldSetting:"값 필드 설정",showRowTotals:"행 합계 표시",showColumnTotals:"열 합계 표시",subtotalCriteria:"소계 기준",subtotalAggregateField:"소계 집계 필드",totalsBeforeData:"합계 먼저 보기",showZeros:"빈 값 채우기",showOutlineMode:"개요 모드",collapsibleSubtotal:"소계 접기",fieldName:"필드 이름",fieldAggregate:"집계",fieldShowAs:"표시 방식",fieldFormat:"형식",openChart:"차트 열기",selectValueField:"값 필드 선택",none:"없음",sum:"합계",count:"개수",average:"평균",max:"최대값",min:"최소값",range:"범위",std:"표준 편차",var:"분산",stdPop:"모표준 편차",varPop:"모분산",cntAll:"전체 개수",cntNumbers:"숫자 개수",showFirstValue:"첫 번째 값",showLastValue:"마지막 값",noCalculation:"계산 없음",diffRow:"이전 행과의 차이",diffRowPct:"이전 행과의 차이 (%)",diffCol:"이전 열과의 차이",diffColPct:"이전 열과의 차이 (%)",grandtotalPct:"전체 합계 대비 (%)",rowTotalPct:"행 합계 대비 (%)",colTotalPct:"열 합계 대비 (%)",prevRowPct:"이전 행 대비 (%)",prevColPct:"이전 열 대비 (%)",runTot:"누적 합계",runTotPct:"누적 합계 (%)",generalFormat:"일반",int:"정수",float:"실수",currency:"통화",percentage:"백분율 (정수)",percentageDot2:"백분율 (실수)",thousands:"천 단위",millions:"백만 단위",billions:"십억 단위",subtotal:"소계",grandtotal:"전체 합계",grandtotalValue:"총합계",category:"범주",chartType:"차트 유형",chartXAxis:"X축 범주",chartYAxis:"Y축 범주",categoryName:"카테고리",barChart:"막대 차트",lineChart:"꺾은선 차트",lineSymbolChart:"기호 꺾은선 차트",areaChart:"영역 차트",chartRenderingErrorHeader:"차트 렌더링 오류",chartRenderingErrorContent:"차트를 표시할 수 없습니다.",contextPivotExportXlsx:"화면 내보내기 (xlsx)",contextPivotExportOriginXlsx:"원본 데이터 내보내기 (xlsx)",contextPivotExportOriginCsv:"원본 데이터 내보내기 (csv)",row:"행",column:"열",value:"값",filter:"필터",searchFieldPlaceholder:"필드 검색...",dropZoneRowPlaceholder:"행 축 필드를 드래그하세요",dropZoneColumnPlaceholder:"열 축 필드를 드래그하세요",dropZoneValuePlaceholder:"값 필드를 드래그하세요",dropZoneFilterPlaceholder:"필터 필드를 드래그하세요",update:"업데이트",selectFieldForReport:"보고서에 추가할 필드 선택:",dragFieldsBetweenAreas:"아래 영역 사이에 필드를 끌어 놓으십시오:",valueSummaryCriteria:"값 요약 기준",roundRound:"반올림",roundFloor:"내림",roundCeil:"올림",roundTrunc:"절삭",roundingMode:"반올림 모드",decimalPlaces:"소수점 자리수",decimalUnlimited:"제한 없음",showOriginalValue:"원본값 병기",back:"뒤로",parentRowPct:"상위 행 그룹(%)",parentColPct:"상위 열 그룹(%)",rankAsc:"오름차순 순위",rankDesc:"내림차순 순위",index:"인덱스",showTotalsGrand:"합계",showTotalsSub:"부분합",fieldPanelSetting:"필드 설정",colSubtotalCriteria:"열 소계 기준",allowRowToggle:"행 확장/축소 허용",allowColToggle:"열 확장/축소 허용",outlineMode:"요약 모드"},Gantt:{searchPlaceholder:"검색",columnSize:"컬럼 크기",rowSize:"행 크기"},Chart:{filterPopup:"필터",resetFilter:"필터 초기화",addFilter:"필터 추가",symbolEqual:"같음",symbolNotEqual:"같지 않음",symbolContains:"포함",symbolNotContains:"포함하지 않음",symbolLessThan:"보다 작음",symbolGreaterThan:"보다 큼",symbolLessOrEqual:"작거나 같음",symbolGreaterOrEqual:"크거나 같음",symbolEmpty:"비어있음",symbolNotEmpty:"비어있지 않음",chartSetting:"차트 설정",chartCategory:"차트 카테고리",chartType:"차트 타입",chartUseZoom:"줌 사용",multiYAxisSetting:"Y축 다중 설정",notUsed:"(사용안함)",chartPopup:"차트 팝업",errorMessage:"데이터를 불러오는 중 오류가 발생했습니다.",valueFieldSetting:"값 필드 설정",valueSummaryCriteria:"값 요약 기준",selectFieldForReport:"보고서에 추가할 필드 선택:",column:"열",row:"행",value:"값",sumValue:"∑ 값",count:"개수",sum:"합계",average:"평균",min:"최소값",max:"최대값",seriesCategory:"일반",pieCategory:"파이",scatterCategory:"산점도",treemapCategory:"트리맵",boxplotCategory:"박스플롯",candlestickCategory:"캔들스틱",barChart:"바 차트",stackBarChart:"스택 바 차트",horizontalStackBarChart:"가로 스택 바 차트",lineChart:"선 차트",lineSymbolChart:"선 차트(심볼)",areaChart:"면적 차트",general:"일반",custom:"사용자 지정",axisCategoryLabel:"축 (범주)",legendSeriesLabel:"범례 (계열)",legendSingleLabel:"범례 (단일 선택)",legendMultiLabel:"범례 (다중 선택 가능)",valueSingleLabel:"값 (단일 선택)",xAxisSingleLabel:"X축 (단일 선택)",yAxisMultiLabel:"Y축 (다중 선택 가능)",notSet:"미지정",legendLimitExceededTitle:"차트 범례 개수가 최대 {limit}개를 초과했습니다.",legendLimitExceededContent:"범례를 {limit}개 이하로 재설정하여 주십시오."},NumberInput:{increase:"값 증가",decrease:"값 감소"},DateInput:{prevDate:"이전 날짜",nextDate:"다음 날짜"},PasswordInput:{showPassword:"비밀번호 표시",hidePassword:"비밀번호 숨기기"},Tab:{closeTab:"{label} 닫기"},SplitPane:{resizeHandle:"영역 크기 조절"},BreadCrumb:{navigation:"탐색 경로"}},Rl={Toast:{close:"Close"},Popup:{title:"Popup",save:"Save",cancel:"Cancel",ok:"OK",close:"Close"},Select:{searchPlaceholder:"Search",emptyText:"No data",requiredMessage:"{label} is required"},MultiSelect:{search:"Search",selectAll:"Select All",selectFiltered:"Select Filtered",specificResults:"Only Results",specificSelect:"Only",noData:"No data",required:"{label} is required",headerFormat:"ITEMS ({count})"},TreeSelect:{search:"Search",selectAll:"Select All",selectFiltered:"Select Filtered",specificResults:"Only Results",noData:"No data",showSelectedOnly:"Show selected only",expandAll:"Expand All",collapseAll:"Collapse All",required:"{label} is required",headerFormat:"ITEMS ({count})",expand:"Expand",collapse:"Collapse"},TagInput:{add:"Add",editTag:"Edit {label}",removeTag:"Remove {label}"},TimePicker:{hour:"Hour",minute:"Minute",currentTime:"Current Time"},EmptyState:{customEmptyHeader:"No data",customEmptyContent:"There is no data to display.",dataEmptyHeader:"No data to display",dataEmptyContent:"Please enter the required data.",resultEmptyHeader:"No results",resultEmptyContent:"Check the search conditions and try again.",searchEmptyHeader:"No search results",searchEmptyContent:"Please check the filter value and try again."},TableSelect:{searchPlaceholder:"Search",emptyText:"No data",requiredMessage:"{label} is required",footerSelect:"Select",footerNavigate:"Navigate",footerClose:"Close"},Common:{requiredMessage:"{label} is required"},Grid:{layoutSetting:"Layout Settings",filter:"Filter",sort:"Sort",customCellStyle:"Conditional Formatting",reset:"Reset",searchFilter:"Search",newView:"New View",selectAll:"Select All",columnPicker:"Show/Hide Columns",viewToolbar:"Show Toolbar",viewFooter:"Show Footer",viewGroupPanel:"Show Group Panel",resetFilterAndSort:"Reset Filter & Sort",defaultView:"Default View",filterPopup:"Filter Settings",resetFilter:"Reset Filter",addFilter:"Add Filter",sortingPopup:"Sort Settings",ascending:"Ascending",descending:"Descending",resetSort:"Reset Sort",addSort:"Add Sort",symbolEqual:"Equal",symbolNotEqual:"Not Equal",symbolContains:"Contains",symbolNotContains:"Does Not Contain",symbolLessThan:"Less Than",symbolGreaterThan:"Greater Than",symbolLessOrEqual:"Less Or Equal",symbolGreaterOrEqual:"Greater Or Equal",symbolEmpty:"Empty",symbolNotEmpty:"Not Empty",customCellRuleNamePlaceholder:"Enter rule name",addFormulaCondition:"Add Condition",applicationColumn:"Application Column",backgroundColor:"Background Color",fontColor:"Font Color",resetCustomCell:"Reset",addFormulaConditionSet:"Add Rule",customColor:"Custom Color",formulaConditionSet:"New Rule",contextFilterAndSort:"Filter & Sort",contextAddFilter:"Add Filter",contextSelectFilter:"Filter by Selection",contextResetColumnFilter:"Reset Column Filter",contextResetColumnSort:"Reset Column Sort",contextResetColumnAll:"Reset Column Filter/Sort",contextDataCopy:"Copy",contextDataExcelCopy:"Copy for Excel",contextDataWithHeaderCopy:"Copy with Header",contextPin:"Pin Column",contextColumnPicker:"Column Picker",contextMoveColumnFirst:"Move to First Column",contextAutoSizeColumns:"Auto Size Columns",contextGroupPanel:"Group Panel",contextGroupToggle:"Toggle Collapse",contextGroupCollapseAll:"Collapse All Groups",contextGroupExpandAll:"Expand All Groups",groupPanelPlaceholder:"Drag and drop columns here to create groups.",contextBulkEdit:"Bulk Edit {name}",contextImport:"Import",contextImportExcel:"Import Excel (Overwrite)",contextImportExcelAppend:"Import Excel (Append)",contextExport:"Export",contextExportXlsx:"Excel (xlsx)",contextExportCsv:"CSV",contextSum:"Sum",check:"OK",cancel:"Cancel",save:"Save",remove:"Delete",close:"Close",pause:"Pause",add:"Add",immediateApply:"Apply Immediately",warning:"Warning",mozWarning:"Warning",confirmCancel:"Are you sure you want to cancel?",alreadyExcelProgress:"Excel operation is already in progress.",downloadFail:"Download failed.",addDataWithFilterSort:"Add data while filter/sort is applied?",resetAndAdd:"Reset and Add",confirmDeleteGeneral:"Are you sure you want to delete {name}?",toastCopySuccess:"Copied.",toastSaveSuccess:"Saved.",toastSaveError:"Save failed.",toastResetSuccess:"Reset.",toastRequiredVal:"Please enter the required values.",excelInvalidExcel:"Invalid Excel file.",excelInvalidUpload:"Invalid upload data.",downloadFormat:"Download Format",click:"Click",drag:"Drag",overwriteSelected:"Overwrite selected items?",fileOverwrite:"Overwrite the file?",dropHere:"Drop here",dropHerePrefix:"",dropHereMiddle:" here or ",dropHereSuffix:" a file.",withFormatting:"With Formatting",requestTimedOut:"Request timed out.",serverError:"A server error occurred.",total:"Total",correct:"Correct",error:"Error",success:"Success",fail:"Fail",excelExportConfirmLargeData:"Export large data?",footerTotalRowCount:"Total: {totalRowCount}",footerFilteredRowCount:"{filterdRowCount} / {totalRowCount}",aggregateAverage:"Average",aggregateCount:"Count",aggregateMin:"Min",aggregateMax:"Max",aggregateSum:"Sum",settings:"Settings",collapseToolbar:"Collapse toolbar",expandToolbar:"Expand toolbar",searchPrev:"Previous result",searchNext:"Next result",searchGoTo:"Go to result",searching:"Searching...",deleteCondition:"Delete condition",deleteSort:"Delete sort",selectPlaceholder:"Select",byValueLabel:"Label",decrease:"Decrease",increase:"Increase",selectColor:"Select color",noColor:"No color",customColorInput:"Custom",alignLeft:"Align left",alignCenter:"Align center",alignRight:"Align right",alignLabel:"Align",fontStyleLabel:"Font style",bold:"Bold",italic:"Italic",underline:"Underline",columnOptions:"Column Options",showAllColumns:"Show all",commonSection:"Common",headerLabelField:"Header label",pinColumn:"Pin",pinLeft:"Left",pinNone:"None",pinRight:"Right",columnWidthPx:"Width (px)",headerSection:"Header",cellSection:"Cell",fontLabel:"Font",sizeLabel:"Size",displayMask:"Display format (mask)",resetThisColumn:"Reset this column",selectColumnHint:"Select a column",showColumnNamed:"Show {column}",columnTextColor:"Text color",cellStyleTitle:"Cell Style",formulaHelp:"Formula help",validFormula:"Valid formula",formulaHint:"Select a column or enter a value to build a formula.",ruleName:"Rule name",targetColumns:"Target columns",allColumns:"All columns",colorLabel:"Color",cellBgColor:"Background color",cellTextColor:"Text color",moveUp:"Move up",moveDown:"Move down",formulaPlaceholder:"e.g. [Demand] > [Stock] AND [Priority] < 3",helpColumnRef:"Column ref",helpCompare:"Compare",helpArithmetic:"Arithmetic",helpLogic:"Logic",helpString:"String",helpNull:"NULL check",helpValue:"Value",groupColon:"Group:",groupEmptyHint:"Drag columns here to group",addGroupBtn:"+ Add group",ungroup:"Clear",removeGroup:"Remove group",excelImportTitle:"Excel Import",processing:"Processing…",excelPreview:"Preview {shown} rows / {total} total+",clientImportFile:"Import from file (client)",clientExportXlsx:"XLSX (client)",groupExpand:"Expand group",groupCollapse:"Collapse group",fontSizeDefault:"Default",maskGroupNone:"None",maskGroupNumber:"Number",maskGroupDate:"Date",maskGroupString:"String",maskNoneText:"No mask",maskNoneDesc:"Show raw value",maskThousandsText:"Thousands (1,234)",maskThousandsDesc:"e.g. 1234 → 1,234",maskDecimal2Text:"2 decimals (#,##0.00)",maskDecimal2Desc:"e.g. 1234.5 → 1,234.50",maskKrwText:"KRW (₩1,234)",maskKrwDesc:"e.g. 1234 → ₩1,234",maskUsdText:"USD ($1,234.00)",maskUsdDesc:"e.g. 1234.5 → $1,234.50",maskPercentText:"Percent (12%)",maskPercentDesc:"e.g. 12 → 12%",maskDateIsoDesc:"e.g. 2026-05-26",maskDateKoDesc:"e.g. 2026-05-26",maskDatetimeDesc:"e.g. 2026-05-26 14:30",maskDateUsDesc:"e.g. 05/26/2026",maskPhoneText:"Phone (010-1234-5678)",maskPhoneDesc:"e.g. 01012345678 → 010-1234-5678",maskRrnText:"RRN (000000-0000000)",maskRrnDesc:"e.g. 9501011234567 → 950101-1234567",maskBizText:"Business No. (000-00-00000)",maskBizDesc:"e.g. 1234567890 → 123-45-67890"},GridPivot:{setting:"Pivot Settings",gridSetting:"Grid Settings",fieldSetting:"Field Settings",showRowTotals:"Show Row Totals",showColumnTotals:"Show Column Totals",subtotalCriteria:"Subtotal Criteria",subtotalAggregateField:"Subtotal Aggregate Field",totalsBeforeData:"Show Totals Before Data",showZeros:"Show Zeros",showOutlineMode:"Outline Mode",collapsibleSubtotal:"Collapsible Subtotal",fieldName:"Field Name",fieldAggregate:"Aggregate",fieldShowAs:"Show As",fieldFormat:"Format",openChart:"Open Chart",selectValueField:"Select Value Field",none:"None",sum:"Sum",count:"Count",average:"Average",max:"Max",min:"Min",range:"Range",std:"Std Dev",var:"Variance",stdPop:"Pop Std Dev",varPop:"Pop Variance",cntAll:"Count All",cntNumbers:"Count Numbers",showFirstValue:"First Value",showLastValue:"Last Value",noCalculation:"No Calculation",diffRow:"Diff from Previous Row",diffRowPct:"Diff from Previous Row (%)",diffCol:"Diff from Previous Column",diffColPct:"Diff from Previous Column (%)",grandtotalPct:"% of Grand Total",rowTotalPct:"% of Row Total",colTotalPct:"% of Column Total",prevRowPct:"% of Previous Row",prevColPct:"% of Previous Column",runTot:"Running Total",runTotPct:"Running Total (%)",generalFormat:"General",int:"Integer",float:"Decimal",currency:"Currency",percentage:"Percentage (Integer)",percentageDot2:"Percentage (Decimal)",thousands:"Thousands",millions:"Millions",billions:"Billions",subtotal:"Subtotal",grandtotal:"Grand Total",grandtotalValue:"Grand Total",category:"Category",chartType:"Chart Type",chartXAxis:"X Axis",chartYAxis:"Y Axis",categoryName:"Category Name",barChart:"Bar Chart",lineChart:"Line Chart",lineSymbolChart:"Symbol Line Chart",areaChart:"Area Chart",chartRenderingErrorHeader:"Chart Rendering Error",chartRenderingErrorContent:"Unable to display the chart.",contextPivotExportXlsx:"View Export (xlsx)",contextPivotExportOriginXlsx:"Source Data Export (xlsx)",contextPivotExportOriginCsv:"Source Data Export (csv)",row:"Rows",column:"Columns",value:"Values",filter:"Filters",searchFieldPlaceholder:"Search fields...",dropZoneRowPlaceholder:"Drag row axis fields here",dropZoneColumnPlaceholder:"Drag column axis fields here",dropZoneValuePlaceholder:"Drag value fields here",dropZoneFilterPlaceholder:"Drag filter fields here",update:"Update",selectFieldForReport:"Choose fields to add to report:",dragFieldsBetweenAreas:"Drag fields between areas below:",valueSummaryCriteria:"Summarize Values By",roundRound:"Round",roundFloor:"Floor",roundCeil:"Ceil",roundTrunc:"Truncate",roundingMode:"Rounding mode",decimalPlaces:"Decimal places",decimalUnlimited:"No limit",showOriginalValue:"Show original value",back:"Back",parentRowPct:"% of Parent Row Group",parentColPct:"% of Parent Column Group",rankAsc:"Rank Ascending",rankDesc:"Rank Descending",index:"Index",showTotalsGrand:"Grand Totals",showTotalsSub:"Subtotals",fieldPanelSetting:"Field Settings",colSubtotalCriteria:"Column Subtotal Criteria",allowRowToggle:"Allow Row Expand/Collapse",allowColToggle:"Allow Column Expand/Collapse",outlineMode:"Outline Mode"},Gantt:{searchPlaceholder:"Search",columnSize:"Column Size",rowSize:"Row Size"},Chart:{filterPopup:"Filter",resetFilter:"Reset Filter",addFilter:"Add Filter",symbolEqual:"Equal",symbolNotEqual:"Not Equal",symbolContains:"Contains",symbolNotContains:"Not Contains",symbolLessThan:"Less Than",symbolGreaterThan:"Greater Than",symbolLessOrEqual:"Less or Equal",symbolGreaterOrEqual:"Greater or Equal",symbolEmpty:"Empty",symbolNotEmpty:"Not Empty",chartSetting:"Chart Setting",chartCategory:"Chart Category",chartType:"Chart Type",chartUseZoom:"Use Zoom",multiYAxisSetting:"Multi Y-Axis Setting",notUsed:"(Not Used)",chartPopup:"Chart Popup",errorMessage:"An error occurred while loading data.",valueFieldSetting:"Value Field Setting",valueSummaryCriteria:"Value Summary Criteria",selectFieldForReport:"Select fields to add to the report:",column:"Column",row:"Row",value:"Value",sumValue:"∑ Value",count:"Count",sum:"Sum",average:"Average",min:"Min",max:"Max",seriesCategory:"General",pieCategory:"Pie",scatterCategory:"Scatter",treemapCategory:"Treemap",boxplotCategory:"Boxplot",candlestickCategory:"Candlestick",barChart:"Bar Chart",stackBarChart:"Stack Bar Chart",horizontalStackBarChart:"Horizontal Stack Bar Chart",lineChart:"Line Chart",lineSymbolChart:"Line Chart (Symbol)",areaChart:"Area Chart",general:"General",custom:"Custom",axisCategoryLabel:"Axis (Category)",legendSeriesLabel:"Legend (Series)",legendSingleLabel:"Legend (Single)",legendMultiLabel:"Legend (Multiple)",valueSingleLabel:"Value (Single)",xAxisSingleLabel:"X-Axis (Single)",yAxisMultiLabel:"Y-Axis (Multiple)",notSet:"Not Set",legendLimitExceededTitle:"The number of chart legends has exceeded the maximum of {limit}.",legendLimitExceededContent:"Please reconfigure the legend to {limit} or fewer."},NumberInput:{increase:"Increase value",decrease:"Decrease value"},DateInput:{prevDate:"Previous date",nextDate:"Next date"},PasswordInput:{showPassword:"Show password",hidePassword:"Hide password"},Tab:{closeTab:"Close {label}"},SplitPane:{resizeHandle:"Resize panes"},BreadCrumb:{navigation:"Breadcrumb"}},ql={Toast:{close:"关闭"},Popup:{title:"弹窗",save:"保存",cancel:"取消",ok:"确认",close:"关闭"},Select:{searchPlaceholder:"搜索",emptyText:"暂无数据",requiredMessage:"{label} 为必填项"},MultiSelect:{search:"搜索",selectAll:"全选",selectFiltered:"选择筛选结果",specificResults:"仅结果",specificSelect:"仅选择",noData:"暂无数据",required:"{label} 为必填项",headerFormat:"项目 ({count})"},TreeSelect:{search:"搜索",selectAll:"全选",selectFiltered:"选择筛选结果",specificResults:"仅结果",noData:"暂无数据",showSelectedOnly:"仅显示已选项",expandAll:"全部展开",collapseAll:"全部收起",required:"{label} 为必填项",headerFormat:"项目 ({count})",expand:"展开",collapse:"折叠"},TagInput:{add:"添加",editTag:"编辑 {label}",removeTag:"删除 {label}"},TimePicker:{hour:"时",minute:"分",currentTime:"当前时间"},EmptyState:{customEmptyHeader:"暂无数据",customEmptyContent:"没有可显示的数据。",dataEmptyHeader:"暂无数据",dataEmptyContent:"请输入所需数据。",resultEmptyHeader:"无结果",resultEmptyContent:"请检查搜索条件后重试。",searchEmptyHeader:"无搜索结果",searchEmptyContent:"请检查筛选条件后重试。"},TableSelect:{searchPlaceholder:"搜索",emptyText:"暂无数据",requiredMessage:"{label} 为必填项",footerSelect:"选择",footerNavigate:"移动",footerClose:"关闭"},Common:{requiredMessage:"{label} 为必填项"},Grid:{layoutSetting:"布局设置",filter:"筛选",sort:"排序",customCellStyle:"条件格式设置",reset:"重置",searchFilter:"搜索",newView:"新建视图",selectAll:"全选",columnPicker:"列显示/隐藏设置",viewToolbar:"显示工具栏",viewFooter:"显示页脚",viewGroupPanel:"显示分组面板",resetFilterAndSort:"重置筛选和排序",defaultView:"默认视图",filterPopup:"筛选设置",resetFilter:"重置筛选",addFilter:"添加筛选",sortingPopup:"排序设置",ascending:"升序",descending:"降序",resetSort:"重置排序",addSort:"添加排序",symbolEqual:"等于",symbolNotEqual:"不等于",symbolContains:"包含",symbolNotContains:"不包含",symbolLessThan:"小于",symbolGreaterThan:"大于",symbolLessOrEqual:"小于或等于",symbolGreaterOrEqual:"大于或等于",symbolEmpty:"为空",symbolNotEmpty:"不为空",customCellRuleNamePlaceholder:"请输入规则名称",addFormulaCondition:"添加条件",applicationColumn:"应用列",backgroundColor:"背景色",fontColor:"字体颜色",resetCustomCell:"重置",addFormulaConditionSet:"添加规则",customColor:"自定义颜色",formulaConditionSet:"新建规则",contextFilterAndSort:"筛选和排序",contextAddFilter:"添加筛选",contextSelectFilter:"按选定值筛选",contextResetColumnFilter:"重置列筛选",contextResetColumnSort:"重置列排序",contextResetColumnAll:"重置列筛选/排序",contextDataCopy:"复制",contextDataExcelCopy:"Excel 复制",contextDataWithHeaderCopy:"含表头复制",contextPin:"固定列",contextColumnPicker:"列选择",contextMoveColumnFirst:"移至第一列",contextAutoSizeColumns:"自动调整列宽",contextGroupPanel:"分组面板",contextGroupToggle:"折叠/展开组",contextGroupCollapseAll:"折叠所有组",contextGroupExpandAll:"展开所有组",groupPanelPlaceholder:"将列拖放到此处以创建分组。",contextBulkEdit:"批量编辑 {name}",contextImport:"导入",contextImportExcel:"Excel 导入(覆盖)",contextImportExcelAppend:"Excel 导入(追加)",contextExport:"导出",contextExportXlsx:"Excel (xlsx)",contextExportCsv:"CSV",contextSum:"合计",check:"确认",cancel:"取消",save:"保存",remove:"删除",close:"关闭",pause:"暂停",add:"添加",immediateApply:"立即应用",warning:"警告",mozWarning:"警告",confirmCancel:"确定要取消吗?",alreadyExcelProgress:"Excel 操作正在进行中。",downloadFail:"下载失败。",addDataWithFilterSort:"在筛选/排序状态下添加数据?",resetAndAdd:"重置后添加",confirmDeleteGeneral:"确定要删除 {name} 吗?",toastCopySuccess:"已复制。",toastSaveSuccess:"已保存。",toastSaveError:"保存失败。",toastResetSuccess:"已重置。",toastRequiredVal:"请输入必填值。",excelInvalidExcel:"无效的 Excel 文件。",excelInvalidUpload:"无效的上传数据。",downloadFormat:"下载格式",click:"点击",drag:"拖拽",overwriteSelected:"覆盖选定项?",fileOverwrite:"覆盖文件?",dropHere:"拖放到此处",dropHerePrefix:"",dropHereMiddle:"此处或",dropHereSuffix:"文件。",withFormatting:"包含格式",requestTimedOut:"请求超时。",serverError:"服务器发生错误。",total:"总计",correct:"正常",error:"错误",success:"成功",fail:"失败",excelExportConfirmLargeData:"确定导出大量数据?",footerTotalRowCount:"总计: {totalRowCount}",footerFilteredRowCount:"{filterdRowCount} / {totalRowCount}",aggregateAverage:"平均",aggregateCount:"计数",aggregateMin:"最小值",aggregateMax:"最大值",aggregateSum:"合计",settings:"设置",collapseToolbar:"折叠工具栏",expandToolbar:"展开工具栏",searchPrev:"上一个结果",searchNext:"下一个结果",searchGoTo:"跳转到结果",searching:"搜索中...",deleteCondition:"删除条件",deleteSort:"删除排序",selectPlaceholder:"选择",byValueLabel:"标签",decrease:"减少",increase:"增加",selectColor:"选择颜色",noColor:"无颜色",customColorInput:"自定义输入",alignLeft:"左对齐",alignCenter:"居中对齐",alignRight:"右对齐",alignLabel:"对齐",fontStyleLabel:"字体样式",bold:"加粗",italic:"斜体",underline:"下划线",columnOptions:"列选项",showAllColumns:"全部显示",commonSection:"通用",headerLabelField:"表头标签",pinColumn:"固定",pinLeft:"左",pinNone:"无",pinRight:"右",columnWidthPx:"宽度(px)",headerSection:"表头",cellSection:"单元格",fontLabel:"文字",sizeLabel:"大小",displayMask:"显示格式(掩码)",resetThisColumn:"重置此列",selectColumnHint:"请选择列",showColumnNamed:"显示 {column}",columnTextColor:"文字颜色",cellStyleTitle:"单元格样式",formulaHelp:"公式帮助",validFormula:"有效公式",formulaHint:"选择列或输入值以创建公式。",ruleName:"规则名称",targetColumns:"应用列",allColumns:"全部列",colorLabel:"颜色",cellBgColor:"背景色",cellTextColor:"文字色",moveUp:"上移",moveDown:"下移",formulaPlaceholder:"例: [需求量] > [库存量] AND [优先级] < 3",helpColumnRef:"列引用",helpCompare:"比较",helpArithmetic:"算术",helpLogic:"逻辑",helpString:"字符串",helpNull:"NULL 检查",helpValue:"值",groupColon:"分组:",groupEmptyHint:"将列拖到此处进行分组",addGroupBtn:"+ 添加分组",ungroup:"解除",removeGroup:"移除分组",excelImportTitle:"Excel 导入",processing:"处理中…",excelPreview:"预览 {shown} 行 / 共 {total} 行+",clientImportFile:"从文件导入 (客户端)",clientExportXlsx:"XLSX (客户端)",groupExpand:"展开分组",groupCollapse:"折叠分组",fontSizeDefault:"默认",maskGroupNone:"无",maskGroupNumber:"数字",maskGroupDate:"日期",maskGroupString:"字符串",maskNoneText:"无掩码",maskNoneDesc:"按原值显示",maskThousandsText:"千位分隔 (1,234)",maskThousandsDesc:"例: 1234 → 1,234",maskDecimal2Text:"两位小数 (#,##0.00)",maskDecimal2Desc:"例: 1234.5 → 1,234.50",maskKrwText:"韩元 (₩1,234)",maskKrwDesc:"例: 1234 → ₩1,234",maskUsdText:"美元 ($1,234.00)",maskUsdDesc:"例: 1234.5 → $1,234.50",maskPercentText:"百分比 (12%)",maskPercentDesc:"例: 12 → 12%",maskDateIsoDesc:"例: 2026-05-26",maskDateKoDesc:"例: 2026-05-26",maskDatetimeDesc:"例: 2026-05-26 14:30",maskDateUsDesc:"例: 05/26/2026",maskPhoneText:"电话号码 (010-1234-5678)",maskPhoneDesc:"例: 01012345678 → 010-1234-5678",maskRrnText:"身份证号 (000000-0000000)",maskRrnDesc:"例: 9501011234567 → 950101-1234567",maskBizText:"营业执照号 (000-00-00000)",maskBizDesc:"例: 1234567890 → 123-45-67890"},GridPivot:{setting:"数据透视设置",gridSetting:"网格设置",fieldSetting:"字段设置",showRowTotals:"显示行合计",showColumnTotals:"显示列合计",subtotalCriteria:"小计基准",subtotalAggregateField:"小计汇总字段",totalsBeforeData:"在数据前显示合计",showZeros:"显示零值",showOutlineMode:"大纲模式",collapsibleSubtotal:"可折叠小计",fieldName:"字段名称",fieldAggregate:"汇总",fieldShowAs:"显示方式",fieldFormat:"格式",openChart:"打开图表",selectValueField:"选择值字段",none:"无",sum:"求和",count:"计数",average:"平均值",max:"最大值",min:"最小值",range:"范围",std:"标准差",var:"方差",stdPop:"总体标准差",varPop:"总体方差",cntAll:"全部计数",cntNumbers:"数字计数",showFirstValue:"第一个值",showLastValue:"最后一个值",noCalculation:"无计算",diffRow:"与前一行的差",diffRowPct:"与前一行的差 (%)",diffCol:"与前一列的差",diffColPct:"与前一列的差 (%)",grandtotalPct:"占总计百分比",rowTotalPct:"占行合计百分比",colTotalPct:"占列合计百分比",prevRowPct:"占前一行百分比",prevColPct:"占前一列百分比",runTot:"累计",runTotPct:"累计百分比",generalFormat:"常规",int:"整数",float:"小数",currency:"货币",percentage:"百分比 (整数)",percentageDot2:"百分比 (小数)",thousands:"千位",millions:"百万位",billions:"十亿位",subtotal:"小计",grandtotal:"总计",grandtotalValue:"总合计",category:"类别",chartType:"图表类型",chartXAxis:"X轴",chartYAxis:"Y轴",categoryName:"类别名称",barChart:"柱状图",lineChart:"折线图",lineSymbolChart:"符号折线图",areaChart:"面积图",chartRenderingErrorHeader:"图表渲染错误",chartRenderingErrorContent:"无法显示图表。",contextPivotExportXlsx:"视图导出 (xlsx)",contextPivotExportOriginXlsx:"原始数据导出 (xlsx)",contextPivotExportOriginCsv:"原始数据导出 (csv)",row:"行",column:"列",value:"值",filter:"筛选",searchFieldPlaceholder:"搜索字段...",dropZoneRowPlaceholder:"拖动行轴字段到这里",dropZoneColumnPlaceholder:"拖动列轴字段到这里",dropZoneValuePlaceholder:"拖动值字段到这里",dropZoneFilterPlaceholder:"拖动筛选字段到这里",update:"更新",selectFieldForReport:"选择要添加到报表的字段:",dragFieldsBetweenAreas:"在下面的区域之间拖动字段:",valueSummaryCriteria:"值汇总依据",roundRound:"四舍五入",roundFloor:"向下取整",roundCeil:"向上取整",roundTrunc:"截断",roundingMode:"舍入模式",decimalPlaces:"小数位数",decimalUnlimited:"无限制",showOriginalValue:"并列原始值",back:"返回",parentRowPct:"占上级行组百分比",parentColPct:"占上级列组百分比",rankAsc:"升序排名",rankDesc:"降序排名",index:"索引",showTotalsGrand:"总计",showTotalsSub:"小计",fieldPanelSetting:"字段设置",colSubtotalCriteria:"列小计基准",allowRowToggle:"允许行展开/折叠",allowColToggle:"允许列展开/折叠",outlineMode:"大纲模式"},Gantt:{searchPlaceholder:"搜索",columnSize:"列大小",rowSize:"行大小"},Chart:{filterPopup:"筛选",resetFilter:"重置筛选",addFilter:"添加筛选",symbolEqual:"等于",symbolNotEqual:"不等于",symbolContains:"包含",symbolNotContains:"不包含",symbolLessThan:"小于",symbolGreaterThan:"大于",symbolLessOrEqual:"小于等于",symbolGreaterOrEqual:"大于等于",symbolEmpty:"为空",symbolNotEmpty:"不为空",chartSetting:"图表设置",chartCategory:"图表类别",chartType:"图表类型",chartUseZoom:"使用缩放",multiYAxisSetting:"Y轴多轴设置",notUsed:"(未使用)",chartPopup:"图表弹窗",errorMessage:"加载数据时发生错误。",valueFieldSetting:"值字段设置",valueSummaryCriteria:"值汇总基准",selectFieldForReport:"选择要添加到报表的字段:",column:"列",row:"行",value:"值",sumValue:"∑ 值",count:"计数",sum:"合计",average:"平均",min:"最小值",max:"最大值",seriesCategory:"常规",pieCategory:"饼图",scatterCategory:"散点图",treemapCategory:"树状图",boxplotCategory:"箱线图",candlestickCategory:"K线图",barChart:"柱状图",stackBarChart:"堆叠柱状图",horizontalStackBarChart:"水平堆叠柱状图",lineChart:"折线图",lineSymbolChart:"折线图(符号)",areaChart:"面积图",general:"常规",custom:"自定义",axisCategoryLabel:"轴 (类别)",legendSeriesLabel:"图例 (系列)",legendSingleLabel:"图例 (单选)",legendMultiLabel:"图例 (多选)",valueSingleLabel:"值 (单选)",xAxisSingleLabel:"X轴 (单选)",yAxisMultiLabel:"Y轴 (多选)",notSet:"未指定",legendLimitExceededTitle:"图表图例数量已超过最大值 {limit} 个。",legendLimitExceededContent:"请将图例重新设置为 {limit} 个以内。"},NumberInput:{increase:"增加数值",decrease:"减少数值"},DateInput:{prevDate:"上一个日期",nextDate:"下一个日期"},PasswordInput:{showPassword:"显示密码",hidePassword:"隐藏密码"},Tab:{closeTab:"关闭 {label}"},SplitPane:{resizeHandle:"调整区域大小"},BreadCrumb:{navigation:"面包屑导航"}},Il={Toast:{close:"閉じる"},Popup:{title:"ポップアップ",save:"保存",cancel:"キャンセル",ok:"OK",close:"閉じる"},Select:{searchPlaceholder:"検索",emptyText:"データがありません",requiredMessage:"{label} は必須です"},MultiSelect:{search:"検索",selectAll:"すべて選択",selectFiltered:"フィルター結果を選択",specificResults:"結果のみ",specificSelect:"選択のみ",noData:"データがありません",required:"{label} は必須です",headerFormat:"項目 ({count})"},TreeSelect:{search:"検索",selectAll:"すべて選択",selectFiltered:"フィルター結果を選択",specificResults:"結果のみ",noData:"データがありません",showSelectedOnly:"選択項目のみ表示",expandAll:"すべて展開",collapseAll:"すべて折りたたむ",required:"{label} は必須です",headerFormat:"項目 ({count})",expand:"展開",collapse:"折りたたむ"},TagInput:{add:"追加",editTag:"{label} を編集",removeTag:"{label} を削除"},TimePicker:{hour:"時",minute:"分",currentTime:"現在時刻"},EmptyState:{customEmptyHeader:"データなし",customEmptyContent:"表示するデータがありません。",dataEmptyHeader:"表示するデータがありません",dataEmptyContent:"必要なデータを入力してください。",resultEmptyHeader:"結果なし",resultEmptyContent:"検索条件を確認して再度お試しください。",searchEmptyHeader:"検索結果なし",searchEmptyContent:"フィルター値を確認して再度お試しください。"},TableSelect:{searchPlaceholder:"検索",emptyText:"データがありません",requiredMessage:"{label} は必須です",footerSelect:"選択",footerNavigate:"移動",footerClose:"閉じる"},Common:{requiredMessage:"{label} は必須です"},Grid:{layoutSetting:"レイアウト設定",filter:"フィルター",sort:"ソート",customCellStyle:"条件付き書式設定",reset:"リセット",searchFilter:"検索",newView:"新しいビュー",selectAll:"すべて選択",columnPicker:"列の表示/非表示設定",viewToolbar:"ツールバー表示",viewFooter:"フッター表示",viewGroupPanel:"グループパネル表示",resetFilterAndSort:"フィルター・ソートリセット",defaultView:"デフォルトビュー",filterPopup:"フィルター設定",resetFilter:"フィルターリセット",addFilter:"フィルター追加",sortingPopup:"ソート設定",ascending:"昇順",descending:"降順",resetSort:"ソートリセット",addSort:"ソート追加",symbolEqual:"等しい",symbolNotEqual:"等しくない",symbolContains:"含む",symbolNotContains:"含まない",symbolLessThan:"より小さい",symbolGreaterThan:"より大きい",symbolLessOrEqual:"以下",symbolGreaterOrEqual:"以上",symbolEmpty:"空",symbolNotEmpty:"空でない",customCellRuleNamePlaceholder:"ルール名を入力してください",addFormulaCondition:"条件追加",applicationColumn:"適用列",backgroundColor:"背景色",fontColor:"フォント色",resetCustomCell:"リセット",addFormulaConditionSet:"ルールを追加",customColor:"カスタム色",formulaConditionSet:"新しいルール",contextFilterAndSort:"フィルター・ソート",contextAddFilter:"フィルター追加",contextSelectFilter:"選択値でフィルター",contextResetColumnFilter:"列フィルターリセット",contextResetColumnSort:"列ソートリセット",contextResetColumnAll:"列フィルター/ソートリセット",contextDataCopy:"コピー",contextDataExcelCopy:"Excelコピー",contextDataWithHeaderCopy:"ヘッダー付きコピー",contextPin:"列固定",contextColumnPicker:"列選択",contextMoveColumnFirst:"最初の列に移動",contextAutoSizeColumns:"列幅自動調整",contextGroupPanel:"グループパネル",contextGroupToggle:"グループ折りたたみ/展開",contextGroupCollapseAll:"すべてのグループを折りたたむ",contextGroupExpandAll:"すべてのグループを展開",groupPanelPlaceholder:"列をドラッグ&ドロップしてグループを作成します。",contextBulkEdit:"{name} 一括編集",contextImport:"インポート",contextImportExcel:"Excelインポート(上書き)",contextImportExcelAppend:"Excelインポート(追加)",contextExport:"エクスポート",contextExportXlsx:"Excel (xlsx)",contextExportCsv:"CSV",contextSum:"合計",check:"確認",cancel:"キャンセル",save:"保存",remove:"削除",close:"閉じる",pause:"一時停止",add:"追加",immediateApply:"すぐに適用",warning:"警告",mozWarning:"警告",confirmCancel:"キャンセルしますか?",alreadyExcelProgress:"Excel操作が進行中です。",downloadFail:"ダウンロードに失敗しました。",addDataWithFilterSort:"フィルター/ソート適用中にデータを追加しますか?",resetAndAdd:"リセットして追加",confirmDeleteGeneral:"{name}を削除しますか?",toastCopySuccess:"コピーしました。",toastSaveSuccess:"保存しました。",toastSaveError:"保存に失敗しました。",toastResetSuccess:"リセットしました。",toastRequiredVal:"必須値を入力してください。",excelInvalidExcel:"無効なExcelファイルです。",excelInvalidUpload:"無効なアップロードデータです。",downloadFormat:"フォーマットダウンロード",click:"クリック",drag:"ドラッグ",overwriteSelected:"選択項目を上書きしますか?",fileOverwrite:"ファイルを上書きしますか?",dropHere:"ここにドロップ",dropHerePrefix:"ここを",dropHereMiddle:"またはファイルを",dropHereSuffix:"してください。",withFormatting:"書式付き",requestTimedOut:"リクエストがタイムアウトしました。",serverError:"サーバーエラーが発生しました。",total:"合計",correct:"正常",error:"エラー",success:"成功",fail:"失敗",excelExportConfirmLargeData:"大量データをエクスポートしますか?",footerTotalRowCount:"合計: {totalRowCount}",footerFilteredRowCount:"{filterdRowCount} / {totalRowCount}",aggregateAverage:"平均",aggregateCount:"件数",aggregateMin:"最小値",aggregateMax:"最大値",aggregateSum:"合計",settings:"設定",collapseToolbar:"ツールバーを折りたたむ",expandToolbar:"ツールバーを展開",searchPrev:"前の検索結果",searchNext:"次の検索結果",searchGoTo:"結果番号へ移動",searching:"検索中...",deleteCondition:"条件を削除",deleteSort:"ソートを削除",selectPlaceholder:"選択",byValueLabel:"ラベル",decrease:"減少",increase:"増加",selectColor:"色を選択",noColor:"色なし",customColorInput:"直接入力",alignLeft:"左揃え",alignCenter:"中央揃え",alignRight:"右揃え",alignLabel:"配置",fontStyleLabel:"文字スタイル",bold:"太字",italic:"斜体",underline:"下線",columnOptions:"列オプション",showAllColumns:"すべて表示",commonSection:"共通",headerLabelField:"ヘッダーラベル",pinColumn:"固定",pinLeft:"左",pinNone:"なし",pinRight:"右",columnWidthPx:"幅(px)",headerSection:"ヘッダー",cellSection:"セル",fontLabel:"文字",sizeLabel:"サイズ",displayMask:"表示形式(マスク)",resetThisColumn:"この列をリセット",selectColumnHint:"列を選択してください",showColumnNamed:"{column} を表示",columnTextColor:"文字色",cellStyleTitle:"セルスタイル",formulaHelp:"数式ヘルプ",validFormula:"有効な数式",formulaHint:"列を選択するか値を入力して数式を作成してください。",ruleName:"ルール名",targetColumns:"適用列",allColumns:"全列",colorLabel:"色",cellBgColor:"背景色",cellTextColor:"文字色",moveUp:"上へ",moveDown:"下へ",formulaPlaceholder:"例: [需要数] > [在庫数] AND [優先度] < 3",helpColumnRef:"列参照",helpCompare:"比較",helpArithmetic:"算術",helpLogic:"論理",helpString:"文字列",helpNull:"NULL チェック",helpValue:"値",groupColon:"グループ:",groupEmptyHint:"ここに列をドラッグしてグループ化",addGroupBtn:"+ グループ追加",ungroup:"解除",removeGroup:"グループ削除",excelImportTitle:"Excel 取り込み",processing:"処理中…",excelPreview:"プレビュー {shown}行 / 全 {total}行+",clientImportFile:"ファイルから取り込み (クライアント)",clientExportXlsx:"XLSX (クライアント)",groupExpand:"グループを展開",groupCollapse:"グループを折りたたむ",fontSizeDefault:"既定",maskGroupNone:"なし",maskGroupNumber:"数値",maskGroupDate:"日付",maskGroupString:"文字列",maskNoneText:"マスクなし",maskNoneDesc:"元の値をそのまま表示",maskThousandsText:"桁区切り (1,234)",maskThousandsDesc:"例: 1234 → 1,234",maskDecimal2Text:"小数2桁 (#,##0.00)",maskDecimal2Desc:"例: 1234.5 → 1,234.50",maskKrwText:"ウォン (₩1,234)",maskKrwDesc:"例: 1234 → ₩1,234",maskUsdText:"ドル ($1,234.00)",maskUsdDesc:"例: 1234.5 → $1,234.50",maskPercentText:"パーセント (12%)",maskPercentDesc:"例: 12 → 12%",maskDateIsoDesc:"例: 2026-05-26",maskDateKoDesc:"例: 2026-05-26",maskDatetimeDesc:"例: 2026-05-26 14:30",maskDateUsDesc:"例: 05/26/2026",maskPhoneText:"電話番号 (010-1234-5678)",maskPhoneDesc:"例: 01012345678 → 010-1234-5678",maskRrnText:"住民登録番号 (000000-0000000)",maskRrnDesc:"例: 9501011234567 → 950101-1234567",maskBizText:"事業者登録番号 (000-00-00000)",maskBizDesc:"例: 1234567890 → 123-45-67890"},GridPivot:{setting:"ピボット設定",gridSetting:"グリッド設定",fieldSetting:"フィールド設定",showRowTotals:"行合計表示",showColumnTotals:"列合計表示",subtotalCriteria:"小計基準",subtotalAggregateField:"小計集計フィールド",totalsBeforeData:"データ前に合計表示",showZeros:"ゼロ表示",showOutlineMode:"アウトラインモード",collapsibleSubtotal:"小計折りたたみ",fieldName:"フィールド名",fieldAggregate:"集計",fieldShowAs:"表示方式",fieldFormat:"形式",openChart:"チャートを開く",selectValueField:"値フィールド選択",none:"なし",sum:"合計",count:"個数",average:"平均",max:"最大値",min:"最小値",range:"範囲",std:"標準偏差",var:"分散",stdPop:"母標準偏差",varPop:"母分散",cntAll:"全個数",cntNumbers:"数値の個数",showFirstValue:"最初の値",showLastValue:"最後の値",noCalculation:"計算なし",diffRow:"前の行との差",diffRowPct:"前の行との差 (%)",diffCol:"前の列との差",diffColPct:"前の列との差 (%)",grandtotalPct:"総計に対する割合",rowTotalPct:"行合計に対する割合",colTotalPct:"列合計に対する割合",prevRowPct:"前の行に対する割合",prevColPct:"前の列に対する割合",runTot:"累計",runTotPct:"累計割合",generalFormat:"一般",int:"整数",float:"小数",currency:"通貨",percentage:"パーセント (整数)",percentageDot2:"パーセント (小数)",thousands:"千単位",millions:"百万単位",billions:"十億単位",subtotal:"小計",grandtotal:"総計",grandtotalValue:"総合計",category:"カテゴリ",chartType:"チャートタイプ",chartXAxis:"X軸",chartYAxis:"Y軸",categoryName:"カテゴリ名",barChart:"棒グラフ",lineChart:"折れ線グラフ",lineSymbolChart:"シンボル折れ線グラフ",areaChart:"エリアチャート",chartRenderingErrorHeader:"チャートレンダリングエラー",chartRenderingErrorContent:"チャートを表示できません。",contextPivotExportXlsx:"ビューエクスポート (xlsx)",contextPivotExportOriginXlsx:"元データエクスポート (xlsx)",contextPivotExportOriginCsv:"元データエクスポート (csv)",row:"行",column:"列",value:"値",filter:"フィルター",searchFieldPlaceholder:"フィールド検索...",dropZoneRowPlaceholder:"行軸フィールドをドラッグしてください",dropZoneColumnPlaceholder:"列軸フィールドをドラッグしてください",dropZoneValuePlaceholder:"値フィールドをドラッグしてください",dropZoneFilterPlaceholder:"フィルターフィールドをドラッグしてください",update:"更新",selectFieldForReport:"レポートに追加するフィールドを選択:",dragFieldsBetweenAreas:"下の領域間にフィールドをドラッグしてください:",valueSummaryCriteria:"値の集計方法",roundRound:"四捨五入",roundFloor:"切り捨て",roundCeil:"切り上げ",roundTrunc:"切り捨て(0方向)",roundingMode:"丸めモード",decimalPlaces:"小数点桁数",decimalUnlimited:"制限なし",showOriginalValue:"元の値を併記",back:"戻る",parentRowPct:"上位行グループ比 (%)",parentColPct:"上位列グループ比 (%)",rankAsc:"昇順ランク",rankDesc:"降順ランク",index:"インデックス",showTotalsGrand:"合計",showTotalsSub:"小計",fieldPanelSetting:"フィールド設定",colSubtotalCriteria:"列小計基準",allowRowToggle:"行の展開/折りたたみ許可",allowColToggle:"列の展開/折りたたみ許可",outlineMode:"アウトラインモード"},Gantt:{searchPlaceholder:"検索",columnSize:"列サイズ",rowSize:"行サイズ"},Chart:{filterPopup:"フィルター",resetFilter:"フィルターリセット",addFilter:"フィルター追加",symbolEqual:"等しい",symbolNotEqual:"等しくない",symbolContains:"含む",symbolNotContains:"含まない",symbolLessThan:"より小さい",symbolGreaterThan:"より大きい",symbolLessOrEqual:"以下",symbolGreaterOrEqual:"以上",symbolEmpty:"空",symbolNotEmpty:"空でない",chartSetting:"チャート設定",chartCategory:"チャートカテゴリ",chartType:"チャートタイプ",chartUseZoom:"ズーム使用",multiYAxisSetting:"Y軸マルチ設定",notUsed:"(使用しない)",chartPopup:"チャートポップアップ",errorMessage:"データの読み込み中にエラーが発生しました。",valueFieldSetting:"値フィールド設定",valueSummaryCriteria:"値集計基準",selectFieldForReport:"レポートに追加するフィールドを選択:",column:"列",row:"行",value:"値",sumValue:"∑ 値",count:"件数",sum:"合計",average:"平均",min:"最小値",max:"最大値",seriesCategory:"一般",pieCategory:"パイ",scatterCategory:"散布図",treemapCategory:"ツリーマップ",boxplotCategory:"ボックスプロット",candlestickCategory:"ローソク足",barChart:"棒グラフ",stackBarChart:"スタック棒グラフ",horizontalStackBarChart:"横スタック棒グラフ",lineChart:"折れ線グラフ",lineSymbolChart:"折れ線グラフ(シンボル)",areaChart:"エリアチャート",general:"一般",custom:"カスタム",axisCategoryLabel:"軸 (カテゴリ)",legendSeriesLabel:"凡例 (シリーズ)",legendSingleLabel:"凡例 (単一選択)",legendMultiLabel:"凡例 (複数選択可)",valueSingleLabel:"値 (単一選択)",xAxisSingleLabel:"X軸 (単一選択)",yAxisMultiLabel:"Y軸 (複数選択可)",notSet:"未指定",legendLimitExceededTitle:"チャートの凡例数が最大 {limit} 件を超えました。",legendLimitExceededContent:"凡例を {limit} 件以下に再設定してください。"},NumberInput:{increase:"値を増やす",decrease:"値を減らす"},DateInput:{prevDate:"前の日付",nextDate:"次の日付"},PasswordInput:{showPassword:"パスワードを表示",hidePassword:"パスワードを非表示"},Tab:{closeTab:"{label} を閉じる"},SplitPane:{resizeHandle:"領域サイズの調整"},BreadCrumb:{navigation:"パンくずリスト"}};function we(e){return(t,o,n,r)=>{var ae;const d=e.portal?new kt:null,m=d?d.open():t,s=new xo;if(r!=null&&r.slots)for(const[te,Y]of Object.entries(r.slots))s.register(te,Y);r!=null&&r.slotResolver&&s.setResolver(r.slotResolver);const i=new Set(Object.keys(o)),h=r!=null&&r.providedKeys?new Set(r.providedKeys):null,a=te=>{const Y=e.defaults;if(!Y)return te;const T={...te};for(const K of Object.keys(Y))T[K]===void 0&&(T[K]=Y[K]);return T};let u=a({...o}),p=(r==null?void 0:r.locale)??It;const v=(r==null?void 0:r.validator)??null,y=[];let R=new Map,$=new Set,b=new Map,z=null;const E={get props(){return u},emit:n,slots:s,requestUpdate:()=>N.requestUpdate(),onCleanup:te=>y.push(te),px:te=>Le(te),get locale(){return p},validator:v,controlled:te=>h?h.has(te):i.has(te),slot(te,Y){if(!s.has(te))return l.nothing;const T=b.get(te)??0;b.set(te,T+1);const K=`${te}#${T}`;return R.set(K,{name:te,scope:Y}),l.html`<span data-moz-slot=${te} data-moz-slot-id=${K}></span>`}},L=e.setup(E);class W extends Po{template(){return R=new Map,b=new Map,L.render()}renderNow(){super.renderNow();let Y=null;if(L.renderPortal){const T=L.renderPortal(),K=L.getPortalContainer?L.getPortalContainer():document.body;T===l.nothing||T==null||K==null?z&&z.isOpen&&(l.render(l.nothing,z.element),z.close()):(z||(z=new kt),Y=z.isOpen?z.element:z.open("moz-overlay-portal",K),l.render(T,Y))}for(const[T,{name:K,scope:ne}]of R){let G=this.container.querySelector(`[data-moz-slot-id="${T}"]`);!G&&Y&&(G=Y.querySelector(`[data-moz-slot-id="${T}"]`)),G&&s.fill(T,K,G,ne)}for(const T of $)R.has(T)||s.clear(T);$=new Set(R.keys())}flush(){this.isMounted&&this.renderNow()}onDestroy(){for(const Y of y.splice(0))try{Y()}catch{}s.destroy()}}const N=new W(m);return N.mount(),(ae=L.onMounted)==null||ae.call(L,m.firstElementChild),{get el(){return m.firstElementChild},update(te,Y){Y!=null&&Y.replace?(u=a({...te}),i.clear()):u=a({...u,...te});for(const T of Object.keys(te))i.add(T);Y!=null&&Y.sync?N.flush():N.requestUpdate()},destroy(){N.destroy(),d==null||d.close(),z==null||z.close()},setLocale(te){te!==p&&(p=te??It,N.requestUpdate())},api:L.api??{}}}}class Fl extends qt.Directive{constructor(o){super(o);Ve(this,"prevKeys",[]);Ve(this,"listeners",new Map);if(o.type!==qt.PartType.ELEMENT)throw new Error("spread() 는 element 바인딩(`<el ${spread(obj)}>`)에서만 사용할 수 있습니다.")}render(o){return l.nothing}update(o,[n]){const r=o.element,d=n??{};for(const m of this.prevKeys)if(!(m in d))if(this.isEventKey(m)){const s=this.listeners.get(m);s&&r.removeEventListener(this.eventName(m),s),this.listeners.delete(m)}else r.removeAttribute(m);for(const[m,s]of Object.entries(d))if(!(m==="class"||m==="style"||m==="key"||m==="ref"))if(this.isEventKey(m)&&typeof s=="function"){const i=this.eventName(m),h=this.listeners.get(m);h&&r.removeEventListener(i,h),r.addEventListener(i,s),this.listeners.set(m,s)}else s==null?r.removeAttribute(m):m.startsWith("aria-")?r.setAttribute(m,String(s)):s===!1?r.removeAttribute(m):s===!0?r.setAttribute(m,""):r.setAttribute(m,String(s));return this.prevKeys=Object.keys(d),l.noChange}isEventKey(o){return o.length>2&&o.startsWith("on")&&o[2]===o[2].toUpperCase()}eventName(o){return o.slice(2).toLowerCase()}}const he=qt.directive(Fl);function M(...e){return xl.clsx(e)}function Bl(){return st.extend(zl),st.extend(Ml),st.extend(Ll),st.extend(Tl),st.extend(Vl),st.extend(Dl),st.tz.setDefault("Asia/Seoul"),st}const Ee=Bl();function Hl(){const e=[];return{addValidator:d=>{e.push(d)},removeValidator:d=>{const m=e.findIndex(s=>s.validate===d.validate);m>=0&&e.splice(m,1)},validate:async(d="save")=>(await Promise.all(e.map(s=>s.validate(d).then(i=>i===void 0?!0:i)))).every(s=>s),initValidator:()=>{var d;for(const m of e)(d=m==null?void 0:m.initValidator)==null||d.call(m)}}}const Ol=16;function Ul(e,t){let o=0;return(...n)=>{const r=Date.now();r-o>=t&&(o=r,e(...n))}}class pt{constructor(t){Ve(this,"opened",!1);Ve(this,"scrollHandler");Ve(this,"clickHandler");this.opts=t,this.scrollHandler=Ul(o=>this.onScroll(o),Ol),this.clickHandler=o=>this.onOutsideClick(o)}open(){this.opened||(this.opened=!0,document.addEventListener("scroll",this.scrollHandler,{capture:!0}),this.opts.closeOnOutsideClick!==!1&&setTimeout(()=>{this.opened&&document.addEventListener("click",this.clickHandler,{capture:!0})},0),queueMicrotask(()=>this.calcPosition()))}close(){this.opened&&(this.opened=!1,document.removeEventListener("scroll",this.scrollHandler,{capture:!0}),document.removeEventListener("click",this.clickHandler,{capture:!0}))}destroy(){this.close()}calcPosition(){const t=this.opts.anchor(),o=this.opts.panel();if(!t||!o)return;const n=t.getBoundingClientRect(),r=this.opts.maxHeight?this.opts.maxHeight():250,d=window.innerHeight-n.bottom,m=n.top,s=d<r&&m>=r;let i=n.left;const h=o.clientWidth;n.left+h>document.body.clientWidth&&(i-=h-n.width);let a=`${n.width}px`,u=!1;if(this.opts.listWidth){const p=this.opts.listWidth();p&&(typeof p!="number"||p>0)&&(a=typeof p=="number"?`${p}px`:p,u=!0)}o.style.position="fixed",o.style.left=`${i}px`,this.opts.useMinWidth?o.style.minWidth=`${n.width}px`:u?o.style.width=String(a):o.style.width=`${n.width}px`,s?(o.style.bottom=`${window.innerHeight-n.top}px`,o.style.top="auto"):(o.style.top=`${n.bottom}px`,o.style.bottom="auto")}onScroll(t){const o=t.target;if(this.opts.ignoreScrollTargets&&o&&this.opts.ignoreScrollTargets(o))return;const n=this.opts.anchor();if(n){const r=n.getBoundingClientRect();if(r.bottom<0||r.top>window.innerHeight){this.opts.requestClose();return}}this.calcPosition()}onOutsideClick(t){var n,r,d,m,s;if(this.opts.closeOnOutsideClick===!1)return;const o=t.target;(d=(r=(n=this.opts).container)==null?void 0:r.call(n))!=null&&d.contains(o)||(m=this.opts.panel())!=null&&m.contains(o)||(s=this.opts.anchor())!=null&&s.contains(o)||this.opts.requestClose()}}const tt=[];let Et=!1;function To(e){var o;if(e.key!=="Escape")return;const t=tt[tt.length-1];t&&t.kind==="moz"&&((o=t.onEscape)==null||o.call(t,e),e.stopPropagation())}function _l(){Et||typeof window>"u"||(window.addEventListener("keydown",To,{capture:!0}),Et=!0)}function Nl(){!Et||typeof window>"u"||(window.removeEventListener("keydown",To,!0),Et=!1)}function Bt(e){tt.push(e),_l();let t=!1;return{release(){if(t)return;t=!0;const o=tt.indexOf(e);o>=0&&tt.splice(o,1),tt.length===0&&Nl()},isTopmost(){return tt[tt.length-1]===e}}}function Ht(e){return Bt({kind:"moz",onEscape:e})}function Wl(){return Bt({kind:"foreign"})}function ht(){return Bt({kind:"self"})}function Kl(){return tt.length}function Ot(e={}){const{circleClass:t="",progressClass:o=""}=e;return l.html`<svg
|
|
1
|
+
"use strict";var El=Object.defineProperty;var Pl=(e,t,l)=>t in e?El(e,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):e[t]=l;var Ve=(e,t,l)=>Pl(e,typeof t!="symbol"?t+"":t,l);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("lit-html"),qt=require("lit-html/directive.js"),le=require("lit-html/directives/style-map.js"),xl=require("clsx"),xe=require("lit-html/directives/if-defined.js"),Eo=require("lit-html/directives/unsafe-html.js"),Lt=require("lit-html/directives/live.js"),st=require("dayjs"),Ll=require("dayjs/plugin/duration.js"),Tl=require("dayjs/plugin/minMax.js"),Ml=require("dayjs/plugin/timezone.js"),zl=require("dayjs/plugin/utc.js"),Vl=require("dayjs/plugin/isSameOrBefore.js"),Dl=require("dayjs/plugin/isSameOrAfter.js");require("dayjs/locale/ko.js");require("dayjs/locale/en.js");require("dayjs/locale/zh.js");require("dayjs/locale/ja.js");const N=require("lit-html/directives/ref.js"),Fe=require("@tanstack/virtual-core");var Ye=typeof document<"u"?document.currentScript:null;class Po{constructor(t){Ve(this,"container");Ve(this,"updateScheduled",!1);Ve(this,"mounted",!1);Ve(this,"cleanups",[]);this.container=t}mount(){return this.mounted?this:(this.mounted=!0,this.onMount(),this.renderNow(),this)}requestUpdate(){!this.mounted||this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>{this.updateScheduled=!1,this.mounted&&this.renderNow()}))}renderNow(){o.render(this.template(),this.container)}addCleanup(t){this.cleanups.push(t)}onMount(){}onDestroy(){}destroy(){if(this.mounted){this.mounted=!1,this.onDestroy();for(const t of this.cleanups.splice(0))try{t()}catch{}o.render(o.nothing,this.container)}}get isMounted(){return this.mounted}}class Al{constructor(){Ve(this,"listeners",new Set)}subscribe(t){return this.listeners.add(t),()=>{this.listeners.delete(t)}}emit(){for(const t of this.listeners)t()}clearListeners(){this.listeners.clear()}}class xo{constructor(){Ve(this,"renderers",new Map);Ve(this,"resolver",null);Ve(this,"mounted",new Map)}setResolver(t){this.resolver=t}lookup(t){var l;return this.renderers.get(t)??((l=this.resolver)==null?void 0:l.call(this,t))}register(t,l){this.renderers.set(t,l)}unregister(t){for(const l of Array.from(this.mounted.keys()))(l===t||l.startsWith(`${t}#`))&&this.clear(l);this.renderers.delete(t)}has(t){return this.lookup(t)!==void 0}fill(t,l,n,r){var i,h;const d=this.lookup(l);if(!d)return!1;const m=this.mounted.get(t);if(m){if(m.el===n)return(h=(i=m.handle).update)==null||h.call(i,r),!0;m.handle.dispose(),this.mounted.delete(t)}const s=d(n,r);return this.mounted.set(t,{el:n,handle:s}),!0}clear(t){const l=this.mounted.get(t);l&&(l.handle.dispose(),this.mounted.delete(t))}clearAll(){for(const t of Array.from(this.mounted.keys()))this.clear(t)}destroy(){this.clearAll(),this.renderers.clear(),this.resolver=null}get mountedCount(){return this.mounted.size}}class kt{constructor(){Ve(this,"el",null)}open(t="",l=document.body){return this.el?this.el:(this.el=document.createElement("div"),t&&(this.el.className=t),l.appendChild(this.el),this.el)}close(){this.el&&(this.el.remove(),this.el=null)}get element(){return this.el}get isOpen(){return this.el!==null}}function Lo(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)})}function Le(e,t=16){return e/t}let ro=0;function Xe(e=""){return ro+=1,`${e}${ro}`}const rt=(e,t)=>{const l=Object.keys(e),n=Object.keys(t);if(l.length!==n.length)return!1;for(const r of l)if(e[r]!==t[r])return!1;return!0};function ge(e,t){const l={};for(const n of Object.keys(e))t.has(n)||(l[n]=e[n]);return l}function ut(e){const t={},l={};for(const n of Object.keys(e))n.startsWith("aria-")?t[n]=e[n]:l[n]=e[n];return{aria:t,dom:l}}function Pe(e){if(!e)return{};if(typeof e=="object")return e;if(typeof e=="string"){const t={};for(const l of e.split(";")){const n=l.indexOf(":");n>0&&(t[l.slice(0,n).trim()]=l.slice(n+1).trim())}return t}return{}}function Tt(e,t,l,n){return e.length>0||t===0||!n||n.getBoundingClientRect().height>0?e:Array.from({length:t},(r,d)=>({index:d,size:l,start:d*l}))}const It={Toast:{close:"닫기"},Popup:{title:"팝업",save:"저장",cancel:"취소",ok:"확인",close:"닫기"},Select:{searchPlaceholder:"검색",emptyText:"데이터가 없습니다",requiredMessage:"{label} 은(는) 필수입니다"},MultiSelect:{search:"검색",selectAll:"전체 선택",selectFiltered:"필터 결과 선택",specificResults:"결과만",specificSelect:"선택만",noData:"데이터가 없습니다",required:"{label} 은(는) 필수입니다",headerFormat:"항목 ({count})"},TreeSelect:{search:"검색",selectAll:"전체 선택",selectFiltered:"필터 결과 선택",specificResults:"결과만",noData:"데이터가 없습니다",showSelectedOnly:"선택한 항목만 표시",expandAll:"모두 펼치기",collapseAll:"모두 접기",required:"{label} 은(는) 필수입니다",headerFormat:"항목 ({count})",expand:"펼치기",collapse:"접기"},TagInput:{add:"추가",editTag:"{label} 수정",removeTag:"{label} 삭제"},TimePicker:{hour:"시",minute:"분",currentTime:"현재 시간"},EmptyState:{customEmptyHeader:"데이터 없음",customEmptyContent:"표시할 데이터가 없습니다.",dataEmptyHeader:"데이터가 없습니다.",dataEmptyContent:"필요한 데이터를 추가해 주세요.",resultEmptyHeader:"설정한 조건에 해당되는 데이터가 없습니다.",resultEmptyContent:`조회 조건이 적절하게 설정되었는지 확인해주세요.
|
|
2
|
+
조회 조건을 변경하였다면, 조회 버튼을 다시 눌러주세요.`,searchEmptyHeader:"검색 결과 없음",searchEmptyContent:"필터 값을 확인하고 다시 시도해 주세요."},TableSelect:{searchPlaceholder:"검색",emptyText:"데이터가 없습니다",requiredMessage:"{label} 은(는) 필수입니다",footerSelect:"선택",footerNavigate:"이동",footerClose:"닫기"},Common:{requiredMessage:"{label} 은(는) 필수입니다"},Grid:{layoutSetting:"보기 설정",filter:"필터",sort:"정렬",customCellStyle:"조건부 서식 설정",reset:"초기화",searchFilter:"검색",newView:"새 뷰",selectAll:"전체 선택",columnPicker:"열 표시/숨김 설정",viewToolbar:"Tool Bar 보기",viewFooter:"Footer 보기",viewGroupPanel:"그룹 패널 보기",resetFilterAndSort:"필터 및 정렬 초기화",defaultView:"기본 뷰",filterPopup:"필터 설정",resetFilter:"필터 초기화",addFilter:"필터 추가",sortingPopup:"정렬 설정",ascending:"오름차순",descending:"내림차순",resetSort:"정렬 초기화",addSort:"정렬 추가",symbolEqual:"같음",symbolNotEqual:"같지 않음",symbolContains:"포함",symbolNotContains:"포함하지 않음",symbolLessThan:"보다 작음",symbolGreaterThan:"보다 큼",symbolLessOrEqual:"이하",symbolGreaterOrEqual:"이상",symbolEmpty:"비어 있음",symbolNotEmpty:"비어 있지 않음",customCellRuleNamePlaceholder:"규칙 이름을 입력하세요",addFormulaCondition:"조건 추가",applicationColumn:"적용 열",backgroundColor:"배경색",fontColor:"글꼴 색",resetCustomCell:"초기화",addFormulaConditionSet:"규칙 추가",customColor:"사용자 지정 색상",formulaConditionSet:"새 규칙",contextFilterAndSort:"필터 및 정렬",contextAddFilter:"필터 추가",contextSelectFilter:"선택 값으로 필터",contextResetColumnFilter:"열 필터 초기화",contextResetColumnSort:"열 정렬 초기화",contextResetColumnAll:"열 필터/정렬 초기화",contextDataCopy:"선택한 데이터 복사",contextDataExcelCopy:"Excel 복사",contextDataWithHeaderCopy:"선택한 데이터 복사 (헤더 포함)",contextPin:"열 고정 / 해제",contextColumnPicker:"열 표시/숨김 설정",contextMoveColumnFirst:"첫 번째 열로 보내기",contextAutoSizeColumns:"열 너비 자동 조정",contextGroupPanel:"그룹 패널",contextGroupToggle:"그룹 접기/펼치기",contextGroupCollapseAll:"모든 그룹 접기",contextGroupExpandAll:"모든 그룹 펼치기",groupPanelPlaceholder:"열을 드래그 앤 드롭하여 그룹을 만듭니다.",contextBulkEdit:"데이터 일괄변경 [{name}]",contextImport:"가져오기",contextImportExcel:"Excel 가져오기 (덮어쓰기)",contextImportExcelAppend:"Excel 가져오기 (추가)",contextExport:"내보내기",contextExportXlsx:"엑셀 내보내기 (xlsx)",contextExportCsv:"CSV 내보내기 (csv)",contextSum:"합계",check:"확인",cancel:"취소",save:"저장",remove:"삭제",close:"닫기",pause:"일시 중지",add:"추가",immediateApply:"바로 적용",warning:"경고",mozWarning:"경고",confirmCancel:"취소하시겠습니까?",alreadyExcelProgress:"Excel 작업이 이미 진행 중입니다.",downloadFail:"다운로드에 실패했습니다.",addDataWithFilterSort:"필터/정렬이 적용된 상태에서 데이터를 추가하시겠습니까?",resetAndAdd:"초기화 후 추가",confirmDeleteGeneral:"{name}을(를) 삭제하시겠습니까?",toastCopySuccess:"복사되었습니다.",toastSaveSuccess:"저장되었습니다.",toastSaveError:"저장에 실패했습니다.",toastResetSuccess:"초기화되었습니다.",toastRequiredVal:"필수 값을 입력하세요.",excelInvalidExcel:"유효하지 않은 Excel 파일입니다.",excelInvalidUpload:"유효하지 않은 업로드 데이터입니다.",downloadFormat:"서식 내려받기",click:"클릭",drag:"드래그",overwriteSelected:"선택한 항목을 덮어쓰시겠습니까?",fileOverwrite:"파일을 덮어쓰시겠습니까?",dropHere:"이 곳을 클릭 또는 파일을 드래그 하세요.",dropHerePrefix:"이 곳을 ",dropHereMiddle:" 또는 파일을 ",dropHereSuffix:" 하세요.",withFormatting:"서식 포함",requestTimedOut:"요청 시간이 초과되었습니다.",serverError:"서버 오류가 발생했습니다.",total:"전체",correct:"정상",error:"오류",success:"성공",fail:"실패",excelExportConfirmLargeData:"대용량 데이터를 내보내시겠습니까?",footerTotalRowCount:"총 개수: {totalRowCount}개",footerFilteredRowCount:"{filterdRowCount} / {totalRowCount}",aggregateAverage:"평균",aggregateCount:"개수",aggregateMin:"최소",aggregateMax:"최대",aggregateSum:"합계",settings:"설정",collapseToolbar:"툴바 접기",expandToolbar:"툴바 펼치기",searchPrev:"이전 검색 결과",searchNext:"다음 검색 결과",searchGoTo:"결과 번호로 이동",searching:"검색 중...",deleteCondition:"조건 삭제",deleteSort:"정렬 삭제",selectPlaceholder:"선택",byValueLabel:"레이블",decrease:"감소",increase:"증가",selectColor:"색상 선택",noColor:"색상 없음",customColorInput:"직접 입력",alignLeft:"왼쪽 정렬",alignCenter:"가운데 정렬",alignRight:"오른쪽 정렬",alignLabel:"정렬",fontStyleLabel:"글자 스타일",bold:"굵게",italic:"기울임",underline:"밑줄",columnOptions:"컬럼 옵션",showAllColumns:"전체 표시",commonSection:"공통",headerLabelField:"헤더 라벨",pinColumn:"고정",pinLeft:"왼쪽",pinNone:"없음",pinRight:"오른쪽",columnWidthPx:"너비(px)",headerSection:"헤더",cellSection:"셀",fontLabel:"글자",sizeLabel:"크기",displayMask:"표시 형식(마스크)",resetThisColumn:"이 컬럼 초기화",selectColumnHint:"컬럼을 선택하세요",showColumnNamed:"{column} 표시",columnTextColor:"글자색",cellStyleTitle:"셀 스타일",formulaHelp:"수식 도움말",validFormula:"유효한 수식",formulaHint:"컬럼을 선택하거나 값을 입력해 수식을 작성하세요.",ruleName:"규칙 이름",targetColumns:"적용 컬럼",allColumns:"전체 컬럼",colorLabel:"색상",cellBgColor:"배경 색상",cellTextColor:"텍스트 색상",moveUp:"위로",moveDown:"아래로",formulaPlaceholder:"예: [수요수량] > [재고수량] AND [우선순위] < 3",helpColumnRef:"컬럼 참조",helpCompare:"비교",helpArithmetic:"산술",helpLogic:"논리",helpString:"문자열",helpNull:"NULL 체크",helpValue:"값",groupColon:"그룹:",groupEmptyHint:"여기에 컬럼을 추가해 그룹화",addGroupBtn:"+ 그룹 추가",ungroup:"해제",removeGroup:"그룹 제거",excelImportTitle:"Excel 가져오기",processing:"처리 중…",excelPreview:"미리보기 {shown}행 / 총 {total}행+",clientImportFile:"파일에서 가져오기 (클라이언트)",clientExportXlsx:"XLSX (클라이언트)",groupExpand:"그룹 펼치기",groupCollapse:"그룹 접기",fontSizeDefault:"기본",maskGroupNone:"없음",maskGroupNumber:"숫자",maskGroupDate:"날짜",maskGroupString:"문자열",maskNoneText:"마스크 없음",maskNoneDesc:"원본 값 그대로 표시",maskThousandsText:"천 단위 구분 (1,234)",maskThousandsDesc:"예: 1234 → 1,234",maskDecimal2Text:"소수 2자리 (#,##0.00)",maskDecimal2Desc:"예: 1234.5 → 1,234.50",maskKrwText:"원화 (₩1,234)",maskKrwDesc:"예: 1234 → ₩1,234",maskUsdText:"달러 ($1,234.00)",maskUsdDesc:"예: 1234.5 → $1,234.50",maskPercentText:"퍼센트 (12%)",maskPercentDesc:"예: 12 → 12%",maskDateIsoDesc:"예: 2026-05-26",maskDateKoDesc:"예: 2026년 05월 26일",maskDatetimeDesc:"예: 2026-05-26 14:30",maskDateUsDesc:"예: 05/26/2026",maskPhoneText:"전화번호 (010-1234-5678)",maskPhoneDesc:"예: 01012345678 → 010-1234-5678",maskRrnText:"주민등록번호 (000000-0000000)",maskRrnDesc:"예: 9501011234567 → 950101-1234567",maskBizText:"사업자등록번호 (000-00-00000)",maskBizDesc:"예: 1234567890 → 123-45-67890"},GridPivot:{setting:"피봇 설정",gridSetting:"그리드 설정",fieldSetting:"값 필드 설정",showRowTotals:"행 합계 표시",showColumnTotals:"열 합계 표시",subtotalCriteria:"소계 기준",subtotalAggregateField:"소계 집계 필드",totalsBeforeData:"합계 먼저 보기",showZeros:"빈 값 채우기",showOutlineMode:"개요 모드",collapsibleSubtotal:"소계 접기",fieldName:"필드 이름",fieldAggregate:"집계",fieldShowAs:"표시 방식",fieldFormat:"형식",openChart:"차트 열기",selectValueField:"값 필드 선택",none:"없음",sum:"합계",count:"개수",average:"평균",max:"최대값",min:"최소값",range:"범위",std:"표준 편차",var:"분산",stdPop:"모표준 편차",varPop:"모분산",cntAll:"전체 개수",cntNumbers:"숫자 개수",showFirstValue:"첫 번째 값",showLastValue:"마지막 값",noCalculation:"계산 없음",diffRow:"이전 행과의 차이",diffRowPct:"이전 행과의 차이 (%)",diffCol:"이전 열과의 차이",diffColPct:"이전 열과의 차이 (%)",grandtotalPct:"전체 합계 대비 (%)",rowTotalPct:"행 합계 대비 (%)",colTotalPct:"열 합계 대비 (%)",prevRowPct:"이전 행 대비 (%)",prevColPct:"이전 열 대비 (%)",runTot:"누적 합계",runTotPct:"누적 합계 (%)",generalFormat:"일반",int:"정수",float:"실수",currency:"통화",percentage:"백분율 (정수)",percentageDot2:"백분율 (실수)",thousands:"천 단위",millions:"백만 단위",billions:"십억 단위",subtotal:"소계",grandtotal:"전체 합계",grandtotalValue:"총합계",category:"범주",chartType:"차트 유형",chartXAxis:"X축 범주",chartYAxis:"Y축 범주",categoryName:"카테고리",barChart:"막대 차트",lineChart:"꺾은선 차트",lineSymbolChart:"기호 꺾은선 차트",areaChart:"영역 차트",chartRenderingErrorHeader:"차트 렌더링 오류",chartRenderingErrorContent:"차트를 표시할 수 없습니다.",contextPivotExportXlsx:"화면 내보내기 (xlsx)",contextPivotExportOriginXlsx:"원본 데이터 내보내기 (xlsx)",contextPivotExportOriginCsv:"원본 데이터 내보내기 (csv)",row:"행",column:"열",value:"값",filter:"필터",searchFieldPlaceholder:"필드 검색...",dropZoneRowPlaceholder:"행 축 필드를 드래그하세요",dropZoneColumnPlaceholder:"열 축 필드를 드래그하세요",dropZoneValuePlaceholder:"값 필드를 드래그하세요",dropZoneFilterPlaceholder:"필터 필드를 드래그하세요",update:"업데이트",selectFieldForReport:"보고서에 추가할 필드 선택:",dragFieldsBetweenAreas:"아래 영역 사이에 필드를 끌어 놓으십시오:",valueSummaryCriteria:"값 요약 기준",roundRound:"반올림",roundFloor:"내림",roundCeil:"올림",roundTrunc:"절삭",roundingMode:"반올림 모드",decimalPlaces:"소수점 자리수",decimalUnlimited:"제한 없음",showOriginalValue:"원본값 병기",back:"뒤로",parentRowPct:"상위 행 그룹(%)",parentColPct:"상위 열 그룹(%)",rankAsc:"오름차순 순위",rankDesc:"내림차순 순위",index:"인덱스",showTotalsGrand:"합계",showTotalsSub:"부분합",fieldPanelSetting:"필드 설정",colSubtotalCriteria:"열 소계 기준",allowRowToggle:"행 확장/축소 허용",allowColToggle:"열 확장/축소 허용",outlineMode:"요약 모드"},Gantt:{searchPlaceholder:"검색",columnSize:"컬럼 크기",rowSize:"행 크기"},Chart:{filterPopup:"필터",resetFilter:"필터 초기화",addFilter:"필터 추가",symbolEqual:"같음",symbolNotEqual:"같지 않음",symbolContains:"포함",symbolNotContains:"포함하지 않음",symbolLessThan:"보다 작음",symbolGreaterThan:"보다 큼",symbolLessOrEqual:"작거나 같음",symbolGreaterOrEqual:"크거나 같음",symbolEmpty:"비어있음",symbolNotEmpty:"비어있지 않음",chartSetting:"차트 설정",chartCategory:"차트 카테고리",chartType:"차트 타입",chartUseZoom:"줌 사용",multiYAxisSetting:"Y축 다중 설정",notUsed:"(사용안함)",chartPopup:"차트 팝업",errorMessage:"데이터를 불러오는 중 오류가 발생했습니다.",valueFieldSetting:"값 필드 설정",valueSummaryCriteria:"값 요약 기준",selectFieldForReport:"보고서에 추가할 필드 선택:",column:"열",row:"행",value:"값",sumValue:"∑ 값",count:"개수",sum:"합계",average:"평균",min:"최소값",max:"최대값",seriesCategory:"일반",pieCategory:"파이",scatterCategory:"산점도",treemapCategory:"트리맵",boxplotCategory:"박스플롯",candlestickCategory:"캔들스틱",barChart:"바 차트",stackBarChart:"스택 바 차트",horizontalStackBarChart:"가로 스택 바 차트",lineChart:"선 차트",lineSymbolChart:"선 차트(심볼)",areaChart:"면적 차트",general:"일반",custom:"사용자 지정",axisCategoryLabel:"축 (범주)",legendSeriesLabel:"범례 (계열)",legendSingleLabel:"범례 (단일 선택)",legendMultiLabel:"범례 (다중 선택 가능)",valueSingleLabel:"값 (단일 선택)",xAxisSingleLabel:"X축 (단일 선택)",yAxisMultiLabel:"Y축 (다중 선택 가능)",notSet:"미지정",legendLimitExceededTitle:"차트 범례 개수가 최대 {limit}개를 초과했습니다.",legendLimitExceededContent:"범례를 {limit}개 이하로 재설정하여 주십시오."},NumberInput:{increase:"값 증가",decrease:"값 감소"},DateInput:{prevDate:"이전 날짜",nextDate:"다음 날짜"},PasswordInput:{showPassword:"비밀번호 표시",hidePassword:"비밀번호 숨기기"},Tab:{closeTab:"{label} 닫기"},SplitPane:{resizeHandle:"영역 크기 조절"},BreadCrumb:{navigation:"탐색 경로"}},Rl={Toast:{close:"Close"},Popup:{title:"Popup",save:"Save",cancel:"Cancel",ok:"OK",close:"Close"},Select:{searchPlaceholder:"Search",emptyText:"No data",requiredMessage:"{label} is required"},MultiSelect:{search:"Search",selectAll:"Select All",selectFiltered:"Select Filtered",specificResults:"Only Results",specificSelect:"Only",noData:"No data",required:"{label} is required",headerFormat:"ITEMS ({count})"},TreeSelect:{search:"Search",selectAll:"Select All",selectFiltered:"Select Filtered",specificResults:"Only Results",noData:"No data",showSelectedOnly:"Show selected only",expandAll:"Expand All",collapseAll:"Collapse All",required:"{label} is required",headerFormat:"ITEMS ({count})",expand:"Expand",collapse:"Collapse"},TagInput:{add:"Add",editTag:"Edit {label}",removeTag:"Remove {label}"},TimePicker:{hour:"Hour",minute:"Minute",currentTime:"Current Time"},EmptyState:{customEmptyHeader:"No data",customEmptyContent:"There is no data to display.",dataEmptyHeader:"No data to display",dataEmptyContent:"Please enter the required data.",resultEmptyHeader:"No results",resultEmptyContent:"Check the search conditions and try again.",searchEmptyHeader:"No search results",searchEmptyContent:"Please check the filter value and try again."},TableSelect:{searchPlaceholder:"Search",emptyText:"No data",requiredMessage:"{label} is required",footerSelect:"Select",footerNavigate:"Navigate",footerClose:"Close"},Common:{requiredMessage:"{label} is required"},Grid:{layoutSetting:"Layout Settings",filter:"Filter",sort:"Sort",customCellStyle:"Conditional Formatting",reset:"Reset",searchFilter:"Search",newView:"New View",selectAll:"Select All",columnPicker:"Show/Hide Columns",viewToolbar:"Show Toolbar",viewFooter:"Show Footer",viewGroupPanel:"Show Group Panel",resetFilterAndSort:"Reset Filter & Sort",defaultView:"Default View",filterPopup:"Filter Settings",resetFilter:"Reset Filter",addFilter:"Add Filter",sortingPopup:"Sort Settings",ascending:"Ascending",descending:"Descending",resetSort:"Reset Sort",addSort:"Add Sort",symbolEqual:"Equal",symbolNotEqual:"Not Equal",symbolContains:"Contains",symbolNotContains:"Does Not Contain",symbolLessThan:"Less Than",symbolGreaterThan:"Greater Than",symbolLessOrEqual:"Less Or Equal",symbolGreaterOrEqual:"Greater Or Equal",symbolEmpty:"Empty",symbolNotEmpty:"Not Empty",customCellRuleNamePlaceholder:"Enter rule name",addFormulaCondition:"Add Condition",applicationColumn:"Application Column",backgroundColor:"Background Color",fontColor:"Font Color",resetCustomCell:"Reset",addFormulaConditionSet:"Add Rule",customColor:"Custom Color",formulaConditionSet:"New Rule",contextFilterAndSort:"Filter & Sort",contextAddFilter:"Add Filter",contextSelectFilter:"Filter by Selection",contextResetColumnFilter:"Reset Column Filter",contextResetColumnSort:"Reset Column Sort",contextResetColumnAll:"Reset Column Filter/Sort",contextDataCopy:"Copy",contextDataExcelCopy:"Copy for Excel",contextDataWithHeaderCopy:"Copy with Header",contextPin:"Pin Column",contextColumnPicker:"Column Picker",contextMoveColumnFirst:"Move to First Column",contextAutoSizeColumns:"Auto Size Columns",contextGroupPanel:"Group Panel",contextGroupToggle:"Toggle Collapse",contextGroupCollapseAll:"Collapse All Groups",contextGroupExpandAll:"Expand All Groups",groupPanelPlaceholder:"Drag and drop columns here to create groups.",contextBulkEdit:"Bulk Edit {name}",contextImport:"Import",contextImportExcel:"Import Excel (Overwrite)",contextImportExcelAppend:"Import Excel (Append)",contextExport:"Export",contextExportXlsx:"Excel (xlsx)",contextExportCsv:"CSV",contextSum:"Sum",check:"OK",cancel:"Cancel",save:"Save",remove:"Delete",close:"Close",pause:"Pause",add:"Add",immediateApply:"Apply Immediately",warning:"Warning",mozWarning:"Warning",confirmCancel:"Are you sure you want to cancel?",alreadyExcelProgress:"Excel operation is already in progress.",downloadFail:"Download failed.",addDataWithFilterSort:"Add data while filter/sort is applied?",resetAndAdd:"Reset and Add",confirmDeleteGeneral:"Are you sure you want to delete {name}?",toastCopySuccess:"Copied.",toastSaveSuccess:"Saved.",toastSaveError:"Save failed.",toastResetSuccess:"Reset.",toastRequiredVal:"Please enter the required values.",excelInvalidExcel:"Invalid Excel file.",excelInvalidUpload:"Invalid upload data.",downloadFormat:"Download Format",click:"Click",drag:"Drag",overwriteSelected:"Overwrite selected items?",fileOverwrite:"Overwrite the file?",dropHere:"Drop here",dropHerePrefix:"",dropHereMiddle:" here or ",dropHereSuffix:" a file.",withFormatting:"With Formatting",requestTimedOut:"Request timed out.",serverError:"A server error occurred.",total:"Total",correct:"Correct",error:"Error",success:"Success",fail:"Fail",excelExportConfirmLargeData:"Export large data?",footerTotalRowCount:"Total: {totalRowCount}",footerFilteredRowCount:"{filterdRowCount} / {totalRowCount}",aggregateAverage:"Average",aggregateCount:"Count",aggregateMin:"Min",aggregateMax:"Max",aggregateSum:"Sum",settings:"Settings",collapseToolbar:"Collapse toolbar",expandToolbar:"Expand toolbar",searchPrev:"Previous result",searchNext:"Next result",searchGoTo:"Go to result",searching:"Searching...",deleteCondition:"Delete condition",deleteSort:"Delete sort",selectPlaceholder:"Select",byValueLabel:"Label",decrease:"Decrease",increase:"Increase",selectColor:"Select color",noColor:"No color",customColorInput:"Custom",alignLeft:"Align left",alignCenter:"Align center",alignRight:"Align right",alignLabel:"Align",fontStyleLabel:"Font style",bold:"Bold",italic:"Italic",underline:"Underline",columnOptions:"Column Options",showAllColumns:"Show all",commonSection:"Common",headerLabelField:"Header label",pinColumn:"Pin",pinLeft:"Left",pinNone:"None",pinRight:"Right",columnWidthPx:"Width (px)",headerSection:"Header",cellSection:"Cell",fontLabel:"Font",sizeLabel:"Size",displayMask:"Display format (mask)",resetThisColumn:"Reset this column",selectColumnHint:"Select a column",showColumnNamed:"Show {column}",columnTextColor:"Text color",cellStyleTitle:"Cell Style",formulaHelp:"Formula help",validFormula:"Valid formula",formulaHint:"Select a column or enter a value to build a formula.",ruleName:"Rule name",targetColumns:"Target columns",allColumns:"All columns",colorLabel:"Color",cellBgColor:"Background color",cellTextColor:"Text color",moveUp:"Move up",moveDown:"Move down",formulaPlaceholder:"e.g. [Demand] > [Stock] AND [Priority] < 3",helpColumnRef:"Column ref",helpCompare:"Compare",helpArithmetic:"Arithmetic",helpLogic:"Logic",helpString:"String",helpNull:"NULL check",helpValue:"Value",groupColon:"Group:",groupEmptyHint:"Drag columns here to group",addGroupBtn:"+ Add group",ungroup:"Clear",removeGroup:"Remove group",excelImportTitle:"Excel Import",processing:"Processing…",excelPreview:"Preview {shown} rows / {total} total+",clientImportFile:"Import from file (client)",clientExportXlsx:"XLSX (client)",groupExpand:"Expand group",groupCollapse:"Collapse group",fontSizeDefault:"Default",maskGroupNone:"None",maskGroupNumber:"Number",maskGroupDate:"Date",maskGroupString:"String",maskNoneText:"No mask",maskNoneDesc:"Show raw value",maskThousandsText:"Thousands (1,234)",maskThousandsDesc:"e.g. 1234 → 1,234",maskDecimal2Text:"2 decimals (#,##0.00)",maskDecimal2Desc:"e.g. 1234.5 → 1,234.50",maskKrwText:"KRW (₩1,234)",maskKrwDesc:"e.g. 1234 → ₩1,234",maskUsdText:"USD ($1,234.00)",maskUsdDesc:"e.g. 1234.5 → $1,234.50",maskPercentText:"Percent (12%)",maskPercentDesc:"e.g. 12 → 12%",maskDateIsoDesc:"e.g. 2026-05-26",maskDateKoDesc:"e.g. 2026-05-26",maskDatetimeDesc:"e.g. 2026-05-26 14:30",maskDateUsDesc:"e.g. 05/26/2026",maskPhoneText:"Phone (010-1234-5678)",maskPhoneDesc:"e.g. 01012345678 → 010-1234-5678",maskRrnText:"RRN (000000-0000000)",maskRrnDesc:"e.g. 9501011234567 → 950101-1234567",maskBizText:"Business No. (000-00-00000)",maskBizDesc:"e.g. 1234567890 → 123-45-67890"},GridPivot:{setting:"Pivot Settings",gridSetting:"Grid Settings",fieldSetting:"Field Settings",showRowTotals:"Show Row Totals",showColumnTotals:"Show Column Totals",subtotalCriteria:"Subtotal Criteria",subtotalAggregateField:"Subtotal Aggregate Field",totalsBeforeData:"Show Totals Before Data",showZeros:"Show Zeros",showOutlineMode:"Outline Mode",collapsibleSubtotal:"Collapsible Subtotal",fieldName:"Field Name",fieldAggregate:"Aggregate",fieldShowAs:"Show As",fieldFormat:"Format",openChart:"Open Chart",selectValueField:"Select Value Field",none:"None",sum:"Sum",count:"Count",average:"Average",max:"Max",min:"Min",range:"Range",std:"Std Dev",var:"Variance",stdPop:"Pop Std Dev",varPop:"Pop Variance",cntAll:"Count All",cntNumbers:"Count Numbers",showFirstValue:"First Value",showLastValue:"Last Value",noCalculation:"No Calculation",diffRow:"Diff from Previous Row",diffRowPct:"Diff from Previous Row (%)",diffCol:"Diff from Previous Column",diffColPct:"Diff from Previous Column (%)",grandtotalPct:"% of Grand Total",rowTotalPct:"% of Row Total",colTotalPct:"% of Column Total",prevRowPct:"% of Previous Row",prevColPct:"% of Previous Column",runTot:"Running Total",runTotPct:"Running Total (%)",generalFormat:"General",int:"Integer",float:"Decimal",currency:"Currency",percentage:"Percentage (Integer)",percentageDot2:"Percentage (Decimal)",thousands:"Thousands",millions:"Millions",billions:"Billions",subtotal:"Subtotal",grandtotal:"Grand Total",grandtotalValue:"Grand Total",category:"Category",chartType:"Chart Type",chartXAxis:"X Axis",chartYAxis:"Y Axis",categoryName:"Category Name",barChart:"Bar Chart",lineChart:"Line Chart",lineSymbolChart:"Symbol Line Chart",areaChart:"Area Chart",chartRenderingErrorHeader:"Chart Rendering Error",chartRenderingErrorContent:"Unable to display the chart.",contextPivotExportXlsx:"View Export (xlsx)",contextPivotExportOriginXlsx:"Source Data Export (xlsx)",contextPivotExportOriginCsv:"Source Data Export (csv)",row:"Rows",column:"Columns",value:"Values",filter:"Filters",searchFieldPlaceholder:"Search fields...",dropZoneRowPlaceholder:"Drag row axis fields here",dropZoneColumnPlaceholder:"Drag column axis fields here",dropZoneValuePlaceholder:"Drag value fields here",dropZoneFilterPlaceholder:"Drag filter fields here",update:"Update",selectFieldForReport:"Choose fields to add to report:",dragFieldsBetweenAreas:"Drag fields between areas below:",valueSummaryCriteria:"Summarize Values By",roundRound:"Round",roundFloor:"Floor",roundCeil:"Ceil",roundTrunc:"Truncate",roundingMode:"Rounding mode",decimalPlaces:"Decimal places",decimalUnlimited:"No limit",showOriginalValue:"Show original value",back:"Back",parentRowPct:"% of Parent Row Group",parentColPct:"% of Parent Column Group",rankAsc:"Rank Ascending",rankDesc:"Rank Descending",index:"Index",showTotalsGrand:"Grand Totals",showTotalsSub:"Subtotals",fieldPanelSetting:"Field Settings",colSubtotalCriteria:"Column Subtotal Criteria",allowRowToggle:"Allow Row Expand/Collapse",allowColToggle:"Allow Column Expand/Collapse",outlineMode:"Outline Mode"},Gantt:{searchPlaceholder:"Search",columnSize:"Column Size",rowSize:"Row Size"},Chart:{filterPopup:"Filter",resetFilter:"Reset Filter",addFilter:"Add Filter",symbolEqual:"Equal",symbolNotEqual:"Not Equal",symbolContains:"Contains",symbolNotContains:"Not Contains",symbolLessThan:"Less Than",symbolGreaterThan:"Greater Than",symbolLessOrEqual:"Less or Equal",symbolGreaterOrEqual:"Greater or Equal",symbolEmpty:"Empty",symbolNotEmpty:"Not Empty",chartSetting:"Chart Setting",chartCategory:"Chart Category",chartType:"Chart Type",chartUseZoom:"Use Zoom",multiYAxisSetting:"Multi Y-Axis Setting",notUsed:"(Not Used)",chartPopup:"Chart Popup",errorMessage:"An error occurred while loading data.",valueFieldSetting:"Value Field Setting",valueSummaryCriteria:"Value Summary Criteria",selectFieldForReport:"Select fields to add to the report:",column:"Column",row:"Row",value:"Value",sumValue:"∑ Value",count:"Count",sum:"Sum",average:"Average",min:"Min",max:"Max",seriesCategory:"General",pieCategory:"Pie",scatterCategory:"Scatter",treemapCategory:"Treemap",boxplotCategory:"Boxplot",candlestickCategory:"Candlestick",barChart:"Bar Chart",stackBarChart:"Stack Bar Chart",horizontalStackBarChart:"Horizontal Stack Bar Chart",lineChart:"Line Chart",lineSymbolChart:"Line Chart (Symbol)",areaChart:"Area Chart",general:"General",custom:"Custom",axisCategoryLabel:"Axis (Category)",legendSeriesLabel:"Legend (Series)",legendSingleLabel:"Legend (Single)",legendMultiLabel:"Legend (Multiple)",valueSingleLabel:"Value (Single)",xAxisSingleLabel:"X-Axis (Single)",yAxisMultiLabel:"Y-Axis (Multiple)",notSet:"Not Set",legendLimitExceededTitle:"The number of chart legends has exceeded the maximum of {limit}.",legendLimitExceededContent:"Please reconfigure the legend to {limit} or fewer."},NumberInput:{increase:"Increase value",decrease:"Decrease value"},DateInput:{prevDate:"Previous date",nextDate:"Next date"},PasswordInput:{showPassword:"Show password",hidePassword:"Hide password"},Tab:{closeTab:"Close {label}"},SplitPane:{resizeHandle:"Resize panes"},BreadCrumb:{navigation:"Breadcrumb"}},ql={Toast:{close:"关闭"},Popup:{title:"弹窗",save:"保存",cancel:"取消",ok:"确认",close:"关闭"},Select:{searchPlaceholder:"搜索",emptyText:"暂无数据",requiredMessage:"{label} 为必填项"},MultiSelect:{search:"搜索",selectAll:"全选",selectFiltered:"选择筛选结果",specificResults:"仅结果",specificSelect:"仅选择",noData:"暂无数据",required:"{label} 为必填项",headerFormat:"项目 ({count})"},TreeSelect:{search:"搜索",selectAll:"全选",selectFiltered:"选择筛选结果",specificResults:"仅结果",noData:"暂无数据",showSelectedOnly:"仅显示已选项",expandAll:"全部展开",collapseAll:"全部收起",required:"{label} 为必填项",headerFormat:"项目 ({count})",expand:"展开",collapse:"折叠"},TagInput:{add:"添加",editTag:"编辑 {label}",removeTag:"删除 {label}"},TimePicker:{hour:"时",minute:"分",currentTime:"当前时间"},EmptyState:{customEmptyHeader:"暂无数据",customEmptyContent:"没有可显示的数据。",dataEmptyHeader:"暂无数据",dataEmptyContent:"请输入所需数据。",resultEmptyHeader:"无结果",resultEmptyContent:"请检查搜索条件后重试。",searchEmptyHeader:"无搜索结果",searchEmptyContent:"请检查筛选条件后重试。"},TableSelect:{searchPlaceholder:"搜索",emptyText:"暂无数据",requiredMessage:"{label} 为必填项",footerSelect:"选择",footerNavigate:"移动",footerClose:"关闭"},Common:{requiredMessage:"{label} 为必填项"},Grid:{layoutSetting:"布局设置",filter:"筛选",sort:"排序",customCellStyle:"条件格式设置",reset:"重置",searchFilter:"搜索",newView:"新建视图",selectAll:"全选",columnPicker:"列显示/隐藏设置",viewToolbar:"显示工具栏",viewFooter:"显示页脚",viewGroupPanel:"显示分组面板",resetFilterAndSort:"重置筛选和排序",defaultView:"默认视图",filterPopup:"筛选设置",resetFilter:"重置筛选",addFilter:"添加筛选",sortingPopup:"排序设置",ascending:"升序",descending:"降序",resetSort:"重置排序",addSort:"添加排序",symbolEqual:"等于",symbolNotEqual:"不等于",symbolContains:"包含",symbolNotContains:"不包含",symbolLessThan:"小于",symbolGreaterThan:"大于",symbolLessOrEqual:"小于或等于",symbolGreaterOrEqual:"大于或等于",symbolEmpty:"为空",symbolNotEmpty:"不为空",customCellRuleNamePlaceholder:"请输入规则名称",addFormulaCondition:"添加条件",applicationColumn:"应用列",backgroundColor:"背景色",fontColor:"字体颜色",resetCustomCell:"重置",addFormulaConditionSet:"添加规则",customColor:"自定义颜色",formulaConditionSet:"新建规则",contextFilterAndSort:"筛选和排序",contextAddFilter:"添加筛选",contextSelectFilter:"按选定值筛选",contextResetColumnFilter:"重置列筛选",contextResetColumnSort:"重置列排序",contextResetColumnAll:"重置列筛选/排序",contextDataCopy:"复制",contextDataExcelCopy:"Excel 复制",contextDataWithHeaderCopy:"含表头复制",contextPin:"固定列",contextColumnPicker:"列选择",contextMoveColumnFirst:"移至第一列",contextAutoSizeColumns:"自动调整列宽",contextGroupPanel:"分组面板",contextGroupToggle:"折叠/展开组",contextGroupCollapseAll:"折叠所有组",contextGroupExpandAll:"展开所有组",groupPanelPlaceholder:"将列拖放到此处以创建分组。",contextBulkEdit:"批量编辑 {name}",contextImport:"导入",contextImportExcel:"Excel 导入(覆盖)",contextImportExcelAppend:"Excel 导入(追加)",contextExport:"导出",contextExportXlsx:"Excel (xlsx)",contextExportCsv:"CSV",contextSum:"合计",check:"确认",cancel:"取消",save:"保存",remove:"删除",close:"关闭",pause:"暂停",add:"添加",immediateApply:"立即应用",warning:"警告",mozWarning:"警告",confirmCancel:"确定要取消吗?",alreadyExcelProgress:"Excel 操作正在进行中。",downloadFail:"下载失败。",addDataWithFilterSort:"在筛选/排序状态下添加数据?",resetAndAdd:"重置后添加",confirmDeleteGeneral:"确定要删除 {name} 吗?",toastCopySuccess:"已复制。",toastSaveSuccess:"已保存。",toastSaveError:"保存失败。",toastResetSuccess:"已重置。",toastRequiredVal:"请输入必填值。",excelInvalidExcel:"无效的 Excel 文件。",excelInvalidUpload:"无效的上传数据。",downloadFormat:"下载格式",click:"点击",drag:"拖拽",overwriteSelected:"覆盖选定项?",fileOverwrite:"覆盖文件?",dropHere:"拖放到此处",dropHerePrefix:"",dropHereMiddle:"此处或",dropHereSuffix:"文件。",withFormatting:"包含格式",requestTimedOut:"请求超时。",serverError:"服务器发生错误。",total:"总计",correct:"正常",error:"错误",success:"成功",fail:"失败",excelExportConfirmLargeData:"确定导出大量数据?",footerTotalRowCount:"总计: {totalRowCount}",footerFilteredRowCount:"{filterdRowCount} / {totalRowCount}",aggregateAverage:"平均",aggregateCount:"计数",aggregateMin:"最小值",aggregateMax:"最大值",aggregateSum:"合计",settings:"设置",collapseToolbar:"折叠工具栏",expandToolbar:"展开工具栏",searchPrev:"上一个结果",searchNext:"下一个结果",searchGoTo:"跳转到结果",searching:"搜索中...",deleteCondition:"删除条件",deleteSort:"删除排序",selectPlaceholder:"选择",byValueLabel:"标签",decrease:"减少",increase:"增加",selectColor:"选择颜色",noColor:"无颜色",customColorInput:"自定义输入",alignLeft:"左对齐",alignCenter:"居中对齐",alignRight:"右对齐",alignLabel:"对齐",fontStyleLabel:"字体样式",bold:"加粗",italic:"斜体",underline:"下划线",columnOptions:"列选项",showAllColumns:"全部显示",commonSection:"通用",headerLabelField:"表头标签",pinColumn:"固定",pinLeft:"左",pinNone:"无",pinRight:"右",columnWidthPx:"宽度(px)",headerSection:"表头",cellSection:"单元格",fontLabel:"文字",sizeLabel:"大小",displayMask:"显示格式(掩码)",resetThisColumn:"重置此列",selectColumnHint:"请选择列",showColumnNamed:"显示 {column}",columnTextColor:"文字颜色",cellStyleTitle:"单元格样式",formulaHelp:"公式帮助",validFormula:"有效公式",formulaHint:"选择列或输入值以创建公式。",ruleName:"规则名称",targetColumns:"应用列",allColumns:"全部列",colorLabel:"颜色",cellBgColor:"背景色",cellTextColor:"文字色",moveUp:"上移",moveDown:"下移",formulaPlaceholder:"例: [需求量] > [库存量] AND [优先级] < 3",helpColumnRef:"列引用",helpCompare:"比较",helpArithmetic:"算术",helpLogic:"逻辑",helpString:"字符串",helpNull:"NULL 检查",helpValue:"值",groupColon:"分组:",groupEmptyHint:"将列拖到此处进行分组",addGroupBtn:"+ 添加分组",ungroup:"解除",removeGroup:"移除分组",excelImportTitle:"Excel 导入",processing:"处理中…",excelPreview:"预览 {shown} 行 / 共 {total} 行+",clientImportFile:"从文件导入 (客户端)",clientExportXlsx:"XLSX (客户端)",groupExpand:"展开分组",groupCollapse:"折叠分组",fontSizeDefault:"默认",maskGroupNone:"无",maskGroupNumber:"数字",maskGroupDate:"日期",maskGroupString:"字符串",maskNoneText:"无掩码",maskNoneDesc:"按原值显示",maskThousandsText:"千位分隔 (1,234)",maskThousandsDesc:"例: 1234 → 1,234",maskDecimal2Text:"两位小数 (#,##0.00)",maskDecimal2Desc:"例: 1234.5 → 1,234.50",maskKrwText:"韩元 (₩1,234)",maskKrwDesc:"例: 1234 → ₩1,234",maskUsdText:"美元 ($1,234.00)",maskUsdDesc:"例: 1234.5 → $1,234.50",maskPercentText:"百分比 (12%)",maskPercentDesc:"例: 12 → 12%",maskDateIsoDesc:"例: 2026-05-26",maskDateKoDesc:"例: 2026-05-26",maskDatetimeDesc:"例: 2026-05-26 14:30",maskDateUsDesc:"例: 05/26/2026",maskPhoneText:"电话号码 (010-1234-5678)",maskPhoneDesc:"例: 01012345678 → 010-1234-5678",maskRrnText:"身份证号 (000000-0000000)",maskRrnDesc:"例: 9501011234567 → 950101-1234567",maskBizText:"营业执照号 (000-00-00000)",maskBizDesc:"例: 1234567890 → 123-45-67890"},GridPivot:{setting:"数据透视设置",gridSetting:"网格设置",fieldSetting:"字段设置",showRowTotals:"显示行合计",showColumnTotals:"显示列合计",subtotalCriteria:"小计基准",subtotalAggregateField:"小计汇总字段",totalsBeforeData:"在数据前显示合计",showZeros:"显示零值",showOutlineMode:"大纲模式",collapsibleSubtotal:"可折叠小计",fieldName:"字段名称",fieldAggregate:"汇总",fieldShowAs:"显示方式",fieldFormat:"格式",openChart:"打开图表",selectValueField:"选择值字段",none:"无",sum:"求和",count:"计数",average:"平均值",max:"最大值",min:"最小值",range:"范围",std:"标准差",var:"方差",stdPop:"总体标准差",varPop:"总体方差",cntAll:"全部计数",cntNumbers:"数字计数",showFirstValue:"第一个值",showLastValue:"最后一个值",noCalculation:"无计算",diffRow:"与前一行的差",diffRowPct:"与前一行的差 (%)",diffCol:"与前一列的差",diffColPct:"与前一列的差 (%)",grandtotalPct:"占总计百分比",rowTotalPct:"占行合计百分比",colTotalPct:"占列合计百分比",prevRowPct:"占前一行百分比",prevColPct:"占前一列百分比",runTot:"累计",runTotPct:"累计百分比",generalFormat:"常规",int:"整数",float:"小数",currency:"货币",percentage:"百分比 (整数)",percentageDot2:"百分比 (小数)",thousands:"千位",millions:"百万位",billions:"十亿位",subtotal:"小计",grandtotal:"总计",grandtotalValue:"总合计",category:"类别",chartType:"图表类型",chartXAxis:"X轴",chartYAxis:"Y轴",categoryName:"类别名称",barChart:"柱状图",lineChart:"折线图",lineSymbolChart:"符号折线图",areaChart:"面积图",chartRenderingErrorHeader:"图表渲染错误",chartRenderingErrorContent:"无法显示图表。",contextPivotExportXlsx:"视图导出 (xlsx)",contextPivotExportOriginXlsx:"原始数据导出 (xlsx)",contextPivotExportOriginCsv:"原始数据导出 (csv)",row:"行",column:"列",value:"值",filter:"筛选",searchFieldPlaceholder:"搜索字段...",dropZoneRowPlaceholder:"拖动行轴字段到这里",dropZoneColumnPlaceholder:"拖动列轴字段到这里",dropZoneValuePlaceholder:"拖动值字段到这里",dropZoneFilterPlaceholder:"拖动筛选字段到这里",update:"更新",selectFieldForReport:"选择要添加到报表的字段:",dragFieldsBetweenAreas:"在下面的区域之间拖动字段:",valueSummaryCriteria:"值汇总依据",roundRound:"四舍五入",roundFloor:"向下取整",roundCeil:"向上取整",roundTrunc:"截断",roundingMode:"舍入模式",decimalPlaces:"小数位数",decimalUnlimited:"无限制",showOriginalValue:"并列原始值",back:"返回",parentRowPct:"占上级行组百分比",parentColPct:"占上级列组百分比",rankAsc:"升序排名",rankDesc:"降序排名",index:"索引",showTotalsGrand:"总计",showTotalsSub:"小计",fieldPanelSetting:"字段设置",colSubtotalCriteria:"列小计基准",allowRowToggle:"允许行展开/折叠",allowColToggle:"允许列展开/折叠",outlineMode:"大纲模式"},Gantt:{searchPlaceholder:"搜索",columnSize:"列大小",rowSize:"行大小"},Chart:{filterPopup:"筛选",resetFilter:"重置筛选",addFilter:"添加筛选",symbolEqual:"等于",symbolNotEqual:"不等于",symbolContains:"包含",symbolNotContains:"不包含",symbolLessThan:"小于",symbolGreaterThan:"大于",symbolLessOrEqual:"小于等于",symbolGreaterOrEqual:"大于等于",symbolEmpty:"为空",symbolNotEmpty:"不为空",chartSetting:"图表设置",chartCategory:"图表类别",chartType:"图表类型",chartUseZoom:"使用缩放",multiYAxisSetting:"Y轴多轴设置",notUsed:"(未使用)",chartPopup:"图表弹窗",errorMessage:"加载数据时发生错误。",valueFieldSetting:"值字段设置",valueSummaryCriteria:"值汇总基准",selectFieldForReport:"选择要添加到报表的字段:",column:"列",row:"行",value:"值",sumValue:"∑ 值",count:"计数",sum:"合计",average:"平均",min:"最小值",max:"最大值",seriesCategory:"常规",pieCategory:"饼图",scatterCategory:"散点图",treemapCategory:"树状图",boxplotCategory:"箱线图",candlestickCategory:"K线图",barChart:"柱状图",stackBarChart:"堆叠柱状图",horizontalStackBarChart:"水平堆叠柱状图",lineChart:"折线图",lineSymbolChart:"折线图(符号)",areaChart:"面积图",general:"常规",custom:"自定义",axisCategoryLabel:"轴 (类别)",legendSeriesLabel:"图例 (系列)",legendSingleLabel:"图例 (单选)",legendMultiLabel:"图例 (多选)",valueSingleLabel:"值 (单选)",xAxisSingleLabel:"X轴 (单选)",yAxisMultiLabel:"Y轴 (多选)",notSet:"未指定",legendLimitExceededTitle:"图表图例数量已超过最大值 {limit} 个。",legendLimitExceededContent:"请将图例重新设置为 {limit} 个以内。"},NumberInput:{increase:"增加数值",decrease:"减少数值"},DateInput:{prevDate:"上一个日期",nextDate:"下一个日期"},PasswordInput:{showPassword:"显示密码",hidePassword:"隐藏密码"},Tab:{closeTab:"关闭 {label}"},SplitPane:{resizeHandle:"调整区域大小"},BreadCrumb:{navigation:"面包屑导航"}},Il={Toast:{close:"閉じる"},Popup:{title:"ポップアップ",save:"保存",cancel:"キャンセル",ok:"OK",close:"閉じる"},Select:{searchPlaceholder:"検索",emptyText:"データがありません",requiredMessage:"{label} は必須です"},MultiSelect:{search:"検索",selectAll:"すべて選択",selectFiltered:"フィルター結果を選択",specificResults:"結果のみ",specificSelect:"選択のみ",noData:"データがありません",required:"{label} は必須です",headerFormat:"項目 ({count})"},TreeSelect:{search:"検索",selectAll:"すべて選択",selectFiltered:"フィルター結果を選択",specificResults:"結果のみ",noData:"データがありません",showSelectedOnly:"選択項目のみ表示",expandAll:"すべて展開",collapseAll:"すべて折りたたむ",required:"{label} は必須です",headerFormat:"項目 ({count})",expand:"展開",collapse:"折りたたむ"},TagInput:{add:"追加",editTag:"{label} を編集",removeTag:"{label} を削除"},TimePicker:{hour:"時",minute:"分",currentTime:"現在時刻"},EmptyState:{customEmptyHeader:"データなし",customEmptyContent:"表示するデータがありません。",dataEmptyHeader:"表示するデータがありません",dataEmptyContent:"必要なデータを入力してください。",resultEmptyHeader:"結果なし",resultEmptyContent:"検索条件を確認して再度お試しください。",searchEmptyHeader:"検索結果なし",searchEmptyContent:"フィルター値を確認して再度お試しください。"},TableSelect:{searchPlaceholder:"検索",emptyText:"データがありません",requiredMessage:"{label} は必須です",footerSelect:"選択",footerNavigate:"移動",footerClose:"閉じる"},Common:{requiredMessage:"{label} は必須です"},Grid:{layoutSetting:"レイアウト設定",filter:"フィルター",sort:"ソート",customCellStyle:"条件付き書式設定",reset:"リセット",searchFilter:"検索",newView:"新しいビュー",selectAll:"すべて選択",columnPicker:"列の表示/非表示設定",viewToolbar:"ツールバー表示",viewFooter:"フッター表示",viewGroupPanel:"グループパネル表示",resetFilterAndSort:"フィルター・ソートリセット",defaultView:"デフォルトビュー",filterPopup:"フィルター設定",resetFilter:"フィルターリセット",addFilter:"フィルター追加",sortingPopup:"ソート設定",ascending:"昇順",descending:"降順",resetSort:"ソートリセット",addSort:"ソート追加",symbolEqual:"等しい",symbolNotEqual:"等しくない",symbolContains:"含む",symbolNotContains:"含まない",symbolLessThan:"より小さい",symbolGreaterThan:"より大きい",symbolLessOrEqual:"以下",symbolGreaterOrEqual:"以上",symbolEmpty:"空",symbolNotEmpty:"空でない",customCellRuleNamePlaceholder:"ルール名を入力してください",addFormulaCondition:"条件追加",applicationColumn:"適用列",backgroundColor:"背景色",fontColor:"フォント色",resetCustomCell:"リセット",addFormulaConditionSet:"ルールを追加",customColor:"カスタム色",formulaConditionSet:"新しいルール",contextFilterAndSort:"フィルター・ソート",contextAddFilter:"フィルター追加",contextSelectFilter:"選択値でフィルター",contextResetColumnFilter:"列フィルターリセット",contextResetColumnSort:"列ソートリセット",contextResetColumnAll:"列フィルター/ソートリセット",contextDataCopy:"コピー",contextDataExcelCopy:"Excelコピー",contextDataWithHeaderCopy:"ヘッダー付きコピー",contextPin:"列固定",contextColumnPicker:"列選択",contextMoveColumnFirst:"最初の列に移動",contextAutoSizeColumns:"列幅自動調整",contextGroupPanel:"グループパネル",contextGroupToggle:"グループ折りたたみ/展開",contextGroupCollapseAll:"すべてのグループを折りたたむ",contextGroupExpandAll:"すべてのグループを展開",groupPanelPlaceholder:"列をドラッグ&ドロップしてグループを作成します。",contextBulkEdit:"{name} 一括編集",contextImport:"インポート",contextImportExcel:"Excelインポート(上書き)",contextImportExcelAppend:"Excelインポート(追加)",contextExport:"エクスポート",contextExportXlsx:"Excel (xlsx)",contextExportCsv:"CSV",contextSum:"合計",check:"確認",cancel:"キャンセル",save:"保存",remove:"削除",close:"閉じる",pause:"一時停止",add:"追加",immediateApply:"すぐに適用",warning:"警告",mozWarning:"警告",confirmCancel:"キャンセルしますか?",alreadyExcelProgress:"Excel操作が進行中です。",downloadFail:"ダウンロードに失敗しました。",addDataWithFilterSort:"フィルター/ソート適用中にデータを追加しますか?",resetAndAdd:"リセットして追加",confirmDeleteGeneral:"{name}を削除しますか?",toastCopySuccess:"コピーしました。",toastSaveSuccess:"保存しました。",toastSaveError:"保存に失敗しました。",toastResetSuccess:"リセットしました。",toastRequiredVal:"必須値を入力してください。",excelInvalidExcel:"無効なExcelファイルです。",excelInvalidUpload:"無効なアップロードデータです。",downloadFormat:"フォーマットダウンロード",click:"クリック",drag:"ドラッグ",overwriteSelected:"選択項目を上書きしますか?",fileOverwrite:"ファイルを上書きしますか?",dropHere:"ここにドロップ",dropHerePrefix:"ここを",dropHereMiddle:"またはファイルを",dropHereSuffix:"してください。",withFormatting:"書式付き",requestTimedOut:"リクエストがタイムアウトしました。",serverError:"サーバーエラーが発生しました。",total:"合計",correct:"正常",error:"エラー",success:"成功",fail:"失敗",excelExportConfirmLargeData:"大量データをエクスポートしますか?",footerTotalRowCount:"合計: {totalRowCount}",footerFilteredRowCount:"{filterdRowCount} / {totalRowCount}",aggregateAverage:"平均",aggregateCount:"件数",aggregateMin:"最小値",aggregateMax:"最大値",aggregateSum:"合計",settings:"設定",collapseToolbar:"ツールバーを折りたたむ",expandToolbar:"ツールバーを展開",searchPrev:"前の検索結果",searchNext:"次の検索結果",searchGoTo:"結果番号へ移動",searching:"検索中...",deleteCondition:"条件を削除",deleteSort:"ソートを削除",selectPlaceholder:"選択",byValueLabel:"ラベル",decrease:"減少",increase:"増加",selectColor:"色を選択",noColor:"色なし",customColorInput:"直接入力",alignLeft:"左揃え",alignCenter:"中央揃え",alignRight:"右揃え",alignLabel:"配置",fontStyleLabel:"文字スタイル",bold:"太字",italic:"斜体",underline:"下線",columnOptions:"列オプション",showAllColumns:"すべて表示",commonSection:"共通",headerLabelField:"ヘッダーラベル",pinColumn:"固定",pinLeft:"左",pinNone:"なし",pinRight:"右",columnWidthPx:"幅(px)",headerSection:"ヘッダー",cellSection:"セル",fontLabel:"文字",sizeLabel:"サイズ",displayMask:"表示形式(マスク)",resetThisColumn:"この列をリセット",selectColumnHint:"列を選択してください",showColumnNamed:"{column} を表示",columnTextColor:"文字色",cellStyleTitle:"セルスタイル",formulaHelp:"数式ヘルプ",validFormula:"有効な数式",formulaHint:"列を選択するか値を入力して数式を作成してください。",ruleName:"ルール名",targetColumns:"適用列",allColumns:"全列",colorLabel:"色",cellBgColor:"背景色",cellTextColor:"文字色",moveUp:"上へ",moveDown:"下へ",formulaPlaceholder:"例: [需要数] > [在庫数] AND [優先度] < 3",helpColumnRef:"列参照",helpCompare:"比較",helpArithmetic:"算術",helpLogic:"論理",helpString:"文字列",helpNull:"NULL チェック",helpValue:"値",groupColon:"グループ:",groupEmptyHint:"ここに列をドラッグしてグループ化",addGroupBtn:"+ グループ追加",ungroup:"解除",removeGroup:"グループ削除",excelImportTitle:"Excel 取り込み",processing:"処理中…",excelPreview:"プレビュー {shown}行 / 全 {total}行+",clientImportFile:"ファイルから取り込み (クライアント)",clientExportXlsx:"XLSX (クライアント)",groupExpand:"グループを展開",groupCollapse:"グループを折りたたむ",fontSizeDefault:"既定",maskGroupNone:"なし",maskGroupNumber:"数値",maskGroupDate:"日付",maskGroupString:"文字列",maskNoneText:"マスクなし",maskNoneDesc:"元の値をそのまま表示",maskThousandsText:"桁区切り (1,234)",maskThousandsDesc:"例: 1234 → 1,234",maskDecimal2Text:"小数2桁 (#,##0.00)",maskDecimal2Desc:"例: 1234.5 → 1,234.50",maskKrwText:"ウォン (₩1,234)",maskKrwDesc:"例: 1234 → ₩1,234",maskUsdText:"ドル ($1,234.00)",maskUsdDesc:"例: 1234.5 → $1,234.50",maskPercentText:"パーセント (12%)",maskPercentDesc:"例: 12 → 12%",maskDateIsoDesc:"例: 2026-05-26",maskDateKoDesc:"例: 2026-05-26",maskDatetimeDesc:"例: 2026-05-26 14:30",maskDateUsDesc:"例: 05/26/2026",maskPhoneText:"電話番号 (010-1234-5678)",maskPhoneDesc:"例: 01012345678 → 010-1234-5678",maskRrnText:"住民登録番号 (000000-0000000)",maskRrnDesc:"例: 9501011234567 → 950101-1234567",maskBizText:"事業者登録番号 (000-00-00000)",maskBizDesc:"例: 1234567890 → 123-45-67890"},GridPivot:{setting:"ピボット設定",gridSetting:"グリッド設定",fieldSetting:"フィールド設定",showRowTotals:"行合計表示",showColumnTotals:"列合計表示",subtotalCriteria:"小計基準",subtotalAggregateField:"小計集計フィールド",totalsBeforeData:"データ前に合計表示",showZeros:"ゼロ表示",showOutlineMode:"アウトラインモード",collapsibleSubtotal:"小計折りたたみ",fieldName:"フィールド名",fieldAggregate:"集計",fieldShowAs:"表示方式",fieldFormat:"形式",openChart:"チャートを開く",selectValueField:"値フィールド選択",none:"なし",sum:"合計",count:"個数",average:"平均",max:"最大値",min:"最小値",range:"範囲",std:"標準偏差",var:"分散",stdPop:"母標準偏差",varPop:"母分散",cntAll:"全個数",cntNumbers:"数値の個数",showFirstValue:"最初の値",showLastValue:"最後の値",noCalculation:"計算なし",diffRow:"前の行との差",diffRowPct:"前の行との差 (%)",diffCol:"前の列との差",diffColPct:"前の列との差 (%)",grandtotalPct:"総計に対する割合",rowTotalPct:"行合計に対する割合",colTotalPct:"列合計に対する割合",prevRowPct:"前の行に対する割合",prevColPct:"前の列に対する割合",runTot:"累計",runTotPct:"累計割合",generalFormat:"一般",int:"整数",float:"小数",currency:"通貨",percentage:"パーセント (整数)",percentageDot2:"パーセント (小数)",thousands:"千単位",millions:"百万単位",billions:"十億単位",subtotal:"小計",grandtotal:"総計",grandtotalValue:"総合計",category:"カテゴリ",chartType:"チャートタイプ",chartXAxis:"X軸",chartYAxis:"Y軸",categoryName:"カテゴリ名",barChart:"棒グラフ",lineChart:"折れ線グラフ",lineSymbolChart:"シンボル折れ線グラフ",areaChart:"エリアチャート",chartRenderingErrorHeader:"チャートレンダリングエラー",chartRenderingErrorContent:"チャートを表示できません。",contextPivotExportXlsx:"ビューエクスポート (xlsx)",contextPivotExportOriginXlsx:"元データエクスポート (xlsx)",contextPivotExportOriginCsv:"元データエクスポート (csv)",row:"行",column:"列",value:"値",filter:"フィルター",searchFieldPlaceholder:"フィールド検索...",dropZoneRowPlaceholder:"行軸フィールドをドラッグしてください",dropZoneColumnPlaceholder:"列軸フィールドをドラッグしてください",dropZoneValuePlaceholder:"値フィールドをドラッグしてください",dropZoneFilterPlaceholder:"フィルターフィールドをドラッグしてください",update:"更新",selectFieldForReport:"レポートに追加するフィールドを選択:",dragFieldsBetweenAreas:"下の領域間にフィールドをドラッグしてください:",valueSummaryCriteria:"値の集計方法",roundRound:"四捨五入",roundFloor:"切り捨て",roundCeil:"切り上げ",roundTrunc:"切り捨て(0方向)",roundingMode:"丸めモード",decimalPlaces:"小数点桁数",decimalUnlimited:"制限なし",showOriginalValue:"元の値を併記",back:"戻る",parentRowPct:"上位行グループ比 (%)",parentColPct:"上位列グループ比 (%)",rankAsc:"昇順ランク",rankDesc:"降順ランク",index:"インデックス",showTotalsGrand:"合計",showTotalsSub:"小計",fieldPanelSetting:"フィールド設定",colSubtotalCriteria:"列小計基準",allowRowToggle:"行の展開/折りたたみ許可",allowColToggle:"列の展開/折りたたみ許可",outlineMode:"アウトラインモード"},Gantt:{searchPlaceholder:"検索",columnSize:"列サイズ",rowSize:"行サイズ"},Chart:{filterPopup:"フィルター",resetFilter:"フィルターリセット",addFilter:"フィルター追加",symbolEqual:"等しい",symbolNotEqual:"等しくない",symbolContains:"含む",symbolNotContains:"含まない",symbolLessThan:"より小さい",symbolGreaterThan:"より大きい",symbolLessOrEqual:"以下",symbolGreaterOrEqual:"以上",symbolEmpty:"空",symbolNotEmpty:"空でない",chartSetting:"チャート設定",chartCategory:"チャートカテゴリ",chartType:"チャートタイプ",chartUseZoom:"ズーム使用",multiYAxisSetting:"Y軸マルチ設定",notUsed:"(使用しない)",chartPopup:"チャートポップアップ",errorMessage:"データの読み込み中にエラーが発生しました。",valueFieldSetting:"値フィールド設定",valueSummaryCriteria:"値集計基準",selectFieldForReport:"レポートに追加するフィールドを選択:",column:"列",row:"行",value:"値",sumValue:"∑ 値",count:"件数",sum:"合計",average:"平均",min:"最小値",max:"最大値",seriesCategory:"一般",pieCategory:"パイ",scatterCategory:"散布図",treemapCategory:"ツリーマップ",boxplotCategory:"ボックスプロット",candlestickCategory:"ローソク足",barChart:"棒グラフ",stackBarChart:"スタック棒グラフ",horizontalStackBarChart:"横スタック棒グラフ",lineChart:"折れ線グラフ",lineSymbolChart:"折れ線グラフ(シンボル)",areaChart:"エリアチャート",general:"一般",custom:"カスタム",axisCategoryLabel:"軸 (カテゴリ)",legendSeriesLabel:"凡例 (シリーズ)",legendSingleLabel:"凡例 (単一選択)",legendMultiLabel:"凡例 (複数選択可)",valueSingleLabel:"値 (単一選択)",xAxisSingleLabel:"X軸 (単一選択)",yAxisMultiLabel:"Y軸 (複数選択可)",notSet:"未指定",legendLimitExceededTitle:"チャートの凡例数が最大 {limit} 件を超えました。",legendLimitExceededContent:"凡例を {limit} 件以下に再設定してください。"},NumberInput:{increase:"値を増やす",decrease:"値を減らす"},DateInput:{prevDate:"前の日付",nextDate:"次の日付"},PasswordInput:{showPassword:"パスワードを表示",hidePassword:"パスワードを非表示"},Tab:{closeTab:"{label} を閉じる"},SplitPane:{resizeHandle:"領域サイズの調整"},BreadCrumb:{navigation:"パンくずリスト"}};function we(e){return(t,l,n,r)=>{var ae;const d=e.portal?new kt:null,m=d?d.open():t,s=new xo;if(r!=null&&r.slots)for(const[ee,Y]of Object.entries(r.slots))s.register(ee,Y);r!=null&&r.slotResolver&&s.setResolver(r.slotResolver);const i=new Set(Object.keys(l)),h=r!=null&&r.providedKeys?new Set(r.providedKeys):null,a=ee=>{const Y=e.defaults;if(!Y)return ee;const M={...ee};for(const G of Object.keys(Y))M[G]===void 0&&(M[G]=Y[G]);return M};let u=a({...l}),p=(r==null?void 0:r.locale)??It;const v=(r==null?void 0:r.validator)??null,$=[];let A=new Map,S=new Set,y=new Map,D=null;const E={get props(){return u},emit:n,slots:s,requestUpdate:()=>W.requestUpdate(),onCleanup:ee=>$.push(ee),px:ee=>Le(ee),get locale(){return p},validator:v,controlled:ee=>h?h.has(ee):i.has(ee),slot(ee,Y){if(!s.has(ee))return o.nothing;const M=y.get(ee)??0;y.set(ee,M+1);const G=`${ee}#${M}`;return A.set(G,{name:ee,scope:Y}),o.html`<span data-moz-slot=${ee} data-moz-slot-id=${G}></span>`}},L=e.setup(E);class K extends Po{template(){return A=new Map,y=new Map,L.render()}renderNow(){super.renderNow();let Y=null;if(L.renderPortal){const M=L.renderPortal(),G=L.getPortalContainer?L.getPortalContainer():document.body;M===o.nothing||M==null||G==null?D&&D.isOpen&&(o.render(o.nothing,D.element),D.close()):(D||(D=new kt),Y=D.isOpen?D.element:D.open("moz-overlay-portal",G),o.render(M,Y))}for(const[M,{name:G,scope:ne}]of A){let oe=this.container.querySelector(`[data-moz-slot-id="${M}"]`);!oe&&Y&&(oe=Y.querySelector(`[data-moz-slot-id="${M}"]`)),oe&&s.fill(M,G,oe,ne)}for(const M of S)A.has(M)||s.clear(M);S=new Set(A.keys())}flush(){this.isMounted&&this.renderNow()}onDestroy(){for(const Y of $.splice(0))try{Y()}catch{}s.destroy()}}const W=new K(m);return W.mount(),(ae=L.onMounted)==null||ae.call(L,m.firstElementChild),{get el(){return m.firstElementChild},update(ee,Y){Y!=null&&Y.replace?(u=a({...ee}),i.clear()):u=a({...u,...ee});for(const M of Object.keys(ee))i.add(M);Y!=null&&Y.sync?W.flush():W.requestUpdate()},destroy(){W.destroy(),d==null||d.close(),D==null||D.close()},setLocale(ee){ee!==p&&(p=ee??It,W.requestUpdate())},api:L.api??{}}}}class Fl extends qt.Directive{constructor(l){super(l);Ve(this,"prevKeys",[]);Ve(this,"listeners",new Map);if(l.type!==qt.PartType.ELEMENT)throw new Error("spread() 는 element 바인딩(`<el ${spread(obj)}>`)에서만 사용할 수 있습니다.")}render(l){return o.nothing}update(l,[n]){const r=l.element,d=n??{};for(const m of this.prevKeys)if(!(m in d))if(this.isEventKey(m)){const s=this.listeners.get(m);s&&r.removeEventListener(this.eventName(m),s),this.listeners.delete(m)}else r.removeAttribute(m);for(const[m,s]of Object.entries(d))if(!(m==="class"||m==="style"||m==="key"||m==="ref"))if(this.isEventKey(m)&&typeof s=="function"){const i=this.eventName(m),h=this.listeners.get(m);h&&r.removeEventListener(i,h),r.addEventListener(i,s),this.listeners.set(m,s)}else s==null?r.removeAttribute(m):m.startsWith("aria-")?r.setAttribute(m,String(s)):s===!1?r.removeAttribute(m):s===!0?r.setAttribute(m,""):r.setAttribute(m,String(s));return this.prevKeys=Object.keys(d),o.noChange}isEventKey(l){return l.length>2&&l.startsWith("on")&&l[2]===l[2].toUpperCase()}eventName(l){return l.slice(2).toLowerCase()}}const he=qt.directive(Fl);function V(...e){return xl.clsx(e)}function Bl(){return st.extend(zl),st.extend(Ml),st.extend(Ll),st.extend(Tl),st.extend(Vl),st.extend(Dl),st.tz.setDefault("Asia/Seoul"),st}const Ee=Bl();function Ol(){const e=[];return{addValidator:d=>{e.push(d)},removeValidator:d=>{const m=e.findIndex(s=>s.validate===d.validate);m>=0&&e.splice(m,1)},validate:async(d="save")=>(await Promise.all(e.map(s=>s.validate(d).then(i=>i===void 0?!0:i)))).every(s=>s),initValidator:()=>{var d;for(const m of e)(d=m==null?void 0:m.initValidator)==null||d.call(m)}}}const Hl=16;function Ul(e,t){let l=0;return(...n)=>{const r=Date.now();r-l>=t&&(l=r,e(...n))}}class pt{constructor(t){Ve(this,"opened",!1);Ve(this,"scrollHandler");Ve(this,"clickHandler");this.opts=t,this.scrollHandler=Ul(l=>this.onScroll(l),Hl),this.clickHandler=l=>this.onOutsideClick(l)}open(){this.opened||(this.opened=!0,document.addEventListener("scroll",this.scrollHandler,{capture:!0}),this.opts.closeOnOutsideClick!==!1&&setTimeout(()=>{this.opened&&document.addEventListener("click",this.clickHandler,{capture:!0})},0),queueMicrotask(()=>this.calcPosition()))}close(){this.opened&&(this.opened=!1,document.removeEventListener("scroll",this.scrollHandler,{capture:!0}),document.removeEventListener("click",this.clickHandler,{capture:!0}))}destroy(){this.close()}calcPosition(){const t=this.opts.anchor(),l=this.opts.panel();if(!t||!l)return;const n=t.getBoundingClientRect(),r=this.opts.maxHeight?this.opts.maxHeight():250,d=window.innerHeight-n.bottom,m=n.top,s=d<r&&m>=r;let i=n.left;const h=l.clientWidth;n.left+h>document.body.clientWidth&&(i-=h-n.width);let a=`${n.width}px`,u=!1;if(this.opts.listWidth){const p=this.opts.listWidth();p&&(typeof p!="number"||p>0)&&(a=typeof p=="number"?`${p}px`:p,u=!0)}l.style.position="fixed",l.style.left=`${i}px`,this.opts.useMinWidth?(l.style.minWidth=`${n.width}px`,u&&(l.style.width=String(a))):u?l.style.width=String(a):l.style.width=`${n.width}px`,s?(l.style.bottom=`${window.innerHeight-n.top}px`,l.style.top="auto"):(l.style.top=`${n.bottom}px`,l.style.bottom="auto")}onScroll(t){const l=t.target;if(this.opts.ignoreScrollTargets&&l&&this.opts.ignoreScrollTargets(l))return;const n=this.opts.anchor();if(n){const r=n.getBoundingClientRect();if(r.bottom<0||r.top>window.innerHeight){this.opts.requestClose();return}}this.calcPosition()}onOutsideClick(t){var n,r,d,m,s;if(this.opts.closeOnOutsideClick===!1)return;const l=t.target;(d=(r=(n=this.opts).container)==null?void 0:r.call(n))!=null&&d.contains(l)||(m=this.opts.panel())!=null&&m.contains(l)||(s=this.opts.anchor())!=null&&s.contains(l)||this.opts.requestClose()}}const tt=[];let Et=!1;function To(e){var l;if(e.key!=="Escape")return;const t=tt[tt.length-1];t&&t.kind==="moz"&&((l=t.onEscape)==null||l.call(t,e),e.stopPropagation())}function Nl(){Et||typeof window>"u"||(window.addEventListener("keydown",To,{capture:!0}),Et=!0)}function _l(){!Et||typeof window>"u"||(window.removeEventListener("keydown",To,!0),Et=!1)}function Bt(e){tt.push(e),Nl();let t=!1;return{release(){if(t)return;t=!0;const l=tt.indexOf(e);l>=0&&tt.splice(l,1),tt.length===0&&_l()},isTopmost(){return tt[tt.length-1]===e}}}function Ot(e){return Bt({kind:"moz",onEscape:e})}function Wl(){return Bt({kind:"foreign"})}function ht(){return Bt({kind:"self"})}function Kl(){return tt.length}function Ht(e={}){const{circleClass:t="",progressClass:l=""}=e;return o.html`<svg
|
|
3
3
|
aria-hidden="true"
|
|
4
4
|
role="status"
|
|
5
5
|
class="moz-circle-loader"
|
|
@@ -18,58 +18,58 @@
|
|
|
18
18
|
<path
|
|
19
19
|
d="M7.10526 0C7.70019 3.43902e-05 8.18241 0.482401 8.18241 1.07715C8.18229 1.67179 7.70012 2.15426 7.10526 2.1543V2.15723C7.06949 2.15639 7.03369 2.15532 6.99784 2.15527C6.03943 2.15531 5.10233 2.43928 4.30545 2.97168C3.50856 3.5041 2.88707 4.26113 2.5203 5.14648C2.1536 6.03179 2.05795 7.00647 2.24491 7.94629C2.43192 8.88601 2.89351 9.74921 3.57108 10.4268C4.24878 11.1044 5.11251 11.5659 6.05252 11.7529C6.99249 11.9399 7.96688 11.8442 8.85233 11.4775C9.7377 11.1109 10.4946 10.49 11.0271 9.69336C11.5399 8.92611 11.8203 8.02853 11.8406 7.10742H11.8455C11.8456 6.51278 12.3278 6.03125 12.9226 6.03125C13.5175 6.03132 13.9996 6.51282 13.9998 7.10742C13.9998 7.14897 13.9966 7.19015 13.992 7.23047C13.9653 8.04804 13.7988 8.86228 13.4851 9.63477C12.7865 11.3552 11.4331 12.7276 9.72245 13.4502C8.86044 13.8148 7.9338 14.0017 6.99784 14C5.38299 13.9991 3.81802 13.4403 2.56815 12.418C1.31831 11.3955 0.460158 9.97214 0.139438 8.38965C-0.181225 6.80702 0.0550344 5.16173 0.808383 3.7334C1.56174 2.30515 2.78597 1.18104 4.27323 0.551758C5.16282 0.176049 6.11107 -0.00627887 7.05838 0.00195312C7.07392 0.0012886 7.08956 0 7.10526 0Z"
|
|
20
20
|
fill="var(--moz-color-accent)"
|
|
21
|
-
class=${
|
|
21
|
+
class=${l}
|
|
22
22
|
></path>
|
|
23
|
-
</svg>`}function Mo(e="default"){switch(e){case"text":return"moz-text-button";case"outline":return"moz-outline-button";case"icon":return"moz-icon-button";case"icon-accent":return"moz-icon-button moz-icon-accent-button";case"no-interaction":return"moz-icon-button moz-no-interaction-button";case"default":default:return"moz-default-button"}}const Gl=new Set(["action","text","type","nativeType","width","loading","disabled","class","style"]);function at(e,t={}){const
|
|
23
|
+
</svg>`}function Mo(e="default"){switch(e){case"text":return"moz-text-button";case"outline":return"moz-outline-button";case"icon":return"moz-icon-button";case"icon-accent":return"moz-icon-button moz-icon-accent-button";case"no-interaction":return"moz-icon-button moz-no-interaction-button";case"default":default:return"moz-default-button"}}const Gl=new Set(["action","text","type","nativeType","width","loading","disabled","class","style"]);function at(e,t={}){const l=!!e.disabled||!!e.loading,n=t.icon!=null&&t.icon!==o.nothing,r=e.width==null?void 0:typeof e.width=="number"?`${Le(e.width)}rem`:e.width,d=e.width==null?void 0:typeof e.width=="number"?`${e.width}px`:e.width,m={width:r,minWidth:r,"--moz-btn-loading-width":d,...Pe(e.style)},s=i=>{var h;l||(h=t.onClick)==null||h.call(t,i)};return o.html`
|
|
24
24
|
<button
|
|
25
25
|
type=${e.nativeType??"button"}
|
|
26
|
-
class=${
|
|
26
|
+
class=${V("moz-button",Mo(e.type),{loading:!!e.loading,disabled:l,"moz-icon-text-button":n},e.class)}
|
|
27
27
|
style=${le.styleMap(m)}
|
|
28
|
-
?disabled=${
|
|
28
|
+
?disabled=${l}
|
|
29
29
|
@click=${s}
|
|
30
30
|
${he(t.rest??{})}
|
|
31
31
|
>
|
|
32
|
-
${e.loading?
|
|
33
|
-
>${
|
|
34
|
-
>`:t.icon??
|
|
35
|
-
${e.text||t.content!=null?
|
|
36
|
-
>${e.text??""}${t.content??
|
|
37
|
-
>`:
|
|
32
|
+
${e.loading?o.html`<span class="spinner" data-part="spinner"
|
|
33
|
+
>${Ht({circleClass:"fill-accent-50",progressClass:"fill-accent-400"})}</span
|
|
34
|
+
>`:t.icon??o.nothing}
|
|
35
|
+
${e.text||t.content!=null?o.html`<span class=${V("text",{"has-icon-text":n})} data-part="label"
|
|
36
|
+
>${e.text??""}${t.content??o.nothing}</span
|
|
37
|
+
>`:o.nothing}
|
|
38
38
|
</button>
|
|
39
|
-
`}const zo=we({name:"moz-button",defaults:{type:"default",loading:!1,disabled:!1},setup(e){let t=!!e.props.loading,
|
|
39
|
+
`}const zo=we({name:"moz-button",defaults:{type:"default",loading:!1,disabled:!1},setup(e){let t=!!e.props.loading,l=e.props.loading;const n=r=>{const d=e.props;d.disabled||t||(e.emit("click",r),d.action==="Search"&&(t=!0,d.loading||(t=!1),e.requestUpdate()))};return{api:{setLoading(r){t=r,e.requestUpdate()}},render(){const r=e.props;r.loading!==l&&(l=r.loading,t=!!r.loading);const d=e.slots.has("icon"),m=!!r.disabled||t,s=r.width==null?void 0:typeof r.width=="number"?`${e.px(r.width)}rem`:r.width,i=r.width==null?void 0:typeof r.width=="number"?`${r.width}px`:r.width,h={};for(const u of Object.keys(r))Gl.has(u)||(h[u]=r[u]);const a={width:s,minWidth:s,"--moz-btn-loading-width":i,...Pe(r.style)};return o.html`
|
|
40
40
|
<button
|
|
41
41
|
type=${r.nativeType??"button"}
|
|
42
|
-
class=${
|
|
42
|
+
class=${V("moz-button",Mo(r.type),{loading:t,disabled:m,"moz-icon-text-button":d},r.class)}
|
|
43
43
|
style=${le.styleMap(a)}
|
|
44
44
|
?disabled=${m}
|
|
45
45
|
@click=${n}
|
|
46
46
|
${he(h)}
|
|
47
47
|
>
|
|
48
|
-
${t?
|
|
49
|
-
>${
|
|
48
|
+
${t?o.html`<span class="spinner" data-part="spinner"
|
|
49
|
+
>${Ht({circleClass:"fill-accent-50",progressClass:"fill-accent-400"})}</span
|
|
50
50
|
>`:e.slot("icon",{disabled:m})}
|
|
51
|
-
${r.text||e.slots.has("default")?
|
|
51
|
+
${r.text||e.slots.has("default")?o.html`<span class=${V("text",{"has-icon-text":d})} data-part="label"
|
|
52
52
|
>${r.text??""}${e.slot("default",{disabled:m})}</span
|
|
53
|
-
>`:
|
|
53
|
+
>`:o.nothing}
|
|
54
54
|
</button>
|
|
55
|
-
`}}}}),Yl={name:"MozButton",core:zo,props:["action","text","type","nativeType","width","loading","disabled"],emits:["click"],slots:["icon","default"],expose:!0},Zl=new Set(["for","disabled","required","isReadOnly","class","style"]);function Ut(e,t){return
|
|
56
|
-
>${t}${e.required?
|
|
57
|
-
>`}const Vo=we({name:"moz-label",setup(e){return{render(){const t=e.props,
|
|
55
|
+
`}}}}),Yl={name:"MozButton",core:zo,props:["action","text","type","nativeType","width","loading","disabled"],emits:["click"],slots:["icon","default"],expose:!0},Zl=new Set(["for","disabled","required","isReadOnly","class","style"]);function Ut(e,t){return V("moz-label",{disabled:!!e.disabled,"read-only":!!e.isReadOnly},t,e.class)}function Be(e,t,l){return o.html`<label class=${Ut(e,l)} for=${xe.ifDefined(e.for)}
|
|
56
|
+
>${t}${e.required?o.html`<span class="require-mark">*</span>`:o.nothing}</label
|
|
57
|
+
>`}const Vo=we({name:"moz-label",setup(e){return{render(){const t=e.props,l=ge(t,Zl);return o.html`<label
|
|
58
58
|
class=${Ut(t)}
|
|
59
59
|
for=${xe.ifDefined(t.for)}
|
|
60
60
|
style=${le.styleMap(Pe(t.style))}
|
|
61
|
-
${he(
|
|
62
|
-
>${e.slot("default")}${t.required?
|
|
63
|
-
>`}}}}),jl={name:"MozLabel",core:Vo,props:["for","disabled","required","isReadOnly"],emits:[],slots:["default"],expose:!1},Xl=new Set(["modelValue","label","labelPosition","required","readonly","disabled","visible","class","style"]);function Pt(e){const t=!!e.model;return
|
|
61
|
+
${he(l)}
|
|
62
|
+
>${e.slot("default")}${t.required?o.html`<span class="require-mark">*</span>`:o.nothing}</label
|
|
63
|
+
>`}}}}),jl={name:"MozLabel",core:Vo,props:["for","disabled","required","isReadOnly"],emits:[],slots:["default"],expose:!1},Xl=new Set(["modelValue","label","labelPosition","required","readonly","disabled","visible","class","style"]);function Pt(e){const t=!!e.model;return o.html`
|
|
64
64
|
<div
|
|
65
65
|
data-part="root"
|
|
66
|
-
class=${
|
|
66
|
+
class=${V(e.class)}
|
|
67
67
|
style=${xe.ifDefined(e.visible===!1?"display: none;":void 0)}
|
|
68
68
|
${he(e.rest??{})}
|
|
69
69
|
>
|
|
70
70
|
<div class="moz-switch">
|
|
71
|
-
${e.labelPosition!=="right"?Be({for:e.id,disabled:e.disabled,required:e.required},e.label??"","label-left"):
|
|
72
|
-
<div class=${
|
|
71
|
+
${e.labelPosition!=="right"?Be({for:e.id,disabled:e.disabled,required:e.required},e.label??"","label-left"):o.nothing}
|
|
72
|
+
<div class=${V("moz-switch-box",{active:t,disabled:!!e.disabled})}>
|
|
73
73
|
<input
|
|
74
74
|
id=${e.id}
|
|
75
75
|
class="moz-switch-input"
|
|
@@ -82,19 +82,19 @@
|
|
|
82
82
|
@change=${e.onChange}
|
|
83
83
|
@click=${e.onClick}
|
|
84
84
|
/>
|
|
85
|
-
<div class=${
|
|
85
|
+
<div class=${V("moz-switch-handler",{active:t,disabled:!!e.disabled})}></div>
|
|
86
86
|
</div>
|
|
87
|
-
${e.labelPosition==="right"?Be({for:e.id,disabled:e.disabled},e.label??"","label-right"):
|
|
87
|
+
${e.labelPosition==="right"?Be({for:e.id,disabled:e.disabled},e.label??"","label-right"):o.nothing}
|
|
88
88
|
</div>
|
|
89
89
|
</div>
|
|
90
|
-
`}const Do=we({name:"moz-toggle",defaults:{labelPosition:"left",required:!1,readonly:!1,disabled:!1,visible:!0},setup(e){const t=Xe("switch_"),
|
|
90
|
+
`}const Do=we({name:"moz-toggle",defaults:{labelPosition:"left",required:!1,readonly:!1,disabled:!1,visible:!0},setup(e){const t=Xe("switch_"),l=r=>{const d=e.props;(d.disabled||d.readonly)&&(r.preventDefault(),r.stopPropagation())},n=r=>{const d=e.props;if(d.disabled||d.readonly)return;const m=r.target.checked;e.emit("change",!!m)};return{render(){const r=e.props,{aria:d,dom:m}=ut(ge(r,Xl));return Pt({id:t,class:r.class,rest:m,inputRest:d,model:!!r.modelValue,label:r.label,labelPosition:r.labelPosition,required:r.required,disabled:r.disabled,visible:r.visible,onChange:n,onClick:l})}}}}),Ql={name:"MozToggle",core:Do,props:["label","labelPosition","required","readonly","disabled","visible"],emits:["change"],models:{modelValue:{prop:"modelValue",event:"change"}},slots:[],expose:!1};function Nt(e=""){return o.html`<svg class=${e} xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 10 10" fill="none">
|
|
91
91
|
<path
|
|
92
92
|
fill-rule="evenodd"
|
|
93
93
|
clip-rule="evenodd"
|
|
94
94
|
d="M3.72661 8.48896C3.41073 8.18004 3.40509 7.67354 3.71401 7.35766L6.04911 4.96997L3.72108 2.64854C3.40822 2.33656 3.4075 1.83003 3.71948 1.51717C4.03145 1.2043 4.53798 1.20359 4.85085 1.51556L7.73988 4.39642C8.0506 4.70626 8.05375 5.20855 7.74695 5.52226L4.85791 8.47636C4.54899 8.79224 4.04249 8.79788 3.72661 8.48896Z"
|
|
95
95
|
fill="var(--moz-color-text-subtle)"
|
|
96
96
|
></path>
|
|
97
|
-
</svg>`}function
|
|
97
|
+
</svg>`}function _t(e="var(--moz-color-text-subtle)",t=""){return o.html`<svg class=${t} width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
98
98
|
<path
|
|
99
99
|
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"
|
|
100
100
|
stroke=${e}
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
stroke-linecap="round"
|
|
103
103
|
stroke-linejoin="round"
|
|
104
104
|
></path>
|
|
105
|
-
</svg>`}function Wt(e="var(--moz-color-accent)",t=""){return
|
|
105
|
+
</svg>`}function Wt(e="var(--moz-color-accent)",t=""){return o.html`<svg class=${t} width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
106
106
|
<path
|
|
107
107
|
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"
|
|
108
108
|
fill=${e}
|
|
@@ -111,63 +111,63 @@
|
|
|
111
111
|
stroke-linecap="round"
|
|
112
112
|
stroke-linejoin="round"
|
|
113
113
|
></path>
|
|
114
|
-
</svg>`}const io=new Set(["itemSource","items","listClass","showFavorite","modelValue","class","style"]);function Kt(e){const t=e.itemSource??[],
|
|
115
|
-
${
|
|
116
|
-
</button>`:
|
|
114
|
+
</svg>`}const io=new Set(["itemSource","items","listClass","showFavorite","modelValue","class","style"]);function Kt(e){const t=e.itemSource??[],l=!!e.favorite,n=e.showFavorite?e.favoriteSlot!=null?e.favoriteSlot:o.html`<button type="button" class="favorite-icon" @click=${e.onFavClick}>
|
|
115
|
+
${l?Wt(void 0,"favorite-filled"):_t(void 0,"empty")}
|
|
116
|
+
</button>`:o.nothing;return o.html`
|
|
117
117
|
<div
|
|
118
118
|
role="navigation"
|
|
119
119
|
aria-label=${e.ariaLabel??"breadcrumb"}
|
|
120
|
-
class=${
|
|
120
|
+
class=${V("moz-bread-crumb",e.class)}
|
|
121
121
|
style=${le.styleMap(Pe(e.style))}
|
|
122
122
|
${he(e.rest??{})}
|
|
123
123
|
>
|
|
124
124
|
<div class="menu-item">
|
|
125
|
-
${t.map((r,d)=>t.length-1===d?
|
|
125
|
+
${t.map((r,d)=>t.length-1===d?o.html`<div class="current-item" aria-current="page">${r}</div>`:o.html`<div>${r}</div>${Nt("separator")}`)}
|
|
126
126
|
</div>
|
|
127
|
-
${n}${e.titleSlot??
|
|
127
|
+
${n}${e.titleSlot??o.nothing}
|
|
128
128
|
</div>
|
|
129
|
-
`}const Ao=we({name:"moz-bread-crumb",defaults:{showFavorite:!0,modelValue:!0,itemSource:[]},setup(e){const t=()=>e.emit("click",!!e.props.modelValue),
|
|
130
|
-
${d?Wt(void 0,"favorite-filled"):
|
|
131
|
-
</button>`:
|
|
132
|
-
${e.slots.has("separator")?e.slot("separator"):
|
|
133
|
-
</li>`;return
|
|
129
|
+
`}const Ao=we({name:"moz-bread-crumb",defaults:{showFavorite:!0,modelValue:!0,itemSource:[]},setup(e){const t=()=>e.emit("click",!!e.props.modelValue),l=n=>{const r=e.props,d=!!r.modelValue,m=r.showFavorite?e.slots.has("favorite")?e.slot("favorite"):o.html`<button type="button" class="favorite-icon" @click=${t}>
|
|
130
|
+
${d?Wt(void 0,"favorite-filled"):_t(void 0,"empty")}
|
|
131
|
+
</button>`:o.nothing,s=()=>o.html`<li role="presentation" aria-hidden="true" class="moz-bread-crumb-separator">
|
|
132
|
+
${e.slots.has("separator")?e.slot("separator"):Nt("separator")}
|
|
133
|
+
</li>`;return o.html`
|
|
134
134
|
<nav
|
|
135
135
|
aria-label=${e.locale.BreadCrumb.navigation}
|
|
136
|
-
class=${
|
|
136
|
+
class=${V("moz-bread-crumb","moz-bread-crumb-items",r.class)}
|
|
137
137
|
style=${le.styleMap(Pe(r.style))}
|
|
138
138
|
${he(ge(r,io))}
|
|
139
139
|
>
|
|
140
|
-
<ol class=${
|
|
141
|
-
${n.map((i,h)=>
|
|
142
|
-
<li class="moz-bread-crumb-item" aria-current=${i.current?"page":
|
|
140
|
+
<ol class=${V("moz-bread-crumb-list",r.listClass)}>
|
|
141
|
+
${n.map((i,h)=>o.html`
|
|
142
|
+
<li class="moz-bread-crumb-item" aria-current=${i.current?"page":o.nothing}>
|
|
143
143
|
${e.slot(`item-${i.key}`)}
|
|
144
144
|
</li>
|
|
145
|
-
${h<n.length-1?s():
|
|
145
|
+
${h<n.length-1?s():o.nothing}
|
|
146
146
|
`)}
|
|
147
147
|
</ol>
|
|
148
148
|
${m}${e.slot("title")}
|
|
149
149
|
</nav>
|
|
150
|
-
`};return{render(){const n=e.props;return n.items&&n.items.length>0?o(n.items):Kt({itemSource:n.itemSource,showFavorite:n.showFavorite,favorite:!!n.modelValue,onFavClick:t,ariaLabel:e.locale.BreadCrumb.navigation,favoriteSlot:e.slots.has("favorite")?e.slot("favorite"):void 0,titleSlot:e.slot("title"),class:n.class,style:n.style,rest:ge(n,io)})}}}}),Jl={name:"MozBreadCrumb",core:Ao,props:["itemSource","items","listClass","showFavorite"],emits:["click"],models:{modelValue:{prop:"modelValue",event:"update:modelValue"}},slots:["favorite","title","separator"],expose:!1,syncUpdate:!0},Ro={customEmptyHeader:"No data",customEmptyContent:"There is no data to display.",dataEmptyHeader:"No data to display",dataEmptyContent:"Please enter the required data.",resultEmptyHeader:"No results",resultEmptyContent:"Check the search conditions and try again.",searchEmptyHeader:"No search results",searchEmptyContent:"Please check the filter value and try again."},qo=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",typeof document>"u"?require("url").pathToFileURL(__filename).href:Ye&&Ye.tagName.toUpperCase()==="SCRIPT"&&Ye.src||new URL("index.cjs",document.baseURI).href).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%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",typeof document>"u"?require("url").pathToFileURL(__filename).href:Ye&&Ye.tagName.toUpperCase()==="SCRIPT"&&Ye.src||new URL("index.cjs",document.baseURI).href).href,ts=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",typeof document>"u"?require("url").pathToFileURL(__filename).href:Ye&&Ye.tagName.toUpperCase()==="SCRIPT"&&Ye.src||new URL("index.cjs",document.baseURI).href).href,os=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",typeof document>"u"?require("url").pathToFileURL(__filename).href:Ye&&Ye.tagName.toUpperCase()==="SCRIPT"&&Ye.src||new URL("index.cjs",document.baseURI).href).href,ls=new Set(["isReadOnly","isCustomState","headerMsg","contentMsg","filterdRowCount","totalRowCount","useImg","selectImg","messages","composed","class","style"]),ss={custom_empty:qo,data_empty:es,result_empty:ts,search_empty:os},ns={custom_empty:"customEmptyHeader",data_empty:"dataEmptyHeader",result_empty:"resultEmptyHeader",search_empty:"searchEmptyHeader"},rs={custom_empty:"customEmptyContent",data_empty:"dataEmptyContent",result_empty:"resultEmptyContent",search_empty:"searchEmptyContent"},Io=we({name:"moz-empty-state",defaults:{isReadOnly:!0,isCustomState:!1,filterdRowCount:0,totalRowCount:0,useImg:!0,composed:!1},setup(e){const t=n=>{var d;return((d=e.props.messages)==null?void 0:d[n])||e.locale.EmptyState[n]||Ro[n]||""},o=()=>{const n=e.props,r=n.totalRowCount??0,d=n.filterdRowCount??0;if(n.selectImg&&(r===0||d===0))switch(n.selectImg){case"Custom":return"custom_empty";case"Result":return"result_empty";case"Data":return"data_empty";case"Search":return"search_empty"}return n.isCustomState?"custom_empty":r===0?n.isReadOnly?"result_empty":"data_empty":d===0?"search_empty":""};return{render(){const n=e.props,r=ge(n,ls);if(n.composed)return l.html`
|
|
150
|
+
`};return{render(){const n=e.props;return n.items&&n.items.length>0?l(n.items):Kt({itemSource:n.itemSource,showFavorite:n.showFavorite,favorite:!!n.modelValue,onFavClick:t,ariaLabel:e.locale.BreadCrumb.navigation,favoriteSlot:e.slots.has("favorite")?e.slot("favorite"):void 0,titleSlot:e.slot("title"),class:n.class,style:n.style,rest:ge(n,io)})}}}}),Jl={name:"MozBreadCrumb",core:Ao,props:["itemSource","items","listClass","showFavorite"],emits:["click"],models:{modelValue:{prop:"modelValue",event:"update:modelValue"}},slots:["favorite","title","separator"],expose:!1,syncUpdate:!0},Ro={customEmptyHeader:"No data",customEmptyContent:"There is no data to display.",dataEmptyHeader:"No data to display",dataEmptyContent:"Please enter the required data.",resultEmptyHeader:"No results",resultEmptyContent:"Check the search conditions and try again.",searchEmptyHeader:"No search results",searchEmptyContent:"Please check the filter value and try again."},qo=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",typeof document>"u"?require("url").pathToFileURL(__filename).href:Ye&&Ye.tagName.toUpperCase()==="SCRIPT"&&Ye.src||new URL("index.cjs",document.baseURI).href).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%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",typeof document>"u"?require("url").pathToFileURL(__filename).href:Ye&&Ye.tagName.toUpperCase()==="SCRIPT"&&Ye.src||new URL("index.cjs",document.baseURI).href).href,ts=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",typeof document>"u"?require("url").pathToFileURL(__filename).href:Ye&&Ye.tagName.toUpperCase()==="SCRIPT"&&Ye.src||new URL("index.cjs",document.baseURI).href).href,os=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",typeof document>"u"?require("url").pathToFileURL(__filename).href:Ye&&Ye.tagName.toUpperCase()==="SCRIPT"&&Ye.src||new URL("index.cjs",document.baseURI).href).href,ls=new Set(["isReadOnly","isCustomState","headerMsg","contentMsg","filterdRowCount","totalRowCount","useImg","selectImg","messages","composed","class","style"]),ss={custom_empty:qo,data_empty:es,result_empty:ts,search_empty:os},ns={custom_empty:"customEmptyHeader",data_empty:"dataEmptyHeader",result_empty:"resultEmptyHeader",search_empty:"searchEmptyHeader"},rs={custom_empty:"customEmptyContent",data_empty:"dataEmptyContent",result_empty:"resultEmptyContent",search_empty:"searchEmptyContent"},Io=we({name:"moz-empty-state",defaults:{isReadOnly:!0,isCustomState:!1,filterdRowCount:0,totalRowCount:0,useImg:!0,composed:!1},setup(e){const t=n=>{var d;return((d=e.props.messages)==null?void 0:d[n])||e.locale.EmptyState[n]||Ro[n]||""},l=()=>{const n=e.props,r=n.totalRowCount??0,d=n.filterdRowCount??0;if(n.selectImg&&(r===0||d===0))switch(n.selectImg){case"Custom":return"custom_empty";case"Result":return"result_empty";case"Data":return"data_empty";case"Search":return"search_empty"}return n.isCustomState?"custom_empty":r===0?n.isReadOnly?"result_empty":"data_empty":d===0?"search_empty":""};return{render(){const n=e.props,r=ge(n,ls);if(n.composed)return o.html`
|
|
151
151
|
<div
|
|
152
|
-
class=${
|
|
152
|
+
class=${V("empty-container","empty-composed",n.class)}
|
|
153
153
|
style=${le.styleMap(Pe(n.style))}
|
|
154
154
|
${he(r)}
|
|
155
155
|
>
|
|
156
|
-
${e.slots.has("icon")?
|
|
157
|
-
${e.slots.has("heading")?
|
|
158
|
-
${e.slots.has("description")?
|
|
159
|
-
${e.slots.has("actions")?
|
|
160
|
-
${e.slots.has("customState")?
|
|
156
|
+
${e.slots.has("icon")?o.html`<div class="empty-icon">${e.slot("icon")}</div>`:o.nothing}
|
|
157
|
+
${e.slots.has("heading")?o.html`<div class="empty-heading-slot">${e.slot("heading")}</div>`:o.nothing}
|
|
158
|
+
${e.slots.has("description")?o.html`<div class="empty-description">${e.slot("description")}</div>`:o.nothing}
|
|
159
|
+
${e.slots.has("actions")?o.html`<div class="empty-actions">${e.slot("actions")}</div>`:o.nothing}
|
|
160
|
+
${e.slots.has("customState")?o.html`<div class="empty-content">${e.slot("customState")}</div>`:o.nothing}
|
|
161
161
|
</div>
|
|
162
|
-
`;const d=
|
|
163
|
-
<div class=${
|
|
162
|
+
`;const d=l();if(!d)return o.nothing;const m=ss[d]||qo,s=typeof n.headerMsg=="string"?n.headerMsg:t(ns[d]||"customEmptyHeader"),i=typeof n.contentMsg=="string"?n.contentMsg:t(rs[d]||"customEmptyContent"),h=e.slots.has("icon")?o.html`<div class="empty-icon">${e.slot("icon")}</div>`:n.useImg?o.html`<img src=${m} alt="Empty state" class="empty-img" />`:o.nothing;return o.html`
|
|
163
|
+
<div class=${V("empty-container",n.class)} style=${le.styleMap(Pe(n.style))} ${he(r)}>
|
|
164
164
|
${h}
|
|
165
165
|
<div class="empty-heading">${s}</div>
|
|
166
166
|
<div class="empty-content"><span>${Eo.unsafeHTML(i)}</span></div>
|
|
167
167
|
<div class="empty-content">${e.slot("customState")}</div>
|
|
168
|
-
${e.slots.has("actions")?
|
|
168
|
+
${e.slots.has("actions")?o.html`<div class="empty-actions">${e.slot("actions")}</div>`:o.nothing}
|
|
169
169
|
</div>
|
|
170
|
-
`}}}}),is={name:"MozEmptyState",core:Io,props:["isReadOnly","isCustomState","headerMsg","contentMsg","filterdRowCount","totalRowCount","useImg","selectImg","messages","composed"],emits:[],slots:["customState","icon","heading","description","actions"],expose:!1};function Gt(e="var(--moz-color-border)",t=!1,
|
|
170
|
+
`}}}}),is={name:"MozEmptyState",core:Io,props:["isReadOnly","isCustomState","headerMsg","contentMsg","filterdRowCount","totalRowCount","useImg","selectImg","messages","composed"],emits:[],slots:["customState","icon","heading","description","actions"],expose:!1};function Gt(e="var(--moz-color-border)",t=!1,l=""){return o.html`<svg class=${l} data-icon="unchecked" width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
171
171
|
<path
|
|
172
172
|
d="M10 0H2C0.89543 0 0 0.89543 0 2V10C0 11.1046 0.89543 12 2 12H10C11.1046 12 12 11.1046 12 10V2C12 0.89543 11.1046 0 10 0Z"
|
|
173
173
|
fill=${t?"var(--moz-color-surface-subtle)":"var(--moz-color-surface)"}
|
|
@@ -176,45 +176,45 @@
|
|
|
176
176
|
d="M10 0.5H2C1.17157 0.5 0.5 1.17157 0.5 2V10C0.5 10.8284 1.17157 11.5 2 11.5H10C10.8284 11.5 11.5 10.8284 11.5 10V2C11.5 1.17157 10.8284 0.5 10 0.5Z"
|
|
177
177
|
stroke=${t?"var(--moz-color-text-muted)":e}
|
|
178
178
|
></path>
|
|
179
|
-
</svg>`}function Yt(e="var(--moz-color-accent)",t=!1,
|
|
179
|
+
</svg>`}function Yt(e="var(--moz-color-accent)",t=!1,l=""){return o.html`<svg class=${l} data-icon="checked" width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
180
180
|
<path
|
|
181
181
|
d="M10 12H2C1.46957 12 0.960859 11.7893 0.585786 11.4142C0.210714 11.0391 0 10.5304 0 10V2C0 1.46957 0.210714 0.960859 0.585786 0.585786C0.960859 0.210714 1.46957 0 2 0L10 0C10.5304 0 11.0391 0.210714 11.4142 0.585786C11.7893 0.960859 12 1.46957 12 2V10C12 10.5304 11.7893 11.0391 11.4142 11.4142C11.0391 11.7893 10.5304 12 10 12ZM2.276 5.472C2.18827 5.47227 2.10149 5.49011 2.02077 5.52446C1.94005 5.5588 1.86702 5.60897 1.806 5.672C1.68191 5.79695 1.61227 5.9659 1.61227 6.142C1.61227 6.3181 1.68191 6.48705 1.806 6.612L4.2 9C4.32469 9.12457 4.49374 9.19455 4.67 9.19455C4.84626 9.19455 5.01531 9.12457 5.14 9L10.194 3.94C10.2557 3.87821 10.3047 3.80487 10.338 3.72417C10.3714 3.64347 10.3886 3.55698 10.3885 3.46965C10.3885 3.38231 10.3712 3.29584 10.3378 3.21518C10.3043 3.13451 10.2553 3.06122 10.1935 2.9995C10.1317 2.93778 10.0584 2.88883 9.97767 2.85545C9.89697 2.82208 9.81048 2.80492 9.72315 2.80497C9.63581 2.80501 9.54934 2.82226 9.46868 2.85572C9.38801 2.88919 9.31472 2.93821 9.253 3L4.667 7.587L2.747 5.667C2.68531 5.60494 2.61191 5.55574 2.53105 5.52227C2.4502 5.48879 2.36351 5.47171 2.276 5.472Z"
|
|
182
182
|
fill=${t?"var(--moz-color-text-muted)":e}
|
|
183
183
|
></path>
|
|
184
|
-
</svg>`}function Zt(e="var(--moz-color-accent)",t=!1,
|
|
184
|
+
</svg>`}function Zt(e="var(--moz-color-accent)",t=!1,l=""){return o.html`<svg class=${l} data-icon="indeterminate" width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
185
185
|
<rect width="12" height="12" rx="2" fill=${t?"var(--moz-color-text-muted)":e}></rect>
|
|
186
186
|
<path d="M3 6H9" stroke="var(--moz-color-on-accent)" stroke-width="2" stroke-linecap="round"></path>
|
|
187
|
-
</svg>`}const as=new Set(["label","fieldId","disabled","readonly","checked","indeterminate","modelValue","class","style"]);function $t(e={}){const t=!!e.checked,
|
|
187
|
+
</svg>`}const as=new Set(["label","fieldId","disabled","readonly","checked","indeterminate","modelValue","class","style"]);function $t(e={}){const t=!!e.checked,l=!!e.disabled,n=!!e.indeterminate,r=()=>{var d;l||(d=e.onChange)==null||d.call(e,!t)};return o.html`
|
|
188
188
|
<div
|
|
189
|
-
class=${
|
|
190
|
-
@click=${d=>{
|
|
189
|
+
class=${V("moz-checkbox",{"cursor-pointer":!l,"cursor-not-allowed":l,disabled:l},e.class)}
|
|
190
|
+
@click=${d=>{l||(d.preventDefault(),d.stopPropagation(),r())}}
|
|
191
191
|
>
|
|
192
192
|
<div class="checkbox-icon-wrapper">
|
|
193
193
|
<input
|
|
194
194
|
type="checkbox"
|
|
195
|
-
class=${
|
|
195
|
+
class=${V("checkbox-input",{"cursor-pointer":!l,"cursor-not-allowed":l})}
|
|
196
196
|
.checked=${t}
|
|
197
|
-
?disabled=${
|
|
198
|
-
tabindex=${
|
|
197
|
+
?disabled=${l}
|
|
198
|
+
tabindex=${l?-1:0}
|
|
199
199
|
@click=${d=>d.stopPropagation()}
|
|
200
200
|
@change=${d=>{d.target.checked=t,r()}}
|
|
201
201
|
/>
|
|
202
202
|
<div class="checkbox-visual">
|
|
203
|
-
${n?Zt(void 0,
|
|
203
|
+
${n?Zt(void 0,l,"checked-icon"):t?Yt(void 0,l,"checked-icon"):Gt(void 0,l,"check-icon")}
|
|
204
204
|
</div>
|
|
205
205
|
</div>
|
|
206
206
|
</div>
|
|
207
|
-
`}const Fo=we({name:"moz-checkbox",defaults:{disabled:!1,readonly:!1,indeterminate:!1,modelValue:!1},setup(e){const t=Lo();let
|
|
207
|
+
`}const Fo=we({name:"moz-checkbox",defaults:{disabled:!1,readonly:!1,indeterminate:!1,modelValue:!1},setup(e){const t=Lo();let l=!1;const n=()=>{const u=e.props;return e.controlled("checked")?u.checked??!1:u.modelValue??!1},r=()=>{const u=!n();e.controlled("checked")||e.emit("update:modelValue",u),e.emit("change",u)},d=u=>{var v;const p=e.props;p.disabled||p.readonly||(u.preventDefault(),u.stopPropagation(),r(),(v=u.currentTarget.querySelector("input"))==null||v.focus())},m=u=>u.stopPropagation(),s=u=>{const p=e.props,v=u.target;if(p.readonly){v.checked=n();return}const $=v.checked;e.controlled("checked")?(v.checked=n(),e.emit("change",$)):(e.emit("update:modelValue",$),e.emit("change",$))},i=u=>{const p=e.props;p.disabled||p.readonly||(u.key==="Enter"||u.key===" ")&&(u.preventDefault(),r())},h=()=>{l=!0,e.requestUpdate()},a=()=>{l=!1,e.requestUpdate()};return{render(){const u=e.props,p=u.fieldId||t,v=n(),$=ge(u,as);return o.html`
|
|
208
208
|
<div
|
|
209
|
-
class=${
|
|
209
|
+
class=${V("moz-checkbox",{"cursor-pointer":!u.disabled&&!u.readonly,"cursor-not-allowed":u.disabled,disabled:u.disabled,"cursor-default":u.readonly&&!u.disabled})}
|
|
210
210
|
@click=${d}
|
|
211
211
|
>
|
|
212
212
|
<div class="checkbox-icon-wrapper">
|
|
213
213
|
<input
|
|
214
214
|
id=${p}
|
|
215
215
|
type="checkbox"
|
|
216
|
-
class=${
|
|
217
|
-
${he(
|
|
216
|
+
class=${V("checkbox-input",{"cursor-pointer":!u.disabled&&!u.readonly,"cursor-not-allowed":u.disabled,"cursor-default":u.readonly&&!u.disabled})}
|
|
217
|
+
${he($)}
|
|
218
218
|
.checked=${v}
|
|
219
219
|
?disabled=${!!u.disabled}
|
|
220
220
|
tabindex=${u.disabled?-1:0}
|
|
@@ -224,16 +224,16 @@
|
|
|
224
224
|
@blur=${a}
|
|
225
225
|
@keydown=${i}
|
|
226
226
|
/>
|
|
227
|
-
<div class=${
|
|
227
|
+
<div class=${V("checkbox-visual",{focused:l})}>
|
|
228
228
|
${u.indeterminate?Zt(void 0,!!u.disabled,"checked-icon"):v?Yt(void 0,!!u.disabled,"checked-icon"):Gt(void 0,!!u.disabled,"check-icon")}
|
|
229
229
|
</div>
|
|
230
230
|
</div>
|
|
231
|
-
${u.label?Be({for:p,disabled:u.disabled},u.label,"moz-checkbox-label"):
|
|
231
|
+
${u.label?Be({for:p,disabled:u.disabled},u.label,"moz-checkbox-label"):o.nothing}
|
|
232
232
|
</div>
|
|
233
|
-
`}}}}),cs={name:"MozCheckBox",core:Fo,props:["label","fieldId","disabled","readonly","checked","indeterminate","modelValue"],emits:["change","update:modelValue"],slots:[],expose:!1},ds=new Set(["label","text","disabled","required","displayExpr","valueExpr","tooltipExpr","disabledExpr","itemsSource","value","name","direction","variant","size","labelPosition","modelValue","class","style"]),Bo=we({name:"moz-radio",defaults:{label:"",text:"",disabled:!1,required:!1,displayExpr:"label",valueExpr:"value",tooltipExpr:"tooltip",disabledExpr:"disabled",itemsSource:[],direction:"horizontal",variant:"boxed",size:"md",labelPosition:"top"},setup(e){const t=Xe("radio_"),
|
|
233
|
+
`}}}}),cs={name:"MozCheckBox",core:Fo,props:["label","fieldId","disabled","readonly","checked","indeterminate","modelValue"],emits:["change","update:modelValue"],slots:[],expose:!1},ds=new Set(["label","text","disabled","required","displayExpr","valueExpr","tooltipExpr","disabledExpr","itemsSource","value","name","direction","variant","size","iconOnly","labelPosition","modelValue","class","style"]),Bo=we({name:"moz-radio",defaults:{label:"",text:"",disabled:!1,required:!1,displayExpr:"label",valueExpr:"value",tooltipExpr:"tooltip",disabledExpr:"disabled",itemsSource:[],direction:"horizontal",variant:"boxed",size:"md",iconOnly:!1,labelPosition:"top"},setup(e){const t=Xe("radio_"),l=s=>s.key===" "||s.key==="Enter"||s.key==="Spacebar"||s.key==="Space"||s.code==="Space"||s.code==="Enter"||s.keyCode===32||s.keyCode===13,n=s=>typeof requestAnimationFrame=="function"?requestAnimationFrame(s):setTimeout(s,16),r=s=>{const i=e.props;return!!i.disabled||s[i.disabledExpr??"disabled"]===!0},d=(s,i)=>{const h=e.props,a=h.itemsSource??[];return V("label-container",{boxed:h.variant==="boxed","first-h":h.variant==="boxed"&&h.direction==="horizontal"&&s===0,"last-h":h.variant==="boxed"&&h.direction==="horizontal"&&s===a.length-1,"first-v":h.variant==="boxed"&&h.direction==="vertical"&&s===0,"last-v":h.variant==="boxed"&&h.direction==="vertical"&&s===a.length-1,disabled:i})},m=s=>{const i=e.props;return i.variant!=="boxed"||s===0?{}:i.direction==="horizontal"?{marginInlineStart:"-1px"}:{marginBlockStart:"-1px"}};return{render(){const s=e.props,i=s.itemsSource??[],h=s.valueExpr??"value",a=s.displayExpr??"label",u=!!s.disabled,p=s.modelValue,v=s.value!==void 0&&i.length===0,$=!v&&s.variant==="segment",A=ge(s,ds),S=()=>o.html`
|
|
234
234
|
<div class="radio-container">
|
|
235
235
|
<div class="radio">
|
|
236
|
-
<label for=${t} class=${
|
|
236
|
+
<label for=${t} class=${V("label-container",{disabled:u})}>
|
|
237
237
|
<div class="radio-icon-wrapper">
|
|
238
238
|
<input
|
|
239
239
|
type="radio"
|
|
@@ -242,116 +242,119 @@
|
|
|
242
242
|
.checked=${String(p)===String(s.value)}
|
|
243
243
|
?disabled=${u}
|
|
244
244
|
class="radio-input"
|
|
245
|
-
@keydown=${
|
|
245
|
+
@keydown=${K=>{l(K)&&!u&&e.emit("update:modelValue",String(s.value))}}
|
|
246
246
|
@change=${()=>{u||e.emit("update:modelValue",String(s.value))}}
|
|
247
247
|
/>
|
|
248
248
|
<span
|
|
249
|
-
class=${
|
|
249
|
+
class=${V("dot",{active:String(p)===String(s.value),disabled:u,"borderless-focus":!u})}
|
|
250
250
|
></span>
|
|
251
251
|
</div>
|
|
252
|
-
${s.text?
|
|
252
|
+
${s.text?o.html`<span class="radio-label-text">${s.text}</span>`:o.nothing}
|
|
253
253
|
</label>
|
|
254
254
|
</div>
|
|
255
255
|
</div>
|
|
256
|
-
`,
|
|
256
|
+
`,y=()=>{const K=b=>String(p)===String(b[h]??""),W=i.length,te=i.findIndex(K),ae=(b,R)=>{for(let _=1;_<=W;_+=1){const k=(b+R*_+W*W)%W;if(!r(i[k]))return k}return-1},ee=b=>{for(let R=0;R<W;R+=1){const _=b===1?R:W-1-R;if(!r(i[_]))return _}return-1},Y=te>=0&&!r(i[te])?te:ee(1),M=b=>Array.from(b.querySelectorAll('[role="radio"]')),G=(b,R)=>{if(R<0)return;b.preventDefault(),b.stopPropagation();const _=b.currentTarget,k=M(_)[R];k==null||k.focus(),e.emit("update:modelValue",i[R][h]??"");let z=0;const T=()=>{const I=M(_)[R];if(I&&I.getAttribute("aria-checked")==="true"){document.activeElement!==I&&I.focus();return}++z<20&&n(T)};n(T)},ne=b=>{var T,I;if(u||W===0)return;const R=b.currentTarget,_=(I=(T=b.target)==null?void 0:T.closest)==null?void 0:I.call(T,'[role="radio"]'),k=_?M(R).indexOf(_):-1,z=k>=0?k:te>=0?te:0;switch(b.key){case"ArrowRight":case"ArrowDown":G(b,ae(z,1));break;case"ArrowLeft":case"ArrowUp":G(b,ae(z,-1));break;case"Home":G(b,ee(1));break;case"End":G(b,ee(-1));break}},oe=!!s.iconOnly,J=e.slots.has("item-icon"),U=!oe&&e.slots.has("item-badge");return o.html`
|
|
257
257
|
<div
|
|
258
|
-
class=${
|
|
258
|
+
class=${V("radio-container",{segment:!0,"disabled-container":u,"size-sm":s.size==="sm","size-md":s.size!=="sm","icon-only":oe})}
|
|
259
259
|
@keydown=${ne}
|
|
260
|
-
@click=${
|
|
260
|
+
@click=${b=>b.stopPropagation()}
|
|
261
261
|
>
|
|
262
|
-
${i.map((
|
|
262
|
+
${i.map((b,R)=>{const _=K(b),k=r(b),z=String(b[a]??""),T=z||String(b[h]??""),I={item:b,index:R,active:_,disabled:k};return o.html`
|
|
263
263
|
<button
|
|
264
264
|
type="button"
|
|
265
265
|
role="radio"
|
|
266
|
-
aria-checked=${
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
266
|
+
aria-checked=${_?"true":"false"}
|
|
267
|
+
aria-label=${oe?T:o.nothing}
|
|
268
|
+
tabindex=${R===Y?"0":"-1"}
|
|
269
|
+
?disabled=${k}
|
|
270
|
+
class=${V("segment-button",{"is-active":_,disabled:k})}
|
|
271
|
+
@click=${()=>{k||e.emit("update:modelValue",b[h]??"")}}
|
|
271
272
|
>
|
|
272
|
-
${
|
|
273
|
+
${J?o.html`<span class="segment-icon">${e.slot("item-icon",I)}</span>`:o.nothing}
|
|
274
|
+
${oe?o.nothing:z}
|
|
275
|
+
${U?o.html`<span class="segment-badge">${e.slot("item-badge",I)}</span>`:o.nothing}
|
|
273
276
|
</button>
|
|
274
277
|
`})}
|
|
275
278
|
</div>
|
|
276
|
-
`},
|
|
279
|
+
`},D=()=>o.html`
|
|
277
280
|
<div
|
|
278
|
-
class=${
|
|
281
|
+
class=${V("radio-container",{"disabled-container":u,borderless:s.variant==="borderless",vertical:s.direction==="vertical"})}
|
|
279
282
|
>
|
|
280
|
-
${i.map((W
|
|
283
|
+
${i.map((K,W)=>{const te=r(K);return o.html`
|
|
281
284
|
<div class="radio">
|
|
282
285
|
<label
|
|
283
|
-
for=${`${t}_${
|
|
284
|
-
class=${d(
|
|
285
|
-
style=${le.styleMap(m(
|
|
286
|
+
for=${`${t}_${W}`}
|
|
287
|
+
class=${d(W,te)}
|
|
288
|
+
style=${le.styleMap(m(W))}
|
|
286
289
|
>
|
|
287
290
|
<div class="radio-icon-wrapper">
|
|
288
291
|
<input
|
|
289
292
|
type="radio"
|
|
290
293
|
name=${s.name||t}
|
|
291
|
-
id=${`${t}_${
|
|
292
|
-
.checked=${p===String(
|
|
293
|
-
?disabled=${
|
|
294
|
+
id=${`${t}_${W}`}
|
|
295
|
+
.checked=${p===String(K[h]??"")}
|
|
296
|
+
?disabled=${te}
|
|
294
297
|
class="radio-input"
|
|
295
|
-
@keydown=${ae=>{
|
|
296
|
-
@change=${()=>e.emit("update:modelValue",String(
|
|
298
|
+
@keydown=${ae=>{l(ae)&&e.emit("update:modelValue",String(K[h]??""))}}
|
|
299
|
+
@change=${()=>e.emit("update:modelValue",String(K[h]??""))}
|
|
297
300
|
/>
|
|
298
301
|
<span
|
|
299
|
-
class=${
|
|
302
|
+
class=${V("dot",{active:p===String(K[h]??""),disabled:te,"borderless-focus":s.variant!=="boxed"&&!te})}
|
|
300
303
|
></span>
|
|
301
304
|
</div>
|
|
302
|
-
<span class="radio-label-text">${String(
|
|
305
|
+
<span class="radio-label-text">${String(K[a]??"")}</span>
|
|
303
306
|
</label>
|
|
304
307
|
</div>
|
|
305
308
|
`})}
|
|
306
309
|
</div>
|
|
307
|
-
`,E="aria-label"in
|
|
310
|
+
`,E="aria-label"in A||"aria-labelledby"in A,L=$&&!E&&s.label?s.label:o.nothing;return o.html`
|
|
308
311
|
<div
|
|
309
|
-
class=${
|
|
312
|
+
class=${V("moz-radio-buttons",{"label-position-left":s.labelPosition==="left"},s.class)}
|
|
310
313
|
style=${le.styleMap(Pe(s.style))}
|
|
311
|
-
role=${
|
|
314
|
+
role=${$?"radiogroup":o.nothing}
|
|
312
315
|
aria-label=${L}
|
|
313
|
-
${he(
|
|
316
|
+
${he(A)}
|
|
314
317
|
>
|
|
315
|
-
${s.label?Be({disabled:u,required:s.required},s.label):
|
|
316
|
-
${v
|
|
318
|
+
${s.label?Be({disabled:u,required:s.required},s.label):o.nothing}
|
|
319
|
+
${v?S():$?y():D()}
|
|
317
320
|
</div>
|
|
318
|
-
`}}}}),us={name:"MozRadio",core:Bo,props:["label","text","disabled","required","displayExpr","valueExpr","tooltipExpr","disabledExpr","itemsSource","value","name","direction","variant","size","labelPosition","modelValue"],emits:["update:modelValue"],slots:[],expose:!1};function jt(e="var(--moz-color-text-subtle)"){return
|
|
321
|
+
`}}}}),us={name:"MozRadio",core:Bo,props:["label","text","disabled","required","displayExpr","valueExpr","tooltipExpr","disabledExpr","itemsSource","value","name","direction","variant","size","iconOnly","labelPosition","modelValue"],emits:["update:modelValue"],slots:[],expose:!1};function jt(e="var(--moz-color-text-subtle)"){return o.html`<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
319
322
|
<g>
|
|
320
323
|
<path
|
|
321
324
|
d="M0 6C0 4.81331 0.351894 3.65328 1.01118 2.66658C1.67047 1.67989 2.60754 0.910851 3.7039 0.456726C4.80026 0.00259972 6.00666 -0.11622 7.17054 0.115291C8.33443 0.346802 9.40353 0.918247 10.2426 1.75736C11.0818 2.59648 11.6532 3.66558 11.8847 4.82946C12.1162 5.99335 11.9974 7.19975 11.5433 8.2961C11.0892 9.39246 10.3201 10.3295 9.33342 10.9888C8.34673 11.6481 7.18669 12 6 12C4.40927 11.9981 2.88422 11.3654 1.75941 10.2406C0.634589 9.11578 0.00185261 7.59073 0 6ZM1.26 6C1.26 6.93773 1.53808 7.85439 2.05907 8.63407C2.58006 9.41374 3.32057 10.0214 4.18693 10.3802C5.05329 10.739 6.0066 10.8328 6.92629 10.6498C7.84598 10.4668 8.69075 10.0152 9.35375 9.35204C10.0167 8.6889 10.4682 7.84404 10.651 6.92431C10.8338 6.00458 10.7398 5.05129 10.3808 4.18501C10.0218 3.31872 9.41402 2.57835 8.63423 2.05752C7.85445 1.53669 6.93772 1.2588 6 1.259C4.74319 1.26059 3.53832 1.76063 2.64971 2.64942C1.76111 3.53822 1.26132 4.74319 1.26 6ZM5.743 9.7C5.5867 9.7 5.43678 9.63798 5.32616 9.52755C5.21554 9.41712 5.15326 9.26731 5.153 9.111V5.569C5.153 5.41243 5.21513 5.26226 5.32575 5.15146C5.43636 5.04065 5.58643 4.97827 5.743 4.978H6.163C6.31949 4.97853 6.4694 5.041 6.57996 5.15175C6.69052 5.2625 6.75274 5.41251 6.753 5.569V9.11C6.75247 9.26623 6.69011 9.41588 6.57955 9.52626C6.46899 9.63663 6.31922 9.69874 6.163 9.699L5.743 9.7ZM5.743 4.366C5.58652 4.366 5.43645 4.30384 5.32581 4.1932C5.21516 4.08255 5.153 3.93248 5.153 3.776V3.356C5.153 3.19943 5.21513 3.04926 5.32575 2.93846C5.43636 2.82765 5.58643 2.76527 5.743 2.765H6.163C6.31949 2.76553 6.4694 2.828 6.57996 2.93875C6.69052 3.04949 6.75274 3.19951 6.753 3.356V3.776C6.75274 3.9324 6.69049 4.08231 6.5799 4.1929C6.46931 4.30349 6.3194 4.36574 6.163 4.366H5.743Z"
|
|
322
325
|
fill=${e}
|
|
323
326
|
></path>
|
|
324
327
|
</g>
|
|
325
|
-
</svg>`}const ps=new Set(["label","value","name","type","placeholder","required","disabled","isReadOnly","rules","width","messagePosition","requiredMessage","useInvalidV2","modelValue","class","style"]),
|
|
328
|
+
</svg>`}const ps=new Set(["label","value","name","type","placeholder","required","disabled","isReadOnly","rules","width","messagePosition","requiredMessage","useInvalidV2","modelValue","class","style"]),Oo=we({name:"moz-input",defaults:{type:"text",required:!1,disabled:!1,isReadOnly:!1,rules:[],messagePosition:"outside",width:"100%",useInvalidV2:!1},setup(e){const t={change:"",blur:"",save:""};let l=!1;const n=()=>{const a=e.props,u=[];return a.required&&u.push({message:a.requiredMessage??e.locale.Common.requiredMessage.replace("{label}",a.label||a.name||""),type:"save",validator:p=>!!p}),[...u,...a.rules??[]]},r=async(a,u)=>{const p=e.props,v=n();if(v.length<=0||p.disabled||p.isReadOnly)return!0;t[u]="";const $=v.filter(A=>A.type===u);for(const A of $)if(!await A.validator(a))return t[u]=A.message,e.requestUpdate(),!1;return e.requestUpdate(),!0},d=a=>{const u=a.target.value;t.save="",t.blur="",e.emit("update:modelValue",u),r(u,"change")},m=()=>{t.save="",l=!0,e.requestUpdate()},s=a=>{const u=a.target.value;r(u,"blur"),l=!1,e.requestUpdate()},i=a=>{a.key==="Enter"&&e.emit("enter",a)},h={validate:(a="save")=>r(String(e.props.modelValue??""),a),initValidator:()=>{t.change="",t.blur="",t.save="",e.requestUpdate()}};return e.validator&&(e.validator.addValidator(h),e.onCleanup(()=>{var a;return(a=e.validator)==null?void 0:a.removeValidator(h)})),{onMounted:a=>{e.emit("mounted",(a==null?void 0:a.querySelector("input"))??null)},render(){const a=e.props,u=String(a.modelValue??""),p=t.save||t.blur||t.change,v=!!a.useInvalidV2,$=a.width?typeof a.width=="number"?`${a.width}px`:a.width:"100%",A=ge(a,ps);return o.html`
|
|
326
329
|
<div
|
|
327
|
-
class=${
|
|
328
|
-
style="width:${
|
|
330
|
+
class=${V("moz-input-wrapper",{"is-invalid":p!==""},a.class)}
|
|
331
|
+
style="width:${$}"
|
|
329
332
|
>
|
|
330
333
|
<div class="input-wrapper">
|
|
331
|
-
${a.label?Be({isReadOnly:a.isReadOnly,required:a.required},a.label,"input-label"):
|
|
334
|
+
${a.label?Be({isReadOnly:a.isReadOnly,required:a.required},a.label,"input-label"):o.nothing}
|
|
332
335
|
<input
|
|
333
|
-
class=${
|
|
336
|
+
class=${V("moz-input",{disabled:a.disabled,"read-only":a.isReadOnly,"has-inside-message":!v&&a.messagePosition==="inside"&&p!==""&&!l,"has-invalid-icon":v&&p!==""&&!l})}
|
|
334
337
|
name=${xe.ifDefined(a.name)}
|
|
335
338
|
type=${a.type??"text"}
|
|
336
339
|
placeholder=${xe.ifDefined(a.placeholder)}
|
|
337
340
|
?disabled=${!!a.disabled}
|
|
338
341
|
?readonly=${!!a.isReadOnly}
|
|
339
342
|
.value=${Lt.live(u)}
|
|
340
|
-
${he(
|
|
343
|
+
${he(A)}
|
|
341
344
|
@input=${d}
|
|
342
345
|
@keypress=${i}
|
|
343
346
|
@focus=${m}
|
|
344
347
|
@blur=${s}
|
|
345
348
|
/>
|
|
346
|
-
${v&&p!==""&&!o
|
|
347
|
-
${e.slots.has("invalidTooltip")?e.slot("invalidTooltip",{message:p}):
|
|
348
|
-
</div>`:
|
|
349
|
-
${!v&&p!==""&&!o
|
|
349
|
+
${v&&p!==""&&!l?o.html`<div class="moz-input-invalid-icon-v2">
|
|
350
|
+
${e.slots.has("invalidTooltip")?e.slot("invalidTooltip",{message:p}):o.html`<div title=${p}>${jt("var(--moz-color-danger)")}</div>`}
|
|
351
|
+
</div>`:o.nothing}
|
|
352
|
+
${!v&&p!==""&&!l?o.html`<span class=${V("moz-input-invalid-message",`position-${a.messagePosition}`)}
|
|
350
353
|
>${p}</span
|
|
351
|
-
>`:
|
|
354
|
+
>`:o.nothing}
|
|
352
355
|
</div>
|
|
353
356
|
</div>
|
|
354
|
-
`}}}}),hs={name:"MozInput",core:
|
|
357
|
+
`}}}}),hs={name:"MozInput",core:Oo,props:["label","value","name","type","placeholder","required","disabled","isReadOnly","rules","width","messagePosition","requiredMessage","useInvalidV2","modelValue"],emits:["enter","mounted","update:modelValue"],slots:["invalidTooltip"],expose:!1};function Ho(){return o.html`<svg data-icon="password-hidden" width="18" height="18" viewBox="0 0 18 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
355
358
|
<path d="M1.5 1.5L16.5 14.5" stroke="var(--moz-color-text-secondary)" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
356
359
|
<path
|
|
357
360
|
d="M7.5 8C7.5 7.17157 8.17157 6.5 9 6.5C9.82843 6.5 10.5 7.17157 10.5 8C10.5 8.82843 9.82843 9.5 9 9.5C8.17157 9.5 7.5 8.82843 7.5 8Z"
|
|
@@ -365,7 +368,7 @@
|
|
|
365
368
|
stroke-linecap="round"
|
|
366
369
|
stroke-linejoin="round"
|
|
367
370
|
></path>
|
|
368
|
-
</svg>`}function Uo(){return
|
|
371
|
+
</svg>`}function Uo(){return o.html`<svg data-icon="password-visible" width="18" height="18" viewBox="0 0 18 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
369
372
|
<path
|
|
370
373
|
d="M7.5 6C7.5 5.17157 8.17157 4.5 9 4.5C9.82843 4.5 10.5 5.17157 10.5 6C10.5 6.82843 9.82843 7.5 9 7.5C8.17157 7.5 7.5 6.82843 7.5 6Z"
|
|
371
374
|
stroke="var(--moz-color-text-secondary)"
|
|
@@ -378,23 +381,23 @@
|
|
|
378
381
|
stroke-linecap="round"
|
|
379
382
|
stroke-linejoin="round"
|
|
380
383
|
></path>
|
|
381
|
-
</svg>`}const ms=new Set(["label","value","name","placeholder","required","disabled","rules","width","messagePosition","requiredMessage","useInvalidV2","modelValue","class","style"]),fs=typeof navigator<"u"&&/Edg/.test(navigator.userAgent)?"edge-password":"",
|
|
384
|
+
</svg>`}const ms=new Set(["label","value","name","placeholder","required","disabled","rules","width","messagePosition","requiredMessage","useInvalidV2","modelValue","class","style"]),fs=typeof navigator<"u"&&/Edg/.test(navigator.userAgent)?"edge-password":"",No=we({name:"moz-password-input",defaults:{required:!1,disabled:!1,rules:[],messagePosition:"outside",width:"100%",useInvalidV2:!1},setup(e){const t={change:"",blur:"",save:""};let l=!1,n=!1;const r=()=>{const p=e.props,v=[];return p.required&&v.push({message:p.requiredMessage??e.locale.Common.requiredMessage.replace("{label}",p.label||p.name||""),type:"save",validator:$=>!!$}),[...v,...p.rules??[]]},d=async(p,v)=>{const $=e.props,A=r();if(A.length<=0||$.disabled)return!0;t[v]="";for(const S of A.filter(y=>y.type===v))if(!await S.validator(p))return t[v]=S.message,e.requestUpdate(),!1;return e.requestUpdate(),!0},m=p=>{const v=p.target.value;t.save="",t.blur="",e.emit("update:modelValue",v),d(v,"change")},s=()=>{t.save="",l=!0,e.requestUpdate()},i=p=>{d(p.target.value,"blur"),l=!1,e.requestUpdate()},h=p=>{p.key==="Enter"&&e.emit("enter",p)},a=()=>{e.props.disabled||(n=!n,e.requestUpdate())},u={validate:(p="save")=>d(String(e.props.modelValue??""),p),initValidator:()=>{t.change=t.blur=t.save="",e.requestUpdate()}};return e.validator&&(e.validator.addValidator(u),e.onCleanup(()=>{var p;return(p=e.validator)==null?void 0:p.removeValidator(u)})),{onMounted:p=>e.emit("mounted",(p==null?void 0:p.querySelector("input"))??null),render(){const p=e.props;p.disabled&&(n=!1);const v=String(p.modelValue??""),$=t.save||t.blur||t.change,A=!!p.useInvalidV2,S=p.width?typeof p.width=="number"?`${p.width}px`:p.width:"100%",y=ge(p,ms);return o.html`
|
|
382
385
|
<div
|
|
383
|
-
class=${
|
|
386
|
+
class=${V("moz-password-input-container",{"is-invalid":$!=="",disabled:p.disabled},p.class)}
|
|
384
387
|
>
|
|
385
388
|
<div class="input-wrapper">
|
|
386
|
-
${p.label?Be({disabled:p.disabled,required:p.required},p.label,"moz-input-label"):
|
|
387
|
-
<div class="moz-password-input-wrapper" style="width:${
|
|
389
|
+
${p.label?Be({disabled:p.disabled,required:p.required},p.label,"moz-input-label"):o.nothing}
|
|
390
|
+
<div class="moz-password-input-wrapper" style="width:${S}">
|
|
388
391
|
<input
|
|
389
392
|
autocomplete="new-password"
|
|
390
|
-
style="width:${
|
|
391
|
-
class=${
|
|
393
|
+
style="width:${S}"
|
|
394
|
+
class=${V("moz-input",fs,{disabled:p.disabled,"has-inside-message":!A&&p.messagePosition==="inside"&&$!==""&&!l,"has-invalid-icon":A&&$!==""&&!l})}
|
|
392
395
|
name=${xe.ifDefined(p.name)}
|
|
393
396
|
type=${n?"text":"password"}
|
|
394
397
|
placeholder=${xe.ifDefined(p.placeholder)}
|
|
395
398
|
?disabled=${!!p.disabled}
|
|
396
399
|
.value=${Lt.live(v)}
|
|
397
|
-
${he(
|
|
400
|
+
${he(y)}
|
|
398
401
|
@input=${m}
|
|
399
402
|
@keypress=${h}
|
|
400
403
|
@focus=${s}
|
|
@@ -404,56 +407,56 @@
|
|
|
404
407
|
type="button"
|
|
405
408
|
aria-label=${n?e.locale.PasswordInput.hidePassword:e.locale.PasswordInput.showPassword}
|
|
406
409
|
aria-pressed=${n?"true":"false"}
|
|
407
|
-
class=${
|
|
410
|
+
class=${V("icon-container password-icon",{"cursor-pointer":!p.disabled,"cursor-not-allowed":p.disabled})}
|
|
408
411
|
?disabled=${!!p.disabled}
|
|
409
412
|
@click=${a}
|
|
410
413
|
>
|
|
411
|
-
${n?
|
|
414
|
+
${n?Ho():Uo()}
|
|
412
415
|
</button>
|
|
413
|
-
${
|
|
414
|
-
${e.slots.has("invalidTooltip")?e.slot("invalidTooltip",{message
|
|
415
|
-
</div>`:
|
|
416
|
-
${!
|
|
417
|
-
>${
|
|
418
|
-
>`:
|
|
416
|
+
${A&&$!==""&&!l?o.html`<div class="moz-input-invalid-icon-v2">
|
|
417
|
+
${e.slots.has("invalidTooltip")?e.slot("invalidTooltip",{message:$}):o.html`<div title=${$}>${jt("var(--moz-color-danger)")}</div>`}
|
|
418
|
+
</div>`:o.nothing}
|
|
419
|
+
${!A&&$!==""&&!l?o.html`<span class=${V("moz-input-invalid-message",`position-${p.messagePosition}`)}
|
|
420
|
+
>${$}</span
|
|
421
|
+
>`:o.nothing}
|
|
419
422
|
</div>
|
|
420
423
|
</div>
|
|
421
424
|
</div>
|
|
422
|
-
`}}}}),gs={name:"MozPasswordInput",core:
|
|
425
|
+
`}}}}),gs={name:"MozPasswordInput",core:No,props:["label","value","name","placeholder","required","disabled","rules","width","messagePosition","requiredMessage","useInvalidV2","modelValue"],emits:["enter","mounted","update:modelValue"],slots:["invalidTooltip"],expose:!1},vs=new Set(["id","label","width","height","required","disabled","rules","maxLength","resize","immediatelyFocus","requiredMessage","modelValue","class","style"]),_o=we({name:"moz-textarea",defaults:{id:"moz-text-area-id",height:80,required:!1,disabled:!1,rules:[],maxLength:null,resize:"none",immediatelyFocus:!1,modelValue:""},setup(e){const t={change:"",blur:"",save:""},l=()=>{const i=e.props,h=[];return i.required&&h.push({message:i.requiredMessage??e.locale.Common.requiredMessage.replace("{label}",i.label||""),type:"save",validator:a=>!!a}),[...h,...i.rules??[]]},n=async(i,h)=>{const a=e.props,u=l();if(u.length<=0||a.disabled)return!0;t[h]="";for(const p of u.filter(v=>v.type===h))if(!await p.validator(i))return t[h]=p.message,e.requestUpdate(),!1;return e.requestUpdate(),!0},r=i=>{const h=i.target,a=e.props;h.value&&a.maxLength&&h.value.length>a.maxLength&&(h.value=h.value.slice(0,a.maxLength)),e.emit("update:modelValue",h.value),n(h.value,"change")},d=i=>{n(i.target.value,"blur")},m=()=>{t.save="",e.requestUpdate()},s={validate:(i="save")=>n(String(e.props.modelValue??""),i),initValidator:()=>{t.change=t.blur=t.save="",e.requestUpdate()}};return e.validator&&(e.validator.addValidator(s),e.onCleanup(()=>{var i;return(i=e.validator)==null?void 0:i.removeValidator(s)})),{onMounted:i=>{var h;e.props.immediatelyFocus&&((h=i==null?void 0:i.querySelector("textarea"))==null||h.focus())},render(){const i=e.props,h=String(i.modelValue??""),a=t.save||t.blur||t.change,u=i.width?typeof i.width=="number"?`${Le(i.width)}rem`:i.width:"100%",p=`${Le(i.height??80)}rem`,v=i.resize??"none",$=v==="none"?`height:${p}`:`min-height:${p}`,A=h.length,S=ge(i,vs);return o.html`
|
|
423
426
|
<div
|
|
424
|
-
class=${
|
|
425
|
-
style="width:${u};${
|
|
427
|
+
class=${V("moz-textarea-wrapper",{disabled:i.disabled},i.class)}
|
|
428
|
+
style="width:${u};${$}"
|
|
426
429
|
>
|
|
427
430
|
<div class="textarea-inner">
|
|
428
|
-
${i.label?Be({for:i.id,disabled:i.disabled,required:i.required},i.label):
|
|
429
|
-
<div class=${
|
|
431
|
+
${i.label?Be({for:i.id,disabled:i.disabled,required:i.required},i.label):o.nothing}
|
|
432
|
+
<div class=${V("moz-textarea-box",{disabled:i.disabled,invalid:a!==""})}>
|
|
430
433
|
<textarea
|
|
431
434
|
id=${xe.ifDefined(i.id)}
|
|
432
|
-
${he(
|
|
435
|
+
${he(S)}
|
|
433
436
|
.value=${Lt.live(h)}
|
|
434
437
|
?disabled=${!!i.disabled}
|
|
435
438
|
maxlength=${xe.ifDefined(i.maxLength??void 0)}
|
|
436
|
-
class=${
|
|
439
|
+
class=${V("moz-textarea",{disabled:i.disabled})}
|
|
437
440
|
style=${le.styleMap({resize:v==="none"?void 0:v,height:v==="none"?void 0:"auto"})}
|
|
438
441
|
@input=${r}
|
|
439
442
|
@blur=${d}
|
|
440
443
|
@focus=${m}
|
|
441
444
|
></textarea>
|
|
442
|
-
${i.maxLength?
|
|
445
|
+
${i.maxLength?o.html`<div class="char-counter"><span>${A}</span><span>/</span><span>${i.maxLength}</span></div>`:o.nothing}
|
|
443
446
|
</div>
|
|
444
447
|
</div>
|
|
445
|
-
${a!==""?
|
|
448
|
+
${a!==""?o.html`<span class="moz-textarea-invalid-message">${a}</span>`:o.nothing}
|
|
446
449
|
</div>
|
|
447
|
-
`}}}}),ws={name:"MozTextArea",core:
|
|
450
|
+
`}}}}),ws={name:"MozTextArea",core:_o,props:["id","label","width","height","required","disabled","rules","maxLength","resize","immediatelyFocus","requiredMessage","modelValue"],emits:["update:modelValue"],slots:[],expose:!1};function Cs(e="var(--moz-color-on-accent)",t=!1){return o.html`<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
448
451
|
<path d="M7 1V13M1 7H13" stroke=${t?"var(--moz-color-text-muted)":e} stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
449
|
-
</svg>`}function bs(e="var(--moz-color-on-accent)",t=!1){return
|
|
452
|
+
</svg>`}function bs(e="var(--moz-color-on-accent)",t=!1){return o.html`<svg width="14" height="2" viewBox="0 0 14 2" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
450
453
|
<path d="M1 1H13" stroke=${t?"var(--moz-color-text-muted)":e} stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
451
|
-
</svg>`}function ys(e=!1){return
|
|
454
|
+
</svg>`}function ys(e=!1){return o.html`<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
452
455
|
<path d="M9.50097 7.73588L5.95565 4.27686L2.49904 7.73588" stroke=${e?"var(--moz-color-text-muted)":"var(--moz-color-text-subtle)"} stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
453
|
-
</svg>`}function $s(e=!1){return
|
|
456
|
+
</svg>`}function $s(e=!1){return o.html`<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
454
457
|
<path d="M2.49901 4.27686L6.04435 7.73588L9.50099 4.27686" stroke=${e?"var(--moz-color-text-muted)":"var(--moz-color-text-subtle)"} stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
455
|
-
</svg>`}const Ss=new Set(["label","name","width","required","step","min","max","disabled","shortMode","nullable","modelValue","class","style"]),Wo=we({name:"moz-number-input",defaults:{label:"",width:100,required:!1,step:1,min:-Number.MAX_VALUE,max:Number.MAX_VALUE,disabled:!1,shortMode:!1,nullable:!1},setup(e){const t=()=>{const s=e.props;if(s.disabled||s.modelValue===void 0)return;const i=s.modelValue+s.step;s.max!==void 0&&s.max!==null&&i>s.max||(e.emit("update:modelValue",i),e.emit("change",i))},
|
|
456
|
-
<div class=${
|
|
458
|
+
</svg>`}const Ss=new Set(["label","name","width","required","step","min","max","disabled","shortMode","nullable","modelValue","class","style"]),Wo=we({name:"moz-number-input",defaults:{label:"",width:100,required:!1,step:1,min:-Number.MAX_VALUE,max:Number.MAX_VALUE,disabled:!1,shortMode:!1,nullable:!1},setup(e){const t=()=>{const s=e.props;if(s.disabled||s.modelValue===void 0)return;const i=s.modelValue+s.step;s.max!==void 0&&s.max!==null&&i>s.max||(e.emit("update:modelValue",i),e.emit("change",i))},l=()=>{const s=e.props;if(s.disabled||s.modelValue===void 0)return;const i=s.modelValue-s.step;s.min!==void 0&&s.min!==null&&i<s.min||(e.emit("update:modelValue",i),e.emit("change",i))},n=s=>{const i=e.props;if(i.disabled||i.nullable||s.key!=="Backspace"&&s.key!=="Delete"||i.min===-Number.MAX_VALUE||Number(i.modelValue)!==Number(i.min))return;const h=s.target,a=h.selectionStart??0,u=h.selectionEnd??0,p=h.value,v=a!==u;(v&&a===0&&u===p.length||!v&&p.length===1)&&s.preventDefault()},r=s=>{const i=e.props;if(i.disabled||i.nullable)return;const h=s.target;if(h.value===""){const a=i.min!==-Number.MAX_VALUE?i.min:0;e.emit("update:modelValue",a),h.value=String(a),e.emit("change",a)}},d=s=>{const i=e.props;if(i.disabled)return;const h=s.target;if(!h&&!i.nullable){e.emit("update:modelValue",0),e.emit("change",0);return}if(!h)return;Number(h.value)<i.min&&(h.value=String(i.min)),Number(h.value)>i.max&&(h.value=String(i.max));const a=+h.value.replace(/,/g,"");e.emit("update:modelValue",a),e.emit("change",a)},m=s=>{s.key==="Enter"&&e.emit("enter",s)};return{onMounted:s=>e.emit("mounted",(s==null?void 0:s.querySelector("input"))??null),render(){const s=e.props,i=s.modelValue,h=!!s.disabled,a=s.min,u=s.max,p=typeof s.width=="number"?`${Le(s.width)}rem`:s.width,v=ge(s,Ss),$=S=>V("moz-button","moz-icon-button","moz-icon-accent-button","num-change-btn",S),A=o.html`
|
|
459
|
+
<div class=${V("moz-number-input",{"input-border":s.shortMode})}>
|
|
457
460
|
<input
|
|
458
461
|
name=${xe.ifDefined(s.name)}
|
|
459
462
|
?disabled=${h}
|
|
@@ -467,31 +470,31 @@
|
|
|
467
470
|
type="number"
|
|
468
471
|
/>
|
|
469
472
|
<div class="moz-number-input-btn">
|
|
470
|
-
${s.shortMode?
|
|
473
|
+
${s.shortMode?o.html`
|
|
471
474
|
<button type="button" aria-label=${e.locale.NumberInput.increase} class="moz-number-input-btn-icon" @click=${t}>${ys(h)}</button>
|
|
472
|
-
<button type="button" aria-label=${e.locale.NumberInput.decrease} class="moz-number-input-btn-icon" @click=${
|
|
473
|
-
`:
|
|
475
|
+
<button type="button" aria-label=${e.locale.NumberInput.decrease} class="moz-number-input-btn-icon" @click=${l}>${$s(h)}</button>
|
|
476
|
+
`:o.nothing}
|
|
474
477
|
</div>
|
|
475
478
|
</div>
|
|
476
|
-
`;return
|
|
477
|
-
<div class=${
|
|
478
|
-
${s.label?Be({disabled:h},
|
|
479
|
+
`;return o.html`
|
|
480
|
+
<div class=${V("moz-number-input-container",{disabled:h},s.class)}>
|
|
481
|
+
${s.label?Be({disabled:h},o.html`${s.label}${s.required?o.html`<span class="require-mark">*</span>`:o.nothing}`):o.nothing}
|
|
479
482
|
<div class="moz-number-input-wrapper" style="width:${p}">
|
|
480
|
-
${s.shortMode?
|
|
483
|
+
${s.shortMode?o.nothing:o.html`<button
|
|
481
484
|
type="button"
|
|
482
485
|
aria-label=${e.locale.NumberInput.decrease}
|
|
483
|
-
class=${
|
|
486
|
+
class=${$({disabled:h||a>=i,"min-disabled":a>=i})}
|
|
484
487
|
style="border-radius: 4px 0px 0px 4px"
|
|
485
488
|
?disabled=${h}
|
|
486
|
-
@click=${
|
|
489
|
+
@click=${l}
|
|
487
490
|
>
|
|
488
491
|
${bs("var(--moz-color-on-accent)",h||a>=i)}
|
|
489
492
|
</button>`}
|
|
490
|
-
${
|
|
491
|
-
${s.shortMode?
|
|
493
|
+
${A}
|
|
494
|
+
${s.shortMode?o.nothing:o.html`<button
|
|
492
495
|
type="button"
|
|
493
496
|
aria-label=${e.locale.NumberInput.increase}
|
|
494
|
-
class=${
|
|
497
|
+
class=${$({disabled:h||u<=i,"max-disabled":u<=i})}
|
|
495
498
|
style="border-radius: 0px 4px 4px 0px"
|
|
496
499
|
?disabled=${h}
|
|
497
500
|
@click=${t}
|
|
@@ -500,50 +503,50 @@
|
|
|
500
503
|
</button>`}
|
|
501
504
|
</div>
|
|
502
505
|
</div>
|
|
503
|
-
`}}}}),ks={name:"MozNumberInput",core:Wo,props:["label","name","width","required","step","min","max","disabled","shortMode","nullable","modelValue"],emits:["change","mounted","enter","update:modelValue"],slots:[],expose:!1};function Ko(e="var(--moz-color-text-subtle)"){return
|
|
506
|
+
`}}}}),ks={name:"MozNumberInput",core:Wo,props:["label","name","width","required","step","min","max","disabled","shortMode","nullable","modelValue"],emits:["change","mounted","enter","update:modelValue"],slots:[],expose:!1};function Ko(e="var(--moz-color-text-subtle)"){return o.html`<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
504
507
|
<path d="M9 3L3 9M3 3L9 9" stroke=${e} stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
505
|
-
</svg>`}const Es=new Set(["itemSource","vertical","tabWidth","maxTabWidth","closeAble","modelValue","class","style"]),Go=we({name:"moz-tab",defaults:{vertical:!1,tabWidth:100,closeAble:!1,itemSource:[]},setup(e){const t=Xe("tab_"),
|
|
508
|
+
</svg>`}const Es=new Set(["itemSource","vertical","tabWidth","maxTabWidth","closeAble","modelValue","class","style"]),Go=we({name:"moz-tab",defaults:{vertical:!1,tabWidth:100,closeAble:!1,itemSource:[]},setup(e){const t=Xe("tab_"),l=i=>`${t}-tab-${i}`,n=i=>`${t}-panel-${i}`,r=i=>typeof requestAnimationFrame=="function"?requestAnimationFrame(i):setTimeout(i,16),d=i=>{e.props.modelValue!==i&&(e.emit("update:modelValue",i),e.emit("change",i))},m=(i,h)=>{const a=e.props,u=(a.itemSource??[]).map(E=>E.id);if(u.length===0)return;const p=a.vertical?"ArrowDown":"ArrowRight",v=a.vertical?"ArrowUp":"ArrowLeft";let $;if(i.key===p?$=u[(u.indexOf(h)+1)%u.length]:i.key===v?$=u[(u.indexOf(h)-1+u.length)%u.length]:i.key==="Home"?$=u[0]:i.key==="End"?$=u[u.length-1]:(i.key==="Enter"||i.key===" ")&&($=h),$===void 0)return;i.preventDefault(),i.stopPropagation(),d($);const A=i.currentTarget.closest('[role="tablist"]'),S=l($);let y=0;const D=()=>{const E=Array.from((A==null?void 0:A.querySelectorAll('[role="tab"]'))??[]).find(L=>L.id===S);if(E&&E.getAttribute("aria-selected")==="true"){E.focus();return}++y<20&&r(D)};r(D)},s=i=>{const h=e.props;if(h.modelValue===i){const a=(h.itemSource??[]).filter(u=>u.id!==i);a.length>0&&d(a[a.length-1].id)}e.emit("close",i)};return{onMounted:()=>{const i=e.props;!i.modelValue&&(i.itemSource??[]).length>0&&queueMicrotask(()=>{!e.props.modelValue&&(e.props.itemSource??[]).length>0&&d(e.props.itemSource[0].id)})},render(){const i=e.props,h=i.itemSource??[],a=i.modelValue,u=ge(i,Es),p=le.styleMap({width:i.closeAble?`${i.tabWidth}px`:"",maxWidth:i.maxTabWidth?`${i.maxTabWidth}px`:void 0,display:"flex",justifyContent:i.closeAble||i.vertical?"space-between":"center",alignItems:i.vertical?"center":"normal"});return o.html`
|
|
506
509
|
<div
|
|
507
|
-
class=${
|
|
510
|
+
class=${V("moz-tabs-container",{vertical:i.vertical},i.class)}
|
|
508
511
|
style=${le.styleMap(Pe(i.style))}
|
|
509
512
|
${he(u)}
|
|
510
513
|
>
|
|
511
514
|
<div
|
|
512
|
-
class=${
|
|
515
|
+
class=${V("moz-tabs",{vertical:i.vertical})}
|
|
513
516
|
role="tablist"
|
|
514
517
|
aria-orientation=${i.vertical?"vertical":"horizontal"}
|
|
515
518
|
>
|
|
516
|
-
${h.map(v=>{const
|
|
519
|
+
${h.map(v=>{const $=a===v.id;return o.html`
|
|
517
520
|
<div
|
|
518
|
-
class=${
|
|
521
|
+
class=${V("moz-tab",{"current-tab":$,vertical:i.vertical,closeable:i.closeAble})}
|
|
519
522
|
style=${p}
|
|
520
|
-
id=${
|
|
523
|
+
id=${l(v.id)}
|
|
521
524
|
role="tab"
|
|
522
|
-
aria-selected=${
|
|
525
|
+
aria-selected=${$?"true":"false"}
|
|
523
526
|
aria-controls=${n(v.id)}
|
|
524
|
-
tabindex=${
|
|
527
|
+
tabindex=${$?"0":"-1"}
|
|
525
528
|
@click=${()=>d(v.id)}
|
|
526
|
-
@mousedown=${
|
|
527
|
-
@keydown=${
|
|
529
|
+
@mousedown=${A=>{A.button===0&&d(v.id)}}
|
|
530
|
+
@keydown=${A=>m(A,v.id)}
|
|
528
531
|
>
|
|
529
|
-
${e.slots.has(`${v.id}-tab`)?e.slot(`${v.id}-tab`,{text:v.text,active
|
|
530
|
-
${i.closeAble?
|
|
532
|
+
${e.slots.has(`${v.id}-tab`)?e.slot(`${v.id}-tab`,{text:v.text,active:$}):o.html`<p class=${V("tab-label",{active:$})}>${v.text}</p>`}
|
|
533
|
+
${i.closeAble?o.html`<button type="button"
|
|
531
534
|
class="tab-close-btn"
|
|
532
535
|
aria-label=${e.locale.Tab.closeTab.replace("{label}",v.text??"")}
|
|
533
|
-
@click=${
|
|
536
|
+
@click=${A=>{A.stopPropagation(),s(v.id)}}
|
|
534
537
|
>
|
|
535
538
|
${Ko()}
|
|
536
|
-
</button>`:
|
|
539
|
+
</button>`:o.nothing}
|
|
537
540
|
</div>
|
|
538
541
|
`})}
|
|
539
542
|
</div>
|
|
540
543
|
<div class="moz-tab-body">
|
|
541
|
-
${h.map(v=>
|
|
544
|
+
${h.map(v=>o.html`
|
|
542
545
|
<div
|
|
543
|
-
class=${
|
|
546
|
+
class=${V("tab-panel",{active:a===v.id})}
|
|
544
547
|
id=${n(v.id)}
|
|
545
548
|
role="tabpanel"
|
|
546
|
-
aria-labelledby=${
|
|
549
|
+
aria-labelledby=${l(v.id)}
|
|
547
550
|
tabindex=${a===v.id?"0":"-1"}
|
|
548
551
|
?hidden=${a!==v.id}
|
|
549
552
|
>
|
|
@@ -552,11 +555,11 @@
|
|
|
552
555
|
`)}
|
|
553
556
|
</div>
|
|
554
557
|
</div>
|
|
555
|
-
`}}}}),Ps={name:"MozTab",core:Go,props:["itemSource","vertical","tabWidth","maxTabWidth","closeAble","modelValue"],emits:["change","close","update:modelValue"],slots:[],expose:!1},xs=new Set(["id","width","label","min","max","step","disabled","modelValue","class","style"]),Yo=we({name:"moz-slider",defaults:{id:"moz-slider-id",width:150,min:0,max:100,step:1,disabled:!1,modelValue:0},setup(e){let t=!1,
|
|
556
|
-
<div class=${
|
|
557
|
-
${u.label?Be({for:u.id},u.label):
|
|
558
|
+
`}}}}),Ps={name:"MozTab",core:Go,props:["itemSource","vertical","tabWidth","maxTabWidth","closeAble","modelValue"],emits:["change","close","update:modelValue"],slots:[],expose:!1},xs=new Set(["id","width","label","min","max","step","disabled","modelValue","class","style"]),Yo=we({name:"moz-slider",defaults:{id:"moz-slider-id",width:150,min:0,max:100,step:1,disabled:!1,modelValue:0},setup(e){let t=!1,l=null,n=null;const r=u=>{const p=e.props;if(!l)return;const v=l.getBoundingClientRect(),A=(u.clientX-v.left)/l.offsetWidth;let S=Math.round(p.min+(p.max-p.min)*A);S<p.min?S=p.min:S>p.max&&(S=p.max);const y=Math.round(S/p.step)*p.step;e.emit("update:modelValue",y),e.emit("change")},d=()=>{window.removeEventListener("mousemove",r),window.removeEventListener("mouseup",d),n==null||n.focus()},m=u=>{e.props.disabled||(u.preventDefault(),n=u.currentTarget,l=n.querySelector(".moz-slider"),r(u),window.addEventListener("mousemove",r),window.addEventListener("mouseup",d))},s=u=>{const p=e.props;let v=p.modelValue??0;u==="-"?v-=p.step:v+=p.step,v>p.max?v=p.max:v<p.min&&(v=p.min),e.emit("update:modelValue",v),e.emit("change")},i=u=>{u.key==="ArrowLeft"||u.keyCode===37?s("-"):(u.key==="ArrowRight"||u.keyCode===39)&&s("+")},h=()=>{t=!0,e.requestUpdate()},a=()=>{t=!1,e.requestUpdate()};return e.onCleanup(()=>{window.removeEventListener("mousemove",r),window.removeEventListener("mouseup",d)}),{render(){const u=e.props,p=u.modelValue??0,v=!!u.disabled,$=u.min,A=u.max,S=typeof u.width=="number"?`${Le(u.width)}rem`:u.width,y=typeof u.width=="number"?u.width:Number.isNaN(parseFloat(String(u.width)))?150:parseFloat(String(u.width)),E=(p-$)/(A-$)*(y-18),L=E<0?0:E,K=ge(u,xs);return o.html`
|
|
559
|
+
<div class=${V("moz-slider-wrapper",u.class)} style=${le.styleMap(Pe(u.style))} ${he(K)}>
|
|
560
|
+
${u.label?Be({for:u.id},u.label):o.nothing}
|
|
558
561
|
<div
|
|
559
|
-
class=${
|
|
562
|
+
class=${V("moz-slider-container",{disabled:v,label:!!u.label})}
|
|
560
563
|
role="slider"
|
|
561
564
|
aria-valuenow=${String(p??0)}
|
|
562
565
|
aria-valuemin=${String(u.min??0)}
|
|
@@ -570,32 +573,32 @@
|
|
|
570
573
|
@blur=${a}
|
|
571
574
|
@keydown=${i}
|
|
572
575
|
>
|
|
573
|
-
<div class="moz-slider" style="width:${
|
|
576
|
+
<div class="moz-slider" style="width:${S}">
|
|
574
577
|
<div class="moz-slider-track" style="width:${Le(L+10)}rem"></div>
|
|
575
578
|
</div>
|
|
576
579
|
<div
|
|
577
|
-
class=${
|
|
580
|
+
class=${V("moz-slider-handle",{focused:t&&!v})}
|
|
578
581
|
style="left:${Le(L)}rem"
|
|
579
582
|
></div>
|
|
580
583
|
</div>
|
|
581
584
|
</div>
|
|
582
|
-
`}}}}),Ls={name:"MozSlider",core:Yo,props:["id","width","label","min","max","step","disabled","modelValue"],emits:["change","update:modelValue"],slots:[],expose:!1};function Ts(e="var(--moz-color-text-subtle)"){return
|
|
585
|
+
`}}}}),Ls={name:"MozSlider",core:Yo,props:["id","width","label","min","max","step","disabled","modelValue"],emits:["change","update:modelValue"],slots:[],expose:!1};function Ts(e="var(--moz-color-text-subtle)"){return o.html`<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
583
586
|
<path d="M3 4.5L6 7.5L9 4.5" stroke=${e} stroke-linecap="round" stroke-linejoin="round"></path>
|
|
584
|
-
</svg>`}function Ms(e="var(--moz-color-text-subtle)"){return
|
|
587
|
+
</svg>`}function Ms(e="var(--moz-color-text-subtle)"){return o.html`<svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
585
588
|
<path
|
|
586
589
|
fill-rule="evenodd"
|
|
587
590
|
clip-rule="evenodd"
|
|
588
591
|
d="M6.44838 8.48894C6.76426 8.18002 6.7699 7.67352 6.46097 7.35764L4.12588 4.96996L6.45391 2.64852C6.76677 2.33654 6.76749 1.83001 6.45551 1.51715C6.14354 1.20429 5.637 1.20357 5.32414 1.51555L2.4351 4.39641C2.12439 4.70624 2.12124 5.20853 2.42804 5.52225L5.31708 8.47635C5.626 8.79223 6.1325 8.79787 6.44838 8.48894Z"
|
|
589
592
|
fill=${e}
|
|
590
593
|
></path>
|
|
591
|
-
</svg>`}function zs(e="var(--moz-color-text-subtle)"){return
|
|
594
|
+
</svg>`}function zs(e="var(--moz-color-text-subtle)"){return o.html`<svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
592
595
|
<path
|
|
593
596
|
fill-rule="evenodd"
|
|
594
597
|
clip-rule="evenodd"
|
|
595
598
|
d="M3.72667 8.48894C3.41079 8.18002 3.40515 7.67352 3.71407 7.35764L6.04917 4.96996L3.72114 2.64852C3.40828 2.33654 3.40756 1.83001 3.71954 1.51715C4.03151 1.20429 4.53804 1.20357 4.85091 1.51555L7.73994 4.39641C8.05066 4.70624 8.05381 5.20853 7.74701 5.52225L4.85797 8.47635C4.54905 8.79223 4.04255 8.79787 3.72667 8.48894Z"
|
|
596
599
|
fill=${e}
|
|
597
600
|
></path>
|
|
598
|
-
</svg>`}function Vs(e="var(--moz-color-text-subtle)"){return
|
|
601
|
+
</svg>`}function Vs(e="var(--moz-color-text-subtle)"){return o.html`<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
599
602
|
<path
|
|
600
603
|
d="M11.5 2.7H2.50001C1.78204 2.7 1.20001 3.28203 1.20001 4V12C1.20001 12.718 1.78204 13.3 2.50001 13.3H11.5C12.218 13.3 12.8 12.718 12.8 12V4C12.8 3.28203 12.218 2.7 11.5 2.7Z"
|
|
601
604
|
stroke=${e}
|
|
@@ -608,79 +611,79 @@
|
|
|
608
611
|
fill=${e}
|
|
609
612
|
></path>
|
|
610
613
|
<rect x="3.34009" y="7.41504" width="2.93262" height="2.93262" rx="0.5" fill=${e}></rect>
|
|
611
|
-
</svg>`}const Ds=new Set(["rowHeight","exceptWeeks","min","max","modelValue","class","style"]),As=(e,...t)=>e.filter(
|
|
614
|
+
</svg>`}const Ds=new Set(["rowHeight","exceptWeeks","min","max","modelValue","class","style"]),As=(e,...t)=>e.filter(l=>!t.includes(l)),Xt=we({name:"moz-calendar",defaults:{rowHeight:36,exceptWeeks:[],min:null,max:null},setup(e){let t=e.props.modelValue?Ee(e.props.modelValue):Ee(),l=e.props.modelValue,n=!0,r=!1,d=!1,m=-1;const s=E=>{const L=e.props;return!!L.min&&E.isBefore(L.min,"day")||!!L.max&&E.isAfter(L.max,"day")},i=E=>{const L=e.props;return!!L.min&&E.endOf("year").isBefore(L.min,"day")||!!L.max&&E.startOf("year").isAfter(L.max,"day")},h=E=>{const L=e.props;return!!L.min&&E.endOf("month").isBefore(L.min,"day")||!!L.max&&E.startOf("month").isAfter(L.max,"day")},a=()=>{t=t.subtract(1,"M"),e.requestUpdate()},u=()=>{t=t.add(1,"M"),e.requestUpdate()},p=()=>{n=!0,r=!1,d=!1,e.requestUpdate()},v=()=>{n=!1,r=!0,d=!1,e.requestUpdate()},$=()=>{n=!1,r=!1,d=!0,e.requestUpdate()},A=E=>{i(E)||(t=t.set("year",E.year()),n=!0,r=!1,d=!1,e.requestUpdate())},S=E=>{h(E)||(t=t.set("month",E.month()),n=!0,r=!1,d=!1,e.requestUpdate())},y=E=>{s(E)||e.emit("update:modelValue",Ee(E))},D=()=>y(Ee());return{render(){const E=e.props;E.modelValue!==l&&(l=E.modelValue,t=E.modelValue?Ee(E.modelValue):Ee());const L=E.rowHeight??36,K=["ko","zh","zh-cn"].includes(Ee().locale()),W=t.hour(),te=t.minute(),ae=t.second(),ee=z=>z.set("hour",W||0).set("minute",te||0).set("second",ae||0),Y=As([0,1,2,3,4,5,6],...E.exceptWeeks??[]),M=[];{const z=ee(t.endOf("M"));let T=ee(t.startOf("M")).startOf("w");do M.push(T),T=T.add(7,"d");while(T.diff(z)<=0)}const G=L*M.length+126;G!==m&&(m=G,queueMicrotask(()=>e.emit("setMaxHeight",G)));const ne=(z,T)=>{const I=z.add(T,"d");return t.format("YYYYMMDD")!==I.format("YYYYMMDD")?t.format("MM")===I.format("MM")?"":"moz-calendar-column-otherMonth":""},oe=E.modelValue?Ee(E.modelValue).format("YYYYMMDD"):"",J=(z,T,I)=>o.html`<button
|
|
612
615
|
type="button"
|
|
613
|
-
aria-label=${
|
|
616
|
+
aria-label=${I}
|
|
614
617
|
class="moz-button moz-icon-button"
|
|
615
618
|
style="width:24px;height:24px;min-width:24px;min-height:24px"
|
|
616
|
-
@click=${
|
|
619
|
+
@click=${T}
|
|
617
620
|
>
|
|
618
|
-
${
|
|
619
|
-
</button>`,
|
|
621
|
+
${z}
|
|
622
|
+
</button>`,U=o.html`
|
|
620
623
|
<div class="moz-calendar-header">
|
|
621
624
|
<div class="moz-calendar-select">
|
|
622
|
-
${
|
|
625
|
+
${K?o.html`
|
|
623
626
|
<div class="moz-calendar-select__text" @click=${v}>
|
|
624
627
|
${new Intl.DateTimeFormat(Ee().locale(),{year:"numeric"}).format(t.toDate())}
|
|
625
628
|
</div>
|
|
626
|
-
<div class="moz-calendar-select__text" @click=${
|
|
627
|
-
`:
|
|
628
|
-
<div class="moz-calendar-select__text" @click=${
|
|
629
|
+
<div class="moz-calendar-select__text" @click=${$}>${t.format("MMMM")}</div>
|
|
630
|
+
`:o.html`
|
|
631
|
+
<div class="moz-calendar-select__text" @click=${$}>${t.format("MMMM")}</div>
|
|
629
632
|
<div class="moz-calendar-select__text" @click=${v}>${t.format("YYYY")}</div>
|
|
630
633
|
`}
|
|
631
634
|
<div class="moz-calendar-select-btn" @click=${p}>${Ts("currentColor")}</div>
|
|
632
635
|
</div>
|
|
633
636
|
<div class="moz-calendar-header__spacer"></div>
|
|
634
637
|
<div class="moz-calendar-select-btn-group">
|
|
635
|
-
${
|
|
638
|
+
${J(Ms(),a,"이전 달")}${J(Vs(),D,"오늘")}${J(zs(),u,"다음 달")}
|
|
636
639
|
</div>
|
|
637
640
|
</div>
|
|
638
|
-
`,
|
|
641
|
+
`,b=o.html`
|
|
639
642
|
<div class="moz-calendar-row">
|
|
640
|
-
${Y.map(
|
|
643
|
+
${Y.map(z=>o.html`<div
|
|
641
644
|
class="moz-calendar-column moz-calendar-column-day"
|
|
642
645
|
style="width: ${100/Y.length}%; height: ${Le(L)}rem;"
|
|
643
646
|
>
|
|
644
|
-
${Ee().day(
|
|
647
|
+
${Ee().day(z).format("ddd")}
|
|
645
648
|
</div>`)}
|
|
646
649
|
</div>
|
|
647
|
-
${
|
|
648
|
-
${Y.map(
|
|
649
|
-
class=${
|
|
650
|
+
${M.map(z=>o.html`<div class="moz-calendar-row">
|
|
651
|
+
${Y.map(T=>{const I=z.add(T,"d");return o.html`<div
|
|
652
|
+
class=${V("moz-calendar-column",ne(z,T),oe===I.format("YYYYMMDD")?"moz-calendar-selected":"",s(I)?"date-disable":"moz-calendar-column--hoverable")}
|
|
650
653
|
style="width: ${100/Y.length}%; height: ${Le(L)}rem"
|
|
651
|
-
@click=${()=>
|
|
654
|
+
@click=${()=>y(I)}
|
|
652
655
|
>
|
|
653
|
-
${
|
|
656
|
+
${I.format("DD")}
|
|
654
657
|
</div>`})}
|
|
655
658
|
</div>`)}
|
|
656
|
-
`;let
|
|
659
|
+
`;let R=o.nothing;if(r){const z=[],T=Ee().add(100,"y").startOf("y");let I=Ee().subtract(100,"y").startOf("y");do z.push(I),I=I.add(1,"y");while(I.diff(T)<=0);R=o.html`<div
|
|
657
660
|
class="moz-calendar-row moz-calendar-row--wrap"
|
|
658
|
-
style="max-height: ${Le(L*
|
|
661
|
+
style="max-height: ${Le(L*M.length)}rem"
|
|
659
662
|
>
|
|
660
|
-
${
|
|
661
|
-
class=${
|
|
663
|
+
${z.map(g=>o.html`<div
|
|
664
|
+
class=${V("moz-calendar-column",t.format("YYYY")===g.format("YYYY")?"moz-calendar-selected":"",i(g)?"date-disable":"moz-calendar-column--hoverable")}
|
|
662
665
|
style="width: ${100/3}%; height: ${Le(L)}rem"
|
|
663
|
-
@click=${()=>
|
|
666
|
+
@click=${()=>A(g)}
|
|
664
667
|
>
|
|
665
668
|
${g.format("YYYY")}
|
|
666
669
|
</div>`)}
|
|
667
|
-
</div>`}let
|
|
668
|
-
${
|
|
669
|
-
class=${
|
|
670
|
+
</div>`}let _=o.nothing;if(d){const z=[],T=t.endOf("y");let I=t.startOf("y");do z.push(I),I=I.add(1,"M");while(I.diff(T)<=0);_=o.html`<div class="moz-calendar-row moz-calendar-row--wrap">
|
|
671
|
+
${z.map(g=>o.html`<div
|
|
672
|
+
class=${V("moz-calendar-column",t.format("YYYYMM")===g.format("YYYYMM")?"moz-calendar-selected":"",h(g)?"date-disable":"moz-calendar-column--hoverable")}
|
|
670
673
|
style="width: ${100/3}%; height: ${Le(L)}rem"
|
|
671
|
-
@click=${()
|
|
674
|
+
@click=${()=>S(g)}
|
|
672
675
|
>
|
|
673
676
|
${g.format("MMM")}
|
|
674
677
|
</div>`)}
|
|
675
|
-
</div>`}const k=ge(E,Ds);return
|
|
676
|
-
<div class=${
|
|
677
|
-
${
|
|
678
|
+
</div>`}const k=ge(E,Ds);return o.html`
|
|
679
|
+
<div class=${V("moz-calendar-container",E.class)} ${he(k)}>
|
|
680
|
+
${U}${n?b:o.nothing}${R}${_}
|
|
678
681
|
</div>
|
|
679
|
-
`}}}}),Rs={name:"MozCalendar",core:Xt,props:["rowHeight","exceptWeeks","min","max","modelValue"],emits:["changed","setMaxHeight","update:modelValue"],slots:[],expose:!1};function qs(e="var(--moz-color-on-accent)",t="14",
|
|
680
|
-
<path d="M8.5 3.5L5.5 7L8.5 10.5" stroke=${
|
|
681
|
-
</svg>`}function Is(e="var(--moz-color-on-accent)",t="14",
|
|
682
|
-
<path d="M5.5 3.5L8.5 7L5.5 10.5" stroke=${
|
|
683
|
-
</svg>`}function Fs(e="var(--moz-color-text-subtle)",t=""){return
|
|
682
|
+
`}}}}),Rs={name:"MozCalendar",core:Xt,props:["rowHeight","exceptWeeks","min","max","modelValue"],emits:["changed","setMaxHeight","update:modelValue"],slots:[],expose:!1};function qs(e="var(--moz-color-on-accent)",t="14",l=!1){return o.html`<svg width=${t} height=${t} viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
683
|
+
<path d="M8.5 3.5L5.5 7L8.5 10.5" stroke=${l?"var(--moz-color-text-muted)":e} stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
684
|
+
</svg>`}function Is(e="var(--moz-color-on-accent)",t="14",l=!1){return o.html`<svg width=${t} height=${t} viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
685
|
+
<path d="M5.5 3.5L8.5 7L5.5 10.5" stroke=${l?"var(--moz-color-text-muted)":e} stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
686
|
+
</svg>`}function Fs(e="var(--moz-color-text-subtle)",t=""){return o.html`<svg class=${t} width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
684
687
|
<path
|
|
685
688
|
d="M12 2.70001H3.00001C2.28204 2.70001 1.70001 3.28204 1.70001 4.00001V12C1.70001 12.718 2.28204 13.3 3.00001 13.3H12C12.718 13.3 13.3 12.718 13.3 12V4.00001C13.3 3.28204 12.718 2.70001 12 2.70001Z"
|
|
686
689
|
stroke=${e}
|
|
@@ -692,69 +695,69 @@
|
|
|
692
695
|
d="M3 2H12C12.5304 2 13.0391 2.21071 13.4142 2.58579C13.7893 2.96086 14 3.46957 14 4V6H1V4C1 3.46957 1.21071 2.96086 1.58579 2.58579C1.96086 2.21071 2.46957 2 3 2Z"
|
|
693
696
|
fill=${e}
|
|
694
697
|
></path>
|
|
695
|
-
</svg>`}const Bs="YYYY-MM-DD",
|
|
698
|
+
</svg>`}const Bs="YYYY-MM-DD",Os=new Set(["label","name","width","required","disabled","readonly","format","showSpin","min","max","modelValue","class","style"]),Zo=we({name:"moz-date-input",defaults:{label:"",width:200,required:!1,disabled:!1,readonly:!1,showSpin:!1,min:null,max:null},setup(e){let t=!1,l=270,n=e.props.modelValue,r=null,d=null;const m=new kt,s=S=>{const y=e.props.modelValue;let D;S&&y instanceof Date?D=Ee(S).toDate():S&&Ee.isDayjs(y)||!y&&S?D=Ee(S):D=void 0,e.emit("update:modelValue",D)},i=((S,...y)=>{S==="update:modelValue"?s(y[0]):S==="setMaxHeight"&&(l=y[0],h.calcPosition())}),h=new pt({anchor:()=>r==null?void 0:r.querySelector(".moz-date-input-wrapper"),panel:()=>m.element,maxHeight:()=>l,ignoreScrollTargets:S=>(S&&typeof S.className=="string"?S.className:"").split(" ").includes("moz-calendar-row"),container:()=>r,requestClose:()=>{t&&(t=!1,u(),e.requestUpdate())}}),a=()=>{const S=m.open("calendar-container");d=Xt(S,{modelValue:e.props.modelValue,min:e.props.min,max:e.props.max},i),h.open()},u=()=>{h.close(),d==null||d.destroy(),d=null,m.close(),e.emit("close")},p=()=>{var y;const S=e.props;S.disabled||S.readonly||(t=!t,t?((y=r==null?void 0:r.querySelector("input"))==null||y.focus(),a()):u(),e.requestUpdate())},v=()=>{e.props.modelValue&&s(Ee(e.props.modelValue).subtract(1,"d"))},$=()=>{e.props.modelValue&&s(Ee(e.props.modelValue).add(1,"d"))},A=S=>{const y=S.target,D=e.props.modelValue;D?Ee.isDayjs(D)&&Ee(y.value).isValid()?s(Ee(y.value)):D instanceof Date&&!Number.isNaN(Date.parse(y.value))?s(new Date(y.value)):s(void 0):s(Ee(y.value))};return e.onCleanup(()=>{h.destroy(),d==null||d.destroy(),m.close()}),{onMounted:S=>{r=S},render(){const S=e.props;if(S.modelValue!==n){n=S.modelValue;const ae=S.modelValue;queueMicrotask(()=>e.emit("change",ae)),d&&d.update({modelValue:S.modelValue})}const y=S.format||Bs,D=typeof S.width=="number"?`${Le(S.width)}rem`:S.width,E=S.modelValue?Ee(S.modelValue).format(y):"",L=!!S.min&&Ee(E).isSameOrBefore(Ee(S.min),"day"),K=!!S.max&&Ee(E).isSameOrAfter(Ee(S.max),"day"),W=ge(S,Os),te=(ae,ee,Y,M)=>o.html`<button
|
|
696
699
|
type="button"
|
|
697
|
-
aria-label=${
|
|
698
|
-
class=${
|
|
700
|
+
aria-label=${ee==="left"?e.locale.DateInput.prevDate:e.locale.DateInput.nextDate}
|
|
701
|
+
class=${V("moz-button","moz-icon-button","moz-icon-accent-button","moz-icon-text-button","date-move-btn",`date-move-btn--${ee}`,{"date-move-btn--disabled":Y})}
|
|
699
702
|
?disabled=${Y}
|
|
700
|
-
@click=${
|
|
703
|
+
@click=${M}
|
|
701
704
|
>
|
|
702
705
|
${ae}
|
|
703
|
-
</button>`;return
|
|
706
|
+
</button>`;return o.html`
|
|
704
707
|
<div
|
|
705
|
-
class=${
|
|
706
|
-
style=${le.styleMap({...Pe(
|
|
708
|
+
class=${V("moz-date-input-container",{disabled:S.disabled},S.class)}
|
|
709
|
+
style=${le.styleMap({...Pe(S.style),width:D})}
|
|
707
710
|
>
|
|
708
|
-
${
|
|
709
|
-
<div class="moz-date-input-wrapper" style="width:${
|
|
710
|
-
${
|
|
711
|
+
${S.label?Be({disabled:S.disabled},o.html`${S.label}${S.required?o.html`<span class="require-mark">*</span>`:o.nothing}`):o.nothing}
|
|
712
|
+
<div class="moz-date-input-wrapper" style="width:${D}">
|
|
713
|
+
${S.showSpin?te(qs("var(--moz-color-on-accent)","14",S.disabled||L),"left",L,v):o.nothing}
|
|
711
714
|
<div
|
|
712
|
-
class=${
|
|
715
|
+
class=${V("moz-date-input",{"moz-date-input--no-lr-border":S.showSpin,"moz-date-input--radius":!S.showSpin,"moz-date-input--disabled":S.disabled})}
|
|
713
716
|
@click=${p}
|
|
714
717
|
>
|
|
715
718
|
<input
|
|
716
719
|
.value=${E}
|
|
717
|
-
name=${xe.ifDefined(
|
|
718
|
-
?disabled=${
|
|
719
|
-
?readonly=${
|
|
720
|
-
class=${
|
|
721
|
-
${he(
|
|
722
|
-
@change=${
|
|
720
|
+
name=${xe.ifDefined(S.name)}
|
|
721
|
+
?disabled=${!!S.disabled}
|
|
722
|
+
?readonly=${!!S.readonly}
|
|
723
|
+
class=${V("moz-date-input__field",{"moz-date-input__field--disabled":S.disabled})}
|
|
724
|
+
${he(W)}
|
|
725
|
+
@change=${A}
|
|
723
726
|
/>
|
|
724
|
-
${
|
|
725
|
-
${Fs("currentColor",
|
|
727
|
+
${S.readonly?o.nothing:o.html`<div class="moz-date-input__icon-container">
|
|
728
|
+
${Fs("currentColor",V("moz-date-input__icon",{"moz-date-input__icon--disabled":S.disabled}))}
|
|
726
729
|
</div>`}
|
|
727
730
|
</div>
|
|
728
|
-
${
|
|
731
|
+
${S.showSpin?te(Is("var(--moz-color-on-accent)","14",S.disabled||K),"right",K,$):o.nothing}
|
|
729
732
|
</div>
|
|
730
733
|
</div>
|
|
731
|
-
`}}}}),
|
|
734
|
+
`}}}}),Hs={name:"MozDateInput",core:Zo,props:["label","name","width","required","disabled","readonly","format","showSpin","min","max","modelValue"],emits:["change","focus","focusOut","close","update:modelValue"],slots:[],expose:!1};function mt(e){return{10:{width:10,height:10},12:{width:12,height:12},14:{width:14,height:14},16:{width:16,height:16},18:{width:18,height:18},20:{width:20,height:20},22:{width:22,height:22},30:{width:30,height:30}}[e]??{width:12,height:12}}function Us(e="10",t="var(--moz-color-text-muted)",l=!1,n=!1,r=""){const d=mt(e),m=r||o.nothing;return d.width<=10?o.html`<svg class=${m} width=${d.width} height=${d.height} viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
732
735
|
<path d="M8.5 1.5L1.49999 8.50001" stroke=${t} stroke-width="1.75" stroke-linecap="round"></path>
|
|
733
736
|
<path d="M1.5 1.5L8.50001 8.50001" stroke=${t} stroke-width="1.75" stroke-linecap="round"></path>
|
|
734
|
-
</svg>`:d.width<=13&&d.width>=11&&!n?
|
|
737
|
+
</svg>`:d.width<=13&&d.width>=11&&!n?o.html`<svg class=${m} width=${d.width} height=${d.height} viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
735
738
|
<path d="M1.71436 1.71428L10.8069 10.7926" stroke=${t} stroke-width="2" stroke-linecap="round"></path>
|
|
736
739
|
<path d="M10.8069 1.71428L1.71436 10.7926" stroke=${t} stroke-width="2" stroke-linecap="round"></path>
|
|
737
|
-
</svg>`:d.width<=13&&d.width>=11&&n?
|
|
740
|
+
</svg>`:d.width<=13&&d.width>=11&&n?o.html`<svg class=${m} width=${d.width} height=${d.height} viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
738
741
|
<path d="M10.2 1.7998L1.79994 10.1998" stroke=${t} stroke-width="1.6" stroke-linecap="round"></path>
|
|
739
742
|
<path d="M1.79993 1.7998L10.1999 10.1998" stroke=${t} stroke-width="1.6" stroke-linecap="round"></path>
|
|
740
|
-
</svg>`:
|
|
743
|
+
</svg>`:o.html`<svg class=${m} width=${d.width} height=${d.height} viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
741
744
|
<g>
|
|
742
745
|
<g>
|
|
743
746
|
<path
|
|
744
747
|
fill-rule="evenodd"
|
|
745
748
|
clip-rule="evenodd"
|
|
746
749
|
d="M1.29234 1.29345C1.68256 0.902618 2.31572 0.902121 2.70655 1.29234L13.3146 11.8837C13.7054 12.2739 13.7059 12.9071 13.3157 13.2979C12.9254 13.6887 12.2923 13.6892 11.9014 13.299L1.29345 2.70766C0.902618 2.31744 0.902121 1.68428 1.29234 1.29345Z"
|
|
747
|
-
fill=${
|
|
750
|
+
fill=${l?"var(--moz-color-text-muted)":t}
|
|
748
751
|
></path>
|
|
749
752
|
<path
|
|
750
753
|
fill-rule="evenodd"
|
|
751
754
|
clip-rule="evenodd"
|
|
752
755
|
d="M13.3157 1.29345C13.7059 1.68428 13.7054 2.31744 13.3146 2.70766L2.70655 13.299C2.31572 13.6892 1.68256 13.6887 1.29234 13.2979C0.902121 12.9071 0.902618 12.2739 1.29345 11.8837L11.9014 1.29234C12.2923 0.902121 12.9254 0.902618 13.3157 1.29345Z"
|
|
753
|
-
fill=${
|
|
756
|
+
fill=${l?"var(--moz-color-text-muted)":t}
|
|
754
757
|
></path>
|
|
755
758
|
</g>
|
|
756
759
|
</g>
|
|
757
|
-
</svg>`}function
|
|
760
|
+
</svg>`}function Ns(e="30",t="var(--moz-color-danger)",l=""){const n=mt(e);return o.html`<svg class=${l||o.nothing} width=${n.width} height=${n.height} viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
758
761
|
<mask id="mask0_6027_4458" style="mask-type: luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="30" height="30">
|
|
759
762
|
<g><path d="M30 0H0V30H30V0Z" fill="#FFF"></path></g>
|
|
760
763
|
</mask>
|
|
@@ -766,7 +769,7 @@
|
|
|
766
769
|
></path>
|
|
767
770
|
</g>
|
|
768
771
|
</g>
|
|
769
|
-
</svg>`}function
|
|
772
|
+
</svg>`}function _s(e="30",t="var(--moz-color-accent)",l=""){const n=mt(e);return o.html`<svg class=${l||o.nothing} width=${n.width} height=${n.height} viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
770
773
|
<g>
|
|
771
774
|
<path
|
|
772
775
|
fill-rule="evenodd"
|
|
@@ -775,7 +778,7 @@
|
|
|
775
778
|
fill=${t}
|
|
776
779
|
></path>
|
|
777
780
|
</g>
|
|
778
|
-
</svg>`}function Ws(e="30",t="var(--moz-color-success)",
|
|
781
|
+
</svg>`}function Ws(e="30",t="var(--moz-color-success)",l=""){const n=mt(e);return o.html`<svg class=${l||o.nothing} width=${n.width} height=${n.height} viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
779
782
|
<g>
|
|
780
783
|
<path
|
|
781
784
|
fill-rule="evenodd"
|
|
@@ -784,7 +787,7 @@
|
|
|
784
787
|
fill=${t}
|
|
785
788
|
></path>
|
|
786
789
|
</g>
|
|
787
|
-
</svg>`}function Ks(e="30",t="var(--moz-color-warning)",
|
|
790
|
+
</svg>`}function Ks(e="30",t="var(--moz-color-warning)",l=""){const n=mt(e);return o.html`<svg class=${l||o.nothing} width=${n.width} height=${n.height} viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
788
791
|
<mask id="mask0_6027_4463" style="mask-type: luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="30" height="30">
|
|
789
792
|
<g><path d="M30 0H0V30H30V0Z" fill="#FFF"></path></g>
|
|
790
793
|
</mask>
|
|
@@ -796,47 +799,47 @@
|
|
|
796
799
|
></path>
|
|
797
800
|
</g>
|
|
798
801
|
</g>
|
|
799
|
-
</svg>`}const Gs=new Set(["title","minWidth","minHeight","maxWidth","maxHeight","draggable","resizeable","keepAspectRatio","disabledConfirmButton","showCloseButton","dialogClass","showHeader","closeOnOutsideClick","preset","dialogIcon","dialogMessage","onCancel","onBeforeClose","onBeforeUnload","onConfirm","onBeforeConfirm","loading","contentsPadding","class","style","useVShow","top","left","showFooterBorder","action","saveText","cancelText","okText","closeText","visible","width","height","focusTrap","lockScroll","side","showBackdrop","autoPosition","hideOthers"]);let ct=0,jo="";const Ys=()=>{ct===0&&(jo=document.body.style.overflow,document.body.style.overflow="hidden"),ct+=1},Zs=()=>{ct!==0&&(ct-=1,ct===0&&(document.body.style.overflow=jo))},js='a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])',Xo=we({name:"moz-popup",portal:!0,defaults:{title:"Popup",minWidth:300,minHeight:100,maxWidth:800,maxHeight:600,draggable:!0,resizeable:!1,keepAspectRatio:!1,disabledConfirmButton:!1,showCloseButton:!0,showHeader:!0,closeOnOutsideClick:!0,preset:"close",dialogIcon:"info",loading:!1,contentsPadding:"24px 16px",useVShow:!1,top:null,left:null,showFooterBorder:!0,focusTrap:!1,lockScroll:!1,showBackdrop:!0,autoPosition:!0,hideOthers:!1},setup(e){const t=
|
|
802
|
+
</svg>`}const Gs=new Set(["title","minWidth","minHeight","maxWidth","maxHeight","draggable","resizeable","keepAspectRatio","disabledConfirmButton","showCloseButton","dialogClass","showHeader","closeOnOutsideClick","preset","dialogIcon","dialogMessage","onCancel","onBeforeClose","onBeforeUnload","onConfirm","onBeforeConfirm","loading","contentsPadding","class","style","useVShow","top","left","showFooterBorder","action","saveText","cancelText","okText","closeText","visible","width","height","focusTrap","lockScroll","side","showBackdrop","autoPosition","hideOthers"]);let ct=0,jo="";const Ys=()=>{ct===0&&(jo=document.body.style.overflow,document.body.style.overflow="hidden"),ct+=1},Zs=()=>{ct!==0&&(ct-=1,ct===0&&(document.body.style.overflow=jo))},js='a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])',Xo=we({name:"moz-popup",portal:!0,defaults:{title:"Popup",minWidth:300,minHeight:100,maxWidth:800,maxHeight:600,draggable:!0,resizeable:!1,keepAspectRatio:!1,disabledConfirmButton:!1,showCloseButton:!0,showHeader:!0,closeOnOutsideClick:!0,preset:"close",dialogIcon:"info",loading:!1,contentsPadding:"24px 16px",useVShow:!1,top:null,left:null,showFooterBorder:!0,focusTrap:!1,lockScroll:!1,showBackdrop:!0,autoPosition:!0,hideOthers:!1},setup(e){const t=N.createRef(),l=N.createRef(),n=Xe("moz-popup-title-"),r=Xe("moz-popup-desc-");let d=null,m=e.props.visible??!1,s=e.props.width,i=e.props.height;const h=()=>e.controlled("visible")?!!e.props.visible:m,a=C=>{e.controlled("visible")||(m=C),e.emit("update:visible",C),e.requestUpdate()},u=()=>e.controlled("width")?e.props.width:s,p=C=>{e.controlled("width")||(s=C),e.emit("update:width",C),e.requestUpdate()},v=()=>e.controlled("height")?e.props.height:i,$=C=>{e.controlled("height")||(i=C),e.emit("update:height",C),e.requestUpdate()};let A=0,S=0,y=!1;const D=!0;let E=null;const L={mouseDown:!1,dragging:!1,offset:{x:0,y:0}};let K=h(),W=!1,te=!1,ae=null,ee=[];const Y=()=>{const C=t.value;if(C)for(const q of Array.from(document.body.children))q instanceof HTMLElement&&(q.contains(C)||q.getAttribute("aria-hidden")!=="true"&&(q.setAttribute("aria-hidden","true"),ee.push(q)))},M=()=>{for(const C of ee)C.removeAttribute("aria-hidden");ee=[]},G=()=>{const C=t.value;return C?Array.from(C.querySelectorAll(js)).filter(q=>q.getAttribute("aria-hidden")!=="true"):[]},ne=()=>{const C=document.querySelectorAll(".moz-popup");return C.length>0&&C[C.length-1]===t.value},oe=()=>{d||(d=Ot(()=>T()))},J=()=>{d==null||d.release(),d=null},U=()=>{W||(W=!0,oe(),e.props.lockScroll&&(Ys(),te=!0),e.props.focusTrap&&(ae=document.activeElement instanceof HTMLElement?document.activeElement:null,queueMicrotask(()=>{const C=t.value;!C||!h()||(G()[0]??C).focus()})),e.props.hideOthers&&queueMicrotask(()=>{h()&&Y()}))},b=()=>{if(J(),!W)return;W=!1,te&&(Zs(),te=!1),M();const C=ae;ae=null,C&&C.isConnected&&C.focus()},R=()=>{e.props.side||e.props.autoPosition===!1||queueMicrotask(()=>{const C=t.value;if(!C)return;const q=e.props;S=q.top!=null?q.top:window.innerHeight/2-C.offsetHeight/2,A=q.left!=null?q.left:window.innerWidth/2-C.offsetWidth/2,e.requestUpdate()})},_=()=>{!h()||e.props.side||e.props.autoPosition===!1||y||R()},k=()=>{h()||a(!0),e.emit("open"),R(),U()},z=async()=>{let C=!0;return e.props.onBeforeClose?C=await e.props.onBeforeClose()??!0:e.emit("close:before",C),C},T=async()=>{await z()&&h()&&(a(!1),e.props.onCancel?e.props.onCancel():e.emit("close"),e.emit("hidden"))},I=async()=>{let C=!0;return e.props.onBeforeConfirm?C=await e.props.onBeforeConfirm()??!0:e.emit("confirm:before",C),C},g=async()=>{await I()&&h()&&(a(!1),e.props.onConfirm?e.props.onConfirm():e.emit("confirm"),e.emit("hidden"))},B=()=>{e.props.onBeforeUnload&&e.props.onBeforeUnload()},Z=()=>{e.props.closeOnOutsideClick&&T()},X=C=>{C?k():(b(),B(),T())},ve=(C,q)=>{document.addEventListener("mouseup",C),document.addEventListener("mousemove",q)},De=(C,q)=>{document.removeEventListener("mouseup",C),document.removeEventListener("mousemove",q)},Ne=C=>{const q=A-C.clientX,Ce=S-C.clientY;L.mouseDown=!0,L.offset.x=q,L.offset.y=Ce,e.emit("drag-start")},Oe=C=>{e.props.draggable&&(C.clientX===0&&E&&(C=E),C&&C.clientX&&C.clientY&&(A=C.clientX+L.offset.x,S=C.clientY+L.offset.y,y=!0,e.requestUpdate()))},c=C=>{C.clientX!==0&&C.clientY!==0&&(E=C),L.mouseDown&&D&&(L.dragging=!0,Oe(C))},x=()=>{L.dragging&&e.emit("drag-end"),L.mouseDown=!1,setTimeout(()=>{L.dragging=!1,De(x,c)},100)},j=C=>{e.props.side||e.props.autoPosition===!1||(C.preventDefault(),ve(x,c),Ne(C))},re=C=>{C.preventDefault();const q=t.value;if(!q)return;const Ce=q.getBoundingClientRect(),Se=u()??Ce.width,ke=v()??Ce.height;if(!Se||!ke)return;const Te=Se/ke,Ae={x:C.clientX,y:C.clientY},_e=e.props,Qe=Je=>{let Ze=Je.clientX-Ae.x,f=Je.clientY-Ae.y;if(_e.keepAspectRatio){const Q=Ze/Te;Math.abs(f)>Math.abs(Q)?f=Q:Ze=f*Te}const O=Math.max(_e.minWidth,Math.min(Se+Ze,_e.maxWidth));let F=Math.max(_e.minHeight,Math.min(ke+f,_e.maxHeight));_e.keepAspectRatio&&O/F!==Te&&(F=O/Te),p(O),$(F)},ot=()=>{document.removeEventListener("mousemove",Qe),document.removeEventListener("mouseup",ot)};document.addEventListener("mousemove",Qe),document.addEventListener("mouseup",ot)},de=C=>{if(C.key==="Tab"&&e.props.focusTrap&&h()&&ne()){if(d&&!d.isTopmost())return;const q=t.value;if(!q)return;const Ce=G();if(Ce.length===0){C.preventDefault(),q.focus();return}const Se=Ce[0],ke=Ce[Ce.length-1],Te=document.activeElement,Ae=Te instanceof Node&&q.contains(Te);C.shiftKey?(!Ae||Te===Se||Te===q)&&(C.preventDefault(),ke.focus()):(!Ae||Te===ke)&&(C.preventDefault(),Se.focus());return}};e.onCleanup(()=>{b(),window.removeEventListener("keydown",de),window.removeEventListener("resize",_),B(),window.removeEventListener("unload",B),De(x,c)});const $e=()=>{const C=e.props;if(C.action)return C.action;const q=e.locale.Popup;switch(C.preset){case"save":return{positive:C.saveText??q.save,negative:C.cancelText??q.cancel};case"check":return{positive:C.okText??q.ok};case"close":return{negative:C.closeText??q.close};case"confirm":default:return{positive:C.okText??q.ok,negative:C.cancelText??q.cancel}}},be=C=>{switch(C){case"error":return Ns("30","var(--moz-color-danger)","dialog-icon");case"info":return _s("30","var(--moz-color-accent)","dialog-icon");case"success":return Ws("30","var(--moz-color-success)","dialog-icon");case"warning":return Ks("30","var(--moz-color-warning)","dialog-icon");default:return o.nothing}};return{api:{resetPosition:R},onMounted:()=>{window.addEventListener("keydown",de),window.addEventListener("resize",_),window.addEventListener("unload",B),queueMicrotask(()=>e.emit("init",l.value??null)),h()&&(R(),U())},render(){const C=e.props,q=h();if(q!==K){const fe=q;K=q,fe?oe():J(),queueMicrotask(()=>X(fe))}if(!(C.useVShow?!0:q))return o.nothing;const Se=C.useVShow?!q:!1,ke=u(),Te=v(),Ae=C.side,_e=!!Ae||C.autoPosition===!1,Qe={...Pe(C.style),...ke?{width:`${Le(ke)}rem`}:{},...Te?{height:`${Le(Te)}rem`}:{},..._e?{}:{left:`${Le(A)}rem`,top:`${Le(S)}rem`}},ot=!!C.draggable&&!_e,Je=!!C.resizeable&&!Ae,Ze=typeof C.contentsPadding=="number"?`${Le(C.contentsPadding)}rem`:C.contentsPadding,f=$e(),O=ge(C,Gs),F=e.slots.has("title")?e.slot("title"):o.html`<span class="truncate">${C.title}</span>`,Q=e.slots.has("description"),se=e.slots.has("default")?e.slot("default"):o.html`<div class="moz-dialog-body">
|
|
800
803
|
${be(C.dialogIcon)}
|
|
801
|
-
<div class="dialog-message">${C.dialogMessage!=null?Eo.unsafeHTML(C.dialogMessage):
|
|
802
|
-
</div>`,ue=e.slots.has("footer")?e.slot("footer",{onConfirm:g,onCancel:
|
|
803
|
-
${f.positive?at({class:"preset-btn",loading:C.loading,disabled:C.disabledConfirmButton,style:"min-width: 80px"},{onClick:g,content:f.positive}):
|
|
804
|
-
${f.negative?at({class:"preset-btn",type:"outline",disabled:C.loading,style:"min-width: 80px"},{onClick:
|
|
805
|
-
`;return
|
|
804
|
+
<div class="dialog-message">${C.dialogMessage!=null?Eo.unsafeHTML(C.dialogMessage):o.nothing}</div>
|
|
805
|
+
</div>`,ue=e.slots.has("footer")?e.slot("footer",{onConfirm:g,onCancel:T}):o.html`
|
|
806
|
+
${f.positive?at({class:"preset-btn",loading:C.loading,disabled:C.disabledConfirmButton,style:"min-width: 80px"},{onClick:g,content:f.positive}):o.nothing}
|
|
807
|
+
${f.negative?at({class:"preset-btn",type:"outline",disabled:C.loading,style:"min-width: 80px"},{onClick:T,content:f.negative}):o.nothing}
|
|
808
|
+
`;return o.html`
|
|
806
809
|
<div
|
|
807
|
-
class=${
|
|
810
|
+
class=${V("moz-popup-container",C.class,Ae?`moz-popup-side moz-popup-side-${Ae}`:null,C.showBackdrop===!1?"moz-popup-no-backdrop":null)}
|
|
808
811
|
style=${xe.ifDefined(Se?"display: none;":void 0)}
|
|
809
812
|
>
|
|
810
|
-
${C.showBackdrop===!1?
|
|
813
|
+
${C.showBackdrop===!1?o.nothing:o.html`<div class="moz-popup-backdrop" aria-hidden="true" @click=${Z}></div>`}
|
|
811
814
|
<div
|
|
812
|
-
class=${
|
|
815
|
+
class=${V("moz-popup",C.dialogClass)}
|
|
813
816
|
role="dialog"
|
|
814
817
|
aria-modal="true"
|
|
815
818
|
aria-labelledby=${xe.ifDefined(C.showHeader===!1?void 0:n)}
|
|
816
|
-
aria-describedby=${xe.ifDefined(
|
|
819
|
+
aria-describedby=${xe.ifDefined(Q?r:void 0)}
|
|
817
820
|
tabindex=${xe.ifDefined(C.focusTrap?"-1":void 0)}
|
|
818
821
|
style=${le.styleMap(Qe)}
|
|
819
|
-
${
|
|
820
|
-
${he(
|
|
822
|
+
${N.ref(t)}
|
|
823
|
+
${he(O)}
|
|
821
824
|
>
|
|
822
|
-
${C.showHeader===!1?
|
|
825
|
+
${C.showHeader===!1?o.nothing:o.html`<div
|
|
823
826
|
id=${n}
|
|
824
|
-
class=${
|
|
825
|
-
@mousedown=${
|
|
826
|
-
@touchstart=${
|
|
827
|
+
class=${V("moz-popup-title",{draggable:ot})}
|
|
828
|
+
@mousedown=${j}
|
|
829
|
+
@touchstart=${j}
|
|
827
830
|
>
|
|
828
|
-
${
|
|
829
|
-
${C.showCloseButton?at({type:"icon",class:"close-button","aria-label":e.locale.Popup.close},{onClick:
|
|
831
|
+
${F}
|
|
832
|
+
${C.showCloseButton?at({type:"icon",class:"close-button","aria-label":e.locale.Popup.close},{onClick:T,icon:Us("14","var(--moz-color-text-subtle)")}):o.nothing}
|
|
830
833
|
</div>`}
|
|
831
|
-
${
|
|
832
|
-
<div class="moz-popup-body" style=${le.styleMap({padding:Ze})} ${
|
|
833
|
-
${C.preset!=="no-footer"?
|
|
834
|
+
${Q?o.html`<div id=${r} class="moz-popup-description">${e.slot("description")}</div>`:o.nothing}
|
|
835
|
+
<div class="moz-popup-body" style=${le.styleMap({padding:Ze})} ${N.ref(l)}>${se}</div>
|
|
836
|
+
${C.preset!=="no-footer"?o.html`<div class=${V("moz-popup-footer",{"with-border":C.showFooterBorder})}>
|
|
834
837
|
${ue}
|
|
835
|
-
</div>`:
|
|
836
|
-
${Je?
|
|
838
|
+
</div>`:o.nothing}
|
|
839
|
+
${Je?o.html`<div class="resize-handler" @mousedown=${re}></div>`:o.nothing}
|
|
837
840
|
</div>
|
|
838
841
|
</div>
|
|
839
|
-
`}}}}),Xs={name:"MozPopup",core:Xo,props:["title","minWidth","minHeight","maxWidth","maxHeight","draggable","resizeable","keepAspectRatio","disabledConfirmButton","showCloseButton","closeOnOutsideClick","preset","dialogIcon","dialogMessage","onCancel","onBeforeClose","onBeforeUnload","onConfirm","onBeforeConfirm","loading","contentsPadding","useVShow","top","left","showFooterBorder","action","saveText","cancelText","okText","closeText","visible","width","height","focusTrap","lockScroll","side","showBackdrop","autoPosition","hideOthers","dialogClass","showHeader"],emits:["open","close","close:before","confirm","confirm:before","drag-start","drag-end","hidden","init","update:visible","update:width","update:height"],slots:["title","default","footer","description"],expose:!0,syncUpdate:!0};function Mt(e,t=12){return{10:{width:10,height:10},12:{width:12,height:12},14:{width:14,height:14},16:{width:16,height:16},18:{width:18,height:18},20:{width:20,height:20},22:{width:22,height:22},30:{width:30,height:30}}[e]??{width:t,height:t}}function Qt(e="12",t="var(--moz-color-text-subtle)",
|
|
842
|
+
`}}}}),Xs={name:"MozPopup",core:Xo,props:["title","minWidth","minHeight","maxWidth","maxHeight","draggable","resizeable","keepAspectRatio","disabledConfirmButton","showCloseButton","closeOnOutsideClick","preset","dialogIcon","dialogMessage","onCancel","onBeforeClose","onBeforeUnload","onConfirm","onBeforeConfirm","loading","contentsPadding","useVShow","top","left","showFooterBorder","action","saveText","cancelText","okText","closeText","visible","width","height","focusTrap","lockScroll","side","showBackdrop","autoPosition","hideOthers","dialogClass","showHeader"],emits:["open","close","close:before","confirm","confirm:before","drag-start","drag-end","hidden","init","update:visible","update:width","update:height"],slots:["title","default","footer","description"],expose:!0,syncUpdate:!0};function Mt(e,t=12){return{10:{width:10,height:10},12:{width:12,height:12},14:{width:14,height:14},16:{width:16,height:16},18:{width:18,height:18},20:{width:20,height:20},22:{width:22,height:22},30:{width:30,height:30}}[e]??{width:t,height:t}}function Qt(e="12",t="var(--moz-color-text-subtle)",l=!1,n=""){const r=Mt(e),d=l?"var(--moz-color-text-muted)":t;return o.html`<svg class=${n||o.nothing} xmlns="http://www.w3.org/2000/svg" width=${r.width} height=${r.height} viewBox="0 0 16 16">
|
|
840
843
|
<g style=${`fill: ${d}`}>
|
|
841
844
|
<path
|
|
842
845
|
d="M836.533 699.734h-.022a.928.928 0 0 1-.716-.336l-3.779-4.535a.926.926 0 0 1-.212-.68.93.93 0 0 1 1.643-.512l3.026 3.63 6.096-8.128a.922.922 0 0 1 .745-.373c.202 0 .396.064.559.186.199.15.328.367.363.614a.925.925 0 0 1-.177.69l-6.803 9.071a.928.928 0 0 1-.721.373h-.002z"
|
|
@@ -849,31 +852,31 @@
|
|
|
849
852
|
transform="translate(-829.971 -686.318)"
|
|
850
853
|
></path>
|
|
851
854
|
</g>
|
|
852
|
-
</svg>`}function Jt(e="14",t="var(--moz-color-text-subtle)",
|
|
855
|
+
</svg>`}function Jt(e="14",t="var(--moz-color-text-subtle)",l=!1){const n=Mt(e,14);return o.html`<svg xmlns="http://www.w3.org/2000/svg" width=${n.width} height=${n.height} viewBox="0 0 14 14" fill="none">
|
|
853
856
|
<path
|
|
854
857
|
fill-rule="evenodd"
|
|
855
858
|
clip-rule="evenodd"
|
|
856
859
|
d="M4.28543 4.37082C4.63291 4.01541 5.20272 4.00898 5.55814 4.35646L9.05717 7.77743L12.4606 4.36449C12.8116 4.01253 13.3815 4.01174 13.7334 4.36272C14.0854 4.7137 14.0862 5.28355 13.7352 5.63551L9.70247 9.67945C9.35394 10.029 8.78895 10.0325 8.43602 9.68748L4.29979 5.64353C3.94437 5.29605 3.93794 4.72624 4.28543 4.37082Z"
|
|
857
|
-
fill=${
|
|
860
|
+
fill=${l?"var(--moz-color-text-muted)":t}
|
|
858
861
|
></path>
|
|
859
|
-
</svg>`}function eo(e="14",t="var(--moz-color-text-subtle)",
|
|
862
|
+
</svg>`}function eo(e="14",t="var(--moz-color-text-subtle)",l=!1){const n=Mt(e,14);return o.html`<svg xmlns="http://www.w3.org/2000/svg" width=${n.width} height=${n.height} viewBox="0 0 14 14" fill="none">
|
|
860
863
|
<path
|
|
861
864
|
fill-rule="evenodd"
|
|
862
865
|
clip-rule="evenodd"
|
|
863
866
|
d="M13.7433 9.67312C13.3958 10.0285 12.826 10.035 12.4705 9.68748L8.97152 6.26652L5.56806 9.67946C5.21708 10.0314 4.64723 10.0322 4.29527 9.68123C3.94331 9.33024 3.94252 8.7604 4.2935 8.40844L8.32621 4.36449C8.67474 4.01499 9.23974 4.01141 9.59267 4.35647L13.7289 8.40041C14.0843 8.7479 14.0907 9.31771 13.7433 9.67312Z"
|
|
864
|
-
fill=${
|
|
867
|
+
fill=${l?"var(--moz-color-text-muted)":t}
|
|
865
868
|
></path>
|
|
866
|
-
</svg>`}function to(e="12",t="var(--moz-color-text-subtle)",
|
|
869
|
+
</svg>`}function to(e="12",t="var(--moz-color-text-subtle)",l=!1){const n=Mt(e),r=l?"var(--moz-color-text-muted)":t;return n.width<=13?o.html`<svg xmlns="http://www.w3.org/2000/svg" width=${n.width} height=${n.height} viewBox="0 0 12 12" fill="none">
|
|
867
870
|
<path
|
|
868
871
|
d="M10.293 11.375L7.71099 8.79103C6.76581 9.4655 5.60162 9.76002 4.44941 9.61616C3.29719 9.4723 2.24116 8.90058 1.49082 8.01442C0.740489 7.12825 0.350682 5.99242 0.398745 4.83225C0.446808 3.67209 0.929227 2.57239 1.75029 1.75133C2.57135 0.930264 3.67106 0.447845 4.83122 0.399783C5.99138 0.35172 7.12722 0.741526 8.01338 1.49186C8.89954 2.2422 9.47126 3.29823 9.61512 4.45044C9.75898 5.60265 9.46446 6.76684 8.78999 7.71203L11.373 10.294C11.5163 10.4374 11.5969 10.6318 11.5969 10.8345C11.5969 11.0373 11.5163 11.2317 11.373 11.375C11.2296 11.5184 11.0352 11.5989 10.8325 11.5989C10.6298 11.5989 10.4363 11.5184 10.293 11.375ZM1.92899 5.02703C1.92899 5.64015 2.1108 6.2395 2.45144 6.7493C2.79207 7.25909 3.27622 7.65642 3.84267 7.89106C4.40912 8.12569 5.03243 8.18708 5.63377 8.06746C6.23511 7.94785 6.78748 7.6526 7.22102 7.21906C7.65457 6.78552 7.94981 6.23315 8.06943 5.63181C8.18904 5.03047 8.12765 4.40716 7.89302 3.84071C7.65839 3.27426 7.26105 2.79011 6.75126 2.44947C6.24147 2.10884 5.64211 1.92703 5.02899 1.92703C4.20682 1.92703 3.41832 2.25364 2.83696 2.835C2.2556 3.41636 1.92899 4.20486 1.92899 5.02703Z"
|
|
869
872
|
fill=${r}
|
|
870
873
|
></path>
|
|
871
|
-
</svg>`:
|
|
874
|
+
</svg>`:o.html`<svg xmlns="http://www.w3.org/2000/svg" width=${n.width} height=${n.height} viewBox="0 0 14 14" fill="none">
|
|
872
875
|
<path
|
|
873
876
|
d="M5.84944 0.402344C2.83893 0.402344 0.398438 2.84284 0.398438 5.85334C0.398438 8.86385 2.83893 11.3043 5.84944 11.3043C7.0308 11.3043 8.12438 10.9285 9.01716 10.29L12.0619 13.3347C12.4134 13.6862 12.9832 13.6862 13.3347 13.3347C13.6862 12.9832 13.6862 12.4134 13.3347 12.0619L10.2893 9.01651C10.9259 8.12457 11.3004 7.03269 11.3004 5.85334C11.3004 2.84284 8.85994 0.402344 5.84944 0.402344ZM2.19844 5.85334C2.19844 3.83695 3.83305 2.20234 5.84944 2.20234C7.86583 2.20234 9.50044 3.83695 9.50044 5.85334C9.50044 7.86974 7.86583 9.50434 5.84944 9.50434C3.83305 9.50434 2.19844 7.86974 2.19844 5.85334Z"
|
|
874
877
|
fill=${r}
|
|
875
878
|
></path>
|
|
876
|
-
</svg>`}const ao=250,gt=24,Qs=new Set(["itemsSource","label","width","required","readonly","disabled","keyProp","displayProp","rules","useObjBinding","useFilter","listWidth","placeholder","searchPlaceholder","emptyText","requiredMessage","modelValue","class","style"]);function Js(e,t){let
|
|
879
|
+
</svg>`}const ao=250,gt=24,Qs=new Set(["itemsSource","label","width","required","readonly","disabled","keyProp","displayProp","rules","useObjBinding","useFilter","listWidth","placeholder","searchPlaceholder","emptyText","requiredMessage","modelValue","class","style"]);function Js(e,t){let l;return(...n)=>{l&&clearTimeout(l),l=setTimeout(()=>e(...n),t)}}function en(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const Qo=we({name:"moz-select",defaults:{label:null,width:200,required:!1,readonly:!1,disabled:!1,keyProp:"id",displayProp:"text",rules:[],useObjBinding:!1,useFilter:!0,listWidth:100,modelValue:null},setup(e){const t=N.createRef(),l=N.createRef(),n=N.createRef(),r=N.createRef(),d=N.createRef(),m=N.createRef();let s=null,i=e.props.modelValue??null;const h=()=>e.controlled("modelValue")?e.props.modelValue??null:i,a=c=>{e.controlled("modelValue")||(i=c),e.emit("update:modelValue",c),e.requestUpdate()};let u=!1,p="";const v=Xe("moz-select-listbox-"),$={change:"",blur:"",save:""};let A=h();const S=()=>e.props.keyProp||"id",y=new Fe.Virtualizer({count:0,getScrollElement:()=>s,estimateSize:()=>gt,measureElement:c=>c.getBoundingClientRect().height,overscan:5,observeElementRect:Fe.observeElementRect,observeElementOffset:Fe.observeElementOffset,scrollToFn:Fe.elementScroll,onChange:()=>e.requestUpdate()});e.onCleanup(()=>{U==null||U.release(),U=null}),e.onCleanup(y._didMount());const D=c=>{s=c??null,c&&(y._willUpdate(),e.requestUpdate())},E=c=>e.props.itemsSource?e.props.itemsSource.find(j=>j[S()]===c)??null:null,L=c=>c?typeof e.props.displayProp=="function"?e.props.displayProp(c):typeof c=="object"?c[e.props.displayProp]:String(c):"",K=()=>{const c=h();if(!c&&isNaN(Number(c)))return null;const x=e.props.useObjBinding?c:E(c);return x?typeof e.props.displayProp=="function"?e.props.displayProp(x):x[e.props.displayProp]:null},W=()=>{if(!p)return e.props.itemsSource??[];const c=p.toLowerCase();return(e.props.itemsSource??[]).filter(x=>L(x).toLowerCase().indexOf(c)>-1)},te=c=>{if(!p)return[{part:c,highlight:!1}];const x=en(p),j=new RegExp(`(${x})`,"gi");return c.split(j).map(re=>({part:re,highlight:p.toLowerCase()===re.toLowerCase()}))},ae=()=>$.save||$.blur||$.change,ee=()=>{const c=[];return e.props.required&&c.push({message:e.props.requiredMessage??e.locale.Select.requiredMessage.replace("{label}",e.props.label||""),type:"save",validator:x=>!!x}),[...c,...e.props.rules??[]]},Y=async(c,x)=>{const j=ee();if(j.length<=0||e.props.disabled)return!0;$[x]="",e.requestUpdate();const re=j.filter(de=>de.type===x);for(const de of re)if(!await de.validator(c))return $[x]=de.message,e.requestUpdate(),!1;return!0},M=async(c="save")=>ae()!==""?!1:await Y(h(),c),G={validate:M,initValidator:()=>{$.change="",$.blur="",$.save="",e.requestUpdate()}};e.validator&&(e.validator.addValidator(G),e.onCleanup(()=>{var c;return(c=e.validator)==null?void 0:c.removeValidator(G)}));const ne=new pt({anchor:()=>l.value??null,panel:()=>n.value??null,maxHeight:()=>ao,container:()=>t.value??null,useMinWidth:!0,listWidth:()=>e.props.listWidth,ignoreScrollTargets:c=>c===s,requestClose:()=>{u&&b(!1)}});e.onCleanup(()=>ne.destroy());const oe=c=>{`${c.ctrlKey?"ctrl+":""}${c.altKey?"alt+":""}${c.key.toLowerCase()}`==="escape"&&b(!1)},J=c=>{const j=gt*c-ao/2;return Math.max(0,j+gt)};let U=null;const b=c=>{u!==c&&(u=c,e.requestUpdate(),c?(U=ht(),ne.open(),$.save="",window.addEventListener("keydown",oe),queueMicrotask(()=>{var j;const x=h();if(x&&s){const re=(e.props.itemsSource??[]).findIndex(de=>de[S()]===x);s.scrollTop=J(re)}m.value?m.value.focus():(j=d.value)==null||j.focus()})):(U==null||U.release(),U=null,ne.close(),e.emit("close"),Y(h(),"blur"),window.removeEventListener("keydown",oe),p="",e.emit("close"),queueMicrotask(()=>{var x;return(x=d.value)==null?void 0:x.focus()})))},R=()=>{var c;e.props.disabled||(b(!u),(c=d.value)==null||c.focus())},_=c=>{var x;a(c),b(!1),(x=d.value)==null||x.focus()},k=Js(c=>{p=c.target.value,e.requestUpdate(),queueMicrotask(()=>{const x=W().length;y.setOptions({...y.options,count:x}),y.measure(),s&&(s.scrollTop=0,y.scrollToIndex(0),y.measure())})},300),z=c=>{var x;if(u){c.stopPropagation(),c.preventDefault();const j=m.value??((x=r.value)==null?void 0:x.querySelector("div:first-child"));j==null||j.focus()}},T=c=>{var $e,be,C;const x=(($e=n.value)==null?void 0:$e.querySelectorAll('[tabindex="0"]'))??[],j=[...Array.from(x)];m.value&&j.unshift(m.value);const re=j[0],de=j[j.length-1];(c.target===re||c.target===de)&&d.value&&(c.target===re&&c.shiftKey?(c.stopPropagation(),c.preventDefault(),(be=d.value)==null||be.focus()):c.target===de&&!c.shiftKey&&(c.stopPropagation(),c.preventDefault(),(C=d.value)==null||C.focus()))},I=c=>{s&&(c.shiftKey?s.scrollTop-=24:s.scrollTop+=24)},g=()=>{var x;const c=Array.from(((x=n.value)==null?void 0:x.querySelectorAll('[tabindex="0"]'))??[]);return m.value&&!c.includes(m.value)&&c.unshift(m.value),c},B=c=>{var de;const x=g();if(x.length===0)return;const j=x.indexOf(document.activeElement),re=j<0?c>0?0:x.length-1:Math.min(x.length-1,Math.max(0,j+c));(de=x[re])==null||de.focus()},Z=c=>c.find(x=>x.getAttribute("aria-selected")==="true")??null,X=c=>{b(!0),queueMicrotask(()=>queueMicrotask(()=>{if(m.value)return;const x=g();x.length!==0&&(Z(x)??x[c<0?x.length-1:0]).focus()}))},ve=()=>{var c;b(!1),(c=d.value)==null||c.focus()},De=c=>{if(c.key==="Tab"){z(c);return}if(c.key==="Enter"||c.key===" "){u||(c.preventDefault(),c.stopPropagation(),X(1));return}if(c.key==="ArrowDown"||c.key==="ArrowUp"){c.preventDefault(),c.stopPropagation();const x=c.key==="ArrowDown"?1:-1;u?B(x):X(x);return}c.key==="Escape"&&u&&(c.preventDefault(),ve())},Ne=c=>{if(c.key==="Tab"){T(c);return}if(c.key==="ArrowDown"||c.key==="ArrowUp"){c.preventDefault(),B(c.key==="ArrowDown"?1:-1);return}c.key==="Escape"&&(c.preventDefault(),ve())},Oe=(c,x)=>{if(c.key==="Tab"){I(c);return}if(c.key==="ArrowDown"||c.key==="ArrowUp"){c.preventDefault(),c.stopPropagation(),B(c.key==="ArrowDown"?1:-1);return}if(c.key==="Escape"){c.preventDefault(),c.stopPropagation(),ve();return}(c.key==="Enter"||c.key===" ")&&_(x)};return{api:{validate:M},render(){const c=e.props,x=h();if(x!==A){A=x;const Ce=x;queueMicrotask(()=>{Y(Ce,"change"),e.emit("change",c.useObjBinding?Ce:Ce&&Ce[S()],Ce)})}const j=typeof c.width=="number"?`${Le(c.width)}rem`:c.width,re=ge(c,Qs),{aria:de,dom:$e}=ut(re),be=e.slots.has("icon")?e.slot("icon",{isOpen:u}):u?eo("14","var(--moz-color-accent)"):Jt("14","var(--moz-color-text-subtle)",c.disabled),C=o.html`<button
|
|
877
880
|
type="button"
|
|
878
881
|
class="icon-container"
|
|
879
882
|
${he(de)}
|
|
@@ -883,162 +886,162 @@
|
|
|
883
886
|
aria-controls=${v}
|
|
884
887
|
aria-label=${xe.ifDefined(de["aria-label"]??c.label??void 0)}
|
|
885
888
|
@keydown=${De}
|
|
886
|
-
${
|
|
889
|
+
${N.ref(d)}
|
|
887
890
|
?disabled=${!!c.disabled}
|
|
888
891
|
>
|
|
889
892
|
${be}
|
|
890
|
-
</button>`,q=e.slots.has("input-container")?
|
|
893
|
+
</button>`,q=e.slots.has("input-container")?o.html`<div
|
|
891
894
|
class="moz-input-container select-input-container"
|
|
892
|
-
style=${le.styleMap({width:
|
|
893
|
-
@click=${
|
|
894
|
-
${
|
|
895
|
+
style=${le.styleMap({width:j})}
|
|
896
|
+
@click=${R}
|
|
897
|
+
${N.ref(l)}
|
|
895
898
|
>
|
|
896
899
|
<div
|
|
897
|
-
class=${
|
|
900
|
+
class=${V("input-container-wrapper",{"input-container-wrapper--disabled":c.disabled})}
|
|
898
901
|
>
|
|
899
|
-
${e.slot("input-container",{text:
|
|
902
|
+
${e.slot("input-container",{text:K(),item:x})}
|
|
900
903
|
</div>
|
|
901
904
|
${C}
|
|
902
|
-
</div>`:
|
|
905
|
+
</div>`:o.html`<div
|
|
903
906
|
class="moz-input-container select-input-container"
|
|
904
|
-
style=${le.styleMap({width:
|
|
905
|
-
@click=${
|
|
906
|
-
${
|
|
907
|
+
style=${le.styleMap({width:j})}
|
|
908
|
+
@click=${R}
|
|
909
|
+
${N.ref(l)}
|
|
907
910
|
>
|
|
908
911
|
<input
|
|
909
912
|
${he($e)}
|
|
910
|
-
.value=${
|
|
913
|
+
.value=${K()??""}
|
|
911
914
|
placeholder=${xe.ifDefined(c.placeholder??void 0)}
|
|
912
915
|
autocomplete="off"
|
|
913
916
|
?disabled=${!!c.disabled}
|
|
914
917
|
readonly
|
|
915
918
|
tabindex="-1"
|
|
916
|
-
class=${
|
|
919
|
+
class=${V("select-display-input",{"select-display-input--disabled":c.disabled})}
|
|
917
920
|
/>
|
|
918
921
|
${e.slot("input")}
|
|
919
922
|
${C}
|
|
920
|
-
</div>`;return
|
|
923
|
+
</div>`;return o.html`
|
|
921
924
|
<div
|
|
922
|
-
class=${
|
|
925
|
+
class=${V("moz-select",{"is-invalid":ae()!=="","is-open":u,disabled:!!c.disabled},c.class)}
|
|
923
926
|
style=${le.styleMap(Pe(c.style))}
|
|
924
|
-
${
|
|
927
|
+
${N.ref(t)}
|
|
925
928
|
>
|
|
926
929
|
<div class="input-wrapper">
|
|
927
|
-
${c.label?Be({disabled:c.disabled,required:c.required},c.label):
|
|
930
|
+
${c.label?Be({disabled:c.disabled,required:c.required},c.label):o.nothing}
|
|
928
931
|
${q}
|
|
929
932
|
</div>
|
|
930
933
|
|
|
931
|
-
${ae()!==""?
|
|
934
|
+
${ae()!==""?o.html`<span class="moz-input-invalid-message">${ae()}</span>`:o.nothing}
|
|
932
935
|
</div>
|
|
933
|
-
`},renderPortal(){if(!u)return
|
|
934
|
-
class=${
|
|
935
|
-
@keydown=${
|
|
936
|
-
${
|
|
936
|
+
`},renderPortal(){if(!u)return o.nothing;const c=e.props,x=h(),j=S(),re=W();y.options.count!==re.length&&y.setOptions({...y.options,count:re.length}),y._willUpdate();const de=Tt(y.getVirtualItems(),re.length,gt,s),$e=y.getTotalSize(),be=de.map(C=>{if(C.index>=re.length)return null;const q=re[C.index];return q?{index:C.index,value:q,size:C.size,start:C.start}:null}).filter(C=>C!==null);return o.html`<div
|
|
937
|
+
class=${V("list-box",{"no-label":!c.label})}
|
|
938
|
+
@keydown=${Ne}
|
|
939
|
+
${N.ref(n)}
|
|
937
940
|
>
|
|
938
|
-
${c.useFilter?
|
|
941
|
+
${c.useFilter?o.html`<div class="filter-input">
|
|
939
942
|
<input
|
|
940
|
-
${
|
|
943
|
+
${N.ref(m)}
|
|
941
944
|
@mousedown=${C=>C.stopPropagation()}
|
|
942
945
|
placeholder=${c.searchPlaceholder??e.locale.Select.searchPlaceholder}
|
|
943
946
|
@input=${k}
|
|
944
947
|
class="filter-input__field"
|
|
945
948
|
/>
|
|
946
949
|
<div class="search-icon">${to("12","var(--moz-color-text-subtle)")}</div>
|
|
947
|
-
</div>`:
|
|
950
|
+
</div>`:o.nothing}
|
|
948
951
|
<div
|
|
949
952
|
id=${v}
|
|
950
953
|
role="listbox"
|
|
951
|
-
class=${
|
|
952
|
-
${
|
|
954
|
+
class=${V("list-box-container",{"list-box-container--with-filter":c.useFilter})}
|
|
955
|
+
${N.ref(D)}
|
|
953
956
|
>
|
|
954
|
-
<div class="inner-container" style=${le.styleMap({height:`${$e}px`})} ${
|
|
955
|
-
${be.map(({index:C,value:q,start:Ce})=>{const Se=c.useObjBinding?q&&x&&q[
|
|
957
|
+
<div class="inner-container" style=${le.styleMap({height:`${$e}px`})} ${N.ref(r)}>
|
|
958
|
+
${be.map(({index:C,value:q,start:Ce})=>{const Se=c.useObjBinding?q&&x&&q[j]===x[j]:q[j]===x;return o.html`<div
|
|
956
959
|
data-index=${C}
|
|
957
960
|
role="option"
|
|
958
961
|
aria-selected=${Se?"true":"false"}
|
|
959
|
-
${
|
|
962
|
+
${N.ref(ke=>{ke&&y.measureElement(ke)})}
|
|
960
963
|
style=${le.styleMap({transform:`translateY(${Ce}px)`})}
|
|
961
|
-
class=${
|
|
962
|
-
@click=${()=>
|
|
964
|
+
class=${V("list-box-item virtual-row",{"list-selected":q[j]===x})}
|
|
965
|
+
@click=${()=>_(c.useObjBinding?q:q[j])}
|
|
963
966
|
tabindex="0"
|
|
964
|
-
@keydown=${ke=>
|
|
967
|
+
@keydown=${ke=>Oe(ke,c.useObjBinding?q:q[j])}
|
|
965
968
|
>
|
|
966
|
-
${e.slots.has("list-item")?e.slot("list-item",{text:L(q),item:q,index:C,highlightText:
|
|
967
|
-
${
|
|
969
|
+
${e.slots.has("list-item")?e.slot("list-item",{text:L(q),item:q,index:C,highlightText:te(L(q))}):o.html`<div class="highlight-container" title=${L(q)}>
|
|
970
|
+
${te(L(q)).map(ke=>o.html`<span class=${V({highlight:ke.highlight})}>${ke.part}</span>`)}
|
|
968
971
|
</div>`}
|
|
969
|
-
${Se?Qt("12","var(--moz-color-accent)",!1,"icon-check"):
|
|
972
|
+
${Se?Qt("12","var(--moz-color-accent)",!1,"icon-check"):o.nothing}
|
|
970
973
|
</div>`})}
|
|
971
974
|
</div>
|
|
972
975
|
|
|
973
|
-
${!re||re.length<=0?
|
|
976
|
+
${!re||re.length<=0?o.html`<div class="list-box-item loading not-hover">
|
|
974
977
|
${e.slots.has("empty")?e.slot("empty"):c.emptyText??e.locale.Select.emptyText}
|
|
975
|
-
</div>`:
|
|
978
|
+
</div>`:o.nothing}
|
|
976
979
|
</div>
|
|
977
|
-
</div>`}}}}),tn={name:"MozSelect",core:Qo,props:["itemsSource","label","width","required","readonly","disabled","keyProp","displayProp","rules","useObjBinding","useFilter","listWidth","placeholder","searchPlaceholder","emptyText","requiredMessage","modelValue"],emits:["change","close","update:modelValue"],slots:["input-container","input","icon","list-item","empty"],expose:!0};function oo(e,t=12){return{10:{width:10,height:10},12:{width:12,height:12},14:{width:14,height:14},16:{width:16,height:16},18:{width:18,height:18},20:{width:20,height:20},22:{width:22,height:22},30:{width:30,height:30}}[e]??{width:t,height:t}}function on(e="14",t="var(--moz-color-text-subtle)",
|
|
980
|
+
</div>`}}}}),tn={name:"MozSelect",core:Qo,props:["itemsSource","label","width","required","readonly","disabled","keyProp","displayProp","rules","useObjBinding","useFilter","listWidth","placeholder","searchPlaceholder","emptyText","requiredMessage","modelValue"],emits:["change","close","update:modelValue"],slots:["input-container","input","icon","list-item","empty"],expose:!0};function oo(e,t=12){return{10:{width:10,height:10},12:{width:12,height:12},14:{width:14,height:14},16:{width:16,height:16},18:{width:18,height:18},20:{width:20,height:20},22:{width:22,height:22},30:{width:30,height:30}}[e]??{width:t,height:t}}function on(e="14",t="var(--moz-color-text-subtle)",l=!1){const n=oo(e,14);return o.html`<svg xmlns="http://www.w3.org/2000/svg" width=${n.width} height=${n.height} viewBox="0 0 14 14" fill="none">
|
|
978
981
|
<path
|
|
979
982
|
fill-rule="evenodd"
|
|
980
983
|
clip-rule="evenodd"
|
|
981
984
|
d="M4.28543 4.37082C4.63291 4.01541 5.20272 4.00898 5.55814 4.35646L9.05717 7.77743L12.4606 4.36449C12.8116 4.01253 13.3815 4.01174 13.7334 4.36272C14.0854 4.7137 14.0862 5.28355 13.7352 5.63551L9.70247 9.67945C9.35394 10.029 8.78895 10.0325 8.43602 9.68748L4.29979 5.64353C3.94437 5.29605 3.93794 4.72624 4.28543 4.37082Z"
|
|
982
|
-
fill=${
|
|
985
|
+
fill=${l?"var(--moz-color-text-muted)":t}
|
|
983
986
|
></path>
|
|
984
|
-
</svg>`}function ln(e="14",t="var(--moz-color-text-subtle)",
|
|
987
|
+
</svg>`}function ln(e="14",t="var(--moz-color-text-subtle)",l=!1){const n=oo(e,14);return o.html`<svg xmlns="http://www.w3.org/2000/svg" width=${n.width} height=${n.height} viewBox="0 0 14 14" fill="none">
|
|
985
988
|
<path
|
|
986
989
|
fill-rule="evenodd"
|
|
987
990
|
clip-rule="evenodd"
|
|
988
991
|
d="M13.7433 9.67312C13.3958 10.0285 12.826 10.035 12.4705 9.68748L8.97152 6.26652L5.56806 9.67946C5.21708 10.0314 4.64723 10.0322 4.29527 9.68123C3.94331 9.33024 3.94252 8.7604 4.2935 8.40844L8.32621 4.36449C8.67474 4.01499 9.23974 4.01141 9.59267 4.35647L13.7289 8.40041C14.0843 8.7479 14.0907 9.31771 13.7433 9.67312Z"
|
|
989
|
-
fill=${
|
|
992
|
+
fill=${l?"var(--moz-color-text-muted)":t}
|
|
990
993
|
></path>
|
|
991
|
-
</svg>`}function sn(e="12",t="var(--moz-color-text-subtle)",
|
|
994
|
+
</svg>`}function sn(e="12",t="var(--moz-color-text-subtle)",l=!1){const n=oo(e),r=l?"var(--moz-color-text-muted)":t;return n.width<=13?o.html`<svg xmlns="http://www.w3.org/2000/svg" width=${n.width} height=${n.height} viewBox="0 0 12 12" fill="none">
|
|
992
995
|
<path
|
|
993
996
|
d="M10.293 11.375L7.71099 8.79103C6.76581 9.4655 5.60162 9.76002 4.44941 9.61616C3.29719 9.4723 2.24116 8.90058 1.49082 8.01442C0.740489 7.12825 0.350682 5.99242 0.398745 4.83225C0.446808 3.67209 0.929227 2.57239 1.75029 1.75133C2.57135 0.930264 3.67106 0.447845 4.83122 0.399783C5.99138 0.35172 7.12722 0.741526 8.01338 1.49186C8.89954 2.2422 9.47126 3.29823 9.61512 4.45044C9.75898 5.60265 9.46446 6.76684 8.78999 7.71203L11.373 10.294C11.5163 10.4374 11.5969 10.6318 11.5969 10.8345C11.5969 11.0373 11.5163 11.2317 11.373 11.375C11.2296 11.5184 11.0352 11.5989 10.8325 11.5989C10.6298 11.5989 10.4363 11.5184 10.293 11.375ZM1.92899 5.02703C1.92899 5.64015 2.1108 6.2395 2.45144 6.7493C2.79207 7.25909 3.27622 7.65642 3.84267 7.89106C4.40912 8.12569 5.03243 8.18708 5.63377 8.06746C6.23511 7.94785 6.78748 7.6526 7.22102 7.21906C7.65457 6.78552 7.94981 6.23315 8.06943 5.63181C8.18904 5.03047 8.12765 4.40716 7.89302 3.84071C7.65839 3.27426 7.26105 2.79011 6.75126 2.44947C6.24147 2.10884 5.64211 1.92703 5.02899 1.92703C4.20682 1.92703 3.41832 2.25364 2.83696 2.835C2.2556 3.41636 1.92899 4.20486 1.92899 5.02703Z"
|
|
994
997
|
fill=${r}
|
|
995
998
|
></path>
|
|
996
|
-
</svg>`:
|
|
999
|
+
</svg>`:o.html`<svg xmlns="http://www.w3.org/2000/svg" width=${n.width} height=${n.height} viewBox="0 0 14 14" fill="none">
|
|
997
1000
|
<path
|
|
998
1001
|
d="M5.84944 0.402344C2.83893 0.402344 0.398438 2.84284 0.398438 5.85334C0.398438 8.86385 2.83893 11.3043 5.84944 11.3043C7.0308 11.3043 8.12438 10.9285 9.01716 10.29L12.0619 13.3347C12.4134 13.6862 12.9832 13.6862 13.3347 13.3347C13.6862 12.9832 13.6862 12.4134 13.3347 12.0619L10.2893 9.01651C10.9259 8.12457 11.3004 7.03269 11.3004 5.85334C11.3004 2.84284 8.85994 0.402344 5.84944 0.402344ZM2.19844 5.85334C2.19844 3.83695 3.83305 2.20234 5.84944 2.20234C7.86583 2.20234 9.50044 3.83695 9.50044 5.85334C9.50044 7.86974 7.86583 9.50434 5.84944 9.50434C3.83305 9.50434 2.19844 7.86974 2.19844 5.85334Z"
|
|
999
1002
|
fill=${r}
|
|
1000
1003
|
></path>
|
|
1001
|
-
</svg>`}const nn=new Set(["itemsSource","inline","filterMode","filterValue","searchPlaceholder","preserveMissingValues","loading","loadingText","listBoxHeight","label","width","required","readonly","disabled","keyProp","displayProp","disabledProp","rules","useSelectAll","useFilter","headerFormat","listBoxWidth","useSpecificSelect","autoSelectNewItems","selectAllWhenEmpty","modelValue","class","style","dropdown-item-height"]);function rn(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const Jo=we({name:"moz-multi-select",defaults:{inline:!1,filterMode:"local",preserveMissingValues:!1,loading:!1,listBoxHeight:224,label:null,width:200,required:!1,readonly:!1,disabled:!1,keyProp:"id",displayProp:"text",disabledProp:"disabled",rules:[],useSelectAll:!0,useFilter:!1,headerFormat:"ITEMS ({count})",listBoxWidth:0,useSpecificSelect:!0,autoSelectNewItems:!1,selectAllWhenEmpty:!1,modelValue:null},setup(e){const t=O.createRef(),o=O.createRef(),n=O.createRef(),r=O.createRef(),d=O.createRef();let m=null;const s=()=>e.props.keyProp||"id",i=()=>e.props.disabledProp||"disabled";let h=e.props.modelValue??null;const a=()=>{const f=e.controlled("modelValue")?e.props.modelValue:h;return Array.isArray(f)?f:[]},u=f=>{e.controlled("modelValue")||(h=f),e.emit("update:modelValue",f),e.requestUpdate()};let p=!1;const v=Xe("moz-multiselect-listbox-");let y=e.props.filterValue??"",R=!1,$=!1,b={},z=[];const E={change:"",blur:"",save:""};let L=e.props.itemsSource;const W=(()=>{const f=e.props["dropdown-item-height"];if(f!=null)return+f;try{return+getComputedStyle(document.documentElement).getPropertyValue("--size-input-dropdown-item-height").trim().replace("px","")||24}catch{return 24}})(),N=new Fe.Virtualizer({count:0,getScrollElement:()=>m,estimateSize:()=>W,overscan:5,observeElementRect:Fe.observeElementRect,observeElementOffset:Fe.observeElementOffset,scrollToFn:Fe.elementScroll,onChange:()=>e.requestUpdate()});e.onCleanup(()=>{C==null||C.release(),C=null}),e.onCleanup(N._didMount());const oe=f=>{m=f??null,f&&(N._willUpdate(),e.requestUpdate())},ae=f=>typeof e.props.displayProp=="function"?e.props.displayProp(f):typeof f=="object"?f[e.props.displayProp]??"":f,te=()=>{const f=new Map;return(e.props.itemsSource??[]).forEach(B=>f.set(B[s()],B)),f},Y=()=>{if(e.props.filterMode==="remote"||!y)return e.props.itemsSource??[];const f=y.toLowerCase();return(e.props.itemsSource??[]).filter(B=>ae(B).toLowerCase().indexOf(f)>-1)},T=f=>{if(!y)return[{part:f,highlight:!1}];const B=rn(y),I=new RegExp(`(${B})`,"gi");return f.split(I).map(ee=>({part:ee,highlight:y.toLowerCase()===ee.toLowerCase()}))},K=f=>new Set(a()).has(f[s()]),ne=f=>z.some(B=>rt(B.item,f)),G=()=>{const f=a(),B=Y();if(f.length<B.length||f.length===0||B.length===0)return!1;const I=new Set(f);return B.every(ee=>I.has(ee[s()]))},Z=()=>new Set(Y().map(f=>f[s()])),D=()=>new Set(a()),S=()=>{const f=Z(),B=D();return!f.size||!B.size||B.size<f.size?!1:Array.from(f).every(I=>B.has(I))},U=()=>E.save||E.blur||E.change,j=()=>{const f=[];return e.props.required&&f.push({message:e.locale.MultiSelect.required.replace("{label}",e.props.label||""),type:"save",validator:B=>!!B.length}),[...f,...e.props.rules??[]]},k=async(f,B)=>{const I=j();if(I.length<=0)return;if(e.props.disabled)return!0;E[B]="",e.requestUpdate();const ee=I.filter(se=>se.type===B);for(const se of ee)if(!await se.validator(f))return E[B]=se.message,e.requestUpdate(),!1;return!0},V=async(f="save")=>U()!==""?!1:await k(a(),f)??!0,A={validate:V,initValidator:()=>{E.change="",E.blur="",E.save="",e.requestUpdate()}};e.validator&&(e.validator.addValidator(A),e.onCleanup(()=>{var f;return(f=e.validator)==null?void 0:f.removeValidator(A)}));const _=f=>{if(e.props.disabled||e.props.readonly||e.props.loading)return;const B=te(),I=new Set;a().forEach(se=>{const ue=B.get(se);(ue==null?void 0:ue[i()])===!0&&I.add(se)}),f.forEach(se=>{const ue=B.get(se);(ue&&ue[i()]!==!0||!ue&&e.props.preserveMissingValues)&&I.add(se)});const ee=Array.from(I);rt(a(),ee)||(u(ee),e.emit("change",ee,ee.map(se=>B.get(se)).filter(Boolean)),k(ee,"change"))},g=(f,B)=>f.filter(I=>K(I)!==B).map(I=>I[s()]),F=(f,B,I)=>{if(I.shiftKey&&z.length>0){const ee=z[0],se=Math.min(ee.index,B),ue=Math.max(ee.index,B);z=Y().slice(se,ue+1).map((fe,ye)=>({item:fe,index:se+ye}))}else I.ctrlKey?z.push({item:f,index:B}):z=[{item:f,index:B}];return z.length},X=(f=!0)=>{const B=z.map(se=>se.item),I=g(B,f);let ee=a();f?ee=[...ee,...I]:ee=ee.filter(se=>!I.some(ue=>se===ue)),_(ee)},J=(f,B,I)=>{if(f[i()]===!0)return;const ee=z.some(ue=>ue.item[s()]===f[s()]);(z.length<=1||!ee)&&F(f,B,{shiftKey:!1,ctrlKey:!1});const se=a().some(ue=>ue===f[s()]);X(!se),I.stopPropagation()},ve=(f,B,I)=>{f[i()]!==!0&&(!I.ctrlKey&&!I.shiftKey&&z.length<=1&&J(f,B,I),F(f,B,I),e.requestUpdate())},De=(f,B,I)=>{if(f[i()]===!0)return;const ee=a(),se=D().size!==0&&ee.every(ue=>ue===f[s()]);_(se?[]:[f[s()]]),F(f,B,I),I.stopPropagation()},_e=f=>{f.stopPropagation();const B=Z().size===D().size&&[...Z()].every(I=>D().has(I));if(G()&&B){const I=new Set((e.props.itemsSource??[]).filter(ee=>ee[i()]===!0).map(ee=>ee[s()]));_(Array.from(I))}else{const I=new Set(Y().filter(ee=>ee[i()]!==!0).map(ee=>ee[s()]));_(Array.from(I))}},He=f=>{if(f.stopPropagation(),S()){const B=Z();_(a().filter(I=>!B.has(I)))}else{const B=new Set([...a(),...Z()]);_(Array.from(B))}},c=f=>{R=f.target.scrollTop>0,e.requestUpdate()},x=()=>{const f=a();if(!(f!=null&&f.length))return"";const B=te(),I=f.map(se=>B.get(se)).filter(Boolean).map(se=>typeof e.props.displayProp=="function"?e.props.displayProp(se):se[e.props.displayProp]||""),ee=e.props.itemsSource??[];return I.length===ee.length&&I.length>2?`${e.props.headerFormat.replace(/\{count(:.*?)?}/g,"ALL")}`:I.length>1?e.props.headerFormat.replace(/\{count(:.*?)?}/g,`${I.length.toLocaleString()}`):I.join(", ")||""},Q=(f,B,I=10)=>{const ee=window.innerHeight||document.documentElement.clientHeight,se=window.innerWidth||document.documentElement.clientWidth,ue=f.getBoundingClientRect(),fe=B.getBoundingClientRect(),ye=ue.bottom+fe.height+I>ee;if(!ye)return!1;const Me=ue.top-fe.height-I<0,We=ue.right+fe.width+I>se,et=ue.left-fe.width-I<0;return ye&&!Me||We&&!et},re=()=>{const f=o.value;if(!f)return;const B=f.getBoundingClientRect();let I=`${B.width}px`;e.props.listBoxWidth&&(I=typeof e.props.listBoxWidth=="number"?`${e.props.listBoxWidth}px`:e.props.listBoxWidth),b={width:String(I),left:`${B.left}px`,top:`${B.top+($?0:B.height)}px`},e.requestUpdate()},de=f=>{var B;(B=n.value)!=null&&B.contains(f.target)||q(!1)},$e=f=>{var B,I;!((B=t.value)!=null&&B.contains(f.target))&&!((I=n.value)!=null&&I.contains(f.target))&&(q(!1),document.removeEventListener("click",$e,{capture:!0}))},be=f=>{var I;`${f.ctrlKey?"ctrl+":""}${f.altKey?"alt+":""}${f.key.toLowerCase()}`==="escape"&&(q(!1),(I=r.value)==null||I.focus())};e.onCleanup(()=>{document.body.removeEventListener("scroll",de,{capture:!0}),document.removeEventListener("click",$e,{capture:!0}),window.removeEventListener("keydown",be)});let C=null;const q=f=>{if(p===f)return;const B=p;if(p=f,e.requestUpdate(),f)C=ht(),document.body.addEventListener("scroll",de,{capture:!0}),document.addEventListener("click",$e,{capture:!0}),E.save="",window.addEventListener("keydown",be),re(),queueMicrotask(()=>{var I;o.value&&m&&($=Q(o.value,m)),re(),N.measure(),m&&(m.scrollTop=0),d.value?d.value.focus():(I=r.value)==null||I.focus()});else if(C==null||C.release(),C=null,y="",d.value&&(d.value.value=""),document.body.removeEventListener("scroll",de,{capture:!0}),document.removeEventListener("click",$e,{capture:!0}),k(a(),"blur"),window.removeEventListener("keydown",be),B&&!f){const I=a();if(e.props.selectAllWhenEmpty&&(!I||I.length===0)){const ee=(e.props.itemsSource??[]).filter(se=>se[i()]!==!0).map(se=>se[s()]);ee.length>0&&(u(ee),e.emit("change",ee,(e.props.itemsSource??[]).filter(se=>ee.includes(se[s()]))))}e.emit("close")}},Ce=f=>{var B;if(p){f.stopPropagation(),f.preventDefault();const I=(B=n.value)==null?void 0:B.querySelector("input:first-child, button:first-child");I==null||I.focus()}},Se=f=>{var se,ue,fe;const B=((se=n.value)==null?void 0:se.querySelectorAll("input, button"))??[],I=B[0],ee=B[B.length-1];(f.target===I||f.target===ee)&&r.value&&(f.target===I&&f.shiftKey?(f.stopPropagation(),f.preventDefault(),(ue=r.value)==null||ue.focus()):f.target===ee&&!f.shiftKey&&(f.stopPropagation(),f.preventDefault(),(fe=r.value)==null||fe.focus()))},ke=f=>{f.key==="Tab"&&Ce(f)},Te=f=>{!e.props.inline&&f.key==="Tab"&&Se(f)},Ae=f=>{!p&&!e.props.inline||(y=f.target.value,z=[],e.emit("update:filterValue",y),e.requestUpdate(),queueMicrotask(()=>{N.setOptions({...N.options,count:Y().length}),N.measure(),m&&(m.scrollTop=0)}))},Ne=()=>{var f;e.props.disabled||(q(!p),(f=r.value)==null||f.focus())},Qe=(f,B)=>{var I,ee;if(f.key==="Enter"||f.key===" "){f.preventDefault(),f.stopPropagation(),B();return}if(f.key==="ArrowDown"||f.key==="ArrowUp"){f.preventDefault(),f.stopPropagation();const se=Array.from(((I=n.value)==null?void 0:I.querySelectorAll('[tabindex="0"]'))??[]),ue=se.indexOf(f.currentTarget),fe=se[ue+(f.key==="ArrowDown"?1:-1)];fe==null||fe.focus();return}f.key==="Escape"&&!e.props.inline&&(f.preventDefault(),f.stopPropagation(),q(!1),(ee=r.value)==null||ee.focus())},ot=(f,B)=>{ve(f,B,{ctrlKey:!1,shiftKey:!1,stopPropagation(){}})},Je=(f,B)=>{if(z=[],e.props.preserveMissingValues||JSON.stringify(f)===JSON.stringify(B))return;const I=new Set(f.map(se=>se[s()])),ee=a();if(e.props.autoSelectNewItems&&B){const se=new Set(B.map(fe=>fe[s()])),ue=f.filter(fe=>!se.has(fe[s()])).map(fe=>fe[s()]);if(ue.length>0){const fe=ee.filter(ye=>I.has(ye));u([...new Set([...fe,...ue])])}else u(ee.filter(fe=>I.has(fe)))}else{const se=ee.filter(ue=>I.has(ue));if(rt(ee,se))return;u(se)}},Ze=()=>{const f=e.props,B=s(),I=f.loading?[]:Y();N.options.count!==I.length&&N.setOptions({...N.options,count:I.length}),N._willUpdate();const ee=new Set(a()),se=Tt(N.getVirtualItems(),I.length,W,m).map(ye=>{if(ye.index>=I.length)return null;const Me=I[ye.index];return Me?{index:ye.index,value:Me,size:ye.size,start:ye.start,isSelected:ee.has(Me[B]),isDisabled:!!f.disabled||!!f.readonly||Me[i()]===!0,isFocused:ne(Me)}:null}).filter(ye=>ye!==null),ue=N.getTotalSize(),fe=y?e.locale.MultiSelect.selectFiltered:e.locale.MultiSelect.selectAll;return l.html`<div
|
|
1002
|
-
class=${
|
|
1003
|
-
style=${le.styleMap(f.inline?{"--moz-multiselect-list-height":`${f.listBoxHeight??224}px`}:
|
|
1004
|
+
</svg>`}const nn=new Set(["itemsSource","inline","filterMode","filterValue","searchPlaceholder","preserveMissingValues","loading","loadingText","listBoxHeight","label","width","required","readonly","disabled","keyProp","displayProp","disabledProp","rules","useSelectAll","useFilter","headerFormat","listBoxWidth","useSpecificSelect","autoSelectNewItems","selectAllWhenEmpty","modelValue","class","style","dropdown-item-height"]);function rn(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const Jo=we({name:"moz-multi-select",defaults:{inline:!1,filterMode:"local",preserveMissingValues:!1,loading:!1,listBoxHeight:224,label:null,width:200,required:!1,readonly:!1,disabled:!1,keyProp:"id",displayProp:"text",disabledProp:"disabled",rules:[],useSelectAll:!0,useFilter:!1,headerFormat:"ITEMS ({count})",listBoxWidth:0,useSpecificSelect:!0,autoSelectNewItems:!1,selectAllWhenEmpty:!1,modelValue:null},setup(e){const t=N.createRef(),l=N.createRef(),n=N.createRef(),r=N.createRef(),d=N.createRef();let m=null;const s=()=>e.props.keyProp||"id",i=()=>e.props.disabledProp||"disabled";let h=e.props.modelValue??null;const a=()=>{const f=e.controlled("modelValue")?e.props.modelValue:h;return Array.isArray(f)?f:[]},u=f=>{e.controlled("modelValue")||(h=f),e.emit("update:modelValue",f),e.requestUpdate()};let p=!1;const v=Xe("moz-multiselect-listbox-");let $=e.props.filterValue??"",A=!1,S=!1,y={},D=[];const E={change:"",blur:"",save:""};let L=e.props.itemsSource;const K=(()=>{const f=e.props["dropdown-item-height"];if(f!=null)return+f;try{return+getComputedStyle(document.documentElement).getPropertyValue("--size-input-dropdown-item-height").trim().replace("px","")||24}catch{return 24}})(),W=new Fe.Virtualizer({count:0,getScrollElement:()=>m,estimateSize:()=>K,overscan:5,observeElementRect:Fe.observeElementRect,observeElementOffset:Fe.observeElementOffset,scrollToFn:Fe.elementScroll,onChange:()=>e.requestUpdate()});e.onCleanup(()=>{C==null||C.release(),C=null}),e.onCleanup(W._didMount());const te=f=>{m=f??null,f&&(W._willUpdate(),e.requestUpdate())},ae=f=>typeof e.props.displayProp=="function"?e.props.displayProp(f):typeof f=="object"?f[e.props.displayProp]??"":f,ee=()=>{const f=new Map;return(e.props.itemsSource??[]).forEach(O=>f.set(O[s()],O)),f},Y=()=>{if(e.props.filterMode==="remote"||!$)return e.props.itemsSource??[];const f=$.toLowerCase();return(e.props.itemsSource??[]).filter(O=>ae(O).toLowerCase().indexOf(f)>-1)},M=f=>{if(!$)return[{part:f,highlight:!1}];const O=rn($),F=new RegExp(`(${O})`,"gi");return f.split(F).map(Q=>({part:Q,highlight:$.toLowerCase()===Q.toLowerCase()}))},G=f=>new Set(a()).has(f[s()]),ne=f=>D.some(O=>rt(O.item,f)),oe=()=>{const f=a(),O=Y();if(f.length<O.length||f.length===0||O.length===0)return!1;const F=new Set(f);return O.every(Q=>F.has(Q[s()]))},J=()=>new Set(Y().map(f=>f[s()])),U=()=>new Set(a()),b=()=>{const f=J(),O=U();return!f.size||!O.size||O.size<f.size?!1:Array.from(f).every(F=>O.has(F))},R=()=>E.save||E.blur||E.change,_=()=>{const f=[];return e.props.required&&f.push({message:e.locale.MultiSelect.required.replace("{label}",e.props.label||""),type:"save",validator:O=>!!O.length}),[...f,...e.props.rules??[]]},k=async(f,O)=>{const F=_();if(F.length<=0)return;if(e.props.disabled)return!0;E[O]="",e.requestUpdate();const Q=F.filter(se=>se.type===O);for(const se of Q)if(!await se.validator(f))return E[O]=se.message,e.requestUpdate(),!1;return!0},z=async(f="save")=>R()!==""?!1:await k(a(),f)??!0,T={validate:z,initValidator:()=>{E.change="",E.blur="",E.save="",e.requestUpdate()}};e.validator&&(e.validator.addValidator(T),e.onCleanup(()=>{var f;return(f=e.validator)==null?void 0:f.removeValidator(T)}));const I=f=>{if(e.props.disabled||e.props.readonly||e.props.loading)return;const O=ee(),F=new Set;a().forEach(se=>{const ue=O.get(se);(ue==null?void 0:ue[i()])===!0&&F.add(se)}),f.forEach(se=>{const ue=O.get(se);(ue&&ue[i()]!==!0||!ue&&e.props.preserveMissingValues)&&F.add(se)});const Q=Array.from(F);rt(a(),Q)||(u(Q),e.emit("change",Q,Q.map(se=>O.get(se)).filter(Boolean)),k(Q,"change"))},g=(f,O)=>f.filter(F=>G(F)!==O).map(F=>F[s()]),B=(f,O,F)=>{if(F.shiftKey&&D.length>0){const Q=D[0],se=Math.min(Q.index,O),ue=Math.max(Q.index,O);D=Y().slice(se,ue+1).map((fe,ye)=>({item:fe,index:se+ye}))}else F.ctrlKey?D.push({item:f,index:O}):D=[{item:f,index:O}];return D.length},Z=(f=!0)=>{const O=D.map(se=>se.item),F=g(O,f);let Q=a();f?Q=[...Q,...F]:Q=Q.filter(se=>!F.some(ue=>se===ue)),I(Q)},X=(f,O,F)=>{if(f[i()]===!0)return;const Q=D.some(ue=>ue.item[s()]===f[s()]);(D.length<=1||!Q)&&B(f,O,{shiftKey:!1,ctrlKey:!1});const se=a().some(ue=>ue===f[s()]);Z(!se),F.stopPropagation()},ve=(f,O,F)=>{f[i()]!==!0&&(!F.ctrlKey&&!F.shiftKey&&D.length<=1&&X(f,O,F),B(f,O,F),e.requestUpdate())},De=(f,O,F)=>{if(f[i()]===!0)return;const Q=a(),se=U().size!==0&&Q.every(ue=>ue===f[s()]);I(se?[]:[f[s()]]),B(f,O,F),F.stopPropagation()},Ne=f=>{f.stopPropagation();const O=J().size===U().size&&[...J()].every(F=>U().has(F));if(oe()&&O){const F=new Set((e.props.itemsSource??[]).filter(Q=>Q[i()]===!0).map(Q=>Q[s()]));I(Array.from(F))}else{const F=new Set(Y().filter(Q=>Q[i()]!==!0).map(Q=>Q[s()]));I(Array.from(F))}},Oe=f=>{if(f.stopPropagation(),b()){const O=J();I(a().filter(F=>!O.has(F)))}else{const O=new Set([...a(),...J()]);I(Array.from(O))}},c=f=>{A=f.target.scrollTop>0,e.requestUpdate()},x=()=>{const f=a();if(!(f!=null&&f.length))return"";const O=ee(),F=f.map(se=>O.get(se)).filter(Boolean).map(se=>typeof e.props.displayProp=="function"?e.props.displayProp(se):se[e.props.displayProp]||""),Q=e.props.itemsSource??[];return F.length===Q.length&&F.length>2?`${e.props.headerFormat.replace(/\{count(:.*?)?}/g,"ALL")}`:F.length>1?e.props.headerFormat.replace(/\{count(:.*?)?}/g,`${F.length.toLocaleString()}`):F.join(", ")||""},j=(f,O,F=10)=>{const Q=window.innerHeight||document.documentElement.clientHeight,se=window.innerWidth||document.documentElement.clientWidth,ue=f.getBoundingClientRect(),fe=O.getBoundingClientRect(),ye=ue.bottom+fe.height+F>Q;if(!ye)return!1;const Me=ue.top-fe.height-F<0,We=ue.right+fe.width+F>se,et=ue.left-fe.width-F<0;return ye&&!Me||We&&!et},re=()=>{const f=l.value;if(!f)return;const O=f.getBoundingClientRect();let F=`${O.width}px`;e.props.listBoxWidth&&(F=typeof e.props.listBoxWidth=="number"?`${e.props.listBoxWidth}px`:e.props.listBoxWidth),y={width:String(F),left:`${O.left}px`,top:`${O.top+(S?0:O.height)}px`},e.requestUpdate()},de=f=>{var O;(O=n.value)!=null&&O.contains(f.target)||q(!1)},$e=f=>{var O,F;!((O=t.value)!=null&&O.contains(f.target))&&!((F=n.value)!=null&&F.contains(f.target))&&(q(!1),document.removeEventListener("click",$e,{capture:!0}))},be=f=>{var F;`${f.ctrlKey?"ctrl+":""}${f.altKey?"alt+":""}${f.key.toLowerCase()}`==="escape"&&(q(!1),(F=r.value)==null||F.focus())};e.onCleanup(()=>{document.body.removeEventListener("scroll",de,{capture:!0}),document.removeEventListener("click",$e,{capture:!0}),window.removeEventListener("keydown",be)});let C=null;const q=f=>{if(p===f)return;const O=p;if(p=f,e.requestUpdate(),f)C=ht(),document.body.addEventListener("scroll",de,{capture:!0}),document.addEventListener("click",$e,{capture:!0}),E.save="",window.addEventListener("keydown",be),re(),queueMicrotask(()=>{var F;l.value&&m&&(S=j(l.value,m)),re(),W.measure(),m&&(m.scrollTop=0),d.value?d.value.focus():(F=r.value)==null||F.focus()});else if(C==null||C.release(),C=null,$="",d.value&&(d.value.value=""),document.body.removeEventListener("scroll",de,{capture:!0}),document.removeEventListener("click",$e,{capture:!0}),k(a(),"blur"),window.removeEventListener("keydown",be),O&&!f){const F=a();if(e.props.selectAllWhenEmpty&&(!F||F.length===0)){const Q=(e.props.itemsSource??[]).filter(se=>se[i()]!==!0).map(se=>se[s()]);Q.length>0&&(u(Q),e.emit("change",Q,(e.props.itemsSource??[]).filter(se=>Q.includes(se[s()]))))}e.emit("close")}},Ce=f=>{var O;if(p){f.stopPropagation(),f.preventDefault();const F=(O=n.value)==null?void 0:O.querySelector("input:first-child, button:first-child");F==null||F.focus()}},Se=f=>{var se,ue,fe;const O=((se=n.value)==null?void 0:se.querySelectorAll("input, button"))??[],F=O[0],Q=O[O.length-1];(f.target===F||f.target===Q)&&r.value&&(f.target===F&&f.shiftKey?(f.stopPropagation(),f.preventDefault(),(ue=r.value)==null||ue.focus()):f.target===Q&&!f.shiftKey&&(f.stopPropagation(),f.preventDefault(),(fe=r.value)==null||fe.focus()))},ke=f=>{f.key==="Tab"&&Ce(f)},Te=f=>{!e.props.inline&&f.key==="Tab"&&Se(f)},Ae=f=>{!p&&!e.props.inline||($=f.target.value,D=[],e.emit("update:filterValue",$),e.requestUpdate(),queueMicrotask(()=>{W.setOptions({...W.options,count:Y().length}),W.measure(),m&&(m.scrollTop=0)}))},_e=()=>{var f;e.props.disabled||(q(!p),(f=r.value)==null||f.focus())},Qe=(f,O)=>{var F,Q;if(f.key==="Enter"||f.key===" "){f.preventDefault(),f.stopPropagation(),O();return}if(f.key==="ArrowDown"||f.key==="ArrowUp"){f.preventDefault(),f.stopPropagation();const se=Array.from(((F=n.value)==null?void 0:F.querySelectorAll('[tabindex="0"]'))??[]),ue=se.indexOf(f.currentTarget),fe=se[ue+(f.key==="ArrowDown"?1:-1)];fe==null||fe.focus();return}f.key==="Escape"&&!e.props.inline&&(f.preventDefault(),f.stopPropagation(),q(!1),(Q=r.value)==null||Q.focus())},ot=(f,O)=>{ve(f,O,{ctrlKey:!1,shiftKey:!1,stopPropagation(){}})},Je=(f,O)=>{if(D=[],e.props.preserveMissingValues||JSON.stringify(f)===JSON.stringify(O))return;const F=new Set(f.map(se=>se[s()])),Q=a();if(e.props.autoSelectNewItems&&O){const se=new Set(O.map(fe=>fe[s()])),ue=f.filter(fe=>!se.has(fe[s()])).map(fe=>fe[s()]);if(ue.length>0){const fe=Q.filter(ye=>F.has(ye));u([...new Set([...fe,...ue])])}else u(Q.filter(fe=>F.has(fe)))}else{const se=Q.filter(ue=>F.has(ue));if(rt(Q,se))return;u(se)}},Ze=()=>{const f=e.props,O=s(),F=f.loading?[]:Y();W.options.count!==F.length&&W.setOptions({...W.options,count:F.length}),W._willUpdate();const Q=new Set(a()),se=Tt(W.getVirtualItems(),F.length,K,m).map(ye=>{if(ye.index>=F.length)return null;const Me=F[ye.index];return Me?{index:ye.index,value:Me,size:ye.size,start:ye.start,isSelected:Q.has(Me[O]),isDisabled:!!f.disabled||!!f.readonly||Me[i()]===!0,isFocused:ne(Me)}:null}).filter(ye=>ye!==null),ue=W.getTotalSize(),fe=$?e.locale.MultiSelect.selectFiltered:e.locale.MultiSelect.selectAll;return o.html`<div
|
|
1005
|
+
class=${V("list-box",{"no-label":!f.label,"show-top":S,"moz-multiselect-inline-list":!!f.inline},f.class)}
|
|
1006
|
+
style=${le.styleMap(f.inline?{"--moz-multiselect-list-height":`${f.listBoxHeight??224}px`}:y)}
|
|
1004
1007
|
@keydown=${Te}
|
|
1005
|
-
${
|
|
1008
|
+
${N.ref(n)}
|
|
1006
1009
|
>
|
|
1007
|
-
${f.useFilter?
|
|
1010
|
+
${f.useFilter?o.html`<div class="filter-input">
|
|
1008
1011
|
<input
|
|
1009
1012
|
placeholder=${f.searchPlaceholder??e.locale.MultiSelect.search}
|
|
1010
1013
|
aria-label=${f.searchPlaceholder??e.locale.MultiSelect.search}
|
|
1011
|
-
.value=${
|
|
1014
|
+
.value=${$}
|
|
1012
1015
|
?disabled=${!!f.disabled||!!f.readonly}
|
|
1013
1016
|
@input=${Ae}
|
|
1014
|
-
${
|
|
1017
|
+
${N.ref(d)}
|
|
1015
1018
|
/>
|
|
1016
1019
|
<div class="search-icon">${sn("12","var(--moz-color-text-subtle)")}</div>
|
|
1017
|
-
</div>`:
|
|
1018
|
-
${f.useSelectAll&&(f.itemsSource??[]).length>0&&
|
|
1019
|
-
class=${
|
|
1020
|
+
</div>`:o.nothing}
|
|
1021
|
+
${f.useSelectAll&&(f.itemsSource??[]).length>0&&F.length>0?o.html`<div
|
|
1022
|
+
class=${V("list-box-item multi-select-item multi-select-all",{"is-scrolled":A})}
|
|
1020
1023
|
role="button"
|
|
1021
1024
|
tabindex=${f.disabled||f.readonly||f.loading?"-1":"0"}
|
|
1022
1025
|
aria-disabled=${f.disabled||f.readonly||f.loading?"true":"false"}
|
|
1023
|
-
aria-pressed=${
|
|
1026
|
+
aria-pressed=${b()?"true":"false"}
|
|
1024
1027
|
aria-label=${fe}
|
|
1025
|
-
@click=${
|
|
1026
|
-
@keydown=${ye=>Qe(ye,()=>
|
|
1028
|
+
@click=${Oe}
|
|
1029
|
+
@keydown=${ye=>Qe(ye,()=>Oe({stopPropagation(){}}))}
|
|
1027
1030
|
>
|
|
1028
1031
|
<input
|
|
1029
1032
|
type="checkbox"
|
|
1030
1033
|
aria-hidden="true"
|
|
1031
1034
|
tabindex="-1"
|
|
1032
|
-
class=${
|
|
1033
|
-
.checked=${
|
|
1035
|
+
class=${V("moz-checkbox",{"is-indeterminate":F.some(ye=>Q.has(ye[O]))&&!oe()})}
|
|
1036
|
+
.checked=${b()}
|
|
1034
1037
|
/>
|
|
1035
1038
|
<div class="highlight-container">
|
|
1036
1039
|
<span title=${fe}>${fe}</span>
|
|
1037
1040
|
</div>
|
|
1038
|
-
${f.useSpecificSelect
|
|
1041
|
+
${f.useSpecificSelect&&$&&F.length>0?o.html`<button type="button" class="item-only" @click=${Ne}>
|
|
1039
1042
|
${e.locale.MultiSelect.specificResults}
|
|
1040
|
-
</button>`:
|
|
1041
|
-
</div>`:
|
|
1043
|
+
</button>`:o.nothing}
|
|
1044
|
+
</div>`:o.nothing}
|
|
1042
1045
|
|
|
1043
1046
|
<div
|
|
1044
1047
|
id=${v}
|
|
@@ -1048,11 +1051,11 @@
|
|
|
1048
1051
|
aria-busy=${f.loading?"true":"false"}
|
|
1049
1052
|
class="list-box-container"
|
|
1050
1053
|
@scroll=${c}
|
|
1051
|
-
${
|
|
1054
|
+
${N.ref(te)}
|
|
1052
1055
|
>
|
|
1053
1056
|
<div class="inner-container" style=${le.styleMap({height:`${ue}px`})}>
|
|
1054
|
-
${se.map(({index:ye,value:Me,start:We,size:et,isSelected:it,isDisabled:lt,isFocused:zt})=>
|
|
1055
|
-
class=${
|
|
1057
|
+
${se.map(({index:ye,value:Me,start:We,size:et,isSelected:it,isDisabled:lt,isFocused:zt})=>o.html`<div
|
|
1058
|
+
class=${V("list-box-item multi-select-item virtual-row",{"list-selected":it,"moz-multi-focus":zt})}
|
|
1056
1059
|
style=${le.styleMap({height:`${et}px`,transform:`translateY(${We}px)`})}
|
|
1057
1060
|
role="option"
|
|
1058
1061
|
aria-selected=${it?"true":"false"}
|
|
@@ -1068,31 +1071,31 @@
|
|
|
1068
1071
|
class="moz-checkbox"
|
|
1069
1072
|
.checked=${it}
|
|
1070
1073
|
?disabled=${lt}
|
|
1071
|
-
@click=${Ge=>
|
|
1074
|
+
@click=${Ge=>X(Me,ye,Ge)}
|
|
1072
1075
|
/>
|
|
1073
|
-
${e.slots.has("list-item")?e.slot("list-item",{text:ae(Me),item:Me}):
|
|
1074
|
-
${
|
|
1076
|
+
${e.slots.has("list-item")?e.slot("list-item",{text:ae(Me),item:Me}):o.html`<div class="highlight-container" title=${ae(Me)}>
|
|
1077
|
+
${M(ae(Me)).map(Ge=>o.html`<span class=${V("text-part",{highlight:Ge.highlight})}>${Ge.part}</span>`)}
|
|
1075
1078
|
</div>`}
|
|
1076
|
-
${f.useSpecificSelect&&!lt?
|
|
1079
|
+
${f.useSpecificSelect&&!lt?o.html`<button type="button" class="item-only" @click=${Ge=>De(Me,ye,Ge)}>
|
|
1077
1080
|
${e.locale.MultiSelect.specificSelect}
|
|
1078
|
-
</button>`:
|
|
1081
|
+
</button>`:o.nothing}
|
|
1079
1082
|
</div>`)}
|
|
1080
1083
|
</div>
|
|
1081
|
-
${
|
|
1084
|
+
${F.length<=0?o.html`<div class="list-box-item loading not-hover">
|
|
1082
1085
|
${f.loading?f.loadingText??"Loading…":e.slots.has("empty")?e.slot("empty"):e.locale.MultiSelect.noData}
|
|
1083
|
-
</div>`:
|
|
1086
|
+
</div>`:o.nothing}
|
|
1084
1087
|
</div>
|
|
1085
|
-
</div>`};return{api:{validate:
|
|
1086
|
-
style=${le.styleMap({width:
|
|
1087
|
-
${
|
|
1088
|
+
</div>`};return{api:{validate:z},render(){const f=e.props;if(e.controlled("filterValue")&&($=f.filterValue??""),f.itemsSource!==L){const fe=L,ye=f.itemsSource;L=f.itemsSource,queueMicrotask(()=>Je(ye??[],fe??[]))}const O=typeof f.width=="number"?`${Le(f.width)}rem`:f.width,F=ge(f,nn),{aria:Q,dom:se}=ut(F);if(f.inline)return o.html`<div class="moz-multi-select moz-multi-select-inline"
|
|
1089
|
+
style=${le.styleMap({width:O,...Pe(f.style)})}
|
|
1090
|
+
${N.ref(t)}>${Ze()}</div>`;const ue=e.slots.has("icon")?e.slot("icon",{isOpen:p}):p?ln("14","var(--moz-color-accent)"):on("14",f.disabled?"var(--moz-color-text-muted)":"var(--moz-color-text-subtle)");return o.html`
|
|
1088
1091
|
<div
|
|
1089
|
-
class=${
|
|
1090
|
-
style=${le.styleMap({width:
|
|
1091
|
-
${
|
|
1092
|
+
class=${V("moz-multi-select",{"is-invalid":R()!=="","is-open":p,disabled:!!f.disabled})}
|
|
1093
|
+
style=${le.styleMap({width:O,...Pe(f.style)})}
|
|
1094
|
+
${N.ref(t)}
|
|
1092
1095
|
>
|
|
1093
1096
|
<div class="input-wrapper">
|
|
1094
|
-
${f.label?Be({},
|
|
1095
|
-
<div class="moz-input-container" @click=${
|
|
1097
|
+
${f.label?Be({},o.html`${f.label}${f.required?o.html`<span class="require-mark">*</span>`:o.nothing}`):o.nothing}
|
|
1098
|
+
<div class="moz-input-container" @click=${_e} ${N.ref(l)}>
|
|
1096
1099
|
<input
|
|
1097
1100
|
${he(se)}
|
|
1098
1101
|
.value=${x()}
|
|
@@ -1103,24 +1106,24 @@
|
|
|
1103
1106
|
<button
|
|
1104
1107
|
type="button"
|
|
1105
1108
|
class="icon-container"
|
|
1106
|
-
${he(
|
|
1109
|
+
${he(Q)}
|
|
1107
1110
|
role="combobox"
|
|
1108
1111
|
aria-haspopup="listbox"
|
|
1109
1112
|
aria-expanded=${p?"true":"false"}
|
|
1110
1113
|
aria-controls=${v}
|
|
1111
|
-
aria-label=${xe.ifDefined(
|
|
1114
|
+
aria-label=${xe.ifDefined(Q["aria-label"]??f.label??void 0)}
|
|
1112
1115
|
?disabled=${!!f.disabled}
|
|
1113
1116
|
@keydown=${ke}
|
|
1114
|
-
${
|
|
1117
|
+
${N.ref(r)}
|
|
1115
1118
|
>
|
|
1116
1119
|
${ue}
|
|
1117
1120
|
</button>
|
|
1118
1121
|
</div>
|
|
1119
1122
|
</div>
|
|
1120
1123
|
|
|
1121
|
-
${
|
|
1124
|
+
${R()!==""?o.html`<span class="moz-input-invalid-message">${R()}</span>`:o.nothing}
|
|
1122
1125
|
</div>
|
|
1123
|
-
`},renderPortal(){return e.props.inline||!p?
|
|
1126
|
+
`},renderPortal(){return e.props.inline||!p?o.nothing:Ze()}}}}),an={name:"MozMultiSelect",core:Jo,props:["itemsSource","inline","filterMode","filterValue","searchPlaceholder","preserveMissingValues","loading","loadingText","listBoxHeight","label","width","required","readonly","disabled","keyProp","displayProp","disabledProp","rules","useSelectAll","useFilter","headerFormat","listBoxWidth","useSpecificSelect","autoSelectNewItems","selectAllWhenEmpty","modelValue"],emits:["change","close","update:modelValue","update:filterValue"],slots:["icon","list-item","empty"],expose:!0};function el(e,t=14){return{10:{width:10,height:10},12:{width:12,height:12},14:{width:14,height:14},16:{width:16,height:16},18:{width:18,height:18},20:{width:20,height:20},22:{width:22,height:22},30:{width:30,height:30}}[e]??{width:t,height:t}}function cn(e="14",t="var(--moz-color-text-subtle)"){const l=el(e,14);return o.html`<svg width=${l.width} height=${l.height} viewBox="0 0 14 15" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1124
1127
|
<g clip-path="url(#clip0_4513_575)">
|
|
1125
1128
|
<path
|
|
1126
1129
|
fill-rule="evenodd"
|
|
@@ -1131,10 +1134,10 @@
|
|
|
1131
1134
|
</g>
|
|
1132
1135
|
<defs>
|
|
1133
1136
|
<clipPath id="clip0_4513_575">
|
|
1134
|
-
<rect width=${
|
|
1137
|
+
<rect width=${l.width} height=${l.height} fill="white" transform="translate(0 0.704163)"></rect>
|
|
1135
1138
|
</clipPath>
|
|
1136
1139
|
</defs>
|
|
1137
|
-
</svg>`}function co(e="12",t="var(--moz-color-text-subtle)",
|
|
1140
|
+
</svg>`}function co(e="12",t="var(--moz-color-text-subtle)",l=!1,n=""){const r=el(e,12),d=l?"var(--moz-color-text-muted)":t;return o.html`<svg class=${n||o.nothing} xmlns="http://www.w3.org/2000/svg" width=${r.width} height=${r.height} viewBox="0 0 16 16">
|
|
1138
1141
|
<g style=${`fill: ${d}`}>
|
|
1139
1142
|
<path
|
|
1140
1143
|
d="M836.533 699.734h-.022a.928.928 0 0 1-.716-.336l-3.779-4.535a.926.926 0 0 1-.212-.68.93.93 0 0 1 1.643-.512l3.026 3.63 6.096-8.128a.922.922 0 0 1 .745-.373c.202 0 .396.064.559.186.199.15.328.367.363.614a.925.925 0 0 1-.177.69l-6.803 9.071a.928.928 0 0 1-.721.373h-.002z"
|
|
@@ -1147,75 +1150,75 @@
|
|
|
1147
1150
|
transform="translate(-829.971 -686.318)"
|
|
1148
1151
|
></path>
|
|
1149
1152
|
</g>
|
|
1150
|
-
</svg>`}const dn=new Set(["width","modelValue","label","disabled","hourLabel","minuteLabel","currentTimeLabel","required","class","style"]),un=Array.from({length:24},(e,t)=>t),pn=Array.from({length:60},(e,t)=>t),tl=we({name:"moz-time-picker",defaults:{width:"160px",modelValue:"09:00",label:"",disabled:!1,required:!1},setup(e){const t=
|
|
1153
|
+
</svg>`}const dn=new Set(["width","modelValue","label","disabled","hourLabel","minuteLabel","currentTimeLabel","required","class","style"]),un=Array.from({length:24},(e,t)=>t),pn=Array.from({length:60},(e,t)=>t),tl=we({name:"moz-time-picker",defaults:{width:"160px",modelValue:"09:00",label:"",disabled:!1,required:!1},setup(e){const t=N.createRef(),l=N.createRef(),n=N.createRef(),r=N.createRef(),d=N.createRef(),m=N.createRef();let s=!1,i=9,h=0,a="",u="";const p=M=>{if(M&&M.includes(":")){const[G,ne]=M.split(":").map(Number);!isNaN(G)&&!isNaN(ne)&&(i=G,h=ne,a=M,u=M)}};p(e.props.modelValue);let v=e.props.modelValue,$=a;const A=new pt({anchor:()=>l.value??null,panel:()=>r.value??null,maxHeight:()=>210,container:()=>t.value??null,listWidth:()=>"160px",requestClose:()=>{s&&y(!1)}});e.onCleanup(()=>A.destroy());const S=()=>{d.value&&(d.value.scrollTop=i*24-72),m.value&&(m.value.scrollTop=h*24-72)},y=M=>{s!==M&&(s=M,e.requestUpdate(),M?(A.open(),queueMicrotask(S)):A.close())},D=()=>{const M=`${i.toString().padStart(2,"0")}:${h.toString().padStart(2,"0")}`;a=M,u=M,e.emit("update:modelValue",M),e.requestUpdate()},E=M=>{i=M,D()},L=M=>{h=M,y(!1),D()},K=()=>{i=new Date().getHours(),h=new Date().getMinutes(),D(),y(!1)},W=M=>{let G=M.replace(/[^\d:]/g,"");return G.length>5&&(G=G.slice(0,5)),G},te=M=>{y(!1);const G=M.target,ne=M.key;if(!/^\d$/.test(ne))return;const oe=G.selectionStart||0,J=a;if(G.selectionStart!==G.selectionEnd||oe>=J.length)return;M.preventDefault();const U=J.replace(/:/g,""),b=(J.slice(0,oe).match(/:/g)||[]).length,R=oe-b;let _=U.substring(0,R)+ne;R+1<U.length&&(_+=U.substring(R+1)),_.length>4&&(_=_.slice(0,4));let k=_,z=R+1;if(_.length>=2){const T=_.slice(0,2),I=_.slice(2);k=`${T}:${I}`,z>2&&(z=z+1)}a=k,u=k,e.requestUpdate(),queueMicrotask(()=>G.setSelectionRange(z,z))},ae=M=>{const G=M.target,ne=G.selectionStart||0,oe=u;let J=G.value;const U=J.length<oe.length;J=W(J);const b=J.replace(/:/g,"");if(!U&&b.length>=2){const R=(J.slice(0,ne).match(/:/g)||[]).length,_=ne-R,k=b.slice(0,2),z=b.slice(2);J=k+(z?`:${z}`:":");let T=_;_>2&&(T=_+1),a=J,u=J,e.requestUpdate(),setTimeout(()=>G.setSelectionRange(T,T),0);return}a=J,u=J,e.requestUpdate()},ee=()=>y(!0),Y=()=>{if(!a){D();return}let M=a;!M.includes(":")&&M.length>=2&&(M=`${M.slice(0,2)}:${M.slice(2)}`);const G=M.split(":");let ne=i,oe=h;if(G[0]){const J=parseInt(G[0],10);isNaN(J)||(J>=0&&J<=23?ne=J:J>23?ne=23:ne=0)}if(G[1]){const J=parseInt(G[1],10);isNaN(J)||(J>=0&&J<=59?oe=J:J>59?oe=59:oe=0)}i=ne,h=oe,D()};return{render(){const M=e.props;if(M.modelValue!==v&&(v=M.modelValue,p(M.modelValue)),a!==$){$=a;const U=a;if(/^\d{2}:\d{2}$/.test(U)){const[b,R]=U.split(":").map(Number);!isNaN(b)&&!isNaN(R)&&b>=0&&b<=23&&R>=0&&R<=59&&U!==M.modelValue&&(i=b,h=R,queueMicrotask(()=>e.emit("update:modelValue",U)))}}const G=M.disabled?"var(--moz-color-text-muted)":s?"var(--moz-color-accent)":"var(--moz-color-text-subtle)",ne=ge(M,dn),oe="__:__",J=[];for(let U=0;U<oe.length;U++)U<a.length?J.push({char:a[U],isInput:!0}):J.push({char:oe[U],isInput:!1});return o.html`
|
|
1151
1154
|
<div
|
|
1152
|
-
class=${
|
|
1153
|
-
style=${le.styleMap({width:
|
|
1155
|
+
class=${V("custom-time-picker",M.class,{"custom-time-picker--has-class":!!M.class})}
|
|
1156
|
+
style=${le.styleMap({width:M.width,...Pe(M.style)})}
|
|
1154
1157
|
${he(ne)}
|
|
1155
|
-
${
|
|
1158
|
+
${N.ref(t)}
|
|
1156
1159
|
>
|
|
1157
|
-
${
|
|
1160
|
+
${M.label?Be({disabled:M.disabled,required:M.required},M.label):o.nothing}
|
|
1158
1161
|
<div
|
|
1159
|
-
class=${
|
|
1160
|
-
${
|
|
1162
|
+
class=${V("time-input-wrapper",{"time-input-wrapper--disabled":M.disabled,"time-input-wrapper--open":s&&!M.disabled})}
|
|
1163
|
+
${N.ref(l)}
|
|
1161
1164
|
>
|
|
1162
1165
|
<div class="input-with-mask">
|
|
1163
1166
|
<input
|
|
1164
1167
|
type="text"
|
|
1165
1168
|
.value=${a}
|
|
1166
|
-
@keydown=${
|
|
1169
|
+
@keydown=${te}
|
|
1167
1170
|
@input=${ae}
|
|
1168
1171
|
@blur=${Y}
|
|
1169
|
-
@focus=${
|
|
1170
|
-
@click=${()=>
|
|
1171
|
-
class=${
|
|
1172
|
-
?disabled=${!!
|
|
1172
|
+
@focus=${ee}
|
|
1173
|
+
@click=${()=>y(!0)}
|
|
1174
|
+
class=${V("time-input",{"time-input--disabled":M.disabled,"time-input--open":s})}
|
|
1175
|
+
?disabled=${!!M.disabled}
|
|
1173
1176
|
maxlength="5"
|
|
1174
|
-
${
|
|
1177
|
+
${N.ref(n)}
|
|
1175
1178
|
/>
|
|
1176
1179
|
<div class="time-mask">
|
|
1177
|
-
${
|
|
1178
|
-
class=${
|
|
1179
|
-
>${
|
|
1180
|
+
${J.map(U=>o.html`<span
|
|
1181
|
+
class=${V({"mask-input":U.isInput&&!M.disabled,"mask-placeholder":!U.isInput,"mask-input--disabled":U.isInput&&!!M.disabled})}
|
|
1182
|
+
>${U.char}</span
|
|
1180
1183
|
>`)}
|
|
1181
1184
|
</div>
|
|
1182
1185
|
</div>
|
|
1183
1186
|
<div class="icon-container">
|
|
1184
|
-
<span @click=${()=>
|
|
1187
|
+
<span @click=${()=>y(!0)}>${cn("14",G)}</span>
|
|
1185
1188
|
</div>
|
|
1186
1189
|
</div>
|
|
1187
1190
|
</div>
|
|
1188
|
-
`},renderPortal(){if(!s)return
|
|
1191
|
+
`},renderPortal(){if(!s)return o.nothing;const M=e.props;return o.html`<div class="time-picker-dropdown" ${N.ref(r)}>
|
|
1189
1192
|
<div class="time-picker-content">
|
|
1190
1193
|
<div class="time-column">
|
|
1191
|
-
<div class="time-label">${
|
|
1194
|
+
<div class="time-label">${M.hourLabel??e.locale.TimePicker.hour}</div>
|
|
1192
1195
|
<div class="time-list">
|
|
1193
|
-
<div class="time-option-wrapper" ${
|
|
1194
|
-
${un.map(
|
|
1195
|
-
<div class="time-option-text">${
|
|
1196
|
-
${i===
|
|
1196
|
+
<div class="time-option-wrapper" ${N.ref(d)}>
|
|
1197
|
+
${un.map(G=>o.html`<div @click=${()=>E(G)} class="time-option">
|
|
1198
|
+
<div class="time-option-text">${G.toString().padStart(2,"0")}</div>
|
|
1199
|
+
${i===G?co("12","var(--moz-color-accent)",!1,"check-icon"):o.nothing}
|
|
1197
1200
|
</div>`)}
|
|
1198
1201
|
</div>
|
|
1199
1202
|
</div>
|
|
1200
1203
|
</div>
|
|
1201
1204
|
<div class="time-column">
|
|
1202
|
-
<div class="time-label">${
|
|
1205
|
+
<div class="time-label">${M.minuteLabel??e.locale.TimePicker.minute}</div>
|
|
1203
1206
|
<div class="time-list">
|
|
1204
|
-
<div class="time-option-wrapper" ${
|
|
1205
|
-
${pn.map(
|
|
1206
|
-
<div class="time-option-text">${
|
|
1207
|
-
${h===
|
|
1207
|
+
<div class="time-option-wrapper" ${N.ref(m)}>
|
|
1208
|
+
${pn.map(G=>o.html`<div @click=${()=>L(G)} class="time-option">
|
|
1209
|
+
<div class="time-option-text">${G.toString().padStart(2,"0")}</div>
|
|
1210
|
+
${h===G?co("12","var(--moz-color-accent)",!1,"check-icon"):o.nothing}
|
|
1208
1211
|
</div>`)}
|
|
1209
1212
|
</div>
|
|
1210
1213
|
</div>
|
|
1211
1214
|
</div>
|
|
1212
1215
|
</div>
|
|
1213
|
-
<div class="time-picker-footer" @click=${
|
|
1214
|
-
${
|
|
1216
|
+
<div class="time-picker-footer" @click=${K}>
|
|
1217
|
+
${M.currentTimeLabel??e.locale.TimePicker.currentTime}
|
|
1215
1218
|
</div>
|
|
1216
|
-
</div>`}}}}),hn={name:"MozTimePicker",core:tl,props:["width","modelValue","label","disabled","hourLabel","minuteLabel","currentTimeLabel","required"],emits:["update:modelValue"],slots:[],expose:!1};function mn(e,t=12){return{10:{width:10,height:10},12:{width:12,height:12},14:{width:14,height:14},16:{width:16,height:16},18:{width:18,height:18},20:{width:20,height:20},22:{width:22,height:22},30:{width:30,height:30}}[e]??{width:t,height:t}}function uo(e="var(--moz-color-text-subtle)",t=""){return
|
|
1219
|
+
</div>`}}}}),hn={name:"MozTimePicker",core:tl,props:["width","modelValue","label","disabled","hourLabel","minuteLabel","currentTimeLabel","required"],emits:["update:modelValue"],slots:[],expose:!1};function mn(e,t=12){return{10:{width:10,height:10},12:{width:12,height:12},14:{width:14,height:14},16:{width:16,height:16},18:{width:18,height:18},20:{width:20,height:20},22:{width:22,height:22},30:{width:30,height:30}}[e]??{width:t,height:t}}function uo(e="var(--moz-color-text-subtle)",t=""){return o.html`<svg class=${t} width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1217
1220
|
<path d="M9 3L3 9M3 3L9 9" stroke=${e} stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
1218
|
-
</svg>`}function po(e="12",t="var(--moz-color-text-subtle)",
|
|
1221
|
+
</svg>`}function po(e="12",t="var(--moz-color-text-subtle)",l=!1,n=""){const r=mn(e,12),d=l?"var(--moz-color-text-muted)":t;return o.html`<svg class=${n} xmlns="http://www.w3.org/2000/svg" width=${r.width} height=${r.height} viewBox="0 0 12 12">
|
|
1219
1222
|
<g transform="translate(-0.005)">
|
|
1220
1223
|
<path
|
|
1221
1224
|
d="M2.311,12.843a1.028,1.028,0,0,1-.291-.933L2.53,9.262a1.029,1.029,0,0,1,.279-.528L9.241,2.186a1.036,1.036,0,0,1,1.45-.021l2.151,2.071A1.03,1.03,0,0,1,12.861,5.7L6.432,12.246a1.024,1.024,0,0,1-.518.283l-2.665.58a.957.957,0,0,1-.22.024,1.027,1.027,0,0,1-.718-.291M3.652,9.515,3.183,11.95l2.456-.535L10.132,6.84,8.147,4.934Zm7.285-3.494,1.021-1.036L9.979,3.079,8.957,4.114Z"
|
|
@@ -1225,104 +1228,104 @@
|
|
|
1225
1228
|
stroke-width="0.6"
|
|
1226
1229
|
></path>
|
|
1227
1230
|
</g>
|
|
1228
|
-
</svg>`}const fn=new Set(["modelValue","itemsSource","label","placeholder","required","disabled","isReadOnly","width","rules","keyProp","displayProp","class","style"]);function gn(e,t){let
|
|
1231
|
+
</svg>`}const fn=new Set(["modelValue","itemsSource","label","placeholder","required","disabled","isReadOnly","width","rules","keyProp","displayProp","class","style"]);function gn(e,t){let l;return(...n)=>{l&&clearTimeout(l),l=setTimeout(()=>e(...n),t)}}const ol=we({name:"moz-tag-input",defaults:{modelValue:[],required:!1,label:"",addButtonLabel:"",itemsSource:[],displayKey:"",pattern:"",dynamicSearch:!1,simplify:!1,limitItemLength:0,limitTextLength:0,disableUpdate:!1,disableDelete:!1,pushOnBlur:!1,isExpandTop:!1},setup(e){const t=N.createRef(),l=N.createRef();let n=null,r=[],d=!1,m=!1,s="",i=!1,h={};const a=()=>e.props,u=g=>a().pattern?new RegExp(`${a().pattern}`).test(g):!0,p=()=>r.map((g,B)=>({...g,idx:B})).filter(g=>g.isSelected!==-1).sort((g,B)=>g.isSelected-B.isSelected),v=()=>p().map(g=>g.value),$=()=>!p().some(g=>!g.isValid),A=(g,B)=>{const Z=a().limitItemLength;(!B||B&&Z&&p().length<Z||B&&!Z)&&(B&&r[g].isSelected===-1||!B)&&(r[g].isSelected=B?Date.now():-1)},S=(g,B)=>{const Z=r.findIndex(De=>De.value===g);if(Z!==-1)return v().includes(g)?!1:(A(Z,!0),!0);const X={key:Date.now(),isSelected:B?Date.now():-1,isValid:u(g),isEditing:!1,beforeValue:g,value:g};X.isValid&&a().requestCreate&&a().requestCreate(g);const ve=a().limitItemLength;return!B||!ve||B&&ve&&p().length<ve?(r.push(X),!0):!1},y=g=>{r.splice(g,1)},D=g=>{r[g].isValid=u(r[g].value),r[g].isValid&&a().requestUpdate&&a().requestUpdate({before:r[g].beforeValue,after:r[g].value}),r[g].beforeValue=r[g].value},E=()=>{r=r.filter(g=>g.isSelected!==-1),(a().itemsSource??[]).forEach(g=>{S(a().displayKey?g[a().displayKey]:g,!1)})};E();const L=()=>{const g=a().modelValue;if(g&&g.toString()!==v().toString()){const B=[...g];r.forEach((Z,X)=>{const ve=B.indexOf(Z.value);ve!==-1&&(Z.key===-1&&A(X,!0),B.splice(ve,1))}),B.forEach(Z=>S(Z,!0))}};L();let K=a().modelValue,W=a().itemsSource,te=v().toString();const ae=()=>{if(!t.value||!l.value)return;const g=t.value.getBoundingClientRect();let B=g.left;g.left+l.value.clientWidth>document.body.clientWidth&&(B-=l.value.clientWidth-g.width),h={minWidth:`${g.width}px`,width:`${g.width}px`,left:`${B}px`,top:`${g.top}px`},e.requestUpdate()},ee=g=>{const B=g.target,Z=()=>{s&&a().pushOnBlur&&S(s,!0)&&e.emit("modelChange",v()),s="",m=!1,d=!1};B.className&&Array.from(String(B.className).split(" ")).includes("tag-input-not-close")||Z(),U(""),window.removeEventListener("mousedown",ee),e.requestUpdate()},Y=()=>{d=!0,window.addEventListener("mousedown",ee),e.requestUpdate(),queueMicrotask(ae)};e.onCleanup(()=>window.removeEventListener("mousedown",ee));const M=g=>{setTimeout(()=>{const B=l.value,Z=B==null?void 0:B.querySelector(`[data-edit-idx="${g}"] .moz-auto-input`);Z==null||Z.focus()},0)},G=g=>{r[g].isEditing=!0,e.requestUpdate(),M(g)},ne=()=>{m=!0,Y(),setTimeout(()=>n==null?void 0:n.focus(),0)},oe=g=>{if(g.key==="Enter"&&s===""&&e.emit("onEnterEmpty",v()),(g.key==="Enter"||g.key==="Tab"&&a().pushOnBlur)&&s!==""&&(S(s,!0)&&(e.emit("modelChange",v()),s=""),e.requestUpdate()),g.key==="Tab"&&(d=!1,m=!1,e.requestUpdate()),g.key==="Backspace"){const B=g.target,Z=p();B.selectionStart===0&&Z.length>0&&(A(Z[Z.length-1].idx,!1),e.requestUpdate())}},J=g=>{a().dynamicSearch&&a().requestRead&&(i=!0,e.requestUpdate(),U(g.target.value))},U=gn(g=>{a().requestRead&&a().requestRead(g).then(()=>{i=!1,e.requestUpdate()})},300),b=(g,B)=>{g.key==="Backspace"&&r[B].value===""&&r.length>1&&(y(B),e.requestUpdate())},R=g=>{g.key==="Enter"&&(m=!0,e.requestUpdate(),setTimeout(()=>n==null?void 0:n.focus(),0))},_=g=>{r[g].value===""&&y(g),(r.length>1||r[g]&&r[g].value!=="")&&r[g]&&(r[g].isEditing=!1),r[g]&&D(g),e.requestUpdate()},k=g=>{A(g,!0),e.requestUpdate(),n==null||n.focus()},z=g=>{g.style.width="1px",g.style.width=`${g.scrollWidth}px`},T=g=>{const B=a().limitTextLength;return o.html`<input
|
|
1229
1232
|
class="moz-auto-input tag-input-common tag-input-add"
|
|
1230
1233
|
.value=${g.value}
|
|
1231
1234
|
style="width:1px"
|
|
1232
|
-
${
|
|
1233
|
-
@input=${
|
|
1234
|
-
@keydown=${
|
|
1235
|
-
@keyup=${
|
|
1236
|
-
@blur=${()=>{var
|
|
1237
|
-
/>`},
|
|
1235
|
+
${N.ref(Z=>{var ve;const X=Z??null;X&&z(X),(ve=g.captureEl)==null||ve.call(g,X)})}
|
|
1236
|
+
@input=${Z=>{var ve;const X=Z.target;B&&X.value.length<=B||!B||B===-1?g.setValue(X.value):X.value=g.value,z(X),(ve=g.onInputExtra)==null||ve.call(g,Z)}}
|
|
1237
|
+
@keydown=${Z=>{var X;return(X=g.onKeydown)==null?void 0:X.call(g,Z)}}
|
|
1238
|
+
@keyup=${Z=>{var X;return(X=g.onKeyup)==null?void 0:X.call(g,Z)}}
|
|
1239
|
+
@blur=${()=>{var Z;return(Z=g.onBlur)==null?void 0:Z.call(g)}}
|
|
1240
|
+
/>`},I=(g,B,Z)=>o.html`<div class="tag-input-controller" style=${le.styleMap({display:g.isSelected!==-1?"":"none"})}>
|
|
1238
1241
|
<div
|
|
1239
|
-
class=${
|
|
1242
|
+
class=${V("tag-input-item",{invalid:!g.isValid})}
|
|
1240
1243
|
data-isValid=${String(g.isValid)}
|
|
1241
1244
|
data-edit-idx=${g.idx}
|
|
1242
|
-
@mousedown=${
|
|
1245
|
+
@mousedown=${X=>X.stopPropagation()}
|
|
1243
1246
|
>
|
|
1244
|
-
${
|
|
1247
|
+
${Z&&a().simplify&&g.isEditing?T({value:g.value,setValue:X=>{r[g.idx].value=X,e.requestUpdate()},onKeydown:X=>b(X,g.idx),onKeyup:X=>R(X),onBlur:()=>_(g.idx)}):o.html`<span class="tag-input-preview tag-input-common">${g.value}</span>`}
|
|
1245
1248
|
<div class="tag-input-btn-wrapper">
|
|
1246
|
-
${a().simplify&&!g.isEditing&&!a().disableUpdate?
|
|
1249
|
+
${a().simplify&&!g.isEditing&&!a().disableUpdate?o.html`<span
|
|
1247
1250
|
class="tag-input-button cursor-pointer"
|
|
1248
1251
|
role="button"
|
|
1249
1252
|
tabindex="0"
|
|
1250
1253
|
aria-label=${e.locale.TagInput.editTag.replace("{label}",g.value??"")}
|
|
1251
|
-
@click=${()=>
|
|
1252
|
-
@keydown=${
|
|
1254
|
+
@click=${()=>G(g.idx)}
|
|
1255
|
+
@keydown=${X=>{X.key!=="Enter"&&X.key!==" "||(X.preventDefault(),G(g.idx))}}
|
|
1253
1256
|
>${po("10")}</span
|
|
1254
|
-
>`:
|
|
1257
|
+
>`:o.nothing}
|
|
1255
1258
|
<span
|
|
1256
1259
|
class="tag-input-button cursor-pointer"
|
|
1257
1260
|
role="button"
|
|
1258
1261
|
tabindex="0"
|
|
1259
1262
|
aria-label=${e.locale.TagInput.removeTag.replace("{label}",g.value??"")}
|
|
1260
|
-
@click=${()=>{
|
|
1261
|
-
@keydown=${
|
|
1263
|
+
@click=${()=>{A(g.idx,!1),e.requestUpdate()}}
|
|
1264
|
+
@keydown=${X=>{X.key!=="Enter"&&X.key!==" "||(X.preventDefault(),A(g.idx,!1),e.requestUpdate())}}
|
|
1262
1265
|
>${uo()}</span
|
|
1263
1266
|
>
|
|
1264
1267
|
</div>
|
|
1265
1268
|
</div>
|
|
1266
|
-
</div>`;return{api:{isValid
|
|
1267
|
-
<div class=${
|
|
1268
|
-
${g.label?
|
|
1269
|
+
</div>`;return{api:{isValid:$},render(){const g=e.props;g.modelValue!==K&&(K=g.modelValue,L()),g.itemsSource!==W&&(W=g.itemsSource,E());const B=v().toString();if(B!==te){te=B;const X=v();queueMicrotask(()=>e.emit("update:modelValue",X))}const Z=ge(g,fn);return o.html`
|
|
1270
|
+
<div class=${V("moz-tag-input-wrapper",g.class)} ${he(Z)}>
|
|
1271
|
+
${g.label?o.html`<label class=${V("tag-input-label",{required:g.required})}>${g.label}</label>`:o.nothing}
|
|
1269
1272
|
<div class="tag-input-grid">
|
|
1270
1273
|
<div
|
|
1271
1274
|
class="tag-input-not-close tag-input-row scrollbar-none"
|
|
1272
|
-
@mousedown=${
|
|
1275
|
+
@mousedown=${X=>{X.stopPropagation(),ne()}}
|
|
1273
1276
|
@click=${Y}
|
|
1274
|
-
${
|
|
1277
|
+
${N.ref(t)}
|
|
1275
1278
|
>
|
|
1276
1279
|
${e.slot("left")}
|
|
1277
|
-
${p().map((
|
|
1278
|
-
${m?
|
|
1279
|
-
${g.limitItemLength&&m?
|
|
1280
|
-
${m?
|
|
1280
|
+
${p().map((X,ve)=>I(X,ve,!1))}
|
|
1281
|
+
${m?o.html`<span class="tag-input-preview tag-input-common" @click=${ne}>${s}</span>`:o.nothing}
|
|
1282
|
+
${g.limitItemLength&&m?o.html`<div class="tag-input-counter">${p().length} / ${g.limitItemLength}</div>`:o.nothing}
|
|
1283
|
+
${m?o.nothing:o.html`<span class="tag-input-add-to">${g.addButtonLabel?g.addButtonLabel:e.locale.TagInput.add} </span>`}
|
|
1281
1284
|
<div class="flex-1"></div>
|
|
1282
1285
|
${e.slot("right")}
|
|
1283
1286
|
</div>
|
|
1284
1287
|
</div>
|
|
1285
1288
|
</div>
|
|
1286
|
-
`},renderPortal(){if(!d)return
|
|
1289
|
+
`},renderPortal(){if(!d)return o.nothing;const g=e.props;return o.html`<div class="absolute z-1501" style=${le.styleMap(h)}>
|
|
1287
1290
|
<div
|
|
1288
1291
|
class="tag-input-placeholder-float tag-input-not-close scrollbar-none shown"
|
|
1289
|
-
@mousedown=${
|
|
1290
|
-
${
|
|
1292
|
+
@mousedown=${B=>{B.stopPropagation(),ne()}}
|
|
1293
|
+
${N.ref(l)}
|
|
1291
1294
|
>
|
|
1292
|
-
${p().map((
|
|
1293
|
-
${m?
|
|
1294
|
-
${i?
|
|
1295
|
+
${p().map((B,Z)=>I(B,Z,!0))}
|
|
1296
|
+
${m?T({value:s,setValue:B=>{s=B,e.requestUpdate()},onKeydown:oe,onKeyup:()=>{},onBlur:()=>{},onInputExtra:J,captureEl:B=>{n=B}}):o.nothing}
|
|
1297
|
+
${i?o.html`<div class="tag-input-loading">
|
|
1295
1298
|
<div class="tag-input-loading-ball-1"></div>
|
|
1296
1299
|
<div class="tag-input-loading-ball-2"></div>
|
|
1297
1300
|
<div class="tag-input-loading-ball-3"></div>
|
|
1298
|
-
</div>`:
|
|
1299
|
-
${g.limitItemLength&&m?
|
|
1301
|
+
</div>`:o.nothing}
|
|
1302
|
+
${g.limitItemLength&&m?o.html`<div class="tag-input-counter" @click=${ne}>
|
|
1300
1303
|
${p().length} / ${g.limitItemLength}
|
|
1301
|
-
</div>`:
|
|
1302
|
-
${m?
|
|
1304
|
+
</div>`:o.nothing}
|
|
1305
|
+
${m?o.nothing:o.html`<span class="tag-input-add-to flex-1">${g.addButtonLabel?g.addButtonLabel:""} </span>`}
|
|
1303
1306
|
</div>
|
|
1304
|
-
${g.simplify?
|
|
1305
|
-
<div class=${
|
|
1307
|
+
${g.simplify?o.nothing:o.html`<div class="tag-input-dropdown-outer-wrapper" @mousedown=${B=>B.stopPropagation()}>
|
|
1308
|
+
<div class=${V("tag-input-dropdown-wrapper",{"expand-top":g.isExpandTop})}>
|
|
1306
1309
|
<div class="tag-input-dropdown-inner-wrapper">
|
|
1307
1310
|
<div class="tag-input-dropdown-title"></div>
|
|
1308
|
-
${r.map((
|
|
1311
|
+
${r.map((B,Z)=>o.html`<div class="dropdown-tag-input-item-wrapper tag-input-controller">
|
|
1309
1312
|
<div
|
|
1310
|
-
class=${
|
|
1311
|
-
data-isValid=${String(
|
|
1312
|
-
data-edit-idx=${
|
|
1313
|
-
@click=${()=>k(
|
|
1313
|
+
class=${V("tag-input-item tag-item-limit-width",{invalid:!B.isValid})}
|
|
1314
|
+
data-isValid=${String(B.isValid)}
|
|
1315
|
+
data-edit-idx=${Z}
|
|
1316
|
+
@click=${()=>k(Z)}
|
|
1314
1317
|
>
|
|
1315
|
-
${
|
|
1316
|
-
<span>${
|
|
1318
|
+
${B.isEditing?T({value:B.value,setValue:X=>{r[Z].value=X,e.requestUpdate()},onKeydown:X=>b(X,Z),onKeyup:X=>R(X),onBlur:()=>_(Z)}):o.html`<span class="tag-input-preview tag-input-common">
|
|
1319
|
+
<span>${B.value}</span>
|
|
1317
1320
|
<div class="tag-input-btn-wrapper">
|
|
1318
|
-
${!
|
|
1321
|
+
${!B.isEditing&&!g.disableUpdate?o.html`<span
|
|
1319
1322
|
class="tag-input-button cursor-pointer"
|
|
1320
|
-
@click=${
|
|
1323
|
+
@click=${X=>{X.stopPropagation(),G(Z)}}
|
|
1321
1324
|
>${po("10")}</span
|
|
1322
|
-
>`:
|
|
1323
|
-
${g.disableDelete?
|
|
1325
|
+
>`:o.nothing}
|
|
1326
|
+
${g.disableDelete?o.nothing:o.html`<span
|
|
1324
1327
|
class="tag-input-button cursor-pointer"
|
|
1325
|
-
@click=${
|
|
1328
|
+
@click=${X=>{X.stopPropagation(),y(Z),e.requestUpdate()}}
|
|
1326
1329
|
>${uo()}</span
|
|
1327
1330
|
>`}
|
|
1328
1331
|
</div>
|
|
@@ -1332,84 +1335,84 @@
|
|
|
1332
1335
|
</div>
|
|
1333
1336
|
</div>
|
|
1334
1337
|
</div>`}
|
|
1335
|
-
</div>`}}}}),vn={name:"MozTagInput",core:ol,props:["modelValue","required","label","addButtonLabel","itemsSource","displayKey","pattern","dynamicSearch","requestCreate","requestRead","requestUpdate","simplify","limitItemLength","limitTextLength","disableUpdate","disableDelete","pushOnBlur","isExpandTop"],emits:["update:modelValue","modelChange","onEnterEmpty"],slots:["left","right"],expose:!0},wn=new Set(["itemSource","fixPosition","noPadding","minWidth","class","style"]);function Cn(e,t){let
|
|
1336
|
-
class=${
|
|
1337
|
-
@mouseenter=${()=>
|
|
1338
|
-
@mouseleave=${()=>
|
|
1338
|
+
</div>`}}}}),vn={name:"MozTagInput",core:ol,props:["modelValue","required","label","addButtonLabel","itemsSource","displayKey","pattern","dynamicSearch","requestCreate","requestRead","requestUpdate","simplify","limitItemLength","limitTextLength","disableUpdate","disableDelete","pushOnBlur","isExpandTop"],emits:["update:modelValue","modelChange","onEnterEmpty"],slots:["left","right"],expose:!0},wn=new Set(["itemSource","fixPosition","noPadding","minWidth","class","style"]);function Cn(e,t){let l;return(...n)=>{l&&clearTimeout(l),l=setTimeout(()=>e(...n),t)}}const bn=500,ll=we({name:"moz-context-menu",defaults:{transition:"fade",minWidth:"150px",direction:"rb"},setup(e){let t=null,l=null;const n=N.createRef();let r=!1,d=!1,m=!1,s=!1,i=null,h=!1,a=!1,u=!1,p=!1;const v=new Map,$=new Map,A=new Map,S=new Map,y=()=>{r&&d&&(i||e.props.itemSource)&&l&&!p&&(p=!0,e.emit("open",{target:l}))},D=b=>{const R=m!==b;m=b,e.requestUpdate(),R&&!b&&setTimeout(()=>{r=!1,s=!1,p=!1,e.emit("close",{target:l}),e.requestUpdate()},50)},E=b=>{const R=r!==b;r=b,e.requestUpdate(),R&&(setTimeout(()=>{d=r,e.requestUpdate(),y()},0),D(r),y())},L=b=>{if(e.props.disableCloseOnClickBackdrop)return;const R=["list-box-container"],_=b.composedPath();_.includes(l)||R.forEach(k=>{(!k||k&&!_.some(z=>{var T;return(T=z.classList)==null?void 0:T.contains(k)}))&&K()})},K=()=>{(e.props.beforeClose??(()=>{}))&&(D(!1),window.removeEventListener("mousedown",L),window.removeEventListener("resize",K))},W=(b,R)=>{b instanceof Function&&(i=b(R)),E(!0),setTimeout(()=>E(!0),60)},te=()=>{r?K():W()},ae=()=>{const b=e.props.fixPosition;if(!b)return;const R=b.selector&&document.querySelector(b.selector)||t;if(!R||!l||!n.value)return;const _=R.getBoundingClientRect(),k=n.value.getBoundingClientRect();h=_.left+R.clientWidth<k.left+l.clientWidth,a=_.left+R.clientWidth<k.left+l.clientWidth*2,u=_.top+R.clientHeight<k.top+l.clientHeight,b.useTeleport?(l.style.left=`${k.left}px`,l.style.top=`${k.top}px`):(l.style.left=`${n.value.offsetLeft}px`,l.style.top=`${n.value.offsetTop}px`),e.requestUpdate()},ee=b=>{s||(l&&t&&(e.props.fixPosition?ae():(h=t.clientWidth<b.clientX+l.clientWidth,a=t.clientWidth<b.clientX+l.clientWidth*2,u=t.clientHeight<b.clientY+l.clientHeight,l.style.left=`${b.clientX}px`,l.style.top=`${b.clientY}px`)),t&&(t.style.pointerEvents="none"),window.addEventListener("mousedown",L),window.addEventListener("resize",K),s=!0,e.requestUpdate())};e.onCleanup(()=>{window.removeEventListener("mousedown",L),window.removeEventListener("resize",K)});const Y=b=>{let R=S.get(b);return R||(R=Cn((_,k,z)=>{k.children&&(M(z,k),v.set(z,_),e.requestUpdate())},400),S.set(b,R)),R},M=(b,R)=>{if(!R.children||$.get(b))return;const _=A.get(b);if(!_)return;const k=_.getBoundingClientRect();$.set(b,_.clientHeight+k.top>document.body.offsetHeight)},G=(b,R)=>{b.function?(b.function(),K()):b.children&&(M(R,b),v.set(R,!0),e.requestUpdate())},ne=b=>typeof b.disabled=="function"?b.disabled():!!b.disabled,oe=(b,R,_,k)=>{const z=v.get(k)??!1,T=$.get(k)??!1,I=Y(k);return o.html`<div
|
|
1339
|
+
class=${V({"context-menu-item-enable-hover":!("hover"in b)||b.hover,"context-menu-item-wrapper":!0,"context-menu-item-wrapper-selected":z,"context-menu-item-wrapper-disabled":ne(b)})}
|
|
1340
|
+
@mouseenter=${()=>I(!0,b,k)}
|
|
1341
|
+
@mouseleave=${()=>I(!1,b,k)}
|
|
1339
1342
|
>
|
|
1340
1343
|
<div
|
|
1341
|
-
class=${
|
|
1342
|
-
${
|
|
1344
|
+
class=${V({"context-menu-sub-items-wrapper-right":_&&!T,"context-menu-sub-items-wrapper-bottom":T&&!_,"context-menu-sub-items-wrapper-bottom-right":T&&_,"context-menu-sub-items-wrapper-hide":!b.children||!z,"context-menu-sub-items-wrapper":!T&&!_})}
|
|
1345
|
+
${N.ref(g=>{g&&A.set(k,g)})}
|
|
1343
1346
|
>
|
|
1344
|
-
${
|
|
1347
|
+
${b.children?U(b.children,R+1,_,k):o.nothing}
|
|
1345
1348
|
</div>
|
|
1346
|
-
${
|
|
1347
|
-
class=${`context-menu-item-${
|
|
1348
|
-
@mouseup=${()=>{var g;(!("hover"in
|
|
1349
|
+
${b.template?o.html`<div
|
|
1350
|
+
class=${`context-menu-item-${b.template}`}
|
|
1351
|
+
@mouseup=${()=>{var g;(!("hover"in b)||b.hover)&&((g=b.function)==null||g.call(b),K())}}
|
|
1349
1352
|
>
|
|
1350
|
-
${
|
|
1351
|
-
</div>`:
|
|
1353
|
+
${J(b)}
|
|
1354
|
+
</div>`:o.html`<div
|
|
1352
1355
|
class="context-menu-item"
|
|
1353
1356
|
role="menuitem"
|
|
1354
1357
|
tabindex="-1"
|
|
1355
|
-
aria-disabled=${ne(
|
|
1356
|
-
aria-haspopup=${
|
|
1357
|
-
@click=${()=>
|
|
1358
|
+
aria-disabled=${ne(b)?"true":"false"}
|
|
1359
|
+
aria-haspopup=${b.children?"menu":"false"}
|
|
1360
|
+
@click=${()=>G(b,k)}
|
|
1358
1361
|
>
|
|
1359
|
-
<div class="context-menu-item-left">${
|
|
1360
|
-
${
|
|
1362
|
+
<div class="context-menu-item-left">${b.text}</div>
|
|
1363
|
+
${b.children?o.html`<div class="context-menu-item-right"></div>`:o.nothing}
|
|
1361
1364
|
</div>`}
|
|
1362
|
-
</div>`},
|
|
1363
|
-
role=${
|
|
1364
|
-
class=${
|
|
1365
|
+
</div>`},J=b=>{const R=b.template,_=R.includes("[col-padding]")?"col-padding":R.includes("[row-padding]")?"row-padding":R.includes("[padding]")?"padding":null,k=e.slots.has(R)?e.slot(R,{props:{...b}}):o.nothing;return _?o.html`<div class="context-menu-item-template" data-layout=${_}>${k}</div>`:o.html`${k}`},U=(b,R,_,k)=>{const z=R===0;return o.html`<div
|
|
1366
|
+
role=${z?"menu":"group"}
|
|
1367
|
+
class=${V("context-menu-content-wrapper",z?e.props.class:void 0)}
|
|
1365
1368
|
data-noPadding=${String(!!e.props.noPadding)}
|
|
1366
1369
|
style=${le.styleMap({minWidth:e.props.minWidth})}
|
|
1367
|
-
${he(
|
|
1370
|
+
${he(z?ge(e.props,wn):{})}
|
|
1368
1371
|
>
|
|
1369
|
-
${
|
|
1370
|
-
${
|
|
1372
|
+
${b.map((T,I)=>{const g=`${k}/${R}-${I}`;return o.html`<div class="context-menu-item-outer-wrapper" style=${le.styleMap({display:T!=null&&T.hidden?"none":""})}>
|
|
1373
|
+
${T.separator?o.html`<div class="context-menu-separator"></div>`:oe(T,R,_,g)}
|
|
1371
1374
|
</div>`})}
|
|
1372
|
-
</div>`};return{api:{state:()=>r,open:
|
|
1375
|
+
</div>`};return{api:{state:()=>r,open:W,close:K,toggle:te},render(){const b=e.props;return b.fixPosition?o.html`<div
|
|
1373
1376
|
class="context-menu-fixed-position-space"
|
|
1374
|
-
style=${le.styleMap({left:typeof
|
|
1375
|
-
${
|
|
1376
|
-
></div>`:
|
|
1377
|
+
style=${le.styleMap({left:typeof b.fixPosition.left=="string"?b.fixPosition.left:`${b.fixPosition.left}px`,top:typeof b.fixPosition.top=="string"?b.fixPosition.top:`${b.fixPosition.top}px`})}
|
|
1378
|
+
${N.ref(n)}
|
|
1379
|
+
></div>`:o.nothing},renderPortal(){const b=e.props,R=i||b.itemSource;if(!r||!R)return o.nothing;const _=b.transition,k=b.direction;return o.html`
|
|
1377
1380
|
<div
|
|
1378
1381
|
class="context-menu-wrapper"
|
|
1379
|
-
@mouseenter=${
|
|
1380
|
-
@contextmenu=${
|
|
1381
|
-
${
|
|
1382
|
+
@mouseenter=${ee}
|
|
1383
|
+
@contextmenu=${z=>z.preventDefault()}
|
|
1384
|
+
${N.ref(z=>{z&&(t=z)})}
|
|
1382
1385
|
></div>
|
|
1383
1386
|
<div
|
|
1384
|
-
class=${
|
|
1385
|
-
style=${le.styleMap({transitionDuration:`${bn}ms`,...
|
|
1386
|
-
@contextmenu=${
|
|
1387
|
-
${
|
|
1387
|
+
class=${V({[`before-${_}`]:!0,[`after-${_}`]:d&&m,"context-menu-content-hide":!r,"context-menu-content-init":!0,"context-menu-content-init-right":h&&!u||k==="lb"||k.startsWith("l")&&!u||k.endsWith("b")&&h,"context-menu-content-init-bottom":u&&!h||k==="rt"||k.startsWith("r")&&u||k.endsWith("t")&&!h,"context-menu-content-init-bottom-right":u&&h||k==="lt"||k.startsWith("l")&&u||k.endsWith("t")&&h})}
|
|
1388
|
+
style=${le.styleMap({transitionDuration:`${bn}ms`,...b.toTopCenter?{transform:"translate(-50%, -100%)"}:{},...b.toBottomCenter?{transform:"translate(-50%, 0)"}:{}})}
|
|
1389
|
+
@contextmenu=${z=>z.preventDefault()}
|
|
1390
|
+
${N.ref(z=>{z&&(l=z,y())})}
|
|
1388
1391
|
>
|
|
1389
|
-
${
|
|
1392
|
+
${U(R,0,a,"root")}
|
|
1390
1393
|
</div>
|
|
1391
|
-
`}}}}),yn={name:"MozContextMenu",core:ll,props:["itemSource","beforeClose","transition","minWidth","direction","fixPosition","toTopCenter","toBottomCenter","noPadding","disableCloseOnClickBackdrop"],emits:["open","close"],slots:[],expose:!0},vt=32,ho=300,$n=29,Sn=32,mo=120,kn=34,En=12,fo=30,Pn=new Set(["itemsSource","label","width","required","readonly","disabled","keyProp","displayProps","columnWidths","separator","rules","useFilter","listWidth","searchPlaceholder","emptyText","requiredMessage","useObjKeyProp","columnHeaders","modelValue","class","style"]);function xn(e,t){let
|
|
1394
|
+
`}}}}),yn={name:"MozContextMenu",core:ll,props:["itemSource","beforeClose","transition","minWidth","direction","fixPosition","toTopCenter","toBottomCenter","noPadding","disableCloseOnClickBackdrop"],emits:["open","close"],slots:[],expose:!0},vt=32,ho=300,$n=29,Sn=32,mo=120,kn=34,En=12,fo=30,Pn=new Set(["itemsSource","label","width","required","readonly","disabled","keyProp","displayProps","columnWidths","separator","rules","useFilter","listWidth","searchPlaceholder","emptyText","requiredMessage","useObjKeyProp","columnHeaders","modelValue","class","style"]);function xn(e,t){let l;return(...n)=>{l&&clearTimeout(l),l=setTimeout(()=>e(...n),t)}}function Ln(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const sl=we({name:"moz-table-select",defaults:{label:null,required:!1,readonly:!1,disabled:!1,keyProp:"id",displayProps:["text"],columnWidths:[],separator:" / ",rules:[],useFilter:!0,useObjKeyProp:!1,modelValue:null},setup(e){const t=N.createRef(),l=N.createRef(),n=N.createRef(),r=N.createRef(),d=N.createRef(),m=N.createRef();let s=null,i=e.props.modelValue??null;const h=()=>e.controlled("modelValue")?e.props.modelValue??null:i,a=c=>{e.controlled("modelValue")||(i=c),e.emit("update:modelValue",c),e.requestUpdate()};let u=!1,p="",v=-1;const $={change:"",blur:"",save:""};let A=h();const S=()=>e.props.keyProp||"id",y=()=>e.props.displayProps??["text"],D=new Fe.Virtualizer({count:0,getScrollElement:()=>s,estimateSize:()=>vt,measureElement:c=>c.getBoundingClientRect().height,overscan:5,observeElementRect:Fe.observeElementRect,observeElementOffset:Fe.observeElementOffset,scrollToFn:Fe.elementScroll,onChange:()=>e.requestUpdate()});e.onCleanup(()=>{T==null||T.release(),T=null}),e.onCleanup(D._didMount());const E=c=>{s=c??null,c&&(D._willUpdate(),e.requestUpdate())},L=c=>{const x=h();return x==null?!1:e.props.useObjKeyProp?typeof x!="object"?!1:y().every(j=>c[j]===x[j]):c[S()]===x},K=()=>h()==null||!e.props.itemsSource?null:e.props.itemsSource.find(c=>L(c))??null,W=c=>e.props.itemsSource?e.props.itemsSource.find(x=>x[S()]===c)??null:null,te=()=>{const c=h();if(c==null)return null;const x=e.props.useObjKeyProp?K():W(c);return x?y().map(j=>String(x[j]??"")).join(e.props.separator):null},ae=()=>{const c=y(),x=e.props.columnWidths??[],j=c.reduce((de,$e,be)=>de+(x[be]??mo),0),re=Math.max(0,c.length-1)*En;return j+re+kn+fo},ee=()=>{const c=e.props.width;return c!=null?typeof c=="number"?`${Le(c)}rem`:c:`${ae()}px`},Y=c=>{const x=(e.props.columnWidths??[])[c]??mo,j=c===y().length-1;return`${x+(j?fo:0)}px`},M=()=>{if(!p)return e.props.itemsSource??[];const c=p.toLowerCase();return(e.props.itemsSource??[]).filter(x=>y().some(j=>String(x[j]??"").toLowerCase().indexOf(c)>-1))},G=c=>{if(!p)return[{part:c,highlight:!1}];const x=Ln(p),j=new RegExp(`(${x})`,"gi");return c.split(j).map(re=>({part:re,highlight:p.toLowerCase()===re.toLowerCase()}))},ne=()=>{const c=h();return e.props.useObjKeyProp?c==null?"":String(c):c},oe=()=>$.save||$.blur||$.change,J=()=>{const c=[];return e.props.required&&c.push({message:e.props.requiredMessage??e.locale.TableSelect.requiredMessage.replace("{label}",e.props.label||""),type:"save",validator:x=>!!x}),[...c,...e.props.rules??[]]},U=async(c,x)=>{const j=J();if(j.length<=0||e.props.disabled)return!0;$[x]="",e.requestUpdate();const re=j.filter(de=>de.type===x);for(const de of re)if(!await de.validator(c))return $[x]=de.message,e.requestUpdate(),!1;return!0},b=async(c="save")=>oe()!==""?!1:await U(ne(),c),R={validate:b,initValidator:()=>{$.change="",$.blur="",$.save="",e.requestUpdate()}};e.validator&&(e.validator.addValidator(R),e.onCleanup(()=>{var c;return(c=e.validator)==null?void 0:c.removeValidator(R)}));const _=new pt({anchor:()=>l.value??null,panel:()=>n.value??null,maxHeight:()=>ho,container:()=>t.value??null,useMinWidth:!0,listWidth:()=>e.props.listWidth,ignoreScrollTargets:c=>c===s,requestClose:()=>{u&&I(!1)}});e.onCleanup(()=>_.destroy());const k=c=>{c.key==="Escape"&&I(!1)},z=c=>{const x=!!e.props.columnHeaders&&e.props.columnHeaders.length>0,j=ho-(e.props.useFilter?$n:0)-(x?Sn:0),de=vt*c-j/2;return Math.max(0,de+vt)};let T=null;const I=c=>{u!==c&&(u=c,e.requestUpdate(),c?(T=ht(),_.open(),$.save="",window.addEventListener("keydown",k),queueMicrotask(()=>{var j;if(h()!=null){const re=M().findIndex(de=>L(de));re>=0&&(v=re,s&&(s.scrollTop=z(re)),e.requestUpdate())}m.value?m.value.focus():(j=d.value)==null||j.focus()})):(T==null||T.release(),T=null,_.close(),e.emit("close"),U(ne(),"blur"),v=-1,window.removeEventListener("keydown",k),p="",e.emit("close"),queueMicrotask(()=>{var x;return(x=d.value)==null?void 0:x.focus()})))};e.onCleanup(()=>window.removeEventListener("keydown",k));const g=()=>{var c;e.props.disabled||(I(!u),(c=d.value)==null||c.focus())},B=c=>{a(e.props.useObjKeyProp?{...c}:c[S()]),I(!1)},Z=()=>{queueMicrotask(()=>D.scrollToIndex(v,{align:"auto"}))},X=c=>{c.preventDefault();const x=M().length-1;x<0||(v=v>=x?0:v+1,e.requestUpdate(),Z())},ve=c=>{c.preventDefault();const x=M().length-1;x<0||(v=v<=0?x:v-1,e.requestUpdate(),Z())},De=c=>{c.preventDefault();const x=M();v>=0&&v<x.length&&B(x[v])},Ne=c=>{c.key==="ArrowDown"?X(c):c.key==="ArrowUp"?ve(c):c.key==="Enter"&&De(c)},Oe=xn(c=>{p=c.target.value;const x=M().length;v=x>0?0:-1,e.requestUpdate(),queueMicrotask(()=>{D.setOptions({...D.options,count:x}),D.measure(),s&&(s.scrollTop=0,D.scrollToIndex(0),D.measure())})},300);return{api:{validate:b},render(){const c=e.props,x=h();if(x!==A){A=x;const $e=x;queueMicrotask(()=>{U(ne(),"change");let be=null;c.useObjKeyProp?be=K():$e!=null&&(be=W($e)),e.emit("change",$e,be)})}const j=ge(c,Pn),{aria:re,dom:de}=ut(j);return o.html`
|
|
1392
1395
|
<div
|
|
1393
|
-
class=${
|
|
1396
|
+
class=${V("moz-table-select",{"is-invalid":oe()!=="","is-open":u,disabled:!!c.disabled})}
|
|
1394
1397
|
style=${le.styleMap(Pe(c.style))}
|
|
1395
|
-
${
|
|
1398
|
+
${N.ref(t)}
|
|
1396
1399
|
>
|
|
1397
1400
|
<div class="input-wrapper">
|
|
1398
|
-
${c.label?Be({disabled:c.disabled,required:c.required},c.label):
|
|
1401
|
+
${c.label?Be({disabled:c.disabled,required:c.required},c.label):o.nothing}
|
|
1399
1402
|
<div
|
|
1400
1403
|
class="moz-input-container select-input-container"
|
|
1401
|
-
style=${le.styleMap({width:
|
|
1404
|
+
style=${le.styleMap({width:ee()})}
|
|
1402
1405
|
@click=${g}
|
|
1403
|
-
${
|
|
1406
|
+
${N.ref(l)}
|
|
1404
1407
|
>
|
|
1405
1408
|
<input
|
|
1406
1409
|
${he(de)}
|
|
1407
|
-
.value=${
|
|
1410
|
+
.value=${te()??""}
|
|
1408
1411
|
autocomplete="off"
|
|
1409
1412
|
?disabled=${!!c.disabled}
|
|
1410
1413
|
readonly
|
|
1411
1414
|
tabindex="-1"
|
|
1412
|
-
class=${
|
|
1415
|
+
class=${V("select-display-input",{"select-display-input--disabled":c.disabled})}
|
|
1413
1416
|
/>
|
|
1414
1417
|
<button
|
|
1415
1418
|
type="button"
|
|
@@ -1420,67 +1423,67 @@
|
|
|
1420
1423
|
aria-expanded=${u?"true":"false"}
|
|
1421
1424
|
aria-label=${xe.ifDefined(re["aria-label"]??c.label)}
|
|
1422
1425
|
?disabled=${!!c.disabled}
|
|
1423
|
-
${
|
|
1426
|
+
${N.ref(d)}
|
|
1424
1427
|
>
|
|
1425
1428
|
${u?eo("14","var(--moz-color-accent)"):Jt("14","var(--moz-color-text-subtle)",c.disabled)}
|
|
1426
1429
|
</button>
|
|
1427
1430
|
</div>
|
|
1428
1431
|
</div>
|
|
1429
|
-
${
|
|
1432
|
+
${oe()!==""?o.html`<span class="moz-input-invalid-message">${oe()}</span>`:o.nothing}
|
|
1430
1433
|
</div>
|
|
1431
|
-
`},renderPortal(){if(!u)return
|
|
1432
|
-
class=${
|
|
1434
|
+
`},renderPortal(){if(!u)return o.nothing;const c=e.props,x=y(),j=M(),re=!!c.columnHeaders&&c.columnHeaders.length>0;D.options.count!==j.length&&D.setOptions({...D.options,count:j.length}),D._willUpdate();const de=D.getTotalSize(),$e=Tt(D.getVirtualItems(),j.length,vt,s).map(C=>{if(C.index>=j.length)return null;const q=j[C.index];return q?{index:C.index,value:q,start:C.start}:null}).filter(C=>C!==null),be=c.listWidth?typeof c.listWidth=="number"?`${c.listWidth}px`:c.listWidth:void 0;return o.html`<div
|
|
1435
|
+
class=${V("table-list-box",{"no-label":!c.label},c.class)}
|
|
1433
1436
|
style=${le.styleMap({width:be})}
|
|
1434
|
-
@keydown=${
|
|
1435
|
-
${
|
|
1437
|
+
@keydown=${Ne}
|
|
1438
|
+
${N.ref(n)}
|
|
1436
1439
|
>
|
|
1437
|
-
${c.useFilter?
|
|
1440
|
+
${c.useFilter?o.html`<div class="filter-input">
|
|
1438
1441
|
<div class="search-icon">${to("12","var(--moz-color-text-subtle)")}</div>
|
|
1439
1442
|
<input
|
|
1440
|
-
${
|
|
1443
|
+
${N.ref(m)}
|
|
1441
1444
|
@mousedown=${C=>C.stopPropagation()}
|
|
1442
1445
|
placeholder=${c.searchPlaceholder??e.locale.TableSelect.searchPlaceholder}
|
|
1443
|
-
@input=${
|
|
1446
|
+
@input=${Oe}
|
|
1444
1447
|
class="filter-input__field"
|
|
1445
1448
|
/>
|
|
1446
|
-
</div>`:
|
|
1447
|
-
${re?
|
|
1448
|
-
${x.map((C,q)=>
|
|
1449
|
+
</div>`:o.nothing}
|
|
1450
|
+
${re?o.html`<div class="table-header">
|
|
1451
|
+
${x.map((C,q)=>o.html`<div
|
|
1449
1452
|
class="table-header-cell"
|
|
1450
1453
|
style=${le.styleMap({width:Y(q),minWidth:Y(q),maxWidth:Y(q)})}
|
|
1451
1454
|
>
|
|
1452
1455
|
${(c.columnHeaders??[])[q]??""}
|
|
1453
1456
|
</div>`)}
|
|
1454
|
-
</div>`:
|
|
1457
|
+
</div>`:o.nothing}
|
|
1455
1458
|
<div
|
|
1456
|
-
class=${
|
|
1457
|
-
${
|
|
1459
|
+
class=${V("list-box-container",{"list-box-container--with-filter":c.useFilter,"list-box-container--with-header":re,"list-box-container--with-filter-header":c.useFilter&&re})}
|
|
1460
|
+
${N.ref(E)}
|
|
1458
1461
|
>
|
|
1459
|
-
<div class="inner-container" style=${le.styleMap({height:`${de}px`})} ${
|
|
1460
|
-
${$e.map(({index:C,value:q,start:Ce})=>{const Se=L(q);return
|
|
1462
|
+
<div class="inner-container" style=${le.styleMap({height:`${de}px`})} ${N.ref(r)}>
|
|
1463
|
+
${$e.map(({index:C,value:q,start:Ce})=>{const Se=L(q);return o.html`<div
|
|
1461
1464
|
data-index=${C}
|
|
1462
|
-
${
|
|
1465
|
+
${N.ref(ke=>{ke&&D.measureElement(ke)})}
|
|
1463
1466
|
style=${le.styleMap({transform:`translateY(${Ce}px)`})}
|
|
1464
|
-
class=${
|
|
1465
|
-
@click=${()=>
|
|
1467
|
+
class=${V("virtual-row table-row",{"row-selected":Se,"row-focused":C===v})}
|
|
1468
|
+
@click=${()=>B(q)}
|
|
1466
1469
|
@mouseenter=${()=>{v=C,e.requestUpdate()}}
|
|
1467
1470
|
tabindex="0"
|
|
1468
1471
|
>
|
|
1469
|
-
${x.map((ke,Te)=>
|
|
1472
|
+
${x.map((ke,Te)=>o.html`<div
|
|
1470
1473
|
class="table-cell"
|
|
1471
1474
|
style=${le.styleMap({width:Y(Te),minWidth:Y(Te),maxWidth:Y(Te)})}
|
|
1472
1475
|
title=${String(q[ke]??"")}
|
|
1473
1476
|
>
|
|
1474
|
-
${
|
|
1477
|
+
${G(String(q[ke]??"")).map(Ae=>o.html`<span class=${V({highlight:Ae.highlight})}>${Ae.part}</span>`)}
|
|
1475
1478
|
</div>`)}
|
|
1476
|
-
${Se?Qt("12","var(--moz-color-accent)",!1,"icon-check"):
|
|
1479
|
+
${Se?Qt("12","var(--moz-color-accent)",!1,"icon-check"):o.nothing}
|
|
1477
1480
|
</div>`})}
|
|
1478
1481
|
</div>
|
|
1479
|
-
${!
|
|
1482
|
+
${!j||j.length<=0?o.html`<div class="empty-row table-row">
|
|
1480
1483
|
${e.slots.has("empty")?e.slot("empty"):c.emptyText??e.locale.TableSelect.emptyText}
|
|
1481
|
-
</div>`:
|
|
1484
|
+
</div>`:o.nothing}
|
|
1482
1485
|
</div>
|
|
1483
|
-
</div>`}}}}),Tn={name:"MozTableSelect",core:sl,props:["itemsSource","label","width","required","readonly","disabled","keyProp","displayProps","columnWidths","separator","rules","useFilter","listWidth","searchPlaceholder","emptyText","requiredMessage","useObjKeyProp","columnHeaders","modelValue"],emits:["change","close","update:modelValue"],slots:["empty"],expose:!0};function Mn(e="var(--moz-color-text-subtle)",t=12){return
|
|
1486
|
+
</div>`}}}}),Tn={name:"MozTableSelect",core:sl,props:["itemsSource","label","width","required","readonly","disabled","keyProp","displayProps","columnWidths","separator","rules","useFilter","listWidth","searchPlaceholder","emptyText","requiredMessage","useObjKeyProp","columnHeaders","modelValue"],emits:["change","close","update:modelValue"],slots:["empty"],expose:!0};function Mn(e="var(--moz-color-text-subtle)",t=12){return o.html`<svg xmlns="http://www.w3.org/2000/svg" width=${t} height=${t} viewBox="0 0 12 12" fill="none">
|
|
1484
1487
|
<path
|
|
1485
1488
|
d="M2.49902 4.27679L6.04436 7.73581L9.501 4.27679"
|
|
1486
1489
|
stroke=${e}
|
|
@@ -1488,7 +1491,7 @@
|
|
|
1488
1491
|
stroke-linecap="round"
|
|
1489
1492
|
stroke-linejoin="round"
|
|
1490
1493
|
></path>
|
|
1491
|
-
</svg>`}function zn(e="var(--moz-color-text-subtle)",t=12){return
|
|
1494
|
+
</svg>`}function zn(e="var(--moz-color-text-subtle)",t=12){return o.html`<svg xmlns="http://www.w3.org/2000/svg" width=${t} height=${t} viewBox="0 0 12 12" fill="none">
|
|
1492
1495
|
<path
|
|
1493
1496
|
d="M9.50095 7.73636L5.95563 4.27734L2.49902 7.73636"
|
|
1494
1497
|
stroke=${e}
|
|
@@ -1496,13 +1499,13 @@
|
|
|
1496
1499
|
stroke-linecap="round"
|
|
1497
1500
|
stroke-linejoin="round"
|
|
1498
1501
|
></path>
|
|
1499
|
-
</svg>`}function Vn(e="var(--moz-color-text-subtle)",t=12,
|
|
1502
|
+
</svg>`}function Vn(e="var(--moz-color-text-subtle)",t=12,l=""){return o.html`<svg class=${l} width=${t} height=${t} viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1500
1503
|
<path d="M1.71436 7.07145L3.00007 6.00002L1.71436 4.92859" stroke=${e} stroke-linecap="round" stroke-linejoin="round"></path>
|
|
1501
1504
|
<path d="M5.14307 4.71423H10.2859" stroke=${e} stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
1502
1505
|
<path d="M1.71436 2.14282L10.2858 2.14282" stroke=${e} stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
1503
1506
|
<path d="M5.14307 7.28577H10.2859" stroke=${e} stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
1504
1507
|
<path d="M1.71436 9.85718L10.2858 9.85718" stroke=${e} stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
1505
|
-
</svg>`}function Dn(e="var(--moz-color-text-subtle)",t=12,
|
|
1508
|
+
</svg>`}function Dn(e="var(--moz-color-text-subtle)",t=12,l=""){return o.html`<svg class=${l} width=${t} height=${t} viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1506
1509
|
<path d="M0.856934 4.92852L2.14265 4.07138L0.856934 3.21423" fill=${e}></path>
|
|
1507
1510
|
<path d="M0.856934 4.92852L2.14265 4.07138L0.856934 3.21423V4.92852Z" stroke=${e} stroke-linecap="round" stroke-linejoin="round"></path>
|
|
1508
1511
|
<path d="M0.856934 8.7857L2.14265 7.92855L0.856934 7.07141" fill=${e}></path>
|
|
@@ -1510,19 +1513,19 @@
|
|
|
1510
1513
|
<path d="M3.8501 2.35718H11.1358" stroke=${e} stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
1511
1514
|
<path d="M3.8501 6H11.1358" stroke=${e} stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
1512
1515
|
<path d="M3.8501 9.64282H11.1358" stroke=${e} stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
1513
|
-
</svg>`}const Ft={keyProp:"code",displayProp:"name",categoryLv1ID:"categoryLv1ID",categoryLv1Label:"categoryLv1Label",categoryLv2ID:"categoryLv2ID",categoryLv2Label:"categoryLv2Label",description:"description"};function An(e,t){const o=d=>t.displayProp&&d[t.displayProp]?d[t.displayProp]:d[t.keyProp],n=d=>t.categoryLv1Label&&d[t.categoryLv1Label]?d[t.categoryLv1Label]:t.categoryLv1ID?d[t.categoryLv1ID]:"",r=d=>t.categoryLv2Label&&d[t.categoryLv2Label]?d[t.categoryLv2Label]:t.categoryLv2ID?d[t.categoryLv2ID]:"";return e.map(d=>({code:d[t.keyProp],name:o(d),categoryLv1ID:t.categoryLv1ID&&d[t.categoryLv1ID]||"",categoryLv1Label:n(d),categoryLv2ID:t.categoryLv2ID&&d[t.categoryLv2ID]||"",categoryLv2Label:r(d),description:t.description&&d[t.description]||""}))}function wt(e,t){let o=e.get(t);return o||(o=[],e.set(t,o)),o}function Rn(e){const t=new Map([["depth0",[]],["depth1",[]],["depth2",[]]]),o=new Map,n=new Map;e.forEach(m=>{const s=m.categoryLv1ID;if(!o.get(s)){const i={code:s,name:m.categoryLv1Label??s};o.set(s,i),wt(t,"depth0").push(i)}if(!m.categoryLv2ID||m.categoryLv2ID.trim()==="")wt(t,"depth1").push({...m,parent:m.categoryLv1ID});else{const i=`${m.categoryLv1ID}-${m.categoryLv2ID}`;if(!n.get(i)){const h={code:m.categoryLv2ID,name:m.categoryLv2Label??m.categoryLv2ID,parent:m.categoryLv1ID,isSubCategory:!0};n.set(i,h),wt(t,"depth1").push(h)}wt(t,"depth2").push({...m,parent:m.categoryLv2ID})}});function r(m,s,i,h){const a=`depth${s}`,u=`depth${s+1}`,p=i.get(u),v={...m,depth:s};if(s!==0&&(v.isHidden=!1),p&&p.length>0){const y=h[a],R=h[u],$=p.filter(z=>z[R]===(m.isSubCategory?m.code:m[y]));v.isExpanded=!0;const b=[v];return $.forEach(z=>{b.push(...r(z,s+1,i,h))}),b}return[v]}const d={depth0:"code",depth1:"parent",depth2:"parent"};return(t.get("depth0")??[]).flatMap(m=>r(m,0,t,d))}function qn(e){return new Set(e.map(t=>t.code))}function Ke(e,t){return t===e}function St(e,t){return e.filter(o=>o.categoryLv1ID===t.code||o.categoryLv2ID===t.code)}function Ct(e){return new Set(e.map(t=>t.code))}function At(e,t){return{childDepthList:St(e,t)}}function go(e,t){for(const o of e)if(!t.has(o))return!1;return!0}function xt(e,t,o){t===0&&e.categoryLv1Set.delete(o),t===1&&e.categoryLv2Set.delete(o)}function dt(e,t,o){t===0&&e.categoryLv1Set.add(o),t===1&&e.categoryLv2Set.add(o)}function In(e,t,o){t.length&&e.categoryLv1Set.add(t),o.length&&e.categoryLv2Set.add(o)}function bt(e){e.categoryLv1Set.clear(),e.categoryLv2Set.clear()}function nl(e,t,o,n){if(dt(e,o.depth,o.code),o.parent){const r=t.find(d=>d.code===o.parent);r&&nl(e,t,r)}}function rl(e,t,o,n){if(dt(e,o.depth,o.code),Ke(n,o.depth))return;t.filter(d=>d.parent===o.code).forEach(d=>{Ke(n,d.depth)||rl(e,t,d,n)})}function vo(e,t,o,n){nl(e,t,o),rl(e,t,o,n)}function il(e,t,o,n){if(xt(e,o.depth,o.code),o.parent){const r=t.find(d=>d.code===o.parent);r&&il(e,t,r)}}function al(e,t,o,n){if(xt(e,o.depth,o.code),Ke(n,o.depth))return;t.filter(d=>d.parent===o.code).forEach(d=>{Ke(n,d.depth)||al(e,t,d,n)})}function wo(e,t,o,n){il(e,t,o),al(e,t,o,n)}const Fn=new Set(["modelValue","itemsSource","label","placeholder","required","disabled","isReadOnly","width","rules","keyProp","displayProp","useFilter","useSelectAll","class","style"]),cl=we({name:"moz-tree-select",defaults:{label:null,width:200,required:!1,readonly:!1,disabled:!1,disabledProp:"disabled",rules:[],useSelectAll:!0,useFilter:!0,headerFormat:"ITEMS ({count})",listBoxWidth:0,useSpecificSelect:!0,treeLevels:1,useMultiSelect:!1,treeProps:Ft,modelValue:[]},setup(e){const t=O.createRef(),o=O.createRef(),n=O.createRef(),r=O.createRef(),d=O.createRef();let m=null;const s=(e.props.treeLevels??1)-1,i=s,h=()=>!!e.props.useMultiSelect,a=()=>e.props.disabledProp||"disabled",u=()=>e.props.treeProps??Ft;let p=e.props.modelValue??(h()?[]:"");const v=()=>e.controlled("modelValue")?e.props.modelValue??[]:p,y=()=>{const w=v();return Array.isArray(w)?w:w?[w]:[]},R=w=>{e.controlled("modelValue")||(p=w),e.emit("update:modelValue",w),e.requestUpdate()};let $=!1,b="",z=!1,E=!1,L=!1,W={},N=[];const oe={change:"",blur:"",save:""},ae=new Set,te=new Set,Y={categoryLv1Set:ae,categoryLv2Set:te},T=(()=>{try{const w=getComputedStyle(document.documentElement).getPropertyValue("--size-input-dropdown-item-height");return w?+w.trim().replace("px",""):24}catch{return 24}})();let K=T;const ne=()=>e.slots.has("list-item");let G=[],Z=[],D=e.props.itemsSource;const S=()=>{G=An(e.props.itemsSource??[],u()),Z=Rn(G)};S();const U=()=>{const w=new Map;return G.forEach(P=>w.set(P.code,P)),w},j=w=>w.name??"",k=w=>new Set(y()).has(w.code),V=w=>N.some(P=>rt(P.item,w)),A=()=>new Set(y()),_=()=>{let w=[];if(!b)w=Z;else{const P=[],H=new Set,ce=ie=>`depth${ie.depth}_${ie.code}`;for(const ie of Z)if(ie.depth!==i){for(;P.length&&P[P.length-1].depth>=ie.depth;)P.pop();P.push(ie)}else if(j(ie).toLowerCase().indexOf(b.toLowerCase())>-1){for(const me of P){const ze=ce(me);H.has(ze)||(w.push(me),H.add(ze))}const pe=ce(ie);H.has(pe)||(w.push(ie),H.add(pe))}}if(L){const P=new Set,H=U(),ce=A();w.filter(pe=>{if(ve(pe,ce))return!0;if(h()&&!Ke(s,pe.depth)){const me=St(Z,pe);if(me.length>0&&me.some(ze=>ce.has(ze.code)))return!0}return!1}).forEach(pe=>{let me=pe;for(;me&&(P.add(me.code),!!me.parent);)me=H.get(me.parent)}),w=w.filter(pe=>P.has(pe.code))}return w},g=()=>_().filter(w=>!(w.categoryLv1ID||w.categoryLv2ID)),F=()=>{const w=g();return _().filter(P=>!w.includes(P))},X=()=>new Set(F().map(w=>w.code)),J=()=>qn(F()),ve=(w,P)=>h()?Ke(i,w.depth)?P.has(w.code):ae.has(w.code)||te.has(w.code):v()===w.code,De=w=>{if(Ke(s,w.depth))return!0;const P=St(_(),w);return P.length===0?!0:go(Ct(P),A())},_e=()=>{const w=y().length,P=g().length;if(w<P||w===0||P===0)return!1;for(const H of J())if(!A().has(H))return!1;return!0},He=()=>{const w=J(),P=A();return!w.size||!P.size||P.size<w.size?!1:Array.from(w).every(H=>P.has(H))},c=()=>h()?!!e.props.useSelectAll:!1,x=()=>{const w=v(),P=U();if(typeof w=="string")return P.has(w)?P.get(w).name:w;const H=Array.isArray(w)?w:[],ce=H.filter(ie=>P.has(ie)).map(ie=>P.get(ie).name);return H.length?h()&&ce.length>1?e.props.headerFormat.replace(/\{count(:.*?)?}/g,`${ce.length.toLocaleString()}`):ce.join(", ")||"":""},Q=()=>oe.save||oe.blur||oe.change,re=()=>{const w=[];return e.props.required&&w.push({message:e.locale.TreeSelect.required.replace("{label}",e.props.label||""),type:"save",validator:P=>!!P.length}),[...w,...e.props.rules??[]]},de=async(w,P)=>{const H=re();if(H.length<=0)return;if(e.props.disabled)return!0;oe[P]="",e.requestUpdate();const ce=H.filter(ie=>ie.type===P);for(const ie of ce)if(!await ie.validator(w))return oe[P]=ie.message,e.requestUpdate(),!1;return!0},$e=async(w="save")=>Q()!==""?!1:await de(y(),w)??!0,be={validate:$e,initValidator:()=>{oe.change="",oe.blur="",oe.save="",e.requestUpdate()}};e.validator&&(e.validator.addValidator(be),e.onCleanup(()=>{We==null||We.release(),We=null}),e.onCleanup(()=>{var w;return(w=e.validator)==null?void 0:w.removeValidator(be)}));const C=(w,P)=>w.filter(H=>k(H)!==P).map(H=>H.code),q=w=>{const P=Array.from(new Set(w));rt(y(),P)||(R(P),e.emit("change",P,P.filter(Boolean)),de(P,"change"),Ce(P))},Ce=w=>{w.length===G.length?g().forEach(P=>dt(Y,P.depth,P.code)):w.forEach(P=>{const H=F().find(ce=>ce.code===P);H&&In(Y,H.categoryLv1ID??"",H.categoryLv2ID??"")})},Se=(w,P,H)=>{if(H.shiftKey&&N.length>0){const ce=N[0],ie=Math.min(ce.index,P),pe=Math.max(ce.index,P);N=_().slice(ie,pe+1).map((me,ze)=>({item:me,index:ie+ze}))}else H.ctrlKey?N.push({item:w,index:P}):N=[{item:w,index:P}]},ke=(w,P)=>{if(!Ke(s,w.depth)){const{childDepthList:H}=At(_(),w);if(P){const ce=Ct(H);R(y().filter(ie=>!ce.has(ie))),wo(Y,_(),w,i)}else{const ce=H.map(ie=>ie.code);R([...y(),...ce])}}},Te=(w,P)=>{const ce=N.map(me=>me.item).filter(me=>me.depth===i),ie=C(ce,w);let pe=[];if(P.depth!==s){const{childDepthList:me}=At(_(),P),ze=Ct(me);pe=y().filter(Oe=>!ze.has(Oe))}else pe=y();w?P.depth===s?pe=[...pe,...ie]:vo(Y,_(),P,i):(bt(Y),pe=pe.filter(me=>!ie.some(ze=>me===ze))),q(pe)},Ae=(w,P,H,ce)=>{const ie=N.some(pe=>pe.item.code===w.code);(N.length<=1||!ie)&&Se(w,P,{shiftKey:!1,ctrlKey:!1}),Te(!ce,w),ke(w,ce),e.requestUpdate()},Ne=(w,P,H,ce)=>{w[a()]!==!0&&(!H.ctrlKey&&!H.shiftKey&&N.length<=1&&Ae(w,P,H,ce),Se(w,P,H),e.requestUpdate())},Qe=(w,P,H)=>{if(w[a()]===!0)return;let ce=[],ie=!1;const pe=w.code;if(Ke(s,w.depth))ie=y().length===1&&y()[0]===pe,ie||(ce=[pe]),bt(Y);else{const{childDepthList:me}=At(_(),w),ze=Ct(me);ie=go(ze,A())&&ze.size===A().size,ie?wo(Y,_(),w,i):(ce=[],bt(Y),vo(Y,_(),w,i))}q(ce),ke(w,ie),Se(w,P,H),e.requestUpdate()},ot=w=>{R(w),et(!1)},Je=(w,P)=>{_().filter(ce=>ce.parent===w).forEach(ce=>{if(ce.isHidden=P,ce.depth===i)return;const pe=!P&&!ce.isExpanded?!0:P;Je(ce.code,pe)})},Ze=(w,P)=>{P.stopPropagation(),w.isExpanded=!w.isExpanded,Je(w.code,!w.isExpanded),queueMicrotask(()=>Re.measure()),e.requestUpdate()},f=w=>{Z.forEach(P=>{P.isExpanded=w,P.depth>0?P.isHidden=!w:P.isHidden=!1}),queueMicrotask(()=>Re.measure()),e.requestUpdate()},B=w=>{w.stopPropagation(),X().size===A().size&&[...X()].every(H=>A().has(H))?(g().forEach(H=>xt(Y,H.depth,H.code)),q([])):(bt(Y),g().forEach(H=>dt(Y,H.depth,H.code)),q([...X()]))},I=w=>{if(w.stopPropagation(),He()){const P=J();q(y().filter(H=>!P.has(H))),g().forEach(H=>xt(Y,H.depth,H.code))}else{const P=new Set([...y(),...X()]);q(Array.from(P)),g().forEach(H=>dt(Y,H.depth,H.code))}},ee=w=>{z=w.target.scrollTop>0,e.requestUpdate()},se=()=>{const w=o.value;if(!w)return;const P=w.getBoundingClientRect();let H=`${P.width}px`;e.props.listBoxWidth&&(H=typeof e.props.listBoxWidth=="number"?`${e.props.listBoxWidth}px`:e.props.listBoxWidth),W={width:String(H),left:`${P.left}px`,top:`${P.top+(E?0:P.height)}px`},e.requestUpdate()},ue=(w,P,H=10)=>{const ce=window.innerHeight||document.documentElement.clientHeight,ie=window.innerWidth||document.documentElement.clientWidth,pe=w.getBoundingClientRect(),me=P.getBoundingClientRect(),ze=pe.bottom+me.height+H>ce;if(!ze)return!1;const Oe=pe.top-me.height-H<0,qe=pe.right+me.width+H>ie,Ue=pe.left-me.width-H<0;return ze&&!Oe||qe&&!Ue},fe=w=>{w.target!==m&&et(!1)},ye=w=>{var P,H;!((P=t.value)!=null&&P.contains(w.target))&&!((H=n.value)!=null&&H.contains(w.target))&&(et(!1),document.removeEventListener("click",ye,{capture:!0}))},Me=w=>{var H;`${w.ctrlKey?"ctrl+":""}${w.altKey?"alt+":""}${w.key.toLowerCase()}`==="escape"&&(et(!1),(H=r.value)==null||H.focus())};e.onCleanup(()=>{document.body.removeEventListener("scroll",fe,{capture:!0}),document.removeEventListener("click",ye,{capture:!0}),window.removeEventListener("keydown",Me)});let We=null;const et=w=>{$!==w&&($=w,e.requestUpdate(),w?(We=ht(),document.body.addEventListener("scroll",fe,{capture:!0}),document.addEventListener("click",ye,{capture:!0}),oe.save="",window.addEventListener("keydown",Me),se(),queueMicrotask(()=>{var P;o.value&&m&&(E=ue(o.value,m)),se(),d.value?d.value.focus():(P=r.value)==null||P.focus()})):(We==null||We.release(),We=null,document.body.removeEventListener("scroll",fe,{capture:!0}),document.removeEventListener("click",ye,{capture:!0}),de(y(),"blur"),window.removeEventListener("keydown",Me),b="",e.emit("close")))},it=()=>{e.props.disabled||et(!$)};let lt;const zt=w=>{const P=w.target.value;lt&&clearTimeout(lt),lt=setTimeout(()=>{b=P,e.requestUpdate(),queueMicrotask(()=>{Re.setOptions({...Re.options,count:_().length}),Re.measure()})},300)},Ge=w=>{L=w,e.requestUpdate(),queueMicrotask(()=>{Re.setOptions({...Re.options,count:_().length}),Re.measure()})},Re=new Fe.Virtualizer({count:0,getScrollElement:()=>m,estimateSize:w=>{const P=_()[w];return P!=null&&P.isHidden?0:ne()&&P&&Ke(s,P.depth)?K:T},measureElement:w=>w.getBoundingClientRect().height,overscan:3,observeElementRect:Fe.observeElementRect,observeElementOffset:Fe.observeElementOffset,scrollToFn:Fe.elementScroll,onChange:()=>e.requestUpdate()});e.onCleanup(Re._didMount());const yl=w=>{m=w??null,w&&(Re._willUpdate(),e.requestUpdate())},$l=(w,P)=>{w&&P===s&&(K=w.getBoundingClientRect().height)},Sl=w=>w.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),so=(w,P)=>{if(!b||!Ke(s,P))return[{part:w,highlight:!1}];const H=new RegExp(`(${Sl(b)})`,"gi");return w.split(H).map(ce=>({part:ce,highlight:b.toLowerCase()===ce.toLowerCase()}))};let no=v();const kl=w=>{const{index:P,item:H,start:ce,isSelected:ie,isIndeterminate:pe,isDisabled:me,isFocused:ze}=w;if(H.isHidden)return l.nothing;const Oe=e.props,qe=H.depth,Ue=Ke(s,qe),je=h(),nt=Ie=>{qe!==s?Ze(H,Ie):ot(H.code)},ft=Ie=>{je?Ne(H,P,Ie,ie&&De(H)):nt(Ie)},Vt=()=>{Ae(H,P,{},ie&&De(H))},Dt=Ue?"하나만":"그룹만";return l.html`<div
|
|
1516
|
+
</svg>`}const Ft={keyProp:"code",displayProp:"name",categoryLv1ID:"categoryLv1ID",categoryLv1Label:"categoryLv1Label",categoryLv2ID:"categoryLv2ID",categoryLv2Label:"categoryLv2Label",description:"description"};function An(e,t){const l=d=>t.displayProp&&d[t.displayProp]?d[t.displayProp]:d[t.keyProp],n=d=>t.categoryLv1Label&&d[t.categoryLv1Label]?d[t.categoryLv1Label]:t.categoryLv1ID?d[t.categoryLv1ID]:"",r=d=>t.categoryLv2Label&&d[t.categoryLv2Label]?d[t.categoryLv2Label]:t.categoryLv2ID?d[t.categoryLv2ID]:"";return e.map(d=>({code:d[t.keyProp],name:l(d),categoryLv1ID:t.categoryLv1ID&&d[t.categoryLv1ID]||"",categoryLv1Label:n(d),categoryLv2ID:t.categoryLv2ID&&d[t.categoryLv2ID]||"",categoryLv2Label:r(d),description:t.description&&d[t.description]||""}))}function wt(e,t){let l=e.get(t);return l||(l=[],e.set(t,l)),l}function Rn(e){const t=new Map([["depth0",[]],["depth1",[]],["depth2",[]]]),l=new Map,n=new Map;e.forEach(m=>{const s=m.categoryLv1ID;if(!l.get(s)){const i={code:s,name:m.categoryLv1Label??s};l.set(s,i),wt(t,"depth0").push(i)}if(!m.categoryLv2ID||m.categoryLv2ID.trim()==="")wt(t,"depth1").push({...m,parent:m.categoryLv1ID});else{const i=`${m.categoryLv1ID}-${m.categoryLv2ID}`;if(!n.get(i)){const h={code:m.categoryLv2ID,name:m.categoryLv2Label??m.categoryLv2ID,parent:m.categoryLv1ID,isSubCategory:!0};n.set(i,h),wt(t,"depth1").push(h)}wt(t,"depth2").push({...m,parent:m.categoryLv2ID})}});function r(m,s,i,h){const a=`depth${s}`,u=`depth${s+1}`,p=i.get(u),v={...m,depth:s};if(s!==0&&(v.isHidden=!1),p&&p.length>0){const $=h[a],A=h[u],S=p.filter(D=>D[A]===(m.isSubCategory?m.code:m[$]));v.isExpanded=!0;const y=[v];return S.forEach(D=>{y.push(...r(D,s+1,i,h))}),y}return[v]}const d={depth0:"code",depth1:"parent",depth2:"parent"};return(t.get("depth0")??[]).flatMap(m=>r(m,0,t,d))}function qn(e){return new Set(e.map(t=>t.code))}function Ke(e,t){return t===e}function St(e,t){return e.filter(l=>l.categoryLv1ID===t.code||l.categoryLv2ID===t.code)}function Ct(e){return new Set(e.map(t=>t.code))}function At(e,t){return{childDepthList:St(e,t)}}function go(e,t){for(const l of e)if(!t.has(l))return!1;return!0}function xt(e,t,l){t===0&&e.categoryLv1Set.delete(l),t===1&&e.categoryLv2Set.delete(l)}function dt(e,t,l){t===0&&e.categoryLv1Set.add(l),t===1&&e.categoryLv2Set.add(l)}function In(e,t,l){t.length&&e.categoryLv1Set.add(t),l.length&&e.categoryLv2Set.add(l)}function bt(e){e.categoryLv1Set.clear(),e.categoryLv2Set.clear()}function nl(e,t,l,n){if(dt(e,l.depth,l.code),l.parent){const r=t.find(d=>d.code===l.parent);r&&nl(e,t,r)}}function rl(e,t,l,n){if(dt(e,l.depth,l.code),Ke(n,l.depth))return;t.filter(d=>d.parent===l.code).forEach(d=>{Ke(n,d.depth)||rl(e,t,d,n)})}function vo(e,t,l,n){nl(e,t,l),rl(e,t,l,n)}function il(e,t,l,n){if(xt(e,l.depth,l.code),l.parent){const r=t.find(d=>d.code===l.parent);r&&il(e,t,r)}}function al(e,t,l,n){if(xt(e,l.depth,l.code),Ke(n,l.depth))return;t.filter(d=>d.parent===l.code).forEach(d=>{Ke(n,d.depth)||al(e,t,d,n)})}function wo(e,t,l,n){il(e,t,l),al(e,t,l,n)}const Fn=new Set(["modelValue","itemsSource","label","placeholder","required","disabled","isReadOnly","width","rules","keyProp","displayProp","useFilter","useSelectAll","class","style"]),cl=we({name:"moz-tree-select",defaults:{label:null,width:200,required:!1,readonly:!1,disabled:!1,disabledProp:"disabled",rules:[],useSelectAll:!0,useFilter:!0,headerFormat:"ITEMS ({count})",listBoxWidth:0,useSpecificSelect:!0,treeLevels:1,useMultiSelect:!1,treeProps:Ft,modelValue:[]},setup(e){const t=N.createRef(),l=N.createRef(),n=N.createRef(),r=N.createRef(),d=N.createRef();let m=null;const s=(e.props.treeLevels??1)-1,i=s,h=()=>!!e.props.useMultiSelect,a=()=>e.props.disabledProp||"disabled",u=()=>e.props.treeProps??Ft;let p=e.props.modelValue??(h()?[]:"");const v=()=>e.controlled("modelValue")?e.props.modelValue??[]:p,$=()=>{const w=v();return Array.isArray(w)?w:w?[w]:[]},A=w=>{e.controlled("modelValue")||(p=w),e.emit("update:modelValue",w),e.requestUpdate()};let S=!1,y="",D=!1,E=!1,L=!1,K={},W=[];const te={change:"",blur:"",save:""},ae=new Set,ee=new Set,Y={categoryLv1Set:ae,categoryLv2Set:ee},M=(()=>{try{const w=getComputedStyle(document.documentElement).getPropertyValue("--size-input-dropdown-item-height");return w?+w.trim().replace("px",""):24}catch{return 24}})();let G=M;const ne=()=>e.slots.has("list-item");let oe=[],J=[],U=e.props.itemsSource;const b=()=>{oe=An(e.props.itemsSource??[],u()),J=Rn(oe)};b();const R=()=>{const w=new Map;return oe.forEach(P=>w.set(P.code,P)),w},_=w=>w.name??"",k=w=>new Set($()).has(w.code),z=w=>W.some(P=>rt(P.item,w)),T=()=>new Set($()),I=()=>{let w=[];if(!y)w=J;else{const P=[],H=new Set,ce=ie=>`depth${ie.depth}_${ie.code}`;for(const ie of J)if(ie.depth!==i){for(;P.length&&P[P.length-1].depth>=ie.depth;)P.pop();P.push(ie)}else if(_(ie).toLowerCase().indexOf(y.toLowerCase())>-1){for(const me of P){const ze=ce(me);H.has(ze)||(w.push(me),H.add(ze))}const pe=ce(ie);H.has(pe)||(w.push(ie),H.add(pe))}}if(L){const P=new Set,H=R(),ce=T();w.filter(pe=>{if(ve(pe,ce))return!0;if(h()&&!Ke(s,pe.depth)){const me=St(J,pe);if(me.length>0&&me.some(ze=>ce.has(ze.code)))return!0}return!1}).forEach(pe=>{let me=pe;for(;me&&(P.add(me.code),!!me.parent);)me=H.get(me.parent)}),w=w.filter(pe=>P.has(pe.code))}return w},g=()=>I().filter(w=>!(w.categoryLv1ID||w.categoryLv2ID)),B=()=>{const w=g();return I().filter(P=>!w.includes(P))},Z=()=>new Set(B().map(w=>w.code)),X=()=>qn(B()),ve=(w,P)=>h()?Ke(i,w.depth)?P.has(w.code):ae.has(w.code)||ee.has(w.code):v()===w.code,De=w=>{if(Ke(s,w.depth))return!0;const P=St(I(),w);return P.length===0?!0:go(Ct(P),T())},Ne=()=>{const w=$().length,P=g().length;if(w<P||w===0||P===0)return!1;for(const H of X())if(!T().has(H))return!1;return!0},Oe=()=>{const w=X(),P=T();return!w.size||!P.size||P.size<w.size?!1:Array.from(w).every(H=>P.has(H))},c=()=>h()?!!e.props.useSelectAll:!1,x=()=>{const w=v(),P=R();if(typeof w=="string")return P.has(w)?P.get(w).name:w;const H=Array.isArray(w)?w:[],ce=H.filter(ie=>P.has(ie)).map(ie=>P.get(ie).name);return H.length?h()&&ce.length>1?e.props.headerFormat.replace(/\{count(:.*?)?}/g,`${ce.length.toLocaleString()}`):ce.join(", ")||"":""},j=()=>te.save||te.blur||te.change,re=()=>{const w=[];return e.props.required&&w.push({message:e.locale.TreeSelect.required.replace("{label}",e.props.label||""),type:"save",validator:P=>!!P.length}),[...w,...e.props.rules??[]]},de=async(w,P)=>{const H=re();if(H.length<=0)return;if(e.props.disabled)return!0;te[P]="",e.requestUpdate();const ce=H.filter(ie=>ie.type===P);for(const ie of ce)if(!await ie.validator(w))return te[P]=ie.message,e.requestUpdate(),!1;return!0},$e=async(w="save")=>j()!==""?!1:await de($(),w)??!0,be={validate:$e,initValidator:()=>{te.change="",te.blur="",te.save="",e.requestUpdate()}};e.validator&&(e.validator.addValidator(be),e.onCleanup(()=>{We==null||We.release(),We=null}),e.onCleanup(()=>{var w;return(w=e.validator)==null?void 0:w.removeValidator(be)}));const C=(w,P)=>w.filter(H=>k(H)!==P).map(H=>H.code),q=w=>{const P=Array.from(new Set(w));rt($(),P)||(A(P),e.emit("change",P,P.filter(Boolean)),de(P,"change"),Ce(P))},Ce=w=>{w.length===oe.length?g().forEach(P=>dt(Y,P.depth,P.code)):w.forEach(P=>{const H=B().find(ce=>ce.code===P);H&&In(Y,H.categoryLv1ID??"",H.categoryLv2ID??"")})},Se=(w,P,H)=>{if(H.shiftKey&&W.length>0){const ce=W[0],ie=Math.min(ce.index,P),pe=Math.max(ce.index,P);W=I().slice(ie,pe+1).map((me,ze)=>({item:me,index:ie+ze}))}else H.ctrlKey?W.push({item:w,index:P}):W=[{item:w,index:P}]},ke=(w,P)=>{if(!Ke(s,w.depth)){const{childDepthList:H}=At(I(),w);if(P){const ce=Ct(H);A($().filter(ie=>!ce.has(ie))),wo(Y,I(),w,i)}else{const ce=H.map(ie=>ie.code);A([...$(),...ce])}}},Te=(w,P)=>{const ce=W.map(me=>me.item).filter(me=>me.depth===i),ie=C(ce,w);let pe=[];if(P.depth!==s){const{childDepthList:me}=At(I(),P),ze=Ct(me);pe=$().filter(He=>!ze.has(He))}else pe=$();w?P.depth===s?pe=[...pe,...ie]:vo(Y,I(),P,i):(bt(Y),pe=pe.filter(me=>!ie.some(ze=>me===ze))),q(pe)},Ae=(w,P,H,ce)=>{const ie=W.some(pe=>pe.item.code===w.code);(W.length<=1||!ie)&&Se(w,P,{shiftKey:!1,ctrlKey:!1}),Te(!ce,w),ke(w,ce),e.requestUpdate()},_e=(w,P,H,ce)=>{w[a()]!==!0&&(!H.ctrlKey&&!H.shiftKey&&W.length<=1&&Ae(w,P,H,ce),Se(w,P,H),e.requestUpdate())},Qe=(w,P,H)=>{if(w[a()]===!0)return;let ce=[],ie=!1;const pe=w.code;if(Ke(s,w.depth))ie=$().length===1&&$()[0]===pe,ie||(ce=[pe]),bt(Y);else{const{childDepthList:me}=At(I(),w),ze=Ct(me);ie=go(ze,T())&&ze.size===T().size,ie?wo(Y,I(),w,i):(ce=[],bt(Y),vo(Y,I(),w,i))}q(ce),ke(w,ie),Se(w,P,H),e.requestUpdate()},ot=w=>{A(w),et(!1)},Je=(w,P)=>{I().filter(ce=>ce.parent===w).forEach(ce=>{if(ce.isHidden=P,ce.depth===i)return;const pe=!P&&!ce.isExpanded?!0:P;Je(ce.code,pe)})},Ze=(w,P)=>{P.stopPropagation(),w.isExpanded=!w.isExpanded,Je(w.code,!w.isExpanded),queueMicrotask(()=>Re.measure()),e.requestUpdate()},f=w=>{J.forEach(P=>{P.isExpanded=w,P.depth>0?P.isHidden=!w:P.isHidden=!1}),queueMicrotask(()=>Re.measure()),e.requestUpdate()},O=w=>{w.stopPropagation(),Z().size===T().size&&[...Z()].every(H=>T().has(H))?(g().forEach(H=>xt(Y,H.depth,H.code)),q([])):(bt(Y),g().forEach(H=>dt(Y,H.depth,H.code)),q([...Z()]))},F=w=>{if(w.stopPropagation(),Oe()){const P=X();q($().filter(H=>!P.has(H))),g().forEach(H=>xt(Y,H.depth,H.code))}else{const P=new Set([...$(),...Z()]);q(Array.from(P)),g().forEach(H=>dt(Y,H.depth,H.code))}},Q=w=>{D=w.target.scrollTop>0,e.requestUpdate()},se=()=>{const w=l.value;if(!w)return;const P=w.getBoundingClientRect();let H=`${P.width}px`;e.props.listBoxWidth&&(H=typeof e.props.listBoxWidth=="number"?`${e.props.listBoxWidth}px`:e.props.listBoxWidth),K={width:String(H),left:`${P.left}px`,top:`${P.top+(E?0:P.height)}px`},e.requestUpdate()},ue=(w,P,H=10)=>{const ce=window.innerHeight||document.documentElement.clientHeight,ie=window.innerWidth||document.documentElement.clientWidth,pe=w.getBoundingClientRect(),me=P.getBoundingClientRect(),ze=pe.bottom+me.height+H>ce;if(!ze)return!1;const He=pe.top-me.height-H<0,qe=pe.right+me.width+H>ie,Ue=pe.left-me.width-H<0;return ze&&!He||qe&&!Ue},fe=w=>{w.target!==m&&et(!1)},ye=w=>{var P,H;!((P=t.value)!=null&&P.contains(w.target))&&!((H=n.value)!=null&&H.contains(w.target))&&(et(!1),document.removeEventListener("click",ye,{capture:!0}))},Me=w=>{var H;`${w.ctrlKey?"ctrl+":""}${w.altKey?"alt+":""}${w.key.toLowerCase()}`==="escape"&&(et(!1),(H=r.value)==null||H.focus())};e.onCleanup(()=>{document.body.removeEventListener("scroll",fe,{capture:!0}),document.removeEventListener("click",ye,{capture:!0}),window.removeEventListener("keydown",Me)});let We=null;const et=w=>{S!==w&&(S=w,e.requestUpdate(),w?(We=ht(),document.body.addEventListener("scroll",fe,{capture:!0}),document.addEventListener("click",ye,{capture:!0}),te.save="",window.addEventListener("keydown",Me),se(),queueMicrotask(()=>{var P;l.value&&m&&(E=ue(l.value,m)),se(),d.value?d.value.focus():(P=r.value)==null||P.focus()})):(We==null||We.release(),We=null,document.body.removeEventListener("scroll",fe,{capture:!0}),document.removeEventListener("click",ye,{capture:!0}),de($(),"blur"),window.removeEventListener("keydown",Me),y="",e.emit("close")))},it=()=>{e.props.disabled||et(!S)};let lt;const zt=w=>{const P=w.target.value;lt&&clearTimeout(lt),lt=setTimeout(()=>{y=P,e.requestUpdate(),queueMicrotask(()=>{Re.setOptions({...Re.options,count:I().length}),Re.measure()})},300)},Ge=w=>{L=w,e.requestUpdate(),queueMicrotask(()=>{Re.setOptions({...Re.options,count:I().length}),Re.measure()})},Re=new Fe.Virtualizer({count:0,getScrollElement:()=>m,estimateSize:w=>{const P=I()[w];return P!=null&&P.isHidden?0:ne()&&P&&Ke(s,P.depth)?G:M},measureElement:w=>w.getBoundingClientRect().height,overscan:3,observeElementRect:Fe.observeElementRect,observeElementOffset:Fe.observeElementOffset,scrollToFn:Fe.elementScroll,onChange:()=>e.requestUpdate()});e.onCleanup(Re._didMount());const yl=w=>{m=w??null,w&&(Re._willUpdate(),e.requestUpdate())},$l=(w,P)=>{w&&P===s&&(G=w.getBoundingClientRect().height)},Sl=w=>w.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),so=(w,P)=>{if(!y||!Ke(s,P))return[{part:w,highlight:!1}];const H=new RegExp(`(${Sl(y)})`,"gi");return w.split(H).map(ce=>({part:ce,highlight:y.toLowerCase()===ce.toLowerCase()}))};let no=v();const kl=w=>{const{index:P,item:H,start:ce,isSelected:ie,isIndeterminate:pe,isDisabled:me,isFocused:ze}=w;if(H.isHidden)return o.nothing;const He=e.props,qe=H.depth,Ue=Ke(s,qe),je=h(),nt=Ie=>{qe!==s?Ze(H,Ie):ot(H.code)},ft=Ie=>{je?_e(H,P,Ie,ie&&De(H)):nt(Ie)},Vt=()=>{Ae(H,P,{},ie&&De(H))},Dt=Ue?"하나만":"그룹만";return o.html`<div
|
|
1514
1517
|
data-index=${P}
|
|
1515
|
-
${
|
|
1518
|
+
${N.ref(Ie=>{Ie&&(Re.measureElement(Ie),$l(Ie,qe))})}
|
|
1516
1519
|
style=${le.styleMap({transform:`translateY(${ce}px)`})}
|
|
1517
|
-
class=${
|
|
1520
|
+
class=${V("list-box-item virtual-row tree-item",{"list-selected":ie,"moz-multi-focus":ze,"is-selected":ie,"single-select-item":!je&&Ue,"multi-select-item":je})}
|
|
1518
1521
|
>
|
|
1519
1522
|
<div
|
|
1520
|
-
class=${
|
|
1521
|
-
style=${le.styleMap({"--depth":String(qe),"--last-depth-item-height":String(
|
|
1523
|
+
class=${V("depth-indicator",{"depth-indicator--parent":!Ue,"depth-indicator--last-depth":Ue,"depth-indicator--custom-item":ne()})}
|
|
1524
|
+
style=${le.styleMap({"--depth":String(qe),"--last-depth-item-height":String(G)})}
|
|
1522
1525
|
@click=${Ie=>{je||nt(Ie)}}
|
|
1523
1526
|
></div>
|
|
1524
1527
|
<div class="item-content" @click=${ft}>
|
|
1525
|
-
${Ue?
|
|
1528
|
+
${Ue?o.nothing:o.html`<button
|
|
1526
1529
|
type="button"
|
|
1527
1530
|
class="icon-container"
|
|
1528
1531
|
aria-expanded=${H.isExpanded?"true":"false"}
|
|
@@ -1531,25 +1534,25 @@
|
|
|
1531
1534
|
>
|
|
1532
1535
|
${e.slots.has("icon")?e.slot("icon"):H.isExpanded?zn("var(--moz-color-accent)"):Mn("var(--moz-color-text-subtle)")}
|
|
1533
1536
|
</button>`}
|
|
1534
|
-
${je?$t({checked:ie,disabled:me,indeterminate:pe,onChange:Vt}):
|
|
1537
|
+
${je?$t({checked:ie,disabled:me,indeterminate:pe,onChange:Vt}):o.nothing}
|
|
1535
1538
|
<div class="highlight-container">
|
|
1536
|
-
${ne()&&Ue?e.slot("list-item",{text:{text:
|
|
1539
|
+
${ne()&&Ue?e.slot("list-item",{text:{text:_(H),depth:qe},item:H,highlightText:so(_(H),qe)}):o.html`${so(_(H),qe).map(Ie=>o.html`<span class=${V({highlight:Ie.highlight})}>${Ie.part}</span>`)}`}
|
|
1537
1540
|
</div>
|
|
1538
|
-
${!je&&ie&&Ue?Qt("12","var(--moz-color-accent)",!1,"icon-check"):
|
|
1539
|
-
${je&&
|
|
1541
|
+
${!je&&ie&&Ue?Qt("12","var(--moz-color-accent)",!1,"icon-check"):o.nothing}
|
|
1542
|
+
${je&&He.useSpecificSelect&&!me?o.html`<button type="button" class="item-only item-only-btn" @click=${Ie=>Qe(H,P,Ie)}>
|
|
1540
1543
|
${Dt}
|
|
1541
|
-
</button>`:
|
|
1544
|
+
</button>`:o.nothing}
|
|
1542
1545
|
</div>
|
|
1543
|
-
</div>`};return{api:{validate:$e},render(){const w=e.props;w.itemsSource!==
|
|
1546
|
+
</div>`};return{api:{validate:$e},render(){const w=e.props;w.itemsSource!==U&&(U=w.itemsSource,b());const P=v();P!==no&&(no=P,typeof P!="string"&&Ce($()));const H=typeof w.width=="number"?`${Le(w.width)}rem`:w.width,ce=e.slots.has("icon")?e.slot("icon",{isOpen:S}):S?eo("14","var(--moz-color-accent)"):Jt("14","var(--moz-color-text-subtle)",w.disabled),ie=ge(w,Fn),{aria:pe,dom:me}=ut(ie);return o.html`
|
|
1544
1547
|
<div
|
|
1545
1548
|
${he(me)}
|
|
1546
|
-
class=${
|
|
1549
|
+
class=${V("moz-multi-select moz-tree-select",w.class,{"is-invalid":j()!=="","is-open":S,disabled:!!w.disabled})}
|
|
1547
1550
|
style=${le.styleMap({width:H})}
|
|
1548
|
-
${
|
|
1551
|
+
${N.ref(t)}
|
|
1549
1552
|
>
|
|
1550
1553
|
<div class="input-wrapper">
|
|
1551
|
-
${w.label?Be({},
|
|
1552
|
-
<div class="moz-input-container" @click=${it} ${
|
|
1554
|
+
${w.label?Be({},o.html`${w.label}${w.required?o.html`<span class="require-mark">*</span>`:o.nothing}`):o.nothing}
|
|
1555
|
+
<div class="moz-input-container" @click=${it} ${N.ref(l)}>
|
|
1553
1556
|
<input .value=${x()} autocomplete="off" readonly tabindex="-1" />
|
|
1554
1557
|
<button
|
|
1555
1558
|
type="button"
|
|
@@ -1557,96 +1560,96 @@
|
|
|
1557
1560
|
${he(pe)}
|
|
1558
1561
|
role="combobox"
|
|
1559
1562
|
aria-haspopup="tree"
|
|
1560
|
-
aria-expanded=${
|
|
1563
|
+
aria-expanded=${S?"true":"false"}
|
|
1561
1564
|
aria-label=${xe.ifDefined(pe["aria-label"]??w.label)}
|
|
1562
1565
|
?disabled=${!!w.disabled}
|
|
1563
|
-
${
|
|
1566
|
+
${N.ref(r)}
|
|
1564
1567
|
>
|
|
1565
1568
|
${ce}
|
|
1566
1569
|
</button>
|
|
1567
1570
|
</div>
|
|
1568
1571
|
</div>
|
|
1569
|
-
${
|
|
1572
|
+
${j()!==""?o.html`<span class="moz-input-invalid-message">${j()}</span>`:o.nothing}
|
|
1570
1573
|
</div>
|
|
1571
|
-
`},renderPortal(){if(
|
|
1572
|
-
class=${
|
|
1573
|
-
style=${le.styleMap(
|
|
1574
|
-
${
|
|
1574
|
+
`},renderPortal(){if(!S)return o.nothing;const w=e.props,P=I();Re.options.count!==P.length&&Re.setOptions({...Re.options,count:P.length}),Re._willUpdate();const H=Re.getTotalSize(),ce=T(),ie=Tt(Re.getVirtualItems(),P.length,M,m).map(He=>{if(He.index>=P.length)return null;const qe=P[He.index];if(!qe)return null;let Ue=ve(qe,ce),je=!1;if(h()&&!Ke(s,qe.depth)){const nt=St(J,qe);if(nt.length>0){const ft=nt.reduce((Vt,Dt)=>Vt+(ce.has(Dt.code)?1:0),0);ft===0?Ue=!1:ft<nt.length?(Ue=!0,je=!0):Ue=!0}}return{index:He.index,item:qe,start:He.start,isSelected:Ue,isIndeterminate:je,isDisabled:qe[a()]===!0,isFocused:z(qe)}}).filter(He=>He!==null),pe=y?e.locale.TreeSelect.selectFiltered:e.locale.TreeSelect.selectAll,me=v(),ze=Array.isArray(me)?me.length:me?1:0;return o.html`<div
|
|
1575
|
+
class=${V("list-box",{"no-label":!w.label,"show-top":E})}
|
|
1576
|
+
style=${le.styleMap(K)}
|
|
1577
|
+
${N.ref(n)}
|
|
1575
1578
|
>
|
|
1576
1579
|
<div class="filter-input-wrapper">
|
|
1577
|
-
${w.useFilter?
|
|
1580
|
+
${w.useFilter?o.html`<div class="filter-input">
|
|
1578
1581
|
<div class="search-icon">${to("12","var(--moz-color-text-subtle)")}</div>
|
|
1579
|
-
<input placeholder=${e.locale.TreeSelect.search} @input=${zt} ${
|
|
1580
|
-
</div>`:
|
|
1582
|
+
<input placeholder=${e.locale.TreeSelect.search} @input=${zt} ${N.ref(d)} />
|
|
1583
|
+
</div>`:o.nothing}
|
|
1581
1584
|
<div class="tree-controls">
|
|
1582
1585
|
<span class="control-btn" @click=${()=>f(!0)}>${Vn("currentColor")}</span>
|
|
1583
1586
|
<span class="control-btn" @click=${()=>f(!1)}>${Dn("currentColor")}</span>
|
|
1584
1587
|
</div>
|
|
1585
1588
|
</div>
|
|
1586
1589
|
|
|
1587
|
-
${c()&&
|
|
1590
|
+
${c()&&oe.length>0&&P.length>0?o.html`<div class=${V("list-box-item multi-select-item multi-select-all",{"is-scrolled":D})} @click=${F}>
|
|
1588
1591
|
<div class="select-all-content">
|
|
1589
|
-
${$t({indeterminate:ze>0&&
|
|
1592
|
+
${$t({indeterminate:ze>0&&Ne()===!1,checked:Oe()})}
|
|
1590
1593
|
<div><span title=${pe}>${pe}</span></div>
|
|
1591
1594
|
</div>
|
|
1592
|
-
${
|
|
1593
|
-
</div>`:
|
|
1595
|
+
${y&&P.length>0?o.html`<button type="button" class="item-only" @click=${O}>${e.locale.TreeSelect.specificResults}</button>`:o.nothing}
|
|
1596
|
+
</div>`:o.nothing}
|
|
1594
1597
|
|
|
1595
|
-
<div class="list-box-container" @scroll=${
|
|
1598
|
+
<div class="list-box-container" @scroll=${Q} ${N.ref(yl)}>
|
|
1596
1599
|
<div class="inner-container" style=${le.styleMap({height:`${H}px`})}>
|
|
1597
|
-
${ie.map(
|
|
1600
|
+
${ie.map(He=>kl(He))}
|
|
1598
1601
|
</div>
|
|
1599
|
-
${P.length<=0?
|
|
1602
|
+
${P.length<=0?o.html`<div class="list-box-item loading not-hover">
|
|
1600
1603
|
${e.slots.has("empty")?e.slot("empty"):e.locale.TreeSelect.noData}
|
|
1601
|
-
</div>`:
|
|
1604
|
+
</div>`:o.nothing}
|
|
1602
1605
|
</div>
|
|
1603
1606
|
|
|
1604
|
-
${h()?
|
|
1607
|
+
${h()?o.html`<div class="list-footer">
|
|
1605
1608
|
<label class="footer-checkbox">
|
|
1606
1609
|
${$t({checked:L,onChange:Ge,class:"moz-checkbox"})}
|
|
1607
1610
|
<span>${e.locale.TreeSelect.showSelectedOnly}</span>
|
|
1608
1611
|
</label>
|
|
1609
|
-
</div>`:
|
|
1610
|
-
</div>`}}}}),Bn={name:"MozTreeSelect",core:cl,props:["itemsSource","label","width","required","readonly","disabled","disabledProp","rules","useSelectAll","useFilter","headerFormat","listBoxWidth","useSpecificSelect","treeLevels","useMultiSelect","treeProps","modelValue"],emits:["change","close","update:modelValue"],slots:["icon","list-item","empty"],expose:!0},
|
|
1612
|
+
</div>`:o.nothing}
|
|
1613
|
+
</div>`}}}}),Bn={name:"MozTreeSelect",core:cl,props:["itemsSource","label","width","required","readonly","disabled","disabledProp","rules","useSelectAll","useFilter","headerFormat","listBoxWidth","useSpecificSelect","treeLevels","useMultiSelect","treeProps","modelValue"],emits:["change","close","update:modelValue"],slots:["icon","list-item","empty"],expose:!0},On=new Set(["panes","direction","resizable","minSize","class","style"]),Co=(e,t)=>e===void 0?t:typeof e=="number"?`${e}px`:e,dl=we({name:"moz-split-pane",defaults:{horizontal:!1,panes:[]},setup(e){let t=null,l=null;const n=[],r=[],d=[],m=[];let s=[],i=!1,h=0,a=0,u=-1,p=-1,v=-1,$=null,A=null,S=0;const y=()=>!!e.props.horizontal,D=()=>e.props.panes??[],E=()=>{s=D().map(U=>U.hidden?"0":U.size!=null?String(U.size):"1fr")};E();const L=U=>y()?U.clientHeight:U.clientWidth,K=()=>L(d[p]),W=()=>L(m[p]),te=()=>L(d[v]),ae=()=>L(m[v]),ee=U=>{if(!i)return;let b=y()?U.movementY:U.movementX;$=+(b>0),$!==A&&A!==null&&(p=u,v=u+1),A=$;const R=r[u].getBoundingClientRect(),_=y()?U.clientY-R.top+window.scrollY:U.clientX-R.left+window.scrollX;($===0&&_>10||$===1&&_<-10)&&(b=b/(Math.abs(_)/10)),($===0&&y()?U.clientY<R.top:U.clientX<R.left)&&(S=0),($===1&&y()?U.clientY>R.top:U.clientX>R.left)&&(S=0);const k=I=>n[I][y()?"clientHeight":"clientWidth"];if(h=k(p)+b,a=k(v)+k(p)-h,!(h>K()&&h<W()||h<K()&&$===1||h>K()&&$===0)){if(h<K()){if(p-1<0&&$===0){S+=y()?U.movementY:U.movementX;return}p=p-1>=0?p-1:0}else if(h>W()){if(p-1<0){S+=y()?U.movementY:U.movementX;return}p=p-1>=0?p-1:0}}if(!(a>te()&&a<ae()||a<te()&&$===0||a>te()&&$===1)){if(a<te()){if(v+1>=s.length){S+=y()?U.movementY:U.movementX;return}v=v+1<s.length?v+1:s.length-1}else if(a>ae()){if(v+1>=s.length){S+=y()?U.movementY:U.movementX;return}v=v+1<s.length?v+1:s.length-1}}if($===0&&S>0||$===1&&S<0||$===0&&a>ae()||$===1&&a<te()||$===0&&h<K()||$===1&&h>W())return;const z=t[y()?"clientHeight":"clientWidth"],T=k(p)+b;s[p]=`clamp(${K()}px, ${T/z*100}%, ${W()}px)`,s[v]="1fr",e.requestUpdate(),queueMicrotask(()=>{const I=k(v);s[v]=`clamp(${te()}px, ${I/z*100}%, ${ae()}px)`,e.requestUpdate()})},Y=()=>{u=-1,p=-1,v=-1,i=!1,S=0,document.removeEventListener("mousemove",ee),document.removeEventListener("mouseup",Y),e.requestUpdate()},M=U=>{U.preventDefault(),i=!0,y()?U.clientY:U.clientX,document.addEventListener("mousemove",ee),document.addEventListener("mouseup",Y),e.requestUpdate()},G=(U,b)=>{u=b,p=b,v=b+1,S=0,M(U)};let ne=null;const oe=()=>{t&&l&&(l.style.width=`${t.clientWidth}px`,l.style.height=`${t.clientHeight}px`)};e.onCleanup(()=>{document.removeEventListener("mouseup",Y),document.removeEventListener("mousemove",ee),ne==null||ne.disconnect()});let J=e.props.panes;return{onMounted:()=>{E(),e.requestUpdate()},render(){const U=D();e.props.panes!==J&&(J=e.props.panes,queueMicrotask(()=>{E(),e.requestUpdate()}));const b=y()?"gridTemplateRows":"gridTemplateColumns",R=U.length-1,_=ge(e.props,On);return o.html`
|
|
1611
1614
|
<div
|
|
1612
|
-
${he(
|
|
1613
|
-
class=${
|
|
1614
|
-
style=${le.styleMap({display:"grid",[
|
|
1615
|
-
${
|
|
1615
|
+
${he(_)}
|
|
1616
|
+
class=${V("splitter",e.props.class)}
|
|
1617
|
+
style=${le.styleMap({display:"grid",[b]:s.join(" "),width:"100%",height:"100%",overflow:"hidden",cursor:i?y()?"row-resize":"col-resize":"unset"})}
|
|
1618
|
+
${N.ref(k=>{t=k??null,t&&l&&(oe(),!ne&&typeof ResizeObserver<"u"&&(ne=new ResizeObserver(()=>oe()),ne.observe(t)))})}
|
|
1616
1619
|
>
|
|
1617
|
-
${
|
|
1618
|
-
style=${le.styleMap({display:"grid",[
|
|
1619
|
-
${
|
|
1620
|
+
${U.map((k,z)=>{const T=z===R?"100%":s[z+1]!=="0"?"calc(100% - 10px) 10px":"100%";return o.html`<div
|
|
1621
|
+
style=${le.styleMap({display:"grid",[b]:T,overflow:"hidden"})}
|
|
1622
|
+
${N.ref(I=>{n[z]=I??null})}
|
|
1620
1623
|
>
|
|
1621
|
-
<div style="width: 100%; height: 100%; overflow: hidden">${e.slot(`pane-${
|
|
1622
|
-
${
|
|
1623
|
-
class=${
|
|
1624
|
+
<div style="width: 100%; height: 100%; overflow: hidden">${e.slot(`pane-${z}`)}</div>
|
|
1625
|
+
${z!==R&&s[z+1]!=="0"?o.html`<div
|
|
1626
|
+
class=${y()?"resizer resizer-horizontal":"resizer resizer-vertical"}
|
|
1624
1627
|
role="separator"
|
|
1625
|
-
aria-orientation=${
|
|
1628
|
+
aria-orientation=${y()?"horizontal":"vertical"}
|
|
1626
1629
|
aria-label=${e.locale.SplitPane.resizeHandle}
|
|
1627
1630
|
tabindex="0"
|
|
1628
|
-
@mousedown=${
|
|
1629
|
-
${
|
|
1630
|
-
></div>`:
|
|
1631
|
+
@mousedown=${I=>G(I,z)}
|
|
1632
|
+
${N.ref(I=>{r[z]=I??null})}
|
|
1633
|
+
></div>`:o.nothing}
|
|
1631
1634
|
</div>`})}
|
|
1632
1635
|
|
|
1633
1636
|
<div
|
|
1634
1637
|
style="pointer-events: none; position: fixed"
|
|
1635
|
-
${
|
|
1638
|
+
${N.ref(k=>{l=k??null,t&&l&&oe()})}
|
|
1636
1639
|
>
|
|
1637
|
-
${
|
|
1640
|
+
${U.map((k,z)=>{const T=Co(k.minSize,"10px"),I=Co(k.maxSize,"100%");return o.html`<div
|
|
1638
1641
|
class="size-calculator min-size"
|
|
1639
|
-
style=${le.styleMap({width:
|
|
1640
|
-
${
|
|
1642
|
+
style=${le.styleMap({width:T,height:T})}
|
|
1643
|
+
${N.ref(g=>{d[z]=g??null})}
|
|
1641
1644
|
></div>
|
|
1642
1645
|
<div
|
|
1643
1646
|
class="size-calculator max-size"
|
|
1644
|
-
style=${le.styleMap({width:
|
|
1645
|
-
${
|
|
1647
|
+
style=${le.styleMap({width:I,height:I})}
|
|
1648
|
+
${N.ref(g=>{m[z]=g??null})}
|
|
1646
1649
|
></div>`})}
|
|
1647
1650
|
</div>
|
|
1648
1651
|
</div>
|
|
1649
|
-
`}}}}),
|
|
1652
|
+
`}}}}),Hn={name:"MozSplitPane",core:dl,props:["horizontal","panes"],emits:[],slots:["pane-0","pane-1","pane-2","pane-3","pane-4","pane-5","pane-6","pane-7"],expose:!1};function Un(e="currentColor",t=14){return o.html`<svg width=${t} height=${t} viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1650
1653
|
<path
|
|
1651
1654
|
d="M12.25 12.25V3.8436L10.163 1.75H1.75V12.25H12.25ZM12.4448 14H1.55615C0.7002 14 0 13.3001 0 12.4446V1.55617C0 0.70013 0.69238 0 1.55615 0H10.2432C10.6558 0 11.0522 0.16353 11.3481 0.46009L13.5415 2.66039C13.8364 2.94828 14 3.34501 14 3.75673V12.4446C14 13.3001 13.3003 14 12.4448 14Z"
|
|
1652
1655
|
fill=${e}
|
|
@@ -1661,7 +1664,7 @@
|
|
|
1661
1664
|
d="M4.75 9.75V12.25H9.25V9.75H4.75ZM3.29289 8.29289C3.48043 8.10536 3.73478 8 4 8H10C10.2652 8 10.5196 8.10536 10.7071 8.29289C10.8946 8.48043 11 8.73479 11 9V14H3V9C3 8.73478 3.10536 8.48043 3.29289 8.29289Z"
|
|
1662
1665
|
fill=${e}
|
|
1663
1666
|
></path>
|
|
1664
|
-
</svg>`}function
|
|
1667
|
+
</svg>`}function Nn(e="currentColor",t=14){return o.html`<svg xmlns="http://www.w3.org/2000/svg" width=${t} height=${t} viewBox="0 0 14 14" fill="none">
|
|
1665
1668
|
<g clip-path="url(#clip0_16945_2363)">
|
|
1666
1669
|
<path
|
|
1667
1670
|
d="M10.8 5.2998H3.2C2.8134 5.2998 2.5 5.61321 2.5 5.9998V12.3998C2.5 12.7864 2.8134 13.0998 3.2 13.0998H10.8C11.1866 13.0998 11.5 12.7864 11.5 12.3998V5.9998C11.5 5.61321 11.1866 5.2998 10.8 5.2998Z"
|
|
@@ -1677,7 +1680,7 @@
|
|
|
1677
1680
|
<defs>
|
|
1678
1681
|
<clipPath id="clip0_16945_2363"><rect width="14" height="14" fill=${e}></rect></clipPath>
|
|
1679
1682
|
</defs>
|
|
1680
|
-
</svg>`}function
|
|
1683
|
+
</svg>`}function _n(e="currentColor",t=14){return o.html`<svg xmlns="http://www.w3.org/2000/svg" width=${t} height=${t} viewBox="0 0 14 14">
|
|
1681
1684
|
<path d="M0,0H14V14H0Z" fill="none"></path>
|
|
1682
1685
|
<line
|
|
1683
1686
|
y2="10"
|
|
@@ -1695,54 +1698,54 @@
|
|
|
1695
1698
|
stroke-linecap="round"
|
|
1696
1699
|
stroke-width="1.8"
|
|
1697
1700
|
></line>
|
|
1698
|
-
</svg>`}function Wn(e="currentColor",t=14){return
|
|
1701
|
+
</svg>`}function Wn(e="currentColor",t=14){return o.html`<svg xmlns="http://www.w3.org/2000/svg" width=${t} height=${t} viewBox="0 0 14 14" fill="none">
|
|
1699
1702
|
<path
|
|
1700
1703
|
d="M5.84944 0.402344C2.83893 0.402344 0.398438 2.84284 0.398438 5.85334C0.398438 8.86385 2.83893 11.3043 5.84944 11.3043C7.0308 11.3043 8.12438 10.9285 9.01716 10.29L12.0619 13.3347C12.4134 13.6862 12.9832 13.6862 13.3347 13.3347C13.6862 12.9832 13.6862 12.4134 13.3347 12.0619L10.2893 9.01651C10.9259 8.12457 11.3004 7.03269 11.3004 5.85334C11.3004 2.84284 8.85994 0.402344 5.84944 0.402344ZM2.19844 5.85334C2.19844 3.83695 3.83305 2.20234 5.84944 2.20234C7.86583 2.20234 9.50044 3.83695 9.50044 5.85334C9.50044 7.86974 7.86583 9.50434 5.84944 9.50434C3.83305 9.50434 2.19844 7.86974 2.19844 5.85334Z"
|
|
1701
1704
|
fill=${e}
|
|
1702
1705
|
></path>
|
|
1703
|
-
</svg>`}function Kn(e="currentColor",t=14){return
|
|
1706
|
+
</svg>`}function Kn(e="currentColor",t=14){return o.html`<svg xmlns="http://www.w3.org/2000/svg" width=${t} height=${t} viewBox="0 0 14 14" fill="none">
|
|
1704
1707
|
<path
|
|
1705
1708
|
d="M12.7988 6.23621C12.6596 5.99307 12.4571 5.79178 12.2126 5.65358L4.31964 1.20161C4.08323 1.06797 3.81572 0.998459 3.54385 1.00003C3.27199 1.00159 3.00531 1.07419 2.77047 1.21055C2.53563 1.3469 2.34088 1.54224 2.20567 1.77703C2.07046 2.01181 1.99953 2.27781 2 2.54843V11.4524C1.99975 11.7229 2.07082 11.9888 2.20609 12.2234C2.34136 12.4581 2.53611 12.6533 2.77089 12.7895C3.00567 12.9258 3.27225 12.9984 3.54402 13C3.81579 13.0016 4.08324 12.9322 4.31964 12.7987L12.2117 8.3472C12.5703 8.14432 12.8334 7.80821 12.9435 7.4125C13.0536 7.0168 13.0015 6.59379 12.7988 6.23621Z"
|
|
1706
1709
|
fill=${e}
|
|
1707
1710
|
></path>
|
|
1708
|
-
</svg>`}const Gn=new Set(["navigations","containerStyle","headerStyle","class","style"]);function Yn(e){switch(e.action){case"Add":return"IconPlus";case"Remove":return"IconTrash";case"Save":return"IconSave";case"Search":return"IconSearch";case"Run":return"IconPlay";default:return e.icon??null}}function Zn(e){switch(e){case"IconSave":return Un();case"IconTrash":return
|
|
1711
|
+
</svg>`}const Gn=new Set(["navigations","containerStyle","headerStyle","class","style"]);function Yn(e){switch(e.action){case"Add":return"IconPlus";case"Remove":return"IconTrash";case"Save":return"IconSave";case"Search":return"IconSearch";case"Run":return"IconPlay";default:return e.icon??null}}function Zn(e){switch(e){case"IconSave":return Un();case"IconTrash":return Nn();case"IconPlus":return _n();case"IconSearch":return Wn();case"IconPlay":return Kn();default:return o.html``}}const ul=we({name:"moz-controller",defaults:{height:66,showFilterButton:!1,showFavorite:!0,showPreset:!0},setup(e){var a,u;(u=(a=e.props).setControlHeight)==null||u.call(a,e.props.height??66);let t=!!e.props.showFilterButton,l=!1;const n=()=>e.controlled("customQueryParamsPanel")?!!e.props.customQueryParamsPanel:l;let r=null,d=!1;const m=Xe("switch_"),s=Xe("switch_"),i=p=>{t=p.target.checked,e.requestUpdate()},h=p=>{const v=p.target.checked;l=v,e.emit("update:customQueryParamsPanel",v),e.requestUpdate()};return{onMounted(){r=document.querySelector(".moz-contents-container"),d=!!r,d&&e.requestUpdate()},getPortalContainer:()=>r,renderPortal(){return!d||!e.slots.has("custom-filter")?o.nothing:o.html`<div style=${le.styleMap({display:n()?void 0:"none"})}>
|
|
1709
1712
|
${e.slot("custom-filter")}
|
|
1710
|
-
</div>`},render(){const p=e.props,v=e.slots.has("custom-filter")
|
|
1713
|
+
</div>`},render(){const p=e.props,v=e.slots.has("custom-filter"),$=e.slots.has("action"),A=p.actions??[],S=A.find(E=>E.loading===!0),y=A.map(E=>{const L=Yn(E),K=!!S&&E.action!==S.action||!!E.disabled;return{...E,icon:L,disabled:K}}),D=ge(p,Gn);return o.html`
|
|
1711
1714
|
<div
|
|
1712
|
-
class=${
|
|
1715
|
+
class=${V("moz-controller-root",p.class)}
|
|
1713
1716
|
style=${le.styleMap(Pe(p.containerStyle))}
|
|
1714
|
-
${he(
|
|
1717
|
+
${he(D)}
|
|
1715
1718
|
>
|
|
1716
1719
|
<div class="moz-controller" style=${le.styleMap(Pe(p.headerStyle))}>
|
|
1717
|
-
${p.navigations?Kt({itemSource:p.navigations,showFavorite:!1,ariaLabel:e.locale.BreadCrumb.navigation}):
|
|
1720
|
+
${p.navigations?Kt({itemSource:p.navigations,showFavorite:!1,ariaLabel:e.locale.BreadCrumb.navigation}):o.nothing}
|
|
1718
1721
|
<div class="spacer"></div>
|
|
1719
1722
|
|
|
1720
1723
|
<div class="moz-controller-actions">
|
|
1721
1724
|
${e.slot("beforeFilter")}
|
|
1722
|
-
${p.showFilterButton&&!v?Pt({id:m,model:t,label:"조회 조건",onChange:i}):
|
|
1723
|
-
${p.showFilterButton&&v?Pt({id:s,model:n(),label:"조회 조건",onChange:h}):
|
|
1724
|
-
${p.showFilterButton?
|
|
1725
|
+
${p.showFilterButton&&!v?Pt({id:m,model:t,label:"조회 조건",onChange:i}):o.nothing}
|
|
1726
|
+
${p.showFilterButton&&v?Pt({id:s,model:n(),label:"조회 조건",onChange:h}):o.nothing}
|
|
1727
|
+
${p.showFilterButton?o.html`<div class="spacer between-buttons" style="margin: 0 6px"></div>`:o.nothing}
|
|
1725
1728
|
${e.slot("action")}
|
|
1726
|
-
${y
|
|
1727
|
-
${
|
|
1729
|
+
${$&&y.length>0?o.html`<div class="spacer between-buttons"></div>`:o.nothing}
|
|
1730
|
+
${y.map(E=>at({action:E.action,text:E.text,disabled:E.disabled,loading:E.loading,width:E.text?void 0:30,style:{padding:E.text?void 0:"0"}},{icon:Zn(E.icon),onClick:()=>{E.click&&E.click()},rest:{title:E.action}}))}
|
|
1728
1731
|
</div>
|
|
1729
1732
|
</div>
|
|
1730
1733
|
|
|
1731
|
-
${t&&!v?
|
|
1734
|
+
${t&&!v?o.html`<div
|
|
1732
1735
|
class="moz-horizontal-filter moz-controller-filter"
|
|
1733
1736
|
style=${le.styleMap(Pe(p.filterStyle))}
|
|
1734
1737
|
>
|
|
1735
1738
|
${e.slot("filter")}
|
|
1736
|
-
</div>`:
|
|
1739
|
+
</div>`:o.nothing}
|
|
1737
1740
|
</div>
|
|
1738
|
-
`}}}}),jn={name:"MozController",core:ul,props:["height","setControlHeight","showFilterButton","actions","containerStyle","headerStyle","filterStyle","showFavorite","showPreset","navigations","customQueryParamsPanel"],emits:["update:customQueryParamsPanel"],slots:["beforeFilter","action","filter","custom-filter"],expose:!1};class pl{constructor(t,
|
|
1741
|
+
`}}}}),jn={name:"MozController",core:ul,props:["height","setControlHeight","showFilterButton","actions","containerStyle","headerStyle","filterStyle","showFavorite","showPreset","navigations","customQueryParamsPanel"],emits:["update:customQueryParamsPanel"],slots:["beforeFilter","action","filter","custom-filter"],expose:!1};class pl{constructor(t,l){Ve(this,"startedAt");Ve(this,"callback");Ve(this,"delay");Ve(this,"timer");Ve(this,"paused",!1);this.startedAt=Date.now(),this.callback=t,this.delay=l,this.timer=setTimeout(t,l)}pause(){this.stop(),this.delay-=Date.now()-this.startedAt,this.paused=!0}resume(){this.stop(),this.startedAt=Date.now(),this.paused=!1,this.timer=setTimeout(this.callback,this.delay)}remaining(){return this.paused?Math.max(0,this.delay):Math.max(0,this.delay-(Date.now()-this.startedAt))}stop(){clearTimeout(this.timer)}}function Xn(e="var(--moz-color-on-accent)"){return o.html`<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1739
1742
|
<path
|
|
1740
1743
|
fill-rule="evenodd"
|
|
1741
1744
|
clip-rule="evenodd"
|
|
1742
1745
|
d="M15 30C23.2843 30 30 23.2843 30 15C30 6.71573 23.2843 0 15 0C6.71573 0 0 6.71573 0 15C0 23.2843 6.71573 30 15 30ZM12.8944 17.9373L10.6229 15.6658C10.1352 15.1781 9.35358 15.1781 8.86582 15.6658C8.37806 16.1536 8.37806 16.9352 8.86582 17.4229L12.0083 20.5654C12.496 21.0531 13.285 21.0532 13.7728 20.5656L21.7228 12.6231C22.2105 12.1353 22.2107 11.3536 21.7229 10.8658C21.2352 10.3781 20.4536 10.3781 19.9658 10.8658L12.8944 17.9373Z"
|
|
1743
1746
|
fill=${e}
|
|
1744
1747
|
></path>
|
|
1745
|
-
</svg>`}function Qn(e="var(--moz-color-on-accent)"){return
|
|
1748
|
+
</svg>`}function Qn(e="var(--moz-color-on-accent)"){return o.html`<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1746
1749
|
<mask id="mask0_6027_4458" style="mask-type: luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="30" height="30">
|
|
1747
1750
|
<path d="M30 0H0V30H30V0Z" fill="#FFF"></path>
|
|
1748
1751
|
</mask>
|
|
@@ -1752,14 +1755,14 @@
|
|
|
1752
1755
|
fill=${e}
|
|
1753
1756
|
></path>
|
|
1754
1757
|
</g>
|
|
1755
|
-
</svg>`}function Jn(e="var(--moz-color-on-accent)"){return
|
|
1758
|
+
</svg>`}function Jn(e="var(--moz-color-on-accent)"){return o.html`<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1756
1759
|
<path
|
|
1757
1760
|
fill-rule="evenodd"
|
|
1758
1761
|
clip-rule="evenodd"
|
|
1759
1762
|
d="M30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0C23.2843 0 30 6.71573 30 15ZM14 7.6C14 7.26863 14.2686 7 14.6 7H16.4C16.7314 7 17 7.26863 17 7.6V17.4C17 17.7314 16.7314 18 16.4 18H14.6C14.2686 18 14 17.7314 14 17.4V7.6ZM14.6 20C14.2686 20 14 20.2686 14 20.6V22.4C14 22.7314 14.2686 23 14.6 23H16.4C16.7314 23 17 22.7314 17 22.4V20.6C17 20.2686 16.7314 20 16.4 20H14.6Z"
|
|
1760
1763
|
fill=${e}
|
|
1761
1764
|
></path>
|
|
1762
|
-
</svg>`}function er(e="var(--moz-color-on-accent)"){return
|
|
1765
|
+
</svg>`}function er(e="var(--moz-color-on-accent)"){return o.html`<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1763
1766
|
<mask id="mask0_6027_4463" style="mask-type: luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="30" height="30">
|
|
1764
1767
|
<path d="M30 0H0V30H30V0Z" fill="#FFF"></path>
|
|
1765
1768
|
</mask>
|
|
@@ -1769,134 +1772,134 @@
|
|
|
1769
1772
|
fill=${e}
|
|
1770
1773
|
></path>
|
|
1771
1774
|
</g>
|
|
1772
|
-
</svg>`}const tr=()=>
|
|
1775
|
+
</svg>`}const tr=()=>o.html`
|
|
1773
1776
|
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
|
|
1774
1777
|
<path d="M18 6 6 18M6 6l12 12" />
|
|
1775
1778
|
</svg>
|
|
1776
|
-
`,bo=new Set(["message","type","position","duration","dismissible","queue","pauseOnHover","onDismiss","class","style","inline","composed","showProgress","progressClass","exitDuration"]);function yo(e){switch(e){case"success":return"bg-success";case"error":return"bg-error";case"info":return"bg-info";default:return"bg-warning"}}function or(e){switch(e){case"top":case"bottom":return"position-center";case"top-right":case"bottom-right":return"position-end";case"top-left":case"bottom-left":default:return"position-start"}}function lr(e){switch(e){case"top":case"top-right":case"top-left":return".toast--top";case"bottom":case"bottom-right":case"bottom-left":default:return".toast--bottom"}}function sr(e){return e==="error"?Qn("var(--moz-color-on-accent)"):e==="info"?Jn("var(--moz-color-on-accent)"):e==="success"?Xn("var(--moz-color-on-accent)"):er("var(--moz-color-on-accent)")}const lo=we({name:"moz-toast",defaults:{type:"warning",position:"bottom",duration:3e3,dismissible:!0,queue:!1,pauseOnHover:!0,inline:!1,composed:!1,showProgress:!1,exitDuration:150},setup(e){let t=!1,
|
|
1779
|
+
`,bo=new Set(["message","type","position","duration","dismissible","queue","pauseOnHover","onDismiss","class","style","inline","composed","showProgress","progressClass","exitDuration"]);function yo(e){switch(e){case"success":return"bg-success";case"error":return"bg-error";case"info":return"bg-info";default:return"bg-warning"}}function or(e){switch(e){case"top":case"bottom":return"position-center";case"top-right":case"bottom-right":return"position-end";case"top-left":case"bottom-left":default:return"position-start"}}function lr(e){switch(e){case"top":case"top-right":case"top-left":return".toast--top";case"bottom":case"bottom-right":case"bottom-left":default:return".toast--bottom"}}function sr(e){return e==="error"?Qn("var(--moz-color-on-accent)"):e==="info"?Jn("var(--moz-color-on-accent)"):e==="success"?Xn("var(--moz-color-on-accent)"):er("var(--moz-color-on-accent)")}const lo=we({name:"moz-toast",defaults:{type:"warning",position:"bottom",duration:3e3,dismissible:!0,queue:!1,pauseOnHover:!0,inline:!1,composed:!1,showProgress:!1,exitDuration:150},setup(e){let t=!1,l=!1,n=null,r=null,d=null,m=100;const s=()=>{let y=document.querySelector(".toast--top"),D=document.querySelector(".toast--bottom");y&&D||(y||(y=document.createElement("div"),y.className="toast--top moz-toast-body moz-toast-body--top",document.body.appendChild(y)),D||(D=document.createElement("div"),D.className="toast--bottom moz-toast-body moz-toast-body--bottom",document.body.appendChild(D)))},i=()=>{if(!e.props.queue)return!1;const y=document.querySelector(".toast--top"),D=document.querySelector(".toast--bottom");return!y||!D?!1:y.childElementCount>0||D.childElementCount>0},h=()=>{d&&clearInterval(d),d=null},a=()=>{n&&n.stop(),r&&clearTimeout(r),h(),t=!1,e.requestUpdate(),setTimeout(()=>{var y,D;(D=(y=e.props).onDismiss)==null||D.call(y),l=!0,e.requestUpdate()},e.props.exitDuration??150)},u=()=>{if(!e.props.inline&&i()){r=setTimeout(u,250);return}t=!0,e.requestUpdate();const y=e.props.duration;y&&(n=new pl(a,y),e.props.showProgress&&(d=setInterval(()=>{m=n?Math.max(0,Math.min(100,n.remaining()/y*100)):0,e.requestUpdate()},50)))},p=y=>{!e.props.pauseOnHover||!n||(y?n.pause():n.resume())},v=()=>{e.props.dismissible&&a()};e.props.inline||s(),e.onCleanup(()=>{n&&n.stop(),r&&clearTimeout(r),h()});const $=()=>{const y=e.props,D=y.duration??0;return o.html`
|
|
1777
1780
|
<div
|
|
1778
1781
|
data-testid="toast-container"
|
|
1779
|
-
${he(ge(
|
|
1780
|
-
role=${
|
|
1781
|
-
aria-live=${
|
|
1782
|
+
${he(ge(y,bo))}
|
|
1783
|
+
role=${y.type==="error"?"alert":"status"}
|
|
1784
|
+
aria-live=${y.type==="error"?"assertive":"polite"}
|
|
1782
1785
|
aria-atomic="true"
|
|
1783
|
-
class=${
|
|
1784
|
-
style=${t?
|
|
1786
|
+
class=${V("moz-toast","moz-toast-composed",yo(y.type),y.class)}
|
|
1787
|
+
style=${t?o.nothing:"display: none;"}
|
|
1785
1788
|
@mouseenter=${()=>p(!0)}
|
|
1786
1789
|
@mouseleave=${()=>p(!1)}
|
|
1787
1790
|
>
|
|
1788
|
-
${
|
|
1789
|
-
<div class=${
|
|
1790
|
-
</div>`:
|
|
1791
|
-
${e.slots.has("icon")?
|
|
1791
|
+
${y.showProgress&&D>0?o.html`<div class="moz-toast-progress" aria-hidden="true">
|
|
1792
|
+
<div class=${V("moz-toast-progress-bar",y.progressClass)} style=${`width: ${m}%`}></div>
|
|
1793
|
+
</div>`:o.nothing}
|
|
1794
|
+
${e.slots.has("icon")?o.html`<div class="moz-toast-icon">${e.slot("icon")}</div>`:o.nothing}
|
|
1792
1795
|
<div class="moz-toast-content">
|
|
1793
|
-
${e.slots.has("heading")?
|
|
1794
|
-
${e.slots.has("description")?
|
|
1795
|
-
${e.slots.has("actions")?
|
|
1796
|
+
${e.slots.has("heading")?o.html`<div class="moz-toast-heading">${e.slot("heading")}</div>`:o.nothing}
|
|
1797
|
+
${e.slots.has("description")?o.html`<div class="moz-toast-description">${e.slot("description")}</div>`:o.nothing}
|
|
1798
|
+
${e.slots.has("actions")?o.html`<div class="moz-toast-actions">${e.slot("actions")}</div>`:o.nothing}
|
|
1796
1799
|
</div>
|
|
1797
|
-
${
|
|
1800
|
+
${y.dismissible?o.html`<button type="button" class="moz-toast-close" aria-label=${e.locale.Toast.close} @click=${a}>
|
|
1798
1801
|
${tr()}
|
|
1799
|
-
</button>`:
|
|
1802
|
+
</button>`:o.nothing}
|
|
1800
1803
|
</div>
|
|
1801
|
-
`},
|
|
1804
|
+
`},A=()=>{const y=e.props;return o.html`
|
|
1802
1805
|
<div
|
|
1803
1806
|
data-testid="toast-container"
|
|
1804
|
-
${he(ge(
|
|
1805
|
-
role=${
|
|
1806
|
-
aria-live=${
|
|
1807
|
+
${he(ge(y,bo))}
|
|
1808
|
+
role=${y.type==="error"?"alert":"status"}
|
|
1809
|
+
aria-live=${y.type==="error"?"assertive":"polite"}
|
|
1807
1810
|
aria-atomic="true"
|
|
1808
|
-
class=${
|
|
1809
|
-
style=${t?
|
|
1811
|
+
class=${V("moz-toast",yo(y.type),or(y.position),y.class)}
|
|
1812
|
+
style=${t?o.nothing:"display: none;"}
|
|
1810
1813
|
@mouseenter=${()=>p(!0)}
|
|
1811
1814
|
@mouseleave=${()=>p(!1)}
|
|
1812
1815
|
@click=${v}
|
|
1813
1816
|
>
|
|
1814
|
-
${sr(
|
|
1815
|
-
<span class="toast-message">${
|
|
1817
|
+
${sr(y.type)}
|
|
1818
|
+
<span class="toast-message">${y.message}</span>
|
|
1816
1819
|
</div>
|
|
1817
|
-
`}
|
|
1820
|
+
`},S=()=>l?o.nothing:e.props.composed?$():A();return{onMounted(){u()},getPortalContainer:()=>e.props.inline?null:document.querySelector(lr(e.props.position)),renderPortal(){return e.props.inline?o.nothing:S()},render(){return e.props.inline?S():o.nothing}}}}),nr=e=>{var t;typeof e.remove<"u"?e.remove():(t=e.parentNode)==null||t.removeChild(e)},rr=(e={})=>{const t=l=>{let n;typeof l=="string"&&(n=l);const r=document.createElement("div");r.style.display="contents";const d={message:n||l.message||"",onDismiss:()=>{nr(r)}},m=Object.assign({},d,e,typeof l=="string"?{}:l);document.body.appendChild(r),lo(r,m,(()=>{}))};return{open:t,success(l,n={}){return t({message:l,type:"success",...n})},error(l,n={}){return t({message:l,type:"error",...n})},info(l,n={}){return t({message:l,type:"info",...n})},warning(l,n={}){return t({message:l,type:"warning",...n})}}},ir={name:"MozToast",core:lo,props:["message","type","position","duration","dismissible","queue","pauseOnHover","onDismiss","inline","composed","showProgress","progressClass","exitDuration"],emits:[],slots:["icon","heading","description","actions"],expose:!1,syncUpdate:!0},$o={top:"bottom",bottom:"top",left:"right",right:"left"};function So(e,t,l,n,r,d){const m=(e==="top"||e==="bottom"?l.height:l.width)+r+d;return{top:t.top,bottom:n.height-(t.top+t.height),left:t.left,right:n.width-(t.left+t.width)}[e]>=m}function yt(e,t,l,n){return e==="start"?t:e==="end"?t+l-n:t+l/2-n/2}function Rt(e,t,l){return l<t?t:Math.min(Math.max(e,t),l)}function hl(e,t,l,n){const{align:r,sideOffset:d,collisionPadding:m}=n,s=n.arrowSize??0;let i=n.side;!So(i,e,t,l,d,m)&&So($o[i],e,t,l,d,m)&&(i=$o[i]);const h=i==="top"||i==="bottom";let a,u;i==="top"?(u=e.top-t.height-d,a=yt(r,e.left,e.width,t.width)):i==="bottom"?(u=e.top+e.height+d,a=yt(r,e.left,e.width,t.width)):i==="left"?(a=e.left-t.width-d,u=yt(r,e.top,e.height,t.height)):(a=e.left+e.width+d,u=yt(r,e.top,e.height,t.height)),h?a=Rt(a,m,l.width-t.width-m):u=Rt(u,m,l.height-t.height-m);const p=h?e.left+e.width/2:e.top+e.height/2,v=h?a:u,$=h?t.width:t.height,A=Rt(p-v,s*2,$-s*2),S={top:e.top-d-m,bottom:l.height-(e.top+e.height)-d-m,left:l.height-m*2,right:l.height-m*2},y=Math.max(0,S[i]);return{side:i,x:a,y:u,arrowOffset:A,availableHeight:y}}const ml=hl,ar=new Set(["open","anchor","text","side","align","sideOffset","collisionPadding","arrow","tooltipId","class","style"]),cr=5,dr=typeof requestAnimationFrame=="function"?e=>{requestAnimationFrame(e)}:e=>{setTimeout(e,0)},fl=we({name:"moz-tooltip",defaults:{open:!1,side:"top",align:"center",sideOffset:8,collisionPadding:8,arrow:!0},setup(e){const t=N.createRef();let l=null,n=null,r=!1;const d=()=>!!e.props.open&&!!e.props.anchor,m=()=>{const i=e.props.anchor,h=t.value;if(!i||!h||!e.props.open)return;const a=ml(i.getBoundingClientRect(),{width:h.offsetWidth,height:h.offsetHeight},{width:window.innerWidth,height:window.innerHeight},{side:e.props.side??"top",align:e.props.align??"center",sideOffset:e.props.sideOffset??8,collisionPadding:e.props.collisionPadding??8,arrowSize:cr});l!==null&&r&&l.side===a.side&&l.x===a.x&&l.y===a.y&&l.arrowOffset===a.arrowOffset||(l=a,r=!0,e.requestUpdate(),n!==a.side&&(n=a.side,e.emit("placed",a.side)))},s=()=>{d()&&m()};return typeof window<"u"&&(window.addEventListener("scroll",s,{capture:!0,passive:!0}),window.addEventListener("resize",s,{passive:!0}),e.onCleanup(()=>{window.removeEventListener("scroll",s,!0),window.removeEventListener("resize",s)})),{render(){return o.nothing},renderPortal(){const i=e.props;if(!d())return l=null,n=null,r=!1,o.nothing;dr(m);const h=(l==null?void 0:l.side)??i.side??"top",a=ge(i,ar),u=h==="top"||h==="bottom"?"left":"top";return o.html`
|
|
1818
1821
|
<div
|
|
1819
|
-
${
|
|
1820
|
-
class=${
|
|
1822
|
+
${N.ref(t)}
|
|
1823
|
+
class=${V("moz-tooltip",i.class)}
|
|
1821
1824
|
role="tooltip"
|
|
1822
|
-
id=${i.tooltipId??
|
|
1825
|
+
id=${i.tooltipId??o.nothing}
|
|
1823
1826
|
data-side=${h}
|
|
1824
1827
|
data-align=${i.align??"center"}
|
|
1825
|
-
style=${le.styleMap({...Pe(i.style),position:"fixed",left:`${(
|
|
1828
|
+
style=${le.styleMap({...Pe(i.style),position:"fixed",left:`${(l==null?void 0:l.x)??0}px`,top:`${(l==null?void 0:l.y)??0}px`,opacity:r?"1":"0"})}
|
|
1826
1829
|
${he(a)}
|
|
1827
1830
|
>
|
|
1828
|
-
${i.arrow?
|
|
1831
|
+
${i.arrow?o.html`<span
|
|
1829
1832
|
class="moz-tooltip-arrow"
|
|
1830
1833
|
data-side=${h}
|
|
1831
|
-
style=${le.styleMap({[u]:`${(
|
|
1832
|
-
></span>`:
|
|
1834
|
+
style=${le.styleMap({[u]:`${(l==null?void 0:l.arrowOffset)??0}px`})}
|
|
1835
|
+
></span>`:o.nothing}
|
|
1833
1836
|
<div class="moz-tooltip-content">
|
|
1834
|
-
${e.slots.has("content")?e.slot("content"):i.text??
|
|
1837
|
+
${e.slots.has("content")?e.slot("content"):i.text??o.nothing}
|
|
1835
1838
|
</div>
|
|
1836
1839
|
</div>
|
|
1837
|
-
`},api:{reposition:()=>m()}}}}),ur={name:"MozTooltip",core:fl,props:["open","anchor","text","side","align","sideOffset","collisionPadding","arrow","tooltipId"],emits:["placed"],slots:["content"],expose:!0},pr=new Set(["open","anchor","side","align","sideOffset","collisionPadding","matchTriggerWidth","trapFocus","popoverId","class","style"]),hr='a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])',ko=typeof requestAnimationFrame=="function"?e=>{requestAnimationFrame(e)}:e=>{setTimeout(e,0)},gl=we({name:"moz-popover",defaults:{open:!1,side:"bottom",align:"start",sideOffset:4,collisionPadding:8,trapFocus:!0,matchTriggerWidth:!1},setup(e){const t=
|
|
1840
|
+
`},api:{reposition:()=>m()}}}}),ur={name:"MozTooltip",core:fl,props:["open","anchor","text","side","align","sideOffset","collisionPadding","arrow","tooltipId"],emits:["placed"],slots:["content"],expose:!0},pr=new Set(["open","anchor","side","align","sideOffset","collisionPadding","matchTriggerWidth","trapFocus","popoverId","class","style"]),hr='a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])',ko=typeof requestAnimationFrame=="function"?e=>{requestAnimationFrame(e)}:e=>{setTimeout(e,0)},gl=we({name:"moz-popover",defaults:{open:!1,side:"bottom",align:"start",sideOffset:4,collisionPadding:8,trapFocus:!0,matchTriggerWidth:!1},setup(e){const t=N.createRef();let l=null,n=null,r=!1,d=!1,m=null,s=null;const i=()=>!!e.props.open&&!!e.props.anchor,h=()=>{const E=t.value;return E?Array.from(E.querySelectorAll(hr)).filter(L=>L.getAttribute("aria-hidden")!=="true"):[]},a=()=>{const E=e.props.anchor,L=t.value;if(!E||!L||!e.props.open)return;const K=hl(E.getBoundingClientRect(),{width:L.offsetWidth,height:L.offsetHeight},{width:window.innerWidth,height:window.innerHeight},{side:e.props.side??"bottom",align:e.props.align??"start",sideOffset:e.props.sideOffset??4,collisionPadding:e.props.collisionPadding??8});l!==null&&r&&l.side===K.side&&l.x===K.x&&l.y===K.y&&l.availableHeight===K.availableHeight||(l=K,r=!0,e.requestUpdate(),n!==K.side&&(n=K.side,e.emit("placed",K.side)))},u=(E,L)=>new CustomEvent(E,{cancelable:!0,detail:L}),p=E=>{e.emit("requestClose",E)},v=E=>{e.emit("escapeKeyDown",E),E.defaultPrevented||p("escape")},$=E=>{if(!i()||!(m!=null&&m.isTopmost()))return;const L=t.value,K=E.target;if(!L||!K||L.contains(K))return;const W=u("moz.interactOutside",{originalEvent:E});e.emit("interactOutside",W),W.defaultPrevented||p("interactOutside")},A=E=>{if(E.key!=="Tab"||!e.props.trapFocus)return;const L=h();if(L.length===0){E.preventDefault();return}const K=L[0],W=L[L.length-1],te=document.activeElement;E.shiftKey&&(te===K||te===t.value)?(E.preventDefault(),W.focus()):!E.shiftKey&&te===W&&(E.preventDefault(),K.focus())},S=()=>{s=document.activeElement??null,m=Ot(v),document.addEventListener("pointerdown",$,!0),ko(()=>{var L;if(!i())return;const E=u("moz.openAutoFocus");e.emit("openAutoFocus",E),!E.defaultPrevented&&((L=h()[0]??t.value)==null||L.focus())})},y=()=>{var K;m==null||m.release(),m=null,document.removeEventListener("pointerdown",$,!0),l=null,n=null,r=!1;const E=u("moz.closeAutoFocus");e.emit("closeAutoFocus",E);const L=s??e.props.anchor;s=null,E.defaultPrevented||(K=L==null?void 0:L.focus)==null||K.call(L)},D=()=>{i()&&a()};return typeof window<"u"&&(window.addEventListener("scroll",D,{capture:!0,passive:!0}),window.addEventListener("resize",D,{passive:!0}),e.onCleanup(()=>{window.removeEventListener("scroll",D,!0),window.removeEventListener("resize",D),m==null||m.release(),m=null,document.removeEventListener("pointerdown",$,!0)})),{render(){return o.nothing},renderPortal(){var ae;const E=e.props,L=i();if(L!==d&&(d=L,L?S():y()),!L)return o.nothing;ko(a);const K=(l==null?void 0:l.side)??E.side??"bottom",W=ge(E,pr),te=((ae=E.anchor)==null?void 0:ae.offsetWidth)??0;return o.html`
|
|
1838
1841
|
<div
|
|
1839
|
-
${
|
|
1840
|
-
class=${
|
|
1842
|
+
${N.ref(t)}
|
|
1843
|
+
class=${V("moz-popover",E.class)}
|
|
1841
1844
|
role="dialog"
|
|
1842
|
-
id=${E.popoverId??
|
|
1845
|
+
id=${E.popoverId??o.nothing}
|
|
1843
1846
|
tabindex="-1"
|
|
1844
|
-
data-side=${
|
|
1847
|
+
data-side=${K}
|
|
1845
1848
|
data-align=${E.align??"start"}
|
|
1846
|
-
@keydown=${
|
|
1847
|
-
style=${le.styleMap({...Pe(E.style),position:"fixed",left:`${(
|
|
1848
|
-
${he(
|
|
1849
|
+
@keydown=${A}
|
|
1850
|
+
style=${le.styleMap({...Pe(E.style),position:"fixed",left:`${(l==null?void 0:l.x)??0}px`,top:`${(l==null?void 0:l.y)??0}px`,opacity:r?"1":"0",pointerEvents:"auto","--moz-popover-trigger-width":`${te}px`,"--moz-popover-available-height":`${(l==null?void 0:l.availableHeight)??0}px`,...E.matchTriggerWidth?{width:`${te}px`}:{}})}
|
|
1851
|
+
${he(W)}
|
|
1849
1852
|
>
|
|
1850
1853
|
${e.slot("content")}
|
|
1851
1854
|
</div>
|
|
1852
|
-
`},api:{reposition:()=>a(),panel:()=>t.value??null}}}}),mr={name:"MozPopover",core:gl,props:["open","anchor","side","align","sideOffset","collisionPadding","matchTriggerWidth","trapFocus","popoverId"],emits:["placed","escapeKeyDown","interactOutside","openAutoFocus","closeAutoFocus","requestClose"],slots:["content"],expose:!0,syncUpdate:!0},fr=new Set(["open","contentId","disabled","forceMount","class","style"]),vl="--moz-collapsible-content-height",wl=we({name:"moz-collapsible",defaults:{open:!1,disabled:!1,forceMount:!1},setup(e){let t=null,
|
|
1853
|
-
${
|
|
1854
|
-
class=${
|
|
1855
|
+
`},api:{reposition:()=>a(),panel:()=>t.value??null}}}}),mr={name:"MozPopover",core:gl,props:["open","anchor","side","align","sideOffset","collisionPadding","matchTriggerWidth","trapFocus","popoverId"],emits:["placed","escapeKeyDown","interactOutside","openAutoFocus","closeAutoFocus","requestClose"],slots:["content"],expose:!0,syncUpdate:!0},fr=new Set(["open","contentId","disabled","forceMount","class","style"]),vl="--moz-collapsible-content-height",wl=we({name:"moz-collapsible",defaults:{open:!1,disabled:!1,forceMount:!1},setup(e){let t=null,l=null,n=-1;const r=()=>{const s=t;if(!s)return;const i=s.scrollHeight;s.style.setProperty(vl,`${i}px`),i!==n&&(n=i,e.emit("heightChange",i))},d=()=>{l==null||l.disconnect(),l=null},m=s=>{if(t=s??null,!t){d(),n=-1;return}r(),!(typeof ResizeObserver>"u")&&(d(),l=new ResizeObserver(()=>r()),l.observe(t))};return e.onCleanup(d),{render(){const s=e.props,i=!!s.open;if(!i&&!s.forceMount)return o.nothing;const h=ge(s,fr);return o.html`<div
|
|
1856
|
+
${N.ref(m)}
|
|
1857
|
+
class=${V("moz-collapsible-content",s.class)}
|
|
1855
1858
|
id=${xe.ifDefined(s.contentId)}
|
|
1856
1859
|
data-state=${i?"open":"closed"}
|
|
1857
|
-
data-disabled=${s.disabled?"":
|
|
1860
|
+
data-disabled=${s.disabled?"":o.nothing}
|
|
1858
1861
|
?hidden=${!i}
|
|
1859
1862
|
style=${le.styleMap(Pe(s.style))}
|
|
1860
1863
|
${he(h)}
|
|
1861
1864
|
>
|
|
1862
1865
|
${e.slot("content")}
|
|
1863
|
-
</div>`}}}}),gr={name:"MozCollapsible",core:wl,props:["open","contentId","disabled","forceMount"],emits:["heightChange"],slots:["content"],expose:!1,syncUpdate:!0},vr=new Set(["src","alt","delayMs","imageClass","fallbackClass","class","style"]),Cl=we({name:"moz-avatar",setup(e){let t="idle",
|
|
1864
|
-
class=${
|
|
1866
|
+
</div>`}}}}),gr={name:"MozCollapsible",core:wl,props:["open","contentId","disabled","forceMount"],emits:["heightChange"],slots:["content"],expose:!1,syncUpdate:!0},vr=new Set(["src","alt","delayMs","imageClass","fallbackClass","class","style"]),Cl=we({name:"moz-avatar",setup(e){let t="idle",l,n=!0,r,d;const m=a=>{t!==a&&(t=a,e.emit("loadingStatusChange",a),e.requestUpdate())},s=()=>{d&&(d.onload=null,d.onerror=null,d=void 0)},i=a=>{if(r!==void 0&&clearTimeout(r),r=void 0,!a||a<=0){n=!0;return}n=!1,r=setTimeout(()=>{n=!0,r=void 0,e.requestUpdate()},a)},h=()=>{const a=e.props.src;if(a===l)return;if(l=a,s(),i(e.props.delayMs),!a){m("idle");return}m("loading");const u=new Image;d=u,u.onload=()=>{d!==u||l!==a||m("loaded")},u.onerror=()=>{d!==u||l!==a||m("error")},u.src=a};return e.onCleanup(()=>{s(),r!==void 0&&clearTimeout(r)}),{render(){h();const a=e.props,u=ge(a,vr),p=t==="loaded",v=!p&&n;return o.html`<span
|
|
1867
|
+
class=${V("moz-avatar",a.class)}
|
|
1865
1868
|
data-status=${t}
|
|
1866
1869
|
style=${le.styleMap(Pe(a.style))}
|
|
1867
1870
|
${he(u)}
|
|
1868
1871
|
>
|
|
1869
|
-
${p?
|
|
1870
|
-
class=${
|
|
1872
|
+
${p?o.html`<img
|
|
1873
|
+
class=${V("moz-avatar-image",a.imageClass)}
|
|
1871
1874
|
src=${xe.ifDefined(a.src)}
|
|
1872
1875
|
alt=${xe.ifDefined(a.alt)}
|
|
1873
|
-
/>`:
|
|
1874
|
-
${v?
|
|
1875
|
-
</span>`},api:{get status(){return t}}}}}),wr={name:"MozAvatar",core:Cl,props:["src","alt","delayMs","imageClass","fallbackClass"],emits:["loadingStatusChange"],slots:["fallback"],expose:!0},Cr=new Set(["viewport","interactionRoot","scrollbarVisibility","orientation","scrollbarClass","thumbClass","class","style"]),br=20,bl=we({name:"moz-scroll-area",defaults:{orientation:"vertical",scrollbarVisibility:"always"},setup(e){let t=null,
|
|
1876
|
-
class=${
|
|
1876
|
+
/>`:o.nothing}
|
|
1877
|
+
${v?o.html`<span class=${V("moz-avatar-fallback",a.fallbackClass)}>${e.slot("fallback")}</span>`:o.nothing}
|
|
1878
|
+
</span>`},api:{get status(){return t}}}}}),wr={name:"MozAvatar",core:Cl,props:["src","alt","delayMs","imageClass","fallbackClass"],emits:["loadingStatusChange"],slots:["fallback"],expose:!0},Cr=new Set(["viewport","interactionRoot","scrollbarVisibility","orientation","scrollbarClass","thumbClass","class","style"]),br=20,bl=we({name:"moz-scroll-area",defaults:{orientation:"vertical",scrollbarVisibility:"always"},setup(e){let t=null,l=null,n=null,r=null,d=null,m=!1,s=!1,i=null,h=null,a=null,u=null,p=null,v=!1,$=!1,A=null,S=null;const y=k=>!!k&&"nodeType"in k&&(!!(a!=null&&a.contains(k))||!!(u!=null&&u.contains(k))),D=()=>y((a==null?void 0:a.ownerDocument.activeElement)??null),E=()=>{const k=D();k!==$&&($=k,e.requestUpdate())},L=k=>{u=k??null},K=k=>{k.pointerType!=="touch"&&(v=!0,e.requestUpdate())},W=k=>{k.pointerType!=="touch"&&(v=y(k.relatedTarget),e.requestUpdate())},te=()=>{E()},ae=()=>{e.requestUpdate()},ee=()=>{A==null||A(),p==null||p.disconnect(),p=null,a==null||a.removeEventListener("pointerenter",K),a==null||a.removeEventListener("pointerleave",W),a==null||a.removeEventListener("focusin",te),a==null||a.removeEventListener("focusout",ae),a=null,v=$=!1},Y=()=>{(S==null?void 0:S.getAttribute("tabindex"))==="0"&&S.removeAttribute("tabindex"),S=null},M=()=>{var T;const k=e.props.interactionRoot??t;k!==a&&(ee(),a=k,k&&(k.addEventListener("pointerenter",K),k.addEventListener("pointerleave",W),k.addEventListener("focusin",te),k.addEventListener("focusout",ae)));const z=(T=k==null?void 0:k.ownerDocument.defaultView)==null?void 0:T.MutationObserver;e.props.scrollbarVisibility==="hover"&&k&&!p&&z?(p=new z(E),p.observe(k,{childList:!0,subtree:!0})):e.props.scrollbarVisibility!=="hover"&&(p==null||p.disconnect(),p=null),$=D(),e.props.scrollbarVisibility!=="hover"?Y():t&&!t.hasAttribute("tabindex")&&(t.tabIndex=0,S=t)},G=k=>{const z=e.props.orientation??"vertical";return z==="both"||z===k},ne=k=>{const z=t;if(!z||!G(k))return!1;const T=k==="vertical",I=T?z.scrollHeight:z.scrollWidth,g=T?z.clientHeight:z.clientWidth;if(I<=g+1||g<=0)return!1;const B=T?r:d,Z=T?l:n;if(!B||!Z)return!0;const X=T?B.clientHeight:B.clientWidth;if(X<=0)return!0;const ve=g/I,De=Math.max(X*ve,br),Ne=X-De,Oe=T?z.scrollTop:z.scrollLeft,c=I-g,x=c>0?Oe/c*Ne:0;return T?(Z.style.height=`${De}px`,Z.style.transform=`translateY(${x}px)`):(Z.style.width=`${De}px`,Z.style.transform=`translateX(${x}px)`),!0},oe=()=>{const k=ne("vertical"),z=ne("horizontal");k===m&&z===s||(m=k,s=z,e.requestUpdate())},J=()=>{const k=t;k&&(oe(),e.emit("scroll",{scrollTop:k.scrollTop,scrollLeft:k.scrollLeft}))},U=()=>{ee(),Y(),t&&t.removeEventListener("scroll",J),i==null||i.disconnect(),i=null,h==null||h.disconnect(),h=null,t=null},b=()=>{const k=e.props.viewport??null;if(k!==t&&(U(),t=k,!!t)){if(t.addEventListener("scroll",J,{passive:!0}),typeof ResizeObserver<"u"){i=new ResizeObserver(()=>oe()),i.observe(t);const z=t.firstElementChild;z&&(h=new ResizeObserver(()=>oe()),h.observe(z))}oe()}},R=(k,z)=>{var C;const T=t,I=T==null?void 0:T.ownerDocument.defaultView;if(!T||!I||A||z.button!==0)return;const g=k==="vertical",B=g?r:d,Z=g?l:n;if(!B||!Z)return;z.preventDefault();const X=g?z.clientY:z.clientX,ve=g?T.scrollTop:T.scrollLeft,De=g?B.clientHeight:B.clientWidth,Ne=g?Z.offsetHeight:Z.offsetWidth,Oe=g?T.scrollHeight:T.scrollWidth,c=g?T.clientHeight:T.clientWidth,x=De-Ne,j=Oe-c;if(x<=0||j<=0)return;const re=z.pointerId,de=q=>{v=q.pointerType!=="touch"&&[a,r,d].some(Ce=>{if(!Ce||Ce.hidden)return!1;const Se=Ce.getBoundingClientRect();return q.clientX>=Se.left&&q.clientX<Se.right&&q.clientY>=Se.top&&q.clientY<Se.bottom})},$e=q=>{if(q.pointerId!==re)return;de(q);const Ce=(g?q.clientY:q.clientX)-X,Se=ve+Ce/x*j;g?T.scrollTop=Se:T.scrollLeft=Se},be=q=>{q.pointerId===re&&(de(q),q.type!=="pointerup"&&(v=!1),A==null||A(),e.requestUpdate())};A=()=>{var q;A=null,I.removeEventListener("pointermove",$e),I.removeEventListener("pointerup",be),I.removeEventListener("pointercancel",be),Z.removeEventListener("lostpointercapture",be);try{(q=Z.releasePointerCapture)==null||q.call(Z,re)}catch{}},I.addEventListener("pointermove",$e),I.addEventListener("pointerup",be),I.addEventListener("pointercancel",be),Z.addEventListener("lostpointercapture",be);try{(C=Z.setPointerCapture)==null||C.call(Z,re)}catch{}e.requestUpdate()};e.onCleanup(U);const _=(k,z)=>{const T=k==="vertical",I=B=>{T?r=B??null:d=B??null},g=B=>{T?l=B??null:n=B??null,B&&oe()};return o.html`<div
|
|
1879
|
+
class=${V("moz-scroll-area-scrollbar",e.props.scrollbarClass)}
|
|
1877
1880
|
data-orientation=${k}
|
|
1878
|
-
?hidden=${!
|
|
1879
|
-
${
|
|
1881
|
+
?hidden=${!z}
|
|
1882
|
+
${N.ref(I)}
|
|
1880
1883
|
>
|
|
1881
1884
|
<div
|
|
1882
|
-
class=${
|
|
1883
|
-
@pointerdown=${
|
|
1884
|
-
${
|
|
1885
|
+
class=${V("moz-scroll-area-thumb",e.props.thumbClass)}
|
|
1886
|
+
@pointerdown=${B=>R(k,B)}
|
|
1887
|
+
${N.ref(g)}
|
|
1885
1888
|
></div>
|
|
1886
|
-
</div>`};return{render(){
|
|
1887
|
-
class=${
|
|
1889
|
+
</div>`};return{render(){b(),M();const k=e.props,z=ge(k,Cr),T=G("vertical")&&G("horizontal");return o.html`<div
|
|
1890
|
+
class=${V("moz-scroll-area-bars",k.class)}
|
|
1888
1891
|
data-orientation=${k.orientation??"vertical"}
|
|
1889
|
-
data-state=${k.scrollbarVisibility!=="hover"||v
|
|
1892
|
+
data-state=${k.scrollbarVisibility!=="hover"||v||$||A?"visible":"hidden"}
|
|
1890
1893
|
style=${le.styleMap(Pe(k.style))}
|
|
1891
|
-
@pointerenter=${
|
|
1892
|
-
@pointerleave=${
|
|
1893
|
-
@focusin=${
|
|
1894
|
+
@pointerenter=${K}
|
|
1895
|
+
@pointerleave=${W}
|
|
1896
|
+
@focusin=${te}
|
|
1894
1897
|
@focusout=${ae}
|
|
1895
|
-
${
|
|
1896
|
-
${he(
|
|
1898
|
+
${N.ref(L)}
|
|
1899
|
+
${he(z)}
|
|
1897
1900
|
>
|
|
1898
|
-
${
|
|
1899
|
-
${
|
|
1900
|
-
${
|
|
1901
|
-
</div>`}}}}),yr={name:"MozScrollAreaBars",core:bl,props:["viewport","interactionRoot","scrollbarVisibility","orientation","scrollbarClass","thumbClass"],emits:["scroll"],expose:!1,syncUpdate:!0};exports.AVATAR_SPEC=wr;exports.BREADCRUMB_SPEC=Jl;exports.BUTTON_SPEC=Yl;exports.CALENDAR_SPEC=Rs;exports.CHECKBOX_SPEC=cs;exports.COLLAPSIBLE_HEIGHT_VAR=vl;exports.COLLAPSIBLE_SPEC=gr;exports.CONTEXTMENU_SPEC=yn;exports.CONTROLLER_SPEC=jn;exports.ChromeComponent=Po;exports.DATEINPUT_SPEC=
|
|
1901
|
+
${G("vertical")?_("vertical",m):o.nothing}
|
|
1902
|
+
${G("horizontal")?_("horizontal",s):o.nothing}
|
|
1903
|
+
${T&&m&&s?o.html`<div class="moz-scroll-area-corner"></div>`:o.nothing}
|
|
1904
|
+
</div>`}}}}),yr={name:"MozScrollAreaBars",core:bl,props:["viewport","interactionRoot","scrollbarVisibility","orientation","scrollbarClass","thumbClass"],emits:["scroll"],expose:!1,syncUpdate:!0};exports.AVATAR_SPEC=wr;exports.BREADCRUMB_SPEC=Jl;exports.BUTTON_SPEC=Yl;exports.CALENDAR_SPEC=Rs;exports.CHECKBOX_SPEC=cs;exports.COLLAPSIBLE_HEIGHT_VAR=vl;exports.COLLAPSIBLE_SPEC=gr;exports.CONTEXTMENU_SPEC=yn;exports.CONTROLLER_SPEC=jn;exports.ChromeComponent=Po;exports.DATEINPUT_SPEC=Hs;exports.DEFAULT_TREE_PROPS=Ft;exports.EMPTYSTATE_SPEC=is;exports.INPUT_SPEC=hs;exports.LABEL_SPEC=jl;exports.MULTISELECT_SPEC=an;exports.NUMBERINPUT_SPEC=ks;exports.Observable=Al;exports.Overlay=pt;exports.PASSWORDINPUT_SPEC=gs;exports.POPOVER_SPEC=mr;exports.POPUP_SPEC=Xs;exports.PortalHost=kt;exports.RADIO_SPEC=us;exports.SCROLLAREA_SPEC=yr;exports.SELECT_SPEC=tn;exports.SLIDER_SPEC=Ls;exports.SPLITPANE_SPEC=Hn;exports.SlotHost=xo;exports.TABLESELECT_SPEC=Tn;exports.TAB_SPEC=Ps;exports.TAGINPUT_SPEC=vn;exports.TEXTAREA_SPEC=ws;exports.TIMEPICKER_SPEC=hn;exports.TOAST_SPEC=ir;exports.TOGGLE_SPEC=Ql;exports.TOOLTIP_SPEC=ur;exports.TREESELECT_SPEC=Bn;exports.Timer=pl;exports.breadcrumbTemplate=Kt;exports.buttonTemplate=at;exports.checkboxTemplate=$t;exports.circleLoader=Ht;exports.cn=V;exports.computeTooltipPlacement=ml;exports.createAvatar=Cl;exports.createBreadCrumb=Ao;exports.createButton=zo;exports.createCalendar=Xt;exports.createCheckBox=Fo;exports.createCollapsible=wl;exports.createContextMenu=ll;exports.createController=ul;exports.createDateInput=Zo;exports.createEmptyState=Io;exports.createInput=Oo;exports.createLabel=Vo;exports.createMultiSelect=Jo;exports.createNumberInput=Wo;exports.createPasswordInput=No;exports.createPopover=gl;exports.createPopup=Xo;exports.createRadio=Bo;exports.createScrollArea=bl;exports.createSelect=Qo;exports.createSlider=Yo;exports.createSplitPane=dl;exports.createTab=Go;exports.createTableSelect=sl;exports.createTagInput=ol;exports.createTextArea=_o;exports.createTimePicker=tl;exports.createToast=lo;exports.createToggle=Do;exports.createTooltip=fl;exports.createTreeSelect=cl;exports.createValidator=Ol;exports.dayjs=Ee;exports.defaultEmptyStateMessages=Ro;exports.defineHeadless=we;exports.dismissLayerCount=Kl;exports.enUS=Rl;exports.generateUUID=Lo;exports.iconArrowRight=Nt;exports.iconCheckBox=Gt;exports.iconCheckBoxChecked=Yt;exports.iconCheckboxIndeterminate=Zt;exports.iconClose=Ko;exports.iconFavorite=_t;exports.iconFavoriteFilled=Wt;exports.iconInfo=jt;exports.iconPasswordHidden=Ho;exports.iconPasswordVisible=Uo;exports.jaJP=Il;exports.koKR=It;exports.labelClass=Ut;exports.labelTemplate=Be;exports.normalizeStyle=Pe;exports.pickRest=ge;exports.pxToRem=Le;exports.registerDismissLayer=Ot;exports.registerForeignLayer=Wl;exports.registerSelfHandledLayer=ht;exports.shallowEqual=rt;exports.spread=he;exports.toggleTemplate=Pt;exports.uniqueId=Xe;exports.useToast=rr;exports.zhCN=ql;
|
|
1902
1905
|
//# sourceMappingURL=index.cjs.map
|