@vmscloud/moz-ui-components-core 0.1.42 → 0.1.43
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 +2 -0
- package/dist/components/radio/radio.core.d.ts +27 -0
- package/dist/index.cjs +609 -594
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2399 -2321
- package/dist/index.js.map +1 -1
- package/dist/styles/default/index.css +20 -4
- package/dist/styles/default/radio.css +20 -4
- 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,o)=>t in e?El(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;var Ve=(e,t,o)=>Pl(e,typeof t!="symbol"?t+"":t,o);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("lit-html"),qt=require("lit-html/directive.js"),
|
|
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:"탐색 경로"}},Al={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 de;const s=e.portal?new kt:null,h=s?s.open():t,c=new xo;if(r!=null&&r.slots)for(const[ee,W]of Object.entries(r.slots))c.register(ee,W);r!=null&&r.slotResolver&&c.setResolver(r.slotResolver);const i=new Set(Object.keys(o)),m=r!=null&&r.providedKeys?new Set(r.providedKeys):null,a=ee=>{const W=e.defaults;if(!W)return ee;const z={...ee};for(const G of Object.keys(W))z[G]===void 0&&(z[G]=W[G]);return z};let u=a({...o}),p=(r==null?void 0:r.locale)??It;const v=(r==null?void 0:r.validator)??null,$=[];let R=new Map,y=new Set,b=new Map,M=null;const S={get props(){return u},emit:n,slots:c,requestUpdate:()=>j.requestUpdate(),onCleanup:ee=>$.push(ee),px:ee=>Le(ee),get locale(){return p},validator:v,controlled:ee=>m?m.has(ee):i.has(ee),slot(ee,W){if(!c.has(ee))return l.nothing;const z=b.get(ee)??0;b.set(ee,z+1);const G=`${ee}#${z}`;return R.set(G,{name:ee,scope:W}),l.html`<span data-moz-slot=${ee} data-moz-slot-id=${G}></span>`}},L=e.setup(S);class X extends Po{template(){return R=new Map,b=new Map,L.render()}renderNow(){super.renderNow();let W=null;if(L.renderPortal){const z=L.renderPortal(),G=L.getPortalContainer?L.getPortalContainer():document.body;z===l.nothing||z==null||G==null?M&&M.isOpen&&(l.render(l.nothing,M.element),M.close()):(M||(M=new kt),W=M.isOpen?M.element:M.open("moz-overlay-portal",G),l.render(z,W))}for(const[z,{name:G,scope:le}]of R){let se=this.container.querySelector(`[data-moz-slot-id="${z}"]`);!se&&W&&(se=W.querySelector(`[data-moz-slot-id="${z}"]`)),se&&c.fill(z,G,se,le)}for(const z of y)R.has(z)||c.clear(z);y=new Set(R.keys())}flush(){this.isMounted&&this.renderNow()}onDestroy(){for(const W of $.splice(0))try{W()}catch{}c.destroy()}}const j=new X(h);return j.mount(),(de=L.onMounted)==null||de.call(L,h.firstElementChild),{get el(){return h.firstElementChild},update(ee,W){W!=null&&W.replace?(u=a({...ee}),i.clear()):u=a({...u,...ee});for(const z of Object.keys(ee))i.add(z);W!=null&&W.sync?j.flush():j.requestUpdate()},destroy(){j.destroy(),s==null||s.close(),M==null||M.close()},setLocale(ee){ee!==p&&(p=ee??It,j.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,s=n??{};for(const h of this.prevKeys)if(!(h in s))if(this.isEventKey(h)){const c=this.listeners.get(h);c&&r.removeEventListener(this.eventName(h),c),this.listeners.delete(h)}else r.removeAttribute(h);for(const[h,c]of Object.entries(s))if(!(h==="class"||h==="style"||h==="key"||h==="ref"))if(this.isEventKey(h)&&typeof c=="function"){const i=this.eventName(h),m=this.listeners.get(h);m&&r.removeEventListener(i,m),r.addEventListener(i,c),this.listeners.set(h,c)}else c==null?r.removeAttribute(h):h.startsWith("aria-")?r.setAttribute(h,String(c)):c===!1?r.removeAttribute(h):c===!0?r.setAttribute(h,""):r.setAttribute(h,String(c));return this.prevKeys=Object.keys(s),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 T(...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:s=>{e.push(s)},removeValidator:s=>{const h=e.findIndex(c=>c.validate===s.validate);h>=0&&e.splice(h,1)},validate:async(s="save")=>(await Promise.all(e.map(c=>c.validate(s).then(i=>i===void 0?!0:i)))).every(c=>c),initValidator:()=>{var s;for(const h of e)(s=h==null?void 0:h.initValidator)==null||s.call(h)}}}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,s=window.innerHeight-n.bottom,h=n.top,c=s<r&&h>=r;let i=n.left;const m=o.clientWidth;n.left+m>document.body.clientWidth&&(i-=m-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`,c?(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,s,h,c;if(this.opts.closeOnOutsideClick===!1)return;const o=t.target;(s=(r=(n=this.opts).container)==null?void 0:r.call(n))!=null&&s.contains(o)||(h=this.opts.panel())!=null&&h.contains(o)||(c=this.opts.anchor())!=null&&c.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,o)=>t in e?El(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;var Ve=(e,t,o)=>Pl(e,typeof t!="symbol"?t+"":t,o);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=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 O=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(){l.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{}l.render(l.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 o;return this.renderers.get(t)??((o=this.resolver)==null?void 0:o.call(this,t))}register(t,o){this.renderers.set(t,o)}unregister(t){for(const o of Array.from(this.mounted.keys()))(o===t||o.startsWith(`${t}#`))&&this.clear(o);this.renderers.delete(t)}has(t){return this.lookup(t)!==void 0}fill(t,o,n,r){var i,h;const d=this.lookup(o);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 o=this.mounted.get(t);o&&(o.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="",o=document.body){return this.el?this.el:(this.el=document.createElement("div"),t&&(this.el.className=t),o.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 o=Object.keys(e),n=Object.keys(t);if(o.length!==n.length)return!1;for(const r of o)if(e[r]!==t[r])return!1;return!0};function ge(e,t){const o={};for(const n of Object.keys(e))t.has(n)||(o[n]=e[n]);return o}function ut(e){const t={},o={};for(const n of Object.keys(e))n.startsWith("aria-")?t[n]=e[n]:o[n]=e[n];return{aria:t,dom:o}}function Pe(e){if(!e)return{};if(typeof e=="object")return e;if(typeof e=="string"){const t={};for(const o of e.split(";")){const n=o.indexOf(":");n>0&&(t[o.slice(0,n).trim()]=o.slice(n+1).trim())}return t}return{}}function Tt(e,t,o,n){return e.length>0||t===0||!n||n.getBoundingClientRect().height>0?e:Array.from({length:t},(r,d)=>({index:d,size:o,start:d*o}))}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,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
|
|
3
3
|
aria-hidden="true"
|
|
4
4
|
role="status"
|
|
5
5
|
class="moz-circle-loader"
|
|
@@ -20,56 +20,56 @@
|
|
|
20
20
|
fill="var(--moz-color-accent)"
|
|
21
21
|
class=${o}
|
|
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 o=!!e.disabled||!!e.loading,n=t.icon!=null&&t.icon!==l.nothing,r=e.width==null?void 0:typeof e.width=="number"?`${Le(e.width)}rem`:e.width,
|
|
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 o=!!e.disabled||!!e.loading,n=t.icon!=null&&t.icon!==l.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;o||(h=t.onClick)==null||h.call(t,i)};return l.html`
|
|
24
24
|
<button
|
|
25
25
|
type=${e.nativeType??"button"}
|
|
26
|
-
class=${
|
|
27
|
-
style=${
|
|
26
|
+
class=${M("moz-button",Mo(e.type),{loading:!!e.loading,disabled:o,"moz-icon-text-button":n},e.class)}
|
|
27
|
+
style=${le.styleMap(m)}
|
|
28
28
|
?disabled=${o}
|
|
29
|
-
@click=${
|
|
29
|
+
@click=${s}
|
|
30
30
|
${he(t.rest??{})}
|
|
31
31
|
>
|
|
32
32
|
${e.loading?l.html`<span class="spinner" data-part="spinner"
|
|
33
33
|
>${Ot({circleClass:"fill-accent-50",progressClass:"fill-accent-400"})}</span
|
|
34
34
|
>`:t.icon??l.nothing}
|
|
35
|
-
${e.text||t.content!=null?l.html`<span class=${
|
|
35
|
+
${e.text||t.content!=null?l.html`<span class=${M("text",{"has-icon-text":n})} data-part="label"
|
|
36
36
|
>${e.text??""}${t.content??l.nothing}</span
|
|
37
37
|
>`:l.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,o=e.props.loading;const n=r=>{const
|
|
39
|
+
`}const zo=we({name:"moz-button",defaults:{type:"default",loading:!1,disabled:!1},setup(e){let t=!!e.props.loading,o=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!==o&&(o=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 l.html`
|
|
40
40
|
<button
|
|
41
41
|
type=${r.nativeType??"button"}
|
|
42
|
-
class=${
|
|
43
|
-
style=${
|
|
44
|
-
?disabled=${
|
|
42
|
+
class=${M("moz-button",Mo(r.type),{loading:t,disabled:m,"moz-icon-text-button":d},r.class)}
|
|
43
|
+
style=${le.styleMap(a)}
|
|
44
|
+
?disabled=${m}
|
|
45
45
|
@click=${n}
|
|
46
|
-
${he(
|
|
46
|
+
${he(h)}
|
|
47
47
|
>
|
|
48
48
|
${t?l.html`<span class="spinner" data-part="spinner"
|
|
49
49
|
>${Ot({circleClass:"fill-accent-50",progressClass:"fill-accent-400"})}</span
|
|
50
|
-
>`:e.slot("icon",{disabled:
|
|
51
|
-
${r.text||e.slots.has("default")?l.html`<span class=${
|
|
52
|
-
>${r.text??""}${e.slot("default",{disabled:
|
|
50
|
+
>`:e.slot("icon",{disabled:m})}
|
|
51
|
+
${r.text||e.slots.has("default")?l.html`<span class=${M("text",{"has-icon-text":d})} data-part="label"
|
|
52
|
+
>${r.text??""}${e.slot("default",{disabled:m})}</span
|
|
53
53
|
>`:l.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
|
|
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 M("moz-label",{disabled:!!e.disabled,"read-only":!!e.isReadOnly},t,e.class)}function Be(e,t,o){return l.html`<label class=${Ut(e,o)} for=${xe.ifDefined(e.for)}
|
|
56
56
|
>${t}${e.required?l.html`<span class="require-mark">*</span>`:l.nothing}</label
|
|
57
57
|
>`}const Vo=we({name:"moz-label",setup(e){return{render(){const t=e.props,o=ge(t,Zl);return l.html`<label
|
|
58
58
|
class=${Ut(t)}
|
|
59
59
|
for=${xe.ifDefined(t.for)}
|
|
60
|
-
style=${
|
|
60
|
+
style=${le.styleMap(Pe(t.style))}
|
|
61
61
|
${he(o)}
|
|
62
62
|
>${e.slot("default")}${t.required?l.html`<span class="require-mark">*</span>`:l.nothing}</label
|
|
63
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 l.html`
|
|
64
64
|
<div
|
|
65
65
|
data-part="root"
|
|
66
|
-
class=${
|
|
66
|
+
class=${M(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
71
|
${e.labelPosition!=="right"?Be({for:e.id,disabled:e.disabled,required:e.required},e.label??"","label-left"):l.nothing}
|
|
72
|
-
<div class=${
|
|
72
|
+
<div class=${M("moz-switch-box",{active:t,disabled:!!e.disabled})}>
|
|
73
73
|
<input
|
|
74
74
|
id=${e.id}
|
|
75
75
|
class="moz-switch-input"
|
|
@@ -82,12 +82,12 @@
|
|
|
82
82
|
@change=${e.onChange}
|
|
83
83
|
@click=${e.onClick}
|
|
84
84
|
/>
|
|
85
|
-
<div class=${
|
|
85
|
+
<div class=${M("moz-switch-handler",{active:t,disabled:!!e.disabled})}></div>
|
|
86
86
|
</div>
|
|
87
87
|
${e.labelPosition==="right"?Be({for:e.id,disabled:e.disabled},e.label??"","label-right"):l.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_"),o=r=>{const
|
|
90
|
+
`}const Do=we({name:"moz-toggle",defaults:{labelPosition:"left",required:!1,readonly:!1,disabled:!1,visible:!0},setup(e){const t=Xe("switch_"),o=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:o})}}}}),Ql={name:"MozToggle",core:Do,props:["label","labelPosition","required","readonly","disabled","visible"],emits:["change"],models:{modelValue:{prop:"modelValue",event:"change"}},slots:[],expose:!1};function _t(e=""){return l.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"
|
|
@@ -117,40 +117,40 @@
|
|
|
117
117
|
<div
|
|
118
118
|
role="navigation"
|
|
119
119
|
aria-label=${e.ariaLabel??"breadcrumb"}
|
|
120
|
-
class=${
|
|
121
|
-
style=${
|
|
120
|
+
class=${M("moz-bread-crumb",e.class)}
|
|
121
|
+
style=${le.styleMap(Pe(e.style))}
|
|
122
122
|
${he(e.rest??{})}
|
|
123
123
|
>
|
|
124
124
|
<div class="menu-item">
|
|
125
|
-
${t.map((r,
|
|
125
|
+
${t.map((r,d)=>t.length-1===d?l.html`<div class="current-item" aria-current="page">${r}</div>`:l.html`<div>${r}</div>${_t("separator")}`)}
|
|
126
126
|
</div>
|
|
127
127
|
${n}${e.titleSlot??l.nothing}
|
|
128
128
|
</div>
|
|
129
|
-
`}const
|
|
130
|
-
${
|
|
131
|
-
</button>`:l.nothing,
|
|
129
|
+
`}const Ao=we({name:"moz-bread-crumb",defaults:{showFavorite:!0,modelValue:!0,itemSource:[]},setup(e){const t=()=>e.emit("click",!!e.props.modelValue),o=n=>{const r=e.props,d=!!r.modelValue,m=r.showFavorite?e.slots.has("favorite")?e.slot("favorite"):l.html`<button type="button" class="favorite-icon" @click=${t}>
|
|
130
|
+
${d?Wt(void 0,"favorite-filled"):Nt(void 0,"empty")}
|
|
131
|
+
</button>`:l.nothing,s=()=>l.html`<li role="presentation" aria-hidden="true" class="moz-bread-crumb-separator">
|
|
132
132
|
${e.slots.has("separator")?e.slot("separator"):_t("separator")}
|
|
133
133
|
</li>`;return l.html`
|
|
134
134
|
<nav
|
|
135
135
|
aria-label=${e.locale.BreadCrumb.navigation}
|
|
136
|
-
class=${
|
|
137
|
-
style=${
|
|
136
|
+
class=${M("moz-bread-crumb","moz-bread-crumb-items",r.class)}
|
|
137
|
+
style=${le.styleMap(Pe(r.style))}
|
|
138
138
|
${he(ge(r,io))}
|
|
139
139
|
>
|
|
140
|
-
<ol class=${
|
|
141
|
-
${n.map((i,
|
|
140
|
+
<ol class=${M("moz-bread-crumb-list",r.listClass)}>
|
|
141
|
+
${n.map((i,h)=>l.html`
|
|
142
142
|
<li class="moz-bread-crumb-item" aria-current=${i.current?"page":l.nothing}>
|
|
143
143
|
${e.slot(`item-${i.key}`)}
|
|
144
144
|
</li>
|
|
145
|
-
${
|
|
145
|
+
${h<n.length-1?s():l.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:Ro,props:["itemSource","items","listClass","showFavorite"],emits:["click"],models:{modelValue:{prop:"modelValue",event:"update:modelValue"}},slots:["favorite","title","separator"],expose:!1,syncUpdate:!0},Ao={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 s;return((s=e.props.messages)==null?void 0:s[n])||e.locale.EmptyState[n]||Ao[n]||""},o=()=>{const n=e.props,r=n.totalRowCount??0,s=n.filterdRowCount??0;if(n.selectImg&&(r===0||s===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":s===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?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`
|
|
151
151
|
<div
|
|
152
|
-
class=${
|
|
153
|
-
style=${
|
|
152
|
+
class=${M("empty-container","empty-composed",n.class)}
|
|
153
|
+
style=${le.styleMap(Pe(n.style))}
|
|
154
154
|
${he(r)}
|
|
155
155
|
>
|
|
156
156
|
${e.slots.has("icon")?l.html`<div class="empty-icon">${e.slot("icon")}</div>`:l.nothing}
|
|
@@ -159,10 +159,10 @@
|
|
|
159
159
|
${e.slots.has("actions")?l.html`<div class="empty-actions">${e.slot("actions")}</div>`:l.nothing}
|
|
160
160
|
${e.slots.has("customState")?l.html`<div class="empty-content">${e.slot("customState")}</div>`:l.nothing}
|
|
161
161
|
</div>
|
|
162
|
-
`;const
|
|
163
|
-
<div class=${
|
|
164
|
-
${
|
|
165
|
-
<div class="empty-heading">${
|
|
162
|
+
`;const d=o();if(!d)return l.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")?l.html`<div class="empty-icon">${e.slot("icon")}</div>`:n.useImg?l.html`<img src=${m} alt="Empty state" class="empty-img" />`:l.nothing;return l.html`
|
|
163
|
+
<div class=${M("empty-container",n.class)} style=${le.styleMap(Pe(n.style))} ${he(r)}>
|
|
164
|
+
${h}
|
|
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
168
|
${e.slots.has("actions")?l.html`<div class="empty-actions">${e.slot("actions")}</div>`:l.nothing}
|
|
@@ -184,138 +184,153 @@
|
|
|
184
184
|
</svg>`}function Zt(e="var(--moz-color-accent)",t=!1,o=""){return l.html`<svg class=${o} 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,o=!!e.disabled,n=!!e.indeterminate,r=()=>{var
|
|
187
|
+
</svg>`}const as=new Set(["label","fieldId","disabled","readonly","checked","indeterminate","modelValue","class","style"]);function $t(e={}){const t=!!e.checked,o=!!e.disabled,n=!!e.indeterminate,r=()=>{var d;o||(d=e.onChange)==null||d.call(e,!t)};return l.html`
|
|
188
188
|
<div
|
|
189
|
-
class=${
|
|
190
|
-
@click=${
|
|
189
|
+
class=${M("moz-checkbox",{"cursor-pointer":!o,"cursor-not-allowed":o,disabled:o},e.class)}
|
|
190
|
+
@click=${d=>{o||(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=${M("checkbox-input",{"cursor-pointer":!o,"cursor-not-allowed":o})}
|
|
196
196
|
.checked=${t}
|
|
197
197
|
?disabled=${o}
|
|
198
198
|
tabindex=${o?-1:0}
|
|
199
|
-
@click=${
|
|
200
|
-
@change=${
|
|
199
|
+
@click=${d=>d.stopPropagation()}
|
|
200
|
+
@change=${d=>{d.target.checked=t,r()}}
|
|
201
201
|
/>
|
|
202
202
|
<div class="checkbox-visual">
|
|
203
203
|
${n?Zt(void 0,o,"checked-icon"):t?Yt(void 0,o,"checked-icon"):Gt(void 0,o,"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 o=!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)},
|
|
207
|
+
`}const Fo=we({name:"moz-checkbox",defaults:{disabled:!1,readonly:!1,indeterminate:!1,modelValue:!1},setup(e){const t=Lo();let o=!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 y=v.checked;e.controlled("checked")?(v.checked=n(),e.emit("change",y)):(e.emit("update:modelValue",y),e.emit("change",y))},i=u=>{const p=e.props;p.disabled||p.readonly||(u.key==="Enter"||u.key===" ")&&(u.preventDefault(),r())},h=()=>{o=!0,e.requestUpdate()},a=()=>{o=!1,e.requestUpdate()};return{render(){const u=e.props,p=u.fieldId||t,v=n(),y=ge(u,as);return l.html`
|
|
208
208
|
<div
|
|
209
|
-
class=${
|
|
210
|
-
@click=${
|
|
209
|
+
class=${M("moz-checkbox",{"cursor-pointer":!u.disabled&&!u.readonly,"cursor-not-allowed":u.disabled,disabled:u.disabled,"cursor-default":u.readonly&&!u.disabled})}
|
|
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=${M("checkbox-input",{"cursor-pointer":!u.disabled&&!u.readonly,"cursor-not-allowed":u.disabled,"cursor-default":u.readonly&&!u.disabled})}
|
|
217
|
+
${he(y)}
|
|
218
218
|
.checked=${v}
|
|
219
219
|
?disabled=${!!u.disabled}
|
|
220
220
|
tabindex=${u.disabled?-1:0}
|
|
221
|
-
@click=${
|
|
222
|
-
@change=${
|
|
223
|
-
@focus=${
|
|
221
|
+
@click=${m}
|
|
222
|
+
@change=${s}
|
|
223
|
+
@focus=${h}
|
|
224
224
|
@blur=${a}
|
|
225
225
|
@keydown=${i}
|
|
226
226
|
/>
|
|
227
|
-
<div class=${
|
|
227
|
+
<div class=${M("checkbox-visual",{focused:o})}>
|
|
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
231
|
${u.label?Be({for:p,disabled:u.disabled},u.label,"moz-checkbox-label"):l.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","itemsSource","value","name","direction","variant","labelPosition","modelValue","class","style"]),Bo=we({name:"moz-radio",defaults:{label:"",text:"",disabled:!1,required:!1,displayExpr:"label",valueExpr:"value",tooltipExpr:"tooltip",itemsSource:[],direction:"horizontal",variant:"boxed",labelPosition:"top"},setup(e){const t=Xe("radio_"),o=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=>{const h=e.props,
|
|
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_"),o=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 M("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,y=!v&&s.variant==="segment",R=ge(s,ds),$=()=>l.html`
|
|
234
234
|
<div class="radio-container">
|
|
235
235
|
<div class="radio">
|
|
236
|
-
<label for=${t} class=${
|
|
236
|
+
<label for=${t} class=${M("label-container",{disabled:u})}>
|
|
237
237
|
<div class="radio-icon-wrapper">
|
|
238
238
|
<input
|
|
239
239
|
type="radio"
|
|
240
240
|
name=${s.name||t}
|
|
241
241
|
id=${t}
|
|
242
|
-
.checked=${String(
|
|
243
|
-
?disabled=${
|
|
242
|
+
.checked=${String(p)===String(s.value)}
|
|
243
|
+
?disabled=${u}
|
|
244
244
|
class="radio-input"
|
|
245
|
-
@keydown=${
|
|
246
|
-
@change=${()=>{
|
|
245
|
+
@keydown=${W=>{o(W)&&!u&&e.emit("update:modelValue",String(s.value))}}
|
|
246
|
+
@change=${()=>{u||e.emit("update:modelValue",String(s.value))}}
|
|
247
247
|
/>
|
|
248
248
|
<span
|
|
249
|
-
class=${
|
|
249
|
+
class=${M("dot",{active:String(p)===String(s.value),disabled:u,"borderless-focus":!u})}
|
|
250
250
|
></span>
|
|
251
251
|
</div>
|
|
252
252
|
${s.text?l.html`<span class="radio-label-text">${s.text}</span>`:l.nothing}
|
|
253
253
|
</label>
|
|
254
254
|
</div>
|
|
255
255
|
</div>
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
256
|
+
`,b=()=>{const W=G=>String(p)===String(G[h]??""),N=i.length,oe=i.findIndex(W),ae=(G,Z)=>{for(let D=1;D<=N;D+=1){const S=(G+Z*D+N*N)%N;if(!r(i[S]))return S}return-1},te=G=>{for(let Z=0;Z<N;Z+=1){const D=G===1?Z:N-1-Z;if(!r(i[D]))return D}return-1},Y=oe>=0&&!r(i[oe])?oe:te(1),T=G=>Array.from(G.querySelectorAll('[role="radio"]')),K=(G,Z)=>{if(Z<0)return;G.preventDefault(),G.stopPropagation();const D=G.currentTarget,S=T(D)[Z];S==null||S.focus(),e.emit("update:modelValue",i[Z][h]??"");let U=0;const j=()=>{const k=T(D)[Z];if(k&&k.getAttribute("aria-checked")==="true"){document.activeElement!==k&&k.focus();return}++U<20&&n(j)};n(j)},ne=G=>{var j,k;if(u||N===0)return;const Z=G.currentTarget,D=(k=(j=G.target)==null?void 0:j.closest)==null?void 0:k.call(j,'[role="radio"]'),S=D?T(Z).indexOf(D):-1,U=S>=0?S:oe>=0?oe:0;switch(G.key){case"ArrowRight":case"ArrowDown":K(G,ae(U,1));break;case"ArrowLeft":case"ArrowUp":K(G,ae(U,-1));break;case"Home":K(G,te(1));break;case"End":K(G,te(-1));break}};return l.html`
|
|
257
|
+
<div
|
|
258
|
+
class=${M("radio-container",{segment:!0,"disabled-container":u,"size-sm":s.size==="sm","size-md":s.size!=="sm"})}
|
|
259
|
+
@keydown=${ne}
|
|
260
|
+
@click=${G=>G.stopPropagation()}
|
|
261
|
+
>
|
|
262
|
+
${i.map((G,Z)=>{const D=W(G),S=r(G);return l.html`
|
|
263
|
+
<button
|
|
264
|
+
type="button"
|
|
265
|
+
role="radio"
|
|
266
|
+
aria-checked=${D?"true":"false"}
|
|
267
|
+
tabindex=${Z===Y?"0":"-1"}
|
|
268
|
+
?disabled=${S}
|
|
269
|
+
class=${M("segment-button",{"is-active":D,disabled:S})}
|
|
270
|
+
@click=${()=>{S||e.emit("update:modelValue",G[h]??"")}}
|
|
271
|
+
>
|
|
272
|
+
${String(G[a]??"")}
|
|
273
|
+
</button>
|
|
274
|
+
`})}
|
|
275
|
+
</div>
|
|
276
|
+
`},z=()=>l.html`
|
|
268
277
|
<div
|
|
269
|
-
class=${
|
|
278
|
+
class=${M("radio-container",{"disabled-container":u,borderless:s.variant==="borderless",vertical:s.direction==="vertical"})}
|
|
270
279
|
>
|
|
271
|
-
${
|
|
280
|
+
${i.map((W,N)=>{const oe=r(W);return l.html`
|
|
272
281
|
<div class="radio">
|
|
273
|
-
<label
|
|
282
|
+
<label
|
|
283
|
+
for=${`${t}_${N}`}
|
|
284
|
+
class=${d(N,oe)}
|
|
285
|
+
style=${le.styleMap(m(N))}
|
|
286
|
+
>
|
|
274
287
|
<div class="radio-icon-wrapper">
|
|
275
288
|
<input
|
|
276
289
|
type="radio"
|
|
277
290
|
name=${s.name||t}
|
|
278
|
-
id=${`${t}_${
|
|
279
|
-
.checked=${
|
|
280
|
-
?disabled=${
|
|
291
|
+
id=${`${t}_${N}`}
|
|
292
|
+
.checked=${p===String(W[h]??"")}
|
|
293
|
+
?disabled=${oe}
|
|
281
294
|
class="radio-input"
|
|
282
|
-
@keydown=${
|
|
283
|
-
@change=${()=>e.emit("update:modelValue",String(
|
|
295
|
+
@keydown=${ae=>{o(ae)&&e.emit("update:modelValue",String(W[h]??""))}}
|
|
296
|
+
@change=${()=>e.emit("update:modelValue",String(W[h]??""))}
|
|
284
297
|
/>
|
|
285
298
|
<span
|
|
286
|
-
class=${
|
|
299
|
+
class=${M("dot",{active:p===String(W[h]??""),disabled:oe,"borderless-focus":s.variant!=="boxed"&&!oe})}
|
|
287
300
|
></span>
|
|
288
301
|
</div>
|
|
289
|
-
<span class="radio-label-text">${String(
|
|
302
|
+
<span class="radio-label-text">${String(W[a]??"")}</span>
|
|
290
303
|
</label>
|
|
291
304
|
</div>
|
|
292
|
-
`)}
|
|
305
|
+
`})}
|
|
293
306
|
</div>
|
|
294
|
-
|
|
307
|
+
`,E="aria-label"in R||"aria-labelledby"in R,L=y&&!E&&s.label?s.label:l.nothing;return l.html`
|
|
295
308
|
<div
|
|
296
|
-
class=${
|
|
297
|
-
style=${
|
|
298
|
-
|
|
309
|
+
class=${M("moz-radio-buttons",{"label-position-left":s.labelPosition==="left"},s.class)}
|
|
310
|
+
style=${le.styleMap(Pe(s.style))}
|
|
311
|
+
role=${y?"radiogroup":l.nothing}
|
|
312
|
+
aria-label=${L}
|
|
313
|
+
${he(R)}
|
|
299
314
|
>
|
|
300
|
-
${s.label?Be({disabled:
|
|
301
|
-
${
|
|
315
|
+
${s.label?Be({disabled:u,required:s.required},s.label):l.nothing}
|
|
316
|
+
${v?$():y?b():z()}
|
|
302
317
|
</div>
|
|
303
|
-
`}}}}),us={name:"MozRadio",core:Bo,props:["label","text","disabled","required","displayExpr","valueExpr","tooltipExpr","itemsSource","value","name","direction","variant","labelPosition","modelValue"],emits:["update:modelValue"],slots:[],expose:!1};function jt(e="var(--moz-color-text-subtle)"){return l.html`<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
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 l.html`<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
304
319
|
<g>
|
|
305
320
|
<path
|
|
306
321
|
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"
|
|
307
322
|
fill=${e}
|
|
308
323
|
></path>
|
|
309
324
|
</g>
|
|
310
|
-
</svg>`}const ps=new Set(["label","value","name","type","placeholder","required","disabled","isReadOnly","rules","width","messagePosition","requiredMessage","useInvalidV2","modelValue","class","style"]),Ho=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 o=!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
|
|
325
|
+
</svg>`}const ps=new Set(["label","value","name","type","placeholder","required","disabled","isReadOnly","rules","width","messagePosition","requiredMessage","useInvalidV2","modelValue","class","style"]),Ho=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 o=!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 y=v.filter(R=>R.type===u);for(const R of y)if(!await R.validator(a))return t[u]=R.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="",o=!0,e.requestUpdate()},s=a=>{const u=a.target.value;r(u,"blur"),o=!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,y=a.width?typeof a.width=="number"?`${a.width}px`:a.width:"100%",R=ge(a,ps);return l.html`
|
|
311
326
|
<div
|
|
312
|
-
class=${
|
|
313
|
-
style="width:${
|
|
327
|
+
class=${M("moz-input-wrapper",{"is-invalid":p!==""},a.class)}
|
|
328
|
+
style="width:${y}"
|
|
314
329
|
>
|
|
315
330
|
<div class="input-wrapper">
|
|
316
331
|
${a.label?Be({isReadOnly:a.isReadOnly,required:a.required},a.label,"input-label"):l.nothing}
|
|
317
332
|
<input
|
|
318
|
-
class=${
|
|
333
|
+
class=${M("moz-input",{disabled:a.disabled,"read-only":a.isReadOnly,"has-inside-message":!v&&a.messagePosition==="inside"&&p!==""&&!o,"has-invalid-icon":v&&p!==""&&!o})}
|
|
319
334
|
name=${xe.ifDefined(a.name)}
|
|
320
335
|
type=${a.type??"text"}
|
|
321
336
|
placeholder=${xe.ifDefined(a.placeholder)}
|
|
@@ -323,15 +338,15 @@
|
|
|
323
338
|
?readonly=${!!a.isReadOnly}
|
|
324
339
|
.value=${Lt.live(u)}
|
|
325
340
|
${he(R)}
|
|
326
|
-
@input=${
|
|
341
|
+
@input=${d}
|
|
327
342
|
@keypress=${i}
|
|
328
|
-
@focus=${
|
|
329
|
-
@blur=${
|
|
343
|
+
@focus=${m}
|
|
344
|
+
@blur=${s}
|
|
330
345
|
/>
|
|
331
346
|
${v&&p!==""&&!o?l.html`<div class="moz-input-invalid-icon-v2">
|
|
332
347
|
${e.slots.has("invalidTooltip")?e.slot("invalidTooltip",{message:p}):l.html`<div title=${p}>${jt("var(--moz-color-danger)")}</div>`}
|
|
333
348
|
</div>`:l.nothing}
|
|
334
|
-
${!v&&p!==""&&!o?l.html`<span class=${
|
|
349
|
+
${!v&&p!==""&&!o?l.html`<span class=${M("moz-input-invalid-message",`position-${a.messagePosition}`)}
|
|
335
350
|
>${p}</span
|
|
336
351
|
>`:l.nothing}
|
|
337
352
|
</div>
|
|
@@ -363,66 +378,66 @@
|
|
|
363
378
|
stroke-linecap="round"
|
|
364
379
|
stroke-linejoin="round"
|
|
365
380
|
></path>
|
|
366
|
-
</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":"",_o=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 o=!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
|
|
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":"",_o=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 o=!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:y=>!!y}),[...v,...p.rules??[]]},d=async(p,v)=>{const y=e.props,R=r();if(R.length<=0||y.disabled)return!0;t[v]="";for(const $ of R.filter(b=>b.type===v))if(!await $.validator(p))return t[v]=$.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="",o=!0,e.requestUpdate()},i=p=>{d(p.target.value,"blur"),o=!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??""),y=t.save||t.blur||t.change,R=!!p.useInvalidV2,$=p.width?typeof p.width=="number"?`${p.width}px`:p.width:"100%",b=ge(p,ms);return l.html`
|
|
367
382
|
<div
|
|
368
|
-
class=${
|
|
383
|
+
class=${M("moz-password-input-container",{"is-invalid":y!=="",disabled:p.disabled},p.class)}
|
|
369
384
|
>
|
|
370
385
|
<div class="input-wrapper">
|
|
371
386
|
${p.label?Be({disabled:p.disabled,required:p.required},p.label,"moz-input-label"):l.nothing}
|
|
372
|
-
<div class="moz-password-input-wrapper" style="width:${
|
|
387
|
+
<div class="moz-password-input-wrapper" style="width:${$}">
|
|
373
388
|
<input
|
|
374
389
|
autocomplete="new-password"
|
|
375
|
-
style="width:${
|
|
376
|
-
class=${
|
|
390
|
+
style="width:${$}"
|
|
391
|
+
class=${M("moz-input",fs,{disabled:p.disabled,"has-inside-message":!R&&p.messagePosition==="inside"&&y!==""&&!o,"has-invalid-icon":R&&y!==""&&!o})}
|
|
377
392
|
name=${xe.ifDefined(p.name)}
|
|
378
393
|
type=${n?"text":"password"}
|
|
379
394
|
placeholder=${xe.ifDefined(p.placeholder)}
|
|
380
395
|
?disabled=${!!p.disabled}
|
|
381
396
|
.value=${Lt.live(v)}
|
|
382
397
|
${he(b)}
|
|
383
|
-
@input=${
|
|
384
|
-
@keypress=${
|
|
385
|
-
@focus=${
|
|
398
|
+
@input=${m}
|
|
399
|
+
@keypress=${h}
|
|
400
|
+
@focus=${s}
|
|
386
401
|
@blur=${i}
|
|
387
402
|
/>
|
|
388
403
|
<button
|
|
389
404
|
type="button"
|
|
390
405
|
aria-label=${n?e.locale.PasswordInput.hidePassword:e.locale.PasswordInput.showPassword}
|
|
391
406
|
aria-pressed=${n?"true":"false"}
|
|
392
|
-
class=${
|
|
407
|
+
class=${M("icon-container password-icon",{"cursor-pointer":!p.disabled,"cursor-not-allowed":p.disabled})}
|
|
393
408
|
?disabled=${!!p.disabled}
|
|
394
409
|
@click=${a}
|
|
395
410
|
>
|
|
396
411
|
${n?Oo():Uo()}
|
|
397
412
|
</button>
|
|
398
|
-
${R
|
|
399
|
-
${e.slots.has("invalidTooltip")?e.slot("invalidTooltip",{message
|
|
413
|
+
${R&&y!==""&&!o?l.html`<div class="moz-input-invalid-icon-v2">
|
|
414
|
+
${e.slots.has("invalidTooltip")?e.slot("invalidTooltip",{message:y}):l.html`<div title=${y}>${jt("var(--moz-color-danger)")}</div>`}
|
|
400
415
|
</div>`:l.nothing}
|
|
401
|
-
${!R
|
|
402
|
-
>${
|
|
416
|
+
${!R&&y!==""&&!o?l.html`<span class=${M("moz-input-invalid-message",`position-${p.messagePosition}`)}
|
|
417
|
+
>${y}</span
|
|
403
418
|
>`:l.nothing}
|
|
404
419
|
</div>
|
|
405
420
|
</div>
|
|
406
421
|
</div>
|
|
407
|
-
`}}}}),gs={name:"MozPasswordInput",core:_o,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"]),No=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:""},o=()=>{const i=e.props,
|
|
422
|
+
`}}}}),gs={name:"MozPasswordInput",core:_o,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"]),No=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:""},o=()=>{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=o();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",y=v==="none"?`height:${p}`:`min-height:${p}`,R=h.length,$=ge(i,vs);return l.html`
|
|
408
423
|
<div
|
|
409
|
-
class=${
|
|
410
|
-
style="width:${u};${
|
|
424
|
+
class=${M("moz-textarea-wrapper",{disabled:i.disabled},i.class)}
|
|
425
|
+
style="width:${u};${y}"
|
|
411
426
|
>
|
|
412
427
|
<div class="textarea-inner">
|
|
413
428
|
${i.label?Be({for:i.id,disabled:i.disabled,required:i.required},i.label):l.nothing}
|
|
414
|
-
<div class=${
|
|
429
|
+
<div class=${M("moz-textarea-box",{disabled:i.disabled,invalid:a!==""})}>
|
|
415
430
|
<textarea
|
|
416
431
|
id=${xe.ifDefined(i.id)}
|
|
417
|
-
${he(
|
|
418
|
-
.value=${Lt.live(
|
|
432
|
+
${he($)}
|
|
433
|
+
.value=${Lt.live(h)}
|
|
419
434
|
?disabled=${!!i.disabled}
|
|
420
435
|
maxlength=${xe.ifDefined(i.maxLength??void 0)}
|
|
421
|
-
class=${
|
|
422
|
-
style=${
|
|
436
|
+
class=${M("moz-textarea",{disabled:i.disabled})}
|
|
437
|
+
style=${le.styleMap({resize:v==="none"?void 0:v,height:v==="none"?void 0:"auto"})}
|
|
423
438
|
@input=${r}
|
|
424
|
-
@blur=${
|
|
425
|
-
@focus=${
|
|
439
|
+
@blur=${d}
|
|
440
|
+
@focus=${m}
|
|
426
441
|
></textarea>
|
|
427
442
|
${i.maxLength?l.html`<div class="char-counter"><span>${R}</span><span>/</span><span>${i.maxLength}</span></div>`:l.nothing}
|
|
428
443
|
</div>
|
|
@@ -431,91 +446,91 @@
|
|
|
431
446
|
</div>
|
|
432
447
|
`}}}}),ws={name:"MozTextArea",core:No,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 l.html`<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
433
448
|
<path d="M7 1V13M1 7H13" stroke=${t?"var(--moz-color-text-muted)":e} stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
434
|
-
</svg>`}function
|
|
449
|
+
</svg>`}function bs(e="var(--moz-color-on-accent)",t=!1){return l.html`<svg width="14" height="2" viewBox="0 0 14 2" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
435
450
|
<path d="M1 1H13" stroke=${t?"var(--moz-color-text-muted)":e} stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
436
|
-
</svg>`}function
|
|
451
|
+
</svg>`}function ys(e=!1){return l.html`<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
437
452
|
<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>
|
|
438
453
|
</svg>`}function $s(e=!1){return l.html`<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
439
454
|
<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>
|
|
440
|
-
</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
|
|
441
|
-
<div class=${
|
|
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))},o=()=>{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),y=$=>M("moz-button","moz-icon-button","moz-icon-accent-button","num-change-btn",$),R=l.html`
|
|
456
|
+
<div class=${M("moz-number-input",{"input-border":s.shortMode})}>
|
|
442
457
|
<input
|
|
443
|
-
name=${xe.ifDefined(
|
|
444
|
-
?disabled=${
|
|
458
|
+
name=${xe.ifDefined(s.name)}
|
|
459
|
+
?disabled=${h}
|
|
445
460
|
.value=${Lt.live(String(i??""))}
|
|
446
461
|
${he(v)}
|
|
447
|
-
@input=${
|
|
448
|
-
@change=${
|
|
462
|
+
@input=${d}
|
|
463
|
+
@change=${d}
|
|
449
464
|
@blur=${r}
|
|
450
465
|
@keydown=${n}
|
|
451
|
-
@keypress=${
|
|
466
|
+
@keypress=${m}
|
|
452
467
|
type="number"
|
|
453
468
|
/>
|
|
454
469
|
<div class="moz-number-input-btn">
|
|
455
|
-
${
|
|
456
|
-
<button type="button" aria-label=${e.locale.NumberInput.increase} class="moz-number-input-btn-icon" @click=${t}>${
|
|
457
|
-
<button type="button" aria-label=${e.locale.NumberInput.decrease} class="moz-number-input-btn-icon" @click=${o}>${$s(
|
|
470
|
+
${s.shortMode?l.html`
|
|
471
|
+
<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=${o}>${$s(h)}</button>
|
|
458
473
|
`:l.nothing}
|
|
459
474
|
</div>
|
|
460
475
|
</div>
|
|
461
476
|
`;return l.html`
|
|
462
|
-
<div class=${
|
|
463
|
-
${
|
|
477
|
+
<div class=${M("moz-number-input-container",{disabled:h},s.class)}>
|
|
478
|
+
${s.label?Be({disabled:h},l.html`${s.label}${s.required?l.html`<span class="require-mark">*</span>`:l.nothing}`):l.nothing}
|
|
464
479
|
<div class="moz-number-input-wrapper" style="width:${p}">
|
|
465
|
-
${
|
|
480
|
+
${s.shortMode?l.nothing:l.html`<button
|
|
466
481
|
type="button"
|
|
467
482
|
aria-label=${e.locale.NumberInput.decrease}
|
|
468
|
-
class=${
|
|
483
|
+
class=${y({disabled:h||a>=i,"min-disabled":a>=i})}
|
|
469
484
|
style="border-radius: 4px 0px 0px 4px"
|
|
470
|
-
?disabled=${
|
|
485
|
+
?disabled=${h}
|
|
471
486
|
@click=${o}
|
|
472
487
|
>
|
|
473
|
-
${
|
|
488
|
+
${bs("var(--moz-color-on-accent)",h||a>=i)}
|
|
474
489
|
</button>`}
|
|
475
490
|
${R}
|
|
476
|
-
${
|
|
491
|
+
${s.shortMode?l.nothing:l.html`<button
|
|
477
492
|
type="button"
|
|
478
493
|
aria-label=${e.locale.NumberInput.increase}
|
|
479
|
-
class=${
|
|
494
|
+
class=${y({disabled:h||u<=i,"max-disabled":u<=i})}
|
|
480
495
|
style="border-radius: 0px 4px 4px 0px"
|
|
481
|
-
?disabled=${
|
|
496
|
+
?disabled=${h}
|
|
482
497
|
@click=${t}
|
|
483
498
|
>
|
|
484
|
-
${Cs("var(--moz-color-on-accent)",
|
|
499
|
+
${Cs("var(--moz-color-on-accent)",h||u<=i)}
|
|
485
500
|
</button>`}
|
|
486
501
|
</div>
|
|
487
502
|
</div>
|
|
488
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 l.html`<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
489
504
|
<path d="M9 3L3 9M3 3L9 9" stroke=${e} stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
490
|
-
</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_"),o=i=>`${t}-tab-${i}`,n=i=>`${t}-panel-${i}`,r=i=>typeof requestAnimationFrame=="function"?requestAnimationFrame(i):setTimeout(i,16),
|
|
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_"),o=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 y;if(i.key===p?y=u[(u.indexOf(h)+1)%u.length]:i.key===v?y=u[(u.indexOf(h)-1+u.length)%u.length]:i.key==="Home"?y=u[0]:i.key==="End"?y=u[u.length-1]:(i.key==="Enter"||i.key===" ")&&(y=h),y===void 0)return;i.preventDefault(),i.stopPropagation(),d(y);const R=i.currentTarget.closest('[role="tablist"]'),$=o(y);let b=0;const z=()=>{const E=Array.from((R==null?void 0:R.querySelectorAll('[role="tab"]'))??[]).find(L=>L.id===$);if(E&&E.getAttribute("aria-selected")==="true"){E.focus();return}++b<20&&r(z)};r(z)},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 l.html`
|
|
491
506
|
<div
|
|
492
|
-
class=${
|
|
493
|
-
style=${
|
|
507
|
+
class=${M("moz-tabs-container",{vertical:i.vertical},i.class)}
|
|
508
|
+
style=${le.styleMap(Pe(i.style))}
|
|
494
509
|
${he(u)}
|
|
495
510
|
>
|
|
496
511
|
<div
|
|
497
|
-
class=${
|
|
512
|
+
class=${M("moz-tabs",{vertical:i.vertical})}
|
|
498
513
|
role="tablist"
|
|
499
514
|
aria-orientation=${i.vertical?"vertical":"horizontal"}
|
|
500
515
|
>
|
|
501
|
-
${
|
|
516
|
+
${h.map(v=>{const y=a===v.id;return l.html`
|
|
502
517
|
<div
|
|
503
|
-
class=${
|
|
518
|
+
class=${M("moz-tab",{"current-tab":y,vertical:i.vertical,closeable:i.closeAble})}
|
|
504
519
|
style=${p}
|
|
505
520
|
id=${o(v.id)}
|
|
506
521
|
role="tab"
|
|
507
|
-
aria-selected=${
|
|
522
|
+
aria-selected=${y?"true":"false"}
|
|
508
523
|
aria-controls=${n(v.id)}
|
|
509
|
-
tabindex=${
|
|
510
|
-
@click=${()=>
|
|
511
|
-
@mousedown=${R=>{R.button===0&&
|
|
512
|
-
@keydown=${R=>
|
|
524
|
+
tabindex=${y?"0":"-1"}
|
|
525
|
+
@click=${()=>d(v.id)}
|
|
526
|
+
@mousedown=${R=>{R.button===0&&d(v.id)}}
|
|
527
|
+
@keydown=${R=>m(R,v.id)}
|
|
513
528
|
>
|
|
514
|
-
${e.slots.has(`${v.id}-tab`)?e.slot(`${v.id}-tab`,{text:v.text,active
|
|
529
|
+
${e.slots.has(`${v.id}-tab`)?e.slot(`${v.id}-tab`,{text:v.text,active:y}):l.html`<p class=${M("tab-label",{active:y})}>${v.text}</p>`}
|
|
515
530
|
${i.closeAble?l.html`<button type="button"
|
|
516
531
|
class="tab-close-btn"
|
|
517
532
|
aria-label=${e.locale.Tab.closeTab.replace("{label}",v.text??"")}
|
|
518
|
-
@click=${R=>{R.stopPropagation(),
|
|
533
|
+
@click=${R=>{R.stopPropagation(),s(v.id)}}
|
|
519
534
|
>
|
|
520
535
|
${Ko()}
|
|
521
536
|
</button>`:l.nothing}
|
|
@@ -523,9 +538,9 @@
|
|
|
523
538
|
`})}
|
|
524
539
|
</div>
|
|
525
540
|
<div class="moz-tab-body">
|
|
526
|
-
${
|
|
541
|
+
${h.map(v=>l.html`
|
|
527
542
|
<div
|
|
528
|
-
class=${
|
|
543
|
+
class=${M("tab-panel",{active:a===v.id})}
|
|
529
544
|
id=${n(v.id)}
|
|
530
545
|
role="tabpanel"
|
|
531
546
|
aria-labelledby=${o(v.id)}
|
|
@@ -537,11 +552,11 @@
|
|
|
537
552
|
`)}
|
|
538
553
|
</div>
|
|
539
554
|
</div>
|
|
540
|
-
`}}}}),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,o=null,n=null;const r=u=>{const p=e.props;if(!o)return;const v=o.getBoundingClientRect(),R=(u.clientX-v.left)/o.offsetWidth;let
|
|
541
|
-
<div class=${
|
|
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,o=null,n=null;const r=u=>{const p=e.props;if(!o)return;const v=o.getBoundingClientRect(),R=(u.clientX-v.left)/o.offsetWidth;let $=Math.round(p.min+(p.max-p.min)*R);$<p.min?$=p.min:$>p.max&&($=p.max);const b=Math.round($/p.step)*p.step;e.emit("update:modelValue",b),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,o=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,y=u.min,R=u.max,$=typeof u.width=="number"?`${Le(u.width)}rem`:u.width,b=typeof u.width=="number"?u.width:Number.isNaN(parseFloat(String(u.width)))?150:parseFloat(String(u.width)),E=(p-y)/(R-y)*(b-18),L=E<0?0:E,W=ge(u,xs);return l.html`
|
|
556
|
+
<div class=${M("moz-slider-wrapper",u.class)} style=${le.styleMap(Pe(u.style))} ${he(W)}>
|
|
542
557
|
${u.label?Be({for:u.id},u.label):l.nothing}
|
|
543
558
|
<div
|
|
544
|
-
class=${
|
|
559
|
+
class=${M("moz-slider-container",{disabled:v,label:!!u.label})}
|
|
545
560
|
role="slider"
|
|
546
561
|
aria-valuenow=${String(p??0)}
|
|
547
562
|
aria-valuemin=${String(u.min??0)}
|
|
@@ -550,16 +565,16 @@
|
|
|
550
565
|
aria-disabled=${v?"true":"false"}
|
|
551
566
|
aria-label=${xe.ifDefined(u.label)}
|
|
552
567
|
tabindex=${v?"-1":"0"}
|
|
553
|
-
@mousedown=${
|
|
554
|
-
@focus=${
|
|
568
|
+
@mousedown=${m}
|
|
569
|
+
@focus=${h}
|
|
555
570
|
@blur=${a}
|
|
556
571
|
@keydown=${i}
|
|
557
572
|
>
|
|
558
|
-
<div class="moz-slider" style="width:${
|
|
573
|
+
<div class="moz-slider" style="width:${$}">
|
|
559
574
|
<div class="moz-slider-track" style="width:${Le(L+10)}rem"></div>
|
|
560
575
|
</div>
|
|
561
576
|
<div
|
|
562
|
-
class=${
|
|
577
|
+
class=${M("moz-slider-handle",{focused:t&&!v})}
|
|
563
578
|
style="left:${Le(L)}rem"
|
|
564
579
|
></div>
|
|
565
580
|
</div>
|
|
@@ -593,75 +608,75 @@
|
|
|
593
608
|
fill=${e}
|
|
594
609
|
></path>
|
|
595
610
|
<rect x="3.34009" y="7.41504" width="2.93262" height="2.93262" rx="0.5" fill=${e}></rect>
|
|
596
|
-
</svg>`}const Ds=new Set(["rowHeight","exceptWeeks","min","max","modelValue","class","style"]),
|
|
611
|
+
</svg>`}const Ds=new Set(["rowHeight","exceptWeeks","min","max","modelValue","class","style"]),As=(e,...t)=>e.filter(o=>!t.includes(o)),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(),o=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()},y=()=>{n=!1,r=!1,d=!0,e.requestUpdate()},R=E=>{i(E)||(t=t.set("year",E.year()),n=!0,r=!1,d=!1,e.requestUpdate())},$=E=>{h(E)||(t=t.set("month",E.month()),n=!0,r=!1,d=!1,e.requestUpdate())},b=E=>{s(E)||e.emit("update:modelValue",Ee(E))},z=()=>b(Ee());return{render(){const E=e.props;E.modelValue!==o&&(o=E.modelValue,t=E.modelValue?Ee(E.modelValue):Ee());const L=E.rowHeight??36,W=["ko","zh","zh-cn"].includes(Ee().locale()),N=t.hour(),oe=t.minute(),ae=t.second(),te=V=>V.set("hour",N||0).set("minute",oe||0).set("second",ae||0),Y=As([0,1,2,3,4,5,6],...E.exceptWeeks??[]),T=[];{const V=te(t.endOf("M"));let A=te(t.startOf("M")).startOf("w");do T.push(A),A=A.add(7,"d");while(A.diff(V)<=0)}const K=L*T.length+126;K!==m&&(m=K,queueMicrotask(()=>e.emit("setMaxHeight",K)));const ne=(V,A)=>{const _=V.add(A,"d");return t.format("YYYYMMDD")!==_.format("YYYYMMDD")?t.format("MM")===_.format("MM")?"":"moz-calendar-column-otherMonth":""},G=E.modelValue?Ee(E.modelValue).format("YYYYMMDD"):"",Z=(V,A,_)=>l.html`<button
|
|
597
612
|
type="button"
|
|
598
|
-
aria-label=${
|
|
613
|
+
aria-label=${_}
|
|
599
614
|
class="moz-button moz-icon-button"
|
|
600
615
|
style="width:24px;height:24px;min-width:24px;min-height:24px"
|
|
601
|
-
@click=${
|
|
616
|
+
@click=${A}
|
|
602
617
|
>
|
|
603
618
|
${V}
|
|
604
|
-
</button>`,
|
|
619
|
+
</button>`,D=l.html`
|
|
605
620
|
<div class="moz-calendar-header">
|
|
606
621
|
<div class="moz-calendar-select">
|
|
607
|
-
${
|
|
622
|
+
${W?l.html`
|
|
608
623
|
<div class="moz-calendar-select__text" @click=${v}>
|
|
609
624
|
${new Intl.DateTimeFormat(Ee().locale(),{year:"numeric"}).format(t.toDate())}
|
|
610
625
|
</div>
|
|
611
|
-
<div class="moz-calendar-select__text" @click=${
|
|
626
|
+
<div class="moz-calendar-select__text" @click=${y}>${t.format("MMMM")}</div>
|
|
612
627
|
`:l.html`
|
|
613
|
-
<div class="moz-calendar-select__text" @click=${
|
|
628
|
+
<div class="moz-calendar-select__text" @click=${y}>${t.format("MMMM")}</div>
|
|
614
629
|
<div class="moz-calendar-select__text" @click=${v}>${t.format("YYYY")}</div>
|
|
615
630
|
`}
|
|
616
631
|
<div class="moz-calendar-select-btn" @click=${p}>${Ts("currentColor")}</div>
|
|
617
632
|
</div>
|
|
618
633
|
<div class="moz-calendar-header__spacer"></div>
|
|
619
634
|
<div class="moz-calendar-select-btn-group">
|
|
620
|
-
${
|
|
635
|
+
${Z(Ms(),a,"이전 달")}${Z(Vs(),z,"오늘")}${Z(zs(),u,"다음 달")}
|
|
621
636
|
</div>
|
|
622
637
|
</div>
|
|
623
|
-
`,
|
|
638
|
+
`,S=l.html`
|
|
624
639
|
<div class="moz-calendar-row">
|
|
625
|
-
${
|
|
640
|
+
${Y.map(V=>l.html`<div
|
|
626
641
|
class="moz-calendar-column moz-calendar-column-day"
|
|
627
|
-
style="width: ${100/
|
|
642
|
+
style="width: ${100/Y.length}%; height: ${Le(L)}rem;"
|
|
628
643
|
>
|
|
629
644
|
${Ee().day(V).format("ddd")}
|
|
630
645
|
</div>`)}
|
|
631
646
|
</div>
|
|
632
|
-
${
|
|
633
|
-
${
|
|
634
|
-
class=${
|
|
635
|
-
style="width: ${100/
|
|
636
|
-
@click=${()=>b(
|
|
647
|
+
${T.map(V=>l.html`<div class="moz-calendar-row">
|
|
648
|
+
${Y.map(A=>{const _=V.add(A,"d");return l.html`<div
|
|
649
|
+
class=${M("moz-calendar-column",ne(V,A),G===_.format("YYYYMMDD")?"moz-calendar-selected":"",s(_)?"date-disable":"moz-calendar-column--hoverable")}
|
|
650
|
+
style="width: ${100/Y.length}%; height: ${Le(L)}rem"
|
|
651
|
+
@click=${()=>b(_)}
|
|
637
652
|
>
|
|
638
|
-
${
|
|
653
|
+
${_.format("DD")}
|
|
639
654
|
</div>`})}
|
|
640
655
|
</div>`)}
|
|
641
|
-
`;let
|
|
656
|
+
`;let U=l.nothing;if(r){const V=[],A=Ee().add(100,"y").startOf("y");let _=Ee().subtract(100,"y").startOf("y");do V.push(_),_=_.add(1,"y");while(_.diff(A)<=0);U=l.html`<div
|
|
642
657
|
class="moz-calendar-row moz-calendar-row--wrap"
|
|
643
|
-
style="max-height: ${Le(L*
|
|
658
|
+
style="max-height: ${Le(L*T.length)}rem"
|
|
644
659
|
>
|
|
645
660
|
${V.map(g=>l.html`<div
|
|
646
|
-
class=${
|
|
661
|
+
class=${M("moz-calendar-column",t.format("YYYY")===g.format("YYYY")?"moz-calendar-selected":"",i(g)?"date-disable":"moz-calendar-column--hoverable")}
|
|
647
662
|
style="width: ${100/3}%; height: ${Le(L)}rem"
|
|
648
663
|
@click=${()=>R(g)}
|
|
649
664
|
>
|
|
650
665
|
${g.format("YYYY")}
|
|
651
666
|
</div>`)}
|
|
652
|
-
</div>`}let
|
|
667
|
+
</div>`}let j=l.nothing;if(d){const V=[],A=t.endOf("y");let _=t.startOf("y");do V.push(_),_=_.add(1,"M");while(_.diff(A)<=0);j=l.html`<div class="moz-calendar-row moz-calendar-row--wrap">
|
|
653
668
|
${V.map(g=>l.html`<div
|
|
654
|
-
class=${
|
|
669
|
+
class=${M("moz-calendar-column",t.format("YYYYMM")===g.format("YYYYMM")?"moz-calendar-selected":"",h(g)?"date-disable":"moz-calendar-column--hoverable")}
|
|
655
670
|
style="width: ${100/3}%; height: ${Le(L)}rem"
|
|
656
|
-
@click=${()
|
|
671
|
+
@click=${()=>$(g)}
|
|
657
672
|
>
|
|
658
673
|
${g.format("MMM")}
|
|
659
674
|
</div>`)}
|
|
660
|
-
</div>`}const
|
|
661
|
-
<div class=${
|
|
662
|
-
${
|
|
675
|
+
</div>`}const k=ge(E,Ds);return l.html`
|
|
676
|
+
<div class=${M("moz-calendar-container",E.class)} ${he(k)}>
|
|
677
|
+
${D}${n?S:l.nothing}${U}${j}
|
|
663
678
|
</div>
|
|
664
|
-
`}}}}),
|
|
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",o=!1){return l.html`<svg width=${t} height=${t} viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
665
680
|
<path d="M8.5 3.5L5.5 7L8.5 10.5" stroke=${o?"var(--moz-color-text-muted)":e} stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
666
681
|
</svg>`}function Is(e="var(--moz-color-on-accent)",t="14",o=!1){return l.html`<svg width=${t} height=${t} viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
667
682
|
<path d="M5.5 3.5L8.5 7L5.5 10.5" stroke=${o?"var(--moz-color-text-muted)":e} stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
@@ -677,52 +692,52 @@
|
|
|
677
692
|
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"
|
|
678
693
|
fill=${e}
|
|
679
694
|
></path>
|
|
680
|
-
</svg>`}const Bs="YYYY-MM-DD",Hs=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,o=270,n=e.props.modelValue,r=null,
|
|
695
|
+
</svg>`}const Bs="YYYY-MM-DD",Hs=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,o=270,n=e.props.modelValue,r=null,d=null;const m=new kt,s=$=>{const b=e.props.modelValue;let z;$&&b instanceof Date?z=Ee($).toDate():$&&Ee.isDayjs(b)||!b&&$?z=Ee($):z=void 0,e.emit("update:modelValue",z)},i=(($,...b)=>{$==="update:modelValue"?s(b[0]):$==="setMaxHeight"&&(o=b[0],h.calcPosition())}),h=new pt({anchor:()=>r==null?void 0:r.querySelector(".moz-date-input-wrapper"),panel:()=>m.element,maxHeight:()=>o,ignoreScrollTargets:$=>($&&typeof $.className=="string"?$.className:"").split(" ").includes("moz-calendar-row"),container:()=>r,requestClose:()=>{t&&(t=!1,u(),e.requestUpdate())}}),a=()=>{const $=m.open("calendar-container");d=Xt($,{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 b;const $=e.props;$.disabled||$.readonly||(t=!t,t?((b=r==null?void 0:r.querySelector("input"))==null||b.focus(),a()):u(),e.requestUpdate())},v=()=>{e.props.modelValue&&s(Ee(e.props.modelValue).subtract(1,"d"))},y=()=>{e.props.modelValue&&s(Ee(e.props.modelValue).add(1,"d"))},R=$=>{const b=$.target,z=e.props.modelValue;z?Ee.isDayjs(z)&&Ee(b.value).isValid()?s(Ee(b.value)):z instanceof Date&&!Number.isNaN(Date.parse(b.value))?s(new Date(b.value)):s(void 0):s(Ee(b.value))};return e.onCleanup(()=>{h.destroy(),d==null||d.destroy(),m.close()}),{onMounted:$=>{r=$},render(){const $=e.props;if($.modelValue!==n){n=$.modelValue;const ae=$.modelValue;queueMicrotask(()=>e.emit("change",ae)),d&&d.update({modelValue:$.modelValue})}const b=$.format||Bs,z=typeof $.width=="number"?`${Le($.width)}rem`:$.width,E=$.modelValue?Ee($.modelValue).format(b):"",L=!!$.min&&Ee(E).isSameOrBefore(Ee($.min),"day"),W=!!$.max&&Ee(E).isSameOrAfter(Ee($.max),"day"),N=ge($,Hs),oe=(ae,te,Y,T)=>l.html`<button
|
|
681
696
|
type="button"
|
|
682
|
-
aria-label=${
|
|
683
|
-
class=${
|
|
684
|
-
?disabled=${
|
|
685
|
-
@click=${
|
|
697
|
+
aria-label=${te==="left"?e.locale.DateInput.prevDate:e.locale.DateInput.nextDate}
|
|
698
|
+
class=${M("moz-button","moz-icon-button","moz-icon-accent-button","moz-icon-text-button","date-move-btn",`date-move-btn--${te}`,{"date-move-btn--disabled":Y})}
|
|
699
|
+
?disabled=${Y}
|
|
700
|
+
@click=${T}
|
|
686
701
|
>
|
|
687
|
-
${
|
|
702
|
+
${ae}
|
|
688
703
|
</button>`;return l.html`
|
|
689
704
|
<div
|
|
690
|
-
class=${
|
|
691
|
-
style=${
|
|
705
|
+
class=${M("moz-date-input-container",{disabled:$.disabled},$.class)}
|
|
706
|
+
style=${le.styleMap({...Pe($.style),width:z})}
|
|
692
707
|
>
|
|
693
|
-
${
|
|
694
|
-
<div class="moz-date-input-wrapper" style="width:${
|
|
695
|
-
${
|
|
708
|
+
${$.label?Be({disabled:$.disabled},l.html`${$.label}${$.required?l.html`<span class="require-mark">*</span>`:l.nothing}`):l.nothing}
|
|
709
|
+
<div class="moz-date-input-wrapper" style="width:${z}">
|
|
710
|
+
${$.showSpin?oe(qs("var(--moz-color-on-accent)","14",$.disabled||L),"left",L,v):l.nothing}
|
|
696
711
|
<div
|
|
697
|
-
class=${
|
|
712
|
+
class=${M("moz-date-input",{"moz-date-input--no-lr-border":$.showSpin,"moz-date-input--radius":!$.showSpin,"moz-date-input--disabled":$.disabled})}
|
|
698
713
|
@click=${p}
|
|
699
714
|
>
|
|
700
715
|
<input
|
|
701
|
-
.value=${
|
|
702
|
-
name=${xe.ifDefined(
|
|
703
|
-
?disabled=${
|
|
704
|
-
?readonly=${
|
|
705
|
-
class=${
|
|
706
|
-
${he(
|
|
716
|
+
.value=${E}
|
|
717
|
+
name=${xe.ifDefined($.name)}
|
|
718
|
+
?disabled=${!!$.disabled}
|
|
719
|
+
?readonly=${!!$.readonly}
|
|
720
|
+
class=${M("moz-date-input__field",{"moz-date-input__field--disabled":$.disabled})}
|
|
721
|
+
${he(N)}
|
|
707
722
|
@change=${R}
|
|
708
723
|
/>
|
|
709
|
-
${
|
|
710
|
-
${Fs("currentColor",
|
|
724
|
+
${$.readonly?l.nothing:l.html`<div class="moz-date-input__icon-container">
|
|
725
|
+
${Fs("currentColor",M("moz-date-input__icon",{"moz-date-input__icon--disabled":$.disabled}))}
|
|
711
726
|
</div>`}
|
|
712
727
|
</div>
|
|
713
|
-
${
|
|
728
|
+
${$.showSpin?oe(Is("var(--moz-color-on-accent)","14",$.disabled||W),"right",W,y):l.nothing}
|
|
714
729
|
</div>
|
|
715
730
|
</div>
|
|
716
|
-
`}}}}),Os={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)",o=!1,n=!1,r=""){const
|
|
731
|
+
`}}}}),Os={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)",o=!1,n=!1,r=""){const d=mt(e),m=r||l.nothing;return d.width<=10?l.html`<svg class=${m} width=${d.width} height=${d.height} viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
717
732
|
<path d="M8.5 1.5L1.49999 8.50001" stroke=${t} stroke-width="1.75" stroke-linecap="round"></path>
|
|
718
733
|
<path d="M1.5 1.5L8.50001 8.50001" stroke=${t} stroke-width="1.75" stroke-linecap="round"></path>
|
|
719
|
-
</svg>`:
|
|
734
|
+
</svg>`:d.width<=13&&d.width>=11&&!n?l.html`<svg class=${m} width=${d.width} height=${d.height} viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
720
735
|
<path d="M1.71436 1.71428L10.8069 10.7926" stroke=${t} stroke-width="2" stroke-linecap="round"></path>
|
|
721
736
|
<path d="M10.8069 1.71428L1.71436 10.7926" stroke=${t} stroke-width="2" stroke-linecap="round"></path>
|
|
722
|
-
</svg>`:
|
|
737
|
+
</svg>`:d.width<=13&&d.width>=11&&n?l.html`<svg class=${m} width=${d.width} height=${d.height} viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
723
738
|
<path d="M10.2 1.7998L1.79994 10.1998" stroke=${t} stroke-width="1.6" stroke-linecap="round"></path>
|
|
724
739
|
<path d="M1.79993 1.7998L10.1999 10.1998" stroke=${t} stroke-width="1.6" stroke-linecap="round"></path>
|
|
725
|
-
</svg>`:l.html`<svg class=${
|
|
740
|
+
</svg>`:l.html`<svg class=${m} width=${d.width} height=${d.height} viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
726
741
|
<g>
|
|
727
742
|
<g>
|
|
728
743
|
<path
|
|
@@ -781,48 +796,48 @@
|
|
|
781
796
|
></path>
|
|
782
797
|
</g>
|
|
783
798
|
</g>
|
|
784
|
-
</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=
|
|
785
|
-
${
|
|
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=O.createRef(),o=O.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,y=C=>{e.controlled("height")||(i=C),e.emit("update:height",C),e.requestUpdate()};let R=0,$=0,b=!1;const z=!0;let E=null;const L={mouseDown:!1,dragging:!1,offset:{x:0,y:0}};let W=h(),N=!1,oe=!1,ae=null,te=[];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"),te.push(q)))},T=()=>{for(const C of te)C.removeAttribute("aria-hidden");te=[]},K=()=>{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},G=()=>{d||(d=Ht(()=>A()))},Z=()=>{d==null||d.release(),d=null},D=()=>{N||(N=!0,G(),e.props.lockScroll&&(Ys(),oe=!0),e.props.focusTrap&&(ae=document.activeElement instanceof HTMLElement?document.activeElement:null,queueMicrotask(()=>{const C=t.value;!C||!h()||(K()[0]??C).focus()})),e.props.hideOthers&&queueMicrotask(()=>{h()&&Y()}))},S=()=>{if(Z(),!N)return;N=!1,oe&&(Zs(),oe=!1),T();const C=ae;ae=null,C&&C.isConnected&&C.focus()},U=()=>{e.props.side||e.props.autoPosition===!1||queueMicrotask(()=>{const C=t.value;if(!C)return;const q=e.props;$=q.top!=null?q.top:window.innerHeight/2-C.offsetHeight/2,R=q.left!=null?q.left:window.innerWidth/2-C.offsetWidth/2,e.requestUpdate()})},j=()=>{!h()||e.props.side||e.props.autoPosition===!1||b||U()},k=()=>{h()||a(!0),e.emit("open"),U(),D()},V=async()=>{let C=!0;return e.props.onBeforeClose?C=await e.props.onBeforeClose()??!0:e.emit("close:before",C),C},A=async()=>{await V()&&h()&&(a(!1),e.props.onCancel?e.props.onCancel():e.emit("close"),e.emit("hidden"))},_=async()=>{let C=!0;return e.props.onBeforeConfirm?C=await e.props.onBeforeConfirm()??!0:e.emit("confirm:before",C),C},g=async()=>{await _()&&h()&&(a(!1),e.props.onConfirm?e.props.onConfirm():e.emit("confirm"),e.emit("hidden"))},F=()=>{e.props.onBeforeUnload&&e.props.onBeforeUnload()},X=()=>{e.props.closeOnOutsideClick&&A()},J=C=>{C?k():(S(),F(),A())},ve=(C,q)=>{document.addEventListener("mouseup",C),document.addEventListener("mousemove",q)},De=(C,q)=>{document.removeEventListener("mouseup",C),document.removeEventListener("mousemove",q)},_e=C=>{const q=R-C.clientX,Ce=$-C.clientY;L.mouseDown=!0,L.offset.x=q,L.offset.y=Ce,e.emit("drag-start")},He=C=>{e.props.draggable&&(C.clientX===0&&E&&(C=E),C&&C.clientX&&C.clientY&&(R=C.clientX+L.offset.x,$=C.clientY+L.offset.y,b=!0,e.requestUpdate()))},c=C=>{C.clientX!==0&&C.clientY!==0&&(E=C),L.mouseDown&&z&&(L.dragging=!0,He(C))},x=()=>{L.dragging&&e.emit("drag-end"),L.mouseDown=!1,setTimeout(()=>{L.dragging=!1,De(x,c)},100)},Q=C=>{e.props.side||e.props.autoPosition===!1||(C.preventDefault(),ve(x,c),_e(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},Ne=e.props,Qe=Je=>{let Ze=Je.clientX-Ae.x,f=Je.clientY-Ae.y;if(Ne.keepAspectRatio){const ee=Ze/Te;Math.abs(f)>Math.abs(ee)?f=ee:Ze=f*Te}const B=Math.max(Ne.minWidth,Math.min(Se+Ze,Ne.maxWidth));let I=Math.max(Ne.minHeight,Math.min(ke+f,Ne.maxHeight));Ne.keepAspectRatio&&B/I!==Te&&(I=B/Te),p(B),y(I)},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=K();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(()=>{S(),window.removeEventListener("keydown",de),window.removeEventListener("resize",j),F(),window.removeEventListener("unload",F),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 _s("30","var(--moz-color-danger)","dialog-icon");case"info":return Ns("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 l.nothing}};return{api:{resetPosition:U},onMounted:()=>{window.addEventListener("keydown",de),window.addEventListener("resize",j),window.addEventListener("unload",F),queueMicrotask(()=>e.emit("init",o.value??null)),h()&&(U(),D())},render(){const C=e.props,q=h();if(q!==W){const fe=q;W=q,fe?G():Z(),queueMicrotask(()=>J(fe))}if(!(C.useVShow?!0:q))return l.nothing;const Se=C.useVShow?!q:!1,ke=u(),Te=v(),Ae=C.side,Ne=!!Ae||C.autoPosition===!1,Qe={...Pe(C.style),...ke?{width:`${Le(ke)}rem`}:{},...Te?{height:`${Le(Te)}rem`}:{},...Ne?{}:{left:`${Le(R)}rem`,top:`${Le($)}rem`}},ot=!!C.draggable&&!Ne,Je=!!C.resizeable&&!Ae,Ze=typeof C.contentsPadding=="number"?`${Le(C.contentsPadding)}rem`:C.contentsPadding,f=$e(),B=ge(C,Gs),I=e.slots.has("title")?e.slot("title"):l.html`<span class="truncate">${C.title}</span>`,ee=e.slots.has("description"),se=e.slots.has("default")?e.slot("default"):l.html`<div class="moz-dialog-body">
|
|
800
|
+
${be(C.dialogIcon)}
|
|
786
801
|
<div class="dialog-message">${C.dialogMessage!=null?Eo.unsafeHTML(C.dialogMessage):l.nothing}</div>
|
|
787
|
-
</div>`,ue=e.slots.has("footer")?e.slot("footer",{onConfirm:g,onCancel:
|
|
802
|
+
</div>`,ue=e.slots.has("footer")?e.slot("footer",{onConfirm:g,onCancel:A}):l.html`
|
|
788
803
|
${f.positive?at({class:"preset-btn",loading:C.loading,disabled:C.disabledConfirmButton,style:"min-width: 80px"},{onClick:g,content:f.positive}):l.nothing}
|
|
789
|
-
${f.negative?at({class:"preset-btn",type:"outline",disabled:C.loading,style:"min-width: 80px"},{onClick:
|
|
804
|
+
${f.negative?at({class:"preset-btn",type:"outline",disabled:C.loading,style:"min-width: 80px"},{onClick:A,content:f.negative}):l.nothing}
|
|
790
805
|
`;return l.html`
|
|
791
806
|
<div
|
|
792
|
-
class=${
|
|
807
|
+
class=${M("moz-popup-container",C.class,Ae?`moz-popup-side moz-popup-side-${Ae}`:null,C.showBackdrop===!1?"moz-popup-no-backdrop":null)}
|
|
793
808
|
style=${xe.ifDefined(Se?"display: none;":void 0)}
|
|
794
809
|
>
|
|
795
|
-
${C.showBackdrop===!1?l.nothing:l.html`<div class="moz-popup-backdrop" aria-hidden="true" @click=${
|
|
810
|
+
${C.showBackdrop===!1?l.nothing:l.html`<div class="moz-popup-backdrop" aria-hidden="true" @click=${X}></div>`}
|
|
796
811
|
<div
|
|
797
|
-
class=${
|
|
812
|
+
class=${M("moz-popup",C.dialogClass)}
|
|
798
813
|
role="dialog"
|
|
799
814
|
aria-modal="true"
|
|
800
815
|
aria-labelledby=${xe.ifDefined(C.showHeader===!1?void 0:n)}
|
|
801
|
-
aria-describedby=${xe.ifDefined(
|
|
816
|
+
aria-describedby=${xe.ifDefined(ee?r:void 0)}
|
|
802
817
|
tabindex=${xe.ifDefined(C.focusTrap?"-1":void 0)}
|
|
803
|
-
style=${
|
|
804
|
-
${
|
|
805
|
-
${he(
|
|
818
|
+
style=${le.styleMap(Qe)}
|
|
819
|
+
${O.ref(t)}
|
|
820
|
+
${he(B)}
|
|
806
821
|
>
|
|
807
822
|
${C.showHeader===!1?l.nothing:l.html`<div
|
|
808
823
|
id=${n}
|
|
809
|
-
class=${
|
|
810
|
-
@mousedown=${
|
|
811
|
-
@touchstart=${
|
|
824
|
+
class=${M("moz-popup-title",{draggable:ot})}
|
|
825
|
+
@mousedown=${Q}
|
|
826
|
+
@touchstart=${Q}
|
|
812
827
|
>
|
|
813
|
-
${
|
|
814
|
-
${C.showCloseButton?at({type:"icon",class:"close-button","aria-label":e.locale.Popup.close},{onClick:
|
|
828
|
+
${I}
|
|
829
|
+
${C.showCloseButton?at({type:"icon",class:"close-button","aria-label":e.locale.Popup.close},{onClick:A,icon:Us("14","var(--moz-color-text-subtle)")}):l.nothing}
|
|
815
830
|
</div>`}
|
|
816
|
-
${
|
|
817
|
-
<div class="moz-popup-body" style=${
|
|
818
|
-
${C.preset!=="no-footer"?l.html`<div class=${
|
|
831
|
+
${ee?l.html`<div id=${r} class="moz-popup-description">${e.slot("description")}</div>`:l.nothing}
|
|
832
|
+
<div class="moz-popup-body" style=${le.styleMap({padding:Ze})} ${O.ref(o)}>${se}</div>
|
|
833
|
+
${C.preset!=="no-footer"?l.html`<div class=${M("moz-popup-footer",{"with-border":C.showFooterBorder})}>
|
|
819
834
|
${ue}
|
|
820
835
|
</div>`:l.nothing}
|
|
821
|
-
${Je?l.html`<div class="resize-handler" @mousedown=${
|
|
836
|
+
${Je?l.html`<div class="resize-handler" @mousedown=${re}></div>`:l.nothing}
|
|
822
837
|
</div>
|
|
823
838
|
</div>
|
|
824
|
-
`}}}}),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)",o=!1,n=""){const r=Mt(e),
|
|
825
|
-
<g style=${`fill: ${
|
|
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)",o=!1,n=""){const r=Mt(e),d=o?"var(--moz-color-text-muted)":t;return l.html`<svg class=${n||l.nothing} xmlns="http://www.w3.org/2000/svg" width=${r.width} height=${r.height} viewBox="0 0 16 16">
|
|
840
|
+
<g style=${`fill: ${d}`}>
|
|
826
841
|
<path
|
|
827
842
|
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"
|
|
828
843
|
style="stroke: none"
|
|
@@ -830,7 +845,7 @@
|
|
|
830
845
|
></path>
|
|
831
846
|
<path
|
|
832
847
|
d="M836.532 699.634a.833.833 0 0 0 .644-.333l6.803-9.07a.831.831 0 1 0-1.33-.998l-6.172 8.23-3.107-3.728a.83.83 0 1 0-1.277 1.064l3.78 4.535c.157.19.391.3.638.3h.021m.003.2h-.024c-.307 0-.596-.136-.793-.372l-3.779-4.535a1.025 1.025 0 0 1-.235-.754 1.03 1.03 0 0 1 1.82-.567l2.945 3.534 6.02-8.027a1.034 1.034 0 0 1 1.444-.207c.22.165.363.407.402.68.04.273-.03.544-.196.765l-6.803 9.07c-.19.254-.481.404-.799.412h-.002z"
|
|
833
|
-
style=${`fill: ${
|
|
848
|
+
style=${`fill: ${d}; stroke: none`}
|
|
834
849
|
transform="translate(-829.971 -686.318)"
|
|
835
850
|
></path>
|
|
836
851
|
</g>
|
|
@@ -858,74 +873,74 @@
|
|
|
858
873
|
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"
|
|
859
874
|
fill=${r}
|
|
860
875
|
></path>
|
|
861
|
-
</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 o;return(...n)=>{o&&clearTimeout(o),o=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=
|
|
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 o;return(...n)=>{o&&clearTimeout(o),o=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=O.createRef(),o=O.createRef(),n=O.createRef(),r=O.createRef(),d=O.createRef(),m=O.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-"),y={change:"",blur:"",save:""};let R=h();const $=()=>e.props.keyProp||"id",b=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(()=>{D==null||D.release(),D=null}),e.onCleanup(b._didMount());const z=c=>{s=c??null,c&&(b._willUpdate(),e.requestUpdate())},E=c=>e.props.itemsSource?e.props.itemsSource.find(Q=>Q[$()]===c)??null:null,L=c=>c?typeof e.props.displayProp=="function"?e.props.displayProp(c):typeof c=="object"?c[e.props.displayProp]:String(c):"",W=()=>{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},N=()=>{if(!p)return e.props.itemsSource??[];const c=p.toLowerCase();return(e.props.itemsSource??[]).filter(x=>L(x).toLowerCase().indexOf(c)>-1)},oe=c=>{if(!p)return[{part:c,highlight:!1}];const x=en(p),Q=new RegExp(`(${x})`,"gi");return c.split(Q).map(re=>({part:re,highlight:p.toLowerCase()===re.toLowerCase()}))},ae=()=>y.save||y.blur||y.change,te=()=>{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 Q=te();if(Q.length<=0||e.props.disabled)return!0;y[x]="",e.requestUpdate();const re=Q.filter(de=>de.type===x);for(const de of re)if(!await de.validator(c))return y[x]=de.message,e.requestUpdate(),!1;return!0},T=async(c="save")=>ae()!==""?!1:await Y(h(),c),K={validate:T,initValidator:()=>{y.change="",y.blur="",y.save="",e.requestUpdate()}};e.validator&&(e.validator.addValidator(K),e.onCleanup(()=>{var c;return(c=e.validator)==null?void 0:c.removeValidator(K)}));const ne=new pt({anchor:()=>o.value??null,panel:()=>n.value??null,maxHeight:()=>ao,container:()=>t.value??null,useMinWidth:!0,listWidth:()=>e.props.listWidth,ignoreScrollTargets:c=>c===s,requestClose:()=>{u&&S(!1)}});e.onCleanup(()=>ne.destroy());const G=c=>{`${c.ctrlKey?"ctrl+":""}${c.altKey?"alt+":""}${c.key.toLowerCase()}`==="escape"&&S(!1)},Z=c=>{const Q=gt*c-ao/2;return Math.max(0,Q+gt)};let D=null;const S=c=>{u!==c&&(u=c,e.requestUpdate(),c?(D=ht(),ne.open(),y.save="",window.addEventListener("keydown",G),queueMicrotask(()=>{var Q;const x=h();if(x&&s){const re=(e.props.itemsSource??[]).findIndex(de=>de[$()]===x);s.scrollTop=Z(re)}m.value?m.value.focus():(Q=d.value)==null||Q.focus()})):(D==null||D.release(),D=null,ne.close(),e.emit("close"),Y(h(),"blur"),window.removeEventListener("keydown",G),p="",e.emit("close"),queueMicrotask(()=>{var x;return(x=d.value)==null?void 0:x.focus()})))},U=()=>{var c;e.props.disabled||(S(!u),(c=d.value)==null||c.focus())},j=c=>{var x;a(c),S(!1),(x=d.value)==null||x.focus()},k=Js(c=>{p=c.target.value,e.requestUpdate(),queueMicrotask(()=>{const x=N().length;b.setOptions({...b.options,count:x}),b.measure(),s&&(s.scrollTop=0,b.scrollToIndex(0),b.measure())})},300),V=c=>{var x;if(u){c.stopPropagation(),c.preventDefault();const Q=m.value??((x=r.value)==null?void 0:x.querySelector("div:first-child"));Q==null||Q.focus()}},A=c=>{var $e,be,C;const x=(($e=n.value)==null?void 0:$e.querySelectorAll('[tabindex="0"]'))??[],Q=[...Array.from(x)];m.value&&Q.unshift(m.value);const re=Q[0],de=Q[Q.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()))},_=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},F=c=>{var de;const x=g();if(x.length===0)return;const Q=x.indexOf(document.activeElement),re=Q<0?c>0?0:x.length-1:Math.min(x.length-1,Math.max(0,Q+c));(de=x[re])==null||de.focus()},X=c=>c.find(x=>x.getAttribute("aria-selected")==="true")??null,J=c=>{S(!0),queueMicrotask(()=>queueMicrotask(()=>{if(m.value)return;const x=g();x.length!==0&&(X(x)??x[c<0?x.length-1:0]).focus()}))},ve=()=>{var c;S(!1),(c=d.value)==null||c.focus()},De=c=>{if(c.key==="Tab"){V(c);return}if(c.key==="Enter"||c.key===" "){u||(c.preventDefault(),c.stopPropagation(),J(1));return}if(c.key==="ArrowDown"||c.key==="ArrowUp"){c.preventDefault(),c.stopPropagation();const x=c.key==="ArrowDown"?1:-1;u?F(x):J(x);return}c.key==="Escape"&&u&&(c.preventDefault(),ve())},_e=c=>{if(c.key==="Tab"){A(c);return}if(c.key==="ArrowDown"||c.key==="ArrowUp"){c.preventDefault(),F(c.key==="ArrowDown"?1:-1);return}c.key==="Escape"&&(c.preventDefault(),ve())},He=(c,x)=>{if(c.key==="Tab"){_(c);return}if(c.key==="ArrowDown"||c.key==="ArrowUp"){c.preventDefault(),c.stopPropagation(),F(c.key==="ArrowDown"?1:-1);return}if(c.key==="Escape"){c.preventDefault(),c.stopPropagation(),ve();return}(c.key==="Enter"||c.key===" ")&&j(x)};return{api:{validate:T},render(){const c=e.props,x=h();if(x!==R){R=x;const Ce=x;queueMicrotask(()=>{Y(Ce,"change"),e.emit("change",c.useObjBinding?Ce:Ce&&Ce[$()],Ce)})}const Q=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=l.html`<button
|
|
862
877
|
type="button"
|
|
863
878
|
class="icon-container"
|
|
864
|
-
${he(
|
|
879
|
+
${he(de)}
|
|
865
880
|
role="combobox"
|
|
866
881
|
aria-haspopup="listbox"
|
|
867
882
|
aria-expanded=${u?"true":"false"}
|
|
868
883
|
aria-controls=${v}
|
|
869
|
-
aria-label=${xe.ifDefined(
|
|
884
|
+
aria-label=${xe.ifDefined(de["aria-label"]??c.label??void 0)}
|
|
870
885
|
@keydown=${De}
|
|
871
|
-
${
|
|
872
|
-
?disabled=${!!
|
|
886
|
+
${O.ref(d)}
|
|
887
|
+
?disabled=${!!c.disabled}
|
|
873
888
|
>
|
|
874
|
-
${
|
|
875
|
-
</button>`,
|
|
889
|
+
${be}
|
|
890
|
+
</button>`,q=e.slots.has("input-container")?l.html`<div
|
|
876
891
|
class="moz-input-container select-input-container"
|
|
877
|
-
style=${
|
|
878
|
-
@click=${
|
|
879
|
-
${
|
|
892
|
+
style=${le.styleMap({width:Q})}
|
|
893
|
+
@click=${U}
|
|
894
|
+
${O.ref(o)}
|
|
880
895
|
>
|
|
881
896
|
<div
|
|
882
|
-
class=${
|
|
897
|
+
class=${M("input-container-wrapper",{"input-container-wrapper--disabled":c.disabled})}
|
|
883
898
|
>
|
|
884
|
-
${e.slot("input-container",{text:
|
|
899
|
+
${e.slot("input-container",{text:W(),item:x})}
|
|
885
900
|
</div>
|
|
886
901
|
${C}
|
|
887
902
|
</div>`:l.html`<div
|
|
888
903
|
class="moz-input-container select-input-container"
|
|
889
|
-
style=${
|
|
890
|
-
@click=${
|
|
891
|
-
${
|
|
904
|
+
style=${le.styleMap({width:Q})}
|
|
905
|
+
@click=${U}
|
|
906
|
+
${O.ref(o)}
|
|
892
907
|
>
|
|
893
908
|
<input
|
|
894
909
|
${he($e)}
|
|
895
|
-
.value=${
|
|
896
|
-
placeholder=${xe.ifDefined(
|
|
910
|
+
.value=${W()??""}
|
|
911
|
+
placeholder=${xe.ifDefined(c.placeholder??void 0)}
|
|
897
912
|
autocomplete="off"
|
|
898
|
-
?disabled=${!!
|
|
913
|
+
?disabled=${!!c.disabled}
|
|
899
914
|
readonly
|
|
900
915
|
tabindex="-1"
|
|
901
|
-
class=${
|
|
916
|
+
class=${M("select-display-input",{"select-display-input--disabled":c.disabled})}
|
|
902
917
|
/>
|
|
903
918
|
${e.slot("input")}
|
|
904
919
|
${C}
|
|
905
920
|
</div>`;return l.html`
|
|
906
921
|
<div
|
|
907
|
-
class=${
|
|
908
|
-
style=${
|
|
909
|
-
${
|
|
922
|
+
class=${M("moz-select",{"is-invalid":ae()!=="","is-open":u,disabled:!!c.disabled},c.class)}
|
|
923
|
+
style=${le.styleMap(Pe(c.style))}
|
|
924
|
+
${O.ref(t)}
|
|
910
925
|
>
|
|
911
926
|
<div class="input-wrapper">
|
|
912
|
-
${
|
|
913
|
-
${
|
|
927
|
+
${c.label?Be({disabled:c.disabled,required:c.required},c.label):l.nothing}
|
|
928
|
+
${q}
|
|
914
929
|
</div>
|
|
915
930
|
|
|
916
|
-
${
|
|
931
|
+
${ae()!==""?l.html`<span class="moz-input-invalid-message">${ae()}</span>`:l.nothing}
|
|
917
932
|
</div>
|
|
918
|
-
`},renderPortal(){if(!u)return l.nothing;const
|
|
919
|
-
class=${
|
|
933
|
+
`},renderPortal(){if(!u)return l.nothing;const c=e.props,x=h(),Q=$(),re=N();b.options.count!==re.length&&b.setOptions({...b.options,count:re.length}),b._willUpdate();const de=Tt(b.getVirtualItems(),re.length,gt,s),$e=b.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 l.html`<div
|
|
934
|
+
class=${M("list-box",{"no-label":!c.label})}
|
|
920
935
|
@keydown=${_e}
|
|
921
|
-
${
|
|
936
|
+
${O.ref(n)}
|
|
922
937
|
>
|
|
923
|
-
${
|
|
938
|
+
${c.useFilter?l.html`<div class="filter-input">
|
|
924
939
|
<input
|
|
925
|
-
${
|
|
940
|
+
${O.ref(m)}
|
|
926
941
|
@mousedown=${C=>C.stopPropagation()}
|
|
927
|
-
placeholder=${
|
|
928
|
-
@input=${
|
|
942
|
+
placeholder=${c.searchPlaceholder??e.locale.Select.searchPlaceholder}
|
|
943
|
+
@input=${k}
|
|
929
944
|
class="filter-input__field"
|
|
930
945
|
/>
|
|
931
946
|
<div class="search-icon">${to("12","var(--moz-color-text-subtle)")}</div>
|
|
@@ -933,30 +948,30 @@
|
|
|
933
948
|
<div
|
|
934
949
|
id=${v}
|
|
935
950
|
role="listbox"
|
|
936
|
-
class=${
|
|
937
|
-
${
|
|
951
|
+
class=${M("list-box-container",{"list-box-container--with-filter":c.useFilter})}
|
|
952
|
+
${O.ref(z)}
|
|
938
953
|
>
|
|
939
|
-
<div class="inner-container" style=${
|
|
940
|
-
${
|
|
954
|
+
<div class="inner-container" style=${le.styleMap({height:`${$e}px`})} ${O.ref(r)}>
|
|
955
|
+
${be.map(({index:C,value:q,start:Ce})=>{const Se=c.useObjBinding?q&&x&&q[Q]===x[Q]:q[Q]===x;return l.html`<div
|
|
941
956
|
data-index=${C}
|
|
942
957
|
role="option"
|
|
943
958
|
aria-selected=${Se?"true":"false"}
|
|
944
|
-
${
|
|
945
|
-
style=${
|
|
946
|
-
class=${
|
|
947
|
-
@click=${()=>
|
|
959
|
+
${O.ref(ke=>{ke&&b.measureElement(ke)})}
|
|
960
|
+
style=${le.styleMap({transform:`translateY(${Ce}px)`})}
|
|
961
|
+
class=${M("list-box-item virtual-row",{"list-selected":q[Q]===x})}
|
|
962
|
+
@click=${()=>j(c.useObjBinding?q:q[Q])}
|
|
948
963
|
tabindex="0"
|
|
949
|
-
@keydown=${ke=>He(ke,
|
|
964
|
+
@keydown=${ke=>He(ke,c.useObjBinding?q:q[Q])}
|
|
950
965
|
>
|
|
951
|
-
${e.slots.has("list-item")?e.slot("list-item",{text:L(
|
|
952
|
-
${
|
|
966
|
+
${e.slots.has("list-item")?e.slot("list-item",{text:L(q),item:q,index:C,highlightText:oe(L(q))}):l.html`<div class="highlight-container" title=${L(q)}>
|
|
967
|
+
${oe(L(q)).map(ke=>l.html`<span class=${M({highlight:ke.highlight})}>${ke.part}</span>`)}
|
|
953
968
|
</div>`}
|
|
954
969
|
${Se?Qt("12","var(--moz-color-accent)",!1,"icon-check"):l.nothing}
|
|
955
970
|
</div>`})}
|
|
956
971
|
</div>
|
|
957
972
|
|
|
958
|
-
${!
|
|
959
|
-
${e.slots.has("empty")?e.slot("empty"):
|
|
973
|
+
${!re||re.length<=0?l.html`<div class="list-box-item loading not-hover">
|
|
974
|
+
${e.slots.has("empty")?e.slot("empty"):c.emptyText??e.locale.Select.emptyText}
|
|
960
975
|
</div>`:l.nothing}
|
|
961
976
|
</div>
|
|
962
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)",o=!1){const n=oo(e,14);return l.html`<svg xmlns="http://www.w3.org/2000/svg" width=${n.width} height=${n.height} viewBox="0 0 14 14" fill="none">
|
|
@@ -983,44 +998,44 @@
|
|
|
983
998
|
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"
|
|
984
999
|
fill=${r}
|
|
985
1000
|
></path>
|
|
986
|
-
</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=H.createRef(),o=H.createRef(),n=H.createRef(),r=H.createRef(),s=H.createRef();let h=null;const c=()=>e.props.keyProp||"id",i=()=>e.props.disabledProp||"disabled";let m=e.props.modelValue??null;const a=()=>{const f=e.controlled("modelValue")?e.props.modelValue:m;return Array.isArray(f)?f:[]},u=f=>{e.controlled("modelValue")||(m=f),e.emit("update:modelValue",f),e.requestUpdate()};let p=!1;const v=Xe("moz-multiselect-listbox-");let $=e.props.filterValue??"",R=!1,y=!1,b={},M=[];const S={change:"",blur:"",save:""};let L=e.props.itemsSource;const X=(()=>{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}})(),j=new Fe.Virtualizer({count:0,getScrollElement:()=>h,estimateSize:()=>X,overscan:5,observeElementRect:Fe.observeElementRect,observeElementOffset:Fe.observeElementOffset,scrollToFn:Fe.elementScroll,onChange:()=>e.requestUpdate()});e.onCleanup(()=>{C==null||C.release(),C=null}),e.onCleanup(j._didMount());const re=f=>{h=f??null,f&&(j._willUpdate(),e.requestUpdate())},de=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(F=>f.set(F[c()],F)),f},W=()=>{if(e.props.filterMode==="remote"||!$)return e.props.itemsSource??[];const f=$.toLowerCase();return(e.props.itemsSource??[]).filter(F=>de(F).toLowerCase().indexOf(f)>-1)},z=f=>{if(!$)return[{part:f,highlight:!1}];const F=rn($),q=new RegExp(`(${F})`,"gi");return f.split(q).map(Q=>({part:Q,highlight:$.toLowerCase()===Q.toLowerCase()}))},G=f=>new Set(a()).has(f[c()]),le=f=>M.some(F=>rt(F.item,f)),se=()=>{const f=a(),F=W();if(f.length<F.length||f.length===0||F.length===0)return!1;const q=new Set(f);return F.every(Q=>q.has(Q[c()]))},J=()=>new Set(W().map(f=>f[c()])),O=()=>new Set(a()),k=()=>{const f=J(),F=O();return!f.size||!F.size||F.size<f.size?!1:Array.from(f).every(q=>F.has(q))},_=()=>S.save||S.blur||S.change,Z=()=>{const f=[];return e.props.required&&f.push({message:e.locale.MultiSelect.required.replace("{label}",e.props.label||""),type:"save",validator:F=>!!F.length}),[...f,...e.props.rules??[]]},P=async(f,F)=>{const q=Z();if(q.length<=0)return;if(e.props.disabled)return!0;S[F]="",e.requestUpdate();const Q=q.filter(oe=>oe.type===F);for(const oe of Q)if(!await oe.validator(f))return S[F]=oe.message,e.requestUpdate(),!1;return!0},V=async(f="save")=>_()!==""?!1:await P(a(),f)??!0,D={validate:V,initValidator:()=>{S.change="",S.blur="",S.save="",e.requestUpdate()}};e.validator&&(e.validator.addValidator(D),e.onCleanup(()=>{var f;return(f=e.validator)==null?void 0:f.removeValidator(D)}));const U=f=>{if(e.props.disabled||e.props.readonly||e.props.loading)return;const F=ee(),q=new Set;a().forEach(oe=>{const ue=F.get(oe);(ue==null?void 0:ue[i()])===!0&&q.add(oe)}),f.forEach(oe=>{const ue=F.get(oe);(ue&&ue[i()]!==!0||!ue&&e.props.preserveMissingValues)&&q.add(oe)});const Q=Array.from(q);rt(a(),Q)||(u(Q),e.emit("change",Q,Q.map(oe=>F.get(oe)).filter(Boolean)),P(Q,"change"))},g=(f,F)=>f.filter(q=>G(q)!==F).map(q=>q[c()]),I=(f,F,q)=>{if(q.shiftKey&&M.length>0){const Q=M[0],oe=Math.min(Q.index,F),ue=Math.max(Q.index,F);M=W().slice(oe,ue+1).map((fe,be)=>({item:fe,index:oe+be}))}else q.ctrlKey?M.push({item:f,index:F}):M=[{item:f,index:F}];return M.length},N=(f=!0)=>{const F=M.map(oe=>oe.item),q=g(F,f);let Q=a();f?Q=[...Q,...q]:Q=Q.filter(oe=>!q.some(ue=>oe===ue)),U(Q)},Y=(f,F,q)=>{if(f[i()]===!0)return;const Q=M.some(ue=>ue.item[c()]===f[c()]);(M.length<=1||!Q)&&I(f,F,{shiftKey:!1,ctrlKey:!1});const oe=a().some(ue=>ue===f[c()]);N(!oe),q.stopPropagation()},ve=(f,F,q)=>{f[i()]!==!0&&(!q.ctrlKey&&!q.shiftKey&&M.length<=1&&Y(f,F,q),I(f,F,q),e.requestUpdate())},De=(f,F,q)=>{if(f[i()]===!0)return;const Q=a(),oe=O().size!==0&&Q.every(ue=>ue===f[c()]);U(oe?[]:[f[c()]]),I(f,F,q),q.stopPropagation()},_e=f=>{f.stopPropagation();const F=J().size===O().size&&[...J()].every(q=>O().has(q));if(se()&&F){const q=new Set((e.props.itemsSource??[]).filter(Q=>Q[i()]===!0).map(Q=>Q[c()]));U(Array.from(q))}else{const q=new Set(W().filter(Q=>Q[i()]!==!0).map(Q=>Q[c()]));U(Array.from(q))}},He=f=>{if(f.stopPropagation(),k()){const F=J();U(a().filter(q=>!F.has(q)))}else{const F=new Set([...a(),...J()]);U(Array.from(F))}},d=f=>{R=f.target.scrollTop>0,e.requestUpdate()},x=()=>{const f=a();if(!(f!=null&&f.length))return"";const F=ee(),q=f.map(oe=>F.get(oe)).filter(Boolean).map(oe=>typeof e.props.displayProp=="function"?e.props.displayProp(oe):oe[e.props.displayProp]||""),Q=e.props.itemsSource??[];return q.length===Q.length&&q.length>2?`${e.props.headerFormat.replace(/\{count(:.*?)?}/g,"ALL")}`:q.length>1?e.props.headerFormat.replace(/\{count(:.*?)?}/g,`${q.length.toLocaleString()}`):q.join(", ")||""},K=(f,F,q=10)=>{const Q=window.innerHeight||document.documentElement.clientHeight,oe=window.innerWidth||document.documentElement.clientWidth,ue=f.getBoundingClientRect(),fe=F.getBoundingClientRect(),be=ue.bottom+fe.height+q>Q;if(!be)return!1;const Me=ue.top-fe.height-q<0,We=ue.right+fe.width+q>oe,et=ue.left-fe.width-q<0;return be&&!Me||We&&!et},ne=()=>{const f=o.value;if(!f)return;const F=f.getBoundingClientRect();let q=`${F.width}px`;e.props.listBoxWidth&&(q=typeof e.props.listBoxWidth=="number"?`${e.props.listBoxWidth}px`:e.props.listBoxWidth),b={width:String(q),left:`${F.left}px`,top:`${F.top+(y?0:F.height)}px`},e.requestUpdate()},ce=f=>{var F;(F=n.value)!=null&&F.contains(f.target)||A(!1)},$e=f=>{var F,q;!((F=t.value)!=null&&F.contains(f.target))&&!((q=n.value)!=null&&q.contains(f.target))&&(A(!1),document.removeEventListener("click",$e,{capture:!0}))},ye=f=>{var q;`${f.ctrlKey?"ctrl+":""}${f.altKey?"alt+":""}${f.key.toLowerCase()}`==="escape"&&(A(!1),(q=r.value)==null||q.focus())};e.onCleanup(()=>{document.body.removeEventListener("scroll",ce,{capture:!0}),document.removeEventListener("click",$e,{capture:!0}),window.removeEventListener("keydown",ye)});let C=null;const A=f=>{if(p===f)return;const F=p;if(p=f,e.requestUpdate(),f)C=ht(),document.body.addEventListener("scroll",ce,{capture:!0}),document.addEventListener("click",$e,{capture:!0}),S.save="",window.addEventListener("keydown",ye),ne(),queueMicrotask(()=>{var q;o.value&&h&&(y=K(o.value,h)),ne(),j.measure(),h&&(h.scrollTop=0),s.value?s.value.focus():(q=r.value)==null||q.focus()});else if(C==null||C.release(),C=null,$="",s.value&&(s.value.value=""),document.body.removeEventListener("scroll",ce,{capture:!0}),document.removeEventListener("click",$e,{capture:!0}),P(a(),"blur"),window.removeEventListener("keydown",ye),F&&!f){const q=a();if(e.props.selectAllWhenEmpty&&(!q||q.length===0)){const Q=(e.props.itemsSource??[]).filter(oe=>oe[i()]!==!0).map(oe=>oe[c()]);Q.length>0&&(u(Q),e.emit("change",Q,(e.props.itemsSource??[]).filter(oe=>Q.includes(oe[c()]))))}e.emit("close")}},Ce=f=>{var F;if(p){f.stopPropagation(),f.preventDefault();const q=(F=n.value)==null?void 0:F.querySelector("input:first-child, button:first-child");q==null||q.focus()}},Se=f=>{var oe,ue,fe;const F=((oe=n.value)==null?void 0:oe.querySelectorAll("input, button"))??[],q=F[0],Q=F[F.length-1];(f.target===q||f.target===Q)&&r.value&&(f.target===q&&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)},Re=f=>{!p&&!e.props.inline||($=f.target.value,M=[],e.emit("update:filterValue",$),e.requestUpdate(),queueMicrotask(()=>{j.setOptions({...j.options,count:W().length}),j.measure(),h&&(h.scrollTop=0)}))},Ne=()=>{var f;e.props.disabled||(A(!p),(f=r.value)==null||f.focus())},Qe=(f,F)=>{var q,Q;if(f.key==="Enter"||f.key===" "){f.preventDefault(),f.stopPropagation(),F();return}if(f.key==="ArrowDown"||f.key==="ArrowUp"){f.preventDefault(),f.stopPropagation();const oe=Array.from(((q=n.value)==null?void 0:q.querySelectorAll('[tabindex="0"]'))??[]),ue=oe.indexOf(f.currentTarget),fe=oe[ue+(f.key==="ArrowDown"?1:-1)];fe==null||fe.focus();return}f.key==="Escape"&&!e.props.inline&&(f.preventDefault(),f.stopPropagation(),A(!1),(Q=r.value)==null||Q.focus())},ot=(f,F)=>{ve(f,F,{ctrlKey:!1,shiftKey:!1,stopPropagation(){}})},Je=(f,F)=>{if(M=[],e.props.preserveMissingValues||JSON.stringify(f)===JSON.stringify(F))return;const q=new Set(f.map(oe=>oe[c()])),Q=a();if(e.props.autoSelectNewItems&&F){const oe=new Set(F.map(fe=>fe[c()])),ue=f.filter(fe=>!oe.has(fe[c()])).map(fe=>fe[c()]);if(ue.length>0){const fe=Q.filter(be=>q.has(be));u([...new Set([...fe,...ue])])}else u(Q.filter(fe=>q.has(fe)))}else{const oe=Q.filter(ue=>q.has(ue));if(rt(Q,oe))return;u(oe)}},Ze=()=>{const f=e.props,F=c(),q=f.loading?[]:W();j.options.count!==q.length&&j.setOptions({...j.options,count:q.length}),j._willUpdate();const Q=new Set(a()),oe=Tt(j.getVirtualItems(),q.length,X,h).map(be=>{if(be.index>=q.length)return null;const Me=q[be.index];return Me?{index:be.index,value:Me,size:be.size,start:be.start,isSelected:Q.has(Me[F]),isDisabled:!!f.disabled||!!f.readonly||Me[i()]===!0,isFocused:le(Me)}:null}).filter(be=>be!==null),ue=j.getTotalSize(),fe=$?e.locale.MultiSelect.selectFiltered:e.locale.MultiSelect.selectAll;return l.html`<div
|
|
987
|
-
class=${
|
|
988
|
-
style=${
|
|
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=${M("list-box",{"no-label":!f.label,"show-top":$,"moz-multiselect-inline-list":!!f.inline},f.class)}
|
|
1003
|
+
style=${le.styleMap(f.inline?{"--moz-multiselect-list-height":`${f.listBoxHeight??224}px`}:b)}
|
|
989
1004
|
@keydown=${Te}
|
|
990
|
-
${
|
|
1005
|
+
${O.ref(n)}
|
|
991
1006
|
>
|
|
992
1007
|
${f.useFilter?l.html`<div class="filter-input">
|
|
993
1008
|
<input
|
|
994
1009
|
placeholder=${f.searchPlaceholder??e.locale.MultiSelect.search}
|
|
995
1010
|
aria-label=${f.searchPlaceholder??e.locale.MultiSelect.search}
|
|
996
|
-
.value=${
|
|
1011
|
+
.value=${y}
|
|
997
1012
|
?disabled=${!!f.disabled||!!f.readonly}
|
|
998
|
-
@input=${
|
|
999
|
-
${
|
|
1013
|
+
@input=${Ae}
|
|
1014
|
+
${O.ref(d)}
|
|
1000
1015
|
/>
|
|
1001
1016
|
<div class="search-icon">${sn("12","var(--moz-color-text-subtle)")}</div>
|
|
1002
1017
|
</div>`:l.nothing}
|
|
1003
|
-
${f.useSelectAll&&(f.itemsSource??[]).length>0&&
|
|
1004
|
-
class=${
|
|
1018
|
+
${f.useSelectAll&&(f.itemsSource??[]).length>0&&I.length>0?l.html`<div
|
|
1019
|
+
class=${M("list-box-item multi-select-item multi-select-all",{"is-scrolled":R})}
|
|
1005
1020
|
role="button"
|
|
1006
1021
|
tabindex=${f.disabled||f.readonly||f.loading?"-1":"0"}
|
|
1007
1022
|
aria-disabled=${f.disabled||f.readonly||f.loading?"true":"false"}
|
|
1008
|
-
aria-pressed=${
|
|
1023
|
+
aria-pressed=${S()?"true":"false"}
|
|
1009
1024
|
aria-label=${fe}
|
|
1010
1025
|
@click=${He}
|
|
1011
|
-
@keydown=${
|
|
1026
|
+
@keydown=${ye=>Qe(ye,()=>He({stopPropagation(){}}))}
|
|
1012
1027
|
>
|
|
1013
1028
|
<input
|
|
1014
1029
|
type="checkbox"
|
|
1015
1030
|
aria-hidden="true"
|
|
1016
1031
|
tabindex="-1"
|
|
1017
|
-
class=${
|
|
1018
|
-
.checked=${
|
|
1032
|
+
class=${M("moz-checkbox",{"is-indeterminate":I.some(ye=>ee.has(ye[B]))&&!G()})}
|
|
1033
|
+
.checked=${S()}
|
|
1019
1034
|
/>
|
|
1020
1035
|
<div class="highlight-container">
|
|
1021
1036
|
<span title=${fe}>${fe}</span>
|
|
1022
1037
|
</div>
|
|
1023
|
-
${f.useSpecificSelect
|
|
1038
|
+
${f.useSpecificSelect&&y&&I.length>0?l.html`<button type="button" class="item-only" @click=${_e}>
|
|
1024
1039
|
${e.locale.MultiSelect.specificResults}
|
|
1025
1040
|
</button>`:l.nothing}
|
|
1026
1041
|
</div>`:l.nothing}
|
|
@@ -1032,19 +1047,19 @@
|
|
|
1032
1047
|
aria-label=${xe.ifDefined(f["aria-label"]??f.label??void 0)}
|
|
1033
1048
|
aria-busy=${f.loading?"true":"false"}
|
|
1034
1049
|
class="list-box-container"
|
|
1035
|
-
@scroll=${
|
|
1036
|
-
${
|
|
1050
|
+
@scroll=${c}
|
|
1051
|
+
${O.ref(oe)}
|
|
1037
1052
|
>
|
|
1038
|
-
<div class="inner-container" style=${
|
|
1039
|
-
${
|
|
1040
|
-
class=${
|
|
1041
|
-
style=${
|
|
1053
|
+
<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})=>l.html`<div
|
|
1055
|
+
class=${M("list-box-item multi-select-item virtual-row",{"list-selected":it,"moz-multi-focus":zt})}
|
|
1056
|
+
style=${le.styleMap({height:`${et}px`,transform:`translateY(${We}px)`})}
|
|
1042
1057
|
role="option"
|
|
1043
1058
|
aria-selected=${it?"true":"false"}
|
|
1044
1059
|
aria-disabled=${lt?"true":"false"}
|
|
1045
1060
|
tabindex=${lt?"-1":"0"}
|
|
1046
|
-
@click=${Ge=>ve(Me,
|
|
1047
|
-
@keydown=${Ge=>Qe(Ge,()=>ot(Me,
|
|
1061
|
+
@click=${Ge=>ve(Me,ye,Ge)}
|
|
1062
|
+
@keydown=${Ge=>Qe(Ge,()=>ot(Me,ye))}
|
|
1048
1063
|
>
|
|
1049
1064
|
<input
|
|
1050
1065
|
type="checkbox"
|
|
@@ -1053,33 +1068,33 @@
|
|
|
1053
1068
|
class="moz-checkbox"
|
|
1054
1069
|
.checked=${it}
|
|
1055
1070
|
?disabled=${lt}
|
|
1056
|
-
@click=${Ge=>
|
|
1071
|
+
@click=${Ge=>J(Me,ye,Ge)}
|
|
1057
1072
|
/>
|
|
1058
|
-
${e.slots.has("list-item")?e.slot("list-item",{text:
|
|
1059
|
-
${
|
|
1073
|
+
${e.slots.has("list-item")?e.slot("list-item",{text:ae(Me),item:Me}):l.html`<div class="highlight-container" title=${ae(Me)}>
|
|
1074
|
+
${T(ae(Me)).map(Ge=>l.html`<span class=${M("text-part",{highlight:Ge.highlight})}>${Ge.part}</span>`)}
|
|
1060
1075
|
</div>`}
|
|
1061
|
-
${f.useSpecificSelect&&!lt?l.html`<button type="button" class="item-only" @click=${Ge=>De(Me,
|
|
1076
|
+
${f.useSpecificSelect&&!lt?l.html`<button type="button" class="item-only" @click=${Ge=>De(Me,ye,Ge)}>
|
|
1062
1077
|
${e.locale.MultiSelect.specificSelect}
|
|
1063
1078
|
</button>`:l.nothing}
|
|
1064
1079
|
</div>`)}
|
|
1065
1080
|
</div>
|
|
1066
|
-
${
|
|
1081
|
+
${I.length<=0?l.html`<div class="list-box-item loading not-hover">
|
|
1067
1082
|
${f.loading?f.loadingText??"Loading…":e.slots.has("empty")?e.slot("empty"):e.locale.MultiSelect.noData}
|
|
1068
1083
|
</div>`:l.nothing}
|
|
1069
1084
|
</div>
|
|
1070
|
-
</div>`};return{api:{validate:V},render(){const f=e.props;if(e.controlled("filterValue")&&(
|
|
1071
|
-
style=${
|
|
1072
|
-
${
|
|
1085
|
+
</div>`};return{api:{validate:V},render(){const f=e.props;if(e.controlled("filterValue")&&(y=f.filterValue??""),f.itemsSource!==L){const fe=L,ye=f.itemsSource;L=f.itemsSource,queueMicrotask(()=>Je(ye??[],fe??[]))}const B=typeof f.width=="number"?`${Le(f.width)}rem`:f.width,I=ge(f,nn),{aria:ee,dom:se}=ut(I);if(f.inline)return l.html`<div class="moz-multi-select moz-multi-select-inline"
|
|
1086
|
+
style=${le.styleMap({width:B,...Pe(f.style)})}
|
|
1087
|
+
${O.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 l.html`
|
|
1073
1088
|
<div
|
|
1074
|
-
class=${
|
|
1075
|
-
style=${
|
|
1076
|
-
${
|
|
1089
|
+
class=${M("moz-multi-select",{"is-invalid":U()!=="","is-open":p,disabled:!!f.disabled})}
|
|
1090
|
+
style=${le.styleMap({width:B,...Pe(f.style)})}
|
|
1091
|
+
${O.ref(t)}
|
|
1077
1092
|
>
|
|
1078
1093
|
<div class="input-wrapper">
|
|
1079
1094
|
${f.label?Be({},l.html`${f.label}${f.required?l.html`<span class="require-mark">*</span>`:l.nothing}`):l.nothing}
|
|
1080
|
-
<div class="moz-input-container" @click=${Ne} ${
|
|
1095
|
+
<div class="moz-input-container" @click=${Ne} ${O.ref(o)}>
|
|
1081
1096
|
<input
|
|
1082
|
-
${he(
|
|
1097
|
+
${he(se)}
|
|
1083
1098
|
.value=${x()}
|
|
1084
1099
|
autocomplete="off"
|
|
1085
1100
|
readonly
|
|
@@ -1088,22 +1103,22 @@
|
|
|
1088
1103
|
<button
|
|
1089
1104
|
type="button"
|
|
1090
1105
|
class="icon-container"
|
|
1091
|
-
${he(
|
|
1106
|
+
${he(ee)}
|
|
1092
1107
|
role="combobox"
|
|
1093
1108
|
aria-haspopup="listbox"
|
|
1094
1109
|
aria-expanded=${p?"true":"false"}
|
|
1095
1110
|
aria-controls=${v}
|
|
1096
|
-
aria-label=${xe.ifDefined(
|
|
1111
|
+
aria-label=${xe.ifDefined(ee["aria-label"]??f.label??void 0)}
|
|
1097
1112
|
?disabled=${!!f.disabled}
|
|
1098
1113
|
@keydown=${ke}
|
|
1099
|
-
${
|
|
1114
|
+
${O.ref(r)}
|
|
1100
1115
|
>
|
|
1101
1116
|
${ue}
|
|
1102
1117
|
</button>
|
|
1103
1118
|
</div>
|
|
1104
1119
|
</div>
|
|
1105
1120
|
|
|
1106
|
-
${
|
|
1121
|
+
${U()!==""?l.html`<span class="moz-input-invalid-message">${U()}</span>`:l.nothing}
|
|
1107
1122
|
</div>
|
|
1108
1123
|
`},renderPortal(){return e.props.inline||!p?l.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 o=el(e,14);return l.html`<svg width=${o.width} height=${o.height} viewBox="0 0 14 15" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1109
1124
|
<g clip-path="url(#clip0_4513_575)">
|
|
@@ -1119,8 +1134,8 @@
|
|
|
1119
1134
|
<rect width=${o.width} height=${o.height} fill="white" transform="translate(0 0.704163)"></rect>
|
|
1120
1135
|
</clipPath>
|
|
1121
1136
|
</defs>
|
|
1122
|
-
</svg>`}function co(e="12",t="var(--moz-color-text-subtle)",o=!1,n=""){const r=el(e,12),
|
|
1123
|
-
<g style=${`fill: ${
|
|
1137
|
+
</svg>`}function co(e="12",t="var(--moz-color-text-subtle)",o=!1,n=""){const r=el(e,12),d=o?"var(--moz-color-text-muted)":t;return l.html`<svg class=${n||l.nothing} xmlns="http://www.w3.org/2000/svg" width=${r.width} height=${r.height} viewBox="0 0 16 16">
|
|
1138
|
+
<g style=${`fill: ${d}`}>
|
|
1124
1139
|
<path
|
|
1125
1140
|
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"
|
|
1126
1141
|
style="stroke: none"
|
|
@@ -1128,113 +1143,113 @@
|
|
|
1128
1143
|
></path>
|
|
1129
1144
|
<path
|
|
1130
1145
|
d="M836.532 699.634a.833.833 0 0 0 .644-.333l6.803-9.07a.831.831 0 1 0-1.33-.998l-6.172 8.23-3.107-3.728a.83.83 0 1 0-1.277 1.064l3.78 4.535c.157.19.391.3.638.3h.021m.003.2h-.024c-.307 0-.596-.136-.793-.372l-3.779-4.535a1.025 1.025 0 0 1-.235-.754 1.03 1.03 0 0 1 1.82-.567l2.945 3.534 6.02-8.027a1.034 1.034 0 0 1 1.444-.207c.22.165.363.407.402.68.04.273-.03.544-.196.765l-6.803 9.07c-.19.254-.481.404-.799.412h-.002z"
|
|
1131
|
-
style=${`fill: ${
|
|
1146
|
+
style=${`fill: ${d}; stroke: none`}
|
|
1132
1147
|
transform="translate(-829.971 -686.318)"
|
|
1133
1148
|
></path>
|
|
1134
1149
|
</g>
|
|
1135
|
-
</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=
|
|
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=O.createRef(),o=O.createRef(),n=O.createRef(),r=O.createRef(),d=O.createRef(),m=O.createRef();let s=!1,i=9,h=0,a="",u="";const p=T=>{if(T&&T.includes(":")){const[K,ne]=T.split(":").map(Number);!isNaN(K)&&!isNaN(ne)&&(i=K,h=ne,a=T,u=T)}};p(e.props.modelValue);let v=e.props.modelValue,y=a;const R=new pt({anchor:()=>o.value??null,panel:()=>r.value??null,maxHeight:()=>210,container:()=>t.value??null,listWidth:()=>"160px",requestClose:()=>{s&&b(!1)}});e.onCleanup(()=>R.destroy());const $=()=>{d.value&&(d.value.scrollTop=i*24-72),m.value&&(m.value.scrollTop=h*24-72)},b=T=>{s!==T&&(s=T,e.requestUpdate(),T?(R.open(),queueMicrotask($)):R.close())},z=()=>{const T=`${i.toString().padStart(2,"0")}:${h.toString().padStart(2,"0")}`;a=T,u=T,e.emit("update:modelValue",T),e.requestUpdate()},E=T=>{i=T,z()},L=T=>{h=T,b(!1),z()},W=()=>{i=new Date().getHours(),h=new Date().getMinutes(),z(),b(!1)},N=T=>{let K=T.replace(/[^\d:]/g,"");return K.length>5&&(K=K.slice(0,5)),K},oe=T=>{b(!1);const K=T.target,ne=T.key;if(!/^\d$/.test(ne))return;const G=K.selectionStart||0,Z=a;if(K.selectionStart!==K.selectionEnd||G>=Z.length)return;T.preventDefault();const D=Z.replace(/:/g,""),S=(Z.slice(0,G).match(/:/g)||[]).length,U=G-S;let j=D.substring(0,U)+ne;U+1<D.length&&(j+=D.substring(U+1)),j.length>4&&(j=j.slice(0,4));let k=j,V=U+1;if(j.length>=2){const A=j.slice(0,2),_=j.slice(2);k=`${A}:${_}`,V>2&&(V=V+1)}a=k,u=k,e.requestUpdate(),queueMicrotask(()=>K.setSelectionRange(V,V))},ae=T=>{const K=T.target,ne=K.selectionStart||0,G=u;let Z=K.value;const D=Z.length<G.length;Z=N(Z);const S=Z.replace(/:/g,"");if(!D&&S.length>=2){const U=(Z.slice(0,ne).match(/:/g)||[]).length,j=ne-U,k=S.slice(0,2),V=S.slice(2);Z=k+(V?`:${V}`:":");let A=j;j>2&&(A=j+1),a=Z,u=Z,e.requestUpdate(),setTimeout(()=>K.setSelectionRange(A,A),0);return}a=Z,u=Z,e.requestUpdate()},te=()=>b(!0),Y=()=>{if(!a){z();return}let T=a;!T.includes(":")&&T.length>=2&&(T=`${T.slice(0,2)}:${T.slice(2)}`);const K=T.split(":");let ne=i,G=h;if(K[0]){const Z=parseInt(K[0],10);isNaN(Z)||(Z>=0&&Z<=23?ne=Z:Z>23?ne=23:ne=0)}if(K[1]){const Z=parseInt(K[1],10);isNaN(Z)||(Z>=0&&Z<=59?G=Z:Z>59?G=59:G=0)}i=ne,h=G,z()};return{render(){const T=e.props;if(T.modelValue!==v&&(v=T.modelValue,p(T.modelValue)),a!==y){y=a;const D=a;if(/^\d{2}:\d{2}$/.test(D)){const[S,U]=D.split(":").map(Number);!isNaN(S)&&!isNaN(U)&&S>=0&&S<=23&&U>=0&&U<=59&&D!==T.modelValue&&(i=S,h=U,queueMicrotask(()=>e.emit("update:modelValue",D)))}}const K=T.disabled?"var(--moz-color-text-muted)":s?"var(--moz-color-accent)":"var(--moz-color-text-subtle)",ne=ge(T,dn),G="__:__",Z=[];for(let D=0;D<G.length;D++)D<a.length?Z.push({char:a[D],isInput:!0}):Z.push({char:G[D],isInput:!1});return l.html`
|
|
1136
1151
|
<div
|
|
1137
|
-
class=${
|
|
1138
|
-
style=${
|
|
1139
|
-
${he(
|
|
1140
|
-
${
|
|
1152
|
+
class=${M("custom-time-picker",T.class,{"custom-time-picker--has-class":!!T.class})}
|
|
1153
|
+
style=${le.styleMap({width:T.width,...Pe(T.style)})}
|
|
1154
|
+
${he(ne)}
|
|
1155
|
+
${O.ref(t)}
|
|
1141
1156
|
>
|
|
1142
|
-
${
|
|
1157
|
+
${T.label?Be({disabled:T.disabled,required:T.required},T.label):l.nothing}
|
|
1143
1158
|
<div
|
|
1144
|
-
class=${
|
|
1145
|
-
${
|
|
1159
|
+
class=${M("time-input-wrapper",{"time-input-wrapper--disabled":T.disabled,"time-input-wrapper--open":s&&!T.disabled})}
|
|
1160
|
+
${O.ref(o)}
|
|
1146
1161
|
>
|
|
1147
1162
|
<div class="input-with-mask">
|
|
1148
1163
|
<input
|
|
1149
1164
|
type="text"
|
|
1150
1165
|
.value=${a}
|
|
1151
|
-
@keydown=${
|
|
1152
|
-
@input=${
|
|
1153
|
-
@blur=${
|
|
1154
|
-
@focus=${
|
|
1166
|
+
@keydown=${oe}
|
|
1167
|
+
@input=${ae}
|
|
1168
|
+
@blur=${Y}
|
|
1169
|
+
@focus=${te}
|
|
1155
1170
|
@click=${()=>b(!0)}
|
|
1156
|
-
class=${
|
|
1157
|
-
?disabled=${!!
|
|
1171
|
+
class=${M("time-input",{"time-input--disabled":T.disabled,"time-input--open":s})}
|
|
1172
|
+
?disabled=${!!T.disabled}
|
|
1158
1173
|
maxlength="5"
|
|
1159
|
-
${
|
|
1174
|
+
${O.ref(n)}
|
|
1160
1175
|
/>
|
|
1161
1176
|
<div class="time-mask">
|
|
1162
|
-
${
|
|
1163
|
-
class=${
|
|
1164
|
-
>${
|
|
1177
|
+
${Z.map(D=>l.html`<span
|
|
1178
|
+
class=${M({"mask-input":D.isInput&&!T.disabled,"mask-placeholder":!D.isInput,"mask-input--disabled":D.isInput&&!!T.disabled})}
|
|
1179
|
+
>${D.char}</span
|
|
1165
1180
|
>`)}
|
|
1166
1181
|
</div>
|
|
1167
1182
|
</div>
|
|
1168
1183
|
<div class="icon-container">
|
|
1169
|
-
<span @click=${()=>b(!0)}>${cn("14",
|
|
1184
|
+
<span @click=${()=>b(!0)}>${cn("14",K)}</span>
|
|
1170
1185
|
</div>
|
|
1171
1186
|
</div>
|
|
1172
1187
|
</div>
|
|
1173
|
-
`},renderPortal(){if(!
|
|
1188
|
+
`},renderPortal(){if(!s)return l.nothing;const T=e.props;return l.html`<div class="time-picker-dropdown" ${O.ref(r)}>
|
|
1174
1189
|
<div class="time-picker-content">
|
|
1175
1190
|
<div class="time-column">
|
|
1176
|
-
<div class="time-label">${
|
|
1191
|
+
<div class="time-label">${T.hourLabel??e.locale.TimePicker.hour}</div>
|
|
1177
1192
|
<div class="time-list">
|
|
1178
|
-
<div class="time-option-wrapper" ${
|
|
1179
|
-
${un.map(
|
|
1180
|
-
<div class="time-option-text">${
|
|
1181
|
-
${i===
|
|
1193
|
+
<div class="time-option-wrapper" ${O.ref(d)}>
|
|
1194
|
+
${un.map(K=>l.html`<div @click=${()=>E(K)} class="time-option">
|
|
1195
|
+
<div class="time-option-text">${K.toString().padStart(2,"0")}</div>
|
|
1196
|
+
${i===K?co("12","var(--moz-color-accent)",!1,"check-icon"):l.nothing}
|
|
1182
1197
|
</div>`)}
|
|
1183
1198
|
</div>
|
|
1184
1199
|
</div>
|
|
1185
1200
|
</div>
|
|
1186
1201
|
<div class="time-column">
|
|
1187
|
-
<div class="time-label">${
|
|
1202
|
+
<div class="time-label">${T.minuteLabel??e.locale.TimePicker.minute}</div>
|
|
1188
1203
|
<div class="time-list">
|
|
1189
|
-
<div class="time-option-wrapper" ${
|
|
1190
|
-
${pn.map(
|
|
1191
|
-
<div class="time-option-text">${
|
|
1192
|
-
${
|
|
1204
|
+
<div class="time-option-wrapper" ${O.ref(m)}>
|
|
1205
|
+
${pn.map(K=>l.html`<div @click=${()=>L(K)} class="time-option">
|
|
1206
|
+
<div class="time-option-text">${K.toString().padStart(2,"0")}</div>
|
|
1207
|
+
${h===K?co("12","var(--moz-color-accent)",!1,"check-icon"):l.nothing}
|
|
1193
1208
|
</div>`)}
|
|
1194
1209
|
</div>
|
|
1195
1210
|
</div>
|
|
1196
1211
|
</div>
|
|
1197
1212
|
</div>
|
|
1198
|
-
<div class="time-picker-footer" @click=${
|
|
1199
|
-
${
|
|
1213
|
+
<div class="time-picker-footer" @click=${W}>
|
|
1214
|
+
${T.currentTimeLabel??e.locale.TimePicker.currentTime}
|
|
1200
1215
|
</div>
|
|
1201
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 l.html`<svg class=${t} width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1202
1217
|
<path d="M9 3L3 9M3 3L9 9" stroke=${e} stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
1203
|
-
</svg>`}function po(e="12",t="var(--moz-color-text-subtle)",o=!1,n=""){const r=mn(e,12),
|
|
1218
|
+
</svg>`}function po(e="12",t="var(--moz-color-text-subtle)",o=!1,n=""){const r=mn(e,12),d=o?"var(--moz-color-text-muted)":t;return l.html`<svg class=${n} xmlns="http://www.w3.org/2000/svg" width=${r.width} height=${r.height} viewBox="0 0 12 12">
|
|
1204
1219
|
<g transform="translate(-0.005)">
|
|
1205
1220
|
<path
|
|
1206
1221
|
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"
|
|
1207
1222
|
transform="translate(-1.577 -1.504)"
|
|
1208
|
-
fill=${
|
|
1209
|
-
stroke=${
|
|
1223
|
+
fill=${d}
|
|
1224
|
+
stroke=${d}
|
|
1210
1225
|
stroke-width="0.6"
|
|
1211
1226
|
></path>
|
|
1212
1227
|
</g>
|
|
1213
|
-
</svg>`}const fn=new Set(["modelValue","itemsSource","label","placeholder","required","disabled","isReadOnly","width","rules","keyProp","displayProp","class","style"]);function gn(e,t){let o;return(...n)=>{o&&clearTimeout(o),o=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=
|
|
1228
|
+
</svg>`}const fn=new Set(["modelValue","itemsSource","label","placeholder","required","disabled","isReadOnly","width","rules","keyProp","displayProp","class","style"]);function gn(e,t){let o;return(...n)=>{o&&clearTimeout(o),o=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=O.createRef(),o=O.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,F)=>({...g,idx:F})).filter(g=>g.isSelected!==-1).sort((g,F)=>g.isSelected-F.isSelected),v=()=>p().map(g=>g.value),y=()=>!p().some(g=>!g.isValid),R=(g,F)=>{const X=a().limitItemLength;(!F||F&&X&&p().length<X||F&&!X)&&(F&&r[g].isSelected===-1||!F)&&(r[g].isSelected=F?Date.now():-1)},$=(g,F)=>{const X=r.findIndex(De=>De.value===g);if(X!==-1)return v().includes(g)?!1:(R(X,!0),!0);const J={key:Date.now(),isSelected:F?Date.now():-1,isValid:u(g),isEditing:!1,beforeValue:g,value:g};J.isValid&&a().requestCreate&&a().requestCreate(g);const ve=a().limitItemLength;return!F||!ve||F&&ve&&p().length<ve?(r.push(J),!0):!1},b=g=>{r.splice(g,1)},z=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=>{$(a().displayKey?g[a().displayKey]:g,!1)})};E();const L=()=>{const g=a().modelValue;if(g&&g.toString()!==v().toString()){const F=[...g];r.forEach((X,J)=>{const ve=F.indexOf(X.value);ve!==-1&&(X.key===-1&&R(J,!0),F.splice(ve,1))}),F.forEach(X=>$(X,!0))}};L();let W=a().modelValue,N=a().itemsSource,oe=v().toString();const ae=()=>{if(!t.value||!o.value)return;const g=t.value.getBoundingClientRect();let F=g.left;g.left+o.value.clientWidth>document.body.clientWidth&&(F-=o.value.clientWidth-g.width),h={minWidth:`${g.width}px`,width:`${g.width}px`,left:`${F}px`,top:`${g.top}px`},e.requestUpdate()},te=g=>{const F=g.target,X=()=>{s&&a().pushOnBlur&&$(s,!0)&&e.emit("modelChange",v()),s="",m=!1,d=!1};F.className&&Array.from(String(F.className).split(" ")).includes("tag-input-not-close")||X(),D(""),window.removeEventListener("mousedown",te),e.requestUpdate()},Y=()=>{d=!0,window.addEventListener("mousedown",te),e.requestUpdate(),queueMicrotask(ae)};e.onCleanup(()=>window.removeEventListener("mousedown",te));const T=g=>{setTimeout(()=>{const F=o.value,X=F==null?void 0:F.querySelector(`[data-edit-idx="${g}"] .moz-auto-input`);X==null||X.focus()},0)},K=g=>{r[g].isEditing=!0,e.requestUpdate(),T(g)},ne=()=>{m=!0,Y(),setTimeout(()=>n==null?void 0:n.focus(),0)},G=g=>{if(g.key==="Enter"&&s===""&&e.emit("onEnterEmpty",v()),(g.key==="Enter"||g.key==="Tab"&&a().pushOnBlur)&&s!==""&&($(s,!0)&&(e.emit("modelChange",v()),s=""),e.requestUpdate()),g.key==="Tab"&&(d=!1,m=!1,e.requestUpdate()),g.key==="Backspace"){const F=g.target,X=p();F.selectionStart===0&&X.length>0&&(R(X[X.length-1].idx,!1),e.requestUpdate())}},Z=g=>{a().dynamicSearch&&a().requestRead&&(i=!0,e.requestUpdate(),D(g.target.value))},D=gn(g=>{a().requestRead&&a().requestRead(g).then(()=>{i=!1,e.requestUpdate()})},300),S=(g,F)=>{g.key==="Backspace"&&r[F].value===""&&r.length>1&&(b(F),e.requestUpdate())},U=g=>{g.key==="Enter"&&(m=!0,e.requestUpdate(),setTimeout(()=>n==null?void 0:n.focus(),0))},j=g=>{r[g].value===""&&b(g),(r.length>1||r[g]&&r[g].value!=="")&&r[g]&&(r[g].isEditing=!1),r[g]&&z(g),e.requestUpdate()},k=g=>{R(g,!0),e.requestUpdate(),n==null||n.focus()},V=g=>{g.style.width="1px",g.style.width=`${g.scrollWidth}px`},A=g=>{const F=a().limitTextLength;return l.html`<input
|
|
1214
1229
|
class="moz-auto-input tag-input-common tag-input-add"
|
|
1215
1230
|
.value=${g.value}
|
|
1216
1231
|
style="width:1px"
|
|
1217
|
-
${
|
|
1218
|
-
@input=${
|
|
1219
|
-
@keydown=${
|
|
1220
|
-
@keyup=${
|
|
1221
|
-
@blur=${()=>{var
|
|
1222
|
-
/>`},
|
|
1232
|
+
${O.ref(X=>{var ve;const J=X??null;J&&V(J),(ve=g.captureEl)==null||ve.call(g,J)})}
|
|
1233
|
+
@input=${X=>{var ve;const J=X.target;F&&J.value.length<=F||!F||F===-1?g.setValue(J.value):J.value=g.value,V(J),(ve=g.onInputExtra)==null||ve.call(g,X)}}
|
|
1234
|
+
@keydown=${X=>{var J;return(J=g.onKeydown)==null?void 0:J.call(g,X)}}
|
|
1235
|
+
@keyup=${X=>{var J;return(J=g.onKeyup)==null?void 0:J.call(g,X)}}
|
|
1236
|
+
@blur=${()=>{var X;return(X=g.onBlur)==null?void 0:X.call(g)}}
|
|
1237
|
+
/>`},_=(g,F,X)=>l.html`<div class="tag-input-controller" style=${le.styleMap({display:g.isSelected!==-1?"":"none"})}>
|
|
1223
1238
|
<div
|
|
1224
|
-
class=${
|
|
1239
|
+
class=${M("tag-input-item",{invalid:!g.isValid})}
|
|
1225
1240
|
data-isValid=${String(g.isValid)}
|
|
1226
1241
|
data-edit-idx=${g.idx}
|
|
1227
|
-
@mousedown=${
|
|
1242
|
+
@mousedown=${J=>J.stopPropagation()}
|
|
1228
1243
|
>
|
|
1229
|
-
${
|
|
1244
|
+
${X&&a().simplify&&g.isEditing?A({value:g.value,setValue:J=>{r[g.idx].value=J,e.requestUpdate()},onKeydown:J=>S(J,g.idx),onKeyup:J=>U(J),onBlur:()=>j(g.idx)}):l.html`<span class="tag-input-preview tag-input-common">${g.value}</span>`}
|
|
1230
1245
|
<div class="tag-input-btn-wrapper">
|
|
1231
1246
|
${a().simplify&&!g.isEditing&&!a().disableUpdate?l.html`<span
|
|
1232
1247
|
class="tag-input-button cursor-pointer"
|
|
1233
1248
|
role="button"
|
|
1234
1249
|
tabindex="0"
|
|
1235
1250
|
aria-label=${e.locale.TagInput.editTag.replace("{label}",g.value??"")}
|
|
1236
|
-
@click=${()=>
|
|
1237
|
-
@keydown=${
|
|
1251
|
+
@click=${()=>K(g.idx)}
|
|
1252
|
+
@keydown=${J=>{J.key!=="Enter"&&J.key!==" "||(J.preventDefault(),K(g.idx))}}
|
|
1238
1253
|
>${po("10")}</span
|
|
1239
1254
|
>`:l.nothing}
|
|
1240
1255
|
<span
|
|
@@ -1243,71 +1258,71 @@
|
|
|
1243
1258
|
tabindex="0"
|
|
1244
1259
|
aria-label=${e.locale.TagInput.removeTag.replace("{label}",g.value??"")}
|
|
1245
1260
|
@click=${()=>{R(g.idx,!1),e.requestUpdate()}}
|
|
1246
|
-
@keydown=${
|
|
1261
|
+
@keydown=${J=>{J.key!=="Enter"&&J.key!==" "||(J.preventDefault(),R(g.idx,!1),e.requestUpdate())}}
|
|
1247
1262
|
>${uo()}</span
|
|
1248
1263
|
>
|
|
1249
1264
|
</div>
|
|
1250
1265
|
</div>
|
|
1251
|
-
</div>`;return{api:{isValid
|
|
1252
|
-
<div class=${
|
|
1253
|
-
${g.label?l.html`<label class=${
|
|
1266
|
+
</div>`;return{api:{isValid:y},render(){const g=e.props;g.modelValue!==W&&(W=g.modelValue,L()),g.itemsSource!==N&&(N=g.itemsSource,E());const F=v().toString();if(F!==oe){oe=F;const J=v();queueMicrotask(()=>e.emit("update:modelValue",J))}const X=ge(g,fn);return l.html`
|
|
1267
|
+
<div class=${M("moz-tag-input-wrapper",g.class)} ${he(X)}>
|
|
1268
|
+
${g.label?l.html`<label class=${M("tag-input-label",{required:g.required})}>${g.label}</label>`:l.nothing}
|
|
1254
1269
|
<div class="tag-input-grid">
|
|
1255
1270
|
<div
|
|
1256
1271
|
class="tag-input-not-close tag-input-row scrollbar-none"
|
|
1257
|
-
@mousedown=${
|
|
1258
|
-
@click=${
|
|
1259
|
-
${
|
|
1272
|
+
@mousedown=${J=>{J.stopPropagation(),ne()}}
|
|
1273
|
+
@click=${Y}
|
|
1274
|
+
${O.ref(t)}
|
|
1260
1275
|
>
|
|
1261
1276
|
${e.slot("left")}
|
|
1262
|
-
${p().map((
|
|
1263
|
-
${
|
|
1264
|
-
${g.limitItemLength&&
|
|
1265
|
-
${
|
|
1277
|
+
${p().map((J,ve)=>_(J,ve,!1))}
|
|
1278
|
+
${m?l.html`<span class="tag-input-preview tag-input-common" @click=${ne}>${s}</span>`:l.nothing}
|
|
1279
|
+
${g.limitItemLength&&m?l.html`<div class="tag-input-counter">${p().length} / ${g.limitItemLength}</div>`:l.nothing}
|
|
1280
|
+
${m?l.nothing:l.html`<span class="tag-input-add-to">${g.addButtonLabel?g.addButtonLabel:e.locale.TagInput.add} </span>`}
|
|
1266
1281
|
<div class="flex-1"></div>
|
|
1267
1282
|
${e.slot("right")}
|
|
1268
1283
|
</div>
|
|
1269
1284
|
</div>
|
|
1270
1285
|
</div>
|
|
1271
|
-
`},renderPortal(){if(!
|
|
1286
|
+
`},renderPortal(){if(!d)return l.nothing;const g=e.props;return l.html`<div class="absolute z-1501" style=${le.styleMap(h)}>
|
|
1272
1287
|
<div
|
|
1273
1288
|
class="tag-input-placeholder-float tag-input-not-close scrollbar-none shown"
|
|
1274
|
-
@mousedown=${
|
|
1275
|
-
${
|
|
1289
|
+
@mousedown=${F=>{F.stopPropagation(),ne()}}
|
|
1290
|
+
${O.ref(o)}
|
|
1276
1291
|
>
|
|
1277
|
-
${p().map((
|
|
1278
|
-
${
|
|
1292
|
+
${p().map((F,X)=>_(F,X,!0))}
|
|
1293
|
+
${m?A({value:s,setValue:F=>{s=F,e.requestUpdate()},onKeydown:G,onKeyup:()=>{},onBlur:()=>{},onInputExtra:Z,captureEl:F=>{n=F}}):l.nothing}
|
|
1279
1294
|
${i?l.html`<div class="tag-input-loading">
|
|
1280
1295
|
<div class="tag-input-loading-ball-1"></div>
|
|
1281
1296
|
<div class="tag-input-loading-ball-2"></div>
|
|
1282
1297
|
<div class="tag-input-loading-ball-3"></div>
|
|
1283
1298
|
</div>`:l.nothing}
|
|
1284
|
-
${g.limitItemLength&&
|
|
1299
|
+
${g.limitItemLength&&m?l.html`<div class="tag-input-counter" @click=${ne}>
|
|
1285
1300
|
${p().length} / ${g.limitItemLength}
|
|
1286
1301
|
</div>`:l.nothing}
|
|
1287
|
-
${
|
|
1302
|
+
${m?l.nothing:l.html`<span class="tag-input-add-to flex-1">${g.addButtonLabel?g.addButtonLabel:""} </span>`}
|
|
1288
1303
|
</div>
|
|
1289
|
-
${g.simplify?l.nothing:l.html`<div class="tag-input-dropdown-outer-wrapper" @mousedown=${
|
|
1290
|
-
<div class=${
|
|
1304
|
+
${g.simplify?l.nothing:l.html`<div class="tag-input-dropdown-outer-wrapper" @mousedown=${F=>F.stopPropagation()}>
|
|
1305
|
+
<div class=${M("tag-input-dropdown-wrapper",{"expand-top":g.isExpandTop})}>
|
|
1291
1306
|
<div class="tag-input-dropdown-inner-wrapper">
|
|
1292
1307
|
<div class="tag-input-dropdown-title"></div>
|
|
1293
|
-
${r.map((
|
|
1308
|
+
${r.map((F,X)=>l.html`<div class="dropdown-tag-input-item-wrapper tag-input-controller">
|
|
1294
1309
|
<div
|
|
1295
|
-
class=${
|
|
1296
|
-
data-isValid=${String(
|
|
1297
|
-
data-edit-idx=${
|
|
1298
|
-
@click=${()=>
|
|
1310
|
+
class=${M("tag-input-item tag-item-limit-width",{invalid:!F.isValid})}
|
|
1311
|
+
data-isValid=${String(F.isValid)}
|
|
1312
|
+
data-edit-idx=${X}
|
|
1313
|
+
@click=${()=>k(X)}
|
|
1299
1314
|
>
|
|
1300
|
-
${
|
|
1301
|
-
<span>${
|
|
1315
|
+
${F.isEditing?A({value:F.value,setValue:J=>{r[X].value=J,e.requestUpdate()},onKeydown:J=>S(J,X),onKeyup:J=>U(J),onBlur:()=>j(X)}):l.html`<span class="tag-input-preview tag-input-common">
|
|
1316
|
+
<span>${F.value}</span>
|
|
1302
1317
|
<div class="tag-input-btn-wrapper">
|
|
1303
|
-
${!
|
|
1318
|
+
${!F.isEditing&&!g.disableUpdate?l.html`<span
|
|
1304
1319
|
class="tag-input-button cursor-pointer"
|
|
1305
|
-
@click=${
|
|
1320
|
+
@click=${J=>{J.stopPropagation(),K(X)}}
|
|
1306
1321
|
>${po("10")}</span
|
|
1307
1322
|
>`:l.nothing}
|
|
1308
1323
|
${g.disableDelete?l.nothing:l.html`<span
|
|
1309
1324
|
class="tag-input-button cursor-pointer"
|
|
1310
|
-
@click=${
|
|
1325
|
+
@click=${J=>{J.stopPropagation(),b(X),e.requestUpdate()}}
|
|
1311
1326
|
>${uo()}</span
|
|
1312
1327
|
>`}
|
|
1313
1328
|
</div>
|
|
@@ -1317,152 +1332,152 @@
|
|
|
1317
1332
|
</div>
|
|
1318
1333
|
</div>
|
|
1319
1334
|
</div>`}
|
|
1320
|
-
</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 o;return(...n)=>{o&&clearTimeout(o),o=setTimeout(()=>e(...n),t)}}const
|
|
1321
|
-
class=${
|
|
1322
|
-
@mouseenter=${()=>
|
|
1323
|
-
@mouseleave=${()=>
|
|
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 o;return(...n)=>{o&&clearTimeout(o),o=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,o=null;const n=O.createRef();let r=!1,d=!1,m=!1,s=!1,i=null,h=!1,a=!1,u=!1,p=!1;const v=new Map,y=new Map,R=new Map,$=new Map,b=()=>{r&&d&&(i||e.props.itemSource)&&o&&!p&&(p=!0,e.emit("open",{target:o}))},z=S=>{const U=m!==S;m=S,e.requestUpdate(),U&&!S&&setTimeout(()=>{r=!1,s=!1,p=!1,e.emit("close",{target:o}),e.requestUpdate()},50)},E=S=>{const U=r!==S;r=S,e.requestUpdate(),U&&(setTimeout(()=>{d=r,e.requestUpdate(),b()},0),z(r),b())},L=S=>{if(e.props.disableCloseOnClickBackdrop)return;const U=["list-box-container"],j=S.composedPath();j.includes(o)||U.forEach(k=>{(!k||k&&!j.some(V=>{var A;return(A=V.classList)==null?void 0:A.contains(k)}))&&W()})},W=()=>{(e.props.beforeClose??(()=>{}))&&(z(!1),window.removeEventListener("mousedown",L),window.removeEventListener("resize",W))},N=(S,U)=>{S instanceof Function&&(i=S(U)),E(!0),setTimeout(()=>E(!0),60)},oe=()=>{r?W():N()},ae=()=>{const S=e.props.fixPosition;if(!S)return;const U=S.selector&&document.querySelector(S.selector)||t;if(!U||!o||!n.value)return;const j=U.getBoundingClientRect(),k=n.value.getBoundingClientRect();h=j.left+U.clientWidth<k.left+o.clientWidth,a=j.left+U.clientWidth<k.left+o.clientWidth*2,u=j.top+U.clientHeight<k.top+o.clientHeight,S.useTeleport?(o.style.left=`${k.left}px`,o.style.top=`${k.top}px`):(o.style.left=`${n.value.offsetLeft}px`,o.style.top=`${n.value.offsetTop}px`),e.requestUpdate()},te=S=>{s||(o&&t&&(e.props.fixPosition?ae():(h=t.clientWidth<S.clientX+o.clientWidth,a=t.clientWidth<S.clientX+o.clientWidth*2,u=t.clientHeight<S.clientY+o.clientHeight,o.style.left=`${S.clientX}px`,o.style.top=`${S.clientY}px`)),t&&(t.style.pointerEvents="none"),window.addEventListener("mousedown",L),window.addEventListener("resize",W),s=!0,e.requestUpdate())};e.onCleanup(()=>{window.removeEventListener("mousedown",L),window.removeEventListener("resize",W)});const Y=S=>{let U=$.get(S);return U||(U=Cn((j,k,V)=>{k.children&&(T(V,k),v.set(V,j),e.requestUpdate())},400),$.set(S,U)),U},T=(S,U)=>{if(!U.children||y.get(S))return;const j=R.get(S);if(!j)return;const k=j.getBoundingClientRect();y.set(S,j.clientHeight+k.top>document.body.offsetHeight)},K=(S,U)=>{S.function?(S.function(),W()):S.children&&(T(U,S),v.set(U,!0),e.requestUpdate())},ne=S=>typeof S.disabled=="function"?S.disabled():!!S.disabled,G=(S,U,j,k)=>{const V=v.get(k)??!1,A=y.get(k)??!1,_=Y(k);return l.html`<div
|
|
1336
|
+
class=${M({"context-menu-item-enable-hover":!("hover"in S)||S.hover,"context-menu-item-wrapper":!0,"context-menu-item-wrapper-selected":V,"context-menu-item-wrapper-disabled":ne(S)})}
|
|
1337
|
+
@mouseenter=${()=>_(!0,S,k)}
|
|
1338
|
+
@mouseleave=${()=>_(!1,S,k)}
|
|
1324
1339
|
>
|
|
1325
1340
|
<div
|
|
1326
|
-
class=${
|
|
1327
|
-
${
|
|
1341
|
+
class=${M({"context-menu-sub-items-wrapper-right":j&&!A,"context-menu-sub-items-wrapper-bottom":A&&!j,"context-menu-sub-items-wrapper-bottom-right":A&&j,"context-menu-sub-items-wrapper-hide":!S.children||!V,"context-menu-sub-items-wrapper":!A&&!j})}
|
|
1342
|
+
${O.ref(g=>{g&&R.set(k,g)})}
|
|
1328
1343
|
>
|
|
1329
|
-
${
|
|
1344
|
+
${S.children?D(S.children,U+1,j,k):l.nothing}
|
|
1330
1345
|
</div>
|
|
1331
|
-
${
|
|
1332
|
-
class=${`context-menu-item-${
|
|
1333
|
-
@mouseup=${()=>{var g;(!("hover"in
|
|
1346
|
+
${S.template?l.html`<div
|
|
1347
|
+
class=${`context-menu-item-${S.template}`}
|
|
1348
|
+
@mouseup=${()=>{var g;(!("hover"in S)||S.hover)&&((g=S.function)==null||g.call(S),W())}}
|
|
1334
1349
|
>
|
|
1335
|
-
${
|
|
1350
|
+
${Z(S)}
|
|
1336
1351
|
</div>`:l.html`<div
|
|
1337
1352
|
class="context-menu-item"
|
|
1338
1353
|
role="menuitem"
|
|
1339
1354
|
tabindex="-1"
|
|
1340
|
-
aria-disabled=${
|
|
1341
|
-
aria-haspopup=${
|
|
1342
|
-
@click=${()=>
|
|
1355
|
+
aria-disabled=${ne(S)?"true":"false"}
|
|
1356
|
+
aria-haspopup=${S.children?"menu":"false"}
|
|
1357
|
+
@click=${()=>K(S,k)}
|
|
1343
1358
|
>
|
|
1344
|
-
<div class="context-menu-item-left">${
|
|
1345
|
-
${
|
|
1359
|
+
<div class="context-menu-item-left">${S.text}</div>
|
|
1360
|
+
${S.children?l.html`<div class="context-menu-item-right"></div>`:l.nothing}
|
|
1346
1361
|
</div>`}
|
|
1347
|
-
</div>`},
|
|
1362
|
+
</div>`},Z=S=>{const U=S.template,j=U.includes("[col-padding]")?"col-padding":U.includes("[row-padding]")?"row-padding":U.includes("[padding]")?"padding":null,k=e.slots.has(U)?e.slot(U,{props:{...S}}):l.nothing;return j?l.html`<div class="context-menu-item-template" data-layout=${j}>${k}</div>`:l.html`${k}`},D=(S,U,j,k)=>{const V=U===0;return l.html`<div
|
|
1348
1363
|
role=${V?"menu":"group"}
|
|
1349
|
-
class=${
|
|
1364
|
+
class=${M("context-menu-content-wrapper",V?e.props.class:void 0)}
|
|
1350
1365
|
data-noPadding=${String(!!e.props.noPadding)}
|
|
1351
|
-
style=${
|
|
1366
|
+
style=${le.styleMap({minWidth:e.props.minWidth})}
|
|
1352
1367
|
${he(V?ge(e.props,wn):{})}
|
|
1353
1368
|
>
|
|
1354
|
-
${
|
|
1355
|
-
${
|
|
1369
|
+
${S.map((A,_)=>{const g=`${k}/${U}-${_}`;return l.html`<div class="context-menu-item-outer-wrapper" style=${le.styleMap({display:A!=null&&A.hidden?"none":""})}>
|
|
1370
|
+
${A.separator?l.html`<div class="context-menu-separator"></div>`:G(A,U,j,g)}
|
|
1356
1371
|
</div>`})}
|
|
1357
|
-
</div>`};return{api:{state:()=>r,open:
|
|
1372
|
+
</div>`};return{api:{state:()=>r,open:N,close:W,toggle:oe},render(){const S=e.props;return S.fixPosition?l.html`<div
|
|
1358
1373
|
class="context-menu-fixed-position-space"
|
|
1359
|
-
style=${
|
|
1360
|
-
${
|
|
1361
|
-
></div>`:l.nothing},renderPortal(){const
|
|
1374
|
+
style=${le.styleMap({left:typeof S.fixPosition.left=="string"?S.fixPosition.left:`${S.fixPosition.left}px`,top:typeof S.fixPosition.top=="string"?S.fixPosition.top:`${S.fixPosition.top}px`})}
|
|
1375
|
+
${O.ref(n)}
|
|
1376
|
+
></div>`:l.nothing},renderPortal(){const S=e.props,U=i||S.itemSource;if(!r||!U)return l.nothing;const j=S.transition,k=S.direction;return l.html`
|
|
1362
1377
|
<div
|
|
1363
1378
|
class="context-menu-wrapper"
|
|
1364
|
-
@mouseenter=${
|
|
1379
|
+
@mouseenter=${te}
|
|
1365
1380
|
@contextmenu=${V=>V.preventDefault()}
|
|
1366
|
-
${
|
|
1381
|
+
${O.ref(V=>{V&&(t=V)})}
|
|
1367
1382
|
></div>
|
|
1368
1383
|
<div
|
|
1369
|
-
class=${
|
|
1370
|
-
style=${
|
|
1384
|
+
class=${M({[`before-${j}`]:!0,[`after-${j}`]: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})}
|
|
1385
|
+
style=${le.styleMap({transitionDuration:`${bn}ms`,...S.toTopCenter?{transform:"translate(-50%, -100%)"}:{},...S.toBottomCenter?{transform:"translate(-50%, 0)"}:{}})}
|
|
1371
1386
|
@contextmenu=${V=>V.preventDefault()}
|
|
1372
|
-
${
|
|
1387
|
+
${O.ref(V=>{V&&(o=V,b())})}
|
|
1373
1388
|
>
|
|
1374
|
-
${
|
|
1389
|
+
${D(U,0,a,"root")}
|
|
1375
1390
|
</div>
|
|
1376
|
-
`}}}}),
|
|
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 o;return(...n)=>{o&&clearTimeout(o),o=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=O.createRef(),o=O.createRef(),n=O.createRef(),r=O.createRef(),d=O.createRef(),m=O.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 y={change:"",blur:"",save:""};let R=h();const $=()=>e.props.keyProp||"id",b=()=>e.props.displayProps??["text"],z=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(()=>{A==null||A.release(),A=null}),e.onCleanup(z._didMount());const E=c=>{s=c??null,c&&(z._willUpdate(),e.requestUpdate())},L=c=>{const x=h();return x==null?!1:e.props.useObjKeyProp?typeof x!="object"?!1:b().every(Q=>c[Q]===x[Q]):c[$()]===x},W=()=>h()==null||!e.props.itemsSource?null:e.props.itemsSource.find(c=>L(c))??null,N=c=>e.props.itemsSource?e.props.itemsSource.find(x=>x[$()]===c)??null:null,oe=()=>{const c=h();if(c==null)return null;const x=e.props.useObjKeyProp?W():N(c);return x?b().map(Q=>String(x[Q]??"")).join(e.props.separator):null},ae=()=>{const c=b(),x=e.props.columnWidths??[],Q=c.reduce((de,$e,be)=>de+(x[be]??mo),0),re=Math.max(0,c.length-1)*En;return Q+re+kn+fo},te=()=>{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,Q=c===b().length-1;return`${x+(Q?fo:0)}px`},T=()=>{if(!p)return e.props.itemsSource??[];const c=p.toLowerCase();return(e.props.itemsSource??[]).filter(x=>b().some(Q=>String(x[Q]??"").toLowerCase().indexOf(c)>-1))},K=c=>{if(!p)return[{part:c,highlight:!1}];const x=Ln(p),Q=new RegExp(`(${x})`,"gi");return c.split(Q).map(re=>({part:re,highlight:p.toLowerCase()===re.toLowerCase()}))},ne=()=>{const c=h();return e.props.useObjKeyProp?c==null?"":String(c):c},G=()=>y.save||y.blur||y.change,Z=()=>{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??[]]},D=async(c,x)=>{const Q=Z();if(Q.length<=0||e.props.disabled)return!0;y[x]="",e.requestUpdate();const re=Q.filter(de=>de.type===x);for(const de of re)if(!await de.validator(c))return y[x]=de.message,e.requestUpdate(),!1;return!0},S=async(c="save")=>G()!==""?!1:await D(ne(),c),U={validate:S,initValidator:()=>{y.change="",y.blur="",y.save="",e.requestUpdate()}};e.validator&&(e.validator.addValidator(U),e.onCleanup(()=>{var c;return(c=e.validator)==null?void 0:c.removeValidator(U)}));const j=new pt({anchor:()=>o.value??null,panel:()=>n.value??null,maxHeight:()=>ho,container:()=>t.value??null,useMinWidth:!0,listWidth:()=>e.props.listWidth,ignoreScrollTargets:c=>c===s,requestClose:()=>{u&&_(!1)}});e.onCleanup(()=>j.destroy());const k=c=>{c.key==="Escape"&&_(!1)},V=c=>{const x=!!e.props.columnHeaders&&e.props.columnHeaders.length>0,Q=ho-(e.props.useFilter?$n:0)-(x?Sn:0),de=vt*c-Q/2;return Math.max(0,de+vt)};let A=null;const _=c=>{u!==c&&(u=c,e.requestUpdate(),c?(A=ht(),j.open(),y.save="",window.addEventListener("keydown",k),queueMicrotask(()=>{var Q;if(h()!=null){const re=T().findIndex(de=>L(de));re>=0&&(v=re,s&&(s.scrollTop=V(re)),e.requestUpdate())}m.value?m.value.focus():(Q=d.value)==null||Q.focus()})):(A==null||A.release(),A=null,j.close(),e.emit("close"),D(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||(_(!u),(c=d.value)==null||c.focus())},F=c=>{a(e.props.useObjKeyProp?{...c}:c[$()]),_(!1)},X=()=>{queueMicrotask(()=>z.scrollToIndex(v,{align:"auto"}))},J=c=>{c.preventDefault();const x=T().length-1;x<0||(v=v>=x?0:v+1,e.requestUpdate(),X())},ve=c=>{c.preventDefault();const x=T().length-1;x<0||(v=v<=0?x:v-1,e.requestUpdate(),X())},De=c=>{c.preventDefault();const x=T();v>=0&&v<x.length&&F(x[v])},_e=c=>{c.key==="ArrowDown"?J(c):c.key==="ArrowUp"?ve(c):c.key==="Enter"&&De(c)},He=xn(c=>{p=c.target.value;const x=T().length;v=x>0?0:-1,e.requestUpdate(),queueMicrotask(()=>{z.setOptions({...z.options,count:x}),z.measure(),s&&(s.scrollTop=0,z.scrollToIndex(0),z.measure())})},300);return{api:{validate:S},render(){const c=e.props,x=h();if(x!==R){R=x;const $e=x;queueMicrotask(()=>{D(ne(),"change");let be=null;c.useObjKeyProp?be=W():$e!=null&&(be=N($e)),e.emit("change",$e,be)})}const Q=ge(c,Pn),{aria:re,dom:de}=ut(Q);return l.html`
|
|
1377
1392
|
<div
|
|
1378
|
-
class=${
|
|
1379
|
-
style=${
|
|
1380
|
-
${
|
|
1393
|
+
class=${M("moz-table-select",{"is-invalid":G()!=="","is-open":u,disabled:!!c.disabled})}
|
|
1394
|
+
style=${le.styleMap(Pe(c.style))}
|
|
1395
|
+
${O.ref(t)}
|
|
1381
1396
|
>
|
|
1382
1397
|
<div class="input-wrapper">
|
|
1383
|
-
${
|
|
1398
|
+
${c.label?Be({disabled:c.disabled,required:c.required},c.label):l.nothing}
|
|
1384
1399
|
<div
|
|
1385
1400
|
class="moz-input-container select-input-container"
|
|
1386
|
-
style=${
|
|
1401
|
+
style=${le.styleMap({width:te()})}
|
|
1387
1402
|
@click=${g}
|
|
1388
|
-
${
|
|
1403
|
+
${O.ref(o)}
|
|
1389
1404
|
>
|
|
1390
1405
|
<input
|
|
1391
|
-
${he(
|
|
1392
|
-
.value=${
|
|
1406
|
+
${he(de)}
|
|
1407
|
+
.value=${oe()??""}
|
|
1393
1408
|
autocomplete="off"
|
|
1394
|
-
?disabled=${!!
|
|
1409
|
+
?disabled=${!!c.disabled}
|
|
1395
1410
|
readonly
|
|
1396
1411
|
tabindex="-1"
|
|
1397
|
-
class=${
|
|
1412
|
+
class=${M("select-display-input",{"select-display-input--disabled":c.disabled})}
|
|
1398
1413
|
/>
|
|
1399
1414
|
<button
|
|
1400
1415
|
type="button"
|
|
1401
1416
|
class="icon-container"
|
|
1402
|
-
${he(
|
|
1417
|
+
${he(re)}
|
|
1403
1418
|
role="combobox"
|
|
1404
1419
|
aria-haspopup="listbox"
|
|
1405
1420
|
aria-expanded=${u?"true":"false"}
|
|
1406
|
-
aria-label=${xe.ifDefined(
|
|
1407
|
-
?disabled=${!!
|
|
1408
|
-
${
|
|
1421
|
+
aria-label=${xe.ifDefined(re["aria-label"]??c.label)}
|
|
1422
|
+
?disabled=${!!c.disabled}
|
|
1423
|
+
${O.ref(d)}
|
|
1409
1424
|
>
|
|
1410
|
-
${u?eo("14","var(--moz-color-accent)"):Jt("14","var(--moz-color-text-subtle)",
|
|
1425
|
+
${u?eo("14","var(--moz-color-accent)"):Jt("14","var(--moz-color-text-subtle)",c.disabled)}
|
|
1411
1426
|
</button>
|
|
1412
1427
|
</div>
|
|
1413
1428
|
</div>
|
|
1414
|
-
${
|
|
1429
|
+
${G()!==""?l.html`<span class="moz-input-invalid-message">${G()}</span>`:l.nothing}
|
|
1415
1430
|
</div>
|
|
1416
|
-
`},renderPortal(){if(!u)return l.nothing;const
|
|
1417
|
-
class=${
|
|
1418
|
-
style=${
|
|
1431
|
+
`},renderPortal(){if(!u)return l.nothing;const c=e.props,x=b(),Q=T(),re=!!c.columnHeaders&&c.columnHeaders.length>0;z.options.count!==Q.length&&z.setOptions({...z.options,count:Q.length}),z._willUpdate();const de=z.getTotalSize(),$e=Tt(z.getVirtualItems(),Q.length,vt,s).map(C=>{if(C.index>=Q.length)return null;const q=Q[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 l.html`<div
|
|
1432
|
+
class=${M("table-list-box",{"no-label":!c.label},c.class)}
|
|
1433
|
+
style=${le.styleMap({width:be})}
|
|
1419
1434
|
@keydown=${_e}
|
|
1420
|
-
${
|
|
1435
|
+
${O.ref(n)}
|
|
1421
1436
|
>
|
|
1422
|
-
${
|
|
1437
|
+
${c.useFilter?l.html`<div class="filter-input">
|
|
1423
1438
|
<div class="search-icon">${to("12","var(--moz-color-text-subtle)")}</div>
|
|
1424
1439
|
<input
|
|
1425
|
-
${
|
|
1440
|
+
${O.ref(m)}
|
|
1426
1441
|
@mousedown=${C=>C.stopPropagation()}
|
|
1427
|
-
placeholder=${
|
|
1442
|
+
placeholder=${c.searchPlaceholder??e.locale.TableSelect.searchPlaceholder}
|
|
1428
1443
|
@input=${He}
|
|
1429
1444
|
class="filter-input__field"
|
|
1430
1445
|
/>
|
|
1431
1446
|
</div>`:l.nothing}
|
|
1432
|
-
${
|
|
1433
|
-
${x.map((C,
|
|
1447
|
+
${re?l.html`<div class="table-header">
|
|
1448
|
+
${x.map((C,q)=>l.html`<div
|
|
1434
1449
|
class="table-header-cell"
|
|
1435
|
-
style=${
|
|
1450
|
+
style=${le.styleMap({width:Y(q),minWidth:Y(q),maxWidth:Y(q)})}
|
|
1436
1451
|
>
|
|
1437
|
-
${(
|
|
1452
|
+
${(c.columnHeaders??[])[q]??""}
|
|
1438
1453
|
</div>`)}
|
|
1439
1454
|
</div>`:l.nothing}
|
|
1440
1455
|
<div
|
|
1441
|
-
class=${
|
|
1442
|
-
${
|
|
1456
|
+
class=${M("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})}
|
|
1457
|
+
${O.ref(E)}
|
|
1443
1458
|
>
|
|
1444
|
-
<div class="inner-container" style=${
|
|
1445
|
-
${$e.map(({index:C,value:
|
|
1459
|
+
<div class="inner-container" style=${le.styleMap({height:`${de}px`})} ${O.ref(r)}>
|
|
1460
|
+
${$e.map(({index:C,value:q,start:Ce})=>{const Se=L(q);return l.html`<div
|
|
1446
1461
|
data-index=${C}
|
|
1447
|
-
${
|
|
1448
|
-
style=${
|
|
1449
|
-
class=${
|
|
1450
|
-
@click=${()=>
|
|
1462
|
+
${O.ref(ke=>{ke&&z.measureElement(ke)})}
|
|
1463
|
+
style=${le.styleMap({transform:`translateY(${Ce}px)`})}
|
|
1464
|
+
class=${M("virtual-row table-row",{"row-selected":Se,"row-focused":C===v})}
|
|
1465
|
+
@click=${()=>F(q)}
|
|
1451
1466
|
@mouseenter=${()=>{v=C,e.requestUpdate()}}
|
|
1452
1467
|
tabindex="0"
|
|
1453
1468
|
>
|
|
1454
1469
|
${x.map((ke,Te)=>l.html`<div
|
|
1455
1470
|
class="table-cell"
|
|
1456
|
-
style=${
|
|
1457
|
-
title=${String(
|
|
1471
|
+
style=${le.styleMap({width:Y(Te),minWidth:Y(Te),maxWidth:Y(Te)})}
|
|
1472
|
+
title=${String(q[ke]??"")}
|
|
1458
1473
|
>
|
|
1459
|
-
${
|
|
1474
|
+
${K(String(q[ke]??"")).map(Ae=>l.html`<span class=${M({highlight:Ae.highlight})}>${Ae.part}</span>`)}
|
|
1460
1475
|
</div>`)}
|
|
1461
1476
|
${Se?Qt("12","var(--moz-color-accent)",!1,"icon-check"):l.nothing}
|
|
1462
1477
|
</div>`})}
|
|
1463
1478
|
</div>
|
|
1464
|
-
${!
|
|
1465
|
-
${e.slots.has("empty")?e.slot("empty"):
|
|
1479
|
+
${!Q||Q.length<=0?l.html`<div class="empty-row table-row">
|
|
1480
|
+
${e.slots.has("empty")?e.slot("empty"):c.emptyText??e.locale.TableSelect.emptyText}
|
|
1466
1481
|
</div>`:l.nothing}
|
|
1467
1482
|
</div>
|
|
1468
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 l.html`<svg xmlns="http://www.w3.org/2000/svg" width=${t} height=${t} viewBox="0 0 12 12" fill="none">
|
|
@@ -1495,46 +1510,46 @@
|
|
|
1495
1510
|
<path d="M3.8501 2.35718H11.1358" stroke=${e} stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
1496
1511
|
<path d="M3.8501 6H11.1358" stroke=${e} stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
1497
1512
|
<path d="M3.8501 9.64282H11.1358" stroke=${e} stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
1498
|
-
</svg>`}const Ft={keyProp:"code",displayProp:"name",categoryLv1ID:"categoryLv1ID",categoryLv1Label:"categoryLv1Label",categoryLv2ID:"categoryLv2ID",categoryLv2Label:"categoryLv2Label",description:"description"};function Rn(e,t){const o=s=>t.displayProp&&s[t.displayProp]?s[t.displayProp]:s[t.keyProp],n=s=>t.categoryLv1Label&&s[t.categoryLv1Label]?s[t.categoryLv1Label]:t.categoryLv1ID?s[t.categoryLv1ID]:"",r=s=>t.categoryLv2Label&&s[t.categoryLv2Label]?s[t.categoryLv2Label]:t.categoryLv2ID?s[t.categoryLv2ID]:"";return e.map(s=>({code:s[t.keyProp],name:o(s),categoryLv1ID:t.categoryLv1ID&&s[t.categoryLv1ID]||"",categoryLv1Label:n(s),categoryLv2ID:t.categoryLv2ID&&s[t.categoryLv2ID]||"",categoryLv2Label:r(s),description:t.description&&s[t.description]||""}))}function wt(e,t){let o=e.get(t);return o||(o=[],e.set(t,o)),o}function An(e){const t=new Map([["depth0",[]],["depth1",[]],["depth2",[]]]),o=new Map,n=new Map;e.forEach(h=>{const c=h.categoryLv1ID;if(!o.get(c)){const i={code:c,name:h.categoryLv1Label??c};o.set(c,i),wt(t,"depth0").push(i)}if(!h.categoryLv2ID||h.categoryLv2ID.trim()==="")wt(t,"depth1").push({...h,parent:h.categoryLv1ID});else{const i=`${h.categoryLv1ID}-${h.categoryLv2ID}`;if(!n.get(i)){const m={code:h.categoryLv2ID,name:h.categoryLv2Label??h.categoryLv2ID,parent:h.categoryLv1ID,isSubCategory:!0};n.set(i,m),wt(t,"depth1").push(m)}wt(t,"depth2").push({...h,parent:h.categoryLv2ID})}});function r(h,c,i,m){const a=`depth${c}`,u=`depth${c+1}`,p=i.get(u),v={...h,depth:c};if(c!==0&&(v.isHidden=!1),p&&p.length>0){const $=m[a],R=m[u],y=p.filter(M=>M[R]===(h.isSubCategory?h.code:h[$]));v.isExpanded=!0;const b=[v];return y.forEach(M=>{b.push(...r(M,c+1,i,m))}),b}return[v]}const s={depth0:"code",depth1:"parent",depth2:"parent"};return(t.get("depth0")??[]).flatMap(h=>r(h,0,t,s))}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 Rt(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 yt(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(s=>s.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(s=>s.parent===o.code).forEach(s=>{Ke(n,s.depth)||rl(e,t,s,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(s=>s.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(s=>s.parent===o.code).forEach(s=>{Ke(n,s.depth)||al(e,t,s,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=H.createRef(),o=H.createRef(),n=H.createRef(),r=H.createRef(),s=H.createRef();let h=null;const c=(e.props.treeLevels??1)-1,i=c,m=()=>!!e.props.useMultiSelect,a=()=>e.props.disabledProp||"disabled",u=()=>e.props.treeProps??Ft;let p=e.props.modelValue??(m()?[]:"");const v=()=>e.controlled("modelValue")?e.props.modelValue??[]:p,$=()=>{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 y=!1,b="",M=!1,S=!1,L=!1,X={},j=[];const re={change:"",blur:"",save:""},de=new Set,ee=new Set,W={categoryLv1Set:de,categoryLv2Set:ee},z=(()=>{try{const w=getComputedStyle(document.documentElement).getPropertyValue("--size-input-dropdown-item-height");return w?+w.trim().replace("px",""):24}catch{return 24}})();let G=z;const le=()=>e.slots.has("list-item");let se=[],J=[],O=e.props.itemsSource;const k=()=>{se=Rn(e.props.itemsSource??[],u()),J=An(se)};k();const _=()=>{const w=new Map;return se.forEach(E=>w.set(E.code,E)),w},Z=w=>w.name??"",P=w=>new Set($()).has(w.code),V=w=>j.some(E=>rt(E.item,w)),D=()=>new Set($()),U=()=>{let w=[];if(!b)w=J;else{const E=[],B=new Set,ae=ie=>`depth${ie.depth}_${ie.code}`;for(const ie of J)if(ie.depth!==i){for(;E.length&&E[E.length-1].depth>=ie.depth;)E.pop();E.push(ie)}else if(Z(ie).toLowerCase().indexOf(b.toLowerCase())>-1){for(const me of E){const ze=ae(me);B.has(ze)||(w.push(me),B.add(ze))}const pe=ae(ie);B.has(pe)||(w.push(ie),B.add(pe))}}if(L){const E=new Set,B=_(),ae=D();w.filter(pe=>{if(ve(pe,ae))return!0;if(m()&&!Ke(c,pe.depth)){const me=St(J,pe);if(me.length>0&&me.some(ze=>ae.has(ze.code)))return!0}return!1}).forEach(pe=>{let me=pe;for(;me&&(E.add(me.code),!!me.parent);)me=B.get(me.parent)}),w=w.filter(pe=>E.has(pe.code))}return w},g=()=>U().filter(w=>!(w.categoryLv1ID||w.categoryLv2ID)),I=()=>{const w=g();return U().filter(E=>!w.includes(E))},N=()=>new Set(I().map(w=>w.code)),Y=()=>qn(I()),ve=(w,E)=>m()?Ke(i,w.depth)?E.has(w.code):de.has(w.code)||ee.has(w.code):v()===w.code,De=w=>{if(Ke(c,w.depth))return!0;const E=St(U(),w);return E.length===0?!0:go(Ct(E),D())},_e=()=>{const w=$().length,E=g().length;if(w<E||w===0||E===0)return!1;for(const B of Y())if(!D().has(B))return!1;return!0},He=()=>{const w=Y(),E=D();return!w.size||!E.size||E.size<w.size?!1:Array.from(w).every(B=>E.has(B))},d=()=>m()?!!e.props.useSelectAll:!1,x=()=>{const w=v(),E=_();if(typeof w=="string")return E.has(w)?E.get(w).name:w;const B=Array.isArray(w)?w:[],ae=B.filter(ie=>E.has(ie)).map(ie=>E.get(ie).name);return B.length?m()&&ae.length>1?e.props.headerFormat.replace(/\{count(:.*?)?}/g,`${ae.length.toLocaleString()}`):ae.join(", ")||"":""},K=()=>re.save||re.blur||re.change,ne=()=>{const w=[];return e.props.required&&w.push({message:e.locale.TreeSelect.required.replace("{label}",e.props.label||""),type:"save",validator:E=>!!E.length}),[...w,...e.props.rules??[]]},ce=async(w,E)=>{const B=ne();if(B.length<=0)return;if(e.props.disabled)return!0;re[E]="",e.requestUpdate();const ae=B.filter(ie=>ie.type===E);for(const ie of ae)if(!await ie.validator(w))return re[E]=ie.message,e.requestUpdate(),!1;return!0},$e=async(w="save")=>K()!==""?!1:await ce($(),w)??!0,ye={validate:$e,initValidator:()=>{re.change="",re.blur="",re.save="",e.requestUpdate()}};e.validator&&(e.validator.addValidator(ye),e.onCleanup(()=>{We==null||We.release(),We=null}),e.onCleanup(()=>{var w;return(w=e.validator)==null?void 0:w.removeValidator(ye)}));const C=(w,E)=>w.filter(B=>P(B)!==E).map(B=>B.code),A=w=>{const E=Array.from(new Set(w));rt($(),E)||(R(E),e.emit("change",E,E.filter(Boolean)),ce(E,"change"),Ce(E))},Ce=w=>{w.length===se.length?g().forEach(E=>dt(W,E.depth,E.code)):w.forEach(E=>{const B=I().find(ae=>ae.code===E);B&&In(W,B.categoryLv1ID??"",B.categoryLv2ID??"")})},Se=(w,E,B)=>{if(B.shiftKey&&j.length>0){const ae=j[0],ie=Math.min(ae.index,E),pe=Math.max(ae.index,E);j=U().slice(ie,pe+1).map((me,ze)=>({item:me,index:ie+ze}))}else B.ctrlKey?j.push({item:w,index:E}):j=[{item:w,index:E}]},ke=(w,E)=>{if(!Ke(c,w.depth)){const{childDepthList:B}=Rt(U(),w);if(E){const ae=Ct(B);R($().filter(ie=>!ae.has(ie))),wo(W,U(),w,i)}else{const ae=B.map(ie=>ie.code);R([...$(),...ae])}}},Te=(w,E)=>{const ae=j.map(me=>me.item).filter(me=>me.depth===i),ie=C(ae,w);let pe=[];if(E.depth!==c){const{childDepthList:me}=Rt(U(),E),ze=Ct(me);pe=$().filter(Oe=>!ze.has(Oe))}else pe=$();w?E.depth===c?pe=[...pe,...ie]:vo(W,U(),E,i):(yt(W),pe=pe.filter(me=>!ie.some(ze=>me===ze))),A(pe)},Re=(w,E,B,ae)=>{const ie=j.some(pe=>pe.item.code===w.code);(j.length<=1||!ie)&&Se(w,E,{shiftKey:!1,ctrlKey:!1}),Te(!ae,w),ke(w,ae),e.requestUpdate()},Ne=(w,E,B,ae)=>{w[a()]!==!0&&(!B.ctrlKey&&!B.shiftKey&&j.length<=1&&Re(w,E,B,ae),Se(w,E,B),e.requestUpdate())},Qe=(w,E,B)=>{if(w[a()]===!0)return;let ae=[],ie=!1;const pe=w.code;if(Ke(c,w.depth))ie=$().length===1&&$()[0]===pe,ie||(ae=[pe]),yt(W);else{const{childDepthList:me}=Rt(U(),w),ze=Ct(me);ie=go(ze,D())&&ze.size===D().size,ie?wo(W,U(),w,i):(ae=[],yt(W),vo(W,U(),w,i))}A(ae),ke(w,ie),Se(w,E,B),e.requestUpdate()},ot=w=>{R(w),et(!1)},Je=(w,E)=>{U().filter(ae=>ae.parent===w).forEach(ae=>{if(ae.isHidden=E,ae.depth===i)return;const pe=!E&&!ae.isExpanded?!0:E;Je(ae.code,pe)})},Ze=(w,E)=>{E.stopPropagation(),w.isExpanded=!w.isExpanded,Je(w.code,!w.isExpanded),queueMicrotask(()=>Ae.measure()),e.requestUpdate()},f=w=>{J.forEach(E=>{E.isExpanded=w,E.depth>0?E.isHidden=!w:E.isHidden=!1}),queueMicrotask(()=>Ae.measure()),e.requestUpdate()},F=w=>{w.stopPropagation(),N().size===D().size&&[...N()].every(B=>D().has(B))?(g().forEach(B=>xt(W,B.depth,B.code)),A([])):(yt(W),g().forEach(B=>dt(W,B.depth,B.code)),A([...N()]))},q=w=>{if(w.stopPropagation(),He()){const E=Y();A($().filter(B=>!E.has(B))),g().forEach(B=>xt(W,B.depth,B.code))}else{const E=new Set([...$(),...N()]);A(Array.from(E)),g().forEach(B=>dt(W,B.depth,B.code))}},Q=w=>{M=w.target.scrollTop>0,e.requestUpdate()},oe=()=>{const w=o.value;if(!w)return;const E=w.getBoundingClientRect();let B=`${E.width}px`;e.props.listBoxWidth&&(B=typeof e.props.listBoxWidth=="number"?`${e.props.listBoxWidth}px`:e.props.listBoxWidth),X={width:String(B),left:`${E.left}px`,top:`${E.top+(S?0:E.height)}px`},e.requestUpdate()},ue=(w,E,B=10)=>{const ae=window.innerHeight||document.documentElement.clientHeight,ie=window.innerWidth||document.documentElement.clientWidth,pe=w.getBoundingClientRect(),me=E.getBoundingClientRect(),ze=pe.bottom+me.height+B>ae;if(!ze)return!1;const Oe=pe.top-me.height-B<0,qe=pe.right+me.width+B>ie,Ue=pe.left-me.width-B<0;return ze&&!Oe||qe&&!Ue},fe=w=>{w.target!==h&&et(!1)},be=w=>{var E,B;!((E=t.value)!=null&&E.contains(w.target))&&!((B=n.value)!=null&&B.contains(w.target))&&(et(!1),document.removeEventListener("click",be,{capture:!0}))},Me=w=>{var B;`${w.ctrlKey?"ctrl+":""}${w.altKey?"alt+":""}${w.key.toLowerCase()}`==="escape"&&(et(!1),(B=r.value)==null||B.focus())};e.onCleanup(()=>{document.body.removeEventListener("scroll",fe,{capture:!0}),document.removeEventListener("click",be,{capture:!0}),window.removeEventListener("keydown",Me)});let We=null;const et=w=>{y!==w&&(y=w,e.requestUpdate(),w?(We=ht(),document.body.addEventListener("scroll",fe,{capture:!0}),document.addEventListener("click",be,{capture:!0}),re.save="",window.addEventListener("keydown",Me),oe(),queueMicrotask(()=>{var E;o.value&&h&&(S=ue(o.value,h)),oe(),s.value?s.value.focus():(E=r.value)==null||E.focus()})):(We==null||We.release(),We=null,document.body.removeEventListener("scroll",fe,{capture:!0}),document.removeEventListener("click",be,{capture:!0}),ce($(),"blur"),window.removeEventListener("keydown",Me),b="",e.emit("close")))},it=()=>{e.props.disabled||et(!y)};let lt;const zt=w=>{const E=w.target.value;lt&&clearTimeout(lt),lt=setTimeout(()=>{b=E,e.requestUpdate(),queueMicrotask(()=>{Ae.setOptions({...Ae.options,count:U().length}),Ae.measure()})},300)},Ge=w=>{L=w,e.requestUpdate(),queueMicrotask(()=>{Ae.setOptions({...Ae.options,count:U().length}),Ae.measure()})},Ae=new Fe.Virtualizer({count:0,getScrollElement:()=>h,estimateSize:w=>{const E=U()[w];return E!=null&&E.isHidden?0:le()&&E&&Ke(c,E.depth)?G:z},measureElement:w=>w.getBoundingClientRect().height,overscan:3,observeElementRect:Fe.observeElementRect,observeElementOffset:Fe.observeElementOffset,scrollToFn:Fe.elementScroll,onChange:()=>e.requestUpdate()});e.onCleanup(Ae._didMount());const bl=w=>{h=w??null,w&&(Ae._willUpdate(),e.requestUpdate())},$l=(w,E)=>{w&&E===c&&(G=w.getBoundingClientRect().height)},Sl=w=>w.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),so=(w,E)=>{if(!b||!Ke(c,E))return[{part:w,highlight:!1}];const B=new RegExp(`(${Sl(b)})`,"gi");return w.split(B).map(ae=>({part:ae,highlight:b.toLowerCase()===ae.toLowerCase()}))};let no=v();const kl=w=>{const{index:E,item:B,start:ae,isSelected:ie,isIndeterminate:pe,isDisabled:me,isFocused:ze}=w;if(B.isHidden)return l.nothing;const Oe=e.props,qe=B.depth,Ue=Ke(c,qe),je=m(),nt=Ie=>{qe!==c?Ze(B,Ie):ot(B.code)},ft=Ie=>{je?Ne(B,E,Ie,ie&&De(B)):nt(Ie)},Vt=()=>{Re(B,E,{},ie&&De(B))},Dt=Ue?"하나만":"그룹만";return l.html`<div
|
|
1499
|
-
data-index=${
|
|
1500
|
-
${
|
|
1501
|
-
style=${
|
|
1502
|
-
class=${
|
|
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
|
|
1514
|
+
data-index=${P}
|
|
1515
|
+
${O.ref(Ie=>{Ie&&(Re.measureElement(Ie),$l(Ie,qe))})}
|
|
1516
|
+
style=${le.styleMap({transform:`translateY(${ce}px)`})}
|
|
1517
|
+
class=${M("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})}
|
|
1503
1518
|
>
|
|
1504
1519
|
<div
|
|
1505
|
-
class=${
|
|
1506
|
-
style=${
|
|
1520
|
+
class=${M("depth-indicator",{"depth-indicator--parent":!Ue,"depth-indicator--last-depth":Ue,"depth-indicator--custom-item":ne()})}
|
|
1521
|
+
style=${le.styleMap({"--depth":String(qe),"--last-depth-item-height":String(K)})}
|
|
1507
1522
|
@click=${Ie=>{je||nt(Ie)}}
|
|
1508
1523
|
></div>
|
|
1509
1524
|
<div class="item-content" @click=${ft}>
|
|
1510
1525
|
${Ue?l.nothing:l.html`<button
|
|
1511
1526
|
type="button"
|
|
1512
1527
|
class="icon-container"
|
|
1513
|
-
aria-expanded=${
|
|
1514
|
-
aria-label=${
|
|
1515
|
-
@click=${Ie=>Ze(
|
|
1528
|
+
aria-expanded=${H.isExpanded?"true":"false"}
|
|
1529
|
+
aria-label=${H.isExpanded?e.locale.TreeSelect.collapse:e.locale.TreeSelect.expand}
|
|
1530
|
+
@click=${Ie=>Ze(H,Ie)}
|
|
1516
1531
|
>
|
|
1517
|
-
${e.slots.has("icon")?e.slot("icon"):
|
|
1532
|
+
${e.slots.has("icon")?e.slot("icon"):H.isExpanded?zn("var(--moz-color-accent)"):Mn("var(--moz-color-text-subtle)")}
|
|
1518
1533
|
</button>`}
|
|
1519
1534
|
${je?$t({checked:ie,disabled:me,indeterminate:pe,onChange:Vt}):l.nothing}
|
|
1520
1535
|
<div class="highlight-container">
|
|
1521
|
-
${
|
|
1536
|
+
${ne()&&Ue?e.slot("list-item",{text:{text:j(H),depth:qe},item:H,highlightText:so(j(H),qe)}):l.html`${so(j(H),qe).map(Ie=>l.html`<span class=${M({highlight:Ie.highlight})}>${Ie.part}</span>`)}`}
|
|
1522
1537
|
</div>
|
|
1523
1538
|
${!je&&ie&&Ue?Qt("12","var(--moz-color-accent)",!1,"icon-check"):l.nothing}
|
|
1524
|
-
${je&&Oe.useSpecificSelect&&!me?l.html`<button type="button" class="item-only item-only-btn" @click=${Ie=>Qe(
|
|
1539
|
+
${je&&Oe.useSpecificSelect&&!me?l.html`<button type="button" class="item-only item-only-btn" @click=${Ie=>Qe(H,P,Ie)}>
|
|
1525
1540
|
${Dt}
|
|
1526
1541
|
</button>`:l.nothing}
|
|
1527
1542
|
</div>
|
|
1528
|
-
</div>`};return{api:{validate:$e},render(){const w=e.props;w.itemsSource!==
|
|
1543
|
+
</div>`};return{api:{validate:$e},render(){const w=e.props;w.itemsSource!==D&&(D=w.itemsSource,S());const P=v();P!==no&&(no=P,typeof P!="string"&&Ce(y()));const H=typeof w.width=="number"?`${Le(w.width)}rem`:w.width,ce=e.slots.has("icon")?e.slot("icon",{isOpen:$}):$?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 l.html`
|
|
1529
1544
|
<div
|
|
1530
1545
|
${he(me)}
|
|
1531
|
-
class=${
|
|
1532
|
-
style=${
|
|
1533
|
-
${
|
|
1546
|
+
class=${M("moz-multi-select moz-tree-select",w.class,{"is-invalid":Q()!=="","is-open":$,disabled:!!w.disabled})}
|
|
1547
|
+
style=${le.styleMap({width:H})}
|
|
1548
|
+
${O.ref(t)}
|
|
1534
1549
|
>
|
|
1535
1550
|
<div class="input-wrapper">
|
|
1536
1551
|
${w.label?Be({},l.html`${w.label}${w.required?l.html`<span class="require-mark">*</span>`:l.nothing}`):l.nothing}
|
|
1537
|
-
<div class="moz-input-container" @click=${it} ${
|
|
1552
|
+
<div class="moz-input-container" @click=${it} ${O.ref(o)}>
|
|
1538
1553
|
<input .value=${x()} autocomplete="off" readonly tabindex="-1" />
|
|
1539
1554
|
<button
|
|
1540
1555
|
type="button"
|
|
@@ -1542,26 +1557,26 @@
|
|
|
1542
1557
|
${he(pe)}
|
|
1543
1558
|
role="combobox"
|
|
1544
1559
|
aria-haspopup="tree"
|
|
1545
|
-
aria-expanded=${
|
|
1560
|
+
aria-expanded=${$?"true":"false"}
|
|
1546
1561
|
aria-label=${xe.ifDefined(pe["aria-label"]??w.label)}
|
|
1547
1562
|
?disabled=${!!w.disabled}
|
|
1548
|
-
${
|
|
1563
|
+
${O.ref(r)}
|
|
1549
1564
|
>
|
|
1550
|
-
${
|
|
1565
|
+
${ce}
|
|
1551
1566
|
</button>
|
|
1552
1567
|
</div>
|
|
1553
1568
|
</div>
|
|
1554
|
-
${
|
|
1569
|
+
${Q()!==""?l.html`<span class="moz-input-invalid-message">${Q()}</span>`:l.nothing}
|
|
1555
1570
|
</div>
|
|
1556
|
-
`},renderPortal(){if(
|
|
1557
|
-
class=${
|
|
1558
|
-
style=${
|
|
1559
|
-
${
|
|
1571
|
+
`},renderPortal(){if(!$)return l.nothing;const w=e.props,P=_();Re.options.count!==P.length&&Re.setOptions({...Re.options,count:P.length}),Re._willUpdate();const H=Re.getTotalSize(),ce=A(),ie=Tt(Re.getVirtualItems(),P.length,T,m).map(Oe=>{if(Oe.index>=P.length)return null;const qe=P[Oe.index];if(!qe)return null;let Ue=ve(qe,ce),je=!1;if(h()&&!Ke(s,qe.depth)){const nt=St(Z,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:Oe.index,item:qe,start:Oe.start,isSelected:Ue,isIndeterminate:je,isDisabled:qe[a()]===!0,isFocused:V(qe)}}).filter(Oe=>Oe!==null),pe=b?e.locale.TreeSelect.selectFiltered:e.locale.TreeSelect.selectAll,me=v(),ze=Array.isArray(me)?me.length:me?1:0;return l.html`<div
|
|
1572
|
+
class=${M("list-box",{"no-label":!w.label,"show-top":E})}
|
|
1573
|
+
style=${le.styleMap(W)}
|
|
1574
|
+
${O.ref(n)}
|
|
1560
1575
|
>
|
|
1561
1576
|
<div class="filter-input-wrapper">
|
|
1562
1577
|
${w.useFilter?l.html`<div class="filter-input">
|
|
1563
1578
|
<div class="search-icon">${to("12","var(--moz-color-text-subtle)")}</div>
|
|
1564
|
-
<input placeholder=${e.locale.TreeSelect.search} @input=${zt} ${
|
|
1579
|
+
<input placeholder=${e.locale.TreeSelect.search} @input=${zt} ${O.ref(d)} />
|
|
1565
1580
|
</div>`:l.nothing}
|
|
1566
1581
|
<div class="tree-controls">
|
|
1567
1582
|
<span class="control-btn" @click=${()=>f(!0)}>${Vn("currentColor")}</span>
|
|
@@ -1569,65 +1584,65 @@
|
|
|
1569
1584
|
</div>
|
|
1570
1585
|
</div>
|
|
1571
1586
|
|
|
1572
|
-
${
|
|
1587
|
+
${c()&&G.length>0&&P.length>0?l.html`<div class=${M("list-box-item multi-select-item multi-select-all",{"is-scrolled":z})} @click=${I}>
|
|
1573
1588
|
<div class="select-all-content">
|
|
1574
1589
|
${$t({indeterminate:ze>0&&_e()===!1,checked:He()})}
|
|
1575
1590
|
<div><span title=${pe}>${pe}</span></div>
|
|
1576
1591
|
</div>
|
|
1577
|
-
${b&&
|
|
1592
|
+
${b&&P.length>0?l.html`<button type="button" class="item-only" @click=${B}>${e.locale.TreeSelect.specificResults}</button>`:l.nothing}
|
|
1578
1593
|
</div>`:l.nothing}
|
|
1579
1594
|
|
|
1580
|
-
<div class="list-box-container" @scroll=${
|
|
1581
|
-
<div class="inner-container" style=${
|
|
1595
|
+
<div class="list-box-container" @scroll=${ee} ${O.ref(yl)}>
|
|
1596
|
+
<div class="inner-container" style=${le.styleMap({height:`${H}px`})}>
|
|
1582
1597
|
${ie.map(Oe=>kl(Oe))}
|
|
1583
1598
|
</div>
|
|
1584
|
-
${
|
|
1599
|
+
${P.length<=0?l.html`<div class="list-box-item loading not-hover">
|
|
1585
1600
|
${e.slots.has("empty")?e.slot("empty"):e.locale.TreeSelect.noData}
|
|
1586
1601
|
</div>`:l.nothing}
|
|
1587
1602
|
</div>
|
|
1588
1603
|
|
|
1589
|
-
${
|
|
1604
|
+
${h()?l.html`<div class="list-footer">
|
|
1590
1605
|
<label class="footer-checkbox">
|
|
1591
1606
|
${$t({checked:L,onChange:Ge,class:"moz-checkbox"})}
|
|
1592
1607
|
<span>${e.locale.TreeSelect.showSelectedOnly}</span>
|
|
1593
1608
|
</label>
|
|
1594
1609
|
</div>`:l.nothing}
|
|
1595
|
-
</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},Hn=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,o=null;const n=[],r=[],
|
|
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},Hn=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,o=null;const n=[],r=[],d=[],m=[];let s=[],i=!1,h=0,a=0,u=-1,p=-1,v=-1,y=null,R=null,$=0;const b=()=>!!e.props.horizontal,z=()=>e.props.panes??[],E=()=>{s=z().map(D=>D.hidden?"0":D.size!=null?String(D.size):"1fr")};E();const L=D=>b()?D.clientHeight:D.clientWidth,W=()=>L(d[p]),N=()=>L(m[p]),oe=()=>L(d[v]),ae=()=>L(m[v]),te=D=>{if(!i)return;let S=b()?D.movementY:D.movementX;y=+(S>0),y!==R&&R!==null&&(p=u,v=u+1),R=y;const U=r[u].getBoundingClientRect(),j=b()?D.clientY-U.top+window.scrollY:D.clientX-U.left+window.scrollX;(y===0&&j>10||y===1&&j<-10)&&(S=S/(Math.abs(j)/10)),(y===0&&b()?D.clientY<U.top:D.clientX<U.left)&&($=0),(y===1&&b()?D.clientY>U.top:D.clientX>U.left)&&($=0);const k=_=>n[_][b()?"clientHeight":"clientWidth"];if(h=k(p)+S,a=k(v)+k(p)-h,!(h>W()&&h<N()||h<W()&&y===1||h>W()&&y===0)){if(h<W()){if(p-1<0&&y===0){$+=b()?D.movementY:D.movementX;return}p=p-1>=0?p-1:0}else if(h>N()){if(p-1<0){$+=b()?D.movementY:D.movementX;return}p=p-1>=0?p-1:0}}if(!(a>oe()&&a<ae()||a<oe()&&y===0||a>oe()&&y===1)){if(a<oe()){if(v+1>=s.length){$+=b()?D.movementY:D.movementX;return}v=v+1<s.length?v+1:s.length-1}else if(a>ae()){if(v+1>=s.length){$+=b()?D.movementY:D.movementX;return}v=v+1<s.length?v+1:s.length-1}}if(y===0&&$>0||y===1&&$<0||y===0&&a>ae()||y===1&&a<oe()||y===0&&h<W()||y===1&&h>N())return;const V=t[b()?"clientHeight":"clientWidth"],A=k(p)+S;s[p]=`clamp(${W()}px, ${A/V*100}%, ${N()}px)`,s[v]="1fr",e.requestUpdate(),queueMicrotask(()=>{const _=k(v);s[v]=`clamp(${oe()}px, ${_/V*100}%, ${ae()}px)`,e.requestUpdate()})},Y=()=>{u=-1,p=-1,v=-1,i=!1,$=0,document.removeEventListener("mousemove",te),document.removeEventListener("mouseup",Y),e.requestUpdate()},T=D=>{D.preventDefault(),i=!0,b()?D.clientY:D.clientX,document.addEventListener("mousemove",te),document.addEventListener("mouseup",Y),e.requestUpdate()},K=(D,S)=>{u=S,p=S,v=S+1,$=0,T(D)};let ne=null;const G=()=>{t&&o&&(o.style.width=`${t.clientWidth}px`,o.style.height=`${t.clientHeight}px`)};e.onCleanup(()=>{document.removeEventListener("mouseup",Y),document.removeEventListener("mousemove",te),ne==null||ne.disconnect()});let Z=e.props.panes;return{onMounted:()=>{E(),e.requestUpdate()},render(){const D=z();e.props.panes!==Z&&(Z=e.props.panes,queueMicrotask(()=>{E(),e.requestUpdate()}));const S=b()?"gridTemplateRows":"gridTemplateColumns",U=D.length-1,j=ge(e.props,Hn);return l.html`
|
|
1596
1611
|
<div
|
|
1597
|
-
${he(
|
|
1598
|
-
class=${
|
|
1599
|
-
style=${
|
|
1600
|
-
${
|
|
1612
|
+
${he(j)}
|
|
1613
|
+
class=${M("splitter",e.props.class)}
|
|
1614
|
+
style=${le.styleMap({display:"grid",[S]:s.join(" "),width:"100%",height:"100%",overflow:"hidden",cursor:i?b()?"row-resize":"col-resize":"unset"})}
|
|
1615
|
+
${O.ref(k=>{t=k??null,t&&o&&(G(),!ne&&typeof ResizeObserver<"u"&&(ne=new ResizeObserver(()=>G()),ne.observe(t)))})}
|
|
1601
1616
|
>
|
|
1602
|
-
${
|
|
1603
|
-
style=${
|
|
1604
|
-
${
|
|
1617
|
+
${D.map((k,V)=>{const A=V===U?"100%":s[V+1]!=="0"?"calc(100% - 10px) 10px":"100%";return l.html`<div
|
|
1618
|
+
style=${le.styleMap({display:"grid",[S]:A,overflow:"hidden"})}
|
|
1619
|
+
${O.ref(_=>{n[V]=_??null})}
|
|
1605
1620
|
>
|
|
1606
1621
|
<div style="width: 100%; height: 100%; overflow: hidden">${e.slot(`pane-${V}`)}</div>
|
|
1607
|
-
${V!==
|
|
1622
|
+
${V!==U&&s[V+1]!=="0"?l.html`<div
|
|
1608
1623
|
class=${b()?"resizer resizer-horizontal":"resizer resizer-vertical"}
|
|
1609
1624
|
role="separator"
|
|
1610
1625
|
aria-orientation=${b()?"horizontal":"vertical"}
|
|
1611
1626
|
aria-label=${e.locale.SplitPane.resizeHandle}
|
|
1612
1627
|
tabindex="0"
|
|
1613
|
-
@mousedown=${
|
|
1614
|
-
${
|
|
1628
|
+
@mousedown=${_=>K(_,V)}
|
|
1629
|
+
${O.ref(_=>{r[V]=_??null})}
|
|
1615
1630
|
></div>`:l.nothing}
|
|
1616
1631
|
</div>`})}
|
|
1617
1632
|
|
|
1618
1633
|
<div
|
|
1619
1634
|
style="pointer-events: none; position: fixed"
|
|
1620
|
-
${
|
|
1635
|
+
${O.ref(k=>{o=k??null,t&&o&&G()})}
|
|
1621
1636
|
>
|
|
1622
|
-
${
|
|
1637
|
+
${D.map((k,V)=>{const A=Co(k.minSize,"10px"),_=Co(k.maxSize,"100%");return l.html`<div
|
|
1623
1638
|
class="size-calculator min-size"
|
|
1624
|
-
style=${
|
|
1625
|
-
${
|
|
1639
|
+
style=${le.styleMap({width:A,height:A})}
|
|
1640
|
+
${O.ref(g=>{d[V]=g??null})}
|
|
1626
1641
|
></div>
|
|
1627
1642
|
<div
|
|
1628
1643
|
class="size-calculator max-size"
|
|
1629
|
-
style=${
|
|
1630
|
-
${
|
|
1644
|
+
style=${le.styleMap({width:_,height:_})}
|
|
1645
|
+
${O.ref(g=>{m[V]=g??null})}
|
|
1631
1646
|
></div>`})}
|
|
1632
1647
|
</div>
|
|
1633
1648
|
</div>
|
|
@@ -1690,32 +1705,32 @@
|
|
|
1690
1705
|
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"
|
|
1691
1706
|
fill=${e}
|
|
1692
1707
|
></path>
|
|
1693
|
-
</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 _n();case"IconPlus":return Nn();case"IconSearch":return Wn();case"IconPlay":return Kn();default:return l.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,o=!1;const n=()=>e.controlled("customQueryParamsPanel")?!!e.props.customQueryParamsPanel:o;let r=null,
|
|
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 _n();case"IconPlus":return Nn();case"IconSearch":return Wn();case"IconPlay":return Kn();default:return l.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,o=!1;const n=()=>e.controlled("customQueryParamsPanel")?!!e.props.customQueryParamsPanel:o;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;o=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")?l.nothing:l.html`<div style=${le.styleMap({display:n()?void 0:"none"})}>
|
|
1694
1709
|
${e.slot("custom-filter")}
|
|
1695
|
-
</div>`},render(){const p=e.props,v=e.slots.has("custom-filter")
|
|
1710
|
+
</div>`},render(){const p=e.props,v=e.slots.has("custom-filter"),y=e.slots.has("action"),R=p.actions??[],$=R.find(E=>E.loading===!0),b=R.map(E=>{const L=Yn(E),W=!!$&&E.action!==$.action||!!E.disabled;return{...E,icon:L,disabled:W}}),z=ge(p,Gn);return l.html`
|
|
1696
1711
|
<div
|
|
1697
|
-
class=${
|
|
1698
|
-
style=${
|
|
1699
|
-
${he(
|
|
1712
|
+
class=${M("moz-controller-root",p.class)}
|
|
1713
|
+
style=${le.styleMap(Pe(p.containerStyle))}
|
|
1714
|
+
${he(z)}
|
|
1700
1715
|
>
|
|
1701
|
-
<div class="moz-controller" style=${
|
|
1716
|
+
<div class="moz-controller" style=${le.styleMap(Pe(p.headerStyle))}>
|
|
1702
1717
|
${p.navigations?Kt({itemSource:p.navigations,showFavorite:!1,ariaLabel:e.locale.BreadCrumb.navigation}):l.nothing}
|
|
1703
1718
|
<div class="spacer"></div>
|
|
1704
1719
|
|
|
1705
1720
|
<div class="moz-controller-actions">
|
|
1706
1721
|
${e.slot("beforeFilter")}
|
|
1707
|
-
${p.showFilterButton&&!v?Pt({id:
|
|
1708
|
-
${p.showFilterButton&&v?Pt({id:
|
|
1722
|
+
${p.showFilterButton&&!v?Pt({id:m,model:t,label:"조회 조건",onChange:i}):l.nothing}
|
|
1723
|
+
${p.showFilterButton&&v?Pt({id:s,model:n(),label:"조회 조건",onChange:h}):l.nothing}
|
|
1709
1724
|
${p.showFilterButton?l.html`<div class="spacer between-buttons" style="margin: 0 6px"></div>`:l.nothing}
|
|
1710
1725
|
${e.slot("action")}
|
|
1711
|
-
${
|
|
1712
|
-
${b.map(
|
|
1726
|
+
${y&&b.length>0?l.html`<div class="spacer between-buttons"></div>`:l.nothing}
|
|
1727
|
+
${b.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}}))}
|
|
1713
1728
|
</div>
|
|
1714
1729
|
</div>
|
|
1715
1730
|
|
|
1716
1731
|
${t&&!v?l.html`<div
|
|
1717
1732
|
class="moz-horizontal-filter moz-controller-filter"
|
|
1718
|
-
style=${
|
|
1733
|
+
style=${le.styleMap(Pe(p.filterStyle))}
|
|
1719
1734
|
>
|
|
1720
1735
|
${e.slot("filter")}
|
|
1721
1736
|
</div>`:l.nothing}
|
|
@@ -1758,20 +1773,20 @@
|
|
|
1758
1773
|
<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">
|
|
1759
1774
|
<path d="M18 6 6 18M6 6l12 12" />
|
|
1760
1775
|
</svg>
|
|
1761
|
-
`,
|
|
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,o=!1,n=null,r=null,d=null,m=100;const s=()=>{let b=document.querySelector(".toast--top"),z=document.querySelector(".toast--bottom");b&&z||(b||(b=document.createElement("div"),b.className="toast--top moz-toast-body moz-toast-body--top",document.body.appendChild(b)),z||(z=document.createElement("div"),z.className="toast--bottom moz-toast-body moz-toast-body--bottom",document.body.appendChild(z)))},i=()=>{if(!e.props.queue)return!1;const b=document.querySelector(".toast--top"),z=document.querySelector(".toast--bottom");return!b||!z?!1:b.childElementCount>0||z.childElementCount>0},h=()=>{d&&clearInterval(d),d=null},a=()=>{n&&n.stop(),r&&clearTimeout(r),h(),t=!1,e.requestUpdate(),setTimeout(()=>{var b,z;(z=(b=e.props).onDismiss)==null||z.call(b),o=!0,e.requestUpdate()},e.props.exitDuration??150)},u=()=>{if(!e.props.inline&&i()){r=setTimeout(u,250);return}t=!0,e.requestUpdate();const b=e.props.duration;b&&(n=new pl(a,b),e.props.showProgress&&(d=setInterval(()=>{m=n?Math.max(0,Math.min(100,n.remaining()/b*100)):0,e.requestUpdate()},50)))},p=b=>{!e.props.pauseOnHover||!n||(b?n.pause():n.resume())},v=()=>{e.props.dismissible&&a()};e.props.inline||s(),e.onCleanup(()=>{n&&n.stop(),r&&clearTimeout(r),h()});const y=()=>{const b=e.props,z=b.duration??0;return l.html`
|
|
1762
1777
|
<div
|
|
1763
1778
|
data-testid="toast-container"
|
|
1764
|
-
${he(ge(b,
|
|
1779
|
+
${he(ge(b,bo))}
|
|
1765
1780
|
role=${b.type==="error"?"alert":"status"}
|
|
1766
1781
|
aria-live=${b.type==="error"?"assertive":"polite"}
|
|
1767
1782
|
aria-atomic="true"
|
|
1768
|
-
class=${
|
|
1783
|
+
class=${M("moz-toast","moz-toast-composed",yo(b.type),b.class)}
|
|
1769
1784
|
style=${t?l.nothing:"display: none;"}
|
|
1770
1785
|
@mouseenter=${()=>p(!0)}
|
|
1771
1786
|
@mouseleave=${()=>p(!1)}
|
|
1772
1787
|
>
|
|
1773
|
-
${b.showProgress&&
|
|
1774
|
-
<div class=${
|
|
1788
|
+
${b.showProgress&&z>0?l.html`<div class="moz-toast-progress" aria-hidden="true">
|
|
1789
|
+
<div class=${M("moz-toast-progress-bar",b.progressClass)} style=${`width: ${m}%`}></div>
|
|
1775
1790
|
</div>`:l.nothing}
|
|
1776
1791
|
${e.slots.has("icon")?l.html`<div class="moz-toast-icon">${e.slot("icon")}</div>`:l.nothing}
|
|
1777
1792
|
<div class="moz-toast-content">
|
|
@@ -1786,11 +1801,11 @@
|
|
|
1786
1801
|
`},R=()=>{const b=e.props;return l.html`
|
|
1787
1802
|
<div
|
|
1788
1803
|
data-testid="toast-container"
|
|
1789
|
-
${he(ge(b,
|
|
1804
|
+
${he(ge(b,bo))}
|
|
1790
1805
|
role=${b.type==="error"?"alert":"status"}
|
|
1791
1806
|
aria-live=${b.type==="error"?"assertive":"polite"}
|
|
1792
1807
|
aria-atomic="true"
|
|
1793
|
-
class=${
|
|
1808
|
+
class=${M("moz-toast",yo(b.type),or(b.position),b.class)}
|
|
1794
1809
|
style=${t?l.nothing:"display: none;"}
|
|
1795
1810
|
@mouseenter=${()=>p(!0)}
|
|
1796
1811
|
@mouseleave=${()=>p(!1)}
|
|
@@ -1799,89 +1814,89 @@
|
|
|
1799
1814
|
${sr(b.type)}
|
|
1800
1815
|
<span class="toast-message">${b.message}</span>
|
|
1801
1816
|
</div>
|
|
1802
|
-
`}
|
|
1817
|
+
`},$=()=>o?l.nothing:e.props.composed?y():R();return{onMounted(){u()},getPortalContainer:()=>e.props.inline?null:document.querySelector(lr(e.props.position)),renderPortal(){return e.props.inline?l.nothing:$()},render(){return e.props.inline?$():l.nothing}}}}),nr=e=>{var t;typeof e.remove<"u"?e.remove():(t=e.parentNode)==null||t.removeChild(e)},rr=(e={})=>{const t=o=>{let n;typeof o=="string"&&(n=o);const r=document.createElement("div");r.style.display="contents";const d={message:n||o.message||"",onDismiss:()=>{nr(r)}},m=Object.assign({},d,e,typeof o=="string"?{}:o);document.body.appendChild(r),lo(r,m,(()=>{}))};return{open:t,success(o,n={}){return t({message:o,type:"success",...n})},error(o,n={}){return t({message:o,type:"error",...n})},info(o,n={}){return t({message:o,type:"info",...n})},warning(o,n={}){return t({message:o,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,o,n,r,d){const m=(e==="top"||e==="bottom"?o.height:o.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,o,n){return e==="start"?t:e==="end"?t+o-n:t+o/2-n/2}function Rt(e,t,o){return o<t?t:Math.min(Math.max(e,t),o)}function hl(e,t,o,n){const{align:r,sideOffset:d,collisionPadding:m}=n,s=n.arrowSize??0;let i=n.side;!So(i,e,t,o,d,m)&&So($o[i],e,t,o,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,o.width-t.width-m):u=Rt(u,m,o.height-t.height-m);const p=h?e.left+e.width/2:e.top+e.height/2,v=h?a:u,y=h?t.width:t.height,R=Rt(p-v,s*2,y-s*2),$={top:e.top-d-m,bottom:o.height-(e.top+e.height)-d-m,left:o.height-m*2,right:o.height-m*2},b=Math.max(0,$[i]);return{side:i,x:a,y:u,arrowOffset:R,availableHeight:b}}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=O.createRef();let o=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});o!==null&&r&&o.side===a.side&&o.x===a.x&&o.y===a.y&&o.arrowOffset===a.arrowOffset||(o=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 l.nothing},renderPortal(){const i=e.props;if(!d())return o=null,n=null,r=!1,l.nothing;dr(m);const h=(o==null?void 0:o.side)??i.side??"top",a=ge(i,ar),u=h==="top"||h==="bottom"?"left":"top";return l.html`
|
|
1803
1818
|
<div
|
|
1804
|
-
${
|
|
1805
|
-
class=${
|
|
1819
|
+
${O.ref(t)}
|
|
1820
|
+
class=${M("moz-tooltip",i.class)}
|
|
1806
1821
|
role="tooltip"
|
|
1807
1822
|
id=${i.tooltipId??l.nothing}
|
|
1808
|
-
data-side=${
|
|
1823
|
+
data-side=${h}
|
|
1809
1824
|
data-align=${i.align??"center"}
|
|
1810
|
-
style=${
|
|
1825
|
+
style=${le.styleMap({...Pe(i.style),position:"fixed",left:`${(o==null?void 0:o.x)??0}px`,top:`${(o==null?void 0:o.y)??0}px`,opacity:r?"1":"0"})}
|
|
1811
1826
|
${he(a)}
|
|
1812
1827
|
>
|
|
1813
1828
|
${i.arrow?l.html`<span
|
|
1814
1829
|
class="moz-tooltip-arrow"
|
|
1815
|
-
data-side=${
|
|
1816
|
-
style=${
|
|
1830
|
+
data-side=${h}
|
|
1831
|
+
style=${le.styleMap({[u]:`${(o==null?void 0:o.arrowOffset)??0}px`})}
|
|
1817
1832
|
></span>`:l.nothing}
|
|
1818
1833
|
<div class="moz-tooltip-content">
|
|
1819
1834
|
${e.slots.has("content")?e.slot("content"):i.text??l.nothing}
|
|
1820
1835
|
</div>
|
|
1821
1836
|
</div>
|
|
1822
|
-
`},api:{reposition:()=>
|
|
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=O.createRef();let o=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 W=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});o!==null&&r&&o.side===W.side&&o.x===W.x&&o.y===W.y&&o.availableHeight===W.availableHeight||(o=W,r=!0,e.requestUpdate(),n!==W.side&&(n=W.side,e.emit("placed",W.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")},y=E=>{if(!i()||!(m!=null&&m.isTopmost()))return;const L=t.value,W=E.target;if(!L||!W||L.contains(W))return;const N=u("moz.interactOutside",{originalEvent:E});e.emit("interactOutside",N),N.defaultPrevented||p("interactOutside")},R=E=>{if(E.key!=="Tab"||!e.props.trapFocus)return;const L=h();if(L.length===0){E.preventDefault();return}const W=L[0],N=L[L.length-1],oe=document.activeElement;E.shiftKey&&(oe===W||oe===t.value)?(E.preventDefault(),N.focus()):!E.shiftKey&&oe===N&&(E.preventDefault(),W.focus())},$=()=>{s=document.activeElement??null,m=Ht(v),document.addEventListener("pointerdown",y,!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())})},b=()=>{var W;m==null||m.release(),m=null,document.removeEventListener("pointerdown",y,!0),o=null,n=null,r=!1;const E=u("moz.closeAutoFocus");e.emit("closeAutoFocus",E);const L=s??e.props.anchor;s=null,E.defaultPrevented||(W=L==null?void 0:L.focus)==null||W.call(L)},z=()=>{i()&&a()};return typeof window<"u"&&(window.addEventListener("scroll",z,{capture:!0,passive:!0}),window.addEventListener("resize",z,{passive:!0}),e.onCleanup(()=>{window.removeEventListener("scroll",z,!0),window.removeEventListener("resize",z),m==null||m.release(),m=null,document.removeEventListener("pointerdown",y,!0)})),{render(){return l.nothing},renderPortal(){var ae;const E=e.props,L=i();if(L!==d&&(d=L,L?$():b()),!L)return l.nothing;ko(a);const W=(o==null?void 0:o.side)??E.side??"bottom",N=ge(E,pr),oe=((ae=E.anchor)==null?void 0:ae.offsetWidth)??0;return l.html`
|
|
1823
1838
|
<div
|
|
1824
|
-
${
|
|
1825
|
-
class=${
|
|
1839
|
+
${O.ref(t)}
|
|
1840
|
+
class=${M("moz-popover",E.class)}
|
|
1826
1841
|
role="dialog"
|
|
1827
|
-
id=${
|
|
1842
|
+
id=${E.popoverId??l.nothing}
|
|
1828
1843
|
tabindex="-1"
|
|
1829
|
-
data-side=${
|
|
1830
|
-
data-align=${
|
|
1844
|
+
data-side=${W}
|
|
1845
|
+
data-align=${E.align??"start"}
|
|
1831
1846
|
@keydown=${R}
|
|
1832
|
-
style=${
|
|
1833
|
-
${he(
|
|
1847
|
+
style=${le.styleMap({...Pe(E.style),position:"fixed",left:`${(o==null?void 0:o.x)??0}px`,top:`${(o==null?void 0:o.y)??0}px`,opacity:r?"1":"0",pointerEvents:"auto","--moz-popover-trigger-width":`${oe}px`,"--moz-popover-available-height":`${(o==null?void 0:o.availableHeight)??0}px`,...E.matchTriggerWidth?{width:`${oe}px`}:{}})}
|
|
1848
|
+
${he(N)}
|
|
1834
1849
|
>
|
|
1835
1850
|
${e.slot("content")}
|
|
1836
1851
|
</div>
|
|
1837
|
-
`},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,o=null,n=-1;const r=()=>{const
|
|
1838
|
-
${
|
|
1839
|
-
class=${
|
|
1840
|
-
id=${xe.ifDefined(
|
|
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,o=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=()=>{o==null||o.disconnect(),o=null},m=s=>{if(t=s??null,!t){d(),n=-1;return}r(),!(typeof ResizeObserver>"u")&&(d(),o=new ResizeObserver(()=>r()),o.observe(t))};return e.onCleanup(d),{render(){const s=e.props,i=!!s.open;if(!i&&!s.forceMount)return l.nothing;const h=ge(s,fr);return l.html`<div
|
|
1853
|
+
${O.ref(m)}
|
|
1854
|
+
class=${M("moz-collapsible-content",s.class)}
|
|
1855
|
+
id=${xe.ifDefined(s.contentId)}
|
|
1841
1856
|
data-state=${i?"open":"closed"}
|
|
1842
|
-
data-disabled=${
|
|
1857
|
+
data-disabled=${s.disabled?"":l.nothing}
|
|
1843
1858
|
?hidden=${!i}
|
|
1844
|
-
style=${
|
|
1845
|
-
${he(
|
|
1859
|
+
style=${le.styleMap(Pe(s.style))}
|
|
1860
|
+
${he(h)}
|
|
1846
1861
|
>
|
|
1847
1862
|
${e.slot("content")}
|
|
1848
|
-
</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",o,n=!0,r,
|
|
1849
|
-
class=${
|
|
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",o,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===o)return;if(o=a,s(),i(e.props.delayMs),!a){m("idle");return}m("loading");const u=new Image;d=u,u.onload=()=>{d!==u||o!==a||m("loaded")},u.onerror=()=>{d!==u||o!==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 l.html`<span
|
|
1864
|
+
class=${M("moz-avatar",a.class)}
|
|
1850
1865
|
data-status=${t}
|
|
1851
|
-
style=${
|
|
1866
|
+
style=${le.styleMap(Pe(a.style))}
|
|
1852
1867
|
${he(u)}
|
|
1853
1868
|
>
|
|
1854
1869
|
${p?l.html`<img
|
|
1855
|
-
class=${
|
|
1870
|
+
class=${M("moz-avatar-image",a.imageClass)}
|
|
1856
1871
|
src=${xe.ifDefined(a.src)}
|
|
1857
1872
|
alt=${xe.ifDefined(a.alt)}
|
|
1858
1873
|
/>`:l.nothing}
|
|
1859
|
-
${v?l.html`<span class=${
|
|
1860
|
-
</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"]),
|
|
1861
|
-
class=${
|
|
1862
|
-
data-orientation=${
|
|
1874
|
+
${v?l.html`<span class=${M("moz-avatar-fallback",a.fallbackClass)}>${e.slot("fallback")}</span>`:l.nothing}
|
|
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,o=null,n=null,r=null,d=null,m=!1,s=!1,i=null,h=null,a=null,u=null,p=null,v=!1,y=!1,R=null,$=null;const b=k=>!!k&&"nodeType"in k&&(!!(a!=null&&a.contains(k))||!!(u!=null&&u.contains(k))),z=()=>b((a==null?void 0:a.ownerDocument.activeElement)??null),E=()=>{const k=z();k!==y&&(y=k,e.requestUpdate())},L=k=>{u=k??null},W=k=>{k.pointerType!=="touch"&&(v=!0,e.requestUpdate())},N=k=>{k.pointerType!=="touch"&&(v=b(k.relatedTarget),e.requestUpdate())},oe=()=>{E()},ae=()=>{e.requestUpdate()},te=()=>{R==null||R(),p==null||p.disconnect(),p=null,a==null||a.removeEventListener("pointerenter",W),a==null||a.removeEventListener("pointerleave",N),a==null||a.removeEventListener("focusin",oe),a==null||a.removeEventListener("focusout",ae),a=null,v=y=!1},Y=()=>{($==null?void 0:$.getAttribute("tabindex"))==="0"&&$.removeAttribute("tabindex"),$=null},T=()=>{var A;const k=e.props.interactionRoot??t;k!==a&&(te(),a=k,k&&(k.addEventListener("pointerenter",W),k.addEventListener("pointerleave",N),k.addEventListener("focusin",oe),k.addEventListener("focusout",ae)));const V=(A=k==null?void 0:k.ownerDocument.defaultView)==null?void 0:A.MutationObserver;e.props.scrollbarVisibility==="hover"&&k&&!p&&V?(p=new V(E),p.observe(k,{childList:!0,subtree:!0})):e.props.scrollbarVisibility!=="hover"&&(p==null||p.disconnect(),p=null),y=z(),e.props.scrollbarVisibility!=="hover"?Y():t&&!t.hasAttribute("tabindex")&&(t.tabIndex=0,$=t)},K=k=>{const V=e.props.orientation??"vertical";return V==="both"||V===k},ne=k=>{const V=t;if(!V||!K(k))return!1;const A=k==="vertical",_=A?V.scrollHeight:V.scrollWidth,g=A?V.clientHeight:V.clientWidth;if(_<=g+1||g<=0)return!1;const F=A?r:d,X=A?o:n;if(!F||!X)return!0;const J=A?F.clientHeight:F.clientWidth;if(J<=0)return!0;const ve=g/_,De=Math.max(J*ve,br),_e=J-De,He=A?V.scrollTop:V.scrollLeft,c=_-g,x=c>0?He/c*_e:0;return A?(X.style.height=`${De}px`,X.style.transform=`translateY(${x}px)`):(X.style.width=`${De}px`,X.style.transform=`translateX(${x}px)`),!0},G=()=>{const k=ne("vertical"),V=ne("horizontal");k===m&&V===s||(m=k,s=V,e.requestUpdate())},Z=()=>{const k=t;k&&(G(),e.emit("scroll",{scrollTop:k.scrollTop,scrollLeft:k.scrollLeft}))},D=()=>{te(),Y(),t&&t.removeEventListener("scroll",Z),i==null||i.disconnect(),i=null,h==null||h.disconnect(),h=null,t=null},S=()=>{const k=e.props.viewport??null;if(k!==t&&(D(),t=k,!!t)){if(t.addEventListener("scroll",Z,{passive:!0}),typeof ResizeObserver<"u"){i=new ResizeObserver(()=>G()),i.observe(t);const V=t.firstElementChild;V&&(h=new ResizeObserver(()=>G()),h.observe(V))}G()}},U=(k,V)=>{var C;const A=t,_=A==null?void 0:A.ownerDocument.defaultView;if(!A||!_||R||V.button!==0)return;const g=k==="vertical",F=g?r:d,X=g?o:n;if(!F||!X)return;V.preventDefault();const J=g?V.clientY:V.clientX,ve=g?A.scrollTop:A.scrollLeft,De=g?F.clientHeight:F.clientWidth,_e=g?X.offsetHeight:X.offsetWidth,He=g?A.scrollHeight:A.scrollWidth,c=g?A.clientHeight:A.clientWidth,x=De-_e,Q=He-c;if(x<=0||Q<=0)return;const re=V.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)-J,Se=ve+Ce/x*Q;g?A.scrollTop=Se:A.scrollLeft=Se},be=q=>{q.pointerId===re&&(de(q),q.type!=="pointerup"&&(v=!1),R==null||R(),e.requestUpdate())};R=()=>{var q;R=null,_.removeEventListener("pointermove",$e),_.removeEventListener("pointerup",be),_.removeEventListener("pointercancel",be),X.removeEventListener("lostpointercapture",be);try{(q=X.releasePointerCapture)==null||q.call(X,re)}catch{}},_.addEventListener("pointermove",$e),_.addEventListener("pointerup",be),_.addEventListener("pointercancel",be),X.addEventListener("lostpointercapture",be);try{(C=X.setPointerCapture)==null||C.call(X,re)}catch{}e.requestUpdate()};e.onCleanup(D);const j=(k,V)=>{const A=k==="vertical",_=F=>{A?r=F??null:d=F??null},g=F=>{A?o=F??null:n=F??null,F&&G()};return l.html`<div
|
|
1876
|
+
class=${M("moz-scroll-area-scrollbar",e.props.scrollbarClass)}
|
|
1877
|
+
data-orientation=${k}
|
|
1863
1878
|
?hidden=${!V}
|
|
1864
|
-
${
|
|
1879
|
+
${O.ref(_)}
|
|
1865
1880
|
>
|
|
1866
1881
|
<div
|
|
1867
|
-
class=${
|
|
1868
|
-
@pointerdown=${
|
|
1869
|
-
${
|
|
1882
|
+
class=${M("moz-scroll-area-thumb",e.props.thumbClass)}
|
|
1883
|
+
@pointerdown=${F=>U(k,F)}
|
|
1884
|
+
${O.ref(g)}
|
|
1870
1885
|
></div>
|
|
1871
|
-
</div>`};return{render(){
|
|
1872
|
-
class=${
|
|
1873
|
-
data-orientation=${
|
|
1874
|
-
data-state=${
|
|
1875
|
-
style=${
|
|
1876
|
-
@pointerenter=${
|
|
1877
|
-
@pointerleave=${
|
|
1878
|
-
@focusin=${
|
|
1879
|
-
@focusout=${
|
|
1880
|
-
${
|
|
1886
|
+
</div>`};return{render(){S(),T();const k=e.props,V=ge(k,Cr),A=K("vertical")&&K("horizontal");return l.html`<div
|
|
1887
|
+
class=${M("moz-scroll-area-bars",k.class)}
|
|
1888
|
+
data-orientation=${k.orientation??"vertical"}
|
|
1889
|
+
data-state=${k.scrollbarVisibility!=="hover"||v||y||R?"visible":"hidden"}
|
|
1890
|
+
style=${le.styleMap(Pe(k.style))}
|
|
1891
|
+
@pointerenter=${W}
|
|
1892
|
+
@pointerleave=${N}
|
|
1893
|
+
@focusin=${oe}
|
|
1894
|
+
@focusout=${ae}
|
|
1895
|
+
${O.ref(L)}
|
|
1881
1896
|
${he(V)}
|
|
1882
1897
|
>
|
|
1883
|
-
${
|
|
1884
|
-
${
|
|
1885
|
-
${
|
|
1886
|
-
</div>`}}}}),
|
|
1898
|
+
${K("vertical")?j("vertical",m):l.nothing}
|
|
1899
|
+
${K("horizontal")?j("horizontal",s):l.nothing}
|
|
1900
|
+
${A&&m&&s?l.html`<div class="moz-scroll-area-corner"></div>`:l.nothing}
|
|
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=Os;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=On;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=Ot;exports.cn=M;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=Ho;exports.createLabel=Vo;exports.createMultiSelect=Jo;exports.createNumberInput=Wo;exports.createPasswordInput=_o;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=No;exports.createTimePicker=tl;exports.createToast=lo;exports.createToggle=Do;exports.createTooltip=fl;exports.createTreeSelect=cl;exports.createValidator=Hl;exports.dayjs=Ee;exports.defaultEmptyStateMessages=Ro;exports.defineHeadless=we;exports.dismissLayerCount=Kl;exports.enUS=Rl;exports.generateUUID=Lo;exports.iconArrowRight=_t;exports.iconCheckBox=Gt;exports.iconCheckBoxChecked=Yt;exports.iconCheckboxIndeterminate=Zt;exports.iconClose=Ko;exports.iconFavorite=Nt;exports.iconFavoriteFilled=Wt;exports.iconInfo=jt;exports.iconPasswordHidden=Oo;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=Ht;exports.registerForeignLayer=Wl;exports.registerSelfHandledLayer=ht;exports.shallowEqual=rt;exports.spread=he;exports.toggleTemplate=Pt;exports.uniqueId=Xe;exports.useToast=rr;exports.zhCN=ql;
|
|
1887
1902
|
//# sourceMappingURL=index.cjs.map
|