@vmscloud/moz-ui-components-core 0.1.66 → 0.1.68
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/MIGRATION.md +50 -0
- package/README.md +5 -0
- package/dist/components/button/button.core.d.ts +14 -1
- package/dist/components/button/circleLoader.d.ts +6 -0
- package/dist/components/button/index.d.ts +1 -1
- package/dist/components/callout/callout.core.d.ts +4 -0
- package/dist/components/callout/index.d.ts +2 -2
- package/dist/components/chip/chip.core.d.ts +4 -3
- package/dist/components/input/index.d.ts +3 -2
- package/dist/components/input/input.core.d.ts +13 -0
- package/dist/components/number-input/numberinput.core.d.ts +7 -0
- package/dist/components/radio/radio.core.d.ts +2 -0
- package/dist/components/select/index.d.ts +1 -1
- package/dist/components/select/select.core.d.ts +8 -0
- package/dist/components/slider/slider.core.d.ts +1 -1
- package/dist/components/textarea/index.d.ts +1 -1
- package/dist/components/textarea/textarea.core.d.ts +21 -0
- package/dist/components/time-picker/index.d.ts +1 -1
- package/dist/components/time-picker/timepicker.core.d.ts +1 -1
- package/dist/components/tooltip/index.d.ts +1 -1
- package/dist/components/tooltip/tooltip.core.d.ts +19 -1
- package/dist/index.cjs +888 -855
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +3592 -3391
- package/dist/index.js.map +1 -1
- package/dist/runtime/ChromeComponent.d.ts +5 -0
- package/dist/styles/default/avatar.css +184 -1
- package/dist/styles/default/badge.css +195 -1
- package/dist/styles/default/breadcrumb.css +186 -3
- package/dist/styles/default/button.css +360 -1
- package/dist/styles/default/calendar.css +212 -1
- package/dist/styles/default/callout.css +262 -1
- package/dist/styles/default/checkbox.css +187 -1
- package/dist/styles/default/chip.css +235 -4
- package/dist/styles/default/contextmenu.css +192 -9
- package/dist/styles/default/controller.css +185 -2
- package/dist/styles/default/dateinput.css +184 -1
- package/dist/styles/default/emptystate.css +128 -0
- package/dist/styles/default/index.css +1161 -187
- package/dist/styles/default/input.css +223 -1
- package/dist/styles/default/label.css +184 -1
- package/dist/styles/default/multiselect.css +213 -18
- package/dist/styles/default/notification.css +185 -2
- package/dist/styles/default/numberinput.css +219 -1
- package/dist/styles/default/popover.css +186 -3
- package/dist/styles/default/popup.css +269 -1
- package/dist/styles/default/radio.css +203 -1
- package/dist/styles/default/scrollarea.css +184 -1
- package/dist/styles/default/select.css +270 -21
- package/dist/styles/default/slider.css +285 -15
- package/dist/styles/default/splitpane.css +128 -0
- package/dist/styles/default/tab.css +192 -1
- package/dist/styles/default/tableselect.css +185 -2
- package/dist/styles/default/taginput.css +187 -4
- package/dist/styles/default/textarea.css +247 -3
- package/dist/styles/default/timepicker.css +209 -4
- package/dist/styles/default/toast.css +192 -2
- package/dist/styles/default/toggle.css +184 -1
- package/dist/styles/default/tooltip.css +198 -1
- package/dist/styles/default/treeselect.css +280 -12
- package/package.json +4 -2
- package/dist/components/password-input/index.d.ts +0 -7
- package/dist/components/password-input/passwordinput.core.d.ts +0 -35
- package/dist/styles/default/passwordinput.css +0 -9
- /package/dist/components/{password-input/icons.d.ts → input/passwordIcons.d.ts} +0 -0
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
|
-
"use strict";var
|
|
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:"탐색 경로"}},Mn={Toast:{close:"Close"},Chip:{remove:"Remove"},Callout:{dismiss:"Dismiss"},Notification:{close:"Close",unread:"Unread"},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"},Controller:{filterLabel:"Search criteria"},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"}},zn={Toast:{close:"关闭"},Chip:{remove:"删除"},Callout:{dismiss:"关闭"},Notification:{close:"关闭",unread:"未读"},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:"折叠"},Controller:{filterLabel:"查询条件"},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:"面包屑导航"}},Tn={Toast:{close:"閉じる"},Chip:{remove:"削除"},Callout:{dismiss:"閉じる"},Notification:{close:"閉じる",unread:"未読"},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:"折りたたむ"},Controller:{filterLabel:"検索条件"},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:"パンくずリスト"}};let An=0;function $e(e){return(t,o,n,l)=>{const d=e.portal?new Nt:null,a=d?d.open():t,f=`h${++An}:`,i=new Wo;if(l!=null&&l.slots)for(const[j,$]of Object.entries(l.slots))i.register(j,$);l!=null&&l.slotResolver&&i.setResolver(l.slotResolver);const c=new Set(Object.keys(o)),r=l!=null&&l.providedKeys?new Set(l.providedKeys):null,u=j=>{const $=e.defaults;if(!$)return j;const I={...j};for(const Y of Object.keys($))I[Y]===void 0&&(I[Y]=$[Y]);return I};let p=u({...o}),y=(l==null?void 0:l.locale)??no;const L=(l==null?void 0:l.validator)??null,D=[];let P=new Map,E=new Set,g=new Map,h=null;const C={get props(){return p},emit:n,slots:i,requestUpdate:()=>W.requestUpdate(),onCleanup:j=>D.push(j),px:j=>Ae(j),get locale(){return y},validator:L,controlled:j=>r?r.has(j):c.has(j),slot(j,$){if(!i.has(j))return s.nothing;const I=g.get(j)??0;g.set(j,I+1);const Y=`${j}#${I}`;return P.set(Y,{name:j,scope:$}),s.html`<span data-moz-slot=${j} data-moz-slot-id=${f+Y}></span>`}},k=e.setup(C);class Z extends Uo{template(){return P=new Map,g=new Map,k.render()}renderNow(){super.renderNow();let $=null;if(k.renderPortal){const I=k.renderPortal(),Y=k.getPortalContainer?k.getPortalContainer():document.body;I===s.nothing||I==null||Y==null?h&&h.isOpen&&(s.render(s.nothing,h.element),h.close()):(h||(h=new Nt),$=h.isOpen?h.element:h.open("moz-overlay-portal",Y),s.render(I,$))}for(const[I,{name:Y,scope:ne}]of P){const B=`[data-moz-slot-id="${f+I}"]`;let se=this.container.querySelector(B);!se&&$&&(se=$.querySelector(B)),se&&i.fill(I,Y,se,ne)}for(const I of E)P.has(I)||i.clear(I);E=new Set(P.keys())}flush(){this.isMounted&&this.renderNow()}onDestroy(){for(const $ of D.splice(0))try{$()}catch{}i.destroy()}}const W=new Z(a);W.mount();let Q=!1;const re=()=>{var j;Q||!W.isMounted||(Q=!0,(j=k.onMounted)==null||j.call(k,a.firstElementChild))};return l!=null&&l.deferMounted||re(),{get el(){return a.firstElementChild},update(j,$){$!=null&&$.replace?(p=u({...j}),c.clear()):p=u({...p,...j});for(const I of Object.keys(j))c.add(I);$!=null&&$.sync?W.flush():W.requestUpdate()},destroy(){W.destroy(),d==null||d.close(),h==null||h.close()},setLocale(j){j!==y&&(y=j??no,W.requestUpdate())},api:k.api??{},notifyMounted:re}}}const Dn={MozBadge:["dot"],MozBreadCrumb:["showFavorite"],MozButton:["disabled","loading"],MozCallout:["compact","dismissible","hideIcon","live"],MozCheckBox:["checked","disabled","indeterminate","modelValue","readonly"],MozChip:["disabled","labelInteractive","removable","selected"],MozCollapsible:["disabled","forceMount","open"],MozContextMenu:["disableCloseOnClickBackdrop","noPadding","toBottomCenter","toTopCenter"],MozController:["customQueryParamsPanel","showFavorite","showFilterButton","showPreset"],MozDateInput:["disabled","readonly","required","showSpin"],MozEmptyState:["composed","isCustomState","isReadOnly","useImg"],MozInput:["disabled","isReadOnly","required","useInvalidV2"],MozLabel:["disabled","isReadOnly","required"],MozMultiSelect:["autoSelectNewItems","disabled","inline","loading","preserveMissingValues","readonly","required","selectAllWhenEmpty","useFilter","useSelectAll","useSpecificSelect"],MozNotificationCard:["dismissible","inline","pauseOnHover"],MozNotificationItem:["unread"],MozNumberInput:["disabled","nullable","required","shortMode"],MozPasswordInput:["disabled","required","useInvalidV2"],MozPopover:["matchTriggerWidth","open","trapFocus"],MozPopup:["autoPosition","closeOnOutsideClick","disabledConfirmButton","draggable","focusTrap","hideOthers","keepAspectRatio","loading","lockScroll","resizeable","showBackdrop","showCloseButton","showFooterBorder","showHeader","useVShow","visible"],MozRadio:["disabled","iconOnly","required"],MozSelect:["disabled","readonly","required","useFilter","useObjBinding"],MozSlider:["disabled"],MozSplitPane:["horizontal"],MozTab:["closeAble","vertical"],MozTableSelect:["disabled","readonly","required","useFilter","useObjKeyProp"],MozTagInput:["disableDelete","disableUpdate","dynamicSearch","isExpandTop","pushOnBlur","required","simplify"],MozTextArea:["disabled","immediatelyFocus","required"],MozTimePicker:["disabled","required"],MozToast:["composed","dismissible","inline","pauseOnHover","queue","showProgress"],MozToggle:["disabled","readonly","required","visible"],MozTooltip:["arrow","open"],MozTreeSelect:["disabled","readonly","required","useFilter","useMultiSelect","useSelectAll","useSpecificSelect"]};class In extends so.Directive{constructor(o){super(o);Oe(this,"prevKeys",[]);Oe(this,"listeners",new Map);if(o.type!==so.PartType.ELEMENT)throw new Error("spread() 는 element 바인딩(`<el ${spread(obj)}>`)에서만 사용할 수 있습니다.")}render(o){return s.nothing}update(o,[n]){const l=o.element,d=n??{};for(const a of this.prevKeys)if(!(a in d))if(this.isEventKey(a)){const f=this.listeners.get(a);f&&l.removeEventListener(this.eventName(a),f),this.listeners.delete(a)}else l.removeAttribute(a);for(const[a,f]of Object.entries(d))if(!(a==="class"||a==="style"||a==="key"||a==="ref"))if(this.isEventKey(a)&&typeof f=="function"){const i=this.eventName(a),c=this.listeners.get(a);c&&l.removeEventListener(i,c),l.addEventListener(i,f),this.listeners.set(a,f)}else f==null?l.removeAttribute(a):a.startsWith("aria-")?l.setAttribute(a,String(f)):f===!1?l.removeAttribute(a):f===!0?l.setAttribute(a,""):l.setAttribute(a,String(f));return this.prevKeys=Object.keys(d),s.noChange}isEventKey(o){return o.length>2&&o.startsWith("on")&&o[2]===o[2].toUpperCase()}eventName(o){return o.slice(2).toLowerCase()}}const he=so.directive(In);function V(...e){return wn.clsx(e)}function Vn(){return pt.extend($n),pt.extend(yn),pt.extend(bn),pt.extend(Cn),pt.extend(Sn),pt.extend(kn),pt.tz.setDefault("Asia/Seoul"),pt}const Pe=Vn();function Rn(){const e=[];return{addValidator:d=>{e.push(d)},removeValidator:d=>{const a=e.findIndex(f=>f.validate===d.validate);a>=0&&e.splice(a,1)},validate:async(d="save")=>(await Promise.all(e.map(f=>f.validate(d).then(i=>i===void 0?!0:i)))).every(f=>f),initValidator:()=>{var d;for(const a of e)(d=a==null?void 0:a.initValidator)==null||d.call(a)}}}const On=16;function qn(e,t){let o=0;return(...n)=>{const l=Date.now();l-o>=t&&(o=l,e(...n))}}class Kt{constructor(t){Oe(this,"opened",!1);Oe(this,"scrollHandler");Oe(this,"clickHandler");this.opts=t,this.scrollHandler=qn(o=>this.onScroll(o),On),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(),l=this.opts.maxHeight?this.opts.maxHeight():250,d=window.innerHeight-n.bottom,a=n.top,f=d<l&&a>=l;let i=n.left;const c=o.clientWidth;n.left+c>document.body.clientWidth&&(i-=c-n.width);let r=`${n.width}px`,u=!1;if(this.opts.listWidth){const p=this.opts.listWidth();p&&(typeof p!="number"||p>0)&&(r=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(r))):u?o.style.width=String(r):o.style.width=`${n.width}px`,f?(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 l=n.getBoundingClientRect();if(l.bottom<0||l.top>window.innerHeight){this.opts.requestClose();return}}this.calcPosition()}onOutsideClick(t){var n,l,d,a,f;if(this.opts.closeOnOutsideClick===!1)return;const o=t.target;(d=(l=(n=this.opts).container)==null?void 0:l.call(n))!=null&&d.contains(o)||(a=this.opts.panel())!=null&&a.contains(o)||(f=this.opts.anchor())!=null&&f.contains(o)||this.opts.requestClose()}}const ut=[];let Ht=!1;function Ko(e){var o;if(e.key!=="Escape")return;const t=ut[ut.length-1];t&&t.kind==="moz"&&((o=t.onEscape)==null||o.call(t,e),e.stopPropagation())}function Bn(){Ht||typeof window>"u"||(window.addEventListener("keydown",Ko,{capture:!0}),Ht=!0)}function Fn(){!Ht||typeof window>"u"||(window.removeEventListener("keydown",Ko,!0),Ht=!1)}function ho(e){ut.push(e),Bn();let t=!1;return{release(){if(t)return;t=!0;const o=ut.indexOf(e);o>=0&&ut.splice(o,1),ut.length===0&&Fn()},isTopmost(){return ut[ut.length-1]===e}}}function mo(e){return ho({kind:"moz",onEscape:e})}function Nn(){return ho({kind:"foreign"})}function Gt(){return ho({kind:"self"})}function Hn(){return ut.length}function fo(e={}){const{circleClass:t="",progressClass:o=""}=e;return s.html`<svg
|
|
1
|
+
"use strict";var wn=Object.defineProperty;var Cn=(e,t,o)=>t in e?wn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;var Ve=(e,t,o)=>Cn(e,typeof t!="symbol"?t+"":t,o);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("lit-html"),so=require("lit-html/directive.js"),te=require("lit-html/directives/style-map.js"),bn=require("clsx"),Ee=require("lit-html/directives/if-defined.js"),Go=require("lit-html/directives/unsafe-html.js"),uo=require("lit-html/directives/live.js"),Y=require("lit-html/directives/ref.js"),ft=require("dayjs"),yn=require("dayjs/plugin/duration.js"),$n=require("dayjs/plugin/minMax.js"),Sn=require("dayjs/plugin/timezone.js"),kn=require("dayjs/plugin/utc.js"),En=require("dayjs/plugin/isSameOrBefore.js"),Ln=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 st=require("@tanstack/virtual-core");var Se=typeof document<"u"?document.currentScript:null;class Yo{constructor(t){Ve(this,"container");Ve(this,"updateScheduled",!1);Ve(this,"mounted",!1);Ve(this,"cleanups",[]);Ve(this,"endMarker",null);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(){s.render(this.template(),this.container,this.rootOptions())}rootOptions(){return this.endMarker||(this.endMarker=this.container.appendChild(document.createComment(""))),{renderBefore:this.endMarker}}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{}this.endMarker&&(s.render(s.nothing,this.container,{renderBefore:this.endMarker}),this.endMarker.remove(),this.endMarker=null)}}get isMounted(){return this.mounted}}class Pn{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 jo{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,l){var d,b;const c=this.lookup(o);if(!c)return!1;const r=this.mounted.get(t);if(r){if(r.el===n)return(b=(d=r.handle).update)==null||b.call(d,l),!0;r.handle.dispose(),this.mounted.delete(t)}for(const[a,m]of this.mounted)m.el===n&&(m.handle.dispose(),this.mounted.delete(a));const h=c(n,l);return this.mounted.set(t,{el:n,handle:h}),!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 Nt{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 Mt(){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 De(e,t=16){return e/t}let To=0;function ot(e=""){return To+=1,`${e}${To}`}const bt=(e,t)=>{const o=Object.keys(e),n=Object.keys(t);if(o.length!==n.length)return!1;for(const l of o)if(e[l]!==t[l])return!1;return!0};function ye(e,t){const o={};for(const n of Object.keys(e))t.has(n)||(o[n]=e[n]);return o}function Wt(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}}const Mn=["animationIterationCount","aspectRatio","borderImageOutset","borderImageSlice","borderImageWidth","boxFlex","boxFlexGroup","boxOrdinalGroup","columnCount","columns","flex","flexGrow","flexPositive","flexShrink","flexNegative","flexOrder","gridArea","gridRow","gridRowEnd","gridRowSpan","gridRowStart","gridColumn","gridColumnEnd","gridColumnSpan","gridColumnStart","fontWeight","lineClamp","lineHeight","opacity","order","orphans","tabSize","widows","zIndex","zoom","fillOpacity","floodOpacity","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","strokeOpacity","strokeWidth"],xn=new Set(Mn.flatMap(e=>[e,...["Webkit","ms","Moz","O"].map(t=>t+e.charAt(0).toUpperCase()+e.slice(1))]));function zn(e){return e.includes("-")?e.replace(/^-ms-/,"ms-").replace(/-([a-z])/g,(t,o)=>o.toUpperCase()):e}function Ce(e){if(!e)return{};if(typeof e=="object"){const t={};for(const[o,n]of Object.entries(e))t[o]=typeof n=="number"&&n!==0&&!o.startsWith("--")&&!xn.has(zn(o))?`${n}px`:n;return t}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 po(e,t,o,n){return e.length>0||t===0||!n||n.getBoundingClientRect().height>0?e:Array.from({length:t},(l,c)=>({index:c,size:o,start:c*o}))}const no={Toast:{close:"닫기"},Chip:{remove:"삭제"},Callout:{dismiss:"닫기"},Notification:{close:"닫기",unread:"읽지 않음"},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:"접기"},Controller:{filterLabel:"조회 조건"},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:"탐색 경로"}},Tn={Toast:{close:"Close"},Chip:{remove:"Remove"},Callout:{dismiss:"Dismiss"},Notification:{close:"Close",unread:"Unread"},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"},Controller:{filterLabel:"Search criteria"},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"}},An={Toast:{close:"关闭"},Chip:{remove:"删除"},Callout:{dismiss:"关闭"},Notification:{close:"关闭",unread:"未读"},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:"折叠"},Controller:{filterLabel:"查询条件"},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:"面包屑导航"}},Rn={Toast:{close:"閉じる"},Chip:{remove:"削除"},Callout:{dismiss:"閉じる"},Notification:{close:"閉じる",unread:"未読"},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:"折りたたむ"},Controller:{filterLabel:"検索条件"},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:"パンくずリスト"}};let Dn=0;function $e(e){return(t,o,n,l)=>{const c=e.portal?new Nt:null,r=c?c.open():t,h=`h${++Dn}:`,d=new jo;if(l!=null&&l.slots)for(const[j,k]of Object.entries(l.slots))d.register(j,k);l!=null&&l.slotResolver&&d.setResolver(l.slotResolver);const b=new Set(Object.keys(o)),a=l!=null&&l.providedKeys?new Set(l.providedKeys):null,m=j=>{const k=e.defaults;if(!k)return j;const R={...j};for(const X of Object.keys(k))R[X]===void 0&&(R[X]=k[X]);return R};let u=m({...o}),E=(l==null?void 0:l.locale)??no;const x=(l==null?void 0:l.validator)??null,$=[];let P=new Map,L=new Set,g=new Map,i=null;const p={get props(){return u},emit:n,slots:d,requestUpdate:()=>I.requestUpdate(),onCleanup:j=>$.push(j),px:j=>De(j),get locale(){return E},validator:x,controlled:j=>a?a.has(j):b.has(j),slot(j,k){if(!d.has(j))return s.nothing;const R=g.get(j)??0;g.set(j,R+1);const X=`${j}#${R}`;return P.set(X,{name:j,scope:k}),s.html`<span data-moz-slot=${j} data-moz-slot-id=${h+X}></span>`}},y=e.setup(p);class F extends Yo{template(){return P=new Map,g=new Map,y.render()}renderNow(){super.renderNow();let k=null;if(y.renderPortal){const R=y.renderPortal(),X=y.getPortalContainer?y.getPortalContainer():document.body;R===s.nothing||R==null||X==null?i&&i.isOpen&&(s.render(s.nothing,i.element),i.close()):(i||(i=new Nt),k=i.isOpen?i.element:i.open("moz-overlay-portal",X),s.render(R,k))}for(const[R,{name:X,scope:se}]of P){const N=`[data-moz-slot-id="${h+R}"]`;let ne=this.container.querySelector(N);!ne&&k&&(ne=k.querySelector(N)),ne&&d.fill(R,X,ne,se)}for(const R of L)P.has(R)||d.clear(R);L=new Set(P.keys())}flush(){this.isMounted&&this.renderNow()}onDestroy(){for(const k of $.splice(0))try{k()}catch{}d.destroy()}}const I=new F(r);I.mount();let K=!1;const oe=()=>{var j;K||!I.isMounted||(K=!0,(j=y.onMounted)==null||j.call(y,r.firstElementChild))};return l!=null&&l.deferMounted||oe(),{get el(){return r.firstElementChild},update(j,k){k!=null&&k.replace?(u=m({...j}),b.clear()):u=m({...u,...j});for(const R of Object.keys(j))b.add(R);k!=null&&k.sync?I.flush():I.requestUpdate()},destroy(){I.destroy(),c==null||c.close(),i==null||i.close()},setLocale(j){j!==E&&(E=j??no,I.requestUpdate())},api:y.api??{},notifyMounted:oe}}}const In={MozBadge:["dot"],MozBreadCrumb:["showFavorite"],MozButton:["disabled","loading","pressed"],MozCallout:["compact","dismissible","hideIcon","live"],MozCheckBox:["checked","disabled","indeterminate","modelValue","readonly"],MozChip:["disabled","labelInteractive","removable","selected"],MozCollapsible:["disabled","forceMount","open"],MozContextMenu:["disableCloseOnClickBackdrop","noPadding","toBottomCenter","toTopCenter"],MozController:["customQueryParamsPanel","showFavorite","showFilterButton","showPreset"],MozDateInput:["disabled","readonly","required","showSpin"],MozEmptyState:["composed","isCustomState","isReadOnly","useImg"],MozInput:["disabled","isReadOnly","required","useInvalidV2"],MozLabel:["disabled","isReadOnly","required"],MozMultiSelect:["autoSelectNewItems","disabled","inline","loading","preserveMissingValues","readonly","required","selectAllWhenEmpty","useFilter","useSelectAll","useSpecificSelect"],MozNotificationCard:["dismissible","inline","pauseOnHover"],MozNotificationItem:["unread"],MozNumberInput:["disabled","isReadOnly","nullable","required","shortMode","useInvalidV2"],MozPopover:["matchTriggerWidth","open","trapFocus"],MozPopup:["autoPosition","closeOnOutsideClick","disabledConfirmButton","draggable","focusTrap","hideOthers","keepAspectRatio","loading","lockScroll","resizeable","showBackdrop","showCloseButton","showFooterBorder","showHeader","useVShow","visible"],MozRadio:["disabled","iconOnly","required"],MozSelect:["disabled","readonly","required","useFilter","useObjBinding"],MozSlider:["disabled"],MozSplitPane:["horizontal"],MozTab:["closeAble","vertical"],MozTableSelect:["disabled","readonly","required","useFilter","useObjKeyProp"],MozTagInput:["disableDelete","disableUpdate","dynamicSearch","isExpandTop","pushOnBlur","required","simplify"],MozTextArea:["disabled","immediatelyFocus","required"],MozTimePicker:["disabled","required"],MozToast:["composed","dismissible","inline","pauseOnHover","queue","showProgress"],MozToggle:["disabled","readonly","required","visible"],MozTooltip:["arrow","open"],MozTreeSelect:["disabled","readonly","required","useFilter","useMultiSelect","useSelectAll","useSpecificSelect"]};class Vn extends so.Directive{constructor(o){super(o);Ve(this,"prevKeys",[]);Ve(this,"listeners",new Map);if(o.type!==so.PartType.ELEMENT)throw new Error("spread() 는 element 바인딩(`<el ${spread(obj)}>`)에서만 사용할 수 있습니다.")}render(o){return s.nothing}update(o,[n]){const l=o.element,c=n??{};for(const r of this.prevKeys)if(!(r in c))if(this.isEventKey(r)){const h=this.listeners.get(r);h&&l.removeEventListener(this.eventName(r),h),this.listeners.delete(r)}else l.removeAttribute(r);for(const[r,h]of Object.entries(c))if(!(r==="class"||r==="style"||r==="key"||r==="ref"))if(this.isEventKey(r)&&typeof h=="function"){const d=this.eventName(r),b=this.listeners.get(r);b&&l.removeEventListener(d,b),l.addEventListener(d,h),this.listeners.set(r,h)}else h==null?l.removeAttribute(r):r.startsWith("aria-")?l.setAttribute(r,String(h)):h===!1?l.removeAttribute(r):h===!0?l.setAttribute(r,""):l.setAttribute(r,String(h));return this.prevKeys=Object.keys(c),s.noChange}isEventKey(o){return o.length>2&&o.startsWith("on")&&o[2]===o[2].toUpperCase()}eventName(o){return o.slice(2).toLowerCase()}}const fe=so.directive(Vn);function V(...e){return bn.clsx(e)}function On(){return ft.extend(kn),ft.extend(Sn),ft.extend(yn),ft.extend($n),ft.extend(En),ft.extend(Ln),ft.tz.setDefault("Asia/Seoul"),ft}const Me=On();function qn(){const e=[];return{addValidator:c=>{e.push(c)},removeValidator:c=>{const r=e.findIndex(h=>h.validate===c.validate);r>=0&&e.splice(r,1)},validate:async(c="save")=>(await Promise.all(e.map(h=>h.validate(c).then(d=>d===void 0?!0:d)))).every(h=>h),initValidator:()=>{var c;for(const r of e)(c=r==null?void 0:r.initValidator)==null||c.call(r)}}}const Bn=16;function Fn(e,t){let o=0;return(...n)=>{const l=Date.now();l-o>=t&&(o=l,e(...n))}}class Kt{constructor(t){Ve(this,"opened",!1);Ve(this,"scrollHandler");Ve(this,"clickHandler");this.opts=t,this.scrollHandler=Fn(o=>this.onScroll(o),Bn),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(),l=this.opts.maxHeight?this.opts.maxHeight():250,c=window.innerHeight-n.bottom,r=n.top,h=c<l&&r>=l;let d=n.left;const b=o.clientWidth;n.left+b>document.body.clientWidth&&(d-=b-n.width);let a=`${n.width}px`,m=!1;if(this.opts.listWidth){const u=this.opts.listWidth();u&&(typeof u!="number"||u>0)&&(a=typeof u=="number"?`${u}px`:u,m=!0)}o.style.position="fixed",o.style.left=`${d}px`,this.opts.useMinWidth?(o.style.minWidth=`${n.width}px`,m&&(o.style.width=String(a))):m?o.style.width=String(a):o.style.width=`${n.width}px`,h?(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 l=n.getBoundingClientRect();if(l.bottom<0||l.top>window.innerHeight){this.opts.requestClose();return}}this.calcPosition()}onOutsideClick(t){var n,l,c,r,h;if(this.opts.closeOnOutsideClick===!1)return;const o=t.target;(c=(l=(n=this.opts).container)==null?void 0:l.call(n))!=null&&c.contains(o)||(r=this.opts.panel())!=null&&r.contains(o)||(h=this.opts.anchor())!=null&&h.contains(o)||this.opts.requestClose()}}const pt=[];let _t=!1;function Xo(e){var o;if(e.key!=="Escape")return;const t=pt[pt.length-1];t&&t.kind==="moz"&&((o=t.onEscape)==null||o.call(t,e),e.stopPropagation())}function Nn(){_t||typeof window>"u"||(window.addEventListener("keydown",Xo,{capture:!0}),_t=!0)}function _n(){!_t||typeof window>"u"||(window.removeEventListener("keydown",Xo,!0),_t=!1)}function ho(e){pt.push(e),Nn();let t=!1;return{release(){if(t)return;t=!0;const o=pt.indexOf(e);o>=0&&pt.splice(o,1),pt.length===0&&_n()},isTopmost(){return pt[pt.length-1]===e}}}function mo(e){return ho({kind:"moz",onEscape:e})}function Hn(){return ho({kind:"foreign"})}function Zt(){return ho({kind:"self"})}function Un(){return pt.length}function Ao(){return s.html`<svg aria-hidden="true" role="status" class="moz-circle-loader"
|
|
3
|
+
width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
4
|
+
<path d="M7 0C10.866 0 14 3.13401 14 7C14 10.866 10.866 14 7 14C3.13401 14 0 10.866 0 7C0 3.13401 3.13401 0 7 0ZM7 2C4.23858 2 2 4.23858 2 7C2 9.76142 4.23858 12 7 12C9.76142 12 12 9.76142 12 7C12 4.23858 9.76142 2 7 2Z"
|
|
5
|
+
fill="var(--moz-color-on-accent)" fill-opacity="0.180392"></path>
|
|
6
|
+
<path d="M0 7C0 3.13401 3.13401 0 7 0C7.55228 0 8 0.447715 8 1C8 1.55228 7.55228 2 7 2C4.23858 2 2 4.23858 2 7C2 9.76142 4.23858 12 7 12C9.76142 12 12 9.76142 12 7C12 6.44772 12.4477 6 13 6C13.5523 6 14 6.44772 14 7C14 10.866 10.866 14 7 14C3.13401 14 0 10.866 0 7Z"
|
|
7
|
+
fill="var(--moz-color-on-accent)" fill-opacity="0.956863"></path>
|
|
8
|
+
</svg>`}function Ro(e){return s.html`<svg aria-hidden="true" role="status" class="moz-circle-loader"
|
|
9
|
+
width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
10
|
+
<path d="M7 0C10.866 0 14 3.13401 14 7C14 10.866 10.866 14 7 14C3.13401 14 0 10.866 0 7C0 3.13401 3.13401 0 7 0ZM7 2C4.23858 2 2 4.23858 2 7C2 9.76142 4.23858 12 7 12C9.76142 12 12 9.76142 12 7C12 4.23858 9.76142 2 7 2Z"
|
|
11
|
+
fill=${e} fill-opacity="0.180392"></path>
|
|
12
|
+
<path d="M0 7C0 3.13401 3.13401 0 7 0C7.55228 0 8 0.447715 8 1C8 1.55228 7.55228 2 7 2C4.23858 2 2 4.23858 2 7C2 9.76142 4.23858 12 7 12C9.76142 12 12 9.76142 12 7C12 6.44772 12.4477 6 13 6C13.5523 6 14 6.44772 14 7C14 10.866 10.866 14 7 14C3.13401 14 0 10.866 0 7Z"
|
|
13
|
+
fill=${e} fill-opacity="0.956863"></path>
|
|
14
|
+
</svg>`}function Wn(){return s.html`<svg aria-hidden="true" role="status" class="moz-circle-loader"
|
|
15
|
+
width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
16
|
+
<path d="M7 0C10.866 0 14 3.13401 14 7C14 10.866 10.866 14 7 14C3.13401 14 0 10.866 0 7C0 3.13401 3.13401 0 7 0ZM7 2C4.23858 2 2 4.23858 2 7C2 9.76142 4.23858 12 7 12C9.76142 12 12 9.76142 12 7C12 4.23858 9.76142 2 7 2Z"
|
|
17
|
+
fill="#fde7e7"></path>
|
|
18
|
+
<path d="M0 7C0 3.13401 3.13401 0 7 0C7.55228 0 8 0.447715 8 1C8 1.55228 7.55228 2 7 2C4.23858 2 2 4.23858 2 7C2 9.76142 4.23858 12 7 12C9.76142 12 12 9.76142 12 7C12 6.44772 12.4477 6 13 6C13.5523 6 14 6.44772 14 7C14 10.866 10.866 14 7 14C3.13401 14 0 10.866 0 7Z"
|
|
19
|
+
fill="var(--moz-color-danger)"></path>
|
|
20
|
+
</svg>`}function Qo(e={}){const{circleClass:t="",progressClass:o=""}=e;return s.html`<svg
|
|
3
21
|
aria-hidden="true"
|
|
4
22
|
role="status"
|
|
5
23
|
class="moz-circle-loader"
|
|
@@ -20,58 +38,58 @@
|
|
|
20
38
|
fill="var(--moz-color-accent)"
|
|
21
39
|
class=${o}
|
|
22
40
|
></path>
|
|
23
|
-
</svg>`}const
|
|
41
|
+
</svg>`}const Jo=["large","medium","small"];function Rt(e="default"){switch(e){case"contained-critical":return"moz-critical-button";case"contained-critical-weak":return"moz-critical-weak-button";case"contained-large":return"moz-default-button moz-action-button-large";case"contained-small":return"moz-default-button moz-action-button-small";case"text":return"moz-text-button";case"outline":return"moz-outline-button";case"outline-icon":return"moz-outline-icon-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"rail":return"moz-rail-button";case"rail-home":return"moz-rail-button moz-rail-home-button";case"rail-profile":return"moz-rail-button moz-rail-profile-button";case"default":default:return"moz-default-button"}}function Kn(e){return Jo.includes(e)?e:void 0}function es(e,t){const o=Kn(t);switch(e??"default"){case"contained-large":return o??"large";case"contained-small":return o??"small";case"default":case"contained":return o;case"text":return o==="large"?void 0:o;case"outline":case"contained-critical":case"contained-critical-weak":return o==="medium"?o:void 0;default:return}}function ts(e,t){return e==="text"&&t==="neutral"}function os(e,t){const o=e??"default";return Rt(o==="contained-large"||o==="contained-small"||o==="default"||o==="contained"?t==="large"?"contained-large":t==="small"?"contained-small":"default":o)}function ss(e="default"){return e==="contained-critical-weak"?Wn():e==="contained-critical"||e==="default"||e==="contained"||e==="contained-large"||e==="contained-small"?Ao():e==="rail"||e==="rail-home"?Ro("var(--moz-color-rail-button-foreground)"):e==="rail-profile"?Ro("var(--moz-color-rail-profile-foreground)"):Qo({circleClass:"fill-accent-50",progressClass:"fill-accent-400"})}function ns(e,t){return typeof t!="boolean"?e:{...e,"aria-pressed":t?"true":"false"}}const Zn=new Set(["action","text","type","nativeType","width","size","tone","loading","disabled","pressed","class","style"]);function kt(e,t={}){const o=!!e.disabled||!!e.loading,n=t.icon!=null&&t.icon!==s.nothing,l=es(e.type,e.size),c=e.width==null?void 0:typeof e.width=="number"?`${De(e.width)}rem`:e.width,r=e.width==null?void 0:typeof e.width=="number"?`${e.width}px`:e.width,h={width:c,minWidth:c,"--moz-btn-loading-width":r,...Ce(e.style)},d=b=>{var a;o||(a=t.onClick)==null||a.call(t,b)};return s.html`
|
|
24
42
|
<button
|
|
25
43
|
type=${e.nativeType??"button"}
|
|
26
|
-
class=${V("moz-button",
|
|
27
|
-
style=${
|
|
44
|
+
class=${V("moz-button",os(e.type,l),{loading:!!e.loading,disabled:o,"moz-icon-text-button":n,"moz-text-neutral-button":ts(e.type,e.tone)},e.class)}
|
|
45
|
+
style=${te.styleMap(h)}
|
|
28
46
|
?disabled=${o}
|
|
29
|
-
@click=${
|
|
30
|
-
${
|
|
47
|
+
@click=${d}
|
|
48
|
+
${fe(ns(t.rest??{},e.pressed))}
|
|
31
49
|
data-size=${l??s.nothing}
|
|
32
50
|
aria-busy=${e.loading?"true":"false"}
|
|
33
51
|
>
|
|
34
52
|
${e.loading?s.html`<span class="spinner" data-part="spinner" aria-hidden="true"
|
|
35
|
-
>${
|
|
53
|
+
>${ss(e.type)}</span
|
|
36
54
|
>`:s.nothing}
|
|
37
55
|
${t.icon??s.nothing}
|
|
38
56
|
${e.text||t.content!=null?s.html`<span class=${V("text",{"has-icon-text":n})} data-part="label"
|
|
39
57
|
>${e.text??""}${t.content??s.nothing}</span
|
|
40
58
|
>`:s.nothing}
|
|
41
59
|
</button>
|
|
42
|
-
`}const
|
|
60
|
+
`}const ls=$e({name:"moz-button",defaults:{type:"default",loading:!1,disabled:!1},setup(e){let t=!!e.props.loading,o=e.props.loading;const n=l=>{const c=e.props;c.disabled||t||(e.emit("click",l),c.action==="Search"&&(t=!0,c.loading||(t=!1),e.requestUpdate()))};return{api:{setLoading(l){t=l,e.requestUpdate()}},render(){const l=e.props;l.loading!==o&&(o=l.loading,t=!!l.loading);const c=e.slots.has("icon"),r=!!l.disabled||t,h=es(l.type,l.size),d=l.width==null?void 0:typeof l.width=="number"?`${e.px(l.width)}rem`:l.width,b=l.width==null?void 0:typeof l.width=="number"?`${l.width}px`:l.width,a={};for(const u of Object.keys(l))Zn.has(u)||(a[u]=l[u]);const m={width:d,minWidth:d,"--moz-btn-loading-width":b,...Ce(l.style)};return s.html`
|
|
43
61
|
<button
|
|
44
62
|
type=${l.nativeType??"button"}
|
|
45
|
-
class=${V("moz-button",
|
|
46
|
-
style=${
|
|
47
|
-
?disabled=${
|
|
63
|
+
class=${V("moz-button",os(l.type,h),{loading:t,disabled:r,"moz-icon-text-button":c,"moz-text-neutral-button":ts(l.type,l.tone)},l.class)}
|
|
64
|
+
style=${te.styleMap(m)}
|
|
65
|
+
?disabled=${r}
|
|
48
66
|
@click=${n}
|
|
49
|
-
${
|
|
50
|
-
data-size=${
|
|
67
|
+
${fe(ns(a,l.pressed))}
|
|
68
|
+
data-size=${h??s.nothing}
|
|
51
69
|
aria-busy=${t?"true":"false"}
|
|
52
70
|
>
|
|
53
71
|
${t?s.html`<span class="spinner" data-part="spinner" aria-hidden="true"
|
|
54
|
-
>${
|
|
72
|
+
>${ss(l.type)}</span
|
|
55
73
|
>`:s.nothing}
|
|
56
|
-
${e.slot("icon",{disabled:
|
|
57
|
-
${l.text||e.slots.has("default")?s.html`<span class=${V("text",{"has-icon-text":
|
|
58
|
-
>${l.text??""}${e.slot("default",{disabled:
|
|
74
|
+
${e.slot("icon",{disabled:r})}
|
|
75
|
+
${l.text||e.slots.has("default")?s.html`<span class=${V("text",{"has-icon-text":c})} data-part="label"
|
|
76
|
+
>${l.text??""}${e.slot("default",{disabled:r})}</span
|
|
59
77
|
>`:s.nothing}
|
|
60
78
|
</button>
|
|
61
|
-
`}}}}),
|
|
79
|
+
`}}}}),Gn={name:"MozButton",core:ls,booleanProps:["disabled","loading","pressed"],props:["action","text","type","nativeType","width","size","tone","loading","disabled","pressed"],emits:["click"],slots:["icon","default"],expose:!0},Yn=new Set(["for","disabled","required","isReadOnly","class","style"]);function fo(e,t){return V("moz-label",{disabled:!!e.disabled,"read-only":!!e.isReadOnly},t,e.class)}function Xe(e,t,o){return s.html`<label class=${fo(e,o)} for=${Ee.ifDefined(e.for)}
|
|
62
80
|
>${t}${e.required?s.html`<span class="require-mark">*</span>`:s.nothing}</label
|
|
63
|
-
>`}const
|
|
64
|
-
class=${
|
|
81
|
+
>`}const is=$e({name:"moz-label",setup(e){return{render(){const t=e.props,o=ye(t,Yn);return s.html`<label
|
|
82
|
+
class=${fo(t)}
|
|
65
83
|
for=${Ee.ifDefined(t.for)}
|
|
66
|
-
style=${
|
|
67
|
-
${
|
|
84
|
+
style=${te.styleMap(Ce(t.style))}
|
|
85
|
+
${fe(o)}
|
|
68
86
|
>${e.slot("default")}${t.required?s.html`<span class="require-mark">*</span>`:s.nothing}</label
|
|
69
|
-
>`}}}}),
|
|
87
|
+
>`}}}}),jn={name:"MozLabel",core:is,booleanProps:["disabled","isReadOnly","required"],props:["for","disabled","required","isReadOnly"],emits:[],slots:["default"],expose:!1},Xn=new Set(["modelValue","label","labelPosition","required","readonly","disabled","visible","class","style"]);function Ht(e){const t=!!e.model;return s.html`
|
|
70
88
|
<div
|
|
71
89
|
data-part="root"
|
|
72
90
|
class=${V(e.class)}
|
|
73
|
-
style=${
|
|
74
|
-
${
|
|
91
|
+
style=${te.styleMap({...Ce(e.style),...e.visible===!1?{display:"none"}:{}})}
|
|
92
|
+
${fe(e.rest??{})}
|
|
75
93
|
>
|
|
76
94
|
<div class="moz-switch">
|
|
77
95
|
${e.labelPosition!=="right"?Xe({for:e.id,disabled:e.disabled,required:e.required},e.label??"","label-left"):s.nothing}
|
|
@@ -81,7 +99,7 @@
|
|
|
81
99
|
class="moz-switch-input"
|
|
82
100
|
type="checkbox"
|
|
83
101
|
role="switch"
|
|
84
|
-
${
|
|
102
|
+
${fe(e.inputRest??{})}
|
|
85
103
|
aria-checked=${t?"true":"false"}
|
|
86
104
|
?disabled=${!!e.disabled}
|
|
87
105
|
.checked=${t}
|
|
@@ -93,14 +111,14 @@
|
|
|
93
111
|
${e.labelPosition==="right"?Xe({for:e.id,disabled:e.disabled},e.label??"","label-right"):s.nothing}
|
|
94
112
|
</div>
|
|
95
113
|
</div>
|
|
96
|
-
`}const
|
|
114
|
+
`}const rs=$e({name:"moz-toggle",defaults:{labelPosition:"left",required:!1,readonly:!1,disabled:!1,visible:!0},setup(e){const t=ot("switch_"),o=l=>{const c=e.props;(c.disabled||c.readonly)&&(l.preventDefault(),l.stopPropagation())},n=l=>{const c=e.props;if(c.disabled||c.readonly)return;const r=l.target.checked;e.emit("change",!!r)};return{render(){const l=e.props,{aria:c,dom:r}=Wt(ye(l,Xn));return Ht({id:t,class:l.class,style:l.style,rest:r,inputRest:c,model:!!l.modelValue,label:l.label,labelPosition:l.labelPosition,required:l.required,disabled:l.disabled,visible:l.visible,onChange:n,onClick:o})}}}}),Qn={name:"MozToggle",core:rs,booleanProps:["disabled","modelValue","readonly","required","visible"],props:["label","labelPosition","required","readonly","disabled","visible"],emits:["change"],models:{modelValue:{prop:"modelValue",event:"change"}},slots:[],expose:!1};function Jn(e=""){return s.html`<svg class=${e} xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 10 10" fill="none">
|
|
97
115
|
<path
|
|
98
116
|
fill-rule="evenodd"
|
|
99
117
|
clip-rule="evenodd"
|
|
100
118
|
d="M3.72661 8.48896C3.41073 8.18004 3.40509 7.67354 3.71401 7.35766L6.04911 4.96997L3.72108 2.64854C3.40822 2.33656 3.4075 1.83003 3.71948 1.51717C4.03145 1.2043 4.53798 1.20359 4.85085 1.51556L7.73988 4.39642C8.0506 4.70626 8.05375 5.20855 7.74695 5.52226L4.85791 8.47636C4.54899 8.79224 4.04249 8.79788 3.72661 8.48896Z"
|
|
101
119
|
fill="var(--moz-color-text-subtle)"
|
|
102
120
|
></path>
|
|
103
|
-
</svg>`}function
|
|
121
|
+
</svg>`}function as(e=""){return s.html`<svg class=${e} xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 14 14" fill="none">
|
|
104
122
|
<path
|
|
105
123
|
d="M3 5.5L7.05021 9.5L11 5.5"
|
|
106
124
|
stroke="var(--moz-color-breadcrumb-separator)"
|
|
@@ -108,7 +126,7 @@
|
|
|
108
126
|
stroke-linecap="round"
|
|
109
127
|
stroke-linejoin="round"
|
|
110
128
|
></path>
|
|
111
|
-
</svg>`}function
|
|
129
|
+
</svg>`}function go(e="var(--moz-color-text-subtle)",t=""){return s.html`<svg class=${t} width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
112
130
|
<path
|
|
113
131
|
d="M8 1.5L10.163 5.875L15 6.575L11.5 9.975L12.326 14.775L8 12.5L3.674 14.775L4.5 9.975L1 6.575L5.837 5.875L8 1.5Z"
|
|
114
132
|
stroke=${e}
|
|
@@ -116,7 +134,7 @@
|
|
|
116
134
|
stroke-linecap="round"
|
|
117
135
|
stroke-linejoin="round"
|
|
118
136
|
></path>
|
|
119
|
-
</svg>`}function
|
|
137
|
+
</svg>`}function vo(e="var(--moz-color-accent)",t=""){return s.html`<svg class=${t} width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
120
138
|
<path
|
|
121
139
|
d="M8 1.5L10.163 5.875L15 6.575L11.5 9.975L12.326 14.775L8 12.5L3.674 14.775L4.5 9.975L1 6.575L5.837 5.875L8 1.5Z"
|
|
122
140
|
fill=${e}
|
|
@@ -125,47 +143,47 @@
|
|
|
125
143
|
stroke-linecap="round"
|
|
126
144
|
stroke-linejoin="round"
|
|
127
145
|
></path>
|
|
128
|
-
</svg>`}const
|
|
129
|
-
${o?
|
|
146
|
+
</svg>`}const Do=new Set(["itemSource","items","listClass","showFavorite","modelValue","class","style"]);function wo(e){const t=e.itemSource??[],o=!!e.favorite,n=e.showFavorite?e.favoriteSlot!=null?e.favoriteSlot:s.html`<button type="button" class="favorite-icon" @click=${e.onFavClick}>
|
|
147
|
+
${o?vo(void 0,"favorite-filled"):go(void 0,"empty")}
|
|
130
148
|
</button>`:s.nothing;return s.html`
|
|
131
149
|
<div
|
|
132
150
|
role="navigation"
|
|
133
151
|
aria-label=${e.ariaLabel??"breadcrumb"}
|
|
134
152
|
class=${V("moz-bread-crumb",e.class)}
|
|
135
|
-
style=${
|
|
136
|
-
${
|
|
153
|
+
style=${te.styleMap(Ce(e.style))}
|
|
154
|
+
${fe(e.rest??{})}
|
|
137
155
|
>
|
|
138
156
|
<div class="menu-item">
|
|
139
|
-
${t.map((l,
|
|
157
|
+
${t.map((l,c)=>t.length-1===c?s.html`<div class="current-item" aria-current="page">${l}</div>`:s.html`<div>${l}</div>${as("separator")}`)}
|
|
140
158
|
</div>
|
|
141
159
|
${n}${e.titleSlot??s.nothing}
|
|
142
160
|
</div>
|
|
143
|
-
`}const
|
|
144
|
-
${
|
|
145
|
-
</button>`:s.nothing,
|
|
146
|
-
${e.slots.has("separator")?e.slot("separator"):
|
|
161
|
+
`}const cs=$e({name:"moz-bread-crumb",defaults:{showFavorite:!0,modelValue:!0,itemSource:[]},setup(e){const t=()=>e.emit("click",!!e.props.modelValue),o=n=>{const l=e.props,c=!!l.modelValue,r=l.showFavorite?e.slots.has("favorite")?e.slot("favorite"):s.html`<button type="button" class="favorite-icon" @click=${t}>
|
|
162
|
+
${c?vo(void 0,"favorite-filled"):go(void 0,"empty")}
|
|
163
|
+
</button>`:s.nothing,h=()=>s.html`<li role="presentation" aria-hidden="true" class="moz-bread-crumb-separator">
|
|
164
|
+
${e.slots.has("separator")?e.slot("separator"):as("moz-bread-crumb-separator-icon")}
|
|
147
165
|
</li>`;return s.html`
|
|
148
166
|
<nav
|
|
149
167
|
aria-label=${e.locale.BreadCrumb.navigation}
|
|
150
168
|
class=${V("moz-bread-crumb","moz-bread-crumb-items",l.class)}
|
|
151
|
-
style=${
|
|
152
|
-
${
|
|
169
|
+
style=${te.styleMap(Ce(l.style))}
|
|
170
|
+
${fe(ye(l,Do))}
|
|
153
171
|
>
|
|
154
172
|
<ol class=${V("moz-bread-crumb-list",l.listClass)}>
|
|
155
|
-
${n.map((
|
|
156
|
-
<li class="moz-bread-crumb-item" aria-current=${
|
|
157
|
-
${e.slot(`item-${
|
|
173
|
+
${n.map((d,b)=>s.html`
|
|
174
|
+
<li class="moz-bread-crumb-item" aria-current=${d.current?"page":s.nothing}>
|
|
175
|
+
${e.slot(`item-${d.key}`)}
|
|
158
176
|
</li>
|
|
159
|
-
${
|
|
177
|
+
${b<n.length-1?h():s.nothing}
|
|
160
178
|
`)}
|
|
161
179
|
</ol>
|
|
162
|
-
${
|
|
180
|
+
${r}${e.slot("title")}
|
|
163
181
|
</nav>
|
|
164
|
-
`};return{render(){const n=e.props;return n.items&&n.items.length>0?o(n.items):bo({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:ye(n,zo)})}}}}),Xn={name:"MozBreadCrumb",core:es,booleanProps:["modelValue","showFavorite"],props:["itemSource","items","listClass","showFavorite"],emits:["click"],models:{modelValue:{prop:"modelValue",event:"update:modelValue"}},slots:["favorite","title","separator"],expose:!1,syncUpdate:!0},ts={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."},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%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:lt&<.tagName.toUpperCase()==="SCRIPT"&<.src||new URL("index.cjs",document.baseURI).href).href,Qn=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:lt&<.tagName.toUpperCase()==="SCRIPT"&<.src||new URL("index.cjs",document.baseURI).href).href,Jn=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:lt&<.tagName.toUpperCase()==="SCRIPT"&<.src||new URL("index.cjs",document.baseURI).href).href,el=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:lt&<.tagName.toUpperCase()==="SCRIPT"&<.src||new URL("index.cjs",document.baseURI).href).href,tl=new Set(["isReadOnly","isCustomState","headerMsg","contentMsg","filterdRowCount","totalRowCount","useImg","selectImg","messages","composed","class","style"]),ol={custom_empty:os,data_empty:Qn,result_empty:Jn,search_empty:el},sl={custom_empty:"customEmptyHeader",data_empty:"dataEmptyHeader",result_empty:"resultEmptyHeader",search_empty:"searchEmptyHeader"},nl={custom_empty:"customEmptyContent",data_empty:"dataEmptyContent",result_empty:"resultEmptyContent",search_empty:"searchEmptyContent"},ss=$e({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]||ts[n]||""},o=()=>{const n=e.props,l=n.totalRowCount??0,d=n.filterdRowCount??0;if(n.selectImg&&(l===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":l===0?n.isReadOnly?"result_empty":"data_empty":d===0?"search_empty":""};return{render(){const n=e.props,l=ye(n,tl);if(n.composed)return s.html`
|
|
182
|
+
`};return{render(){const n=e.props;return n.items&&n.items.length>0?o(n.items):wo({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:ye(n,Do)})}}}}),el={name:"MozBreadCrumb",core:cs,booleanProps:["modelValue","showFavorite"],props:["itemSource","items","listClass","showFavorite"],emits:["click"],models:{modelValue:{prop:"modelValue",event:"update:modelValue"}},slots:["favorite","title","separator"],expose:!1,syncUpdate:!0},ds={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."},us=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:Se&&Se.tagName.toUpperCase()==="SCRIPT"&&Se.src||new URL("index.cjs",document.baseURI).href).href,tl=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:Se&&Se.tagName.toUpperCase()==="SCRIPT"&&Se.src||new URL("index.cjs",document.baseURI).href).href,ol=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:Se&&Se.tagName.toUpperCase()==="SCRIPT"&&Se.src||new URL("index.cjs",document.baseURI).href).href,sl=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:Se&&Se.tagName.toUpperCase()==="SCRIPT"&&Se.src||new URL("index.cjs",document.baseURI).href).href,nl=new Set(["isReadOnly","isCustomState","headerMsg","contentMsg","filterdRowCount","totalRowCount","useImg","selectImg","messages","composed","class","style"]),ll={custom_empty:us,data_empty:tl,result_empty:ol,search_empty:sl},il={custom_empty:"customEmptyHeader",data_empty:"dataEmptyHeader",result_empty:"resultEmptyHeader",search_empty:"searchEmptyHeader"},rl={custom_empty:"customEmptyContent",data_empty:"dataEmptyContent",result_empty:"resultEmptyContent",search_empty:"searchEmptyContent"},ps=$e({name:"moz-empty-state",defaults:{isReadOnly:!0,isCustomState:!1,filterdRowCount:0,totalRowCount:0,useImg:!0,composed:!1},setup(e){const t=n=>{var c;return((c=e.props.messages)==null?void 0:c[n])||e.locale.EmptyState[n]||ds[n]||""},o=()=>{const n=e.props,l=n.totalRowCount??0,c=n.filterdRowCount??0;if(n.selectImg&&(l===0||c===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":l===0?n.isReadOnly?"result_empty":"data_empty":c===0?"search_empty":""};return{render(){const n=e.props,l=ye(n,nl);if(n.composed)return s.html`
|
|
165
183
|
<div
|
|
166
184
|
class=${V("empty-container","empty-composed","moz-empty-state",n.class)}
|
|
167
|
-
style=${
|
|
168
|
-
${
|
|
185
|
+
style=${te.styleMap(Ce(n.style))}
|
|
186
|
+
${fe(l)}
|
|
169
187
|
>
|
|
170
188
|
${e.slots.has("icon")?s.html`<div class="empty-icon">${e.slot("icon")}</div>`:s.nothing}
|
|
171
189
|
${e.slots.has("heading")?s.html`<div class="empty-heading-slot">${e.slot("heading")}</div>`:s.nothing}
|
|
@@ -173,15 +191,15 @@
|
|
|
173
191
|
${e.slots.has("actions")?s.html`<div class="empty-actions">${e.slot("actions")}</div>`:s.nothing}
|
|
174
192
|
${e.slots.has("customState")?s.html`<div class="empty-content">${e.slot("customState")}</div>`:s.nothing}
|
|
175
193
|
</div>
|
|
176
|
-
`;const
|
|
177
|
-
<div class=${V("empty-container","moz-empty-state",n.class)} style=${
|
|
178
|
-
${
|
|
179
|
-
<div class="empty-heading">${
|
|
180
|
-
<div class="empty-content"><span>${
|
|
194
|
+
`;const c=o();if(!c)return s.nothing;const r=ll[c]||us,h=typeof n.headerMsg=="string"?n.headerMsg:t(il[c]||"customEmptyHeader"),d=typeof n.contentMsg=="string"?n.contentMsg:t(rl[c]||"customEmptyContent"),b=e.slots.has("icon")?s.html`<div class="empty-icon">${e.slot("icon")}</div>`:n.useImg?s.html`<img src=${r} alt="Empty state" class="empty-img" />`:s.nothing;return s.html`
|
|
195
|
+
<div class=${V("empty-container","moz-empty-state",n.class)} style=${te.styleMap(Ce(n.style))} ${fe(l)}>
|
|
196
|
+
${b}
|
|
197
|
+
<div class="empty-heading">${h}</div>
|
|
198
|
+
<div class="empty-content"><span>${Go.unsafeHTML(d)}</span></div>
|
|
181
199
|
<div class="empty-content">${e.slot("customState")}</div>
|
|
182
200
|
${e.slots.has("actions")?s.html`<div class="empty-actions">${e.slot("actions")}</div>`:s.nothing}
|
|
183
201
|
</div>
|
|
184
|
-
`}}}}),
|
|
202
|
+
`}}}}),al={name:"MozEmptyState",core:ps,booleanProps:["composed","isCustomState","isReadOnly","useImg"],props:["isReadOnly","isCustomState","headerMsg","contentMsg","filterdRowCount","totalRowCount","useImg","selectImg","messages","composed"],emits:[],slots:["customState","icon","heading","description","actions"],expose:!1};function Co(e="var(--moz-color-border-marker)",t=!1,o=""){return s.html`<svg class=${o} data-icon="unchecked" width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
185
203
|
<path data-part="marker-surface"
|
|
186
204
|
d="M4 0H10A4 4 0 0 1 14 4V10A4 4 0 0 1 10 14H4A4 4 0 0 1 0 10V4A4 4 0 0 1 4 0Z"
|
|
187
205
|
fill=${t?"var(--moz-color-disabled)":"var(--moz-color-surface)"}
|
|
@@ -190,7 +208,7 @@
|
|
|
190
208
|
d="M4 .5H10A3.5 3.5 0 0 1 13.5 4V10A3.5 3.5 0 0 1 10 13.5H4A3.5 3.5 0 0 1 .5 10V4A3.5 3.5 0 0 1 4 .5Z"
|
|
191
209
|
stroke=${t?"var(--moz-color-text-muted)":e}
|
|
192
210
|
></path>
|
|
193
|
-
</svg>`}function
|
|
211
|
+
</svg>`}function bo(e="var(--moz-color-accent)",t=!1,o=""){return s.html`<svg class=${o} data-icon="checked" width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
194
212
|
<path data-part="marker-surface"
|
|
195
213
|
d="M4 0H10A4 4 0 0 1 14 4V10A4 4 0 0 1 10 14H4A4 4 0 0 1 0 10V4A4 4 0 0 1 4 0Z"
|
|
196
214
|
fill=${t?"var(--moz-color-text-muted)":e}
|
|
@@ -199,13 +217,13 @@
|
|
|
199
217
|
<path data-part="marker-glyph" d="M2.5 6L4.74733 8.14031C4.95328 8.33646 5.28115 8.32154 5.46844 8.10749L9.5 3.5"
|
|
200
218
|
stroke="var(--moz-color-on-accent)" stroke-width="1.4" stroke-linecap="round"></path>
|
|
201
219
|
</svg>
|
|
202
|
-
</svg>`}function
|
|
220
|
+
</svg>`}function yo(e="var(--moz-color-accent)",t=!1,o=""){return s.html`<svg class=${o} data-icon="indeterminate" width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
203
221
|
<rect data-part="marker-surface" width="14" height="14" rx="4" fill=${t?"var(--moz-color-text-muted)":e}></rect>
|
|
204
222
|
<path data-part="marker-glyph" d="M3.5 7H10.5" stroke="var(--moz-color-on-accent)" stroke-width="1.4" stroke-linecap="round"></path>
|
|
205
|
-
</svg>`}const
|
|
223
|
+
</svg>`}const cl=new Set(["label","fieldId","disabled","readonly","checked","indeterminate","modelValue","class","style"]);function qt(e={}){const t=!!e.checked,o=!!e.disabled,n=!!e.indeterminate,l=()=>{var c;o||(c=e.onChange)==null||c.call(e,!t)};return s.html`
|
|
206
224
|
<div
|
|
207
225
|
class=${V("moz-checkbox",{"cursor-pointer":!o,"cursor-not-allowed":o,disabled:o},e.class)}
|
|
208
|
-
@click=${
|
|
226
|
+
@click=${c=>{o||(c.preventDefault(),c.stopPropagation(),l())}}
|
|
209
227
|
>
|
|
210
228
|
<div class="checkbox-icon-wrapper">
|
|
211
229
|
<input
|
|
@@ -215,140 +233,140 @@
|
|
|
215
233
|
.indeterminate=${n}
|
|
216
234
|
?disabled=${o}
|
|
217
235
|
tabindex=${o?-1:0}
|
|
218
|
-
@click=${
|
|
219
|
-
@change=${
|
|
236
|
+
@click=${c=>c.stopPropagation()}
|
|
237
|
+
@change=${c=>{c.target.checked=t,c.target.indeterminate=n,l()}}
|
|
220
238
|
/>
|
|
221
239
|
<div class="checkbox-visual">
|
|
222
|
-
${n
|
|
240
|
+
${n?yo(void 0,o,"checked-icon"):t?bo(void 0,o,"checked-icon"):Co(void 0,o,"check-icon")}
|
|
223
241
|
</div>
|
|
224
242
|
</div>
|
|
225
243
|
</div>
|
|
226
|
-
`}const
|
|
244
|
+
`}const hs=$e({name:"moz-checkbox",defaults:{disabled:!1,readonly:!1,indeterminate:!1,modelValue:!1},setup(e){const t=Mt();let o=!1;const n=()=>{const m=e.props;return e.controlled("checked")?m.checked??!1:m.modelValue??!1},l=()=>{const m=!n();e.controlled("checked")||e.emit("update:modelValue",m),e.emit("change",m)},c=m=>{var E;const u=e.props;u.disabled||u.readonly||(m.preventDefault(),m.stopPropagation(),l(),(E=m.currentTarget.querySelector("input"))==null||E.focus())},r=m=>m.stopPropagation(),h=m=>{const u=e.props,E=m.target;if(E.indeterminate=!!u.indeterminate,u.readonly){E.checked=n();return}const x=E.checked;e.controlled("checked")?(E.checked=n(),e.emit("change",x)):(e.emit("update:modelValue",x),e.emit("change",x))},d=m=>{const u=e.props;u.disabled||u.readonly||(m.key==="Enter"||m.key===" ")&&(m.preventDefault(),l())},b=()=>{o=!0,e.requestUpdate()},a=()=>{o=!1,e.requestUpdate()};return{render(){const m=e.props,u=m.fieldId||t,E=n(),x=ye(m,cl);return s.html`
|
|
227
245
|
<div
|
|
228
|
-
class=${V("moz-checkbox",{"cursor-pointer":!
|
|
229
|
-
style=${
|
|
230
|
-
@click=${
|
|
246
|
+
class=${V("moz-checkbox moz-checkbox-control",{"cursor-pointer":!m.disabled&&!m.readonly,"cursor-not-allowed":m.disabled,disabled:m.disabled,"cursor-default":m.readonly&&!m.disabled},m.class)}
|
|
247
|
+
style=${te.styleMap(Ce(m.style))}
|
|
248
|
+
@click=${c}
|
|
231
249
|
>
|
|
232
250
|
<div class="checkbox-icon-wrapper">
|
|
233
251
|
<input
|
|
234
|
-
id=${
|
|
252
|
+
id=${u}
|
|
235
253
|
type="checkbox"
|
|
236
|
-
class=${V("checkbox-input",{"cursor-pointer":!
|
|
237
|
-
${
|
|
238
|
-
.checked=${
|
|
239
|
-
.indeterminate=${!!
|
|
240
|
-
?disabled=${!!
|
|
241
|
-
tabindex=${
|
|
242
|
-
@click=${
|
|
243
|
-
@change=${
|
|
244
|
-
@focus=${
|
|
245
|
-
@blur=${
|
|
246
|
-
@keydown=${
|
|
254
|
+
class=${V("checkbox-input",{"cursor-pointer":!m.disabled&&!m.readonly,"cursor-not-allowed":m.disabled,"cursor-default":m.readonly&&!m.disabled})}
|
|
255
|
+
${fe(x)}
|
|
256
|
+
.checked=${E}
|
|
257
|
+
.indeterminate=${!!m.indeterminate}
|
|
258
|
+
?disabled=${!!m.disabled}
|
|
259
|
+
tabindex=${m.disabled?-1:0}
|
|
260
|
+
@click=${r}
|
|
261
|
+
@change=${h}
|
|
262
|
+
@focus=${b}
|
|
263
|
+
@blur=${a}
|
|
264
|
+
@keydown=${d}
|
|
247
265
|
/>
|
|
248
266
|
<div class=${V("checkbox-visual",{focused:o})}>
|
|
249
|
-
${
|
|
267
|
+
${m.indeterminate?yo(void 0,!!m.disabled,"checked-icon"):E?bo(void 0,!!m.disabled,"checked-icon"):Co(void 0,!!m.disabled,"check-icon")}
|
|
250
268
|
</div>
|
|
251
269
|
</div>
|
|
252
|
-
${
|
|
270
|
+
${m.label?Xe({for:u,disabled:m.disabled},m.label,"moz-checkbox-label"):s.nothing}
|
|
253
271
|
</div>
|
|
254
|
-
`}}}}),
|
|
272
|
+
`}}}}),dl={name:"MozCheckBox",core:hs,booleanProps:["checked","disabled","indeterminate","modelValue","readonly"],props:["label","fieldId","disabled","readonly","checked","indeterminate","modelValue"],emits:["change","update:modelValue"],slots:[],expose:!1},ms=["accent","neutral","info","success","warning","danger"],ul=new Set(["label","text","disabled","required","displayExpr","valueExpr","tooltipExpr","disabledExpr","toneExpr","itemsSource","value","name","direction","variant","size","widthMode","iconOnly","labelPosition","modelValue","class","style"]),fs=$e({name:"moz-radio",defaults:{label:"",text:"",disabled:!1,required:!1,displayExpr:"label",valueExpr:"value",tooltipExpr:"tooltip",disabledExpr:"disabled",toneExpr:"tone",itemsSource:[],direction:"horizontal",variant:"boxed",size:"md",widthMode:"hug",iconOnly:!1,labelPosition:"top"},setup(e){const t=ot("radio_"),o=d=>d.key===" "||d.key==="Enter"||d.key==="Spacebar"||d.key==="Space"||d.code==="Space"||d.code==="Enter"||d.keyCode===32||d.keyCode===13,n=d=>typeof requestAnimationFrame=="function"?requestAnimationFrame(d):setTimeout(d,16),l=d=>{const b=d[e.props.toneExpr??"tone"];return typeof b=="string"&&ms.includes(b)?b:void 0},c=d=>{const b=e.props;return!!b.disabled||d[b.disabledExpr??"disabled"]===!0},r=(d,b)=>{const a=e.props,m=a.itemsSource??[];return V("label-container",{boxed:a.variant==="boxed","first-h":a.variant==="boxed"&&a.direction==="horizontal"&&d===0,"last-h":a.variant==="boxed"&&a.direction==="horizontal"&&d===m.length-1,"first-v":a.variant==="boxed"&&a.direction==="vertical"&&d===0,"last-v":a.variant==="boxed"&&a.direction==="vertical"&&d===m.length-1,disabled:b})},h=d=>{const b=e.props;return b.variant!=="boxed"||d===0?{}:b.direction==="horizontal"?{marginInlineStart:"-1px"}:{marginBlockStart:"-1px"}};return{render(){const d=e.props,b=d.itemsSource??[],a=d.valueExpr??"value",m=d.displayExpr??"label",u=!!d.disabled,E=d.modelValue,x=d.value!==void 0&&b.length===0,$=!x&&d.variant==="segment",P=ye(d,ul),L=()=>s.html`
|
|
255
273
|
<div class="radio-container">
|
|
256
274
|
<div class="radio">
|
|
257
|
-
<label for=${t} class=${V("label-container",{disabled:
|
|
275
|
+
<label for=${t} class=${V("label-container",{disabled:u})}>
|
|
258
276
|
<div class="radio-icon-wrapper">
|
|
259
277
|
<input
|
|
260
278
|
type="radio"
|
|
261
|
-
name=${
|
|
279
|
+
name=${d.name||t}
|
|
262
280
|
id=${t}
|
|
263
|
-
.checked=${String(
|
|
264
|
-
?disabled=${
|
|
281
|
+
.checked=${String(E)===String(d.value)}
|
|
282
|
+
?disabled=${u}
|
|
265
283
|
class="radio-input"
|
|
266
|
-
@keydown=${
|
|
267
|
-
@change=${()=>{
|
|
284
|
+
@keydown=${F=>{o(F)&&!u&&e.emit("update:modelValue",String(d.value))}}
|
|
285
|
+
@change=${()=>{u||e.emit("update:modelValue",String(d.value))}}
|
|
268
286
|
/>
|
|
269
287
|
<span
|
|
270
|
-
class=${V("dot",{active:String(
|
|
288
|
+
class=${V("dot",{active:String(E)===String(d.value),disabled:u,"borderless-focus":!u})}
|
|
271
289
|
></span>
|
|
272
290
|
</div>
|
|
273
|
-
${
|
|
291
|
+
${d.text?s.html`<span class="radio-label-text">${d.text}</span>`:s.nothing}
|
|
274
292
|
</label>
|
|
275
293
|
</div>
|
|
276
294
|
</div>
|
|
277
|
-
`,g=()=>{const
|
|
295
|
+
`,g=()=>{const F=_=>String(E)===String(_[a]??""),I=b.length,K=b.findIndex(F),oe=(_,J)=>{for(let z=1;z<=I;z+=1){const W=(_+J*z+I*I)%I;if(!c(b[W]))return W}return-1},re=_=>{for(let J=0;J<I;J+=1){const z=_===1?J:I-1-J;if(!c(b[z]))return z}return-1},j=K>=0&&!c(b[K])?K:re(1),k=_=>Array.from(_.querySelectorAll('[role="radio"]')),R=(_,J)=>{if(J<0)return;_.preventDefault(),_.stopPropagation();const z=_.currentTarget,W=k(z)[J];W==null||W.focus(),e.emit("update:modelValue",b[J][a]??"");let Z=0;const G=()=>{const Q=k(z)[J];if(Q&&Q.getAttribute("aria-checked")==="true"){document.activeElement!==Q&&Q.focus();return}++Z<20&&n(G)};n(G)},X=_=>{var G,Q;if(u||I===0)return;const J=_.currentTarget,z=(Q=(G=_.target)==null?void 0:G.closest)==null?void 0:Q.call(G,'[role="radio"]'),W=z?k(J).indexOf(z):-1,Z=W>=0?W:K>=0?K:0;switch(_.key){case"ArrowRight":case"ArrowDown":R(_,oe(Z,1));break;case"ArrowLeft":case"ArrowUp":R(_,oe(Z,-1));break;case"Home":R(_,re(1));break;case"End":R(_,re(-1));break}},se=!!d.iconOnly,N=e.slots.has("item-icon"),ne=!se&&e.slots.has("item-badge");return s.html`
|
|
278
296
|
<div
|
|
279
|
-
class=${V("radio-container",{segment:!0,"disabled-container":
|
|
280
|
-
@keydown=${
|
|
281
|
-
@click=${
|
|
297
|
+
class=${V("radio-container",{segment:!0,"disabled-container":u,"size-sm":d.size==="sm","size-md":d.size!=="sm","icon-only":se})}
|
|
298
|
+
@keydown=${X}
|
|
299
|
+
@click=${_=>_.stopPropagation()}
|
|
282
300
|
>
|
|
283
|
-
${
|
|
301
|
+
${b.map((_,J)=>{const z=F(_),W=c(_),Z=String(_[m]??""),G=Z||String(_[a]??""),Q={item:_,index:J,active:z,disabled:W};return s.html`
|
|
284
302
|
<button
|
|
285
303
|
type="button"
|
|
286
304
|
role="radio"
|
|
287
|
-
aria-checked=${
|
|
288
|
-
aria-label=${
|
|
289
|
-
data-value=${String(
|
|
290
|
-
data-tone=${l(
|
|
291
|
-
tabindex=${
|
|
292
|
-
?disabled=${
|
|
293
|
-
class=${V("segment-button",{"is-active":
|
|
294
|
-
@click=${()=>{
|
|
305
|
+
aria-checked=${z?"true":"false"}
|
|
306
|
+
aria-label=${se?G:s.nothing}
|
|
307
|
+
data-value=${String(_[a]??"")}
|
|
308
|
+
data-tone=${l(_)??s.nothing}
|
|
309
|
+
tabindex=${J===j?"0":"-1"}
|
|
310
|
+
?disabled=${W}
|
|
311
|
+
class=${V("segment-button",{"is-active":z,disabled:W})}
|
|
312
|
+
@click=${()=>{W||e.emit("update:modelValue",_[a]??"")}}
|
|
295
313
|
>
|
|
296
|
-
${
|
|
297
|
-
${
|
|
298
|
-
${
|
|
314
|
+
${N?s.html`<span class="segment-icon">${e.slot("item-icon",Q)}</span>`:s.nothing}
|
|
315
|
+
${se?s.nothing:Z}
|
|
316
|
+
${ne?s.html`<span class="segment-badge">${e.slot("item-badge",Q)}</span>`:s.nothing}
|
|
299
317
|
</button>
|
|
300
318
|
`})}
|
|
301
319
|
</div>
|
|
302
|
-
`},
|
|
320
|
+
`},i=()=>s.html`
|
|
303
321
|
<div
|
|
304
|
-
class=${V("radio-container",{"disabled-container":
|
|
322
|
+
class=${V("radio-container",{"disabled-container":u,borderless:d.variant==="borderless",vertical:d.direction==="vertical"})}
|
|
305
323
|
>
|
|
306
|
-
${
|
|
324
|
+
${b.map((F,I)=>{const K=c(F);return s.html`
|
|
307
325
|
<div class="radio">
|
|
308
326
|
<label
|
|
309
|
-
for=${`${t}_${
|
|
310
|
-
class=${
|
|
311
|
-
style=${
|
|
327
|
+
for=${`${t}_${I}`}
|
|
328
|
+
class=${r(I,K)}
|
|
329
|
+
style=${te.styleMap(h(I))}
|
|
312
330
|
>
|
|
313
331
|
<div class="radio-icon-wrapper">
|
|
314
332
|
<input
|
|
315
333
|
type="radio"
|
|
316
|
-
name=${
|
|
317
|
-
id=${`${t}_${
|
|
318
|
-
.checked=${
|
|
319
|
-
?disabled=${
|
|
334
|
+
name=${d.name||t}
|
|
335
|
+
id=${`${t}_${I}`}
|
|
336
|
+
.checked=${E===String(F[a]??"")}
|
|
337
|
+
?disabled=${K}
|
|
320
338
|
class="radio-input"
|
|
321
|
-
@keydown=${
|
|
322
|
-
@change=${()=>e.emit("update:modelValue",String(
|
|
339
|
+
@keydown=${oe=>{o(oe)&&e.emit("update:modelValue",String(F[a]??""))}}
|
|
340
|
+
@change=${()=>e.emit("update:modelValue",String(F[a]??""))}
|
|
323
341
|
/>
|
|
324
342
|
<span
|
|
325
|
-
class=${V("dot",{active:
|
|
343
|
+
class=${V("dot",{active:E===String(F[a]??""),disabled:K,"borderless-focus":d.variant!=="boxed"&&!K})}
|
|
326
344
|
></span>
|
|
327
345
|
</div>
|
|
328
|
-
<span class="radio-label-text">${String(
|
|
346
|
+
<span class="radio-label-text">${String(F[m]??"")}</span>
|
|
329
347
|
</label>
|
|
330
348
|
</div>
|
|
331
349
|
`})}
|
|
332
350
|
</div>
|
|
333
|
-
`,
|
|
351
|
+
`,p="aria-label"in P||"aria-labelledby"in P,y=$&&!p&&d.label?d.label:s.nothing;return s.html`
|
|
334
352
|
<div
|
|
335
|
-
class=${V("moz-radio-buttons",{"label-position-left":
|
|
336
|
-
style=${
|
|
337
|
-
role=${
|
|
338
|
-
aria-label=${
|
|
339
|
-
${
|
|
353
|
+
class=${V("moz-radio-buttons",{"label-position-left":d.labelPosition==="left","segment-width-fixed":$&&d.widthMode==="fixed","segment-width-full":$&&d.widthMode==="full"},d.class)}
|
|
354
|
+
style=${te.styleMap(Ce(d.style))}
|
|
355
|
+
role=${$?"radiogroup":s.nothing}
|
|
356
|
+
aria-label=${y}
|
|
357
|
+
${fe(P)}
|
|
340
358
|
>
|
|
341
|
-
${
|
|
342
|
-
${L
|
|
359
|
+
${d.label?Xe({disabled:u,required:d.required},d.label):s.nothing}
|
|
360
|
+
${x?L():$?g():i()}
|
|
343
361
|
</div>
|
|
344
|
-
`}}}}),
|
|
362
|
+
`}}}}),pl={name:"MozRadio",core:fs,booleanProps:["disabled","iconOnly","required"],props:["label","text","disabled","required","displayExpr","valueExpr","tooltipExpr","disabledExpr","toneExpr","itemsSource","value","name","direction","variant","size","widthMode","iconOnly","labelPosition","modelValue"],emits:["update:modelValue"],slots:[],expose:!1};function $o(e="var(--moz-color-text-subtle)"){return s.html`<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
345
363
|
<g>
|
|
346
364
|
<path
|
|
347
365
|
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"
|
|
348
366
|
fill=${e}
|
|
349
367
|
></path>
|
|
350
368
|
</g>
|
|
351
|
-
</svg>`}function
|
|
369
|
+
</svg>`}function hl(){return s.html`<svg data-icon="password-hidden" width="18" height="18" viewBox="0 0 18 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
352
370
|
<path d="M1.5 1.5L16.5 14.5" stroke="var(--moz-color-text-secondary)" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
353
371
|
<path
|
|
354
372
|
d="M7.5 8C7.5 7.17157 8.17157 6.5 9 6.5C9.82843 6.5 10.5 7.17157 10.5 8C10.5 8.82843 9.82843 9.5 9 9.5C8.17157 9.5 7.5 8.82843 7.5 8Z"
|
|
@@ -362,7 +380,7 @@
|
|
|
362
380
|
stroke-linecap="round"
|
|
363
381
|
stroke-linejoin="round"
|
|
364
382
|
></path>
|
|
365
|
-
</svg>`}function
|
|
383
|
+
</svg>`}function ml(){return s.html`<svg data-icon="password-visible" width="18" height="18" viewBox="0 0 18 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
366
384
|
<path
|
|
367
385
|
d="M7.5 6C7.5 5.17157 8.17157 4.5 9 4.5C9.82843 4.5 10.5 5.17157 10.5 6C10.5 6.82843 9.82843 7.5 9 7.5C8.17157 7.5 7.5 6.82843 7.5 6Z"
|
|
368
386
|
stroke="var(--moz-color-text-secondary)"
|
|
@@ -375,216 +393,251 @@
|
|
|
375
393
|
stroke-linecap="round"
|
|
376
394
|
stroke-linejoin="round"
|
|
377
395
|
></path>
|
|
378
|
-
</svg>`}const
|
|
379
|
-
class=${V("moz-input",{disabled:
|
|
380
|
-
id=${
|
|
381
|
-
name=${Ee.ifDefined(
|
|
396
|
+
</svg>`}const fl=new Set(["id","label","value","name","type","placeholder","required","disabled","isReadOnly","rules","width","messagePosition","requiredMessage","useInvalidV2","modelValue","class","style"]),gl={type:"text",required:!1,disabled:!1,isReadOnly:!1,rules:[],messagePosition:"outside",width:"100%",useInvalidV2:!1},vl=typeof navigator<"u"&&/Edg/.test(navigator.userAgent);function wl(e,t={}){const o=!!t.legacyPassword;let n=!1;const l=Mt(),c={change:"",blur:"",save:""},r={change:0,blur:0,save:0};let h=0,d=!1,b,a;const m=()=>{const i=e.props,p=[String(i.modelValue??""),i.disabled,i.isReadOnly,i.required,i.requiredMessage,i.label,i.name,i.rules,...(i.rules??[]).flatMap(y=>[y.type,y.message,y.validator])];if(b){const y=!Object.is(p[0],b[0]),F=y&&p[0]===a;(p.length!==b.length||p.some((I,K)=>!Object.is(I,b[K])&&!(K===0&&F)))&&h++,y&&(a=void 0)}b=p};e.onCleanup(()=>{d=!0,h++});const u=()=>{const i=e.props,p=[];return i.required&&p.push({message:i.requiredMessage??e.locale.Common.requiredMessage.replace("{label}",i.label||i.name||""),type:"save",validator:y=>!!y}),[...p,...i.rules??[]]},E=async(i,p)=>{m();const y=++r[p],F=h,I=()=>!d&&h===F&&r[p]===y,K=e.props,oe=u();if(oe.length<=0||K.disabled||K.isReadOnly)return!0;c[p]="";const re=oe.filter(j=>j.type===p);for(const j of re){let k;try{k=await j.validator(i)}finally{m()}if(!k)return I()&&(c[p]=j.message,e.requestUpdate()),!1}return I()&&(c[p]="",e.requestUpdate()),!0},x=i=>{const p=i.target.value;m(),a=p,r.save++,r.blur++,c.save="",c.blur="",e.emit("update:modelValue",p),E(p,"change")},$=i=>{const p=i.target.value;E(p,"blur"),e.requestUpdate()},P=i=>{i.key==="Enter"&&e.emit("enter",i)},L=()=>{e.props.disabled||(n=!n,e.requestUpdate())},g={validate:(i="save")=>E(String(e.props.modelValue??""),i),initValidator:()=>{h++,c.change="",c.blur="",c.save="",e.requestUpdate()}};return e.validator&&(e.validator.addValidator(g),e.onCleanup(()=>{var i;return(i=e.validator)==null?void 0:i.removeValidator(g)})),{onMounted:i=>{e.emit("mounted",(i==null?void 0:i.querySelector("input"))??null)},render(){m();const i=e.props,p=String(i.modelValue??""),y=c.save||c.blur||c.change,F=!!i.useInvalidV2,I=i.width?typeof i.width=="number"?`${i.width}px`:i.width:"100%",K=ye(i,fl),oe=i.id==null||i.id===""?l:String(i.id),re=o||i.type==="password";(!re||i.disabled)&&(n=!1);const j=re?n?"text":"password":i.type??"text";o&&K.autocomplete==null&&(K.autocomplete="new-password");const k=F&&y!=="",R=!F&&y!=="",X=e.slots.has("prefixIcon"),se=s.html`<input
|
|
397
|
+
class=${V("moz-input",{disabled:i.disabled,"read-only":i.isReadOnly,"is-filled":p!=="","has-prefix-icon":X,"has-inside-message":!F&&i.messagePosition==="inside"&&y!=="","has-invalid-icon":k,"has-password-toggle":re,"edge-password":re&&vl})}
|
|
398
|
+
id=${oe}
|
|
399
|
+
name=${Ee.ifDefined(i.name)}
|
|
382
400
|
type=${j}
|
|
383
|
-
placeholder=${Ee.ifDefined(
|
|
384
|
-
?disabled=${!!
|
|
385
|
-
?readonly=${!!
|
|
386
|
-
.value=${uo.live(
|
|
387
|
-
${
|
|
388
|
-
@input=${
|
|
401
|
+
placeholder=${Ee.ifDefined(i.placeholder)}
|
|
402
|
+
?disabled=${!!i.disabled}
|
|
403
|
+
?readonly=${!!i.isReadOnly}
|
|
404
|
+
.value=${uo.live(p)}
|
|
405
|
+
${fe(K)}
|
|
406
|
+
@input=${x}
|
|
389
407
|
@keypress=${P}
|
|
390
|
-
@blur=${
|
|
391
|
-
/>`,ne
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
>${
|
|
395
|
-
>`:s.nothing,
|
|
396
|
-
|
|
408
|
+
@blur=${$}
|
|
409
|
+
/>`,N={disabled:!!i.disabled,isReadOnly:!!i.isReadOnly,invalid:y!==""},ne=X?s.html`<span class=${V("moz-input-prefix-icon",{disabled:i.disabled})} aria-hidden="true" inert
|
|
410
|
+
>${e.slot("prefixIcon",N)}</span
|
|
411
|
+
>`:s.nothing,_=k?s.html`<div class="moz-input-invalid-icon-v2">
|
|
412
|
+
${e.slots.has("invalidTooltip")?e.slot("invalidTooltip",{message:y}):s.html`<div title=${y}>${$o("var(--moz-color-danger)")}</div>`}
|
|
413
|
+
</div>`:s.nothing,J=R?s.html`<span class=${V("moz-input-invalid-message",`position-${i.messagePosition}`)}
|
|
414
|
+
>${y}</span
|
|
415
|
+
>`:s.nothing,z=i.label?Xe({for:oe,isReadOnly:i.isReadOnly,required:i.required},i.label,V("input-label",{"moz-input-label":o,"input-label-disabled":i.disabled&&!i.isReadOnly,"input-label-read-only":i.isReadOnly&&!i.disabled})):s.nothing,W=V("moz-input-wrapper",{"is-invalid":y!=="","is-password":re,"moz-password-input-container":o,disabled:o&&i.disabled},i.class),Z=te.styleMap({width:I,...Ce(i.style)});return re?s.html`
|
|
416
|
+
<div class=${W} style=${Z}>
|
|
397
417
|
<div class="input-wrapper">
|
|
398
|
-
${
|
|
418
|
+
${z}
|
|
399
419
|
<div class="moz-password-input-wrapper">
|
|
400
|
-
${
|
|
420
|
+
${ne}${se}
|
|
401
421
|
<button
|
|
402
422
|
type="button"
|
|
403
423
|
aria-label=${n?e.locale.PasswordInput.hidePassword:e.locale.PasswordInput.showPassword}
|
|
404
424
|
aria-pressed=${n?"true":"false"}
|
|
405
|
-
aria-controls=${
|
|
406
|
-
class=${V("icon-container password-icon",{"cursor-pointer":!
|
|
407
|
-
?disabled=${!!
|
|
408
|
-
@click=${
|
|
425
|
+
aria-controls=${oe}
|
|
426
|
+
class=${V("icon-container password-icon",{"cursor-pointer":!i.disabled,"cursor-not-allowed":i.disabled})}
|
|
427
|
+
?disabled=${!!i.disabled}
|
|
428
|
+
@click=${L}
|
|
409
429
|
>
|
|
410
|
-
${n?
|
|
430
|
+
${n?hl():ml()}
|
|
411
431
|
</button>
|
|
412
|
-
${
|
|
432
|
+
${_} ${J}
|
|
413
433
|
</div>
|
|
414
434
|
</div>
|
|
415
435
|
</div>
|
|
416
436
|
`:s.html`
|
|
417
|
-
<div class=${
|
|
437
|
+
<div class=${W} style=${Z}>
|
|
418
438
|
<div class="input-wrapper">
|
|
419
|
-
${
|
|
439
|
+
${z} ${ne}${se} ${_} ${J}
|
|
420
440
|
</div>
|
|
421
441
|
</div>
|
|
422
|
-
`}}}const
|
|
442
|
+
`}}}const gs=$e({name:"moz-input",defaults:gl,setup:e=>wl(e)}),Cl={name:"MozInput",core:gs,booleanProps:["required","disabled","isReadOnly","useInvalidV2"],props:["id","label","value","name","type","placeholder","required","disabled","isReadOnly","rules","width","messagePosition","requiredMessage","useInvalidV2","modelValue"],emits:["enter","mounted","update:modelValue"],slots:["invalidTooltip","prefixIcon"],expose:!1},bl=new Set(["id","label","width","height","required","disabled","rules","maxLength","resize","variant","immediatelyFocus","requiredMessage","modelValue","class","style"]),vs=$e({name:"moz-textarea",defaults:{height:80,required:!1,disabled:!1,rules:[],maxLength:null,resize:"none",variant:"default",immediatelyFocus:!1,modelValue:""},setup(e){const t=Mt(),o={change:"",blur:"",save:""},n=()=>{const a=e.props,m=[];return a.required&&m.push({message:a.requiredMessage??e.locale.Common.requiredMessage.replace("{label}",a.label||""),type:"save",validator:u=>!!u}),[...m,...a.rules??[]]},l=async(a,m)=>{const u=e.props,E=n();if(E.length<=0||u.disabled)return!0;o[m]="";for(const x of E.filter($=>$.type===m))if(!await x.validator(a))return o[m]=x.message,e.requestUpdate(),!1;return e.requestUpdate(),!0},c=a=>{const m=a.target,u=e.props;m.value&&u.maxLength&&m.value.length>u.maxLength&&(m.value=m.value.slice(0,u.maxLength)),e.emit("update:modelValue",m.value),l(m.value,"change")},r=a=>{l(a.target.value,"blur")},h=()=>{o.save="",e.requestUpdate()},d={handleEvent(a){e.props.disabled&&(a.preventDefault(),a.stopPropagation())},capture:!0},b={validate:(a="save")=>l(String(e.props.modelValue??""),a),initValidator:()=>{o.change=o.blur=o.save="",e.requestUpdate()}};return e.validator&&(e.validator.addValidator(b),e.onCleanup(()=>{var a;return(a=e.validator)==null?void 0:a.removeValidator(b)})),{onMounted:a=>{var m;e.props.immediatelyFocus&&((m=a==null?void 0:a.querySelector("textarea"))==null||m.focus())},render(){const a=e.props,m=String(a.modelValue??""),u=o.save||o.blur||o.change,E=a.width?typeof a.width=="number"?`${De(a.width)}rem`:a.width:"100%",x=`${De(a.height??80)}rem`,$=a.resize??"none",P=$==="none"?{height:x}:{minHeight:x},L=m.length,g=ye(a,bl),i=a.id==null||a.id===""?t:String(a.id),p=a.variant==="pill"||a.variant==="borderless"?a.variant:"default",y=!!a.disabled,F=e.slots.has("suffix"),I={disabled:y};return s.html`
|
|
423
443
|
<div
|
|
424
|
-
class=${V("moz-textarea-wrapper",{disabled:
|
|
425
|
-
|
|
444
|
+
class=${V("moz-textarea-wrapper",{disabled:a.disabled},a.class)}
|
|
445
|
+
data-variant=${Ee.ifDefined(p==="default"?void 0:p)}
|
|
446
|
+
style=${te.styleMap({width:E,...P,...Ce(a.style)})}
|
|
426
447
|
>
|
|
427
448
|
<div class="textarea-inner">
|
|
428
|
-
${
|
|
429
|
-
<div
|
|
449
|
+
${a.label?Xe({for:i,disabled:a.disabled,required:a.required},a.label):s.nothing}
|
|
450
|
+
<div
|
|
451
|
+
class=${V("moz-textarea-box",{disabled:a.disabled,invalid:u!=="","has-suffix":F})}
|
|
452
|
+
>
|
|
430
453
|
<textarea
|
|
431
|
-
id=${
|
|
432
|
-
${
|
|
433
|
-
.value=${uo.live(
|
|
434
|
-
?disabled=${!!
|
|
435
|
-
maxlength=${Ee.ifDefined(
|
|
436
|
-
class=${V("moz-textarea",{disabled:
|
|
437
|
-
style=${
|
|
438
|
-
@input=${
|
|
439
|
-
@blur=${
|
|
440
|
-
@focus=${
|
|
454
|
+
id=${i}
|
|
455
|
+
${fe(g)}
|
|
456
|
+
.value=${uo.live(m)}
|
|
457
|
+
?disabled=${!!a.disabled}
|
|
458
|
+
maxlength=${Ee.ifDefined(a.maxLength??void 0)}
|
|
459
|
+
class=${V("moz-textarea",{disabled:a.disabled})}
|
|
460
|
+
style=${te.styleMap({resize:$==="none"?void 0:$,height:$==="none"?void 0:"auto"})}
|
|
461
|
+
@input=${c}
|
|
462
|
+
@blur=${r}
|
|
463
|
+
@focus=${h}
|
|
441
464
|
></textarea>
|
|
442
|
-
${
|
|
465
|
+
${a.maxLength?s.html`<div class="char-counter"><span>${L}</span><span>/</span><span>${a.maxLength}</span></div>`:s.nothing}
|
|
466
|
+
${F?s.html`<div class="moz-textarea-suffix" ?inert=${y} @click=${d}>
|
|
467
|
+
${e.slot("suffix",I)}
|
|
468
|
+
</div>`:s.nothing}
|
|
443
469
|
</div>
|
|
444
470
|
</div>
|
|
445
471
|
${u!==""?s.html`<span class="moz-textarea-invalid-message">${u}</span>`:s.nothing}
|
|
446
472
|
</div>
|
|
447
|
-
`}}}}),
|
|
473
|
+
`}}}}),yl={name:"MozTextArea",core:vs,booleanProps:["disabled","immediatelyFocus","required"],props:["id","label","width","height","required","disabled","rules","maxLength","resize","variant","immediatelyFocus","requiredMessage","modelValue"],emits:["update:modelValue"],slots:["suffix"],expose:!1};function $l(e="var(--moz-color-on-accent)",t=!1){return s.html`<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
448
474
|
<path d="M7 2V12M2 7H12" stroke=${t?"var(--moz-color-text-muted)":e} stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
449
|
-
</svg>`}function
|
|
475
|
+
</svg>`}function Sl(e="var(--moz-color-on-accent)",t=!1){return s.html`<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
450
476
|
<path d="M2 7H12" stroke=${t?"var(--moz-color-text-muted)":e} stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
451
|
-
</svg>`}function
|
|
477
|
+
</svg>`}function kl(e=!1){return s.html`<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
452
478
|
<path d="M9.50097 7.73588L5.95565 4.27686L2.49904 7.73588" stroke=${e?"var(--moz-color-text-muted)":"var(--moz-color-text-subtle)"} stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
453
|
-
</svg>`}function
|
|
479
|
+
</svg>`}function El(e=!1){return s.html`<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
454
480
|
<path d="M2.49901 4.27686L6.04435 7.73588L9.50099 4.27686" stroke=${e?"var(--moz-color-text-muted)":"var(--moz-color-text-subtle)"} stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
455
|
-
</svg>`}const
|
|
481
|
+
</svg>`}const Ll=new Set(["id","label","name","width","required","requiredMessage","rules","messagePosition","useInvalidV2","isReadOnly","step","min","max","disabled","shortMode","nullable","modelValue","class","style"]),ws=$e({name:"moz-number-input",defaults:{label:"",width:100,required:!1,rules:[],messagePosition:"outside",useInvalidV2:!1,isReadOnly:!1,step:1,min:-Number.MAX_VALUE,max:Number.MAX_VALUE,disabled:!1,shortMode:!1,nullable:!1},setup(e){const t=Mt(),o={change:"",blur:"",save:""},n={change:0,blur:0,save:0};let l=0,c=!1,r,h;const d=()=>{const i=e.props,p=[String(i.modelValue??""),i.disabled,i.isReadOnly,i.required,i.requiredMessage,i.label,i.name,i.rules,...(i.rules??[]).flatMap(y=>[y.type,y.message,y.validator])];if(r){const y=!Object.is(p[0],r[0]),F=y&&p[0]===h;(p.length!==r.length||p.some((I,K)=>!Object.is(I,r[K])&&!(K===0&&F)))&&l++,y&&(h=void 0)}r=p};e.onCleanup(()=>{c=!0,l++});const b=()=>{const i=e.props;return[...i.required?[{message:i.requiredMessage??e.locale.Common.requiredMessage.replace("{label}",i.label||i.name||""),type:"save",validator:y=>!!y}]:[],...i.rules??[]]},a=async(i,p)=>{d();const y=++n[p],F=l,I=()=>!c&&l===F&&n[p]===y,K=b();if(!K.length||e.props.disabled||e.props.isReadOnly)return!0;o[p]="";for(const oe of K.filter(re=>re.type===p)){let re;try{re=await oe.validator(i)}finally{d()}if(!re)return I()&&(o[p]=oe.message,e.requestUpdate()),!1}return I()&&(o[p]="",e.requestUpdate()),!0},m={validate:(i="save")=>a(String(e.props.modelValue??""),i),initValidator:()=>{l++,o.change=o.blur=o.save="",e.requestUpdate()}};e.validator&&(e.validator.addValidator(m),e.onCleanup(()=>{var i;return(i=e.validator)==null?void 0:i.removeValidator(m)}));const u=i=>{d(),h=String(i),n.save++,n.blur++;const p=!!(o.save||o.blur);o.save=o.blur="",e.emit("update:modelValue",i),e.emit("change",i),a(String(i),"change"),p&&e.requestUpdate()},E=()=>{const i=e.props;if(i.disabled||i.isReadOnly||i.modelValue===void 0)return;const p=i.modelValue+i.step;i.max!==void 0&&i.max!==null&&p>i.max||u(p)},x=()=>{const i=e.props;if(i.disabled||i.isReadOnly||i.modelValue===void 0)return;const p=i.modelValue-i.step;i.min!==void 0&&i.min!==null&&p<i.min||u(p)},$=i=>{const p=e.props;if(p.disabled||p.isReadOnly||p.nullable||i.key!=="Backspace"&&i.key!=="Delete"||p.min===-Number.MAX_VALUE||Number(p.modelValue)!==Number(p.min))return;const y=i.target,F=y.selectionStart??0,I=y.selectionEnd??0,K=y.value,oe=F!==I;(oe&&F===0&&I===K.length||!oe&&K.length===1)&&i.preventDefault()},P=i=>{const p=e.props;if(p.disabled||p.isReadOnly)return;const y=i.target;if(!p.nullable&&y.value===""){const F=p.min!==-Number.MAX_VALUE?p.min:0;u(F),y.value=String(F)}a(y.value,"blur")},L=i=>{const p=e.props;if(p.disabled||p.isReadOnly)return;const y=i.target;if(!y&&!p.nullable){u(0);return}if(!y)return;Number(y.value)<p.min&&(y.value=String(p.min)),Number(y.value)>p.max&&(y.value=String(p.max));const F=+y.value.replace(/,/g,"");u(F)},g=i=>{i.key==="Enter"&&e.emit("enter",i)};return{onMounted:i=>e.emit("mounted",(i==null?void 0:i.querySelector("input"))??null),render(){d();const i=e.props,p=o.save||o.blur||o.change,y=!!i.useInvalidV2,F=i.modelValue,I=!!i.disabled,K=i.min,oe=i.max,re=typeof i.width=="number"?`${De(i.width)}rem`:i.width,j=ye(i,Ll),k=i.id==null||i.id===""?t:String(i.id),R=se=>V("num-change-btn",se),X=s.html`
|
|
456
482
|
<div class=${V("moz-number-input",{"input-border":i.shortMode})}>
|
|
457
483
|
<input
|
|
458
|
-
id=${
|
|
484
|
+
id=${k}
|
|
459
485
|
name=${Ee.ifDefined(i.name)}
|
|
460
|
-
?disabled=${
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
@
|
|
465
|
-
@
|
|
466
|
-
@
|
|
467
|
-
@
|
|
486
|
+
?disabled=${I}
|
|
487
|
+
?readonly=${!!i.isReadOnly}
|
|
488
|
+
.value=${uo.live(String(F??""))}
|
|
489
|
+
${fe(j)}
|
|
490
|
+
@input=${L}
|
|
491
|
+
@change=${L}
|
|
492
|
+
@blur=${P}
|
|
493
|
+
@keydown=${$}
|
|
494
|
+
@keypress=${g}
|
|
468
495
|
type="number"
|
|
469
496
|
/>
|
|
470
497
|
<div class="moz-number-input-btn">
|
|
471
498
|
${i.shortMode?s.html`
|
|
472
|
-
<button type="button" aria-label=${e.locale.NumberInput.increase} class="moz-number-input-btn-icon" ?disabled=${
|
|
473
|
-
<button type="button" aria-label=${e.locale.NumberInput.decrease} class="moz-number-input-btn-icon" ?disabled=${
|
|
499
|
+
<button type="button" aria-label=${e.locale.NumberInput.increase} class="moz-number-input-btn-icon" ?disabled=${I||!!i.isReadOnly} @click=${E}>${kl(I)}</button>
|
|
500
|
+
<button type="button" aria-label=${e.locale.NumberInput.decrease} class="moz-number-input-btn-icon" ?disabled=${I||!!i.isReadOnly} @click=${x}>${El(I)}</button>
|
|
474
501
|
`:s.nothing}
|
|
475
502
|
</div>
|
|
503
|
+
${y&&p?s.html`<div class="moz-number-input-invalid-icon-v2">
|
|
504
|
+
${e.slots.has("invalidTooltip")?e.slot("invalidTooltip",{message:p}):s.html`<div title=${p}>${$o("var(--moz-color-danger)")}</div>`}
|
|
505
|
+
</div>`:s.nothing}
|
|
506
|
+
${!y&&p&&i.messagePosition==="inside"?s.html`<span class=${V("moz-number-input-invalid-message",`position-${i.messagePosition}`)}>${p}</span>`:s.nothing}
|
|
476
507
|
</div>
|
|
477
508
|
`;return s.html`
|
|
478
|
-
<div class=${V("moz-number-input-container",{disabled:
|
|
479
|
-
${i.label?Xe({for:
|
|
480
|
-
<div class=${V("moz-number-input-wrapper",{"moz-number-input-quantity":!i.shortMode})} style="width:${
|
|
509
|
+
<div class=${V("moz-number-input-container",{disabled:I,"is-invalid":!!p,"read-only":!!i.isReadOnly},i.class)} style=${te.styleMap(Ce(i.style))}>
|
|
510
|
+
${i.label?Xe({for:k,disabled:I},s.html`${i.label}${i.required?s.html`<span class="require-mark">*</span>`:s.nothing}`):s.nothing}
|
|
511
|
+
<div class=${V("moz-number-input-wrapper",{"moz-number-input-quantity":!i.shortMode})} style="width:${re}">
|
|
481
512
|
${i.shortMode?s.nothing:s.html`<button
|
|
482
513
|
type="button"
|
|
483
514
|
aria-label=${e.locale.NumberInput.decrease}
|
|
484
|
-
class=${
|
|
485
|
-
?disabled=${
|
|
486
|
-
@click=${
|
|
515
|
+
class=${R({disabled:I||K>=F,"min-disabled":K>=F})}
|
|
516
|
+
?disabled=${I||!!i.isReadOnly}
|
|
517
|
+
@click=${x}
|
|
487
518
|
>
|
|
488
|
-
${
|
|
519
|
+
${Sl("currentColor",I||K>=F)}
|
|
489
520
|
</button>`}
|
|
490
|
-
${
|
|
521
|
+
${X}
|
|
491
522
|
${i.shortMode?s.nothing:s.html`<button
|
|
492
523
|
type="button"
|
|
493
524
|
aria-label=${e.locale.NumberInput.increase}
|
|
494
|
-
class=${
|
|
495
|
-
?disabled=${
|
|
496
|
-
@click=${
|
|
525
|
+
class=${R({disabled:I||oe<=F,"max-disabled":oe<=F})}
|
|
526
|
+
?disabled=${I||!!i.isReadOnly}
|
|
527
|
+
@click=${E}
|
|
497
528
|
>
|
|
498
|
-
${
|
|
529
|
+
${$l("currentColor",I||oe<=F)}
|
|
499
530
|
</button>`}
|
|
500
531
|
</div>
|
|
532
|
+
${!y&&p&&i.messagePosition==="outside"?s.html`<span class="moz-number-input-invalid-message position-outside">${p}</span>`:s.nothing}
|
|
501
533
|
</div>
|
|
502
|
-
`}}}}),
|
|
534
|
+
`}}}}),Pl={name:"MozNumberInput",core:ws,booleanProps:["disabled","nullable","required","shortMode","isReadOnly","useInvalidV2"],props:["id","label","name","width","required","step","min","max","disabled","shortMode","nullable","modelValue","isReadOnly","rules","requiredMessage","messagePosition","useInvalidV2"],emits:["change","mounted","enter","update:modelValue"],slots:["invalidTooltip"],expose:!1};function Cs(e="var(--moz-color-text-subtle)"){return s.html`<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
503
535
|
<path d="M9 3L3 9M3 3L9 9" stroke=${e} stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
504
|
-
</svg>`}function
|
|
536
|
+
</svg>`}function Ml(e="var(--moz-color-tab-close)"){return s.html`<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
505
537
|
<path d="M9.99426 3.19027C10.3067 2.87785 10.3067 2.37131 9.99426 2.05889C9.68184 1.74647 9.17531 1.74647 8.86289 2.05889L9.42857 2.62458L9.99426 3.19027ZM2.05894 8.86288C1.74652 9.1753 1.74652 9.68183 2.05894 9.99426C2.37136 10.3067 2.87789 10.3067 3.1903 9.99425L2.62462 9.42857L2.05894 8.86288ZM9.42857 2.62458L8.86289 2.05889L2.05894 8.86288L2.62462 9.42857L3.1903 9.99425L9.99426 3.19027L9.42857 2.62458Z" fill=${e}></path>
|
|
506
538
|
<path d="M3.13711 2.00574C2.82469 1.69332 2.31816 1.69332 2.00574 2.00574C1.69333 2.31816 1.69333 2.8247 2.00574 3.13712L2.57143 2.57143L3.13711 2.00574ZM8.8097 9.9411C9.12211 10.2535 9.62864 10.2535 9.94106 9.9411C10.2535 9.62868 10.2535 9.12215 9.94106 8.80973L9.37538 9.37542L8.8097 9.9411ZM2.57143 2.57143L2.00574 3.13712L8.8097 9.9411L9.37538 9.37542L9.94106 8.80973L3.13711 2.00574L2.57143 2.57143Z" fill=${e}></path>
|
|
507
|
-
</svg>`}const
|
|
539
|
+
</svg>`}const xl=new Set(["itemSource","vertical","tabWidth","maxTabWidth","closeAble","modelValue","class","style"]),bs=$e({name:"moz-tab",defaults:{vertical:!1,tabWidth:100,closeAble:!1,itemSource:[]},setup(e){const t=ot("tab_"),o=new WeakSet,n=a=>{a&&o.add(a)},l=a=>`${t}-tab-${a}`,c=a=>`${t}-panel-${a}`,r=a=>typeof requestAnimationFrame=="function"?requestAnimationFrame(a):setTimeout(a,16),h=a=>{e.props.modelValue!==a&&(e.emit("update:modelValue",a),e.emit("change",a))},d=(a,m)=>{const u=e.props,E=(u.itemSource??[]).map(y=>y.id);if(E.length===0)return;const x=u.vertical?"ArrowDown":"ArrowRight",$=u.vertical?"ArrowUp":"ArrowLeft";let P;if(a.key===x?P=E[(E.indexOf(m)+1)%E.length]:a.key===$?P=E[(E.indexOf(m)-1+E.length)%E.length]:a.key==="Home"?P=E[0]:a.key==="End"?P=E[E.length-1]:(a.key==="Enter"||a.key===" ")&&(P=m),P===void 0)return;a.preventDefault(),a.stopPropagation(),h(P);const L=a.currentTarget.closest('[role="tablist"]'),g=l(P);let i=0;const p=()=>{const y=Array.from((L==null?void 0:L.querySelectorAll('[role="tab"]'))??[]).find(F=>F.id===g);if(y&&y.getAttribute("aria-selected")==="true"){y.focus();return}++i<20&&r(p)};r(p)},b=a=>{const m=e.props;if(m.modelValue===a){const u=(m.itemSource??[]).filter(E=>E.id!==a);u.length>0&&h(u[u.length-1].id)}e.emit("close",a)};return{onMounted:()=>{const a=e.props;!a.modelValue&&(a.itemSource??[]).length>0&&queueMicrotask(()=>{!e.props.modelValue&&(e.props.itemSource??[]).length>0&&h(e.props.itemSource[0].id)})},render(){const a=e.props,m=a.itemSource??[],u=a.modelValue,E=ye(a,xl),x=te.styleMap({width:a.closeAble?`${a.tabWidth}px`:"",maxWidth:a.maxTabWidth?`${a.maxTabWidth}px`:void 0,display:"flex",justifyContent:a.closeAble||a.vertical?"space-between":"center",alignItems:"center"});return s.html`
|
|
508
540
|
<div
|
|
509
|
-
class=${V("moz-tabs-container",{vertical:
|
|
510
|
-
style=${
|
|
511
|
-
${
|
|
541
|
+
class=${V("moz-tabs-container",{vertical:a.vertical},a.class)}
|
|
542
|
+
style=${te.styleMap(Ce(a.style))}
|
|
543
|
+
${fe(E)}
|
|
512
544
|
>
|
|
513
545
|
<div
|
|
514
|
-
class=${V("moz-tabs",{vertical:
|
|
546
|
+
class=${V("moz-tabs",{vertical:a.vertical})}
|
|
515
547
|
role="tablist"
|
|
516
|
-
aria-orientation=${
|
|
548
|
+
aria-orientation=${a.vertical?"vertical":"horizontal"}
|
|
517
549
|
>
|
|
518
|
-
${
|
|
550
|
+
${m.map($=>{const P=u===$.id,L=a.closeAble&&!a.vertical&&!a.maxTabWidth&&!e.slots.has(`${$.id}-tab`);return s.html`
|
|
519
551
|
<div
|
|
520
|
-
class=${V("moz-tab",{"current-tab":P,vertical:
|
|
521
|
-
style=${
|
|
522
|
-
id=${l(
|
|
552
|
+
class=${V("moz-tab",{"current-tab":P,vertical:a.vertical,closeable:a.closeAble,"horizontal-close-default":L})}
|
|
553
|
+
style=${x}
|
|
554
|
+
id=${l($.id)}
|
|
523
555
|
role="tab"
|
|
524
556
|
aria-selected=${P?"true":"false"}
|
|
525
|
-
aria-controls=${
|
|
557
|
+
aria-controls=${c($.id)}
|
|
526
558
|
tabindex=${P?"0":"-1"}
|
|
527
|
-
@click=${()=>
|
|
528
|
-
@mousedown=${g=>{if(g.button!==0)return;const
|
|
529
|
-
@keydown=${g=>
|
|
559
|
+
@click=${()=>h($.id)}
|
|
560
|
+
@mousedown=${g=>{if(g.button!==0)return;const i=g.target instanceof Element?g.target.closest("button"):null;i&&o.has(i)&&i.parentElement===g.currentTarget||h($.id)}}
|
|
561
|
+
@keydown=${g=>d(g,$.id)}
|
|
530
562
|
>
|
|
531
|
-
${e.slots.has(`${
|
|
532
|
-
${
|
|
533
|
-
${
|
|
563
|
+
${e.slots.has(`${$.id}-tab`)?e.slot(`${$.id}-tab`,{text:$.text,active:P}):s.html`<p class=${V("tab-label",{active:P})}>${$.text}</p>`}
|
|
564
|
+
${a.closeAble?s.html`<button type="button"
|
|
565
|
+
${Y.ref(n)}
|
|
534
566
|
class="tab-close-btn"
|
|
535
|
-
aria-label=${e.locale.Tab.closeTab.replace("{label}"
|
|
536
|
-
@click=${g=>{g.stopPropagation(),
|
|
567
|
+
aria-label=${e.locale.Tab.closeTab.replace("{label}",$.text??"")}
|
|
568
|
+
@click=${g=>{g.stopPropagation(),b($.id)}}
|
|
537
569
|
>
|
|
538
|
-
${
|
|
570
|
+
${L?Ml():Cs()}
|
|
539
571
|
</button>`:s.nothing}
|
|
540
572
|
</div>
|
|
541
573
|
`})}
|
|
542
574
|
</div>
|
|
543
575
|
<div class="moz-tab-body">
|
|
544
|
-
${
|
|
576
|
+
${m.map($=>s.html`
|
|
545
577
|
<div
|
|
546
|
-
class=${V("tab-panel",{active:
|
|
547
|
-
id=${
|
|
578
|
+
class=${V("tab-panel",{active:u===$.id})}
|
|
579
|
+
id=${c($.id)}
|
|
548
580
|
role="tabpanel"
|
|
549
|
-
aria-labelledby=${l(
|
|
550
|
-
tabindex=${
|
|
551
|
-
?hidden=${
|
|
581
|
+
aria-labelledby=${l($.id)}
|
|
582
|
+
tabindex=${u===$.id?"0":"-1"}
|
|
583
|
+
?hidden=${u!==$.id}
|
|
552
584
|
>
|
|
553
|
-
${e.slot(
|
|
585
|
+
${e.slot($.id,{active:u===$.id})}
|
|
554
586
|
</div>
|
|
555
587
|
`)}
|
|
556
588
|
</div>
|
|
557
589
|
</div>
|
|
558
|
-
`}}}}),
|
|
559
|
-
<div
|
|
560
|
-
${
|
|
590
|
+
`}}}}),zl={name:"MozTab",core:bs,booleanProps:["closeAble","vertical"],props:["itemSource","vertical","tabWidth","maxTabWidth","closeAble","modelValue"],emits:["change","close","update:modelValue"],slots:[],expose:!1},Io={top:"bottom",bottom:"top",left:"right",right:"left"};function Vo(e,t,o,n,l,c){const r=(e==="top"||e==="bottom"?o.height:o.width)+l+c;return{top:t.top,bottom:n.height-(t.top+t.height),left:t.left,right:n.width-(t.left+t.width)}[e]>=r}function Dt(e,t,o,n){return e==="start"?t:e==="end"?t+o-n:t+o/2-n/2}function jt(e,t,o){return o<t?t:Math.min(Math.max(e,t),o)}function ys(e,t,o,n){const{align:l,sideOffset:c,collisionPadding:r}=n,h=n.arrowSize??0;let d=n.side;!Vo(d,e,t,o,c,r)&&Vo(Io[d],e,t,o,c,r)&&(d=Io[d]);const b=d==="top"||d==="bottom";let a,m;d==="top"?(m=e.top-t.height-c,a=Dt(l,e.left,e.width,t.width)):d==="bottom"?(m=e.top+e.height+c,a=Dt(l,e.left,e.width,t.width)):d==="left"?(a=e.left-t.width-c,m=Dt(l,e.top,e.height,t.height)):(a=e.left+e.width+c,m=Dt(l,e.top,e.height,t.height)),b?a=jt(a,r,o.width-t.width-r):m=jt(m,r,o.height-t.height-r);const u=b?e.left+e.width/2:e.top+e.height/2,E=b?a:m,x=b?t.width:t.height,$=jt(u-E,h*2,x-h*2),P={top:e.top-c-r,bottom:o.height-(e.top+e.height)-c-r,left:o.height-r*2,right:o.height-r*2},L=Math.max(0,P[d]);return{side:d,x:a,y:m,arrowOffset:$,availableHeight:L}}const $s=ys,Tl=new Set(["open","anchor","text","side","align","sideOffset","collisionPadding","arrow","appearance","sideAnchor","tooltipId","class","style"]),Al=5;function Rl(e){const{top:t,left:o,right:n,bottom:l,width:c,height:r}=e;return![t,o,n,l,c,r].every(Number.isFinite)||c<0||r<0?!1:c>0||r>0}function Dl(e,t,o){if(!t||!t.isConnected)return e;const n=t.getBoundingClientRect();return Rl(n)?o==="left"||o==="right"?{top:e.top,height:e.height,left:n.left,width:n.right-n.left}:{top:n.top,height:n.bottom-n.top,left:e.left,width:e.width}:e}const Il=typeof requestAnimationFrame=="function"?e=>{requestAnimationFrame(e)}:e=>{setTimeout(e,0)},So=$e({name:"moz-tooltip",defaults:{open:!1,side:"top",align:"center",sideOffset:8,collisionPadding:8,arrow:!0,appearance:"default"},setup(e){const t=Y.createRef();let o=null,n=null,l=!1;const c=()=>!!e.props.open&&!!e.props.anchor,r=()=>{const m=e.props.anchor,u=t.value;if(!m||!u||!e.props.open)return;const E=e.props.side??"top",x=$s(Dl(m.getBoundingClientRect(),e.props.sideAnchor,E),{width:u.offsetWidth,height:u.offsetHeight},{width:window.innerWidth,height:window.innerHeight},{side:E,align:e.props.align??"center",sideOffset:e.props.sideOffset??8,collisionPadding:e.props.collisionPadding??8,arrowSize:Al});o!==null&&l&&o.side===x.side&&o.x===x.x&&o.y===x.y&&o.arrowOffset===x.arrowOffset||(o=x,l=!0,e.requestUpdate(),n!==x.side&&(n=x.side,e.emit("placed",x.side)))},h=()=>{c()&&r()};typeof window<"u"&&(window.addEventListener("scroll",h,{capture:!0,passive:!0}),window.addEventListener("resize",h,{passive:!0}),e.onCleanup(()=>{window.removeEventListener("scroll",h,!0),window.removeEventListener("resize",h)}));let d=null,b=null;const a=()=>{const m=c()?e.props.sideAnchor??null:null;m!==b&&(b&&(d==null||d.unobserve(b)),b=null,!(!m||typeof ResizeObserver>"u")&&(d??(d=new ResizeObserver(()=>{c()&&r()})),d.observe(m),b=m))};return e.onCleanup(()=>{d==null||d.disconnect(),d=null,b=null}),{render(){return s.nothing},renderPortal(){const m=e.props;if(a(),!c())return o=null,n=null,l=!1,s.nothing;Il(r);const u=(o==null?void 0:o.side)??m.side??"top",E=ye(m,Tl),x=u==="top"||u==="bottom"?"left":"top";return s.html`
|
|
591
|
+
<div
|
|
592
|
+
${Y.ref(t)}
|
|
593
|
+
class=${V("moz-tooltip",m.class)}
|
|
594
|
+
role="tooltip"
|
|
595
|
+
id=${m.tooltipId??s.nothing}
|
|
596
|
+
data-side=${u}
|
|
597
|
+
data-align=${m.align??"center"}
|
|
598
|
+
data-appearance=${m.appearance==="rail"?"rail":s.nothing}
|
|
599
|
+
style=${te.styleMap({...Ce(m.style),position:"fixed",left:`${(o==null?void 0:o.x)??0}px`,top:`${(o==null?void 0:o.y)??0}px`,opacity:l?"1":"0"})}
|
|
600
|
+
${fe(E)}
|
|
601
|
+
>
|
|
602
|
+
${m.arrow?s.html`<span
|
|
603
|
+
class="moz-tooltip-arrow"
|
|
604
|
+
data-side=${u}
|
|
605
|
+
style=${te.styleMap({[x]:`${(o==null?void 0:o.arrowOffset)??0}px`})}
|
|
606
|
+
></span>`:s.nothing}
|
|
607
|
+
<div class="moz-tooltip-content">
|
|
608
|
+
${e.slots.has("content")?e.slot("content"):m.text??s.nothing}
|
|
609
|
+
</div>
|
|
610
|
+
</div>
|
|
611
|
+
`},api:{reposition:()=>r()}}}}),Vl=new Set(["id","width","label","min","max","step","disabled","modelValue","class","style"]),Ss=$e({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,l=null;const c=()=>{l==null||l.destroy(),l=null},r=()=>{c(),window.removeEventListener("mousemove",d),window.removeEventListener("mouseup",b)},h=()=>{if(e.props.disabled){r();return}l==null||l.update({text:String(e.props.modelValue??0)},{sync:!0}),l==null||l.api.reposition()},d=$=>{const P=e.props;if(!o)return;const L=o.getBoundingClientRect(),i=($.clientX-L.left)/o.offsetWidth;let p=Math.round(P.min+(P.max-P.min)*i);p<P.min?p=P.min:p>P.max&&(p=P.max);const y=Math.round(p/P.step)*P.step;e.emit("update:modelValue",y),e.emit("change")},b=()=>{r(),n==null||n.focus()},a=$=>{e.props.disabled||($.preventDefault(),n=$.currentTarget,o=n.querySelector(".moz-slider"),c(),l=So(document.createElement("div"),{open:!0,anchor:n.querySelector(".moz-slider-handle"),text:String(e.props.modelValue??0),side:"top"},()=>{}),$.target instanceof Element&&$.target.closest(".moz-slider-handle")||d($),window.addEventListener("mousemove",d),window.addEventListener("mouseup",b))},m=$=>{const P=e.props;let L=P.modelValue??0;$==="-"?L-=P.step:L+=P.step,L>P.max?L=P.max:L<P.min&&(L=P.min),e.emit("update:modelValue",L),e.emit("change")},u=$=>{$.key==="ArrowLeft"||$.keyCode===37?m("-"):($.key==="ArrowRight"||$.keyCode===39)&&m("+")},E=()=>{t=!0,e.requestUpdate()},x=()=>{t=!1,e.requestUpdate()};return e.onCleanup(r),{render(){const $=e.props;$.disabled?r():l&&queueMicrotask(h);const P=$.modelValue??0,L=!!$.disabled,g=$.min,i=$.max,p=typeof $.width=="number"?`${De($.width)}rem`:$.width,y=typeof $.width=="number"?$.width:Number.isNaN(parseFloat(String($.width)))?150:parseFloat(String($.width)),I=(P-g)/(i-g)*(y-16),K=I<0?0:I,oe=ye($,Vl);return s.html`
|
|
612
|
+
<div class=${V("moz-slider-wrapper",$.class)} style=${te.styleMap(Ce($.style))} ${fe(oe)}>
|
|
613
|
+
${$.label?Xe({for:$.id},$.label):s.nothing}
|
|
561
614
|
<div
|
|
562
|
-
class=${V("moz-slider-container",{disabled:
|
|
615
|
+
class=${V("moz-slider-container",{disabled:L,label:!!$.label})}
|
|
563
616
|
role="slider"
|
|
564
|
-
aria-valuenow=${String(
|
|
565
|
-
aria-valuemin=${String(
|
|
566
|
-
aria-valuemax=${String(
|
|
617
|
+
aria-valuenow=${String(P??0)}
|
|
618
|
+
aria-valuemin=${String($.min??0)}
|
|
619
|
+
aria-valuemax=${String($.max??100)}
|
|
567
620
|
aria-orientation="horizontal"
|
|
568
|
-
aria-disabled=${
|
|
569
|
-
aria-label=${Ee.ifDefined(
|
|
570
|
-
tabindex=${
|
|
621
|
+
aria-disabled=${L?"true":"false"}
|
|
622
|
+
aria-label=${Ee.ifDefined($.label)}
|
|
623
|
+
tabindex=${L?"-1":"0"}
|
|
571
624
|
@mousedown=${a}
|
|
572
|
-
@focus=${
|
|
573
|
-
@blur=${
|
|
574
|
-
@keydown=${
|
|
625
|
+
@focus=${E}
|
|
626
|
+
@blur=${x}
|
|
627
|
+
@keydown=${u}
|
|
575
628
|
>
|
|
576
|
-
<div class="moz-slider" style="width:${
|
|
577
|
-
<div class="moz-slider-track" style="width:${
|
|
629
|
+
<div class="moz-slider" style="width:${p}">
|
|
630
|
+
<div class="moz-slider-track" style="width:${De(K+8)}rem"></div>
|
|
578
631
|
</div>
|
|
579
632
|
<div
|
|
580
|
-
class=${V("moz-slider-handle",{focused:t&&!
|
|
581
|
-
style="left:${
|
|
633
|
+
class=${V("moz-slider-handle",{focused:t&&!L})}
|
|
634
|
+
style="left:${De(K)}rem"
|
|
582
635
|
></div>
|
|
583
636
|
</div>
|
|
584
637
|
</div>
|
|
585
|
-
`}}}}),
|
|
638
|
+
`}}}}),Ol={name:"MozSlider",core:Ss,booleanProps:["disabled"],props:["id","width","label","min","max","step","disabled","modelValue"],emits:["change","update:modelValue"],slots:[],expose:!1};function ql(e="var(--moz-color-text-subtle)"){return s.html`<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
586
639
|
<path d="M3 4.5L6 7.5L9 4.5" stroke=${e} stroke-linecap="round" stroke-linejoin="round"></path>
|
|
587
|
-
</svg>`}const
|
|
640
|
+
</svg>`}const ko="var(--moz-color-calendar-nav-icon)";function Bl(e=ko){return s.html`<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
588
641
|
<path
|
|
589
642
|
d="M3 8.5L7.05021 4.5L11 8.5"
|
|
590
643
|
transform="rotate(-90 7 7)"
|
|
@@ -593,7 +646,7 @@
|
|
|
593
646
|
stroke-linecap="round"
|
|
594
647
|
stroke-linejoin="round"
|
|
595
648
|
></path>
|
|
596
|
-
</svg>`}function
|
|
649
|
+
</svg>`}function Fl(e=ko){return s.html`<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
597
650
|
<path
|
|
598
651
|
d="M3 5.5L7.05021 9.5L11 5.5"
|
|
599
652
|
transform="rotate(-90 7 7)"
|
|
@@ -602,7 +655,7 @@
|
|
|
602
655
|
stroke-linecap="round"
|
|
603
656
|
stroke-linejoin="round"
|
|
604
657
|
></path>
|
|
605
|
-
</svg>`}function
|
|
658
|
+
</svg>`}function Nl(e=ko){return s.html`<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
606
659
|
<path
|
|
607
660
|
d="M11.5 2.7H2.50001C1.78204 2.7 1.20001 3.28203 1.20001 4V12C1.20001 12.718 1.78204 13.3 2.50001 13.3H11.5C12.218 13.3 12.8 12.718 12.8 12V4C12.8 3.28203 12.218 2.7 11.5 2.7Z"
|
|
608
661
|
stroke=${e}
|
|
@@ -615,139 +668,139 @@
|
|
|
615
668
|
fill=${e}
|
|
616
669
|
></path>
|
|
617
670
|
<rect x="3.34009" y="7.41504" width="2.93262" height="2.93262" rx="0.5" fill=${e}></rect>
|
|
618
|
-
</svg>`}const
|
|
671
|
+
</svg>`}const _l=new Set(["rowHeight","exceptWeeks","min","max","modelValue","class","style"]),Hl=(e,...t)=>e.filter(o=>!t.includes(o)),yt=12,Ul=2024,Oo=e=>e-((e-Ul)%yt+yt)%yt,Eo=$e({name:"moz-calendar",defaults:{rowHeight:36,exceptWeeks:[],min:null,max:null},setup(e){let t=e.props.modelValue?Me(e.props.modelValue):Me(),o=e.props.modelValue,n=!0,l=!1,c=!1,r=-1,h=Oo(t.year());const d=p=>{const y=e.props;return!!y.min&&p.isBefore(y.min,"day")||!!y.max&&p.isAfter(y.max,"day")},b=p=>{const y=e.props;return!!y.min&&p.endOf("year").isBefore(y.min,"day")||!!y.max&&p.startOf("year").isAfter(y.max,"day")},a=p=>{const y=e.props;return!!y.min&&p.endOf("month").isBefore(y.min,"day")||!!y.max&&p.startOf("month").isAfter(y.max,"day")},m=()=>{l?h-=yt:t=t.subtract(1,"M"),e.requestUpdate()},u=()=>{l?h+=yt:t=t.add(1,"M"),e.requestUpdate()},E=()=>{n=!0,l=!1,c=!1,e.requestUpdate()},x=()=>{h=Oo(t.year()),n=!1,l=!0,c=!1,e.requestUpdate()},$=()=>{n=!1,l=!1,c=!0,e.requestUpdate()},P=p=>{b(p)||(t=t.set("year",p.year()),n=!0,l=!1,c=!1,e.requestUpdate())},L=p=>{a(p)||(t=t.set("month",p.month()),n=!0,l=!1,c=!1,e.requestUpdate())},g=p=>{d(p)||e.emit("update:modelValue",Me(p))},i=()=>g(Me());return{render(){const p=e.props;p.modelValue!==o&&(o=p.modelValue,t=p.modelValue?Me(p.modelValue):Me());const y=p.rowHeight??36,F=["ko","zh","zh-cn"].includes(Me().locale()),I=t.hour(),K=t.minute(),oe=t.second(),re=Z=>Z.set("hour",I||0).set("minute",K||0).set("second",oe||0),j=Hl([0,1,2,3,4,5,6],...p.exceptWeeks??[]),k=[];{const Z=re(t.endOf("M"));let G=re(t.startOf("M")).startOf("w");do k.push(G),G=G.add(7,"d");while(G.diff(Z)<=0)}const R=y*k.length+126;R!==r&&(r=R,queueMicrotask(()=>e.emit("setMaxHeight",R)));const X=(Z,G)=>{const Q=Z.add(G,"d");return t.format("YYYYMMDD")!==Q.format("YYYYMMDD")?t.format("MM")===Q.format("MM")?"":"moz-calendar-column-otherMonth":""},se=p.modelValue?Me(p.modelValue).format("YYYYMMDD"):"",N=(Z,G,Q)=>s.html`<button
|
|
619
672
|
type="button"
|
|
620
|
-
aria-label=${
|
|
673
|
+
aria-label=${Q}
|
|
621
674
|
class="moz-button moz-icon-button"
|
|
622
675
|
style="width:22px;height:22px;min-width:22px;min-height:22px"
|
|
623
676
|
@click=${G}
|
|
624
677
|
>
|
|
625
|
-
${
|
|
626
|
-
</button>`,
|
|
678
|
+
${Z}
|
|
679
|
+
</button>`,ne=s.html`
|
|
627
680
|
<div class="moz-calendar-header">
|
|
628
681
|
<div class="moz-calendar-select">
|
|
629
|
-
${
|
|
630
|
-
<div class="moz-calendar-select__text" @click=${
|
|
631
|
-
${new Intl.DateTimeFormat(
|
|
682
|
+
${F?s.html`
|
|
683
|
+
<div class="moz-calendar-select__text" @click=${x}>
|
|
684
|
+
${new Intl.DateTimeFormat(Me().locale(),{year:"numeric"}).format(t.toDate())}
|
|
632
685
|
</div>
|
|
633
|
-
<div class="moz-calendar-select__text" @click=${
|
|
686
|
+
<div class="moz-calendar-select__text" @click=${$}>${t.format("MMMM")}</div>
|
|
634
687
|
`:s.html`
|
|
635
|
-
<div class="moz-calendar-select__text" @click=${
|
|
636
|
-
<div class="moz-calendar-select__text" @click=${
|
|
688
|
+
<div class="moz-calendar-select__text" @click=${$}>${t.format("MMMM")}</div>
|
|
689
|
+
<div class="moz-calendar-select__text" @click=${x}>${t.format("YYYY")}</div>
|
|
637
690
|
`}
|
|
638
|
-
<div class="moz-calendar-select-btn" @click=${
|
|
691
|
+
<div class="moz-calendar-select-btn" @click=${E}>${ql("currentColor")}</div>
|
|
639
692
|
</div>
|
|
640
693
|
<div class="moz-calendar-header__spacer"></div>
|
|
641
694
|
<div class="moz-calendar-select-btn-group">
|
|
642
|
-
${
|
|
695
|
+
${N(Bl(),m,l?"이전 연도":"이전 달")}${N(Nl(),i,"오늘")}${N(Fl(),u,l?"다음 연도":"다음 달")}
|
|
643
696
|
</div>
|
|
644
697
|
</div>
|
|
645
|
-
`,
|
|
698
|
+
`,_=s.html`
|
|
646
699
|
<div class="moz-calendar-row">
|
|
647
|
-
${j.map(
|
|
700
|
+
${j.map(Z=>s.html`<div
|
|
648
701
|
class="moz-calendar-column moz-calendar-column-day"
|
|
649
|
-
style="width: ${100/j.length}%; height: ${
|
|
702
|
+
style="width: ${100/j.length}%; height: ${De(y)}rem;"
|
|
650
703
|
>
|
|
651
|
-
${
|
|
704
|
+
${Me().day(Z).format("ddd")}
|
|
652
705
|
</div>`)}
|
|
653
706
|
</div>
|
|
654
|
-
${
|
|
655
|
-
${j.map(G=>{const
|
|
656
|
-
class=${V("moz-calendar-column",
|
|
657
|
-
style="width: ${100/j.length}%; height: ${
|
|
658
|
-
@click=${()=>g(
|
|
707
|
+
${k.map(Z=>s.html`<div class="moz-calendar-row">
|
|
708
|
+
${j.map(G=>{const Q=Z.add(G,"d");return s.html`<div
|
|
709
|
+
class=${V("moz-calendar-column",X(Z,G),se===Q.format("YYYYMMDD")?"moz-calendar-selected":"",d(Q)?"date-disable":"moz-calendar-column--hoverable")}
|
|
710
|
+
style="width: ${100/j.length}%; height: ${De(y)}rem"
|
|
711
|
+
@click=${()=>g(Q)}
|
|
659
712
|
>
|
|
660
|
-
${
|
|
713
|
+
${Q.format("DD")}
|
|
661
714
|
</div>`})}
|
|
662
715
|
</div>`)}
|
|
663
|
-
`;let
|
|
664
|
-
${
|
|
665
|
-
class=${V("moz-calendar-column",t.format("YYYY")===G.format("YYYY")?"moz-calendar-selected":"",
|
|
666
|
-
style="width: ${100/3}%; height: ${
|
|
716
|
+
`;let J=s.nothing;if(l){const Z=Array.from({length:yt},(G,Q)=>Me().year(h+Q).startOf("y"));J=s.html`<div class="moz-calendar-row moz-calendar-row--wrap moz-calendar-row--years">
|
|
717
|
+
${Z.map(G=>s.html`<div
|
|
718
|
+
class=${V("moz-calendar-column",t.format("YYYY")===G.format("YYYY")?"moz-calendar-selected":"",b(G)?"date-disable":"moz-calendar-column--hoverable")}
|
|
719
|
+
style="width: ${100/3}%; height: ${De(y)}rem"
|
|
667
720
|
@click=${()=>P(G)}
|
|
668
721
|
>
|
|
669
722
|
${G.format("YYYY")}
|
|
670
723
|
</div>`)}
|
|
671
|
-
</div>`}let
|
|
672
|
-
${
|
|
673
|
-
class=${V("moz-calendar-column",t.format("YYYYMM")===
|
|
674
|
-
style="width: ${100/3}%; height: ${
|
|
675
|
-
@click=${()=>
|
|
724
|
+
</div>`}let z=s.nothing;if(c){const Z=[],G=t.endOf("y");let Q=t.startOf("y");do Z.push(Q),Q=Q.add(1,"M");while(Q.diff(G)<=0);z=s.html`<div class="moz-calendar-row moz-calendar-row--wrap">
|
|
725
|
+
${Z.map(T=>s.html`<div
|
|
726
|
+
class=${V("moz-calendar-column",t.format("YYYYMM")===T.format("YYYYMM")?"moz-calendar-selected":"",a(T)?"date-disable":"moz-calendar-column--hoverable")}
|
|
727
|
+
style="width: ${100/3}%; height: ${De(y)}rem"
|
|
728
|
+
@click=${()=>L(T)}
|
|
676
729
|
>
|
|
677
|
-
${
|
|
730
|
+
${T.format("MMM")}
|
|
678
731
|
</div>`)}
|
|
679
|
-
</div>`}const
|
|
732
|
+
</div>`}const W=ye(p,_l);return s.html`
|
|
680
733
|
<div
|
|
681
|
-
class=${V("moz-calendar-container",
|
|
682
|
-
style=${
|
|
683
|
-
${
|
|
734
|
+
class=${V("moz-calendar-container",c&&"moz-calendar-container--months",l&&"moz-calendar-container--years",p.class)}
|
|
735
|
+
style=${te.styleMap(Ce(p.style))}
|
|
736
|
+
${fe(W)}
|
|
684
737
|
>
|
|
685
|
-
${
|
|
738
|
+
${ne}${n?_:s.nothing}${J}${z}
|
|
686
739
|
</div>
|
|
687
|
-
`}}}}),
|
|
740
|
+
`}}}}),Wl={name:"MozCalendar",core:Eo,props:["rowHeight","exceptWeeks","min","max","modelValue"],emits:["changed","setMaxHeight","update:modelValue"],slots:[],expose:!1};function Kl(e="var(--moz-color-on-accent)",t="14",o=!1){return s.html`<svg width=${t} height=${t} viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
688
741
|
<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>
|
|
689
|
-
</svg>`}function
|
|
742
|
+
</svg>`}function Zl(e="var(--moz-color-on-accent)",t="14",o=!1){return s.html`<svg width=${t} height=${t} viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
690
743
|
<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>
|
|
691
|
-
</svg>`}function
|
|
744
|
+
</svg>`}function Gl(e="var(--moz-color-text-subtle)",t=""){return s.html`<svg class=${t} width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
692
745
|
<path
|
|
693
|
-
d="
|
|
746
|
+
d="M2.84618 2.94885H11.1539C11.8166 2.94885 12.3539 3.48201 12.3539 4.13969V11.4679C12.3539 12.1256 11.8166 12.6588 11.1539 12.6588H2.84618C2.18344 12.6588 1.64618 12.1256 1.64618 11.4679V4.13969C1.64618 3.48201 2.18344 2.94885 2.84618 2.94885Z"
|
|
694
747
|
stroke=${e}
|
|
695
748
|
stroke-width="1.4"
|
|
696
749
|
></path>
|
|
697
|
-
<path d="M3.
|
|
698
|
-
<path d="
|
|
750
|
+
<path d="M3.6926 1.3V2.70061" stroke=${e} stroke-width="1.8" stroke-linecap="round"></path>
|
|
751
|
+
<path d="M10.3074 1.3V2.70061" stroke=${e} stroke-width="1.8" stroke-linecap="round"></path>
|
|
699
752
|
<path
|
|
700
|
-
d="
|
|
753
|
+
d="M2.84615 2.30764H11.1538C11.6435 2.30764 12.1131 2.50066 12.4593 2.84424C12.8055 3.18781 13 3.65381 13 4.1397V5.97176H1V4.1397C1 3.65381 1.1945 3.18781 1.54073 2.84424C1.88695 2.50066 2.35652 2.30764 2.84615 2.30764Z"
|
|
701
754
|
fill=${e}
|
|
702
755
|
></path>
|
|
703
|
-
</svg>`}const
|
|
756
|
+
</svg>`}const Yl="YYYY-MM-DD",jl=new Set(["label","name","width","required","disabled","readonly","format","showSpin","min","max","modelValue","class","style"]),ks=$e({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,l=null,c=null;const r=new Nt,h=ot("moz-date-input-"),d=g=>{const i=e.props.modelValue;let p;g&&i instanceof Date?p=Me(g).toDate():g&&Me.isDayjs(i)||!i&&g?p=Me(g):p=void 0,e.emit("update:modelValue",p)},b=((g,...i)=>{g==="update:modelValue"?d(i[0]):g==="setMaxHeight"&&(o=i[0],a.calcPosition())}),a=new Kt({anchor:()=>l==null?void 0:l.querySelector(".moz-date-input-wrapper"),panel:()=>r.element,maxHeight:()=>o,ignoreScrollTargets:g=>(g&&typeof g.className=="string"?g.className:"").split(" ").includes("moz-calendar-row"),container:()=>l,requestClose:()=>{t&&(t=!1,E(),e.requestUpdate())}}),m=g=>{var i;g.key!=="Escape"||!t||(g.preventDefault(),g.stopPropagation(),t=!1,E(),(i=l==null?void 0:l.querySelector("input"))==null||i.focus(),e.requestUpdate())},u=()=>{const g=r.open("calendar-container moz-date-input-calendar");g.addEventListener("keydown",m),c=Eo(g,{modelValue:e.props.modelValue,min:e.props.min,max:e.props.max},b),a.open()},E=()=>{var g;(g=r.element)==null||g.removeEventListener("keydown",m),a.close(),c==null||c.destroy(),c=null,r.close(),e.emit("close")},x=()=>{var i;const g=e.props;g.disabled||g.readonly||(t=!t,t?((i=l==null?void 0:l.querySelector("input"))==null||i.focus(),u()):E(),e.requestUpdate())},$=()=>{e.props.disabled||e.props.readonly||e.props.modelValue&&d(Me(e.props.modelValue).subtract(1,"d"))},P=()=>{e.props.disabled||e.props.readonly||e.props.modelValue&&d(Me(e.props.modelValue).add(1,"d"))},L=g=>{const i=g.target,p=e.props.modelValue;p?Me.isDayjs(p)&&Me(i.value).isValid()?d(Me(i.value)):p instanceof Date&&!Number.isNaN(Date.parse(i.value))?d(new Date(i.value)):d(void 0):d(Me(i.value))};return e.onCleanup(()=>{var g;a.destroy(),t=!1,(g=r.element)==null||g.removeEventListener("keydown",m),c==null||c.destroy(),r.close()}),{onMounted:g=>{l=g},render(){const g=e.props;if(g.modelValue!==n){n=g.modelValue;const j=g.modelValue;queueMicrotask(()=>e.emit("change",j)),c&&c.update({modelValue:g.modelValue})}const i=g.format||Yl,p=typeof g.width=="number"?`${De(g.width)}rem`:g.width,y=g.modelValue?Me(g.modelValue).format(i):"",F=!!g.min&&Me(y).isSameOrBefore(Me(g.min),"day"),I=!!g.max&&Me(y).isSameOrAfter(Me(g.max),"day"),K=ye(g,jl),oe=g.id==null||g.id===""?h:String(g.id),re=(j,k,R,X)=>s.html`<button
|
|
704
757
|
type="button"
|
|
705
|
-
aria-label=${
|
|
706
|
-
class=${V("moz-button","moz-icon-button","moz-icon-accent-button","moz-icon-text-button","date-move-btn",`date-move-btn--${
|
|
707
|
-
?disabled=${
|
|
708
|
-
@click=${
|
|
758
|
+
aria-label=${k==="left"?e.locale.DateInput.prevDate:e.locale.DateInput.nextDate}
|
|
759
|
+
class=${V("moz-button","moz-icon-button","moz-icon-accent-button","moz-icon-text-button","date-move-btn",`date-move-btn--${k}`,{"date-move-btn--disabled":R})}
|
|
760
|
+
?disabled=${R}
|
|
761
|
+
@click=${X}
|
|
709
762
|
>
|
|
710
763
|
${j}
|
|
711
764
|
</button>`;return s.html`
|
|
712
765
|
<div
|
|
713
766
|
class=${V("moz-date-input-container",{disabled:g.disabled},g.class)}
|
|
714
|
-
style=${
|
|
767
|
+
style=${te.styleMap({...Ce(g.style),width:p})}
|
|
715
768
|
>
|
|
716
|
-
${g.label?Xe({for:
|
|
717
|
-
<div class="moz-date-input-wrapper" style="width:${
|
|
718
|
-
${g.showSpin?
|
|
769
|
+
${g.label?Xe({for:oe,disabled:g.disabled},s.html`${g.label}${g.required?s.html`<span class="require-mark">*</span>`:s.nothing}`):s.nothing}
|
|
770
|
+
<div class="moz-date-input-wrapper" style="width:${p}">
|
|
771
|
+
${g.showSpin?re(Kl("var(--moz-color-on-accent)","14",g.disabled||F),"left",!!g.disabled||!!g.readonly||F,$):s.nothing}
|
|
719
772
|
<div
|
|
720
773
|
class=${V("moz-date-input",{"moz-date-input--no-lr-border":g.showSpin,"moz-date-input--radius":!g.showSpin,"moz-date-input--disabled":g.disabled,"moz-date-input--open":t&&!g.disabled})}
|
|
721
|
-
@click=${
|
|
722
|
-
@keydown=${
|
|
774
|
+
@click=${x}
|
|
775
|
+
@keydown=${m}
|
|
723
776
|
>
|
|
724
777
|
<input
|
|
725
|
-
id=${
|
|
726
|
-
.value=${
|
|
778
|
+
id=${oe}
|
|
779
|
+
.value=${y}
|
|
727
780
|
name=${Ee.ifDefined(g.name)}
|
|
728
781
|
?disabled=${!!g.disabled}
|
|
729
782
|
?readonly=${!!g.readonly}
|
|
730
783
|
class=${V("moz-date-input__field",{"moz-date-input__field--disabled":g.disabled})}
|
|
731
|
-
${
|
|
732
|
-
@change=${
|
|
784
|
+
${fe(K)}
|
|
785
|
+
@change=${L}
|
|
733
786
|
/>
|
|
734
787
|
${g.readonly?s.nothing:s.html`<div class="moz-date-input__icon-container">
|
|
735
|
-
${
|
|
788
|
+
${Gl("currentColor",V("moz-date-input__icon",{"moz-date-input__icon--disabled":g.disabled}))}
|
|
736
789
|
</div>`}
|
|
737
790
|
</div>
|
|
738
|
-
${g.showSpin?
|
|
791
|
+
${g.showSpin?re(Zl("var(--moz-color-on-accent)","14",g.disabled||I),"right",!!g.disabled||!!g.readonly||I,P):s.nothing}
|
|
739
792
|
</div>
|
|
740
793
|
</div>
|
|
741
|
-
`}}}}),
|
|
794
|
+
`}}}}),Xl={name:"MozDateInput",core:ks,booleanProps:["disabled","readonly","required","showSpin"],props:["label","name","width","required","disabled","readonly","format","showSpin","min","max","modelValue"],emits:["change","focus","focusOut","close","update:modelValue"],slots:[],expose:!1};function xt(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 Ql(e="10",t="var(--moz-color-text-muted)",o=!1,n=!1,l=""){const c=xt(e),r=l||s.nothing;return c.width<=10?s.html`<svg class=${r} width=${c.width} height=${c.height} viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
742
795
|
<path d="M8.5 1.5L1.49999 8.50001" stroke=${t} stroke-width="1.75" stroke-linecap="round"></path>
|
|
743
796
|
<path d="M1.5 1.5L8.50001 8.50001" stroke=${t} stroke-width="1.75" stroke-linecap="round"></path>
|
|
744
|
-
</svg>`:
|
|
797
|
+
</svg>`:c.width<=13&&c.width>=11&&!n?s.html`<svg class=${r} width=${c.width} height=${c.height} viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
745
798
|
<path d="M1.71436 1.71428L10.8069 10.7926" stroke=${t} stroke-width="2" stroke-linecap="round"></path>
|
|
746
799
|
<path d="M10.8069 1.71428L1.71436 10.7926" stroke=${t} stroke-width="2" stroke-linecap="round"></path>
|
|
747
|
-
</svg>`:
|
|
800
|
+
</svg>`:c.width<=13&&c.width>=11&&n?s.html`<svg class=${r} width=${c.width} height=${c.height} viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
748
801
|
<path d="M10.2 1.7998L1.79994 10.1998" stroke=${t} stroke-width="1.6" stroke-linecap="round"></path>
|
|
749
802
|
<path d="M1.79993 1.7998L10.1999 10.1998" stroke=${t} stroke-width="1.6" stroke-linecap="round"></path>
|
|
750
|
-
</svg>`:s.html`<svg class=${
|
|
803
|
+
</svg>`:s.html`<svg class=${r} width=${c.width} height=${c.height} viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
751
804
|
<g>
|
|
752
805
|
<g>
|
|
753
806
|
<path
|
|
@@ -764,7 +817,7 @@
|
|
|
764
817
|
></path>
|
|
765
818
|
</g>
|
|
766
819
|
</g>
|
|
767
|
-
</svg>`}function
|
|
820
|
+
</svg>`}function Jl(e="30",t="var(--moz-color-danger)",o=""){const n=xt(e);return s.html`<svg class=${o||s.nothing} width=${n.width} height=${n.height} viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
768
821
|
<mask id="mask0_6027_4458" style="mask-type: luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="30" height="30">
|
|
769
822
|
<g><path d="M30 0H0V30H30V0Z" fill="#FFF"></path></g>
|
|
770
823
|
</mask>
|
|
@@ -776,7 +829,7 @@
|
|
|
776
829
|
></path>
|
|
777
830
|
</g>
|
|
778
831
|
</g>
|
|
779
|
-
</svg>`}function
|
|
832
|
+
</svg>`}function qo(e="30",t="var(--moz-color-accent)",o=""){const n=xt(e);return s.html`<svg class=${o||s.nothing} width=${n.width} height=${n.height} viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
780
833
|
<g>
|
|
781
834
|
<path
|
|
782
835
|
fill-rule="evenodd"
|
|
@@ -785,7 +838,7 @@
|
|
|
785
838
|
fill=${t}
|
|
786
839
|
></path>
|
|
787
840
|
</g>
|
|
788
|
-
</svg>`}function
|
|
841
|
+
</svg>`}function ei(e="30",t="var(--moz-color-success)",o=""){const n=xt(e);return s.html`<svg class=${o||s.nothing} width=${n.width} height=${n.height} viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
789
842
|
<g>
|
|
790
843
|
<path
|
|
791
844
|
fill-rule="evenodd"
|
|
@@ -794,7 +847,7 @@
|
|
|
794
847
|
fill=${t}
|
|
795
848
|
></path>
|
|
796
849
|
</g>
|
|
797
|
-
</svg>`}function
|
|
850
|
+
</svg>`}function ti(e="30",t="var(--moz-color-warning)",o=""){const n=xt(e);return s.html`<svg class=${o||s.nothing} width=${n.width} height=${n.height} viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
798
851
|
<mask id="mask0_6027_4463" style="mask-type: luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="30" height="30">
|
|
799
852
|
<g><path d="M30 0H0V30H30V0Z" fill="#FFF"></path></g>
|
|
800
853
|
</mask>
|
|
@@ -806,48 +859,47 @@
|
|
|
806
859
|
></path>
|
|
807
860
|
</g>
|
|
808
861
|
</g>
|
|
809
|
-
</svg>`}const
|
|
810
|
-
${
|
|
811
|
-
<div class="dialog-message">${
|
|
812
|
-
</div>`,ht=e.slots.has("footer")?e.slot("footer",{onConfirm:
|
|
813
|
-
${Te.positive?kt({class:"preset-btn",loading:z.loading,disabled:z.disabledConfirmButton,style:"min-width: 80px"},{onClick:F,content:Te.positive}):s.nothing}
|
|
814
|
-
${Te.negative?kt({class:"preset-btn",type:"outline",disabled:z.loading,style:"min-width: 80px"},{onClick:T,content:Te.negative}):s.nothing}
|
|
815
|
-
`;return s.html`
|
|
862
|
+
</svg>`}const oi=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 Et=0,Es="";const si=()=>{Et===0&&(Es=document.body.style.overflow,document.body.style.overflow="hidden"),Et+=1},ni=()=>{Et!==0&&(Et-=1,Et===0&&(document.body.style.overflow=Es))},li='a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])',Ls=$e({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=Y.createRef(),o=Y.createRef(),n=()=>{const S=o.value,de=t.value;!S||!de||(de.classList.toggle("moz-popup-scrolled",S.scrollTop>0),de.classList.toggle("moz-popup-scroll-more",S.scrollTop+S.clientHeight<S.scrollHeight-1))},l=ot("moz-popup-title-"),c=ot("moz-popup-desc-");let r=null,h=e.props.visible??!1,d=e.props.width,b=e.props.height;const a=()=>e.controlled("visible")?!!e.props.visible:h,m=S=>{e.controlled("visible")||(h=S),e.emit("update:visible",S),e.requestUpdate()},u=()=>e.controlled("width")?e.props.width:d,E=S=>{e.controlled("width")||(d=S),e.emit("update:width",S),e.requestUpdate()},x=()=>e.controlled("height")?e.props.height:b,$=S=>{e.controlled("height")||(b=S),e.emit("update:height",S),e.requestUpdate()};let P=0,L=0,g=!1;const i=!0;let p=null;const y={mouseDown:!1,dragging:!1,offset:{x:0,y:0}};let F=a(),I=!1,K=!1,oe=null,re=[];const j=()=>{const S=t.value;if(S)for(const de of Array.from(document.body.children))de instanceof HTMLElement&&(de.contains(S)||de.getAttribute("aria-hidden")!=="true"&&(de.setAttribute("aria-hidden","true"),re.push(de)))},k=()=>{for(const S of re)S.removeAttribute("aria-hidden");re=[]},R=()=>{const S=t.value;return S?Array.from(S.querySelectorAll(li)).filter(de=>de.getAttribute("aria-hidden")!=="true"):[]},X=()=>{const S=document.querySelectorAll(".moz-popup");return S.length>0&&S[S.length-1]===t.value},se=()=>{r||(r=mo(()=>A()))},N=()=>{r==null||r.release(),r=null},ne=()=>{I||(I=!0,se(),e.props.lockScroll&&(si(),K=!0),e.props.focusTrap&&(oe=document.activeElement instanceof HTMLElement?document.activeElement:null,queueMicrotask(()=>{const S=t.value;!S||!a()||(R()[0]??S).focus()})),e.props.hideOthers&&queueMicrotask(()=>{a()&&j()}))},_=()=>{if(N(),!I)return;I=!1,K&&(ni(),K=!1),k();const S=oe;oe=null,S&&S.isConnected&&S.focus()},J=()=>{const S=t.value;if(!S)return;const de=e.props,w=de.top!=null?de.top:window.innerHeight/2-S.offsetHeight/2,U=de.left!=null?de.left:window.innerWidth/2-S.offsetWidth/2;w===L&&U===P||(L=w,P=U,e.requestUpdate())};let z=null,W=null;const Z=()=>{if(typeof ResizeObserver>"u")return;const S=t.value;!S||S===W||(z??(z=new ResizeObserver(()=>{!a()||e.props.side||e.props.autoPosition===!1||g||(J(),n())})),W&&z.unobserve(W),z.observe(S),W=S)},G=()=>{e.props.side||e.props.autoPosition===!1||queueMicrotask(()=>{J(),Z()})},Q=()=>{!a()||e.props.side||e.props.autoPosition===!1||g||G()},T=()=>{a()||m(!0),e.emit("open"),G(),ne()},f=async()=>{let S=!0;return e.props.onBeforeClose?S=await e.props.onBeforeClose()??!0:e.emit("close:before",S),S},D=async S=>{await f()&&(S||!a()||(m(!1),e.props.onCancel?e.props.onCancel():e.emit("close"),e.emit("hidden")))},A=()=>D(!1),H=async()=>{let S=!0;return e.props.onBeforeConfirm?S=await e.props.onBeforeConfirm()??!0:e.emit("confirm:before",S),S},pe=async()=>{await H()&&a()&&(m(!1),e.props.onConfirm?e.props.onConfirm():e.emit("confirm"),e.emit("hidden"))},ke=()=>{e.props.onBeforeUnload&&e.props.onBeforeUnload()},Ae=()=>{e.props.closeOnOutsideClick&&A()},Ue=S=>{S?T():(_(),ke(),D(!0))},We=(S,de)=>{document.addEventListener("mouseup",S),document.addEventListener("mousemove",de)},Qe=(S,de)=>{document.removeEventListener("mouseup",S),document.removeEventListener("mousemove",de)},Je=S=>{const de=P-S.clientX,w=L-S.clientY;y.mouseDown=!0,y.offset.x=de,y.offset.y=w,e.emit("drag-start")},nt=S=>{e.props.draggable&&(S.clientX===0&&p&&(S=p),S&&S.clientX&&S.clientY&&(P=S.clientX+y.offset.x,L=S.clientY+y.offset.y,g=!0,e.requestUpdate()))},qe=S=>{S.clientX!==0&&S.clientY!==0&&(p=S),y.mouseDown&&i&&(y.dragging=!0,nt(S))},Be=()=>{y.dragging&&e.emit("drag-end"),y.mouseDown=!1,setTimeout(()=>{y.dragging=!1,Qe(Be,qe)},100)},xe=S=>{e.props.side||e.props.autoPosition===!1||(S.preventDefault(),We(Be,qe),Je(S))},Ge=S=>{S.preventDefault();const de=t.value;if(!de)return;const w=de.getBoundingClientRect(),U=u()??w.width,ae=x()??w.height;if(!U||!ae)return;const he=U/ae,me={x:S.clientX,y:S.clientY},Te=e.props,be=et=>{let Ne=et.clientX-me.x,Le=et.clientY-me.y;if(Te.keepAspectRatio){const rt=Ne/he;Math.abs(Le)>Math.abs(rt)?Le=rt:Ne=Le*he}const Oe=Math.max(Te.minWidth,Math.min(U+Ne,Te.maxWidth));let ct=Math.max(Te.minHeight,Math.min(ae+Le,Te.maxHeight));Te.keepAspectRatio&&Oe/ct!==he&&(ct=Oe/he),E(Oe),$(ct)},Pe=()=>{document.removeEventListener("mousemove",be),document.removeEventListener("mouseup",Pe)};document.addEventListener("mousemove",be),document.addEventListener("mouseup",Pe)},Fe=S=>{if(S.key==="Tab"&&e.props.focusTrap&&a()&&X()){if(r&&!r.isTopmost())return;const de=t.value;if(!de)return;const w=R();if(w.length===0){S.preventDefault(),de.focus();return}const U=w[0],ae=w[w.length-1],he=document.activeElement,me=he instanceof Node&&de.contains(he);S.shiftKey?(!me||he===U||he===de)&&(S.preventDefault(),ae.focus()):(!me||he===ae)&&(S.preventDefault(),U.focus());return}};e.onCleanup(()=>{z==null||z.disconnect(),z=null,W=null,_(),window.removeEventListener("keydown",Fe),window.removeEventListener("resize",Q),ke(),window.removeEventListener("unload",ke),Qe(Be,qe)});const it=()=>{const S=e.props;if(S.action)return S.action;const de=e.locale.Popup;switch(S.preset){case"save":return{positive:S.saveText??de.save,negative:S.cancelText??de.cancel};case"check":return{positive:S.okText??de.ok};case"close":return{negative:S.closeText??de.close};case"confirm":default:return{positive:S.okText??de.ok,negative:S.cancelText??de.cancel}}},gt=S=>{switch(S){case"error":return Jl("30","var(--moz-color-danger)","dialog-icon");case"info":return qo("30","var(--moz-color-accent)","dialog-icon");case"success":return ei("30","var(--moz-color-success)","dialog-icon");case"warning":return ti("30","var(--moz-color-warning)","dialog-icon");default:return s.nothing}};return{api:{resetPosition:G},onMounted:()=>{window.addEventListener("keydown",Fe),window.addEventListener("resize",Q),window.addEventListener("unload",ke),queueMicrotask(()=>e.emit("init",o.value??null)),a()&&(G(),ne())},render(){const S=e.props,de=a();if(de!==F){const at=de;F=de,at?se():N(),queueMicrotask(()=>Ue(at))}const w=S.useVShow?!0:de;if(queueMicrotask(n),!w)return s.nothing;const U=S.useVShow?!de:!1,ae=u(),he=x(),me=S.side,Te=!!me||S.autoPosition===!1,be={...Ce(S.style),...ae?{width:`${De(ae)}rem`}:{},...he?{height:`${De(he)}rem`}:{},...Te?{}:{left:`${De(P)}rem`,top:`${De(L)}rem`}},Pe=!!S.draggable&&!Te,et=!!S.resizeable&&!me,Ne=typeof S.contentsPadding=="number"?`${De(S.contentsPadding)}rem`:S.contentsPadding,Le=it(),Oe=e.slots.has("default"),ct=e.slots.has("footer"),rt=!!Le.positive&&!Le.negative,ht=!me&&S.showBackdrop===!1&&S.autoPosition===!1&&Oe&&(S.preset==="no-footer"||!!S.action&&rt),vt=!me&&S.showBackdrop!==!1&&S.preset!=="save"&&S.preset!=="no-footer"&&(Oe?rt:!!S.dialogMessage),v=me?void 0:S.showBackdrop===!1?ht?"panel":void 0:vt?"alert":"dialog",O=vt&&!Oe&&S.dialogIcon==="info",B=!!v&&!ct,ee=ye(S,oi),le=e.slots.has("title")?e.slot("title"):s.html`<span class="truncate">${S.title}</span>`,ce=e.slots.has("description"),ge=e.slots.has("default")?e.slot("default"):s.html`<div class="moz-dialog-body">
|
|
863
|
+
${O?s.html`<span class="dialog-icon-disc" aria-hidden="true">${qo("20","var(--moz-color-accent)","dialog-icon")}</span>`:gt(S.dialogIcon)}
|
|
864
|
+
<div class="dialog-message">${S.dialogMessage!=null?Go.unsafeHTML(S.dialogMessage):s.nothing}</div>
|
|
865
|
+
</div>`,_e=Le.positive?kt({class:"preset-btn",type:ht?"text":O&&rt?"outline":void 0,loading:S.loading,disabled:S.disabledConfirmButton,style:"min-width: 80px"},{onClick:pe,content:Le.positive}):s.nothing,mt=Le.negative?kt({class:"preset-btn",type:"outline",disabled:S.loading,style:"min-width: 80px"},{onClick:A,content:Le.negative}):s.nothing,ze=e.slots.has("footer")?e.slot("footer",{onConfirm:pe,onCancel:A}):me||S.showBackdrop===!1?s.html`${_e}${mt}`:s.html`${mt}${_e}`;return s.html`
|
|
816
866
|
<div
|
|
817
|
-
class=${V("moz-popup-container",
|
|
818
|
-
style=${Ee.ifDefined(
|
|
867
|
+
class=${V("moz-popup-container",S.class,me?`moz-popup-side moz-popup-side-${me}`:null,S.showBackdrop===!1?"moz-popup-no-backdrop":null)}
|
|
868
|
+
style=${Ee.ifDefined(U?"display: none;":void 0)}
|
|
819
869
|
>
|
|
820
|
-
${
|
|
870
|
+
${S.showBackdrop===!1?s.nothing:s.html`<div class="moz-popup-backdrop" aria-hidden="true" @click=${Ae}></div>`}
|
|
821
871
|
<div
|
|
822
|
-
class=${V("moz-popup",
|
|
872
|
+
class=${V("moz-popup",S.dialogClass)}
|
|
873
|
+
data-popup-surface=${Ee.ifDefined(v)}
|
|
874
|
+
data-popup-footer=${Ee.ifDefined(B?"preset":void 0)}
|
|
823
875
|
role="dialog"
|
|
824
876
|
aria-modal="true"
|
|
825
|
-
aria-labelledby=${Ee.ifDefined(
|
|
826
|
-
aria-describedby=${Ee.ifDefined(
|
|
827
|
-
tabindex=${Ee.ifDefined(
|
|
828
|
-
style=${
|
|
829
|
-
${
|
|
830
|
-
${
|
|
877
|
+
aria-labelledby=${Ee.ifDefined(S.showHeader===!1?void 0:l)}
|
|
878
|
+
aria-describedby=${Ee.ifDefined(ce?c:void 0)}
|
|
879
|
+
tabindex=${Ee.ifDefined(S.focusTrap?"-1":void 0)}
|
|
880
|
+
style=${te.styleMap(be)}
|
|
881
|
+
${Y.ref(t)}
|
|
882
|
+
${fe(ee)}
|
|
831
883
|
>
|
|
832
|
-
${
|
|
833
|
-
id=${
|
|
834
|
-
class=${V("moz-popup-title",{draggable:
|
|
835
|
-
@mousedown=${
|
|
836
|
-
@touchstart=${
|
|
884
|
+
${S.showHeader===!1?s.nothing:s.html`<div
|
|
885
|
+
id=${l}
|
|
886
|
+
class=${V("moz-popup-title",{draggable:Pe})}
|
|
887
|
+
@mousedown=${xe}
|
|
888
|
+
@touchstart=${xe}
|
|
837
889
|
>
|
|
838
|
-
${
|
|
839
|
-
${
|
|
890
|
+
${le}
|
|
891
|
+
${S.showCloseButton?kt({type:"icon",class:"close-button","aria-label":e.locale.Popup.close},{onClick:A,icon:Ql("14","var(--moz-color-text-subtle)")}):s.nothing}
|
|
840
892
|
</div>`}
|
|
841
|
-
${
|
|
842
|
-
<div class="moz-popup-body" style=${
|
|
843
|
-
${
|
|
844
|
-
${
|
|
893
|
+
${ce?s.html`<div id=${c} class="moz-popup-description">${e.slot("description")}</div>`:s.nothing}
|
|
894
|
+
<div class="moz-popup-body" @scroll=${n} style=${te.styleMap({padding:Ne})} ${Y.ref(o)}>${ge}</div>
|
|
895
|
+
${S.preset!=="no-footer"?s.html`<div class=${V("moz-popup-footer",{"with-border":S.showFooterBorder})}>
|
|
896
|
+
${ze}
|
|
845
897
|
</div>`:s.nothing}
|
|
846
|
-
${
|
|
898
|
+
${et?s.html`<div class="resize-handler" @mousedown=${Ge}></div>`:s.nothing}
|
|
847
899
|
</div>
|
|
848
900
|
</div>
|
|
849
|
-
`}}}}),
|
|
850
|
-
<g style=${`fill: ${
|
|
901
|
+
`}}}}),ii={name:"MozPopup",core:Ls,booleanProps:["autoPosition","closeOnOutsideClick","disabledConfirmButton","draggable","focusTrap","hideOthers","keepAspectRatio","loading","lockScroll","resizeable","showBackdrop","showCloseButton","showFooterBorder","showHeader","useVShow","visible"],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 Gt(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 Ps(e="12",t="var(--moz-color-text-subtle)",o=!1,n=""){const l=Gt(e),c=o?"var(--moz-color-text-muted)":t;return s.html`<svg class=${n||s.nothing} xmlns="http://www.w3.org/2000/svg" width=${l.width} height=${l.height} viewBox="0 0 16 16">
|
|
902
|
+
<g style=${`fill: ${c}`}>
|
|
851
903
|
<path
|
|
852
904
|
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"
|
|
853
905
|
style="stroke: none"
|
|
@@ -855,25 +907,25 @@
|
|
|
855
907
|
></path>
|
|
856
908
|
<path
|
|
857
909
|
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"
|
|
858
|
-
style=${`fill: ${
|
|
910
|
+
style=${`fill: ${c}; stroke: none`}
|
|
859
911
|
transform="translate(-829.971 -686.318)"
|
|
860
912
|
></path>
|
|
861
913
|
</g>
|
|
862
|
-
</svg>`}function
|
|
914
|
+
</svg>`}function Ms(e="14",t="var(--moz-color-text-subtle)",o=!1){const n=Gt(e,14);return s.html`<svg xmlns="http://www.w3.org/2000/svg" width=${n.width} height=${n.height} viewBox="0 0 14 14" fill="none">
|
|
863
915
|
<path
|
|
864
916
|
fill-rule="evenodd"
|
|
865
917
|
clip-rule="evenodd"
|
|
866
918
|
d="M4.28543 4.37082C4.63291 4.01541 5.20272 4.00898 5.55814 4.35646L9.05717 7.77743L12.4606 4.36449C12.8116 4.01253 13.3815 4.01174 13.7334 4.36272C14.0854 4.7137 14.0862 5.28355 13.7352 5.63551L9.70247 9.67945C9.35394 10.029 8.78895 10.0325 8.43602 9.68748L4.29979 5.64353C3.94437 5.29605 3.93794 4.72624 4.28543 4.37082Z"
|
|
867
919
|
fill=${o?"var(--moz-color-text-muted)":t}
|
|
868
920
|
></path>
|
|
869
|
-
</svg>`}function
|
|
921
|
+
</svg>`}function xs(e="14",t="var(--moz-color-text-subtle)",o=!1){const n=Gt(e,14);return s.html`<svg xmlns="http://www.w3.org/2000/svg" width=${n.width} height=${n.height} viewBox="0 0 14 14" fill="none">
|
|
870
922
|
<path
|
|
871
923
|
fill-rule="evenodd"
|
|
872
924
|
clip-rule="evenodd"
|
|
873
925
|
d="M13.7433 9.67312C13.3958 10.0285 12.826 10.035 12.4705 9.68748L8.97152 6.26652L5.56806 9.67946C5.21708 10.0314 4.64723 10.0322 4.29527 9.68123C3.94331 9.33024 3.94252 8.7604 4.2935 8.40844L8.32621 4.36449C8.67474 4.01499 9.23974 4.01141 9.59267 4.35647L13.7289 8.40041C14.0843 8.7479 14.0907 9.31771 13.7433 9.67312Z"
|
|
874
926
|
fill=${o?"var(--moz-color-text-muted)":t}
|
|
875
927
|
></path>
|
|
876
|
-
</svg>`}function lo(e="12",t="var(--moz-color-text-subtle)",o=!1){const n=
|
|
928
|
+
</svg>`}function lo(e="12",t="var(--moz-color-text-subtle)",o=!1){const n=Gt(e),l=o?"var(--moz-color-text-muted)":t;return n.width<=13?s.html`<svg xmlns="http://www.w3.org/2000/svg" width=${n.width} height=${n.height} viewBox="0 0 12 12" fill="none">
|
|
877
929
|
<path
|
|
878
930
|
d="M10.293 11.375L7.71099 8.79103C6.76581 9.4655 5.60162 9.76002 4.44941 9.61616C3.29719 9.4723 2.24116 8.90058 1.49082 8.01442C0.740489 7.12825 0.350682 5.99242 0.398745 4.83225C0.446808 3.67209 0.929227 2.57239 1.75029 1.75133C2.57135 0.930264 3.67106 0.447845 4.83122 0.399783C5.99138 0.35172 7.12722 0.741526 8.01338 1.49186C8.89954 2.2422 9.47126 3.29823 9.61512 4.45044C9.75898 5.60265 9.46446 6.76684 8.78999 7.71203L11.373 10.294C11.5163 10.4374 11.5969 10.6318 11.5969 10.8345C11.5969 11.0373 11.5163 11.2317 11.373 11.375C11.2296 11.5184 11.0352 11.5989 10.8325 11.5989C10.6298 11.5989 10.4363 11.5184 10.293 11.375ZM1.92899 5.02703C1.92899 5.64015 2.1108 6.2395 2.45144 6.7493C2.79207 7.25909 3.27622 7.65642 3.84267 7.89106C4.40912 8.12569 5.03243 8.18708 5.63377 8.06746C6.23511 7.94785 6.78748 7.6526 7.22102 7.21906C7.65457 6.78552 7.94981 6.23315 8.06943 5.63181C8.18904 5.03047 8.12765 4.40716 7.89302 3.84071C7.65839 3.27426 7.26105 2.79011 6.75126 2.44947C6.24147 2.10884 5.64211 1.92703 5.02899 1.92703C4.20682 1.92703 3.41832 2.25364 2.83696 2.835C2.2556 3.41636 1.92899 4.20486 1.92899 5.02703Z"
|
|
879
931
|
fill=${l}
|
|
@@ -883,41 +935,41 @@
|
|
|
883
935
|
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"
|
|
884
936
|
fill=${l}
|
|
885
937
|
></path>
|
|
886
|
-
</svg>`}const
|
|
938
|
+
</svg>`}const ri=250,ai=28,ci=new Set(["itemsSource","label","width","variant","size","required","readonly","disabled","keyProp","displayProp","separator","rules","useObjBinding","useFilter","listWidth","placeholder","searchPlaceholder","emptyText","requiredMessage","modelValue","class","style"]);function di(e,t){let o;return(...n)=>{o&&clearTimeout(o),o=setTimeout(()=>e(...n),t)}}function ui(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const zs=(e=!1)=>$e({name:"moz-select",defaults:{label:null,width:200,variant:"default",size:"medium",required:!1,readonly:!1,disabled:!1,keyProp:"id",displayProp:"text",separator:" / ",rules:[],useObjBinding:!1,useFilter:!0,listWidth:100,modelValue:null},setup(t){const o=Y.createRef(),n=Y.createRef(),l=Y.createRef(),c=Y.createRef(),r=Y.createRef(),h=Y.createRef();let d=null,b=t.props.modelValue??null;const a=()=>t.controlled("modelValue")?t.props.modelValue??null:b,m=w=>{t.controlled("modelValue")||(b=w),t.emit("update:modelValue",w),t.requestUpdate()};let u=!1,E=!1,x=0,$=null,P=null,L="",g=-1;const i=ot("moz-select-listbox-"),p={change:"",blur:"",save:""};let y=a();const F=()=>t.props.keyProp||"id",I=()=>Array.isArray(t.props.displayProp)?t.props.displayProp:null,K=()=>I()?32:ai,oe=()=>I()?300:ri,re=()=>{var w;return!!((w=I())!=null&&w.some(U=>U.header!==void 0))},j=()=>e?t.locale.TableSelect:t.locale.Select,k=w=>t.props.useObjBinding&&w&&typeof w=="object"?w[F()]:w,R=w=>a()!=null&&w[F()]===k(a()),X=w=>{const U=typeof w.width=="number"?`${w.width}px`:w.width;return{width:U,minWidth:U,maxWidth:U,flex:U==null?"1 1 0":"0 0 auto"}},se=new st.Virtualizer({count:0,getScrollElement:()=>d,estimateSize:K,measureElement:w=>{const U=w.getBoundingClientRect().height;return U>0?U:K()},overscan:5,observeElementRect:st.observeElementRect,observeElementOffset:st.observeElementOffset,scrollToFn:st.elementScroll,onChange:()=>t.requestUpdate()});t.onCleanup(()=>{E=!0,x+=1,$=null,P=null,window.removeEventListener("keydown",A),pe==null||pe.release(),pe=null}),t.onCleanup(se._didMount());const N=w=>{d=w??null,w&&(se._willUpdate(),t.requestUpdate())},ne=w=>t.props.itemsSource?t.props.itemsSource.find(ae=>ae[F()]===w)??null:null,_=w=>{if(!w)return"";const U=I();return U?U.map(ae=>String(w[ae.key]??"")).join(t.props.separator??" / "):typeof t.props.displayProp=="function"?t.props.displayProp(w):String(typeof w=="object"?w[t.props.displayProp]??"":w)},J=()=>{const w=a();if(!w&&isNaN(Number(w)))return null;const U=t.props.useObjBinding?w:ne(w);return U?_(U):null},z=()=>{if(!L)return t.props.itemsSource??[];const w=L.toLowerCase();return(t.props.itemsSource??[]).filter(U=>I()?I().some(ae=>String(U[ae.key]??"").toLowerCase().includes(w)):_(U).toLowerCase().includes(w))},W=w=>{if(!L)return[{part:w,highlight:!1}];const U=ui(L),ae=new RegExp(`(${U})`,"gi");return w.split(ae).map(he=>({part:he,highlight:L.toLowerCase()===he.toLowerCase()}))},Z=()=>p.save||p.blur||p.change,G=()=>{const w=[];return t.props.required&&w.push({message:t.props.requiredMessage??j().requiredMessage.replace("{label}",t.props.label||""),type:"save",validator:U=>!!U}),[...w,...t.props.rules??[]]},Q=async(w,U)=>{const ae=G();if(ae.length<=0||t.props.disabled)return!0;p[U]="",t.requestUpdate();const he=ae.filter(me=>me.type===U);for(const me of he){const Te=e&&t.props.useObjBinding?w==null?"":String(w):w;if(!await me.validator(Te))return p[U]=me.message,t.requestUpdate(),!1}return!0},T=async(w="save")=>Z()!==""?!1:await Q(a(),w),f={validate:T,initValidator:()=>{p.change="",p.blur="",p.save="",t.requestUpdate()}};t.validator&&(t.validator.addValidator(f),t.onCleanup(()=>{var w;return(w=t.validator)==null?void 0:w.removeValidator(f)}));const D=new Kt({anchor:()=>n.value??null,panel:()=>l.value??null,maxHeight:oe,container:()=>o.value??null,useMinWidth:!0,listWidth:()=>t.props.listWidth,ignoreScrollTargets:w=>w===d,requestClose:()=>{u&&ke(!1)}});t.onCleanup(()=>D.destroy());const A=w=>{`${w.ctrlKey?"ctrl+":""}${w.altKey?"alt+":""}${w.key.toLowerCase()}`==="escape"&&ke(!1)},H=w=>{const U=oe()-(I()&&t.props.useFilter?29:0)-(re()?32:0),ae=K()*w;return Math.max(0,ae-U/2+K())};let pe=null;const ke=(w,U,ae=!0)=>{if(E||u===w)return;u=w;const he=++x;$=w&&U!==void 0?{generation:he,step:U}:null,P=null,t.requestUpdate(),w?(pe=Zt(),D.open(),p.save="",window.addEventListener("keydown",A),queueMicrotask(()=>{var Te;if(E||!u||he!==x)return;if(a()!=null){const be=z().findIndex(R);be>=0&&(e&&(g=be,t.requestUpdate()),d&&(d.scrollTop=H(be)))}ae&&U===void 0&&(h.value?h.value.focus():(Te=r.value)==null||Te.focus())})):(pe==null||pe.release(),pe=null,D.close(),t.emit("close"),Q(a(),"blur"),window.removeEventListener("keydown",A),L="",g=-1,t.emit("close"),queueMicrotask(()=>{var me;E||u||he!==x||(me=r.value)==null||me.focus()}))},Ae=()=>{var w;t.props.disabled||(ke(!u),(w=r.value)==null||w.focus())},Ue=w=>{var U;m(w),ke(!1),(U=r.value)==null||U.focus()},We=di(w=>{L=w.target.value,e&&(g=z().length?0:-1),t.requestUpdate(),queueMicrotask(()=>{const U=z().length;se.setOptions({...se.options,count:U}),se.measure(),d&&(d.scrollTop=0,se.scrollToIndex(0),se.measure())})},300),Qe=w=>{var U;if(u){w.stopPropagation(),w.preventDefault();const ae=h.value??((U=c.value)==null?void 0:U.querySelector("div:first-child"));ae==null||ae.focus()}},Je=w=>{var Te,be,Pe;const U=((Te=l.value)==null?void 0:Te.querySelectorAll('[tabindex="0"]'))??[],ae=[...Array.from(U)];h.value&&ae.unshift(h.value);const he=ae[0],me=ae[ae.length-1];(w.target===he||w.target===me)&&r.value&&(w.target===he&&w.shiftKey?(w.stopPropagation(),w.preventDefault(),(be=r.value)==null||be.focus()):w.target===me&&!w.shiftKey&&(w.stopPropagation(),w.preventDefault(),(Pe=r.value)==null||Pe.focus()))},nt=w=>{d&&(w.shiftKey?d.scrollTop-=24:d.scrollTop+=24)},qe=()=>{var U;const w=Array.from(((U=l.value)==null?void 0:U.querySelectorAll('[tabindex="0"]'))??[]);return h.value&&!w.includes(h.value)&&w.unshift(h.value),w},Be=w=>{var me;const U=qe();if(U.length===0)return;const ae=U.indexOf(document.activeElement),he=ae<0?w>0?0:U.length-1:Math.min(U.length-1,Math.max(0,ae+w));(me=U[he])==null||me.focus()},xe=w=>w.find(U=>U.getAttribute("aria-selected")==="true")??null,Ge=w=>{ke(!0,w)},Fe=()=>{const w=$;!w||P===w||(P=w,queueMicrotask(()=>{var he;if(P===w&&(P=null),E||!u||w.generation!==x||$!==w||!((he=l.value)!=null&&he.isConnected))return;const U=qe(),ae=h.value??xe(U)??U[w.step<0?U.length-1:0];ae!=null&&ae.isConnected&&($=null,ae.focus())}))},it=()=>{var w;ke(!1),(w=r.value)==null||w.focus()},gt=w=>{if(w.key==="Tab"){Qe(w);return}if(w.key==="Enter"||w.key===" "){u||(w.preventDefault(),w.stopPropagation(),Ge(1));return}if(w.key==="ArrowDown"||w.key==="ArrowUp"){w.preventDefault(),w.stopPropagation();const U=w.key==="ArrowDown"?1:-1;u?Be(U):Ge(U);return}w.key==="Escape"&&u&&(w.preventDefault(),it())},S=w=>{if(e){const U=z();if(w.key==="ArrowDown"||w.key==="ArrowUp"){if(w.preventDefault(),!U.length)return;g=w.key==="ArrowDown"?g>=U.length-1?0:g+1:g<=0?U.length-1:g-1,t.requestUpdate();const ae=x;queueMicrotask(()=>{!E&&u&&ae===x&&se.scrollToIndex(g,{align:"auto"})})}else if(w.key==="Enter"){w.preventDefault();const ae=U[g];ae&&Ue(t.props.useObjBinding?ae:ae[F()])}return}if(w.key==="Tab"){Je(w);return}if(w.key==="ArrowDown"||w.key==="ArrowUp"){w.preventDefault(),Be(w.key==="ArrowDown"?1:-1);return}w.key==="Escape"&&(w.preventDefault(),it())},de=(w,U)=>{if(!e){if(w.key==="Tab"){nt(w);return}if(w.key==="ArrowDown"||w.key==="ArrowUp"){w.preventDefault(),w.stopPropagation(),Be(w.key==="ArrowDown"?1:-1);return}if(w.key==="Escape"){w.preventDefault(),w.stopPropagation(),it();return}(w.key==="Enter"||w.key===" ")&&(w.key==="Enter"&&w.preventDefault(),Ue(U))}};return{api:{validate:T,setOpen:w=>{E||w&&t.props.disabled||ke(w,void 0,!1)},isOpen:()=>!E&&u},render(){const w=t.props,U=a();if(U!==y){y=U;const Oe=U;queueMicrotask(()=>{Q(Oe,"change"),t.emit("change",Oe,ne(k(Oe)))})}const ae=typeof w.width=="number"?`${De(w.width)}rem`:w.width,he=ye(w,ci),{aria:me,dom:Te}=Wt(he),be=!e&&w.variant==="text",Pe=!e&&w.size==="small",et=t.slots.has("icon")?t.slot("icon",{isOpen:u}):u?xs("14",be?"currentColor":"var(--moz-color-accent)"):Ms("14",be?"currentColor":"var(--moz-color-text-subtle)",w.disabled),Ne=s.html`<button
|
|
887
939
|
type="button"
|
|
888
940
|
class="icon-container"
|
|
889
|
-
${
|
|
941
|
+
${fe(me)}
|
|
890
942
|
role="combobox"
|
|
891
943
|
aria-haspopup="listbox"
|
|
892
|
-
aria-expanded=${
|
|
893
|
-
aria-controls=${
|
|
894
|
-
aria-label=${Ee.ifDefined(
|
|
895
|
-
@keydown=${
|
|
896
|
-
${
|
|
944
|
+
aria-expanded=${u?"true":"false"}
|
|
945
|
+
aria-controls=${i}
|
|
946
|
+
aria-label=${Ee.ifDefined(me["aria-label"]??w.label??void 0)}
|
|
947
|
+
@keydown=${gt}
|
|
948
|
+
${Y.ref(r)}
|
|
897
949
|
?disabled=${!!w.disabled}
|
|
898
950
|
>
|
|
899
|
-
${
|
|
900
|
-
</button>`,
|
|
951
|
+
${et}
|
|
952
|
+
</button>`,Le=t.slots.has("input-container")?s.html`<div
|
|
901
953
|
class="moz-input-container select-input-container"
|
|
902
|
-
style=${
|
|
903
|
-
@click=${
|
|
904
|
-
${
|
|
954
|
+
style=${te.styleMap({width:ae})}
|
|
955
|
+
@click=${Ae}
|
|
956
|
+
${Y.ref(n)}
|
|
905
957
|
>
|
|
906
958
|
<div
|
|
907
959
|
class=${V("input-container-wrapper",{"input-container-wrapper--disabled":w.disabled})}
|
|
908
960
|
>
|
|
909
|
-
${t.slot("input-container",{text:
|
|
961
|
+
${t.slot("input-container",{text:J(),item:U})}
|
|
910
962
|
</div>
|
|
911
|
-
${
|
|
963
|
+
${Ne}
|
|
912
964
|
</div>`:s.html`<div
|
|
913
965
|
class="moz-input-container select-input-container"
|
|
914
|
-
style=${
|
|
915
|
-
@click=${
|
|
916
|
-
${
|
|
966
|
+
style=${te.styleMap({width:ae})}
|
|
967
|
+
@click=${Ae}
|
|
968
|
+
${Y.ref(n)}
|
|
917
969
|
>
|
|
918
970
|
<input
|
|
919
|
-
${
|
|
920
|
-
.value=${
|
|
971
|
+
${fe(Te)}
|
|
972
|
+
.value=${J()??""}
|
|
921
973
|
placeholder=${Ee.ifDefined(w.placeholder??void 0)}
|
|
922
974
|
autocomplete="off"
|
|
923
975
|
?disabled=${!!w.disabled}
|
|
@@ -926,82 +978,82 @@
|
|
|
926
978
|
class=${V("select-display-input",{"select-display-input--disabled":w.disabled})}
|
|
927
979
|
/>
|
|
928
980
|
${t.slot("input")}
|
|
929
|
-
${
|
|
981
|
+
${Ne}
|
|
930
982
|
</div>`;return s.html`
|
|
931
983
|
<div
|
|
932
|
-
class=${V(e?"moz-table-select":"moz-select",{"is-invalid":
|
|
933
|
-
style=${
|
|
934
|
-
${
|
|
984
|
+
class=${V(e?"moz-table-select":"moz-select",{"is-invalid":Z()!=="","is-open":u,disabled:!!w.disabled,"moz-select--text":be,"moz-select--small":Pe},!e&&w.class)}
|
|
985
|
+
style=${te.styleMap(Ce(w.style))}
|
|
986
|
+
${Y.ref(o)}
|
|
935
987
|
>
|
|
936
988
|
<div class="input-wrapper">
|
|
937
989
|
${w.label?Xe({disabled:w.disabled,required:w.required},w.label):s.nothing}
|
|
938
|
-
${
|
|
990
|
+
${Le}
|
|
939
991
|
</div>
|
|
940
992
|
|
|
941
|
-
${
|
|
993
|
+
${Z()!==""?s.html`<span class="moz-input-invalid-message">${Z()}</span>`:s.nothing}
|
|
942
994
|
</div>
|
|
943
|
-
`},renderPortal(){if(!
|
|
944
|
-
class=${V(
|
|
945
|
-
@keydown=${
|
|
946
|
-
${
|
|
995
|
+
`},renderPortal(){if(!u)return s.nothing;Fe();const w=t.props;a();const U=F(),ae=z();se.options.count!==ae.length&&se.setOptions({...se.options,count:ae.length}),se._willUpdate();const he=po(d?se.getVirtualItems():[],ae.length,K(),d),me=se.getTotalSize(),Te=he.map(be=>{if(be.index>=ae.length)return null;const Pe=ae[be.index];return Pe?{index:be.index,value:Pe,size:be.size,start:be.start}:null}).filter(be=>be!==null);return s.html`<div
|
|
996
|
+
class=${V(I()?"table-list-box moz-table-select-list":"list-box moz-select-list",{"no-label":!w.label},e&&w.class)}
|
|
997
|
+
@keydown=${S}
|
|
998
|
+
${Y.ref(l)}
|
|
947
999
|
>
|
|
948
1000
|
${w.useFilter?s.html`<div class="filter-input">
|
|
949
1001
|
${e?s.html`<div class="search-icon">${lo("12","var(--moz-color-text-subtle)")}</div>`:s.nothing}
|
|
950
1002
|
<input
|
|
951
|
-
${
|
|
952
|
-
@mousedown=${
|
|
1003
|
+
${Y.ref(h)}
|
|
1004
|
+
@mousedown=${be=>be.stopPropagation()}
|
|
953
1005
|
placeholder=${w.searchPlaceholder??j().searchPlaceholder}
|
|
954
|
-
@input=${
|
|
1006
|
+
@input=${We}
|
|
955
1007
|
class="filter-input__field"
|
|
956
1008
|
/>
|
|
957
|
-
${e?s.nothing:s.html`<div class="search-icon">${lo("12","var(--moz-color-text-subtle)")}</div>`}
|
|
1009
|
+
${e?s.nothing:s.html`<div class="search-icon">${lo(I()?"12":"14","var(--moz-color-text-subtle)")}</div>`}
|
|
958
1010
|
</div>`:s.nothing}
|
|
959
|
-
${
|
|
1011
|
+
${re()?s.html`<div class="table-header">${I().map(be=>s.html`<div class="table-header-cell" style=${te.styleMap(X(be))}>${be.header??""}</div>`)}</div>`:s.nothing}
|
|
960
1012
|
<div
|
|
961
|
-
id=${
|
|
1013
|
+
id=${i}
|
|
962
1014
|
role="listbox"
|
|
963
|
-
class=${V("list-box-container",{"list-box-container--with-filter":w.useFilter,"list-box-container--with-header":
|
|
964
|
-
${
|
|
1015
|
+
class=${V("list-box-container",{"list-box-container--with-filter":w.useFilter,"list-box-container--with-header":re(),"list-box-container--with-filter-header":w.useFilter&&re()})}
|
|
1016
|
+
${Y.ref(N)}
|
|
965
1017
|
>
|
|
966
|
-
<div class="inner-container" style=${
|
|
967
|
-
${
|
|
968
|
-
data-index=${
|
|
1018
|
+
<div class="inner-container" style=${te.styleMap({height:`${me}px`})} ${Y.ref(c)}>
|
|
1019
|
+
${Te.map(({index:be,value:Pe,start:et})=>{const Ne=R(Pe);return s.html`<div
|
|
1020
|
+
data-index=${be}
|
|
969
1021
|
role="option"
|
|
970
|
-
aria-selected=${
|
|
971
|
-
${
|
|
972
|
-
style=${
|
|
973
|
-
class=${V(
|
|
974
|
-
@mouseenter=${()=>{e&&(g=
|
|
975
|
-
@click=${()=>
|
|
1022
|
+
aria-selected=${Ne?"true":"false"}
|
|
1023
|
+
${Y.ref(Le=>{Le&&se.measureElement(Le)})}
|
|
1024
|
+
style=${te.styleMap({transform:`translateY(${et}px)`})}
|
|
1025
|
+
class=${V(I()?"table-row virtual-row":"list-box-item virtual-row",{"list-selected":Ne,"row-selected":!!I()&&Ne,"row-focused":e&&be===g})}
|
|
1026
|
+
@mouseenter=${()=>{e&&(g=be,t.requestUpdate())}}
|
|
1027
|
+
@click=${()=>Ue(w.useObjBinding?Pe:Pe[U])}
|
|
976
1028
|
tabindex="0"
|
|
977
|
-
@keydown=${
|
|
1029
|
+
@keydown=${Le=>de(Le,w.useObjBinding?Pe:Pe[U])}
|
|
978
1030
|
>
|
|
979
|
-
${t.slots.has("list-item")?t.slot("list-item",{text:
|
|
980
|
-
${
|
|
1031
|
+
${t.slots.has("list-item")?t.slot("list-item",{text:_(Pe),item:Pe,index:be,highlightText:W(_(Pe))}):I()?I().map(Le=>s.html`<div class="table-cell" style=${te.styleMap(X(Le))} title=${String(Pe[Le.key]??"")}>${W(String(Pe[Le.key]??"")).map(Oe=>s.html`<span class=${V({highlight:Oe.highlight})}>${Oe.part}</span>`)}</div>`):s.html`<div class="highlight-container" title=${_(Pe)}>
|
|
1032
|
+
${W(_(Pe)).map(Le=>s.html`<span class=${V({highlight:Le.highlight})}>${Le.part}</span>`)}
|
|
981
1033
|
</div>`}
|
|
982
|
-
${
|
|
1034
|
+
${Ne?Ps(I()?"12":"14","var(--moz-color-accent)",!1,"icon-check"):s.nothing}
|
|
983
1035
|
</div>`})}
|
|
984
1036
|
</div>
|
|
985
1037
|
|
|
986
|
-
${!
|
|
1038
|
+
${!ae||ae.length<=0?s.html`<div class=${I()?"empty-row table-row":"list-box-item loading not-hover"}>
|
|
987
1039
|
${t.slots.has("empty")?t.slot("empty"):w.emptyText??j().emptyText}
|
|
988
1040
|
</div>`:s.nothing}
|
|
989
1041
|
</div>
|
|
990
|
-
</div>`}}}}),
|
|
1042
|
+
</div>`}}}}),Ts=zs(),pi={name:"MozSelect",core:Ts,booleanProps:["disabled","readonly","required","useFilter","useObjBinding"],props:["itemsSource","label","width","variant","size","required","readonly","disabled","keyProp","displayProp","separator","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 Lo(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 hi(e="14",t="var(--moz-color-text-subtle)",o=!1){const n=Lo(e,14);return s.html`<svg xmlns="http://www.w3.org/2000/svg" width=${n.width} height=${n.height} viewBox="0 0 14 14" fill="none">
|
|
991
1043
|
<path
|
|
992
1044
|
fill-rule="evenodd"
|
|
993
1045
|
clip-rule="evenodd"
|
|
994
1046
|
d="M4.28543 4.37082C4.63291 4.01541 5.20272 4.00898 5.55814 4.35646L9.05717 7.77743L12.4606 4.36449C12.8116 4.01253 13.3815 4.01174 13.7334 4.36272C14.0854 4.7137 14.0862 5.28355 13.7352 5.63551L9.70247 9.67945C9.35394 10.029 8.78895 10.0325 8.43602 9.68748L4.29979 5.64353C3.94437 5.29605 3.93794 4.72624 4.28543 4.37082Z"
|
|
995
1047
|
fill=${o?"var(--moz-color-text-muted)":t}
|
|
996
1048
|
></path>
|
|
997
|
-
</svg>`}function
|
|
1049
|
+
</svg>`}function mi(e="14",t="var(--moz-color-text-subtle)",o=!1){const n=Lo(e,14);return s.html`<svg xmlns="http://www.w3.org/2000/svg" width=${n.width} height=${n.height} viewBox="0 0 14 14" fill="none">
|
|
998
1050
|
<path
|
|
999
1051
|
fill-rule="evenodd"
|
|
1000
1052
|
clip-rule="evenodd"
|
|
1001
1053
|
d="M13.7433 9.67312C13.3958 10.0285 12.826 10.035 12.4705 9.68748L8.97152 6.26652L5.56806 9.67946C5.21708 10.0314 4.64723 10.0322 4.29527 9.68123C3.94331 9.33024 3.94252 8.7604 4.2935 8.40844L8.32621 4.36449C8.67474 4.01499 9.23974 4.01141 9.59267 4.35647L13.7289 8.40041C14.0843 8.7479 14.0907 9.31771 13.7433 9.67312Z"
|
|
1002
1054
|
fill=${o?"var(--moz-color-text-muted)":t}
|
|
1003
1055
|
></path>
|
|
1004
|
-
</svg>`}function
|
|
1056
|
+
</svg>`}function fi(e="12",t="var(--moz-color-text-subtle)",o=!1){const n=Lo(e),l=o?"var(--moz-color-text-muted)":t;return n.width<=13?s.html`<svg xmlns="http://www.w3.org/2000/svg" width=${n.width} height=${n.height} viewBox="0 0 12 12" fill="none">
|
|
1005
1057
|
<path
|
|
1006
1058
|
d="M10.293 11.375L7.71099 8.79103C6.76581 9.4655 5.60162 9.76002 4.44941 9.61616C3.29719 9.4723 2.24116 8.90058 1.49082 8.01442C0.740489 7.12825 0.350682 5.99242 0.398745 4.83225C0.446808 3.67209 0.929227 2.57239 1.75029 1.75133C2.57135 0.930264 3.67106 0.447845 4.83122 0.399783C5.99138 0.35172 7.12722 0.741526 8.01338 1.49186C8.89954 2.2422 9.47126 3.29823 9.61512 4.45044C9.75898 5.60265 9.46446 6.76684 8.78999 7.71203L11.373 10.294C11.5163 10.4374 11.5969 10.6318 11.5969 10.8345C11.5969 11.0373 11.5163 11.2317 11.373 11.375C11.2296 11.5184 11.0352 11.5989 10.8325 11.5989C10.6298 11.5989 10.4363 11.5184 10.293 11.375ZM1.92899 5.02703C1.92899 5.64015 2.1108 6.2395 2.45144 6.7493C2.79207 7.25909 3.27622 7.65642 3.84267 7.89106C4.40912 8.12569 5.03243 8.18708 5.63377 8.06746C6.23511 7.94785 6.78748 7.6526 7.22102 7.21906C7.65457 6.78552 7.94981 6.23315 8.06943 5.63181C8.18904 5.03047 8.12765 4.40716 7.89302 3.84071C7.65839 3.27426 7.26105 2.79011 6.75126 2.44947C6.24147 2.10884 5.64211 1.92703 5.02899 1.92703C4.20682 1.92703 3.41832 2.25364 2.83696 2.835C2.2556 3.41636 1.92899 4.20486 1.92899 5.02703Z"
|
|
1007
1059
|
fill=${l}
|
|
@@ -1011,13 +1063,13 @@
|
|
|
1011
1063
|
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"
|
|
1012
1064
|
fill=${l}
|
|
1013
1065
|
></path>
|
|
1014
|
-
</svg>`}const ii=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 ri(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const xs=$e({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=K.createRef(),o=K.createRef(),n=K.createRef(),l=K.createRef(),d=K.createRef();let a=null;const f=()=>e.props.keyProp||"id",i=()=>e.props.disabledProp||"disabled";let c=e.props.modelValue??null;const r=()=>{const v=e.controlled("modelValue")?e.props.modelValue:c;return Array.isArray(v)?v:[]},u=v=>{e.controlled("modelValue")||(c=v),e.emit("update:modelValue",v),e.requestUpdate()};let p=!1,y=!1,L=0;e.onCleanup(()=>{y=!0,L+=1});const D=ot("moz-multiselect-listbox-");let P=e.props.filterValue??"",E=!1,g=!1,h={},C=[];const k={change:"",blur:"",save:""};let Z=e.props.itemsSource;const W=(()=>{const v=e.props["dropdown-item-height"];if(v!=null)return+v;try{return+getComputedStyle(document.documentElement).getPropertyValue("--size-input-dropdown-item-height").trim().replace("px","")||void 0}catch{return}})();let Q=W??(e.props.inline?24:28),re=!!e.props.inline,ae="",j=0,$=!1,I=null;const Y=()=>{I=null,j++},ne=()=>{!$&&I===null&&(a!=null&&a.isConnected)&&(I=a.scrollTop)},B=()=>{const v=j,R=a;I===null||!R||queueMicrotask(()=>{if(v!==j||R!==a||!R.isConnected||$||I===null||R.clientHeight<=0)return;const q=Math.min(Math.max(0,I),Math.max(0,R.scrollHeight-R.clientHeight));I=null,R.scrollTop!==q&&se.scrollToOffset(q,{behavior:"auto"})})},se=new nt.Virtualizer({count:0,getScrollElement:()=>a,estimateSize:()=>Q,overscan:5,observeElementRect:nt.observeElementRect,observeElementOffset:nt.observeElementOffset,scrollToFn:nt.elementScroll,onChange:()=>e.requestUpdate()});e.onCleanup(()=>{Y(),me==null||me.release(),me=null}),e.onCleanup(se._didMount());const N=v=>{ne(),j++,a=v??null,v&&(se._willUpdate(),B(),e.requestUpdate())},X=v=>typeof e.props.displayProp=="function"?e.props.displayProp(v):typeof v=="object"?v[e.props.displayProp]??"":v,x=()=>{const v=new Map;return(e.props.itemsSource??[]).forEach(R=>v.set(R[f()],R)),v},U=()=>{if(e.props.filterMode==="remote"||!P)return e.props.itemsSource??[];const v=P.toLowerCase();return(e.props.itemsSource??[]).filter(R=>X(R).toLowerCase().indexOf(v)>-1)},_=v=>{if(!P)return[{part:v,highlight:!1}];const R=ri(P),q=new RegExp(`(${R})`,"gi");return v.split(q).map(oe=>({part:oe,highlight:P.toLowerCase()===oe.toLowerCase()}))},G=v=>new Set(r()).has(v[f()]),J=v=>C.some(R=>wt(R.item,v)),M=()=>{const v=r(),R=U();if(v.length<R.length||v.length===0||R.length===0)return!1;const q=new Set(v);return R.every(oe=>q.has(oe[f()]))},m=()=>new Set(U().map(v=>v[f()])),T=()=>new Set(r()),A=()=>{const v=m(),R=T();return!v.size||!R.size||R.size<v.size?!1:Array.from(v).every(q=>R.has(q))},F=()=>k.save||k.blur||k.change,ce=()=>{const v=[];return e.props.required&&v.push({message:e.locale.MultiSelect.required.replace("{label}",e.props.label||""),type:"save",validator:R=>!!R.length}),[...v,...e.props.rules??[]]},ke=async(v,R)=>{const q=ce();if(q.length<=0)return;if(e.props.disabled)return!0;k[R]="",e.requestUpdate();const oe=q.filter(ie=>ie.type===R);for(const ie of oe)if(!await ie.validator(v))return k[R]=ie.message,e.requestUpdate(),!1;return!0},xe=async(v="save")=>F()!==""?!1:await ke(r(),v)??!0,Ne={validate:xe,initValidator:()=>{k.change="",k.blur="",k.save="",e.requestUpdate()}};e.validator&&(e.validator.addValidator(Ne),e.onCleanup(()=>{var v;return(v=e.validator)==null?void 0:v.removeValidator(Ne)}));const qe=v=>{if(e.props.disabled||e.props.readonly||e.props.loading)return;const R=x(),q=new Set;r().forEach(ie=>{const pe=R.get(ie);(pe==null?void 0:pe[i()])===!0&&q.add(ie)}),v.forEach(ie=>{const pe=R.get(ie);(pe&&pe[i()]!==!0||!pe&&e.props.preserveMissingValues)&&q.add(ie)});const oe=Array.from(q);wt(r(),oe)||(u(oe),e.emit("change",oe,oe.map(ie=>R.get(ie)).filter(Boolean)),ke(oe,"change"))},st=(v,R)=>v.filter(q=>G(q)!==R).map(q=>q[f()]),Qe=(v,R,q)=>{if(q.shiftKey&&C.length>0){const oe=C[0],ie=Math.min(oe.index,R),pe=Math.max(oe.index,R);C=U().slice(ie,pe+1).map((ge,Ge)=>({item:ge,index:ie+Ge}))}else q.ctrlKey?C.push({item:v,index:R}):C=[{item:v,index:R}];return C.length},Je=(v=!0)=>{const R=C.map(ie=>ie.item),q=st(R,v);let oe=r();v?oe=[...oe,...q]:oe=oe.filter(ie=>!q.some(pe=>ie===pe)),qe(oe)},Be=(v,R,q)=>{if(v[i()]===!0)return;const oe=C.some(pe=>pe.item[f()]===v[f()]);(C.length<=1||!oe)&&Qe(v,R,{shiftKey:!1,ctrlKey:!1});const ie=r().some(pe=>pe===v[f()]);Je(!ie),q.stopPropagation()},He=(v,R,q)=>{v[i()]!==!0&&(!q.ctrlKey&&!q.shiftKey&&C.length<=1&&Be(v,R,q),Qe(v,R,q),e.requestUpdate())},Le=(v,R,q)=>{if(v[i()]===!0)return;const oe=r(),ie=T().size!==0&&oe.every(pe=>pe===v[f()]);qe(ie?[]:[v[f()]]),Qe(v,R,q),q.stopPropagation()},_e=v=>{v.stopPropagation();const R=m().size===T().size&&[...m()].every(q=>T().has(q));if(M()&&R){const q=new Set((e.props.itemsSource??[]).filter(oe=>oe[i()]===!0).map(oe=>oe[f()]));qe(Array.from(q))}else{const q=new Set(U().filter(oe=>oe[i()]!==!0).map(oe=>oe[f()]));qe(Array.from(q))}},Ue=v=>{if(v.stopPropagation(),A()){const R=m();qe(r().filter(q=>!R.has(q)))}else{const R=new Set([...r(),...m()]);qe(Array.from(R))}},rt=v=>{const R=v.target;R===a&&(Y(),E=R.scrollTop>0,e.requestUpdate())},z=()=>{const v=r();if(!(v!=null&&v.length))return"";const R=x(),q=v.map(ie=>R.get(ie)).filter(Boolean).map(ie=>typeof e.props.displayProp=="function"?e.props.displayProp(ie):ie[e.props.displayProp]||""),oe=e.props.itemsSource??[];return q.length===oe.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(", ")||""},de=(v,R,q=10)=>{const oe=window.innerHeight||document.documentElement.clientHeight,ie=window.innerWidth||document.documentElement.clientWidth,pe=v.getBoundingClientRect(),ge=R.getBoundingClientRect(),Ge=pe.bottom+ge.height+q>oe;if(!Ge)return!1;const yt=pe.top-ge.height-q<0,Me=pe.right+ge.width+q>ie,ft=pe.left-ge.width-q<0;return Ge&&!yt||Me&&!ft},Ie=()=>{const v=o.value;if(!v)return;const R=v.getBoundingClientRect();let q=`${R.width}px`;e.props.listBoxWidth&&(q=typeof e.props.listBoxWidth=="number"?`${e.props.listBoxWidth}px`:e.props.listBoxWidth),h={width:String(q),left:`${R.left}px`,top:`${R.top+(g?0:R.height)}px`},e.requestUpdate()},w=v=>{var R;(R=n.value)!=null&&R.contains(v.target)||ve(!1)},H=v=>{var R,q;!((R=t.value)!=null&&R.contains(v.target))&&!((q=n.value)!=null&&q.contains(v.target))&&(ve(!1),document.removeEventListener("click",H,{capture:!0}))},te=v=>{var q;`${v.ctrlKey?"ctrl+":""}${v.altKey?"alt+":""}${v.key.toLowerCase()}`==="escape"&&(ve(!1),(q=l.value)==null||q.focus())};e.onCleanup(()=>{document.body.removeEventListener("scroll",w,{capture:!0}),document.removeEventListener("click",H,{capture:!0}),window.removeEventListener("keydown",te)});let me=null;const ve=(v,R=!0)=>{if(y||p===v)return;const q=++L;Y(),$=v;const oe=p;if(p=v,e.requestUpdate(),v)me=Gt(),document.body.addEventListener("scroll",w,{capture:!0}),document.addEventListener("click",H,{capture:!0}),k.save="",window.addEventListener("keydown",te),Ie(),queueMicrotask(()=>{var ie,pe;y||!p||q!==L||(!e.props.inline&&p&&o.value&&((ie=n.value)!=null&&ie.isConnected)&&(g=de(o.value,n.value)),Ie(),se.measure(),Y(),a&&(a.scrollTop=0),$=!1,R&&(d.value?d.value.focus():(pe=l.value)==null||pe.focus()))});else if(me==null||me.release(),me=null,P="",d.value&&(d.value.value=""),document.body.removeEventListener("scroll",w,{capture:!0}),document.removeEventListener("click",H,{capture:!0}),ke(r(),"blur"),window.removeEventListener("keydown",te),oe&&!v){const ie=r();if(e.props.selectAllWhenEmpty&&(!ie||ie.length===0)){const pe=(e.props.itemsSource??[]).filter(ge=>ge[i()]!==!0).map(ge=>ge[f()]);pe.length>0&&(u(pe),e.emit("change",pe,(e.props.itemsSource??[]).filter(ge=>pe.includes(ge[f()]))))}e.emit("close")}},Re=v=>{var R;if(p){v.stopPropagation(),v.preventDefault();const q=(R=n.value)==null?void 0:R.querySelector("input:first-child, button:first-child");q==null||q.focus()}},Ce=v=>{var ie,pe,ge;const R=((ie=n.value)==null?void 0:ie.querySelectorAll("input, button"))??[],q=R[0],oe=R[R.length-1];(v.target===q||v.target===oe)&&l.value&&(v.target===q&&v.shiftKey?(v.stopPropagation(),v.preventDefault(),(pe=l.value)==null||pe.focus()):v.target===oe&&!v.shiftKey&&(v.stopPropagation(),v.preventDefault(),(ge=l.value)==null||ge.focus()))},Se=v=>{v.key==="Tab"&&Re(v)},Ze=v=>{!e.props.inline&&v.key==="Tab"&&Ce(v)},Te=v=>{!p&&!e.props.inline||(Y(),$=!0,P=v.target.value,C=[],e.emit("update:filterValue",P),e.requestUpdate(),queueMicrotask(()=>{ht(e.props.loading?[]:U()),se.measure(),Y(),a&&(a.scrollTop=0),$=!1}))},De=()=>{var v;e.props.disabled||(ve(!p),(v=l.value)==null||v.focus())},et=(v,R)=>{var q,oe;if(v.key==="Enter"||v.key===" "){v.preventDefault(),v.stopPropagation(),R();return}if(v.key==="ArrowDown"||v.key==="ArrowUp"){v.preventDefault(),v.stopPropagation();const ie=Array.from(((q=n.value)==null?void 0:q.querySelectorAll('[tabindex="0"]'))??[]),pe=ie.indexOf(v.currentTarget),ge=ie[pe+(v.key==="ArrowDown"?1:-1)];ge==null||ge.focus();return}v.key==="Escape"&&!e.props.inline&&(v.preventDefault(),v.stopPropagation(),ve(!1),(oe=l.value)==null||oe.focus())},at=(v,R)=>{He(v,R,{ctrlKey:!1,shiftKey:!1,stopPropagation(){}})},Ct=(v,R)=>{if(C=[],e.props.preserveMissingValues||JSON.stringify(v)===JSON.stringify(R))return;const q=new Set(v.map(ie=>ie[f()])),oe=r();if(e.props.autoSelectNewItems&&R){const ie=new Set(R.map(ge=>ge[f()])),pe=v.filter(ge=>!ie.has(ge[f()])).map(ge=>ge[f()]);if(pe.length>0){const ge=oe.filter(Ge=>q.has(Ge));u([...new Set([...ge,...pe])])}else u(oe.filter(ge=>q.has(ge)))}else{const ie=oe.filter(pe=>q.has(pe));if(wt(oe,ie))return;u(ie)}},ht=v=>{const R=e.props,q=W??(R.inline?24:28),oe=!!R.useSelectAll&&(R.itemsSource??[]).length>0&&v.length>0,ie=R.inline||oe?0:8,pe=R.inline?0:8,ge=`${!!R.inline}/${q}/${ie}/${pe}/${v.length}`;if(ge!==ae){ne(),j++;const Ge=!Object.is(q,Q);ae=ge,Q=q,se.setOptions({...se.options,count:v.length,paddingStart:ie,paddingEnd:pe}),Ge&&se.measure()}return B(),{hasSelectAll:oe,paddingStart:ie,paddingEnd:pe}},mt=()=>{const v=e.props,R=f(),q=v.loading?[]:U(),{hasSelectAll:oe,paddingStart:ie,paddingEnd:pe}=ht(q);se._willUpdate();const ge=new Set(r()),Ge=se.getVirtualItems(),yt=po(Ge,q.length,Q,a).map(Fe=>{if(Fe.index>=q.length)return null;const We=q[Fe.index];return We?{index:Fe.index,value:We,size:Fe.size,start:Fe.start+(Ge.length===0?ie:0),isSelected:ge.has(We[R]),isDisabled:!!v.disabled||!!v.readonly||We[i()]===!0,isFocused:J(We)}:null}).filter(Fe=>Fe!==null),Me=se.getTotalSize(),ft=P?e.locale.MultiSelect.selectFiltered:e.locale.MultiSelect.selectAll,zt=q.length===0?s.html`<div class="list-box-item loading not-hover">
|
|
1066
|
+
</svg>`}const gi=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 vi(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const As=$e({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=Y.createRef(),o=Y.createRef(),n=Y.createRef(),l=Y.createRef(),c=Y.createRef();let r=null;const h=()=>e.props.keyProp||"id",d=()=>e.props.disabledProp||"disabled";let b=e.props.modelValue??null;const a=()=>{const v=e.controlled("modelValue")?e.props.modelValue:b;return Array.isArray(v)?v:[]},m=v=>{e.controlled("modelValue")||(b=v),e.emit("update:modelValue",v),e.requestUpdate()};let u=!1,E=!1,x=0;e.onCleanup(()=>{E=!0,x+=1});const $=ot("moz-multiselect-listbox-");let P=e.props.filterValue??"",L=!1,g=!1,i={},p=[];const y={change:"",blur:"",save:""};let F=e.props.itemsSource;const I=(()=>{const v=e.props["dropdown-item-height"];if(v!=null)return+v;try{return+getComputedStyle(document.documentElement).getPropertyValue("--size-input-dropdown-item-height").trim().replace("px","")||void 0}catch{return}})();let K=I??(e.props.inline?24:28),oe=!!e.props.inline,re="",j=0,k=!1,R=null;const X=()=>{R=null,j++},se=()=>{!k&&R===null&&(r!=null&&r.isConnected)&&(R=r.scrollTop)},N=()=>{const v=j,O=r;R===null||!O||queueMicrotask(()=>{if(v!==j||O!==r||!O.isConnected||k||R===null||O.clientHeight<=0)return;const B=Math.min(Math.max(0,R),Math.max(0,O.scrollHeight-O.clientHeight));R=null,O.scrollTop!==B&&ne.scrollToOffset(B,{behavior:"auto"})})},ne=new st.Virtualizer({count:0,getScrollElement:()=>r,estimateSize:()=>K,overscan:5,observeElementRect:st.observeElementRect,observeElementOffset:st.observeElementOffset,scrollToFn:st.elementScroll,onChange:()=>e.requestUpdate()});e.onCleanup(()=>{X(),he==null||he.release(),he=null}),e.onCleanup(ne._didMount());const _=v=>{se(),j++,r=v??null,v&&(ne._willUpdate(),N(),e.requestUpdate())},J=v=>typeof e.props.displayProp=="function"?e.props.displayProp(v):typeof v=="object"?v[e.props.displayProp]??"":v,z=()=>{const v=new Map;return(e.props.itemsSource??[]).forEach(O=>v.set(O[h()],O)),v},W=()=>{if(e.props.filterMode==="remote"||!P)return e.props.itemsSource??[];const v=P.toLowerCase();return(e.props.itemsSource??[]).filter(O=>J(O).toLowerCase().indexOf(v)>-1)},Z=v=>{if(!P)return[{part:v,highlight:!1}];const O=vi(P),B=new RegExp(`(${O})`,"gi");return v.split(B).map(ee=>({part:ee,highlight:P.toLowerCase()===ee.toLowerCase()}))},G=v=>new Set(a()).has(v[h()]),Q=v=>p.some(O=>bt(O.item,v)),T=()=>{const v=a(),O=W();if(v.length<O.length||v.length===0||O.length===0)return!1;const B=new Set(v);return O.every(ee=>B.has(ee[h()]))},f=()=>new Set(W().map(v=>v[h()])),D=()=>new Set(a()),A=()=>{const v=f(),O=D();return!v.size||!O.size||O.size<v.size?!1:Array.from(v).every(B=>O.has(B))},H=()=>y.save||y.blur||y.change,pe=()=>{const v=[];return e.props.required&&v.push({message:e.locale.MultiSelect.required.replace("{label}",e.props.label||""),type:"save",validator:O=>!!O.length}),[...v,...e.props.rules??[]]},ke=async(v,O)=>{const B=pe();if(B.length<=0)return;if(e.props.disabled)return!0;y[O]="",e.requestUpdate();const ee=B.filter(le=>le.type===O);for(const le of ee)if(!await le.validator(v))return y[O]=le.message,e.requestUpdate(),!1;return!0},Ae=async(v="save")=>H()!==""?!1:await ke(a(),v)??!0,Ue={validate:Ae,initValidator:()=>{y.change="",y.blur="",y.save="",e.requestUpdate()}};e.validator&&(e.validator.addValidator(Ue),e.onCleanup(()=>{var v;return(v=e.validator)==null?void 0:v.removeValidator(Ue)}));const We=v=>{if(e.props.disabled||e.props.readonly||e.props.loading)return;const O=z(),B=new Set;a().forEach(le=>{const ce=O.get(le);(ce==null?void 0:ce[d()])===!0&&B.add(le)}),v.forEach(le=>{const ce=O.get(le);(ce&&ce[d()]!==!0||!ce&&e.props.preserveMissingValues)&&B.add(le)});const ee=Array.from(B);bt(a(),ee)||(m(ee),e.emit("change",ee,ee.map(le=>O.get(le)).filter(Boolean)),ke(ee,"change"))},Qe=(v,O)=>v.filter(B=>G(B)!==O).map(B=>B[h()]),Je=(v,O,B)=>{if(B.shiftKey&&p.length>0){const ee=p[0],le=Math.min(ee.index,O),ce=Math.max(ee.index,O);p=W().slice(le,ce+1).map((ge,_e)=>({item:ge,index:le+_e}))}else B.ctrlKey?p.push({item:v,index:O}):p=[{item:v,index:O}];return p.length},nt=(v=!0)=>{const O=p.map(le=>le.item),B=Qe(O,v);let ee=a();v?ee=[...ee,...B]:ee=ee.filter(le=>!B.some(ce=>le===ce)),We(ee)},qe=(v,O,B)=>{if(v[d()]===!0)return;const ee=p.some(ce=>ce.item[h()]===v[h()]);(p.length<=1||!ee)&&Je(v,O,{shiftKey:!1,ctrlKey:!1});const le=a().some(ce=>ce===v[h()]);nt(!le),B.stopPropagation()},Be=(v,O,B)=>{v[d()]!==!0&&(!B.ctrlKey&&!B.shiftKey&&p.length<=1&&qe(v,O,B),Je(v,O,B),e.requestUpdate())},xe=(v,O,B)=>{if(v[d()]===!0)return;const ee=a(),le=D().size!==0&&ee.every(ce=>ce===v[h()]);We(le?[]:[v[h()]]),Je(v,O,B),B.stopPropagation()},Ge=v=>{v.stopPropagation();const O=f().size===D().size&&[...f()].every(B=>D().has(B));if(T()&&O){const B=new Set((e.props.itemsSource??[]).filter(ee=>ee[d()]===!0).map(ee=>ee[h()]));We(Array.from(B))}else{const B=new Set(W().filter(ee=>ee[d()]!==!0).map(ee=>ee[h()]));We(Array.from(B))}},Fe=v=>{if(v.stopPropagation(),A()){const O=f();We(a().filter(B=>!O.has(B)))}else{const O=new Set([...a(),...f()]);We(Array.from(O))}},it=v=>{const O=v.target;O===r&&(X(),L=O.scrollTop>0,e.requestUpdate())},gt=()=>{const v=a();if(!(v!=null&&v.length))return"";const O=z(),B=v.map(le=>O.get(le)).filter(Boolean).map(le=>typeof e.props.displayProp=="function"?e.props.displayProp(le):le[e.props.displayProp]||""),ee=e.props.itemsSource??[];return B.length===ee.length&&B.length>2?`${e.props.headerFormat.replace(/\{count(:.*?)?}/g,"ALL")}`:B.length>1?e.props.headerFormat.replace(/\{count(:.*?)?}/g,`${B.length.toLocaleString()}`):B.join(", ")||""},S=(v,O,B=10)=>{const ee=window.innerHeight||document.documentElement.clientHeight,le=window.innerWidth||document.documentElement.clientWidth,ce=v.getBoundingClientRect(),ge=O.getBoundingClientRect(),_e=ce.bottom+ge.height+B>ee;if(!_e)return!1;const mt=ce.top-ge.height-B<0,ze=ce.right+ge.width+B>le,at=ce.left-ge.width-B<0;return _e&&!mt||ze&&!at},de=()=>{const v=o.value;if(!v)return;const O=v.getBoundingClientRect();let B=`${O.width}px`;e.props.listBoxWidth&&(B=typeof e.props.listBoxWidth=="number"?`${e.props.listBoxWidth}px`:e.props.listBoxWidth),i={width:String(B),left:`${O.left}px`,top:`${O.top+(g?0:O.height)}px`},e.requestUpdate()},w=v=>{var O;(O=n.value)!=null&&O.contains(v.target)||me(!1)},U=v=>{var O,B;!((O=t.value)!=null&&O.contains(v.target))&&!((B=n.value)!=null&&B.contains(v.target))&&(me(!1),document.removeEventListener("click",U,{capture:!0}))},ae=v=>{var B;`${v.ctrlKey?"ctrl+":""}${v.altKey?"alt+":""}${v.key.toLowerCase()}`==="escape"&&(me(!1),(B=l.value)==null||B.focus())};e.onCleanup(()=>{document.body.removeEventListener("scroll",w,{capture:!0}),document.removeEventListener("click",U,{capture:!0}),window.removeEventListener("keydown",ae)});let he=null;const me=(v,O=!0)=>{if(E||u===v)return;const B=++x;X(),k=v;const ee=u;if(u=v,e.requestUpdate(),v)he=Zt(),document.body.addEventListener("scroll",w,{capture:!0}),document.addEventListener("click",U,{capture:!0}),y.save="",window.addEventListener("keydown",ae),de(),queueMicrotask(()=>{var le,ce;E||!u||B!==x||(!e.props.inline&&u&&o.value&&((le=n.value)!=null&&le.isConnected)&&(g=S(o.value,n.value)),de(),ne.measure(),X(),r&&(r.scrollTop=0),k=!1,O&&(c.value?c.value.focus():(ce=l.value)==null||ce.focus()))});else if(he==null||he.release(),he=null,P="",c.value&&(c.value.value=""),document.body.removeEventListener("scroll",w,{capture:!0}),document.removeEventListener("click",U,{capture:!0}),ke(a(),"blur"),window.removeEventListener("keydown",ae),ee&&!v){const le=a();if(e.props.selectAllWhenEmpty&&(!le||le.length===0)){const ce=(e.props.itemsSource??[]).filter(ge=>ge[d()]!==!0).map(ge=>ge[h()]);ce.length>0&&(m(ce),e.emit("change",ce,(e.props.itemsSource??[]).filter(ge=>ce.includes(ge[h()]))))}e.emit("close")}},Te=v=>{var O;if(u){v.stopPropagation(),v.preventDefault();const B=(O=n.value)==null?void 0:O.querySelector("input:first-child, button:first-child");B==null||B.focus()}},be=v=>{var le,ce,ge;const O=((le=n.value)==null?void 0:le.querySelectorAll("input, button"))??[],B=O[0],ee=O[O.length-1];(v.target===B||v.target===ee)&&l.value&&(v.target===B&&v.shiftKey?(v.stopPropagation(),v.preventDefault(),(ce=l.value)==null||ce.focus()):v.target===ee&&!v.shiftKey&&(v.stopPropagation(),v.preventDefault(),(ge=l.value)==null||ge.focus()))},Pe=v=>{v.key==="Tab"&&Te(v)},et=v=>{!e.props.inline&&v.key==="Tab"&&be(v)},Ne=v=>{!u&&!e.props.inline||(X(),k=!0,P=v.target.value,p=[],e.emit("update:filterValue",P),e.requestUpdate(),queueMicrotask(()=>{ht(e.props.loading?[]:W()),ne.measure(),X(),r&&(r.scrollTop=0),k=!1}))},Le=()=>{var v;e.props.disabled||(me(!u),(v=l.value)==null||v.focus())},Oe=(v,O)=>{var B,ee;if(v.key==="Enter"||v.key===" "){v.preventDefault(),v.stopPropagation(),O();return}if(v.key==="ArrowDown"||v.key==="ArrowUp"){v.preventDefault(),v.stopPropagation();const le=Array.from(((B=n.value)==null?void 0:B.querySelectorAll('[tabindex="0"]'))??[]),ce=le.indexOf(v.currentTarget),ge=le[ce+(v.key==="ArrowDown"?1:-1)];ge==null||ge.focus();return}v.key==="Escape"&&!e.props.inline&&(v.preventDefault(),v.stopPropagation(),me(!1),(ee=l.value)==null||ee.focus())},ct=(v,O)=>{Be(v,O,{ctrlKey:!1,shiftKey:!1,stopPropagation(){}})},rt=(v,O)=>{if(p=[],e.props.preserveMissingValues||JSON.stringify(v)===JSON.stringify(O))return;const B=new Set(v.map(le=>le[h()])),ee=a();if(e.props.autoSelectNewItems&&O){const le=new Set(O.map(ge=>ge[h()])),ce=v.filter(ge=>!le.has(ge[h()])).map(ge=>ge[h()]);if(ce.length>0){const ge=ee.filter(_e=>B.has(_e));m([...new Set([...ge,...ce])])}else m(ee.filter(ge=>B.has(ge)))}else{const le=ee.filter(ce=>B.has(ce));if(bt(ee,le))return;m(le)}},ht=v=>{const O=e.props,B=I??(O.inline?24:28),ee=!!O.useSelectAll&&(O.itemsSource??[]).length>0&&v.length>0,le=O.inline||ee?0:8,ce=O.inline?0:8,ge=`${!!O.inline}/${B}/${le}/${ce}/${v.length}`;if(ge!==re){se(),j++;const _e=!Object.is(B,K);re=ge,K=B,ne.setOptions({...ne.options,count:v.length,paddingStart:le,paddingEnd:ce}),_e&&ne.measure()}return N(),{hasSelectAll:ee,paddingStart:le,paddingEnd:ce}},vt=()=>{const v=e.props,O=h(),B=v.loading?[]:W(),{hasSelectAll:ee,paddingStart:le,paddingEnd:ce}=ht(B);ne._willUpdate();const ge=new Set(a()),_e=ne.getVirtualItems(),mt=po(_e,B.length,K,r).map(He=>{if(He.index>=B.length)return null;const Ke=B[He.index];return Ke?{index:He.index,value:Ke,size:He.size,start:He.start+(_e.length===0?le:0),isSelected:ge.has(Ke[O]),isDisabled:!!v.disabled||!!v.readonly||Ke[d()]===!0,isFocused:Q(Ke)}:null}).filter(He=>He!==null),ze=ne.getTotalSize(),at=P?e.locale.MultiSelect.selectFiltered:e.locale.MultiSelect.selectAll,zt=B.length===0?s.html`<div class="list-box-item loading not-hover">
|
|
1015
1067
|
${v.loading?v.loadingText??"Loading…":e.slots.has("empty")?e.slot("empty"):e.locale.MultiSelect.noData}
|
|
1016
1068
|
</div>`:s.nothing;return s.html`<div
|
|
1017
1069
|
class=${V("list-box moz-multi-select-list",{"no-label":!v.label,"show-top":g,"moz-multiselect-inline-list":!!v.inline},v.class)}
|
|
1018
|
-
style=${
|
|
1019
|
-
@keydown=${
|
|
1020
|
-
${
|
|
1070
|
+
style=${te.styleMap(v.inline?{"--moz-multiselect-list-height":`${v.listBoxHeight??224}px`}:{...i,"--moz-multiselect-row-height":`${K}px`})}
|
|
1071
|
+
@keydown=${et}
|
|
1072
|
+
${Y.ref(n)}
|
|
1021
1073
|
>
|
|
1022
1074
|
${v.useFilter?s.html`<div class="filter-input">
|
|
1023
1075
|
<input
|
|
@@ -1025,95 +1077,95 @@
|
|
|
1025
1077
|
aria-label=${v.searchPlaceholder??e.locale.MultiSelect.search}
|
|
1026
1078
|
.value=${P}
|
|
1027
1079
|
?disabled=${!!v.disabled||!!v.readonly}
|
|
1028
|
-
@input=${
|
|
1029
|
-
${
|
|
1080
|
+
@input=${Ne}
|
|
1081
|
+
${Y.ref(c)}
|
|
1030
1082
|
/>
|
|
1031
|
-
<div class="search-icon">${
|
|
1083
|
+
<div class="search-icon">${fi("12","var(--moz-color-text-subtle)")}</div>
|
|
1032
1084
|
</div>`:s.nothing}
|
|
1033
|
-
${
|
|
1034
|
-
class=${V("list-box-item multi-select-item multi-select-all",{"is-scrolled":
|
|
1085
|
+
${ee?s.html`<div
|
|
1086
|
+
class=${V("list-box-item multi-select-item multi-select-all",{"is-scrolled":L})}
|
|
1035
1087
|
role="button"
|
|
1036
1088
|
tabindex=${v.disabled||v.readonly||v.loading?"-1":"0"}
|
|
1037
1089
|
aria-disabled=${v.disabled||v.readonly||v.loading?"true":"false"}
|
|
1038
1090
|
aria-pressed=${A()?"true":"false"}
|
|
1039
|
-
aria-label=${
|
|
1040
|
-
@click=${
|
|
1041
|
-
@keydown=${
|
|
1091
|
+
aria-label=${at}
|
|
1092
|
+
@click=${Fe}
|
|
1093
|
+
@keydown=${He=>Oe(He,()=>Fe({stopPropagation(){}}))}
|
|
1042
1094
|
>
|
|
1043
1095
|
<input
|
|
1044
1096
|
type="checkbox"
|
|
1045
1097
|
aria-hidden="true"
|
|
1046
1098
|
tabindex="-1"
|
|
1047
|
-
class=${V("moz-checkbox",{"is-indeterminate":
|
|
1099
|
+
class=${V("moz-checkbox",{"is-indeterminate":B.some(He=>ge.has(He[O]))&&!T()})}
|
|
1048
1100
|
.checked=${A()}
|
|
1049
1101
|
/>
|
|
1050
1102
|
<div class="highlight-container">
|
|
1051
|
-
<span title=${
|
|
1103
|
+
<span title=${at}>${at}</span>
|
|
1052
1104
|
</div>
|
|
1053
|
-
${v.useSpecificSelect&&P&&
|
|
1105
|
+
${v.useSpecificSelect&&P&&B.length>0?s.html`<button type="button" class="item-only" @click=${Ge}>
|
|
1054
1106
|
${e.locale.MultiSelect.specificResults}
|
|
1055
1107
|
</button>`:s.nothing}
|
|
1056
1108
|
</div>`:s.nothing}
|
|
1057
1109
|
|
|
1058
1110
|
<div
|
|
1059
|
-
id=${
|
|
1111
|
+
id=${$}
|
|
1060
1112
|
role="listbox"
|
|
1061
1113
|
aria-multiselectable="true"
|
|
1062
1114
|
aria-label=${Ee.ifDefined(v["aria-label"]??v.label??void 0)}
|
|
1063
1115
|
aria-busy=${v.loading?"true":"false"}
|
|
1064
1116
|
class="list-box-container"
|
|
1065
|
-
@scroll=${
|
|
1066
|
-
@wheel=${
|
|
1067
|
-
@pointerdown=${
|
|
1068
|
-
@keydown=${
|
|
1069
|
-
${
|
|
1117
|
+
@scroll=${it}
|
|
1118
|
+
@wheel=${X}
|
|
1119
|
+
@pointerdown=${X}
|
|
1120
|
+
@keydown=${X}
|
|
1121
|
+
${Y.ref(_)}
|
|
1070
1122
|
>
|
|
1071
|
-
${!v.inline&&
|
|
1072
|
-
${
|
|
1073
|
-
class=${V("list-box-item multi-select-item virtual-row",{"list-selected":
|
|
1074
|
-
style=${
|
|
1123
|
+
${!v.inline&&B.length===0?s.nothing:s.html`<div class="inner-container" style=${te.styleMap({height:`${ze}px`})}>
|
|
1124
|
+
${mt.map(({index:He,value:Ke,start:Tt,size:Yt,isSelected:C,isDisabled:M,isFocused:q})=>s.html`<div
|
|
1125
|
+
class=${V("list-box-item multi-select-item virtual-row",{"list-selected":C,"moz-multi-focus":q})}
|
|
1126
|
+
style=${te.styleMap({height:`${Yt}px`,transform:`translateY(${Tt}px)`})}
|
|
1075
1127
|
role="option"
|
|
1076
|
-
aria-selected=${
|
|
1077
|
-
aria-disabled=${
|
|
1078
|
-
tabindex=${
|
|
1079
|
-
@click=${
|
|
1080
|
-
@keydown=${
|
|
1128
|
+
aria-selected=${C?"true":"false"}
|
|
1129
|
+
aria-disabled=${M?"true":"false"}
|
|
1130
|
+
tabindex=${M?"-1":"0"}
|
|
1131
|
+
@click=${ie=>Be(Ke,He,ie)}
|
|
1132
|
+
@keydown=${ie=>Oe(ie,()=>ct(Ke,He))}
|
|
1081
1133
|
>
|
|
1082
1134
|
<input
|
|
1083
1135
|
type="checkbox"
|
|
1084
1136
|
aria-hidden="true"
|
|
1085
1137
|
tabindex="-1"
|
|
1086
1138
|
class="moz-checkbox"
|
|
1087
|
-
.checked=${
|
|
1088
|
-
?disabled=${
|
|
1089
|
-
@click=${
|
|
1139
|
+
.checked=${C}
|
|
1140
|
+
?disabled=${M}
|
|
1141
|
+
@click=${ie=>qe(Ke,He,ie)}
|
|
1090
1142
|
/>
|
|
1091
|
-
${e.slots.has("list-item")?e.slot("list-item",{text:
|
|
1092
|
-
${
|
|
1143
|
+
${e.slots.has("list-item")?e.slot("list-item",{text:J(Ke),item:Ke}):s.html`<div class="highlight-container" title=${J(Ke)}>
|
|
1144
|
+
${Z(J(Ke)).map(ie=>s.html`<span class=${V("text-part",{highlight:ie.highlight})}>${ie.part}</span>`)}
|
|
1093
1145
|
</div>`}
|
|
1094
|
-
${v.useSpecificSelect&&!
|
|
1146
|
+
${v.useSpecificSelect&&!M?s.html`<button type="button" class="item-only" @click=${ie=>xe(Ke,He,ie)}>
|
|
1095
1147
|
${e.locale.MultiSelect.specificSelect}
|
|
1096
1148
|
</button>`:s.nothing}
|
|
1097
1149
|
</div>`)}
|
|
1098
1150
|
</div>`}
|
|
1099
|
-
${
|
|
1151
|
+
${B.length<=0?v.inline?zt:s.html`<div style=${te.styleMap({paddingTop:`${le}px`,paddingBottom:`${ce}px`})}>
|
|
1100
1152
|
${zt}
|
|
1101
1153
|
</div>`:s.nothing}
|
|
1102
1154
|
</div>
|
|
1103
|
-
</div>`};return{api:{validate:
|
|
1104
|
-
style=${
|
|
1105
|
-
${
|
|
1155
|
+
</div>`};return{api:{validate:Ae,setOpen:v=>{E||e.props.inline||v&&e.props.disabled||me(v,!1)},isOpen:()=>!E&&!e.props.inline&&u},render(){const v=e.props;if(e.controlled("filterValue")&&(P=v.filterValue??""),oe!==!!v.inline&&(se(),oe=!!v.inline),v.itemsSource!==F){const ge=F,_e=v.itemsSource;F=v.itemsSource,queueMicrotask(()=>rt(_e??[],ge??[]))}const O=typeof v.width=="number"?`${De(v.width)}rem`:v.width,B=ye(v,gi),{aria:ee,dom:le}=Wt(B);if(v.inline)return s.html`<div class="moz-multi-select moz-multi-select-inline"
|
|
1156
|
+
style=${te.styleMap({width:O,...Ce(v.style)})}
|
|
1157
|
+
${Y.ref(t)}>${vt()}</div>`;const ce=e.slots.has("icon")?e.slot("icon",{isOpen:u}):u?mi("14","var(--moz-color-accent)"):hi("14",v.disabled?"var(--moz-color-text-muted)":"var(--moz-color-text-subtle)");return s.html`
|
|
1106
1158
|
<div
|
|
1107
|
-
class=${V("moz-multi-select",{"is-invalid":
|
|
1108
|
-
style=${
|
|
1109
|
-
${
|
|
1159
|
+
class=${V("moz-multi-select",{"is-invalid":H()!=="","is-open":u,disabled:!!v.disabled})}
|
|
1160
|
+
style=${te.styleMap({width:O,...Ce(v.style)})}
|
|
1161
|
+
${Y.ref(t)}
|
|
1110
1162
|
>
|
|
1111
1163
|
<div class="input-wrapper">
|
|
1112
1164
|
${v.label?Xe({},s.html`${v.label}${v.required?s.html`<span class="require-mark">*</span>`:s.nothing}`):s.nothing}
|
|
1113
|
-
<div class="moz-input-container" @click=${
|
|
1165
|
+
<div class="moz-input-container" @click=${Le} ${Y.ref(o)}>
|
|
1114
1166
|
<input
|
|
1115
|
-
${
|
|
1116
|
-
.value=${
|
|
1167
|
+
${fe(le)}
|
|
1168
|
+
.value=${gt()}
|
|
1117
1169
|
autocomplete="off"
|
|
1118
1170
|
readonly
|
|
1119
1171
|
tabindex="-1"
|
|
@@ -1121,24 +1173,24 @@
|
|
|
1121
1173
|
<button
|
|
1122
1174
|
type="button"
|
|
1123
1175
|
class="icon-container"
|
|
1124
|
-
${
|
|
1176
|
+
${fe(ee)}
|
|
1125
1177
|
role="combobox"
|
|
1126
1178
|
aria-haspopup="listbox"
|
|
1127
|
-
aria-expanded=${
|
|
1128
|
-
aria-controls=${
|
|
1129
|
-
aria-label=${Ee.ifDefined(
|
|
1179
|
+
aria-expanded=${u?"true":"false"}
|
|
1180
|
+
aria-controls=${$}
|
|
1181
|
+
aria-label=${Ee.ifDefined(ee["aria-label"]??v.label??void 0)}
|
|
1130
1182
|
?disabled=${!!v.disabled}
|
|
1131
|
-
@keydown=${
|
|
1132
|
-
${
|
|
1183
|
+
@keydown=${Pe}
|
|
1184
|
+
${Y.ref(l)}
|
|
1133
1185
|
>
|
|
1134
|
-
${
|
|
1186
|
+
${ce}
|
|
1135
1187
|
</button>
|
|
1136
1188
|
</div>
|
|
1137
1189
|
</div>
|
|
1138
1190
|
|
|
1139
|
-
${
|
|
1191
|
+
${H()!==""?s.html`<span class="moz-input-invalid-message">${H()}</span>`:s.nothing}
|
|
1140
1192
|
</div>
|
|
1141
|
-
`},renderPortal(){return e.props.inline||!
|
|
1193
|
+
`},renderPortal(){return e.props.inline||!u?s.nothing:vt()}}}}),wi={name:"MozMultiSelect",core:As,booleanProps:["autoSelectNewItems","disabled","inline","loading","preserveMissingValues","readonly","required","selectAllWhenEmpty","useFilter","useSelectAll","useSpecificSelect"],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 Rs(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 Ci(e="14",t="var(--moz-color-text-subtle)"){const o=Rs(e,14);return s.html`<svg width=${o.width} height=${o.height} viewBox="0 0 14 15" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1142
1194
|
<g clip-path="url(#clip0_4513_575)">
|
|
1143
1195
|
<path
|
|
1144
1196
|
fill-rule="evenodd"
|
|
@@ -1152,8 +1204,8 @@
|
|
|
1152
1204
|
<rect width=${o.width} height=${o.height} fill="white" transform="translate(0 0.704163)"></rect>
|
|
1153
1205
|
</clipPath>
|
|
1154
1206
|
</defs>
|
|
1155
|
-
</svg>`}function
|
|
1156
|
-
<g style=${`fill: ${
|
|
1207
|
+
</svg>`}function Bo(e="12",t="var(--moz-color-text-subtle)",o=!1,n=""){const l=Rs(e,12),c=o?"var(--moz-color-text-muted)":t;return s.html`<svg class=${n||s.nothing} xmlns="http://www.w3.org/2000/svg" width=${l.width} height=${l.height} viewBox="0 0 16 16">
|
|
1208
|
+
<g style=${`fill: ${c}`}>
|
|
1157
1209
|
<path
|
|
1158
1210
|
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"
|
|
1159
1211
|
style="stroke: none"
|
|
@@ -1161,188 +1213,188 @@
|
|
|
1161
1213
|
></path>
|
|
1162
1214
|
<path
|
|
1163
1215
|
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"
|
|
1164
|
-
style=${`fill: ${
|
|
1216
|
+
style=${`fill: ${c}; stroke: none`}
|
|
1165
1217
|
transform="translate(-829.971 -686.318)"
|
|
1166
1218
|
></path>
|
|
1167
1219
|
</g>
|
|
1168
|
-
</svg>`}const
|
|
1220
|
+
</svg>`}const bi=new Set(["width","modelValue","label","disabled","hourLabel","minuteLabel","currentTimeLabel","required","class","style"]),yi=Array.from({length:24},(e,t)=>t),$i=Array.from({length:60},(e,t)=>t),Ds=$e({name:"moz-time-picker",defaults:{width:"160px",modelValue:"09:00",label:"",disabled:!1,required:!1},setup(e){const t=Y.createRef(),o=Y.createRef(),n=Y.createRef(),l=Y.createRef(),c=Y.createRef(),r=Y.createRef(),h=ot("moz-time-picker-input-");let d=!1,b=9,a=0,m="",u="";const E=k=>{if(k&&k.includes(":")){const[R,X]=k.split(":").map(Number);!isNaN(R)&&!isNaN(X)&&(b=R,a=X,m=k,u=k)}};E(e.props.modelValue);let x=e.props.modelValue,$=m;const P=new Kt({anchor:()=>o.value??null,panel:()=>l.value??null,maxHeight:()=>210,container:()=>t.value??null,listWidth:()=>"180px",requestClose:()=>{d&&g(!1)}});e.onCleanup(()=>P.destroy());const L=()=>{if(!d)return;const k=(R,X)=>{const se=R==null?void 0:R.children[X];if(!(R!=null&&R.isConnected)||!se||R.clientHeight<=0)return;const N=se.getBoundingClientRect(),ne=R.getBoundingClientRect(),_=N.top+N.height/2-(ne.top+R.clientTop+R.clientHeight/2),J=Math.max(0,R.scrollHeight-R.clientHeight);R.scrollTop=Math.max(0,Math.min(R.scrollTop+_,J))};k(c.value,b),k(r.value,a)},g=k=>{k&&e.props.disabled||d!==k&&(d=k,e.requestUpdate(),k?(P.open(),queueMicrotask(L)):P.close())},i=()=>{const k=`${b.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}`;m=k,u=k,e.emit("update:modelValue",k),e.requestUpdate()},p=k=>{b=k,i()},y=k=>{a=k,g(!1),i()},F=()=>{b=new Date().getHours(),a=new Date().getMinutes(),i(),g(!1)},I=k=>{let R=k.replace(/[^\d:]/g,"");return R.length>5&&(R=R.slice(0,5)),R},K=k=>{g(!1);const R=k.target,X=k.key;if(!/^\d$/.test(X))return;const se=R.selectionStart||0,N=m;if(R.selectionStart!==R.selectionEnd||se>=N.length)return;k.preventDefault();const ne=N.replace(/:/g,""),_=(N.slice(0,se).match(/:/g)||[]).length,J=se-_;let z=ne.substring(0,J)+X;J+1<ne.length&&(z+=ne.substring(J+1)),z.length>4&&(z=z.slice(0,4));let W=z,Z=J+1;if(z.length>=2){const G=z.slice(0,2),Q=z.slice(2);W=`${G}:${Q}`,Z>2&&(Z=Z+1)}m=W,u=W,e.requestUpdate(),queueMicrotask(()=>R.setSelectionRange(Z,Z))},oe=k=>{const R=k.target,X=R.selectionStart||0,se=u;let N=R.value;const ne=N.length<se.length;N=I(N);const _=N.replace(/:/g,"");if(!ne&&_.length>=2){const J=(N.slice(0,X).match(/:/g)||[]).length,z=X-J,W=_.slice(0,2),Z=_.slice(2);N=W+(Z?`:${Z}`:":");let G=z;z>2&&(G=z+1),m=N,u=N,e.requestUpdate(),setTimeout(()=>R.setSelectionRange(G,G),0);return}m=N,u=N,e.requestUpdate()},re=()=>g(!0),j=()=>{if(!m){i();return}let k=m;!k.includes(":")&&k.length>=2&&(k=`${k.slice(0,2)}:${k.slice(2)}`);const R=k.split(":");let X=b,se=a;if(R[0]){const N=parseInt(R[0],10);isNaN(N)||(N>=0&&N<=23?X=N:N>23?X=23:X=0)}if(R[1]){const N=parseInt(R[1],10);isNaN(N)||(N>=0&&N<=59?se=N:N>59?se=59:se=0)}b=X,a=se,i()};return{render(){const k=e.props;if(k.modelValue!==x&&(x=k.modelValue,E(k.modelValue)),m!==$){$=m;const _=m;if(/^\d{2}:\d{2}$/.test(_)){const[J,z]=_.split(":").map(Number);!isNaN(J)&&!isNaN(z)&&J>=0&&J<=23&&z>=0&&z<=59&&_!==k.modelValue&&(b=J,a=z,queueMicrotask(()=>{_!==e.props.modelValue&&e.emit("update:modelValue",_)}))}}const R=k.disabled?"var(--moz-color-text-muted)":d?"var(--moz-color-accent)":"var(--moz-color-text-subtle)",X=ye(k,bi),se=typeof k.width=="number"?`${De(k.width)}rem`:k.width,N="__:__",ne=[];for(let _=0;_<N.length;_++)_<m.length?ne.push({char:m[_],isInput:!0}):ne.push({char:N[_],isInput:!1});return s.html`
|
|
1169
1221
|
<div
|
|
1170
|
-
class=${V("custom-time-picker"
|
|
1171
|
-
style=${
|
|
1172
|
-
${
|
|
1173
|
-
${
|
|
1222
|
+
class=${V("custom-time-picker",k.class,{"custom-time-picker--has-class":!!k.class})}
|
|
1223
|
+
style=${te.styleMap({width:se,...Ce(k.style)})}
|
|
1224
|
+
${fe(X)}
|
|
1225
|
+
${Y.ref(t)}
|
|
1174
1226
|
>
|
|
1175
|
-
${
|
|
1227
|
+
${k.label?Xe({for:h,disabled:k.disabled,required:k.required},k.label):s.nothing}
|
|
1176
1228
|
<div
|
|
1177
|
-
class=${V("time-input-wrapper",{"time-input-wrapper--disabled"
|
|
1178
|
-
${
|
|
1229
|
+
class=${V("time-input-wrapper",{"time-input-wrapper--disabled":k.disabled,"time-input-wrapper--open":d&&!k.disabled})}
|
|
1230
|
+
${Y.ref(o)}
|
|
1179
1231
|
>
|
|
1180
1232
|
<div class="input-with-mask">
|
|
1181
1233
|
<input
|
|
1182
1234
|
type="text"
|
|
1183
|
-
id=${
|
|
1184
|
-
.value=${
|
|
1185
|
-
@keydown=${
|
|
1186
|
-
@input=${
|
|
1235
|
+
id=${h}
|
|
1236
|
+
.value=${m}
|
|
1237
|
+
@keydown=${K}
|
|
1238
|
+
@input=${oe}
|
|
1187
1239
|
@blur=${j}
|
|
1188
|
-
@focus=${
|
|
1240
|
+
@focus=${re}
|
|
1189
1241
|
@click=${()=>g(!0)}
|
|
1190
|
-
class=${V("time-input",{"time-input--disabled"
|
|
1191
|
-
?disabled=${
|
|
1242
|
+
class=${V("time-input",{"time-input--disabled":k.disabled,"time-input--open":d})}
|
|
1243
|
+
?disabled=${!!k.disabled}
|
|
1192
1244
|
maxlength="5"
|
|
1193
|
-
${
|
|
1245
|
+
${Y.ref(n)}
|
|
1194
1246
|
/>
|
|
1195
1247
|
<div class="time-mask">
|
|
1196
|
-
${
|
|
1197
|
-
class=${V({"mask-input":
|
|
1198
|
-
>${
|
|
1248
|
+
${ne.map(_=>s.html`<span
|
|
1249
|
+
class=${V({"mask-input":_.isInput&&!k.disabled,"mask-placeholder":!_.isInput,"mask-input--disabled":_.isInput&&!!k.disabled})}
|
|
1250
|
+
>${_.char}</span
|
|
1199
1251
|
>`)}
|
|
1200
1252
|
</div>
|
|
1201
1253
|
</div>
|
|
1202
1254
|
<div class="icon-container">
|
|
1203
|
-
<span @click=${()=>g(!0)}>${
|
|
1255
|
+
<span @click=${()=>g(!0)}>${Ci("14",R)}</span>
|
|
1204
1256
|
</div>
|
|
1205
1257
|
</div>
|
|
1206
1258
|
</div>
|
|
1207
|
-
`},renderPortal(){if(!
|
|
1259
|
+
`},renderPortal(){if(!d)return s.nothing;const k=e.props;return s.html`<div class="time-picker-dropdown" ${Y.ref(l)}>
|
|
1208
1260
|
<div class="time-picker-content">
|
|
1209
1261
|
<div class="time-column">
|
|
1210
|
-
<div class="time-label">${
|
|
1262
|
+
<div class="time-label" ?hidden=${k.hourLabel==null}>${k.hourLabel??e.locale.TimePicker.hour}</div>
|
|
1211
1263
|
<div class="time-list">
|
|
1212
|
-
<div class="time-option-wrapper" ${
|
|
1213
|
-
${
|
|
1214
|
-
<div class="time-option-text">${
|
|
1215
|
-
${
|
|
1264
|
+
<div class="time-option-wrapper" ${Y.ref(c)}>
|
|
1265
|
+
${yi.map(R=>s.html`<div @click=${()=>p(R)} class="time-option">
|
|
1266
|
+
<div class="time-option-text">${R.toString().padStart(2,"0")}</div>
|
|
1267
|
+
${b===R?Bo("14","var(--moz-color-accent)",!1,"check-icon"):s.nothing}
|
|
1216
1268
|
</div>`)}
|
|
1217
1269
|
</div>
|
|
1218
1270
|
</div>
|
|
1219
1271
|
</div>
|
|
1220
1272
|
<div class="time-column">
|
|
1221
|
-
<div class="time-label">${
|
|
1273
|
+
<div class="time-label" ?hidden=${k.minuteLabel==null}>${k.minuteLabel??e.locale.TimePicker.minute}</div>
|
|
1222
1274
|
<div class="time-list">
|
|
1223
|
-
<div class="time-option-wrapper" ${
|
|
1224
|
-
${
|
|
1225
|
-
<div class="time-option-text">${
|
|
1226
|
-
${
|
|
1275
|
+
<div class="time-option-wrapper" ${Y.ref(r)}>
|
|
1276
|
+
${$i.map(R=>s.html`<div @click=${()=>y(R)} class="time-option">
|
|
1277
|
+
<div class="time-option-text">${R.toString().padStart(2,"0")}</div>
|
|
1278
|
+
${a===R?Bo("14","var(--moz-color-accent)",!1,"check-icon"):s.nothing}
|
|
1227
1279
|
</div>`)}
|
|
1228
1280
|
</div>
|
|
1229
1281
|
</div>
|
|
1230
1282
|
</div>
|
|
1231
1283
|
</div>
|
|
1232
|
-
<div class="time-picker-footer" @click=${
|
|
1233
|
-
<span class="time-picker-footer-label">${
|
|
1284
|
+
<div class="time-picker-footer" @click=${F}>
|
|
1285
|
+
<span class="time-picker-footer-label">${k.currentTimeLabel??e.locale.TimePicker.currentTime}</span>
|
|
1234
1286
|
</div>
|
|
1235
|
-
</div>`}}}}),
|
|
1287
|
+
</div>`}}}}),Si={name:"MozTimePicker",core:Ds,booleanProps:["disabled","required"],props:["width","modelValue","label","disabled","hourLabel","minuteLabel","currentTimeLabel","required"],emits:["update:modelValue"],slots:[],expose:!1};function ki(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 io(e="var(--moz-color-text-subtle)",t=""){return s.html`<svg class=${t} width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1236
1288
|
<path d="M9 3L3 9M3 3L9 9" stroke=${e} stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
1237
|
-
</svg>`}function
|
|
1289
|
+
</svg>`}function Fo(e="12",t="var(--moz-color-text-subtle)",o=!1,n=""){const l=ki(e,12),c=o?"var(--moz-color-text-muted)":t;return s.html`<svg class=${n} xmlns="http://www.w3.org/2000/svg" width=${l.width} height=${l.height} viewBox="0 0 12 12">
|
|
1238
1290
|
<g transform="translate(-0.005)">
|
|
1239
1291
|
<path
|
|
1240
1292
|
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"
|
|
1241
1293
|
transform="translate(-1.577 -1.504)"
|
|
1242
|
-
fill=${
|
|
1243
|
-
stroke=${
|
|
1294
|
+
fill=${c}
|
|
1295
|
+
stroke=${c}
|
|
1244
1296
|
stroke-width="0.6"
|
|
1245
1297
|
></path>
|
|
1246
1298
|
</g>
|
|
1247
|
-
</svg>`}const
|
|
1248
|
-
id=${
|
|
1299
|
+
</svg>`}const Ei=new Set(["id","modelValue","itemsSource","label","placeholder","required","disabled","isReadOnly","width","rules","keyProp","displayProp","class","style"]);function Li(e,t){let o;return(...n)=>{o&&clearTimeout(o),o=setTimeout(()=>e(...n),t)}}const Is=$e({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=Y.createRef(),o=Y.createRef();let n=null;const l=ot("moz-tag-input-"),c=()=>e.props.id||l;let r=[],h=!1,d=!1,b="",a=!1,m={};const u=()=>e.props,E=f=>u().pattern?new RegExp(`${u().pattern}`).test(f):!0,x=()=>r.map((f,D)=>({...f,idx:D})).filter(f=>f.isSelected!==-1).sort((f,D)=>f.isSelected-D.isSelected),$=()=>x().map(f=>f.value),P=()=>!x().some(f=>!f.isValid),L=(f,D)=>{const A=u().limitItemLength;(!D||D&&A&&x().length<A||D&&!A)&&(D&&r[f].isSelected===-1||!D)&&(r[f].isSelected=D?Date.now():-1)},g=(f,D)=>{const A=r.findIndex(ke=>ke.value===f);if(A!==-1)return $().includes(f)?!1:(L(A,!0),!0);const H={key:Date.now(),isSelected:D?Date.now():-1,isValid:E(f),isEditing:!1,beforeValue:f,value:f};H.isValid&&u().requestCreate&&u().requestCreate(f);const pe=u().limitItemLength;return!D||!pe||D&&pe&&x().length<pe?(r.push(H),!0):!1},i=f=>{r.splice(f,1)},p=f=>{r[f].isValid=E(r[f].value),r[f].isValid&&u().requestUpdate&&u().requestUpdate({before:r[f].beforeValue,after:r[f].value}),r[f].beforeValue=r[f].value},y=()=>{r=r.filter(f=>f.isSelected!==-1),(u().itemsSource??[]).forEach(f=>{g(u().displayKey?f[u().displayKey]:f,!1)})};y();const F=()=>{const f=u().modelValue;if(f&&f.toString()!==$().toString()){const D=[...f];r.forEach((A,H)=>{const pe=D.indexOf(A.value);pe!==-1?(A.isSelected===-1&&L(H,!0),D.splice(pe,1)):L(H,!1)}),D.forEach(A=>g(A,!0))}};F();let I=u().modelValue,K=u().itemsSource,oe=$().toString();const re=()=>{if(!t.value||!o.value)return;const f=t.value.getBoundingClientRect();let D=f.left;f.left+o.value.clientWidth>document.body.clientWidth&&(D-=o.value.clientWidth-f.width),m={minWidth:`${f.width}px`,width:`${f.width}px`,left:`${D}px`,top:`${f.top}px`},e.requestUpdate()},j=f=>{const D=f.target,A=()=>{b&&u().pushOnBlur&&g(b,!0)&&e.emit("modelChange",$()),b="",d=!1,h=!1};D.className&&Array.from(String(D.className).split(" ")).includes("tag-input-not-close")||A(),_(""),window.removeEventListener("mousedown",j),e.requestUpdate()},k=()=>{h=!0,window.addEventListener("mousedown",j),e.requestUpdate(),queueMicrotask(re)};e.onCleanup(()=>window.removeEventListener("mousedown",j));const R=f=>{setTimeout(()=>{const D=o.value,A=D==null?void 0:D.querySelector(`[data-edit-idx="${f}"] .moz-auto-input`);A==null||A.focus()},0)},X=f=>{r[f].isEditing=!0,e.requestUpdate(),R(f)},se=()=>{d=!0,k(),setTimeout(()=>n==null?void 0:n.focus(),0)},N=f=>{if(f.key==="Enter"&&b===""&&e.emit("onEnterEmpty",$()),(f.key==="Enter"||f.key==="Tab"&&u().pushOnBlur)&&b!==""&&(g(b,!0)&&(e.emit("modelChange",$()),b=""),e.requestUpdate()),f.key==="Tab"&&(h=!1,d=!1,e.requestUpdate()),f.key==="Backspace"){const D=f.target,A=x();D.selectionStart===0&&A.length>0&&(L(A[A.length-1].idx,!1),e.requestUpdate())}},ne=f=>{u().dynamicSearch&&u().requestRead&&(a=!0,e.requestUpdate(),_(f.target.value))},_=Li(f=>{u().requestRead&&u().requestRead(f).then(()=>{a=!1,e.requestUpdate()})},300),J=(f,D)=>{f.key==="Backspace"&&r[D].value===""&&r.length>1&&(i(D),e.requestUpdate())},z=f=>{f.key==="Enter"&&(d=!0,e.requestUpdate(),setTimeout(()=>n==null?void 0:n.focus(),0))},W=f=>{r[f].value===""&&i(f),(r.length>1||r[f]&&r[f].value!=="")&&r[f]&&(r[f].isEditing=!1),r[f]&&p(f),e.requestUpdate()},Z=f=>{L(f,!0),e.requestUpdate(),n==null||n.focus()},G=f=>{f.style.width="1px",f.style.width=`${f.scrollWidth}px`},Q=f=>{const D=u().limitTextLength;return s.html`<input
|
|
1300
|
+
id=${f.id??s.nothing}
|
|
1249
1301
|
class="moz-auto-input tag-input-common tag-input-add"
|
|
1250
|
-
.value=${
|
|
1302
|
+
.value=${f.value}
|
|
1251
1303
|
style="width:1px"
|
|
1252
|
-
${
|
|
1253
|
-
@input=${A=>{var
|
|
1254
|
-
@keydown=${A=>{var
|
|
1255
|
-
@keyup=${A=>{var
|
|
1256
|
-
@blur=${()=>{var A;return(A=
|
|
1257
|
-
/>`},
|
|
1304
|
+
${Y.ref(A=>{var pe;const H=A??null;H&&G(H),(pe=f.captureEl)==null||pe.call(f,H)})}
|
|
1305
|
+
@input=${A=>{var pe;const H=A.target;D&&H.value.length<=D||!D||D===-1?f.setValue(H.value):H.value=f.value,G(H),(pe=f.onInputExtra)==null||pe.call(f,A)}}
|
|
1306
|
+
@keydown=${A=>{var H;return(H=f.onKeydown)==null?void 0:H.call(f,A)}}
|
|
1307
|
+
@keyup=${A=>{var H;return(H=f.onKeyup)==null?void 0:H.call(f,A)}}
|
|
1308
|
+
@blur=${()=>{var A;return(A=f.onBlur)==null?void 0:A.call(f)}}
|
|
1309
|
+
/>`},T=(f,D,A)=>s.html`<div class="tag-input-controller" style=${te.styleMap({display:f.isSelected!==-1?"":"none"})}>
|
|
1258
1310
|
<div
|
|
1259
|
-
class=${V("tag-input-item",{invalid:!
|
|
1260
|
-
data-isValid=${String(
|
|
1261
|
-
data-edit-idx=${
|
|
1262
|
-
@mousedown=${
|
|
1311
|
+
class=${V("tag-input-item",{invalid:!f.isValid})}
|
|
1312
|
+
data-isValid=${String(f.isValid)}
|
|
1313
|
+
data-edit-idx=${f.idx}
|
|
1314
|
+
@mousedown=${H=>H.stopPropagation()}
|
|
1263
1315
|
>
|
|
1264
|
-
${A&&
|
|
1316
|
+
${A&&u().simplify&&f.isEditing?Q({value:f.value,setValue:H=>{r[f.idx].value=H,e.requestUpdate()},onKeydown:H=>J(H,f.idx),onKeyup:H=>z(H),onBlur:()=>W(f.idx)}):s.html`<span class="tag-input-preview tag-input-common">${f.value}</span>`}
|
|
1265
1317
|
<div class="tag-input-btn-wrapper">
|
|
1266
|
-
${
|
|
1318
|
+
${u().simplify&&!f.isEditing&&!u().disableUpdate?s.html`<span
|
|
1267
1319
|
class="tag-input-button cursor-pointer"
|
|
1268
1320
|
role="button"
|
|
1269
1321
|
tabindex="0"
|
|
1270
|
-
aria-label=${e.locale.TagInput.editTag.replace("{label}",
|
|
1271
|
-
@click=${()=>
|
|
1272
|
-
@keydown=${
|
|
1273
|
-
>${
|
|
1322
|
+
aria-label=${e.locale.TagInput.editTag.replace("{label}",f.value??"")}
|
|
1323
|
+
@click=${()=>X(f.idx)}
|
|
1324
|
+
@keydown=${H=>{H.key!=="Enter"&&H.key!==" "||(H.preventDefault(),X(f.idx))}}
|
|
1325
|
+
>${Fo("10")}</span
|
|
1274
1326
|
>`:s.nothing}
|
|
1275
1327
|
<span
|
|
1276
1328
|
class="tag-input-button cursor-pointer"
|
|
1277
1329
|
role="button"
|
|
1278
1330
|
tabindex="0"
|
|
1279
|
-
aria-label=${e.locale.TagInput.removeTag.replace("{label}",
|
|
1280
|
-
@click=${()=>{
|
|
1281
|
-
@keydown=${
|
|
1331
|
+
aria-label=${e.locale.TagInput.removeTag.replace("{label}",f.value??"")}
|
|
1332
|
+
@click=${()=>{L(f.idx,!1),e.requestUpdate()}}
|
|
1333
|
+
@keydown=${H=>{H.key!=="Enter"&&H.key!==" "||(H.preventDefault(),L(f.idx,!1),e.requestUpdate())}}
|
|
1282
1334
|
>${io()}</span
|
|
1283
1335
|
>
|
|
1284
1336
|
</div>
|
|
1285
1337
|
</div>
|
|
1286
|
-
</div>`;return{api:{isValid:P},render(){const
|
|
1287
|
-
<div class=${V("moz-tag-input-wrapper",
|
|
1288
|
-
${
|
|
1338
|
+
</div>`;return{api:{isValid:P},render(){const f=e.props;f.modelValue!==I&&(I=f.modelValue,F()),f.itemsSource!==K&&(K=f.itemsSource,y());const D=$().toString();if(D!==oe){oe=D;const H=$();queueMicrotask(()=>e.emit("update:modelValue",H))}const A=ye(f,Ei);return s.html`
|
|
1339
|
+
<div class=${V("moz-tag-input-wrapper",f.class)} style=${te.styleMap(Ce(f.style))} ${fe(A)}>
|
|
1340
|
+
${f.label?s.html`<label for=${c()} class=${V("tag-input-label",{required:f.required})} @click=${se}>${f.label}</label>`:s.nothing}
|
|
1289
1341
|
<div class="tag-input-grid">
|
|
1290
1342
|
<div
|
|
1291
1343
|
class="tag-input-not-close tag-input-row scrollbar-none"
|
|
1292
|
-
@mousedown=${
|
|
1293
|
-
@click=${
|
|
1294
|
-
${
|
|
1344
|
+
@mousedown=${H=>{H.stopPropagation(),se()}}
|
|
1345
|
+
@click=${k}
|
|
1346
|
+
${Y.ref(t)}
|
|
1295
1347
|
>
|
|
1296
1348
|
${e.slot("left")}
|
|
1297
|
-
${
|
|
1298
|
-
${
|
|
1299
|
-
${
|
|
1300
|
-
${
|
|
1349
|
+
${x().map((H,pe)=>T(H,pe,!1))}
|
|
1350
|
+
${d?s.html`<span class="tag-input-preview tag-input-common" @click=${se}>${b}</span>`:s.nothing}
|
|
1351
|
+
${f.limitItemLength&&d?s.html`<div class="tag-input-counter">${x().length} / ${f.limitItemLength}</div>`:s.nothing}
|
|
1352
|
+
${d?s.nothing:s.html`<span class="tag-input-add-to">${f.addButtonLabel?f.addButtonLabel:e.locale.TagInput.add} </span>`}
|
|
1301
1353
|
<div class="flex-1"></div>
|
|
1302
1354
|
${e.slot("right")}
|
|
1303
1355
|
</div>
|
|
1304
1356
|
</div>
|
|
1305
1357
|
</div>
|
|
1306
|
-
`},renderPortal(){if(!
|
|
1358
|
+
`},renderPortal(){if(!h)return s.nothing;const f=e.props;return s.html`<div class="absolute z-1501 moz-tag-input-float" style=${te.styleMap(m)}>
|
|
1307
1359
|
<div
|
|
1308
1360
|
class="tag-input-placeholder-float tag-input-not-close scrollbar-none shown"
|
|
1309
|
-
@mousedown=${
|
|
1310
|
-
${
|
|
1361
|
+
@mousedown=${D=>{D.stopPropagation(),se()}}
|
|
1362
|
+
${Y.ref(o)}
|
|
1311
1363
|
>
|
|
1312
|
-
${
|
|
1313
|
-
${
|
|
1314
|
-
${
|
|
1364
|
+
${x().map((D,A)=>T(D,A,!0))}
|
|
1365
|
+
${d?Q({id:c(),value:b,setValue:D=>{b=D,e.requestUpdate()},onKeydown:N,onKeyup:()=>{},onBlur:()=>{},onInputExtra:ne,captureEl:D=>{n=D}}):s.nothing}
|
|
1366
|
+
${a?s.html`<div class="tag-input-loading">
|
|
1315
1367
|
<div class="tag-input-loading-ball-1"></div>
|
|
1316
1368
|
<div class="tag-input-loading-ball-2"></div>
|
|
1317
1369
|
<div class="tag-input-loading-ball-3"></div>
|
|
1318
1370
|
</div>`:s.nothing}
|
|
1319
|
-
${
|
|
1320
|
-
${
|
|
1371
|
+
${f.limitItemLength&&d?s.html`<div class="tag-input-counter" @click=${se}>
|
|
1372
|
+
${x().length} / ${f.limitItemLength}
|
|
1321
1373
|
</div>`:s.nothing}
|
|
1322
|
-
${
|
|
1374
|
+
${d?s.nothing:s.html`<span class="tag-input-add-to flex-1">${f.addButtonLabel?f.addButtonLabel:""} </span>`}
|
|
1323
1375
|
</div>
|
|
1324
|
-
${
|
|
1325
|
-
<div class=${V("tag-input-dropdown-wrapper",{"expand-top":
|
|
1376
|
+
${f.simplify?s.nothing:s.html`<div class="tag-input-dropdown-outer-wrapper" @mousedown=${D=>D.stopPropagation()}>
|
|
1377
|
+
<div class=${V("tag-input-dropdown-wrapper",{"expand-top":f.isExpandTop})}>
|
|
1326
1378
|
<div class="tag-input-dropdown-inner-wrapper">
|
|
1327
1379
|
<div class="tag-input-dropdown-title"></div>
|
|
1328
|
-
${
|
|
1380
|
+
${r.map((D,A)=>s.html`<div class="dropdown-tag-input-item-wrapper tag-input-controller">
|
|
1329
1381
|
<div
|
|
1330
|
-
class=${V("tag-input-item tag-item-limit-width",{invalid:!
|
|
1331
|
-
data-isValid=${String(
|
|
1382
|
+
class=${V("tag-input-item tag-item-limit-width",{invalid:!D.isValid})}
|
|
1383
|
+
data-isValid=${String(D.isValid)}
|
|
1332
1384
|
data-edit-idx=${A}
|
|
1333
|
-
@click=${()=>
|
|
1385
|
+
@click=${()=>Z(A)}
|
|
1334
1386
|
>
|
|
1335
|
-
${
|
|
1336
|
-
<span>${
|
|
1387
|
+
${D.isEditing?Q({value:D.value,setValue:H=>{r[A].value=H,e.requestUpdate()},onKeydown:H=>J(H,A),onKeyup:H=>z(H),onBlur:()=>W(A)}):s.html`<span class="tag-input-preview tag-input-common">
|
|
1388
|
+
<span>${D.value}</span>
|
|
1337
1389
|
<div class="tag-input-btn-wrapper">
|
|
1338
|
-
${!
|
|
1390
|
+
${!D.isEditing&&!f.disableUpdate?s.html`<span
|
|
1339
1391
|
class="tag-input-button cursor-pointer"
|
|
1340
|
-
@click=${
|
|
1341
|
-
>${
|
|
1392
|
+
@click=${H=>{H.stopPropagation(),X(A)}}
|
|
1393
|
+
>${Fo("10")}</span
|
|
1342
1394
|
>`:s.nothing}
|
|
1343
|
-
${
|
|
1395
|
+
${f.disableDelete?s.nothing:s.html`<span
|
|
1344
1396
|
class="tag-input-button cursor-pointer"
|
|
1345
|
-
@click=${
|
|
1397
|
+
@click=${H=>{H.stopPropagation(),i(A),e.requestUpdate()}}
|
|
1346
1398
|
>${io()}</span
|
|
1347
1399
|
>`}
|
|
1348
1400
|
</div>
|
|
@@ -1352,64 +1404,64 @@
|
|
|
1352
1404
|
</div>
|
|
1353
1405
|
</div>
|
|
1354
1406
|
</div>`}
|
|
1355
|
-
</div>`}}}}),
|
|
1356
|
-
class=${V({"context-menu-item-enable-hover":!("hover"in
|
|
1357
|
-
@mouseenter=${()=>ke(!0,
|
|
1358
|
-
@mouseleave=${()=>ke(!1,
|
|
1407
|
+
</div>`}}}}),Pi={name:"MozTagInput",core:Is,booleanProps:["disableDelete","disableUpdate","dynamicSearch","isExpandTop","pushOnBlur","required","simplify"],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},Mi=new Set(["itemSource","fixPosition","noPadding","minWidth","class","style"]);function xi(e,t){let o;return(...n)=>{o&&clearTimeout(o),o=setTimeout(()=>e(...n),t)}}const zi=500,Vs=$e({name:"moz-context-menu",defaults:{transition:"fade",minWidth:"160px",direction:"rb"},setup(e){let t=null,o=null;const n=Y.createRef();let l=!1,c=!1,r=!1,h=!1,d=null,b=!1,a=!1,m=!1,u=!1,E=0,x=!1,$=null,P=null;const L=T=>{$=e.props.fixPosition?T:null},g=new Map,i=new Map,p=new Map,y=new Map,F=()=>{l&&c&&(d||e.props.itemSource)&&o&&!u&&(u=!0,e.emit("open",{target:o}))},I=T=>{const f=r!==T;r=T,e.requestUpdate(),f&&!T&&setTimeout(()=>{l=!1,h=!1,u=!1,e.emit("close",{target:o}),e.requestUpdate()},50)},K=T=>{const f=l!==T;l=T,e.requestUpdate(),f&&(setTimeout(()=>{c=l,e.requestUpdate(),F()},0),I(l),F())},oe=T=>{if(e.props.fixPosition&&T===P||e.props.disableCloseOnClickBackdrop)return;const f=["list-box-container"],D=T.composedPath();D.includes(o)||f.forEach(A=>{(!A||A&&!D.some(H=>{var pe;return(pe=H.classList)==null?void 0:pe.contains(A)}))&&re()})},re=()=>{(e.props.beforeClose??(()=>{}))&&(P=null,$=null,x=!1,++E,I(!1),window.removeEventListener("mousedown",oe),window.removeEventListener("resize",re))},j=(T,f)=>{T instanceof Function&&(d=T(f));const D=!!e.props.fixPosition;P=D&&$&&$.eventPhase!==0?$:null;const A=++E;x=D,K(!0),setTimeout(()=>{D&&(!x||A!==E)||K(!0)},60)},k=()=>{l?re():j()},R=()=>{const T=e.props.fixPosition;if(!T)return;const f=T.selector&&document.querySelector(T.selector)||t;if(!f||!o||!n.value)return;const D=f.getBoundingClientRect(),A=n.value.getBoundingClientRect();b=D.left+f.clientWidth<A.left+o.clientWidth,a=D.left+f.clientWidth<A.left+o.clientWidth*2,m=D.top+f.clientHeight<A.top+o.clientHeight,T.useTeleport?(o.style.left=`${A.left}px`,o.style.top=`${A.top}px`):(o.style.left=`${n.value.offsetLeft}px`,o.style.top=`${n.value.offsetTop}px`),e.requestUpdate()},X=()=>{if(!e.props.fixPosition||!x||h)return;const T=E;queueMicrotask(()=>{T!==E||!x||!e.props.fixPosition||!l||h||!t||!o||!n.value||(R(),t.style.pointerEvents="none",window.addEventListener("mousedown",oe),window.addEventListener("resize",re),h=!0)})},se=T=>{h||(o&&t&&(e.props.fixPosition?R():(b=t.clientWidth<T.clientX+o.clientWidth,a=t.clientWidth<T.clientX+o.clientWidth*2,m=t.clientHeight<T.clientY+o.clientHeight,o.style.left=`${T.clientX}px`,o.style.top=`${T.clientY}px`)),t&&(t.style.pointerEvents="none"),window.addEventListener("mousedown",oe),window.addEventListener("resize",re),h=!0,e.requestUpdate())};e.onCleanup(()=>{window.removeEventListener("mousedown",L,!0),$=null,P=null,x=!1,++E,window.removeEventListener("mousedown",oe),window.removeEventListener("resize",re)});const N=T=>{let f=y.get(T);return f||(f=xi((D,A,H)=>{A.children&&(ne(H,A),g.set(H,D),e.requestUpdate())},400),y.set(T,f)),f},ne=(T,f)=>{if(!f.children||i.get(T))return;const D=p.get(T);if(!D)return;const A=D.getBoundingClientRect();i.set(T,D.clientHeight+A.top>document.body.offsetHeight)},_=(T,f)=>{T.function?(T.function(),re()):T.children&&(ne(f,T),g.set(f,!0),e.requestUpdate())},J=T=>typeof T.disabled=="function"?T.disabled():!!T.disabled,z=(T,f,D,A)=>{const H=g.get(A)??!1,pe=i.get(A)??!1,ke=N(A);return s.html`<div
|
|
1408
|
+
class=${V({"context-menu-item-enable-hover":!("hover"in T)||T.hover,"context-menu-item-wrapper":!0,"context-menu-item-wrapper-selected":H,"context-menu-item-wrapper-disabled":J(T)})}
|
|
1409
|
+
@mouseenter=${()=>ke(!0,T,A)}
|
|
1410
|
+
@mouseleave=${()=>ke(!1,T,A)}
|
|
1359
1411
|
>
|
|
1360
1412
|
<div
|
|
1361
|
-
class=${V({"context-menu-sub-items-wrapper-right":
|
|
1362
|
-
${
|
|
1413
|
+
class=${V({"context-menu-sub-items-wrapper-right":D&&!pe,"context-menu-sub-items-wrapper-bottom":pe&&!D,"context-menu-sub-items-wrapper-bottom-right":pe&&D,"context-menu-sub-items-wrapper-hide":!T.children||!H,"context-menu-sub-items-wrapper":!pe&&!D})}
|
|
1414
|
+
${Y.ref(Ae=>{Ae&&p.set(A,Ae)})}
|
|
1363
1415
|
>
|
|
1364
|
-
${
|
|
1416
|
+
${T.children?Z(T.children,f+1,D,A):s.nothing}
|
|
1365
1417
|
</div>
|
|
1366
|
-
${
|
|
1367
|
-
class=${`context-menu-item-${
|
|
1368
|
-
@mouseup=${()=>{var
|
|
1418
|
+
${T.template?s.html`<div
|
|
1419
|
+
class=${`context-menu-item-${T.template}`}
|
|
1420
|
+
@mouseup=${()=>{var Ae;(!("hover"in T)||T.hover)&&((Ae=T.function)==null||Ae.call(T),re())}}
|
|
1369
1421
|
>
|
|
1370
|
-
${
|
|
1422
|
+
${W(T)}
|
|
1371
1423
|
</div>`:s.html`<div
|
|
1372
1424
|
class="context-menu-item"
|
|
1373
1425
|
role="menuitem"
|
|
1374
1426
|
tabindex="-1"
|
|
1375
|
-
aria-disabled=${
|
|
1376
|
-
aria-haspopup=${
|
|
1377
|
-
@click=${()=>
|
|
1427
|
+
aria-disabled=${J(T)?"true":"false"}
|
|
1428
|
+
aria-haspopup=${T.children?"menu":"false"}
|
|
1429
|
+
@click=${()=>_(T,A)}
|
|
1378
1430
|
>
|
|
1379
|
-
<div class="context-menu-item-left">${
|
|
1380
|
-
${
|
|
1431
|
+
<div class="context-menu-item-left">${T.text}</div>
|
|
1432
|
+
${T.children?s.html`<div class="context-menu-item-right"></div>`:s.nothing}
|
|
1381
1433
|
</div>`}
|
|
1382
|
-
</div>`},
|
|
1383
|
-
role=${
|
|
1384
|
-
class=${V("context-menu-content-wrapper",
|
|
1434
|
+
</div>`},W=T=>{const f=T.template,D=f.includes("[col-padding]")?"col-padding":f.includes("[row-padding]")?"row-padding":f.includes("[padding]")?"padding":null,A=e.slots.has(f)?e.slot(f,{props:{...T,close:re}}):s.nothing;return D?s.html`<div class="context-menu-item-template" data-layout=${D}>${A}</div>`:s.html`${A}`},Z=(T,f,D,A)=>{const H=f===0;return s.html`<div
|
|
1435
|
+
role=${H?"menu":"group"}
|
|
1436
|
+
class=${V("context-menu-content-wrapper",H?e.props.class:void 0)}
|
|
1385
1437
|
data-noPadding=${String(!!e.props.noPadding)}
|
|
1386
|
-
style=${
|
|
1387
|
-
${
|
|
1438
|
+
style=${te.styleMap({minWidth:e.props.minWidth,...H?Ce(e.props.style):{}})}
|
|
1439
|
+
${fe(H?ye(e.props,Mi):{})}
|
|
1388
1440
|
>
|
|
1389
|
-
${
|
|
1390
|
-
${
|
|
1441
|
+
${T.map((pe,ke)=>{const Ae=`${A}/${f}-${ke}`;return s.html`<div class="context-menu-item-outer-wrapper" style=${te.styleMap({display:pe!=null&&pe.hidden?"none":""})}>
|
|
1442
|
+
${pe.separator?s.html`<div class="context-menu-separator"></div>`:z(pe,f,D,Ae)}
|
|
1391
1443
|
</div>`})}
|
|
1392
|
-
</div>`},G=()=>{const
|
|
1393
|
-
class=${V({[`before-${
|
|
1394
|
-
style=${
|
|
1395
|
-
@contextmenu=${
|
|
1396
|
-
${
|
|
1444
|
+
</div>`},G=()=>{const T=e.props.fixPosition;return T?(typeof T.left=="string"||typeof T.left=="number"||typeof T.top=="string"||typeof T.top=="number")&&T.useTeleport!==!0:!1},Q=()=>{const T=e.props,f=d||T.itemSource;if(!l||!f)return s.nothing;const D=T.transition,A=T.direction;return s.html`<div
|
|
1445
|
+
class=${V({[`before-${D}`]:!0,[`after-${D}`]:c&&r,"context-menu-content-hide":!l,"context-menu-content-init":!0,"context-menu-content-init-right":b&&!m||A==="lb"||A.startsWith("l")&&!m||A.endsWith("b")&&b,"context-menu-content-init-bottom":m&&!b||A==="rt"||A.startsWith("r")&&m||A.endsWith("t")&&!b,"context-menu-content-init-bottom-right":m&&b||A==="lt"||A.startsWith("l")&&m||A.endsWith("t")&&b})}
|
|
1446
|
+
style=${te.styleMap({transitionDuration:`${zi}ms`,...T.toTopCenter?{transform:"translate(-50%, -100%)"}:{},...T.toBottomCenter?{transform:"translate(-50%, 0)"}:{}})}
|
|
1447
|
+
@contextmenu=${H=>H.preventDefault()}
|
|
1448
|
+
${Y.ref(H=>{o=H||null,H&&(X(),F())})}
|
|
1397
1449
|
>
|
|
1398
|
-
${
|
|
1399
|
-
</div>`};return{onMounted:()=>{window.addEventListener("mousedown",
|
|
1450
|
+
${Z(f,0,a,"root")}
|
|
1451
|
+
</div>`};return{onMounted:()=>{window.addEventListener("mousedown",L,{capture:!0,passive:!0})},api:{state:()=>l,open:j,close:re,toggle:k},render(){const T=e.props;return T.fixPosition?s.html`<div
|
|
1400
1452
|
class="context-menu-fixed-position-space"
|
|
1401
|
-
style=${
|
|
1402
|
-
${
|
|
1453
|
+
style=${te.styleMap({left:typeof T.fixPosition.left=="string"?T.fixPosition.left:`${T.fixPosition.left}px`,top:typeof T.fixPosition.top=="string"?T.fixPosition.top:`${T.fixPosition.top}px`})}
|
|
1454
|
+
${Y.ref(n)}
|
|
1403
1455
|
></div>
|
|
1404
|
-
${G()?
|
|
1456
|
+
${G()?Q():s.nothing}`:s.nothing},renderPortal(){const T=d||e.props.itemSource;return!l||!T?s.nothing:s.html`
|
|
1405
1457
|
<div
|
|
1406
1458
|
class="context-menu-wrapper"
|
|
1407
|
-
@mouseenter=${
|
|
1408
|
-
@contextmenu=${
|
|
1409
|
-
${
|
|
1459
|
+
@mouseenter=${se}
|
|
1460
|
+
@contextmenu=${f=>f.preventDefault()}
|
|
1461
|
+
${Y.ref(f=>{t=f||null,f&&X()})}
|
|
1410
1462
|
></div>
|
|
1411
|
-
${G()?s.nothing:
|
|
1412
|
-
`}}}}),
|
|
1463
|
+
${G()?s.nothing:Q()}
|
|
1464
|
+
`}}}}),Ti={name:"MozContextMenu",core:Vs,booleanProps:["disableCloseOnClickBackdrop","noPadding","toBottomCenter","toTopCenter"],props:["itemSource","beforeClose","transition","minWidth","direction","fixPosition","toTopCenter","toBottomCenter","noPadding","disableCloseOnClickBackdrop"],emits:["open","close"],slots:[],expose:!0};function No(e){const{displayProps:t=["text"],columnHeaders:o,columnWidths:n=[],useObjKeyProp:l=!1,...c}=e,r=t.reduce((h,d,b)=>h+(n[b]??120),0)+Math.max(0,t.length-1)*12+34+30;return{...c,width:e.width??`${r}px`,listWidth:e.listWidth??"auto",useObjBinding:l,displayProp:t.map((h,d)=>({key:h,header:o!=null&&o.length?o[d]??"":void 0,width:(n[d]??120)+(d===t.length-1?30:0)}))}}const Ai=zs(!0),Os=(e,t,o,n)=>{let l={...t};const c=Ai(e,No(l),o,n);return{get el(){return c.el},api:c.api,destroy:()=>c.destroy(),notifyMounted:()=>{var r;return(r=c.notifyMounted)==null?void 0:r.call(c)},setLocale:r=>{var h;return(h=c.setLocale)==null?void 0:h.call(c,r)},update(r,h){l=h!=null&&h.replace?{...r}:{...l,...r},c.update(No(l),h)}}},Ri={name:"MozTableSelect",core:Os,booleanProps:["disabled","readonly","required","useFilter","useObjKeyProp"],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 Di(e="var(--moz-color-text-subtle)",t=12){return s.html`<svg xmlns="http://www.w3.org/2000/svg" width=${t} height=${t} viewBox="0 0 12 12" fill="none">
|
|
1413
1465
|
<path
|
|
1414
1466
|
d="M2.49902 4.27679L6.04436 7.73581L9.501 4.27679"
|
|
1415
1467
|
stroke=${e}
|
|
@@ -1417,7 +1469,7 @@
|
|
|
1417
1469
|
stroke-linecap="round"
|
|
1418
1470
|
stroke-linejoin="round"
|
|
1419
1471
|
></path>
|
|
1420
|
-
</svg>`}function
|
|
1472
|
+
</svg>`}function Ii(e="var(--moz-color-text-subtle)",t=12){return s.html`<svg xmlns="http://www.w3.org/2000/svg" width=${t} height=${t} viewBox="0 0 12 12" fill="none">
|
|
1421
1473
|
<path
|
|
1422
1474
|
d="M9.50095 7.73636L5.95563 4.27734L2.49902 7.73636"
|
|
1423
1475
|
stroke=${e}
|
|
@@ -1425,13 +1477,13 @@
|
|
|
1425
1477
|
stroke-linecap="round"
|
|
1426
1478
|
stroke-linejoin="round"
|
|
1427
1479
|
></path>
|
|
1428
|
-
</svg>`}function
|
|
1480
|
+
</svg>`}function Vi(e="var(--moz-color-text-subtle)",t=12,o=""){return s.html`<svg class=${o} width=${t} height=${t} viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1429
1481
|
<path d="M1.71436 7.07145L3.00007 6.00002L1.71436 4.92859" stroke=${e} stroke-linecap="round" stroke-linejoin="round"></path>
|
|
1430
1482
|
<path d="M5.14307 4.71423H10.2859" stroke=${e} stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
1431
1483
|
<path d="M1.71436 2.14282L10.2858 2.14282" stroke=${e} stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
1432
1484
|
<path d="M5.14307 7.28577H10.2859" stroke=${e} stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
1433
1485
|
<path d="M1.71436 9.85718L10.2858 9.85718" stroke=${e} stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
1434
|
-
</svg>`}function
|
|
1486
|
+
</svg>`}function Oi(e="var(--moz-color-text-subtle)",t=12,o=""){return s.html`<svg class=${o} width=${t} height=${t} viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1435
1487
|
<path d="M0.856934 4.92852L2.14265 4.07138L0.856934 3.21423" fill=${e}></path>
|
|
1436
1488
|
<path d="M0.856934 4.92852L2.14265 4.07138L0.856934 3.21423V4.92852Z" stroke=${e} stroke-linecap="round" stroke-linejoin="round"></path>
|
|
1437
1489
|
<path d="M0.856934 8.7857L2.14265 7.92855L0.856934 7.07141" fill=${e}></path>
|
|
@@ -1439,49 +1491,49 @@
|
|
|
1439
1491
|
<path d="M3.8501 2.35718H11.1358" stroke=${e} stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
1440
1492
|
<path d="M3.8501 6H11.1358" stroke=${e} stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
1441
1493
|
<path d="M3.8501 9.64282H11.1358" stroke=${e} stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
1442
|
-
</svg>`}const ro={keyProp:"code",displayProp:"name",categoryLv1ID:"categoryLv1ID",categoryLv1Label:"categoryLv1Label",categoryLv2ID:"categoryLv2ID",categoryLv2Label:"categoryLv2Label",description:"description"},Pt=new WeakMap;function jt(e){return Pt.get(e)===!0}function Xt(e,t){return Pt.has(e)&&Pt.set(t,Pt.get(e)),t}function xi(e,t,o="disabled"){const n=a=>t.displayProp&&a[t.displayProp]?a[t.displayProp]:a[t.keyProp],l=a=>t.categoryLv1Label&&a[t.categoryLv1Label]?a[t.categoryLv1Label]:t.categoryLv1ID?a[t.categoryLv1ID]:"",d=a=>t.categoryLv2Label&&a[t.categoryLv2Label]?a[t.categoryLv2Label]:t.categoryLv2ID?a[t.categoryLv2ID]:"";return e.map(a=>{const f={code:a[t.keyProp],name:n(a),categoryLv1ID:t.categoryLv1ID&&a[t.categoryLv1ID]||"",categoryLv1Label:l(a),categoryLv2ID:t.categoryLv2ID&&a[t.categoryLv2ID]||"",categoryLv2Label:d(a),description:t.description&&a[t.description]||""};return Pt.set(f,a[o]===!0),f})}function It(e,t){let o=e.get(t);return o||(o=[],e.set(t,o)),o}function Mi(e){const t=new Map([["depth0",[]],["depth1",[]],["depth2",[]]]),o=new Map,n=new Map;e.forEach(a=>{const f=a.categoryLv1ID;if(!o.get(f)){const i={code:f,name:a.categoryLv1Label??f};o.set(f,i),It(t,"depth0").push(i)}if(!a.categoryLv2ID||a.categoryLv2ID.trim()==="")It(t,"depth1").push(Xt(a,{...a,parent:a.categoryLv1ID}));else{const i=`${a.categoryLv1ID}-${a.categoryLv2ID}`;if(!n.get(i)){const c={code:a.categoryLv2ID,name:a.categoryLv2Label??a.categoryLv2ID,parent:a.categoryLv1ID,isSubCategory:!0};n.set(i,c),It(t,"depth1").push(c)}It(t,"depth2").push(Xt(a,{...a,parent:a.categoryLv2ID}))}});function l(a,f,i,c){const r=`depth${f}`,u=`depth${f+1}`,p=i.get(u),y=Xt(a,{...a,depth:f});if(f!==0&&(y.isHidden=!1),p&&p.length>0){const L=c[r],D=c[u],P=p.filter(g=>g[D]===(a.isSubCategory?a.code:a[L]));y.isExpanded=!0;const E=[y];return P.forEach(g=>{E.push(...l(g,f+1,i,c))}),E}return[y]}const d={depth0:"code",depth1:"parent",depth2:"parent"};return(t.get("depth0")??[]).flatMap(a=>l(a,0,t,d))}function zi(e){return new Set(e.map(t=>t.code))}function je(e,t){return t===e}function Bt(e,t){return e.filter(o=>o.categoryLv1ID===t.code||o.categoryLv2ID===t.code)}function Vt(e){return new Set(e.map(t=>t.code))}function Rt(e,t){return{childDepthList:Bt(e,t)}}function Vo(e,t){for(const o of e)if(!t.has(o))return!1;return!0}function Ut(e,t,o){t===0&&e.categoryLv1Set.delete(o),t===1&&e.categoryLv2Set.delete(o)}function Lt(e,t,o){t===0&&e.categoryLv1Set.add(o),t===1&&e.categoryLv2Set.add(o)}function Ti(e,t,o){t.length&&e.categoryLv1Set.add(t),o.length&&e.categoryLv2Set.add(o)}function $t(e){e.categoryLv1Set.clear(),e.categoryLv2Set.clear()}function Is(e,t,o,n){if(Lt(e,o.depth,o.code),o.parent){const l=t.find(d=>d.code===o.parent);l&&Is(e,t,l)}}function Vs(e,t,o,n){if(Lt(e,o.depth,o.code),je(n,o.depth))return;t.filter(d=>d.parent===o.code).forEach(d=>{je(n,d.depth)||Vs(e,t,d,n)})}function Qt(e,t,o,n){Is(e,t,o),Vs(e,t,o,n)}function Rs(e,t,o,n){if(Ut(e,o.depth,o.code),o.parent){const l=t.find(d=>d.code===o.parent);l&&Rs(e,t,l)}}function Os(e,t,o,n){if(Ut(e,o.depth,o.code),je(n,o.depth))return;t.filter(d=>d.parent===o.code).forEach(d=>{je(n,d.depth)||Os(e,t,d,n)})}function Jt(e,t,o,n){Rs(e,t,o),Os(e,t,o,n)}const Ai=new Set(["modelValue","itemsSource","label","placeholder","required","disabled","isReadOnly","width","rules","keyProp","displayProp","useFilter","useSelectAll","class","style"]),qs=$e({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:ro,modelValue:[]},setup(e){const t=K.createRef(),o=K.createRef(),n=K.createRef(),l=K.createRef(),d=K.createRef();let a=null;const f=(e.props.treeLevels??1)-1,i=f,c=()=>!!e.props.useMultiSelect,r=()=>e.props.disabledProp||"disabled",u=()=>e.props.treeProps??ro;let p=e.props.modelValue??(c()?[]:"");const y=()=>e.controlled("modelValue")?e.props.modelValue??[]:p,L=()=>{const b=y();return Array.isArray(b)?b:b?[b]:[]},D=b=>{e.controlled("modelValue")||(p=b),e.emit("update:modelValue",b),e.requestUpdate()};let P=!1,E=!1,g=0;e.onCleanup(()=>{E=!0,g+=1});let h="",C=!1,k=!1,Z=!1,W={},Q=[];const re={change:"",blur:"",save:""},ae=new Set,j=new Set,$={categoryLv1Set:ae,categoryLv2Set:j},I=(()=>{try{const b=getComputedStyle(document.documentElement).getPropertyValue("--size-input-dropdown-item-height");return b?+b.trim().replace("px",""):28}catch{return 28}})(),Y=8,ne=Number.isFinite(I)&&I>0?{"--moz-tree-select-row-height":`${I}px`}:{};let B=I;const se=()=>e.slots.has("list-item");let N=[],X=[],x=e.props.itemsSource,U=r();const _=()=>{N=xi(e.props.itemsSource??[],u(),r()),X=Mi(N)};_();const G=()=>{const b=new Map;return N.forEach(S=>b.set(S.code,S)),b},J=b=>b.name??"",M=b=>new Set(L()).has(b.code),m=b=>Q.some(S=>wt(S.item,b)),T=()=>new Set(L()),A=()=>{let b=[];if(!h)b=X;else{const S=[],O=new Set,le=ue=>`depth${ue.depth}_${ue.code}`;for(const ue of X)if(ue.depth!==i){for(;S.length&&S[S.length-1].depth>=ue.depth;)S.pop();S.push(ue)}else if(J(ue).toLowerCase().indexOf(h.toLowerCase())>-1){for(const we of S){const ze=le(we);O.has(ze)||(b.push(we),O.add(ze))}const fe=le(ue);O.has(fe)||(b.push(ue),O.add(fe))}}if(Z){const S=new Set,O=G(),le=T();b.filter(fe=>{if(Ne(fe,le))return!0;if(c()&&!je(f,fe.depth)){const we=Bt(X,fe);if(we.length>0&&we.some(ze=>le.has(ze.code)))return!0}return!1}).forEach(fe=>{let we=fe;for(;we&&(S.add(we.code),!!we.parent);)we=O.get(we.parent)}),b=b.filter(fe=>S.has(fe.code))}return b},F=()=>A().filter(b=>!(b.categoryLv1ID||b.categoryLv2ID)),ce=()=>{const b=F();return A().filter(S=>!b.includes(S))},ke=()=>new Set(ce().map(b=>b.code)),xe=()=>zi(ce()),Ne=(b,S)=>c()?je(i,b.depth)?S.has(b.code):ae.has(b.code)||j.has(b.code):y()===b.code,qe=b=>{if(je(f,b.depth))return!0;const S=Bt(A(),b);return S.length===0?!0:Vo(Vt(S),T())},st=()=>{const b=L().length,S=F().length;if(b<S||b===0||S===0)return!1;for(const O of xe())if(!T().has(O))return!1;return!0},Qe=()=>{const b=xe(),S=T();return!b.size||!S.size||S.size<b.size?!1:Array.from(b).every(O=>S.has(O))},Je=()=>c()?!!e.props.useSelectAll:!1,Be=()=>{const b=y(),S=G();if(typeof b=="string")return S.has(b)?S.get(b).name:b;const O=Array.isArray(b)?b:[],le=O.filter(ue=>S.has(ue)).map(ue=>S.get(ue).name);return O.length?c()&&le.length>1?e.props.headerFormat.replace(/\{count(:.*?)?}/g,`${le.length.toLocaleString()}`):le.join(", ")||"":""},He=()=>re.save||re.blur||re.change,Le=()=>{const b=[];return e.props.required&&b.push({message:e.locale.TreeSelect.required.replace("{label}",e.props.label||""),type:"save",validator:S=>!!S.length}),[...b,...e.props.rules??[]]},_e=async(b,S)=>{const O=Le();if(O.length<=0)return;if(e.props.disabled)return!0;re[S]="",e.requestUpdate();const le=O.filter(ue=>ue.type===S);for(const ue of le)if(!await ue.validator(b))return re[S]=ue.message,e.requestUpdate(),!1;return!0},Ue=async(b="save")=>He()!==""?!1:await _e(L(),b)??!0,rt={validate:Ue,initValidator:()=>{re.change="",re.blur="",re.save="",e.requestUpdate()}};e.onCleanup(()=>{oe==null||oe.release(),oe=null}),e.validator&&(e.validator.addValidator(rt),e.onCleanup(()=>{var b;return(b=e.validator)==null?void 0:b.removeValidator(rt)}));const z=(b,S)=>b.filter(O=>M(O)!==S).map(O=>O.code),de=b=>{const S=Array.from(new Set(b));wt(L(),S)||(D(S),e.emit("change",S,S.filter(Boolean)),_e(S,"change"),Ie(S))},Ie=b=>{b.length===N.length?F().forEach(S=>Lt($,S.depth,S.code)):b.forEach(S=>{const O=ce().find(le=>le.code===S);O&&Ti($,O.categoryLv1ID??"",O.categoryLv2ID??"")})},w=(b,S,O)=>{if(O.shiftKey&&Q.length>0){const le=Q[0],ue=Math.min(le.index,S),fe=Math.max(le.index,S);Q=A().slice(ue,fe+1).map((we,ze)=>({item:we,index:ue+ze}))}else O.ctrlKey?Q.push({item:b,index:S}):Q=[{item:b,index:S}]},H=(b,S)=>{if(!je(f,b.depth)){const{childDepthList:O}=Rt(A(),b);if(S){const le=Vt(O);D(L().filter(ue=>!le.has(ue))),Jt($,A(),b,i)}else{const le=O.map(ue=>ue.code);D([...L(),...le])}}},te=(b,S)=>{const le=Q.map(we=>we.item).filter(we=>we.depth===i),ue=z(le,b);let fe=[];if(S.depth!==f){const{childDepthList:we}=Rt(A(),S),ze=Vt(we);fe=L().filter(tt=>!ze.has(tt))}else fe=L();b?S.depth===f?fe=[...fe,...ue]:Qt($,A(),S,i):($t($),fe=fe.filter(we=>!ue.some(ze=>we===ze))),de(fe)},me=(b,S,O,le)=>{const ue=Q.some(fe=>fe.item.code===b.code);if((Q.length<=1||!ue)&&w(b,S,{shiftKey:!1,ctrlKey:!1}),je(f,b.depth))te(!le,b);else{const fe=L(),we=A(),{childDepthList:ze}=Rt(we,b),tt=ze.map(Ke=>Ke.code),Ye=new Set(tt);le?($t($),Jt($,we,b,i),de(fe.filter(Ke=>!Ye.has(Ke)))):(Qt($,we,b,i),de([...fe,...tt]))}e.requestUpdate()},ve=new WeakSet,Re=(b,S,O,le)=>{ve.delete(O)||jt(b)||(!O.ctrlKey&&!O.shiftKey&&Q.length<=1&&me(b,S,O,le),w(b,S,O),e.requestUpdate())},Ce=(b,S,O)=>{if(jt(b))return;let le=[],ue=!1;const fe=b.code;if(je(f,b.depth))ve.add(O),ue=L().length===1&&L()[0]===fe,ue||(le=[fe]),$t($);else{const{childDepthList:we}=Rt(A(),b),ze=Vt(we),tt=T();ue=Vo(ze,tt)&&ze.size===tt.size,ve.add(O),ue?Jt($,A(),b,i):(le=Array.from(ze),$t($),Qt($,A(),b,i)),de(le),w(b,S,O),e.requestUpdate();return}de(le),H(b,ue),w(b,S,O),e.requestUpdate()},Se=b=>{D(b),ie(!1)},Ze=(b,S)=>{A().filter(le=>le.parent===b).forEach(le=>{if(le.isHidden=S,le.depth===i)return;const fe=!S&&!le.isExpanded?!0:S;Ze(le.code,fe)})},Te=(b,S)=>{S.stopPropagation(),b.isExpanded=!b.isExpanded,Ze(b.code,!b.isExpanded),queueMicrotask(()=>Me.measure()),e.requestUpdate()},De=b=>{X.forEach(S=>{S.isExpanded=b,S.depth>0?S.isHidden=!b:S.isHidden=!1}),queueMicrotask(()=>Me.measure()),e.requestUpdate()},et=b=>{b.stopPropagation(),ke().size===T().size&&[...ke()].every(O=>T().has(O))?(F().forEach(O=>Ut($,O.depth,O.code)),de([])):($t($),F().forEach(O=>Lt($,O.depth,O.code)),de([...ke()]))},at=b=>{if(b.stopPropagation(),Qe()){const S=xe();de(L().filter(O=>!S.has(O))),F().forEach(O=>Ut($,O.depth,O.code))}else{const S=new Set([...L(),...ke()]);de(Array.from(S)),F().forEach(O=>Lt($,O.depth,O.code))}},Ct=b=>{C=b.target.scrollTop>0,e.requestUpdate()},ht=()=>{const b=o.value;if(!b)return;const S=b.getBoundingClientRect();let O=`${S.width}px`;e.props.listBoxWidth&&(O=typeof e.props.listBoxWidth=="number"?`${e.props.listBoxWidth}px`:e.props.listBoxWidth),W={width:String(O),left:`${S.left}px`,top:`${S.top+(k?0:S.height)}px`},e.requestUpdate()},mt=(b,S,O=10)=>{const le=window.innerHeight||document.documentElement.clientHeight,ue=window.innerWidth||document.documentElement.clientWidth,fe=b.getBoundingClientRect(),we=S.getBoundingClientRect(),ze=fe.bottom+we.height+O>le;if(!ze)return!1;const tt=fe.top-we.height-O<0,Ye=fe.right+we.width+O>ue,Ke=fe.left-we.width-O<0;return ze&&!tt||Ye&&!Ke},v=b=>{b.target!==a&&ie(!1)},R=b=>{var S,O;!((S=t.value)!=null&&S.contains(b.target))&&!((O=n.value)!=null&&O.contains(b.target))&&(ie(!1),document.removeEventListener("click",R,{capture:!0}))},q=b=>{var O;`${b.ctrlKey?"ctrl+":""}${b.altKey?"alt+":""}${b.key.toLowerCase()}`==="escape"&&(ie(!1),(O=l.value)==null||O.focus())};e.onCleanup(()=>{document.body.removeEventListener("scroll",v,{capture:!0}),document.removeEventListener("click",R,{capture:!0}),window.removeEventListener("keydown",q)});let oe=null;const ie=(b,S=!0)=>{if(E||P===b)return;const O=++g;P=b,e.requestUpdate(),b?(oe=Gt(),document.body.addEventListener("scroll",v,{capture:!0}),document.addEventListener("click",R,{capture:!0}),re.save="",window.addEventListener("keydown",q),ht(),queueMicrotask(()=>{var le;E||!P||O!==g||(o.value&&a&&(k=mt(o.value,a)),ht(),S&&(d.value?d.value.focus():(le=l.value)==null||le.focus()))})):(oe==null||oe.release(),oe=null,document.body.removeEventListener("scroll",v,{capture:!0}),document.removeEventListener("click",R,{capture:!0}),_e(L(),"blur"),window.removeEventListener("keydown",q),h="",e.emit("close"))},pe=()=>{e.props.disabled||ie(!P)};let ge;const Ge=b=>{const S=b.target.value;ge&&clearTimeout(ge),ge=setTimeout(()=>{h=S,e.requestUpdate(),queueMicrotask(()=>{Me.setOptions({...Me.options,count:A().length}),Me.measure()})},300)},yt=b=>{Z=b,e.requestUpdate(),queueMicrotask(()=>{Me.setOptions({...Me.options,count:A().length}),Me.measure()})},Me=new nt.Virtualizer({count:0,getScrollElement:()=>a,estimateSize:b=>{const S=A()[b];return S!=null&&S.isHidden?0:se()&&S&&je(f,S.depth)?B:I},measureElement:b=>{const S=b.getBoundingClientRect().height;return S>0?S:Me.options.estimateSize(Number(b.dataset.index))},overscan:3,observeElementRect:nt.observeElementRect,observeElementOffset:nt.observeElementOffset,scrollToFn:nt.elementScroll,onChange:()=>e.requestUpdate()});e.onCleanup(Me._didMount());const ft=b=>{a=b??null,b&&(Me._willUpdate(),e.requestUpdate())},zt=(b,S)=>{if(!b||S!==f)return;const O=b.getBoundingClientRect().height;O>0&&(B=O)},Fe=b=>b.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),We=(b,S)=>{if(!h||!je(f,S))return[{part:b,highlight:!1}];const O=new RegExp(`(${Fe(h)})`,"gi");return b.split(O).map(le=>({part:le,highlight:h.toLowerCase()===le.toLowerCase()}))};let Tt=y();const Yt=b=>{const{index:S,item:O,start:le,isSelected:ue,isIndeterminate:fe,isDisabled:we,isFocused:ze}=b;if(O.isHidden)return s.nothing;const tt=e.props,Ye=O.depth,Ke=je(f,Ye),dt=c(),it=Ve=>{Ye!==f?Te(O,Ve):Se(O.code)},ct=Ve=>{dt?Re(O,S,Ve,ue&&qe(O)):it(Ve)},vt=()=>{me(O,S,{},ue&&qe(O))},At=Ke?"하나만":"그룹만";return s.html`<div
|
|
1443
|
-
data-index=${
|
|
1444
|
-
${
|
|
1445
|
-
style=${
|
|
1446
|
-
class=${V("list-box-item virtual-row tree-item",{"list-selected":ue,"moz-multi-focus":
|
|
1494
|
+
</svg>`}const ro={keyProp:"code",displayProp:"name",categoryLv1ID:"categoryLv1ID",categoryLv1Label:"categoryLv1Label",categoryLv2ID:"categoryLv2ID",categoryLv2Label:"categoryLv2Label",description:"description"},Lt=new WeakMap;function Xt(e){return Lt.get(e)===!0}function Qt(e,t){return Lt.has(e)&&Lt.set(t,Lt.get(e)),t}function qi(e,t,o="disabled"){const n=r=>t.displayProp&&r[t.displayProp]?r[t.displayProp]:r[t.keyProp],l=r=>t.categoryLv1Label&&r[t.categoryLv1Label]?r[t.categoryLv1Label]:t.categoryLv1ID?r[t.categoryLv1ID]:"",c=r=>t.categoryLv2Label&&r[t.categoryLv2Label]?r[t.categoryLv2Label]:t.categoryLv2ID?r[t.categoryLv2ID]:"";return e.map(r=>{const h={code:r[t.keyProp],name:n(r),categoryLv1ID:t.categoryLv1ID&&r[t.categoryLv1ID]||"",categoryLv1Label:l(r),categoryLv2ID:t.categoryLv2ID&&r[t.categoryLv2ID]||"",categoryLv2Label:c(r),description:t.description&&r[t.description]||""};return Lt.set(h,r[o]===!0),h})}function It(e,t){let o=e.get(t);return o||(o=[],e.set(t,o)),o}function Bi(e){const t=new Map([["depth0",[]],["depth1",[]],["depth2",[]]]),o=new Map,n=new Map;e.forEach(r=>{const h=r.categoryLv1ID;if(!o.get(h)){const d={code:h,name:r.categoryLv1Label??h};o.set(h,d),It(t,"depth0").push(d)}if(!r.categoryLv2ID||r.categoryLv2ID.trim()==="")It(t,"depth1").push(Qt(r,{...r,parent:r.categoryLv1ID}));else{const d=`${r.categoryLv1ID}-${r.categoryLv2ID}`;if(!n.get(d)){const b={code:r.categoryLv2ID,name:r.categoryLv2Label??r.categoryLv2ID,parent:r.categoryLv1ID,isSubCategory:!0};n.set(d,b),It(t,"depth1").push(b)}It(t,"depth2").push(Qt(r,{...r,parent:r.categoryLv2ID}))}});function l(r,h,d,b){const a=`depth${h}`,m=`depth${h+1}`,u=d.get(m),E=Qt(r,{...r,depth:h});if(h!==0&&(E.isHidden=!1),u&&u.length>0){const x=b[a],$=b[m],P=u.filter(g=>g[$]===(r.isSubCategory?r.code:r[x]));E.isExpanded=!0;const L=[E];return P.forEach(g=>{L.push(...l(g,h+1,d,b))}),L}return[E]}const c={depth0:"code",depth1:"parent",depth2:"parent"};return(t.get("depth0")??[]).flatMap(r=>l(r,0,t,c))}function Fi(e){return new Set(e.map(t=>t.code))}function je(e,t){return t===e}function Bt(e,t){return e.filter(o=>o.categoryLv1ID===t.code||o.categoryLv2ID===t.code)}function Vt(e){return new Set(e.map(t=>t.code))}function Ot(e,t){return{childDepthList:Bt(e,t)}}function _o(e,t){for(const o of e)if(!t.has(o))return!1;return!0}function Ut(e,t,o){t===0&&e.categoryLv1Set.delete(o),t===1&&e.categoryLv2Set.delete(o)}function Pt(e,t,o){t===0&&e.categoryLv1Set.add(o),t===1&&e.categoryLv2Set.add(o)}function Ni(e,t,o){t.length&&e.categoryLv1Set.add(t),o.length&&e.categoryLv2Set.add(o)}function $t(e){e.categoryLv1Set.clear(),e.categoryLv2Set.clear()}function qs(e,t,o,n){if(Pt(e,o.depth,o.code),o.parent){const l=t.find(c=>c.code===o.parent);l&&qs(e,t,l)}}function Bs(e,t,o,n){if(Pt(e,o.depth,o.code),je(n,o.depth))return;t.filter(c=>c.parent===o.code).forEach(c=>{je(n,c.depth)||Bs(e,t,c,n)})}function Jt(e,t,o,n){qs(e,t,o),Bs(e,t,o,n)}function Fs(e,t,o,n){if(Ut(e,o.depth,o.code),o.parent){const l=t.find(c=>c.code===o.parent);l&&Fs(e,t,l)}}function Ns(e,t,o,n){if(Ut(e,o.depth,o.code),je(n,o.depth))return;t.filter(c=>c.parent===o.code).forEach(c=>{je(n,c.depth)||Ns(e,t,c,n)})}function eo(e,t,o,n){Fs(e,t,o),Ns(e,t,o,n)}const _i=new Set(["modelValue","itemsSource","label","placeholder","required","disabled","isReadOnly","width","rules","keyProp","displayProp","useFilter","useSelectAll","class","style"]),_s=$e({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:ro,modelValue:[]},setup(e){const t=Y.createRef(),o=Y.createRef(),n=Y.createRef(),l=Y.createRef(),c=Y.createRef();let r=null;const h=(e.props.treeLevels??1)-1,d=h,b=()=>!!e.props.useMultiSelect,a=()=>e.props.disabledProp||"disabled",m=()=>e.props.treeProps??ro;let u=e.props.modelValue??(b()?[]:"");const E=()=>e.controlled("modelValue")?e.props.modelValue??[]:u,x=()=>{const C=E();return Array.isArray(C)?C:C?[C]:[]},$=C=>{e.controlled("modelValue")||(u=C),e.emit("update:modelValue",C),e.requestUpdate()};let P=!1,L=!1,g=0;e.onCleanup(()=>{L=!0,g+=1});let i="",p=!1,y=!1,F=!1,I={},K=[];const oe={change:"",blur:"",save:""},re=new Set,j=new Set,k={categoryLv1Set:re,categoryLv2Set:j},R=(()=>{try{const C=getComputedStyle(document.documentElement).getPropertyValue("--size-input-dropdown-item-height");return C?+C.trim().replace("px",""):28}catch{return 28}})(),X=8,se=Number.isFinite(R)&&R>0?{"--moz-tree-select-row-height":`${R}px`}:{};let N=R;const ne=()=>e.slots.has("list-item");let _=[],J=[],z=e.props.itemsSource,W=a();const Z=()=>{_=qi(e.props.itemsSource??[],m(),a()),J=Bi(_)};Z();const G=()=>{const C=new Map;return _.forEach(M=>C.set(M.code,M)),C},Q=C=>C.name??"",T=C=>new Set(x()).has(C.code),f=C=>K.some(M=>bt(M.item,C)),D=()=>new Set(x()),A=()=>{let C=[];if(!i)C=J;else{const M=[],q=new Set,ie=ue=>`depth${ue.depth}_${ue.code}`;for(const ue of J)if(ue.depth!==d){for(;M.length&&M[M.length-1].depth>=ue.depth;)M.pop();M.push(ue)}else if(Q(ue).toLowerCase().indexOf(i.toLowerCase())>-1){for(const we of M){const Re=ie(we);q.has(Re)||(C.push(we),q.add(Re))}const ve=ie(ue);q.has(ve)||(C.push(ue),q.add(ve))}}if(F){const M=new Set,q=G(),ie=D();C.filter(ve=>{if(Ue(ve,ie))return!0;if(b()&&!je(h,ve.depth)){const we=Bt(J,ve);if(we.length>0&&we.some(Re=>ie.has(Re.code)))return!0}return!1}).forEach(ve=>{let we=ve;for(;we&&(M.add(we.code),!!we.parent);)we=q.get(we.parent)}),C=C.filter(ve=>M.has(ve.code))}return C},H=()=>A().filter(C=>!(C.categoryLv1ID||C.categoryLv2ID)),pe=()=>{const C=H();return A().filter(M=>!C.includes(M))},ke=()=>new Set(pe().map(C=>C.code)),Ae=()=>Fi(pe()),Ue=(C,M)=>b()?je(d,C.depth)?M.has(C.code):re.has(C.code)||j.has(C.code):E()===C.code,We=C=>{if(je(h,C.depth))return!0;const M=Bt(A(),C);return M.length===0?!0:_o(Vt(M),D())},Qe=()=>{const C=x().length,M=H().length;if(C<M||C===0||M===0)return!1;for(const q of Ae())if(!D().has(q))return!1;return!0},Je=()=>{const C=Ae(),M=D();return!C.size||!M.size||M.size<C.size?!1:Array.from(C).every(q=>M.has(q))},nt=()=>b()?!!e.props.useSelectAll:!1,qe=()=>{const C=E(),M=G();if(typeof C=="string")return M.has(C)?M.get(C).name:C;const q=Array.isArray(C)?C:[],ie=q.filter(ue=>M.has(ue)).map(ue=>M.get(ue).name);return q.length?b()&&ie.length>1?e.props.headerFormat.replace(/\{count(:.*?)?}/g,`${ie.length.toLocaleString()}`):ie.join(", ")||"":""},Be=()=>oe.save||oe.blur||oe.change,xe=()=>{const C=[];return e.props.required&&C.push({message:e.locale.TreeSelect.required.replace("{label}",e.props.label||""),type:"save",validator:M=>!!M.length}),[...C,...e.props.rules??[]]},Ge=async(C,M)=>{const q=xe();if(q.length<=0)return;if(e.props.disabled)return!0;oe[M]="",e.requestUpdate();const ie=q.filter(ue=>ue.type===M);for(const ue of ie)if(!await ue.validator(C))return oe[M]=ue.message,e.requestUpdate(),!1;return!0},Fe=async(C="save")=>Be()!==""?!1:await Ge(x(),C)??!0,it={validate:Fe,initValidator:()=>{oe.change="",oe.blur="",oe.save="",e.requestUpdate()}};e.onCleanup(()=>{ee==null||ee.release(),ee=null}),e.validator&&(e.validator.addValidator(it),e.onCleanup(()=>{var C;return(C=e.validator)==null?void 0:C.removeValidator(it)}));const gt=(C,M)=>C.filter(q=>T(q)!==M).map(q=>q.code),S=C=>{const M=Array.from(new Set(C));bt(x(),M)||($(M),e.emit("change",M,M.filter(Boolean)),Ge(M,"change"),de(M))},de=C=>{C.length===_.length?H().forEach(M=>Pt(k,M.depth,M.code)):C.forEach(M=>{const q=pe().find(ie=>ie.code===M);q&&Ni(k,q.categoryLv1ID??"",q.categoryLv2ID??"")})},w=(C,M,q)=>{if(q.shiftKey&&K.length>0){const ie=K[0],ue=Math.min(ie.index,M),ve=Math.max(ie.index,M);K=A().slice(ue,ve+1).map((we,Re)=>({item:we,index:ue+Re}))}else q.ctrlKey?K.push({item:C,index:M}):K=[{item:C,index:M}]},U=(C,M)=>{if(!je(h,C.depth)){const{childDepthList:q}=Ot(A(),C);if(M){const ie=Vt(q);$(x().filter(ue=>!ie.has(ue))),eo(k,A(),C,d)}else{const ie=q.map(ue=>ue.code);$([...x(),...ie])}}},ae=(C,M)=>{const ie=K.map(we=>we.item).filter(we=>we.depth===d),ue=gt(ie,C);let ve=[];if(M.depth!==h){const{childDepthList:we}=Ot(A(),M),Re=Vt(we);ve=x().filter(tt=>!Re.has(tt))}else ve=x();C?M.depth===h?ve=[...ve,...ue]:Jt(k,A(),M,d):($t(k),ve=ve.filter(we=>!ue.some(Re=>we===Re))),S(ve)},he=(C,M,q,ie)=>{const ue=K.some(ve=>ve.item.code===C.code);if((K.length<=1||!ue)&&w(C,M,{shiftKey:!1,ctrlKey:!1}),je(h,C.depth))ae(!ie,C);else{const ve=x(),we=A(),{childDepthList:Re}=Ot(we,C),tt=Re.map(Ze=>Ze.code),Ye=new Set(tt);ie?($t(k),eo(k,we,C,d),S(ve.filter(Ze=>!Ye.has(Ze)))):(Jt(k,we,C,d),S([...ve,...tt]))}e.requestUpdate()},me=new WeakSet,Te=(C,M,q,ie)=>{me.delete(q)||Xt(C)||(!q.ctrlKey&&!q.shiftKey&&K.length<=1&&he(C,M,q,ie),w(C,M,q),e.requestUpdate())},be=(C,M,q)=>{if(Xt(C))return;let ie=[],ue=!1;const ve=C.code;if(je(h,C.depth))me.add(q),ue=x().length===1&&x()[0]===ve,ue||(ie=[ve]),$t(k);else{const{childDepthList:we}=Ot(A(),C),Re=Vt(we),tt=D();ue=_o(Re,tt)&&Re.size===tt.size,me.add(q),ue?eo(k,A(),C,d):(ie=Array.from(Re),$t(k),Jt(k,A(),C,d)),S(ie),w(C,M,q),e.requestUpdate();return}S(ie),U(C,ue),w(C,M,q),e.requestUpdate()},Pe=C=>{$(C),le(!1)},et=(C,M)=>{A().filter(ie=>ie.parent===C).forEach(ie=>{if(ie.isHidden=M,ie.depth===d)return;const ve=!M&&!ie.isExpanded?!0:M;et(ie.code,ve)})},Ne=(C,M)=>{M.stopPropagation(),C.isExpanded=!C.isExpanded,et(C.code,!C.isExpanded),queueMicrotask(()=>ze.measure()),e.requestUpdate()},Le=C=>{J.forEach(M=>{M.isExpanded=C,M.depth>0?M.isHidden=!C:M.isHidden=!1}),queueMicrotask(()=>ze.measure()),e.requestUpdate()},Oe=C=>{C.stopPropagation(),ke().size===D().size&&[...ke()].every(q=>D().has(q))?(H().forEach(q=>Ut(k,q.depth,q.code)),S([])):($t(k),H().forEach(q=>Pt(k,q.depth,q.code)),S([...ke()]))},ct=C=>{if(C.stopPropagation(),Je()){const M=Ae();S(x().filter(q=>!M.has(q))),H().forEach(q=>Ut(k,q.depth,q.code))}else{const M=new Set([...x(),...ke()]);S(Array.from(M)),H().forEach(q=>Pt(k,q.depth,q.code))}},rt=C=>{p=C.target.scrollTop>0,e.requestUpdate()},ht=()=>{const C=o.value;if(!C)return;const M=C.getBoundingClientRect();let q=`${M.width}px`;e.props.listBoxWidth&&(q=typeof e.props.listBoxWidth=="number"?`${e.props.listBoxWidth}px`:e.props.listBoxWidth),I={width:String(q),left:`${M.left}px`,top:`${M.top+(y?0:M.height)}px`},e.requestUpdate()},vt=(C,M,q=10)=>{const ie=window.innerHeight||document.documentElement.clientHeight,ue=window.innerWidth||document.documentElement.clientWidth,ve=C.getBoundingClientRect(),we=M.getBoundingClientRect(),Re=ve.bottom+we.height+q>ie;if(!Re)return!1;const tt=ve.top-we.height-q<0,Ye=ve.right+we.width+q>ue,Ze=ve.left-we.width-q<0;return Re&&!tt||Ye&&!Ze},v=C=>{C.target!==r&&le(!1)},O=C=>{var M,q;!((M=t.value)!=null&&M.contains(C.target))&&!((q=n.value)!=null&&q.contains(C.target))&&(le(!1),document.removeEventListener("click",O,{capture:!0}))},B=C=>{var q;`${C.ctrlKey?"ctrl+":""}${C.altKey?"alt+":""}${C.key.toLowerCase()}`==="escape"&&(le(!1),(q=l.value)==null||q.focus())};e.onCleanup(()=>{document.body.removeEventListener("scroll",v,{capture:!0}),document.removeEventListener("click",O,{capture:!0}),window.removeEventListener("keydown",B)});let ee=null;const le=(C,M=!0)=>{if(L||P===C)return;const q=++g;P=C,e.requestUpdate(),C?(ee=Zt(),document.body.addEventListener("scroll",v,{capture:!0}),document.addEventListener("click",O,{capture:!0}),oe.save="",window.addEventListener("keydown",B),ht(),queueMicrotask(()=>{var ie;L||!P||q!==g||(o.value&&r&&(y=vt(o.value,r)),ht(),M&&(c.value?c.value.focus():(ie=l.value)==null||ie.focus()))})):(ee==null||ee.release(),ee=null,document.body.removeEventListener("scroll",v,{capture:!0}),document.removeEventListener("click",O,{capture:!0}),Ge(x(),"blur"),window.removeEventListener("keydown",B),i="",e.emit("close"))},ce=()=>{e.props.disabled||le(!P)};let ge;const _e=C=>{const M=C.target.value;ge&&clearTimeout(ge),ge=setTimeout(()=>{i=M,e.requestUpdate(),queueMicrotask(()=>{ze.setOptions({...ze.options,count:A().length}),ze.measure()})},300)},mt=C=>{F=C,e.requestUpdate(),queueMicrotask(()=>{ze.setOptions({...ze.options,count:A().length}),ze.measure()})},ze=new st.Virtualizer({count:0,getScrollElement:()=>r,estimateSize:C=>{const M=A()[C];return M!=null&&M.isHidden?0:ne()&&M&&je(h,M.depth)?N:R},measureElement:C=>{const M=C.getBoundingClientRect().height;return M>0?M:ze.options.estimateSize(Number(C.dataset.index))},overscan:3,observeElementRect:st.observeElementRect,observeElementOffset:st.observeElementOffset,scrollToFn:st.elementScroll,onChange:()=>e.requestUpdate()});e.onCleanup(ze._didMount());const at=C=>{r=C??null,C&&(ze._willUpdate(),e.requestUpdate())},zt=(C,M)=>{if(!C||M!==h)return;const q=C.getBoundingClientRect().height;q>0&&(N=q)},He=C=>C.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Ke=(C,M)=>{if(!i||!je(h,M))return[{part:C,highlight:!1}];const q=new RegExp(`(${He(i)})`,"gi");return C.split(q).map(ie=>({part:ie,highlight:i.toLowerCase()===ie.toLowerCase()}))};let Tt=E();const Yt=C=>{const{index:M,item:q,start:ie,isSelected:ue,isIndeterminate:ve,isDisabled:we,isFocused:Re}=C;if(q.isHidden)return s.nothing;const tt=e.props,Ye=q.depth,Ze=je(h,Ye),dt=b(),lt=Ie=>{Ye!==h?Ne(q,Ie):Pe(q.code)},ut=Ie=>{dt?Te(q,M,Ie,ue&&We(q)):lt(Ie)},Ct=()=>{he(q,M,{},ue&&We(q))},At=Ze?"하나만":"그룹만";return s.html`<div
|
|
1495
|
+
data-index=${M}
|
|
1496
|
+
${Y.ref(Ie=>{Ie&&(ze.measureElement(Ie),zt(Ie,Ye))})}
|
|
1497
|
+
style=${te.styleMap({transform:`translateY(${ie}px)`})}
|
|
1498
|
+
class=${V("list-box-item virtual-row tree-item",{"list-selected":ue,"moz-multi-focus":Re,"is-selected":ue,"single-select-item":!dt&&Ze,"multi-select-item":dt})}
|
|
1447
1499
|
>
|
|
1448
1500
|
<div
|
|
1449
|
-
class=${V("depth-indicator",{"depth-indicator--parent":!
|
|
1450
|
-
style=${
|
|
1451
|
-
@click=${
|
|
1501
|
+
class=${V("depth-indicator",{"depth-indicator--parent":!Ze,"depth-indicator--last-depth":Ze,"depth-indicator--custom-item":ne()})}
|
|
1502
|
+
style=${te.styleMap({"--depth":String(Ye),"--last-depth-item-height":String(N)})}
|
|
1503
|
+
@click=${Ie=>{dt||lt(Ie)}}
|
|
1452
1504
|
></div>
|
|
1453
|
-
<div class="item-content" @click=${
|
|
1454
|
-
${
|
|
1505
|
+
<div class="item-content" @click=${ut}>
|
|
1506
|
+
${Ze?s.nothing:s.html`<button
|
|
1455
1507
|
type="button"
|
|
1456
1508
|
class="icon-container"
|
|
1457
|
-
aria-expanded=${
|
|
1458
|
-
aria-label=${
|
|
1459
|
-
@click=${
|
|
1509
|
+
aria-expanded=${q.isExpanded?"true":"false"}
|
|
1510
|
+
aria-label=${q.isExpanded?e.locale.TreeSelect.collapse:e.locale.TreeSelect.expand}
|
|
1511
|
+
@click=${Ie=>Ne(q,Ie)}
|
|
1460
1512
|
>
|
|
1461
|
-
${e.slots.has("icon")?e.slot("icon"):
|
|
1513
|
+
${e.slots.has("icon")?e.slot("icon"):q.isExpanded?Ii("var(--moz-color-accent)",14):Di("var(--moz-color-text-subtle)",14)}
|
|
1462
1514
|
</button>`}
|
|
1463
|
-
${dt?qt({checked:ue,disabled:we,indeterminate:
|
|
1515
|
+
${dt?qt({checked:ue,disabled:we,indeterminate:ve,onChange:Ct}):s.nothing}
|
|
1464
1516
|
<div class="highlight-container">
|
|
1465
|
-
${
|
|
1517
|
+
${ne()&&Ze?e.slot("list-item",{text:{text:Q(q),depth:Ye},item:q,highlightText:Ke(Q(q),Ye)}):s.html`${Ke(Q(q),Ye).map(Ie=>s.html`<span class=${V({highlight:Ie.highlight})}>${Ie.part}</span>`)}`}
|
|
1466
1518
|
</div>
|
|
1467
|
-
${!dt&&ue&&
|
|
1468
|
-
${dt&&tt.useSpecificSelect&&!we?s.html`<button type="button" class="item-only item-only-btn" @click=${
|
|
1519
|
+
${!dt&&ue&&Ze?Ps("14","var(--moz-color-accent)",!1,"icon-check"):s.nothing}
|
|
1520
|
+
${dt&&tt.useSpecificSelect&&!we?s.html`<button type="button" class="item-only item-only-btn" @click=${Ie=>be(q,M,Ie)}>
|
|
1469
1521
|
${At}
|
|
1470
1522
|
</button>`:s.nothing}
|
|
1471
1523
|
</div>
|
|
1472
|
-
</div>`};return{api:{validate:
|
|
1524
|
+
</div>`};return{api:{validate:Fe,setOpen:C=>{L||C&&e.props.disabled||le(C,!1)},isOpen:()=>!L&&P},render(){const C=e.props;(C.itemsSource!==z||a()!==W)&&(z=C.itemsSource,W=a(),Z());const M=E();M!==Tt&&(Tt=M,typeof M!="string"&&de(x()));const q=typeof C.width=="number"?`${De(C.width)}rem`:C.width,ie=e.slots.has("icon")?e.slot("icon",{isOpen:P}):P?xs("14","var(--moz-color-accent)"):Ms("14","var(--moz-color-text-subtle)",C.disabled),ue=ye(C,_i),{aria:ve,dom:we}=Wt(ue);return s.html`
|
|
1473
1525
|
<div
|
|
1474
|
-
${
|
|
1475
|
-
class=${V("moz-multi-select moz-tree-select",
|
|
1476
|
-
style=${
|
|
1477
|
-
${
|
|
1526
|
+
${fe(we)}
|
|
1527
|
+
class=${V("moz-multi-select moz-tree-select",C.class,{"is-invalid":Be()!=="","is-open":P,disabled:!!C.disabled})}
|
|
1528
|
+
style=${te.styleMap({width:q,...Ce(C.style)})}
|
|
1529
|
+
${Y.ref(t)}
|
|
1478
1530
|
>
|
|
1479
1531
|
<div class="input-wrapper">
|
|
1480
|
-
${
|
|
1481
|
-
<div class="moz-input-container" @click=${
|
|
1532
|
+
${C.label?Xe({},s.html`${C.label}${C.required?s.html`<span class="require-mark">*</span>`:s.nothing}`):s.nothing}
|
|
1533
|
+
<div class="moz-input-container" @click=${ce} ${Y.ref(o)}>
|
|
1482
1534
|
<input
|
|
1483
|
-
.value=${
|
|
1484
|
-
placeholder=${Ee.ifDefined(
|
|
1535
|
+
.value=${qe()}
|
|
1536
|
+
placeholder=${Ee.ifDefined(C.placeholder??void 0)}
|
|
1485
1537
|
autocomplete="off"
|
|
1486
1538
|
readonly
|
|
1487
1539
|
tabindex="-1"
|
|
@@ -1489,101 +1541,101 @@
|
|
|
1489
1541
|
<button
|
|
1490
1542
|
type="button"
|
|
1491
1543
|
class="icon-container"
|
|
1492
|
-
${
|
|
1544
|
+
${fe(ve)}
|
|
1493
1545
|
role="combobox"
|
|
1494
1546
|
aria-haspopup="tree"
|
|
1495
1547
|
aria-expanded=${P?"true":"false"}
|
|
1496
|
-
aria-label=${Ee.ifDefined(
|
|
1497
|
-
?disabled=${!!
|
|
1498
|
-
${
|
|
1548
|
+
aria-label=${Ee.ifDefined(ve["aria-label"]??C.label)}
|
|
1549
|
+
?disabled=${!!C.disabled}
|
|
1550
|
+
${Y.ref(l)}
|
|
1499
1551
|
>
|
|
1500
|
-
${
|
|
1552
|
+
${ie}
|
|
1501
1553
|
</button>
|
|
1502
1554
|
</div>
|
|
1503
1555
|
</div>
|
|
1504
|
-
${
|
|
1556
|
+
${Be()!==""?s.html`<span class="moz-input-invalid-message">${Be()}</span>`:s.nothing}
|
|
1505
1557
|
</div>
|
|
1506
|
-
`},renderPortal(){if(!P)return s.nothing;const
|
|
1507
|
-
class=${V("list-box moz-tree-select-list",{"no-label":!
|
|
1508
|
-
style=${
|
|
1509
|
-
${
|
|
1558
|
+
`},renderPortal(){if(!P)return s.nothing;const C=e.props,M=A(),q=nt()&&_.length>0&&M.length>0,ie=M.length===0||q?0:X,ue=M.length===0?0:X;(ze.options.count!==M.length||ze.options.paddingStart!==ie||ze.options.paddingEnd!==ue)&&ze.setOptions({...ze.options,count:M.length,paddingStart:ie,paddingEnd:ue}),ze._willUpdate();const ve=ze.getTotalSize(),we=D(),Re=ze.getVirtualItems(),tt=po(Re,M.length,R,r).map(lt=>{if(lt.index>=M.length)return null;const ut=M[lt.index];if(!ut)return null;let Ct=Ue(ut,we),At=!1;if(b()&&!je(h,ut.depth)){const Ie=Bt(J,ut);if(Ie.length>0){const zo=Ie.reduce((gn,vn)=>gn+(we.has(vn.code)?1:0),0);zo===0?Ct=!1:zo<Ie.length?(Ct=!0,At=!0):Ct=!0}}return{index:lt.index,item:ut,start:lt.start+(Re.length===0?ie:0),isSelected:Ct,isIndeterminate:At,isDisabled:Xt(ut),isFocused:f(ut)}}).filter(lt=>lt!==null),Ye=i?e.locale.TreeSelect.selectFiltered:e.locale.TreeSelect.selectAll,Ze=E(),dt=Array.isArray(Ze)?Ze.length:Ze?1:0;return s.html`<div
|
|
1559
|
+
class=${V("list-box moz-tree-select-list",{"no-label":!C.label,"show-top":y},C.class)}
|
|
1560
|
+
style=${te.styleMap({...I,...se})}
|
|
1561
|
+
${Y.ref(n)}
|
|
1510
1562
|
>
|
|
1511
1563
|
<div class="filter-input-wrapper">
|
|
1512
|
-
${
|
|
1564
|
+
${C.useFilter?s.html`<div class="filter-input">
|
|
1513
1565
|
<div class="search-icon">${lo("12","var(--moz-color-text-subtle)")}</div>
|
|
1514
|
-
<input placeholder=${e.locale.TreeSelect.search} @input=${
|
|
1566
|
+
<input placeholder=${e.locale.TreeSelect.search} @input=${_e} ${Y.ref(c)} />
|
|
1515
1567
|
</div>`:s.nothing}
|
|
1516
1568
|
<div class="tree-controls">
|
|
1517
|
-
<span class="control-btn" @click=${()=>
|
|
1518
|
-
<span class="control-btn" @click=${()=>
|
|
1569
|
+
<span class="control-btn" @click=${()=>Le(!0)}>${Vi("currentColor")}</span>
|
|
1570
|
+
<span class="control-btn" @click=${()=>Le(!1)}>${Oi("currentColor")}</span>
|
|
1519
1571
|
</div>
|
|
1520
1572
|
</div>
|
|
1521
1573
|
|
|
1522
|
-
${
|
|
1574
|
+
${nt()&&_.length>0&&M.length>0?s.html`<div class=${V("list-box-item multi-select-item multi-select-all",{"is-scrolled":p})} @click=${ct}>
|
|
1523
1575
|
<div class="select-all-content">
|
|
1524
|
-
${qt({indeterminate:dt>0&&
|
|
1576
|
+
${qt({indeterminate:dt>0&&Qe()===!1,checked:Je()})}
|
|
1525
1577
|
<div><span title=${Ye}>${Ye}</span></div>
|
|
1526
1578
|
</div>
|
|
1527
|
-
${
|
|
1579
|
+
${i&&M.length>0?s.html`<button type="button" class="item-only" @click=${Oe}>${e.locale.TreeSelect.specificResults}</button>`:s.nothing}
|
|
1528
1580
|
</div>`:s.nothing}
|
|
1529
1581
|
|
|
1530
|
-
<div class="list-box-container" @scroll=${
|
|
1531
|
-
<div class="inner-container" style=${
|
|
1532
|
-
${tt.map(
|
|
1582
|
+
<div class="list-box-container" @scroll=${rt} ${Y.ref(at)}>
|
|
1583
|
+
<div class="inner-container" style=${te.styleMap({height:`${ve}px`})}>
|
|
1584
|
+
${tt.map(lt=>Yt(lt))}
|
|
1533
1585
|
</div>
|
|
1534
|
-
${
|
|
1586
|
+
${M.length<=0?s.html`<div style=${te.styleMap({paddingTop:`${X}px`,paddingBottom:`${X}px`})}>
|
|
1535
1587
|
<div class="list-box-item loading not-hover">
|
|
1536
1588
|
${e.slots.has("empty")?e.slot("empty"):e.locale.TreeSelect.noData}
|
|
1537
1589
|
</div>
|
|
1538
1590
|
</div>`:s.nothing}
|
|
1539
1591
|
</div>
|
|
1540
1592
|
|
|
1541
|
-
${
|
|
1593
|
+
${b()?s.html`<div class="list-footer">
|
|
1542
1594
|
<label class="footer-checkbox">
|
|
1543
|
-
${qt({checked:
|
|
1595
|
+
${qt({checked:F,onChange:mt,class:"moz-checkbox"})}
|
|
1544
1596
|
<span>${e.locale.TreeSelect.showSelectedOnly}</span>
|
|
1545
1597
|
</label>
|
|
1546
1598
|
</div>`:s.nothing}
|
|
1547
|
-
</div>`}}}}),
|
|
1599
|
+
</div>`}}}}),Hi={name:"MozTreeSelect",core:_s,booleanProps:["disabled","readonly","required","useFilter","useMultiSelect","useSelectAll","useSpecificSelect"],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},Ui=new Set(["panes","direction","resizable","minSize","class","style"]),Ho=(e,t)=>e===void 0?t:typeof e=="number"?`${e}px`:e,Hs=$e({name:"moz-split-pane",defaults:{horizontal:!1,panes:[]},setup(e){let t=null,o=null;const n=[],l=[],c=[],r=[];let h=[],d=!1,b=0,a=0,m=-1,u=-1,E=-1,x=null,$=null,P=0;const L=()=>!!e.props.horizontal,g=()=>e.props.panes??[],i=()=>{h=g().map(N=>N.hidden?"0":N.size!=null?String(N.size):"1fr")};i();const p=N=>L()?N.clientHeight:N.clientWidth,y=()=>p(c[u]),F=()=>p(r[u]),I=()=>p(c[E]),K=()=>p(r[E]),oe=N=>{if(!d)return;let ne=L()?N.movementY:N.movementX;x=+(ne>0),x!==$&&$!==null&&(u=m,E=m+1),$=x;const _=l[m].getBoundingClientRect(),J=L()?N.clientY-_.top+window.scrollY:N.clientX-_.left+window.scrollX;(x===0&&J>10||x===1&&J<-10)&&(ne=ne/(Math.abs(J)/10)),(x===0&&L()?N.clientY<_.top:N.clientX<_.left)&&(P=0),(x===1&&L()?N.clientY>_.top:N.clientX>_.left)&&(P=0);const z=G=>n[G][L()?"clientHeight":"clientWidth"];if(b=z(u)+ne,a=z(E)+z(u)-b,!(b>y()&&b<F()||b<y()&&x===1||b>y()&&x===0)){if(b<y()){if(u-1<0&&x===0){P+=L()?N.movementY:N.movementX;return}u=u-1>=0?u-1:0}else if(b>F()){if(u-1<0){P+=L()?N.movementY:N.movementX;return}u=u-1>=0?u-1:0}}if(!(a>I()&&a<K()||a<I()&&x===0||a>I()&&x===1)){if(a<I()){if(E+1>=h.length){P+=L()?N.movementY:N.movementX;return}E=E+1<h.length?E+1:h.length-1}else if(a>K()){if(E+1>=h.length){P+=L()?N.movementY:N.movementX;return}E=E+1<h.length?E+1:h.length-1}}if(x===0&&P>0||x===1&&P<0||x===0&&a>K()||x===1&&a<I()||x===0&&b<y()||x===1&&b>F())return;const W=t[L()?"clientHeight":"clientWidth"],Z=z(u)+ne;h[u]=`clamp(${y()}px, ${Z/W*100}%, ${F()}px)`,h[E]="1fr",e.requestUpdate(),queueMicrotask(()=>{const G=z(E);h[E]=`clamp(${I()}px, ${G/W*100}%, ${K()}px)`,e.requestUpdate()})},re=()=>{m=-1,u=-1,E=-1,d=!1,P=0,document.removeEventListener("mousemove",oe),document.removeEventListener("mouseup",re),e.requestUpdate()},j=N=>{N.preventDefault(),d=!0,L()?N.clientY:N.clientX,document.addEventListener("mousemove",oe),document.addEventListener("mouseup",re),e.requestUpdate()},k=(N,ne)=>{m=ne,u=ne,E=ne+1,P=0,j(N)};let R=null;const X=()=>{t&&o&&(o.style.width=`${t.clientWidth}px`,o.style.height=`${t.clientHeight}px`)};e.onCleanup(()=>{document.removeEventListener("mouseup",re),document.removeEventListener("mousemove",oe),R==null||R.disconnect()});let se=e.props.panes;return{onMounted:()=>{i(),e.requestUpdate()},render(){const N=g();e.props.panes!==se&&(se=e.props.panes,queueMicrotask(()=>{i(),e.requestUpdate()}));const ne=L()?"gridTemplateRows":"gridTemplateColumns",_=N.length-1,J=ye(e.props,Ui);return s.html`
|
|
1548
1600
|
<div
|
|
1549
|
-
${
|
|
1601
|
+
${fe(J)}
|
|
1550
1602
|
class=${V("splitter",e.props.class)}
|
|
1551
|
-
style=${
|
|
1552
|
-
${
|
|
1603
|
+
style=${te.styleMap({display:"grid",[ne]:h.join(" "),width:"100%",height:"100%",overflow:"hidden",cursor:d?L()?"row-resize":"col-resize":"unset"})}
|
|
1604
|
+
${Y.ref(z=>{t=z??null,t&&o&&(X(),!R&&typeof ResizeObserver<"u"&&(R=new ResizeObserver(()=>X()),R.observe(t)))})}
|
|
1553
1605
|
>
|
|
1554
|
-
${
|
|
1555
|
-
style=${
|
|
1556
|
-
${
|
|
1606
|
+
${N.map((z,W)=>{const Z=W===_?"100%":h[W+1]!=="0"?"calc(100% - 10px) 10px":"100%";return s.html`<div
|
|
1607
|
+
style=${te.styleMap({display:"grid",[ne]:Z,overflow:"hidden"})}
|
|
1608
|
+
${Y.ref(G=>{n[W]=G??null})}
|
|
1557
1609
|
>
|
|
1558
|
-
<div style="width: 100%; height: 100%; overflow: hidden">${e.slot(`pane-${
|
|
1559
|
-
${
|
|
1560
|
-
class=${
|
|
1610
|
+
<div style="width: 100%; height: 100%; overflow: hidden">${e.slot(`pane-${W}`)}</div>
|
|
1611
|
+
${W!==_&&h[W+1]!=="0"?s.html`<div
|
|
1612
|
+
class=${L()?"resizer resizer-horizontal":"resizer resizer-vertical"}
|
|
1561
1613
|
role="separator"
|
|
1562
|
-
aria-orientation=${
|
|
1614
|
+
aria-orientation=${L()?"horizontal":"vertical"}
|
|
1563
1615
|
aria-label=${e.locale.SplitPane.resizeHandle}
|
|
1564
1616
|
tabindex="0"
|
|
1565
|
-
@mousedown=${G
|
|
1566
|
-
${
|
|
1617
|
+
@mousedown=${G=>k(G,W)}
|
|
1618
|
+
${Y.ref(G=>{l[W]=G??null})}
|
|
1567
1619
|
></div>`:s.nothing}
|
|
1568
1620
|
</div>`})}
|
|
1569
1621
|
|
|
1570
1622
|
<div
|
|
1571
1623
|
style="pointer-events: none; position: fixed"
|
|
1572
|
-
${
|
|
1624
|
+
${Y.ref(z=>{o=z??null,t&&o&&X()})}
|
|
1573
1625
|
>
|
|
1574
|
-
${
|
|
1626
|
+
${N.map((z,W)=>{const Z=Ho(z.minSize,"10px"),G=Ho(z.maxSize,"100%");return s.html`<div
|
|
1575
1627
|
class="size-calculator min-size"
|
|
1576
|
-
style=${
|
|
1577
|
-
${
|
|
1628
|
+
style=${te.styleMap({width:Z,height:Z})}
|
|
1629
|
+
${Y.ref(Q=>{c[W]=Q??null})}
|
|
1578
1630
|
></div>
|
|
1579
1631
|
<div
|
|
1580
1632
|
class="size-calculator max-size"
|
|
1581
|
-
style=${
|
|
1582
|
-
${
|
|
1633
|
+
style=${te.styleMap({width:G,height:G})}
|
|
1634
|
+
${Y.ref(Q=>{r[W]=Q??null})}
|
|
1583
1635
|
></div>`})}
|
|
1584
1636
|
</div>
|
|
1585
1637
|
</div>
|
|
1586
|
-
`}}}}),
|
|
1638
|
+
`}}}}),Wi={name:"MozSplitPane",core:Hs,booleanProps:["horizontal"],props:["horizontal","panes"],emits:[],slots:["pane-0","pane-1","pane-2","pane-3","pane-4","pane-5","pane-6","pane-7"],expose:!1};function Ki(e="currentColor",t=14){return s.html`<svg width=${t} height=${t} viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1587
1639
|
<path
|
|
1588
1640
|
d="M12.25 12.25V3.8436L10.163 1.75H1.75V12.25H12.25ZM12.4448 14H1.55615C0.7002 14 0 13.3001 0 12.4446V1.55617C0 0.70013 0.69238 0 1.55615 0H10.2432C10.6558 0 11.0522 0.16353 11.3481 0.46009L13.5415 2.66039C13.8364 2.94828 14 3.34501 14 3.75673V12.4446C14 13.3001 13.3003 14 12.4448 14Z"
|
|
1589
1641
|
fill=${e}
|
|
@@ -1598,7 +1650,7 @@
|
|
|
1598
1650
|
d="M4.75 9.75V12.25H9.25V9.75H4.75ZM3.29289 8.29289C3.48043 8.10536 3.73478 8 4 8H10C10.2652 8 10.5196 8.10536 10.7071 8.29289C10.8946 8.48043 11 8.73479 11 9V14H3V9C3 8.73478 3.10536 8.48043 3.29289 8.29289Z"
|
|
1599
1651
|
fill=${e}
|
|
1600
1652
|
></path>
|
|
1601
|
-
</svg>`}function
|
|
1653
|
+
</svg>`}function Zi(e="currentColor",t=14){return s.html`<svg xmlns="http://www.w3.org/2000/svg" width=${t} height=${t} viewBox="0 0 14 14" fill="none">
|
|
1602
1654
|
<g clip-path="url(#clip0_16945_2363)">
|
|
1603
1655
|
<path
|
|
1604
1656
|
d="M10.8 5.2998H3.2C2.8134 5.2998 2.5 5.61321 2.5 5.9998V12.3998C2.5 12.7864 2.8134 13.0998 3.2 13.0998H10.8C11.1866 13.0998 11.5 12.7864 11.5 12.3998V5.9998C11.5 5.61321 11.1866 5.2998 10.8 5.2998Z"
|
|
@@ -1614,7 +1666,7 @@
|
|
|
1614
1666
|
<defs>
|
|
1615
1667
|
<clipPath id="clip0_16945_2363"><rect width="14" height="14" fill=${e}></rect></clipPath>
|
|
1616
1668
|
</defs>
|
|
1617
|
-
</svg>`}function
|
|
1669
|
+
</svg>`}function Gi(e="currentColor",t=14){return s.html`<svg xmlns="http://www.w3.org/2000/svg" width=${t} height=${t} viewBox="0 0 14 14">
|
|
1618
1670
|
<path d="M0,0H14V14H0Z" fill="none"></path>
|
|
1619
1671
|
<line
|
|
1620
1672
|
y2="10"
|
|
@@ -1632,54 +1684,54 @@
|
|
|
1632
1684
|
stroke-linecap="round"
|
|
1633
1685
|
stroke-width="1.8"
|
|
1634
1686
|
></line>
|
|
1635
|
-
</svg>`}function
|
|
1687
|
+
</svg>`}function Yi(e="currentColor",t=14){return s.html`<svg xmlns="http://www.w3.org/2000/svg" width=${t} height=${t} viewBox="0 0 14 14" fill="none">
|
|
1636
1688
|
<path
|
|
1637
1689
|
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"
|
|
1638
1690
|
fill=${e}
|
|
1639
1691
|
></path>
|
|
1640
|
-
</svg>`}function
|
|
1692
|
+
</svg>`}function ji(e="currentColor",t=14){return s.html`<svg xmlns="http://www.w3.org/2000/svg" width=${t} height=${t} viewBox="0 0 14 14" fill="none">
|
|
1641
1693
|
<path
|
|
1642
1694
|
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"
|
|
1643
1695
|
fill=${e}
|
|
1644
1696
|
></path>
|
|
1645
|
-
</svg>`}const
|
|
1697
|
+
</svg>`}const Xi=new Set(["navigations","containerStyle","headerStyle","class","style"]);function Qi(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 Ji(e){switch(e){case"IconSave":return Ki();case"IconTrash":return Zi();case"IconPlus":return Gi();case"IconSearch":return Yi();case"IconPlay":return ji();default:return s.html``}}const Us=$e({name:"moz-controller",defaults:{height:66,showFilterButton:!1,showFavorite:!0,showPreset:!0},setup(e){var a,m;(m=(a=e.props).setControlHeight)==null||m.call(a,e.props.height??66);let t=!!e.props.showFilterButton,o=!1;const n=()=>e.controlled("customQueryParamsPanel")?!!e.props.customQueryParamsPanel:o;let l=null,c=!1;const r=ot("switch_"),h=ot("switch_"),d=u=>{t=u.target.checked,e.requestUpdate()},b=u=>{const E=u.target.checked;o=E,e.emit("update:customQueryParamsPanel",E),e.requestUpdate()};return{onMounted(){l=document.querySelector(".moz-contents-container"),c=!!l,c&&e.requestUpdate()},getPortalContainer:()=>l,renderPortal(){return!c||!e.slots.has("custom-filter")?s.nothing:s.html`<div style=${te.styleMap({display:n()?void 0:"none"})}>
|
|
1646
1698
|
${e.slot("custom-filter")}
|
|
1647
|
-
</div>`},render(){const
|
|
1699
|
+
</div>`},render(){const u=e.props,E=e.slots.has("custom-filter"),x=e.slots.has("action"),$=u.actions??[],P=$.find(i=>i.loading===!0),L=$.map(i=>{const p=Qi(i),y=!!P&&i.action!==P.action||!!i.disabled;return{...i,icon:p,disabled:y}}),g=ye(u,Xi);return s.html`
|
|
1648
1700
|
<div
|
|
1649
|
-
class=${V("moz-controller-root",
|
|
1650
|
-
style=${
|
|
1651
|
-
${
|
|
1701
|
+
class=${V("moz-controller-root",u.class)}
|
|
1702
|
+
style=${te.styleMap(Ce(u.containerStyle))}
|
|
1703
|
+
${fe(g)}
|
|
1652
1704
|
>
|
|
1653
|
-
<div class="moz-controller" style=${
|
|
1654
|
-
${
|
|
1705
|
+
<div class="moz-controller" style=${te.styleMap(Ce(u.headerStyle))}>
|
|
1706
|
+
${u.navigations?wo({itemSource:u.navigations,showFavorite:!1,ariaLabel:e.locale.BreadCrumb.navigation}):s.nothing}
|
|
1655
1707
|
<div class="spacer"></div>
|
|
1656
1708
|
|
|
1657
1709
|
<div class="moz-controller-actions">
|
|
1658
1710
|
${e.slot("beforeFilter")}
|
|
1659
|
-
${
|
|
1660
|
-
${
|
|
1661
|
-
${
|
|
1711
|
+
${u.showFilterButton&&!E?Ht({id:r,model:t,label:e.locale.Controller.filterLabel,onChange:d}):s.nothing}
|
|
1712
|
+
${u.showFilterButton&&E?Ht({id:h,model:n(),label:e.locale.Controller.filterLabel,onChange:b}):s.nothing}
|
|
1713
|
+
${u.showFilterButton?s.html`<div class="spacer between-buttons" style="margin: 0 6px"></div>`:s.nothing}
|
|
1662
1714
|
${e.slot("action")}
|
|
1663
|
-
${L
|
|
1664
|
-
${
|
|
1715
|
+
${x&&L.length>0?s.html`<div class="spacer between-buttons"></div>`:s.nothing}
|
|
1716
|
+
${L.map(i=>kt({action:i.action,text:i.text,disabled:i.disabled,loading:i.loading,width:i.text?void 0:30,style:{padding:i.text?void 0:"0"}},{icon:Ji(i.icon),onClick:()=>{i.click&&i.click()},rest:{title:i.action}}))}
|
|
1665
1717
|
</div>
|
|
1666
1718
|
</div>
|
|
1667
1719
|
|
|
1668
|
-
${t&&!
|
|
1720
|
+
${t&&!E?s.html`<div
|
|
1669
1721
|
class="moz-horizontal-filter moz-controller-filter"
|
|
1670
|
-
style=${
|
|
1722
|
+
style=${te.styleMap(Ce(u.filterStyle))}
|
|
1671
1723
|
>
|
|
1672
1724
|
${e.slot("filter")}
|
|
1673
1725
|
</div>`:s.nothing}
|
|
1674
1726
|
</div>
|
|
1675
|
-
`}}}}),
|
|
1727
|
+
`}}}}),er={name:"MozController",core:Us,booleanProps:["customQueryParamsPanel","showFavorite","showFilterButton","showPreset"],props:["height","setControlHeight","showFilterButton","actions","containerStyle","headerStyle","filterStyle","showFavorite","showPreset","navigations","customQueryParamsPanel"],emits:["update:customQueryParamsPanel"],slots:["beforeFilter","action","filter","custom-filter"],expose:!1};class Po{constructor(t,o){Ve(this,"startedAt");Ve(this,"callback");Ve(this,"delay");Ve(this,"timer");Ve(this,"paused",!1);this.startedAt=Date.now(),this.callback=t,this.delay=o,this.timer=setTimeout(t,o)}pause(){this.stop(),this.delay-=Date.now()-this.startedAt,this.paused=!0}resume(){this.stop(),this.startedAt=Date.now(),this.paused=!1,this.timer=setTimeout(this.callback,this.delay)}remaining(){return this.paused?Math.max(0,this.delay):Math.max(0,this.delay-(Date.now()-this.startedAt))}stop(){clearTimeout(this.timer)}}function tr(e="var(--moz-color-on-accent)"){return s.html`<svg width="24" height="24" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1676
1728
|
<path
|
|
1677
1729
|
fill-rule="evenodd"
|
|
1678
1730
|
clip-rule="evenodd"
|
|
1679
1731
|
d="M15 30C23.2843 30 30 23.2843 30 15C30 6.71573 23.2843 0 15 0C6.71573 0 0 6.71573 0 15C0 23.2843 6.71573 30 15 30ZM12.8944 17.9373L10.6229 15.6658C10.1352 15.1781 9.35358 15.1781 8.86582 15.6658C8.37806 16.1536 8.37806 16.9352 8.86582 17.4229L12.0083 20.5654C12.496 21.0531 13.285 21.0532 13.7728 20.5656L21.7228 12.6231C22.2105 12.1353 22.2107 11.3536 21.7229 10.8658C21.2352 10.3781 20.4536 10.3781 19.9658 10.8658L12.8944 17.9373Z"
|
|
1680
1732
|
fill=${e}
|
|
1681
1733
|
></path>
|
|
1682
|
-
</svg>`}function
|
|
1734
|
+
</svg>`}function or(e="var(--moz-color-on-accent)"){return s.html`<svg width="24" height="24" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1683
1735
|
<mask id="mask0_6027_4458" style="mask-type: luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="30" height="30">
|
|
1684
1736
|
<path d="M30 0H0V30H30V0Z" fill="#FFF"></path>
|
|
1685
1737
|
</mask>
|
|
@@ -1689,14 +1741,14 @@
|
|
|
1689
1741
|
fill=${e}
|
|
1690
1742
|
></path>
|
|
1691
1743
|
</g>
|
|
1692
|
-
</svg>`}function
|
|
1744
|
+
</svg>`}function sr(e="var(--moz-color-on-accent)"){return s.html`<svg width="24" height="24" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1693
1745
|
<path
|
|
1694
1746
|
fill-rule="evenodd"
|
|
1695
1747
|
clip-rule="evenodd"
|
|
1696
1748
|
d="M30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0C23.2843 0 30 6.71573 30 15ZM14 7.6C14 7.26863 14.2686 7 14.6 7H16.4C16.7314 7 17 7.26863 17 7.6V17.4C17 17.7314 16.7314 18 16.4 18H14.6C14.2686 18 14 17.7314 14 17.4V7.6ZM14.6 20C14.2686 20 14 20.2686 14 20.6V22.4C14 22.7314 14.2686 23 14.6 23H16.4C16.7314 23 17 22.7314 17 22.4V20.6C17 20.2686 16.7314 20 16.4 20H14.6Z"
|
|
1697
1749
|
fill=${e}
|
|
1698
1750
|
></path>
|
|
1699
|
-
</svg>`}function
|
|
1751
|
+
</svg>`}function nr(e="var(--moz-color-on-accent)"){return s.html`<svg width="24" height="24" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1700
1752
|
<mask id="mask0_6027_4463" style="mask-type: luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="30" height="30">
|
|
1701
1753
|
<path d="M30 0H0V30H30V0Z" fill="#FFF"></path>
|
|
1702
1754
|
</mask>
|
|
@@ -1706,24 +1758,24 @@
|
|
|
1706
1758
|
fill=${e}
|
|
1707
1759
|
></path>
|
|
1708
1760
|
</g>
|
|
1709
|
-
</svg>`}const
|
|
1761
|
+
</svg>`}const lr=()=>s.html`
|
|
1710
1762
|
<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">
|
|
1711
1763
|
<path d="M18 6 6 18M6 6l12 12" />
|
|
1712
1764
|
</svg>
|
|
1713
|
-
`,
|
|
1765
|
+
`,Uo=new Set(["message","type","position","duration","dismissible","queue","pauseOnHover","onDismiss","class","style","inline","composed","showProgress","progressClass","exitDuration"]);function Wo(e){switch(e){case"success":return"bg-success";case"error":return"bg-error";case"info":return"bg-info";default:return"bg-warning"}}function ir(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 rr(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 ar(e){return e==="error"?or("var(--moz-color-on-accent)"):e==="info"?sr("var(--moz-color-on-accent)"):e==="success"?tr("var(--moz-color-on-accent)"):nr("var(--moz-color-on-accent)")}const Mo=$e({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,l=null,c=null,r=100;const h=()=>{let L=document.querySelector(".toast--top"),g=document.querySelector(".toast--bottom");L&&g||(L||(L=document.createElement("div"),L.className="toast--top moz-toast-body moz-toast-body--top",document.body.appendChild(L)),g||(g=document.createElement("div"),g.className="toast--bottom moz-toast-body moz-toast-body--bottom",document.body.appendChild(g)))},d=()=>{if(!e.props.queue)return!1;const L=document.querySelector(".toast--top"),g=document.querySelector(".toast--bottom");return!L||!g?!1:L.childElementCount>0||g.childElementCount>0},b=()=>{c&&clearInterval(c),c=null},a=()=>{n&&n.stop(),l&&clearTimeout(l),b(),t=!1,e.requestUpdate(),setTimeout(()=>{var L,g;(g=(L=e.props).onDismiss)==null||g.call(L),o=!0,e.requestUpdate()},e.props.exitDuration??150)},m=()=>{if(!e.props.inline&&d()){l=setTimeout(m,250);return}t=!0,e.requestUpdate();const L=e.props.duration;L&&(n=new Po(a,L),e.props.showProgress&&(c=setInterval(()=>{r=n?Math.max(0,Math.min(100,n.remaining()/L*100)):0,e.requestUpdate()},50)))},u=L=>{!e.props.pauseOnHover||!n||(L?n.pause():n.resume())},E=()=>{e.props.dismissible&&a()};e.props.inline||h(),e.onCleanup(()=>{n&&n.stop(),l&&clearTimeout(l),b()});const x=()=>{const L=e.props,g=L.duration??0;return s.html`
|
|
1714
1766
|
<div
|
|
1715
1767
|
data-testid="toast-container"
|
|
1716
|
-
${
|
|
1717
|
-
role=${
|
|
1718
|
-
aria-live=${
|
|
1768
|
+
${fe(ye(L,Uo))}
|
|
1769
|
+
role=${L.type==="error"?"alert":"status"}
|
|
1770
|
+
aria-live=${L.type==="error"?"assertive":"polite"}
|
|
1719
1771
|
aria-atomic="true"
|
|
1720
|
-
class=${V("moz-toast","moz-toast-composed",
|
|
1772
|
+
class=${V("moz-toast","moz-toast-composed",Wo(L.type),L.class)}
|
|
1721
1773
|
style=${t?s.nothing:"display: none;"}
|
|
1722
|
-
@mouseenter=${()=>
|
|
1723
|
-
@mouseleave=${()=>
|
|
1774
|
+
@mouseenter=${()=>u(!0)}
|
|
1775
|
+
@mouseleave=${()=>u(!1)}
|
|
1724
1776
|
>
|
|
1725
|
-
${
|
|
1726
|
-
<div class=${V("moz-toast-progress-bar",
|
|
1777
|
+
${L.showProgress&&g>0?s.html`<div class="moz-toast-progress" aria-hidden="true">
|
|
1778
|
+
<div class=${V("moz-toast-progress-bar",L.progressClass)} style=${`width: ${r}%`}></div>
|
|
1727
1779
|
</div>`:s.nothing}
|
|
1728
1780
|
${e.slots.has("icon")?s.html`<div class="moz-toast-icon">${e.slot("icon")}</div>`:s.nothing}
|
|
1729
1781
|
<div class="moz-toast-content">
|
|
@@ -1731,148 +1783,128 @@
|
|
|
1731
1783
|
${e.slots.has("description")?s.html`<div class="moz-toast-description">${e.slot("description")}</div>`:s.nothing}
|
|
1732
1784
|
${e.slots.has("actions")?s.html`<div class="moz-toast-actions">${e.slot("actions")}</div>`:s.nothing}
|
|
1733
1785
|
</div>
|
|
1734
|
-
${
|
|
1735
|
-
${
|
|
1786
|
+
${L.dismissible?s.html`<button type="button" class="moz-toast-close" aria-label=${e.locale.Toast.close} @click=${a}>
|
|
1787
|
+
${lr()}
|
|
1736
1788
|
</button>`:s.nothing}
|
|
1737
1789
|
</div>
|
|
1738
|
-
`}
|
|
1790
|
+
`},$=()=>{const L=e.props;return s.html`
|
|
1739
1791
|
<div
|
|
1740
1792
|
data-testid="toast-container"
|
|
1741
|
-
${
|
|
1742
|
-
role=${
|
|
1743
|
-
aria-live=${
|
|
1793
|
+
${fe(ye(L,Uo))}
|
|
1794
|
+
role=${L.type==="error"?"alert":"status"}
|
|
1795
|
+
aria-live=${L.type==="error"?"assertive":"polite"}
|
|
1744
1796
|
aria-atomic="true"
|
|
1745
|
-
class=${V("moz-toast",
|
|
1797
|
+
class=${V("moz-toast",Wo(L.type),ir(L.position),L.class)}
|
|
1746
1798
|
style=${t?s.nothing:"display: none;"}
|
|
1747
|
-
@mouseenter=${()=>
|
|
1748
|
-
@mouseleave=${()=>
|
|
1749
|
-
@click=${
|
|
1799
|
+
@mouseenter=${()=>u(!0)}
|
|
1800
|
+
@mouseleave=${()=>u(!1)}
|
|
1801
|
+
@click=${E}
|
|
1750
1802
|
>
|
|
1751
|
-
${
|
|
1752
|
-
<div class=${V("moz-toast-progress-bar",
|
|
1803
|
+
${L.showProgress&&(L.duration??0)>0?s.html`<div class="moz-toast-progress" aria-hidden="true">
|
|
1804
|
+
<div class=${V("moz-toast-progress-bar",L.progressClass)} style=${`width: ${r}%`}></div>
|
|
1753
1805
|
</div>`:s.nothing}
|
|
1754
|
-
${
|
|
1755
|
-
<span class="toast-message">${
|
|
1806
|
+
${ar(L.type)}
|
|
1807
|
+
<span class="toast-message">${L.message}</span>
|
|
1756
1808
|
</div>
|
|
1757
|
-
`},P=()=>o?s.nothing:e.props.composed?
|
|
1809
|
+
`},P=()=>o?s.nothing:e.props.composed?x():$();return{onMounted(){m()},getPortalContainer:()=>e.props.inline?null:document.querySelector(rr(e.props.position)),renderPortal(){return e.props.inline?s.nothing:P()},render(){return e.props.inline?P():s.nothing}}}}),cr=e=>{var t;typeof e.remove<"u"?e.remove():(t=e.parentNode)==null||t.removeChild(e)},dr=(e={})=>{const t=o=>{let n;typeof o=="string"&&(n=o);const l=document.createElement("div");l.style.display="contents";const c={message:n||o.message||"",onDismiss:()=>{cr(l)}},r=Object.assign({},c,e,typeof o=="string"?{}:o);document.body.appendChild(l),Mo(l,r,(()=>{}))};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})}}},ur={name:"MozToast",core:Mo,booleanProps:["composed","dismissible","inline","pauseOnHover","queue","showProgress"],props:["message","type","position","duration","dismissible","queue","pauseOnHover","onDismiss","inline","composed","showProgress","progressClass","exitDuration"],emits:[],slots:["icon","heading","description","actions"],expose:!1,syncUpdate:!0},pr={name:"MozTooltip",core:So,booleanProps:["arrow","open"],props:["open","anchor","text","side","align","sideOffset","collisionPadding","arrow","appearance","sideAnchor","tooltipId"],emits:["placed"],slots:["content"],expose:!0},hr=new Set(["open","anchor","side","align","sideOffset","collisionPadding","matchTriggerWidth","trapFocus","popoverId","class","style"]),mr='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)},Ws=$e({name:"moz-popover",defaults:{open:!1,side:"bottom",align:"start",sideOffset:4,collisionPadding:8,trapFocus:!0,matchTriggerWidth:!1},setup(e){const t=Y.createRef();let o=null,n=null,l=!1,c=!1,r=null,h=null;const d=()=>!!e.props.open&&!!e.props.anchor,b=()=>{const i=t.value;return i?Array.from(i.querySelectorAll(mr)).filter(p=>p.getAttribute("aria-hidden")!=="true"):[]},a=()=>{const i=e.props.anchor,p=t.value;if(!i||!p||!e.props.open)return;const y=ys(i.getBoundingClientRect(),{width:p.offsetWidth,height:p.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&&l&&o.side===y.side&&o.x===y.x&&o.y===y.y&&o.availableHeight===y.availableHeight||(o=y,l=!0,e.requestUpdate(),n!==y.side&&(n=y.side,e.emit("placed",y.side)))},m=(i,p)=>new CustomEvent(i,{cancelable:!0,detail:p}),u=i=>{e.emit("requestClose",i)},E=i=>{e.emit("escapeKeyDown",i),i.defaultPrevented||u("escape")},x=i=>{if(!d()||!(r!=null&&r.isTopmost()))return;const p=t.value,y=i.target;if(!p||!y||p.contains(y))return;const F=m("moz.interactOutside",{originalEvent:i});e.emit("interactOutside",F),F.defaultPrevented||u("interactOutside")},$=i=>{if(i.key!=="Tab"||!e.props.trapFocus)return;const p=b();if(p.length===0){i.preventDefault();return}const y=p[0],F=p[p.length-1],I=document.activeElement;i.shiftKey&&(I===y||I===t.value)?(i.preventDefault(),F.focus()):!i.shiftKey&&I===F&&(i.preventDefault(),y.focus())},P=()=>{h=document.activeElement??null,r=mo(E),document.addEventListener("pointerdown",x,!0),Ko(()=>{var p;if(!d())return;const i=m("moz.openAutoFocus");e.emit("openAutoFocus",i),!i.defaultPrevented&&((p=b()[0]??t.value)==null||p.focus())})},L=()=>{var y;r==null||r.release(),r=null,document.removeEventListener("pointerdown",x,!0),o=null,n=null,l=!1;const i=m("moz.closeAutoFocus");e.emit("closeAutoFocus",i);const p=h??e.props.anchor;h=null,i.defaultPrevented||(y=p==null?void 0:p.focus)==null||y.call(p)},g=()=>{d()&&a()};return typeof window<"u"&&(window.addEventListener("scroll",g,{capture:!0,passive:!0}),window.addEventListener("resize",g,{passive:!0}),e.onCleanup(()=>{window.removeEventListener("scroll",g,!0),window.removeEventListener("resize",g),r==null||r.release(),r=null,document.removeEventListener("pointerdown",x,!0)})),{render(){return s.nothing},renderPortal(){var K;const i=e.props,p=d();if(p!==c&&(c=p,p?P():L()),!p)return s.nothing;Ko(a);const y=(o==null?void 0:o.side)??i.side??"bottom",F=ye(i,hr),I=((K=i.anchor)==null?void 0:K.offsetWidth)??0;return s.html`
|
|
1758
1810
|
<div
|
|
1759
|
-
${
|
|
1760
|
-
class=${V("moz-
|
|
1761
|
-
role="tooltip"
|
|
1762
|
-
id=${i.tooltipId??s.nothing}
|
|
1763
|
-
data-side=${c}
|
|
1764
|
-
data-align=${i.align??"center"}
|
|
1765
|
-
style=${ee.styleMap({...be(i.style),position:"fixed",left:`${(o==null?void 0:o.x)??0}px`,top:`${(o==null?void 0:o.y)??0}px`,opacity:l?"1":"0"})}
|
|
1766
|
-
${he(r)}
|
|
1767
|
-
>
|
|
1768
|
-
${i.arrow?s.html`<span
|
|
1769
|
-
class="moz-tooltip-arrow"
|
|
1770
|
-
data-side=${c}
|
|
1771
|
-
style=${ee.styleMap({[u]:`${(o==null?void 0:o.arrowOffset)??0}px`})}
|
|
1772
|
-
></span>`:s.nothing}
|
|
1773
|
-
<div class="moz-tooltip-content">
|
|
1774
|
-
${e.slots.has("content")?e.slot("content"):i.text??s.nothing}
|
|
1775
|
-
</div>
|
|
1776
|
-
</div>
|
|
1777
|
-
`},api:{reposition:()=>a()}}}}),lr={name:"MozTooltip",core:_s,booleanProps:["arrow","open"],props:["open","anchor","text","side","align","sideOffset","collisionPadding","arrow","tooltipId"],emits:["placed"],slots:["content"],expose:!0},ir=new Set(["open","anchor","side","align","sideOffset","collisionPadding","matchTriggerWidth","trapFocus","popoverId","class","style"]),rr='a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])',No=typeof requestAnimationFrame=="function"?e=>{requestAnimationFrame(e)}:e=>{setTimeout(e,0)},Us=$e({name:"moz-popover",defaults:{open:!1,side:"bottom",align:"start",sideOffset:4,collisionPadding:8,trapFocus:!0,matchTriggerWidth:!1},setup(e){const t=K.createRef();let o=null,n=null,l=!1,d=!1,a=null,f=null;const i=()=>!!e.props.open&&!!e.props.anchor,c=()=>{const h=t.value;return h?Array.from(h.querySelectorAll(rr)).filter(C=>C.getAttribute("aria-hidden")!=="true"):[]},r=()=>{const h=e.props.anchor,C=t.value;if(!h||!C||!e.props.open)return;const k=Ns(h.getBoundingClientRect(),{width:C.offsetWidth,height:C.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&&l&&o.side===k.side&&o.x===k.x&&o.y===k.y&&o.availableHeight===k.availableHeight||(o=k,l=!0,e.requestUpdate(),n!==k.side&&(n=k.side,e.emit("placed",k.side)))},u=(h,C)=>new CustomEvent(h,{cancelable:!0,detail:C}),p=h=>{e.emit("requestClose",h)},y=h=>{e.emit("escapeKeyDown",h),h.defaultPrevented||p("escape")},L=h=>{if(!i()||!(a!=null&&a.isTopmost()))return;const C=t.value,k=h.target;if(!C||!k||C.contains(k))return;const Z=u("moz.interactOutside",{originalEvent:h});e.emit("interactOutside",Z),Z.defaultPrevented||p("interactOutside")},D=h=>{if(h.key!=="Tab"||!e.props.trapFocus)return;const C=c();if(C.length===0){h.preventDefault();return}const k=C[0],Z=C[C.length-1],W=document.activeElement;h.shiftKey&&(W===k||W===t.value)?(h.preventDefault(),Z.focus()):!h.shiftKey&&W===Z&&(h.preventDefault(),k.focus())},P=()=>{f=document.activeElement??null,a=mo(y),document.addEventListener("pointerdown",L,!0),No(()=>{var C;if(!i())return;const h=u("moz.openAutoFocus");e.emit("openAutoFocus",h),!h.defaultPrevented&&((C=c()[0]??t.value)==null||C.focus())})},E=()=>{var k;a==null||a.release(),a=null,document.removeEventListener("pointerdown",L,!0),o=null,n=null,l=!1;const h=u("moz.closeAutoFocus");e.emit("closeAutoFocus",h);const C=f??e.props.anchor;f=null,h.defaultPrevented||(k=C==null?void 0:C.focus)==null||k.call(C)},g=()=>{i()&&r()};return typeof window<"u"&&(window.addEventListener("scroll",g,{capture:!0,passive:!0}),window.addEventListener("resize",g,{passive:!0}),e.onCleanup(()=>{window.removeEventListener("scroll",g,!0),window.removeEventListener("resize",g),a==null||a.release(),a=null,document.removeEventListener("pointerdown",L,!0)})),{render(){return s.nothing},renderPortal(){var Q;const h=e.props,C=i();if(C!==d&&(d=C,C?P():E()),!C)return s.nothing;No(r);const k=(o==null?void 0:o.side)??h.side??"bottom",Z=ye(h,ir),W=((Q=h.anchor)==null?void 0:Q.offsetWidth)??0;return s.html`
|
|
1778
|
-
<div
|
|
1779
|
-
${K.ref(t)}
|
|
1780
|
-
class=${V("moz-popover",h.class)}
|
|
1811
|
+
${Y.ref(t)}
|
|
1812
|
+
class=${V("moz-popover",i.class)}
|
|
1781
1813
|
role="dialog"
|
|
1782
|
-
id=${
|
|
1814
|
+
id=${i.popoverId??s.nothing}
|
|
1783
1815
|
tabindex="-1"
|
|
1784
|
-
data-side=${
|
|
1785
|
-
data-align=${
|
|
1786
|
-
@keydown=${
|
|
1787
|
-
style=${
|
|
1788
|
-
${
|
|
1816
|
+
data-side=${y}
|
|
1817
|
+
data-align=${i.align??"start"}
|
|
1818
|
+
@keydown=${$}
|
|
1819
|
+
style=${te.styleMap({...Ce(i.style),position:"fixed",left:`${(o==null?void 0:o.x)??0}px`,top:`${(o==null?void 0:o.y)??0}px`,opacity:l?"1":"0",pointerEvents:"auto","--moz-popover-trigger-width":`${I}px`,"--moz-popover-available-height":`${(o==null?void 0:o.availableHeight)??0}px`,...i.matchTriggerWidth?{width:`${I}px`}:{}})}
|
|
1820
|
+
${fe(F)}
|
|
1789
1821
|
>
|
|
1790
1822
|
${e.slot("content")}
|
|
1791
1823
|
</div>
|
|
1792
|
-
`},api:{reposition:()=>
|
|
1793
|
-
${
|
|
1794
|
-
class=${V("moz-collapsible-content",
|
|
1795
|
-
id=${Ee.ifDefined(
|
|
1796
|
-
data-state=${
|
|
1797
|
-
data-disabled=${
|
|
1798
|
-
?hidden=${!
|
|
1799
|
-
style=${
|
|
1800
|
-
${
|
|
1824
|
+
`},api:{reposition:()=>a(),panel:()=>t.value??null}}}}),fr={name:"MozPopover",core:Ws,booleanProps:["matchTriggerWidth","open","trapFocus"],props:["open","anchor","side","align","sideOffset","collisionPadding","matchTriggerWidth","trapFocus","popoverId"],emits:["placed","escapeKeyDown","interactOutside","openAutoFocus","closeAutoFocus","requestClose"],slots:["content"],expose:!0,syncUpdate:!0},gr=new Set(["open","contentId","disabled","forceMount","class","style"]),Ks="--moz-collapsible-content-height",Zs=$e({name:"moz-collapsible",defaults:{open:!1,disabled:!1,forceMount:!1},setup(e){let t=null,o=null,n=-1;const l=()=>{const h=t;if(!h)return;const d=h.scrollHeight;h.style.setProperty(Ks,`${d}px`),d!==n&&(n=d,e.emit("heightChange",d))},c=()=>{o==null||o.disconnect(),o=null},r=h=>{if(t=h??null,!t){c(),n=-1;return}l(),!(typeof ResizeObserver>"u")&&(c(),o=new ResizeObserver(()=>l()),o.observe(t))};return e.onCleanup(c),{render(){const h=e.props,d=!!h.open;if(!d&&!h.forceMount)return s.nothing;const b=ye(h,gr);return s.html`<div
|
|
1825
|
+
${Y.ref(r)}
|
|
1826
|
+
class=${V("moz-collapsible-content",h.class)}
|
|
1827
|
+
id=${Ee.ifDefined(h.contentId)}
|
|
1828
|
+
data-state=${d?"open":"closed"}
|
|
1829
|
+
data-disabled=${h.disabled?"":s.nothing}
|
|
1830
|
+
?hidden=${!d}
|
|
1831
|
+
style=${te.styleMap(Ce(h.style))}
|
|
1832
|
+
${fe(b)}
|
|
1801
1833
|
>
|
|
1802
1834
|
${e.slot("content")}
|
|
1803
|
-
</div>`}}}}),
|
|
1804
|
-
class=${V("moz-avatar",
|
|
1835
|
+
</div>`}}}}),vr={name:"MozCollapsible",core:Zs,booleanProps:["disabled","forceMount","open"],props:["open","contentId","disabled","forceMount"],emits:["heightChange"],slots:["content"],expose:!1,syncUpdate:!0},wr=new Set(["src","alt","delayMs","imageClass","fallbackClass","class","style"]),Gs=$e({name:"moz-avatar",setup(e){let t="idle",o,n=!0,l,c;const r=a=>{t!==a&&(t=a,e.emit("loadingStatusChange",a),e.requestUpdate())},h=()=>{c&&(c.onload=null,c.onerror=null,c=void 0)},d=a=>{if(l!==void 0&&clearTimeout(l),l=void 0,!a||a<=0){n=!0;return}n=!1,l=setTimeout(()=>{n=!0,l=void 0,e.requestUpdate()},a)},b=()=>{const a=e.props.src;if(a===o)return;if(o=a,h(),d(e.props.delayMs),!a){r("idle");return}r("loading");const m=new Image;c=m,m.onload=()=>{c!==m||o!==a||r("loaded")},m.onerror=()=>{c!==m||o!==a||r("error")},m.src=a};return e.onCleanup(()=>{h(),l!==void 0&&clearTimeout(l)}),{render(){b();const a=e.props,m=ye(a,wr),u=t==="loaded",E=!u&&n;return s.html`<span
|
|
1836
|
+
class=${V("moz-avatar",a.class)}
|
|
1805
1837
|
data-status=${t}
|
|
1806
|
-
style=${
|
|
1807
|
-
${
|
|
1838
|
+
style=${te.styleMap(Ce(a.style))}
|
|
1839
|
+
${fe(m)}
|
|
1808
1840
|
>
|
|
1809
|
-
${
|
|
1810
|
-
class=${V("moz-avatar-image",
|
|
1811
|
-
src=${Ee.ifDefined(
|
|
1812
|
-
alt=${Ee.ifDefined(
|
|
1841
|
+
${u?s.html`<img
|
|
1842
|
+
class=${V("moz-avatar-image",a.imageClass)}
|
|
1843
|
+
src=${Ee.ifDefined(a.src)}
|
|
1844
|
+
alt=${Ee.ifDefined(a.alt)}
|
|
1813
1845
|
/>`:s.nothing}
|
|
1814
|
-
${
|
|
1815
|
-
</span>`},api:{get status(){return t}}}}}),
|
|
1846
|
+
${E?s.html`<span class=${V("moz-avatar-fallback",a.fallbackClass)}>${e.slot("fallback")}</span>`:s.nothing}
|
|
1847
|
+
</span>`},api:{get status(){return t}}}}}),Cr={name:"MozAvatar",core:Gs,props:["src","alt","delayMs","imageClass","fallbackClass"],emits:["loadingStatusChange"],slots:["fallback"],expose:!0},br=new Set(["viewport","interactionRoot","scrollbarVisibility","orientation","scrollbarClass","thumbClass","class","style"]),yr=20,Ys=$e({name:"moz-scroll-area",defaults:{orientation:"vertical",scrollbarVisibility:"always"},setup(e){let t=null,o=null,n=null,l=null,c=null,r=!1,h=!1,d=null,b=null,a=null,m=null,u=null,E=!1,x=!1,$=null,P=null;const L=z=>!!z&&"nodeType"in z&&(!!(a!=null&&a.contains(z))||!!(m!=null&&m.contains(z))),g=()=>L((a==null?void 0:a.ownerDocument.activeElement)??null),i=()=>{const z=g();z!==x&&(x=z,e.requestUpdate())},p=z=>{m=z??null},y=z=>{z.pointerType!=="touch"&&(E=!0,e.requestUpdate())},F=z=>{z.pointerType!=="touch"&&(E=L(z.relatedTarget),e.requestUpdate())},I=()=>{i()},K=()=>{e.requestUpdate()},oe=()=>{$==null||$(),u==null||u.disconnect(),u=null,a==null||a.removeEventListener("pointerenter",y),a==null||a.removeEventListener("pointerleave",F),a==null||a.removeEventListener("focusin",I),a==null||a.removeEventListener("focusout",K),a=null,E=x=!1},re=()=>{(P==null?void 0:P.getAttribute("tabindex"))==="0"&&P.removeAttribute("tabindex"),P=null},j=()=>{var Z;const z=e.props.interactionRoot??t;z!==a&&(oe(),a=z,z&&(z.addEventListener("pointerenter",y),z.addEventListener("pointerleave",F),z.addEventListener("focusin",I),z.addEventListener("focusout",K)));const W=(Z=z==null?void 0:z.ownerDocument.defaultView)==null?void 0:Z.MutationObserver;e.props.scrollbarVisibility==="hover"&&z&&!u&&W?(u=new W(i),u.observe(z,{childList:!0,subtree:!0})):e.props.scrollbarVisibility!=="hover"&&(u==null||u.disconnect(),u=null),x=g(),e.props.scrollbarVisibility!=="hover"?re():t&&!t.hasAttribute("tabindex")&&(t.tabIndex=0,P=t)},k=z=>{const W=e.props.orientation??"vertical";return W==="both"||W===z},R=z=>{const W=t;if(!W||!k(z))return!1;const Z=z==="vertical",G=Z?W.scrollHeight:W.scrollWidth,Q=Z?W.clientHeight:W.clientWidth;if(G<=Q+1||Q<=0)return!1;const T=Z?l:c,f=Z?o:n;if(!T||!f)return!0;const D=Z?T.clientHeight:T.clientWidth;if(D<=0)return!0;const A=Q/G,H=Math.max(D*A,yr),pe=D-H,ke=Z?W.scrollTop:W.scrollLeft,Ae=G-Q,Ue=Ae>0?ke/Ae*pe:0;return Z?(f.style.height=`${H}px`,f.style.transform=`translateY(${Ue}px)`):(f.style.width=`${H}px`,f.style.transform=`translateX(${Ue}px)`),!0},X=()=>{const z=R("vertical"),W=R("horizontal");z===r&&W===h||(r=z,h=W,e.requestUpdate())},se=()=>{const z=t;z&&(X(),e.emit("scroll",{scrollTop:z.scrollTop,scrollLeft:z.scrollLeft}))},N=()=>{oe(),re(),t&&t.removeEventListener("scroll",se),d==null||d.disconnect(),d=null,b==null||b.disconnect(),b=null,t=null},ne=()=>{const z=e.props.viewport??null;if(z!==t&&(N(),t=z,!!t)){if(t.addEventListener("scroll",se,{passive:!0}),typeof ResizeObserver<"u"){d=new ResizeObserver(()=>X()),d.observe(t);const W=t.firstElementChild;W&&(b=new ResizeObserver(()=>X()),b.observe(W))}X()}},_=(z,W)=>{var Be;const Z=t,G=Z==null?void 0:Z.ownerDocument.defaultView;if(!Z||!G||$||W.button!==0)return;const Q=z==="vertical",T=Q?l:c,f=Q?o:n;if(!T||!f)return;W.preventDefault();const D=Q?W.clientY:W.clientX,A=Q?Z.scrollTop:Z.scrollLeft,H=Q?T.clientHeight:T.clientWidth,pe=Q?f.offsetHeight:f.offsetWidth,ke=Q?Z.scrollHeight:Z.scrollWidth,Ae=Q?Z.clientHeight:Z.clientWidth,Ue=H-pe,We=ke-Ae;if(Ue<=0||We<=0)return;const Qe=W.pointerId,Je=xe=>{E=xe.pointerType!=="touch"&&[a,l,c].some(Ge=>{if(!Ge||Ge.hidden)return!1;const Fe=Ge.getBoundingClientRect();return xe.clientX>=Fe.left&&xe.clientX<Fe.right&&xe.clientY>=Fe.top&&xe.clientY<Fe.bottom})},nt=xe=>{if(xe.pointerId!==Qe)return;Je(xe);const Ge=(Q?xe.clientY:xe.clientX)-D,Fe=A+Ge/Ue*We;Q?Z.scrollTop=Fe:Z.scrollLeft=Fe},qe=xe=>{xe.pointerId===Qe&&(Je(xe),xe.type!=="pointerup"&&(E=!1),$==null||$(),e.requestUpdate())};$=()=>{var xe;$=null,G.removeEventListener("pointermove",nt),G.removeEventListener("pointerup",qe),G.removeEventListener("pointercancel",qe),f.removeEventListener("lostpointercapture",qe);try{(xe=f.releasePointerCapture)==null||xe.call(f,Qe)}catch{}},G.addEventListener("pointermove",nt),G.addEventListener("pointerup",qe),G.addEventListener("pointercancel",qe),f.addEventListener("lostpointercapture",qe);try{(Be=f.setPointerCapture)==null||Be.call(f,Qe)}catch{}e.requestUpdate()};e.onCleanup(N);const J=(z,W)=>{const Z=z==="vertical",G=T=>{Z?l=T??null:c=T??null},Q=T=>{Z?o=T??null:n=T??null,T&&X()};return s.html`<div
|
|
1816
1848
|
class=${V("moz-scroll-area-scrollbar",e.props.scrollbarClass)}
|
|
1817
|
-
data-orientation=${
|
|
1818
|
-
?hidden=${!
|
|
1819
|
-
${
|
|
1849
|
+
data-orientation=${z}
|
|
1850
|
+
?hidden=${!W}
|
|
1851
|
+
${Y.ref(G)}
|
|
1820
1852
|
>
|
|
1821
1853
|
<div
|
|
1822
1854
|
class=${V("moz-scroll-area-thumb",e.props.thumbClass)}
|
|
1823
|
-
@pointerdown=${
|
|
1824
|
-
${
|
|
1855
|
+
@pointerdown=${T=>_(z,T)}
|
|
1856
|
+
${Y.ref(Q)}
|
|
1825
1857
|
></div>
|
|
1826
|
-
</div>`};return{render(){
|
|
1827
|
-
class=${V("moz-scroll-area-bars",
|
|
1828
|
-
data-orientation=${
|
|
1829
|
-
data-state=${
|
|
1830
|
-
style=${
|
|
1831
|
-
@pointerenter=${
|
|
1832
|
-
@pointerleave=${
|
|
1833
|
-
@focusin=${
|
|
1834
|
-
@focusout=${
|
|
1835
|
-
${
|
|
1836
|
-
${
|
|
1858
|
+
</div>`};return{render(){ne(),j();const z=e.props,W=ye(z,br),Z=k("vertical")&&k("horizontal");return s.html`<div
|
|
1859
|
+
class=${V("moz-scroll-area-bars",z.class)}
|
|
1860
|
+
data-orientation=${z.orientation??"vertical"}
|
|
1861
|
+
data-state=${z.scrollbarVisibility!=="hover"||E||x||$?"visible":"hidden"}
|
|
1862
|
+
style=${te.styleMap(Ce(z.style))}
|
|
1863
|
+
@pointerenter=${y}
|
|
1864
|
+
@pointerleave=${F}
|
|
1865
|
+
@focusin=${I}
|
|
1866
|
+
@focusout=${K}
|
|
1867
|
+
${Y.ref(p)}
|
|
1868
|
+
${fe(W)}
|
|
1837
1869
|
>
|
|
1838
|
-
${
|
|
1839
|
-
${
|
|
1840
|
-
${
|
|
1841
|
-
</div>`}}}})
|
|
1842
|
-
class=${V("moz-badge",`size-${
|
|
1870
|
+
${k("vertical")?J("vertical",r):s.nothing}
|
|
1871
|
+
${k("horizontal")?J("horizontal",h):s.nothing}
|
|
1872
|
+
${Z&&r&&h?s.html`<div class="moz-scroll-area-corner"></div>`:s.nothing}
|
|
1873
|
+
</div>`}}}}),$r={name:"MozScrollAreaBars",core:Ys,props:["viewport","interactionRoot","scrollbarVisibility","orientation","scrollbarClass","thumbClass"],emits:["scroll"],expose:!1,syncUpdate:!0},js=["accent","neutral","info","success","warning","danger"],Xs=["soft","outline","solid"],Qs=["sm","md","lg"],Sr=new Set(["tone","appearance","size","dot","text","class","style"]);function to(e,t,o){return typeof t=="string"&&e.includes(t)?t:o}const Js=$e({name:"moz-badge",defaults:{tone:"neutral",appearance:"soft",size:"md",dot:!1},setup(e){return{render(){const t=e.props,o=ye(t,Sr),n=to(js,t.tone,"neutral"),l=to(Xs,t.appearance,"soft"),c=to(Qs,t.size,"md"),r=e.slots.has("default")?e.slot("default"):t.text??s.nothing;return s.html`<span
|
|
1874
|
+
class=${V("moz-badge",`size-${c}`,t.class)}
|
|
1843
1875
|
data-tone=${n}
|
|
1844
1876
|
data-appearance=${l}
|
|
1845
|
-
style=${
|
|
1846
|
-
${
|
|
1847
|
-
>${t.dot?s.html`<span class="moz-badge-dot"></span>`:s.nothing}${
|
|
1848
|
-
>`}}}}),
|
|
1849
|
-
>${
|
|
1850
|
-
>`:s.html`<span class="moz-chip-label">${
|
|
1851
|
-
class=${V("moz-chip","removable",`size-${
|
|
1852
|
-
data-tone=${
|
|
1853
|
-
data-appearance=${
|
|
1854
|
-
style=${
|
|
1855
|
-
${
|
|
1856
|
-
>${
|
|
1877
|
+
style=${te.styleMap(Ce(t.style))}
|
|
1878
|
+
${fe(o)}
|
|
1879
|
+
>${t.dot?s.html`<span class="moz-badge-dot"></span>`:s.nothing}${r}</span
|
|
1880
|
+
>`}}}}),kr={name:"MozBadge",core:Js,booleanProps:["dot"],props:["tone","appearance","size","dot","text"],emits:[],slots:["default"],expose:!1,syncUpdate:!0},Er=new URL("data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='icon_icon_serchbox_clolse_12x12'%3e%3cg%20id='&%23237;&%23140;&%23168;&%23236;&%23138;&%23164;%203250'%3e%3c/g%3e%3cg%20id='Group%201670'%3e%3cpath%20id='&%23236;&%23132;&%23160;%20117'%20d='M11.5657%203.6277C11.8781%203.31528%2011.8781%202.80875%2011.5657%202.49632C11.2533%202.1839%2010.7467%202.1839%2010.4343%202.49632L11%203.06201L11.5657%203.6277ZM2.49637%2010.4343C2.18395%2010.7467%202.18395%2011.2533%202.49637%2011.5657C2.80879%2011.8781%203.31532%2011.8781%203.62774%2011.5657L3.06206%2011L2.49637%2010.4343ZM11%203.06201L10.4343%202.49632L2.49637%2010.4343L3.06206%2011L3.62774%2011.5657L11.5657%203.6277L11%203.06201Z'%20fill='%23949EB8'/%3e%3cpath%20id='&%23236;&%23132;&%23160;%20118'%20d='M3.56568%202.43431C3.25327%202.12189%202.74673%202.12189%202.43432%202.43431C2.1219%202.74673%202.1219%203.25327%202.43432%203.56569L3%203L3.56568%202.43431ZM10.3723%2011.5037C10.6847%2011.8161%2011.1912%2011.8161%2011.5036%2011.5037C11.816%2011.1913%2011.816%2010.6847%2011.5036%2010.3723L10.9379%2010.938L10.3723%2011.5037ZM3%203L2.43432%203.56569L10.3723%2011.5037L10.9379%2010.938L11.5036%2010.3723L3.56568%202.43431L3%203Z'%20fill='%23949EB8'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",typeof document>"u"?require("url").pathToFileURL(__filename).href:Se&&Se.tagName.toUpperCase()==="SCRIPT"&&Se.src||new URL("index.cjs",document.baseURI).href).href,en=["accent","neutral","info","success","warning","danger"],tn=["outline","soft"],on=["sm","md","lg"],Lr=new Set(["tone","appearance","size","selected","disabled","removable","labelInteractive","removeLabel","text","class","style"]);function oo(e,t,o){return typeof t=="string"&&e.includes(t)?t:o}const sn=$e({name:"moz-chip",defaults:{tone:"accent",appearance:"outline",size:"md",selected:!1,disabled:!1,removable:!1,labelInteractive:!0},setup(e){const t=n=>{e.props.disabled||e.emit("click",n)},o=n=>{e.props.disabled||e.emit("remove",n)};return{render(){const n=e.props,l=ye(n,Lr),c=oo(en,n.tone,"accent"),r=oo(tn,n.appearance,"outline"),h=oo(on,n.size,"md"),d=!!n.disabled,b=e.slots.has("icon")?s.html`<span class="moz-chip-icon">${e.slot("icon")}</span>`:s.nothing,a=e.slots.has("default")?e.slot("default"):n.text??s.nothing;if(n.removable){const E=n.labelInteractive!==!1?s.html`<button type="button" class="moz-chip-label" ?disabled=${d} @click=${t}
|
|
1881
|
+
>${b}${a}</button
|
|
1882
|
+
>`:s.html`<span class="moz-chip-label">${b}${a}</span>`;return s.html`<span
|
|
1883
|
+
class=${V("moz-chip","removable",`size-${h}`,{disabled:d},n.class)}
|
|
1884
|
+
data-tone=${c}
|
|
1885
|
+
data-appearance=${r}
|
|
1886
|
+
style=${te.styleMap(Ce(n.style))}
|
|
1887
|
+
${fe(l)}
|
|
1888
|
+
>${E}<button
|
|
1857
1889
|
type="button"
|
|
1858
1890
|
class="moz-chip-remove"
|
|
1859
1891
|
aria-label=${n.removeLabel||e.locale.Chip.remove}
|
|
1860
|
-
?disabled=${
|
|
1892
|
+
?disabled=${d}
|
|
1861
1893
|
@click=${o}
|
|
1862
|
-
>${io("currentColor")}</button
|
|
1894
|
+
>${h!=="sm"?s.html`<span class="moz-chip-close-glyph" aria-hidden="true" style=${te.styleMap({maskImage:`url("${Er}")`})}></span>`:io("currentColor")}</button
|
|
1863
1895
|
></span
|
|
1864
|
-
>`}const
|
|
1896
|
+
>`}const m=!!n.selected;return s.html`<button
|
|
1865
1897
|
type="button"
|
|
1866
|
-
class=${V("moz-chip",`size-${
|
|
1867
|
-
data-tone=${
|
|
1868
|
-
data-appearance=${
|
|
1869
|
-
aria-pressed=${
|
|
1870
|
-
?disabled=${
|
|
1871
|
-
style=${
|
|
1872
|
-
${
|
|
1898
|
+
class=${V("moz-chip",`size-${h}`,{"is-selected":m,disabled:d},n.class)}
|
|
1899
|
+
data-tone=${c}
|
|
1900
|
+
data-appearance=${r}
|
|
1901
|
+
aria-pressed=${m?"true":"false"}
|
|
1902
|
+
?disabled=${d}
|
|
1903
|
+
style=${te.styleMap(Ce(n.style))}
|
|
1904
|
+
${fe(l)}
|
|
1873
1905
|
@click=${t}
|
|
1874
|
-
>${
|
|
1875
|
-
>`}}}}),
|
|
1906
|
+
>${b}${a}</button
|
|
1907
|
+
>`}}}}),Pr={name:"MozChip",core:sn,booleanProps:["disabled","labelInteractive","removable","selected"],props:["tone","appearance","size","selected","disabled","removable","labelInteractive","removeLabel","text"],emits:["click","remove"],slots:["icon","default"],expose:!1,syncUpdate:!0},ao=()=>s.html`<svg
|
|
1876
1908
|
width="20"
|
|
1877
1909
|
height="20"
|
|
1878
1910
|
viewBox="0 0 20 20"
|
|
@@ -1885,7 +1917,7 @@
|
|
|
1885
1917
|
clip-rule="evenodd"
|
|
1886
1918
|
d="M10 18a8 8 0 100-16 8 8 0 000 16zm1-12a1 1 0 11-2 0 1 1 0 012 0zm-2 3a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z"
|
|
1887
1919
|
></path>
|
|
1888
|
-
</svg>`,
|
|
1920
|
+
</svg>`,nn=()=>s.html`<svg
|
|
1889
1921
|
width="20"
|
|
1890
1922
|
height="20"
|
|
1891
1923
|
viewBox="0 0 20 20"
|
|
@@ -1898,7 +1930,7 @@
|
|
|
1898
1930
|
clip-rule="evenodd"
|
|
1899
1931
|
d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z"
|
|
1900
1932
|
></path>
|
|
1901
|
-
</svg>`,
|
|
1933
|
+
</svg>`,ln=()=>s.html`<svg
|
|
1902
1934
|
width="20"
|
|
1903
1935
|
height="20"
|
|
1904
1936
|
viewBox="0 0 20 20"
|
|
@@ -1911,7 +1943,7 @@
|
|
|
1911
1943
|
clip-rule="evenodd"
|
|
1912
1944
|
d="M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z"
|
|
1913
1945
|
></path>
|
|
1914
|
-
</svg>`,
|
|
1946
|
+
</svg>`,rn=()=>s.html`<svg
|
|
1915
1947
|
width="20"
|
|
1916
1948
|
height="20"
|
|
1917
1949
|
viewBox="0 0 20 20"
|
|
@@ -1924,7 +1956,7 @@
|
|
|
1924
1956
|
clip-rule="evenodd"
|
|
1925
1957
|
d="M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z"
|
|
1926
1958
|
></path>
|
|
1927
|
-
</svg>`,
|
|
1959
|
+
</svg>`,an=()=>s.html`<svg
|
|
1928
1960
|
width="20"
|
|
1929
1961
|
height="20"
|
|
1930
1962
|
viewBox="0 0 20 20"
|
|
@@ -1937,7 +1969,7 @@
|
|
|
1937
1969
|
clip-rule="evenodd"
|
|
1938
1970
|
d="M10 18a8 8 0 100-16 8 8 0 000 16zm0-12a1 1 0 00-1 1v4a1 1 0 102 0V7a1 1 0 00-1-1zm0 8a1 1 0 100-2 1 1 0 000 2z"
|
|
1939
1971
|
></path>
|
|
1940
|
-
</svg>`,
|
|
1972
|
+
</svg>`,cn=()=>s.html`<svg
|
|
1941
1973
|
width="14"
|
|
1942
1974
|
height="14"
|
|
1943
1975
|
viewBox="0 0 24 24"
|
|
@@ -1949,21 +1981,22 @@
|
|
|
1949
1981
|
aria-hidden="true"
|
|
1950
1982
|
>
|
|
1951
1983
|
<path d="M18 6 6 18M6 6l12 12"></path>
|
|
1952
|
-
</svg>`,dn=["info","success","warning","danger","neutral","accent"],
|
|
1984
|
+
</svg>`,dn=["info","success","warning","danger","neutral","accent"],un=["block","inline","banner"],Mr=new Set(["mode","tone","title","text","dismissible","dismissLabel","hideIcon","compact","live","class","style"]),xr={info:ao,success:nn,warning:ln,danger:rn,neutral:an,accent:ao},zr={info:new URL("data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='icon_system_12x12'%20clip-path='url(%23clip0_0_22)'%3e%3cpath%20id='Subtract'%20d='M6%200C9.31371%200%2012%202.68629%2012%206C12%209.31371%209.31371%2012%206%2012C2.68629%2012%200%209.31371%200%206C0%202.68629%202.68629%200%206%200ZM5.98926%207.87109C5.60855%207.87109%205.2998%208.17984%205.2998%208.56055C5.29995%208.94113%205.60864%209.25%205.98926%209.25H6.01074C6.39124%209.24985%206.70005%208.94104%206.7002%208.56055C6.7002%208.17993%206.39133%207.87124%206.01074%207.87109H5.98926ZM6%202.75C5.6134%202.75%205.2998%203.0636%205.2998%203.4502V6.38281C5.2998%206.76941%205.6134%207.08301%206%207.08301C6.3866%207.08301%206.7002%206.76941%206.7002%206.38281V3.4502C6.7002%203.0636%206.3866%202.75%206%202.75Z'%20fill='%232A5DBB'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_0_22'%3e%3crect%20width='12'%20height='12'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",typeof document>"u"?require("url").pathToFileURL(__filename).href:Se&&Se.tagName.toUpperCase()==="SCRIPT"&&Se.src||new URL("index.cjs",document.baseURI).href).href,neutral:new URL("data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='icon_system_12x12'%20clip-path='url(%23clip0_0_28)'%3e%3cpath%20id='Subtract'%20d='M6%200C9.31371%200%2012%202.68629%2012%206C12%209.31371%209.31371%2012%206%2012C2.68629%2012%200%209.31371%200%206C0%202.68629%202.68629%200%206%200ZM5.98926%207.87109C5.60855%207.87109%205.2998%208.17984%205.2998%208.56055C5.29995%208.94113%205.60864%209.25%205.98926%209.25H6.01074C6.39124%209.24985%206.70005%208.94104%206.7002%208.56055C6.7002%208.17993%206.39133%207.87124%206.01074%207.87109H5.98926ZM6%202.75C5.6134%202.75%205.2998%203.0636%205.2998%203.4502V6.38281C5.2998%206.76941%205.6134%207.08301%206%207.08301C6.3866%207.08301%206.7002%206.76941%206.7002%206.38281V3.4502C6.7002%203.0636%206.3866%202.75%206%202.75Z'%20fill='%232D3752'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_0_28'%3e%3crect%20width='12'%20height='12'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",typeof document>"u"?require("url").pathToFileURL(__filename).href:Se&&Se.tagName.toUpperCase()==="SCRIPT"&&Se.src||new URL("index.cjs",document.baseURI).href).href,danger:new URL("data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='icon_system_12x12'%20clip-path='url(%23clip0_0_10)'%3e%3cpath%20id='Subtract'%20d='M6%200C9.31371%200%2012%202.68629%2012%206C12%209.31371%209.31371%2012%206%2012C2.68629%2012%200%209.31371%200%206C0%202.68629%202.68629%200%206%200ZM5.98926%207.87109C5.60855%207.87109%205.2998%208.17984%205.2998%208.56055C5.29995%208.94113%205.60864%209.25%205.98926%209.25H6.01074C6.39124%209.24985%206.70005%208.94104%206.7002%208.56055C6.7002%208.17993%206.39133%207.87124%206.01074%207.87109H5.98926ZM6%202.75C5.6134%202.75%205.2998%203.0636%205.2998%203.4502V6.38281C5.2998%206.76941%205.6134%207.08301%206%207.08301C6.3866%207.08301%206.7002%206.76941%206.7002%206.38281V3.4502C6.7002%203.0636%206.3866%202.75%206%202.75Z'%20fill='%23B6373B'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_0_10'%3e%3crect%20width='12'%20height='12'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",typeof document>"u"?require("url").pathToFileURL(__filename).href:Se&&Se.tagName.toUpperCase()==="SCRIPT"&&Se.src||new URL("index.cjs",document.baseURI).href).href,success:new URL("data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='icon_system_12x12'%20clip-path='url(%23clip0_0_4)'%3e%3cpath%20id='Subtract'%20d='M6%200C9.31371%200%2012%202.68629%2012%206C12%209.31371%209.31371%2012%206%2012C2.68629%2012%200%209.31371%200%206C0%202.68629%202.68629%200%206%200ZM5.98926%207.87109C5.60855%207.87109%205.2998%208.17984%205.2998%208.56055C5.29995%208.94113%205.60864%209.25%205.98926%209.25H6.01074C6.39124%209.24985%206.70005%208.94104%206.7002%208.56055C6.7002%208.17993%206.39133%207.87124%206.01074%207.87109H5.98926ZM6%202.75C5.6134%202.75%205.2998%203.0636%205.2998%203.4502V6.38281C5.2998%206.76941%205.6134%207.08301%206%207.08301C6.3866%207.08301%206.7002%206.76941%206.7002%206.38281V3.4502C6.7002%203.0636%206.3866%202.75%206%202.75Z'%20fill='%23106F40'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_0_4'%3e%3crect%20width='12'%20height='12'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",typeof document>"u"?require("url").pathToFileURL(__filename).href:Se&&Se.tagName.toUpperCase()==="SCRIPT"&&Se.src||new URL("index.cjs",document.baseURI).href).href,warning:new URL("data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='icon_system_12x12'%20clip-path='url(%23clip0_0_16)'%3e%3cpath%20id='Subtract'%20d='M6%200C9.31371%200%2012%202.68629%2012%206C12%209.31371%209.31371%2012%206%2012C2.68629%2012%200%209.31371%200%206C0%202.68629%202.68629%200%206%200ZM5.98926%207.87109C5.60855%207.87109%205.2998%208.17984%205.2998%208.56055C5.29995%208.94113%205.60864%209.25%205.98926%209.25H6.01074C6.39124%209.24985%206.70005%208.94104%206.7002%208.56055C6.7002%208.17993%206.39133%207.87124%206.01074%207.87109H5.98926ZM6%202.75C5.6134%202.75%205.2998%203.0636%205.2998%203.4502V6.38281C5.2998%206.76941%205.6134%207.08301%206%207.08301C6.3866%207.08301%206.7002%206.76941%206.7002%206.38281V3.4502C6.7002%203.0636%206.3866%202.75%206%202.75Z'%20fill='%23785C0D'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_0_16'%3e%3crect%20width='12'%20height='12'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",typeof document>"u"?require("url").pathToFileURL(__filename).href:Se&&Se.tagName.toUpperCase()==="SCRIPT"&&Se.src||new URL("index.cjs",document.baseURI).href).href},Tr=new URL("data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='icon_icon_serchbox_clolse_12x12'%3e%3cg%20id='&%23237;&%23140;&%23168;&%23236;&%23138;&%23164;%203250'%3e%3c/g%3e%3cg%20id='Group%201670'%3e%3cpath%20id='&%23236;&%23132;&%23160;%20117'%20d='M9.99426%203.19027C10.3067%202.87785%2010.3067%202.37131%209.99426%202.05889C9.68184%201.74647%209.17531%201.74647%208.86289%202.05889L9.42857%202.62458L9.99426%203.19027ZM2.05894%208.86288C1.74652%209.1753%201.74652%209.68183%202.05894%209.99426C2.37136%2010.3067%202.87789%2010.3067%203.1903%209.99425L2.62462%209.42857L2.05894%208.86288ZM9.42857%202.62458L8.86289%202.05889L2.05894%208.86288L2.62462%209.42857L3.1903%209.99425L9.99426%203.19027L9.42857%202.62458Z'%20fill='%23949EB8'/%3e%3cpath%20id='&%23236;&%23132;&%23160;%20118'%20d='M3.13711%202.00574C2.82469%201.69332%202.31816%201.69332%202.00574%202.00574C1.69333%202.31816%201.69333%202.8247%202.00574%203.13712L2.57143%202.57143L3.13711%202.00574ZM8.8097%209.9411C9.12211%2010.2535%209.62864%2010.2535%209.94106%209.9411C10.2535%209.62868%2010.2535%209.12215%209.94106%208.80973L9.37538%209.37542L8.8097%209.9411ZM2.57143%202.57143L2.00574%203.13712L8.8097%209.9411L9.37538%209.37542L9.94106%208.80973L3.13711%202.00574L2.57143%202.57143Z'%20fill='%23949EB8'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",typeof document>"u"?require("url").pathToFileURL(__filename).href:Se&&Se.tagName.toUpperCase()==="SCRIPT"&&Se.src||new URL("index.cjs",document.baseURI).href).href;function Ar(e){return typeof e=="string"&&dn.includes(e)?e:"info"}const pn=$e({name:"moz-callout",defaults:{mode:"block",tone:"info",dismissible:!1,hideIcon:!1,compact:!1,live:!1},setup(e){const t=o=>e.emit("dismiss",o);return{render(){const o=e.props,n=ye(o,Mr),l=Ar(o.tone),c=un.includes(o.mode)?o.mode:"block",r=c!=="block"&&l!=="accent"?s.html`<img src=${zr[l]} alt="" width="12" height="12" />`:xr[l](),h=l==="danger"||l==="warning",d=!!o.live,a=e.slots.has("heading")?e.slot("heading"):o.title?o.title:void 0,m=e.slots.has("default")?e.slot("default"):o.text??s.nothing;return s.html`<div
|
|
1953
1985
|
class=${V("moz-callout",{compact:!!o.compact},o.class)}
|
|
1954
1986
|
data-tone=${l}
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
aria-
|
|
1958
|
-
|
|
1959
|
-
|
|
1987
|
+
data-mode=${c}
|
|
1988
|
+
role=${Ee.ifDefined(d?h?"alert":"status":void 0)}
|
|
1989
|
+
aria-live=${Ee.ifDefined(d?h?"assertive":"polite":void 0)}
|
|
1990
|
+
aria-atomic=${Ee.ifDefined(d?"true":void 0)}
|
|
1991
|
+
style=${te.styleMap(Ce(o.style))}
|
|
1992
|
+
${fe(n)}
|
|
1960
1993
|
>
|
|
1961
1994
|
${o.hideIcon?s.nothing:s.html`<span class="moz-callout-icon"
|
|
1962
|
-
>${e.slots.has("icon")?e.slot("icon"):
|
|
1995
|
+
>${e.slots.has("icon")?e.slot("icon"):r}</span
|
|
1963
1996
|
>`}
|
|
1964
1997
|
<div class="moz-callout-body">
|
|
1965
|
-
${
|
|
1966
|
-
<div class="moz-callout-content">${
|
|
1998
|
+
${a!==void 0?s.html`<div class="moz-callout-title">${a}</div>`:s.nothing}
|
|
1999
|
+
<div class="moz-callout-content">${m}</div>
|
|
1967
2000
|
</div>
|
|
1968
2001
|
${o.dismissible?s.html`<button
|
|
1969
2002
|
type="button"
|
|
@@ -1971,35 +2004,35 @@
|
|
|
1971
2004
|
aria-label=${o.dismissLabel||e.locale.Callout.dismiss}
|
|
1972
2005
|
@click=${t}
|
|
1973
2006
|
>
|
|
1974
|
-
${
|
|
2007
|
+
${c==="block"?cn():s.html`<img src=${Tr} alt="" width="12" height="12" />`}
|
|
1975
2008
|
</button>`:s.nothing}
|
|
1976
|
-
</div>`}}}}),
|
|
2009
|
+
</div>`}}}}),Rr={name:"MozCallout",core:pn,booleanProps:["compact","dismissible","hideIcon","live"],props:["tone","title","text","dismissible","dismissLabel","hideIcon","compact","live","mode"],emits:["dismiss"],slots:["icon","heading","default"],expose:!1,syncUpdate:!0},hn=["info","success","warning","danger","neutral"],mn=["top","top-right","top-left","bottom","bottom-right","bottom-left"],Dr=new Set(["tone","title","body","time","datetime","dismissible","closeLabel","duration","pauseOnHover","exitDuration","position","inline","onSelect","onDismiss","class","style"]),Ir={info:ao,success:nn,warning:ln,danger:rn,neutral:an};function Vr(e){return typeof e=="string"&&hn.includes(e)?e:"info"}function co(e){return typeof e=="string"&&mn.includes(e)?e:"bottom-right"}function Zo(e){const t=document.querySelector(`.moz-notification-stack[data-position="${e}"]`);if(t)return t;const o=document.createElement("div");return o.className=`moz-notification-stack moz-notification-stack--${e}`,o.setAttribute("data-position",e),document.body.appendChild(o),o}const xo=$e({name:"moz-notification-card",defaults:{tone:"info",dismissible:!0,duration:5e3,pauseOnHover:!0,exitDuration:150,position:"bottom-right",inline:!1},setup(e){let t=!1,o=!1,n=!1,l=null,c=null;const r=()=>{o||(o=!0,l&&l.stop(),t=!1,e.requestUpdate(),c=setTimeout(()=>{var g,i;c=null,(i=(g=e.props).onDismiss)==null||i.call(g),n=!0,e.requestUpdate()},e.props.exitDuration??150))},h=()=>{t=!0,e.requestUpdate();const g=e.props.duration;g&&g>0&&(l=new Po(r,g))};let d=!1,b=!1,a=!1;const m=()=>{if(!e.props.pauseOnHover||!l||o)return;const g=d||b;g!==a&&(a=g,g?l.pause():l.resume())},u=g=>{d=g,m()},E=()=>{b=!0,m()},x=g=>{const i=g.relatedTarget;i&&g.currentTarget.contains(i)||(b=!1,m())},$=()=>{const g=e.props.onSelect;typeof g=="function"&&(g(),e.props.dismissible&&r())},P=g=>{g.key!=="Enter"&&g.key!==" "||(g.preventDefault(),$())};e.props.inline||Zo(co(e.props.position)),e.onCleanup(()=>{l&&l.stop(),c&&clearTimeout(c)});const L=()=>{if(n)return s.nothing;const g=e.props,i=Vr(g.tone),p=i==="danger",y=typeof g.onSelect=="function",F=e.slots.has("heading")?e.slot("heading"):g.title?g.title:void 0,I=e.slots.has("description")?e.slot("description"):g.body?g.body:void 0;return s.html`<div
|
|
1977
2010
|
data-testid="notification-card"
|
|
1978
|
-
${
|
|
1979
|
-
class=${V("moz-notification-card",{"is-selectable":
|
|
1980
|
-
data-tone=${
|
|
1981
|
-
role=${
|
|
1982
|
-
aria-live=${
|
|
2011
|
+
${fe(ye(g,Dr))}
|
|
2012
|
+
class=${V("moz-notification-card",{"is-selectable":y},g.class)}
|
|
2013
|
+
data-tone=${i}
|
|
2014
|
+
role=${p?"alert":"status"}
|
|
2015
|
+
aria-live=${p?"assertive":"polite"}
|
|
1983
2016
|
aria-atomic="true"
|
|
1984
|
-
style=${
|
|
1985
|
-
@mouseenter=${()=>
|
|
1986
|
-
@mouseleave=${()=>
|
|
1987
|
-
@focusin=${
|
|
1988
|
-
@focusout=${
|
|
2017
|
+
style=${te.styleMap({...Ce(g.style),...t?{}:{display:"none"}})}
|
|
2018
|
+
@mouseenter=${()=>u(!0)}
|
|
2019
|
+
@mouseleave=${()=>u(!1)}
|
|
2020
|
+
@focusin=${E}
|
|
2021
|
+
@focusout=${x}
|
|
1989
2022
|
>
|
|
1990
2023
|
<span class="moz-notification-card-icon"
|
|
1991
|
-
>${e.slots.has("avatar")?e.slot("avatar"):
|
|
2024
|
+
>${e.slots.has("avatar")?e.slot("avatar"):Ir[i]()}</span
|
|
1992
2025
|
>
|
|
1993
2026
|
<div class="moz-notification-card-main">
|
|
1994
2027
|
<div
|
|
1995
2028
|
class="moz-notification-card-content"
|
|
1996
|
-
role=${Ee.ifDefined(
|
|
1997
|
-
tabindex=${Ee.ifDefined(
|
|
1998
|
-
@click=${
|
|
1999
|
-
@keydown=${
|
|
2029
|
+
role=${Ee.ifDefined(y?"button":void 0)}
|
|
2030
|
+
tabindex=${Ee.ifDefined(y?"0":void 0)}
|
|
2031
|
+
@click=${$}
|
|
2032
|
+
@keydown=${y?P:s.nothing}
|
|
2000
2033
|
>
|
|
2001
|
-
${
|
|
2002
|
-
${
|
|
2034
|
+
${F!==void 0?s.html`<div class="moz-notification-card-heading">${F}</div>`:s.nothing}
|
|
2035
|
+
${I!==void 0?s.html`<div class="moz-notification-card-description">${I}</div>`:s.nothing}
|
|
2003
2036
|
${g.time?s.html`<time class="moz-notification-card-time" datetime=${Ee.ifDefined(g.datetime||void 0)}
|
|
2004
2037
|
>${g.time}</time
|
|
2005
2038
|
>`:s.nothing}
|
|
@@ -2010,35 +2043,35 @@
|
|
|
2010
2043
|
type="button"
|
|
2011
2044
|
class="moz-notification-card-close"
|
|
2012
2045
|
aria-label=${g.closeLabel||e.locale.Notification.close}
|
|
2013
|
-
@click=${
|
|
2046
|
+
@click=${r}
|
|
2014
2047
|
>
|
|
2015
|
-
${
|
|
2048
|
+
${cn()}
|
|
2016
2049
|
</button>`:s.nothing}
|
|
2017
|
-
</div>`};return{api:{dismiss:
|
|
2050
|
+
</div>`};return{api:{dismiss:r,isClosing:()=>o},onMounted(){h()},getPortalContainer:()=>e.props.inline?null:Zo(co(e.props.position)),renderPortal(){return e.props.inline?s.nothing:L()},render(){return e.props.inline?L():s.nothing}}}}),Or=new Set(["title","body","time","datetime","unread","onSelect","class","style"]),fn=$e({name:"moz-notification-item",defaults:{unread:!1},setup(e){const t=()=>{const o=e.props.onSelect;typeof o=="function"&&o()};return{render(){const o=e.props,n=ye(o,Or),l=!!o.unread,c=e.slots.has("heading")?e.slot("heading"):o.title?o.title:void 0,r=e.slots.has("description")?e.slot("description"):o.body?o.body:void 0,h=V("moz-notification-item",{"is-unread":l},o.class),d=te.styleMap(Ce(o.style)),b=s.html`
|
|
2018
2051
|
<span class="moz-notification-item-header">
|
|
2019
|
-
${
|
|
2052
|
+
${c!==void 0?s.html`<span class="moz-notification-item-heading">${c}</span>`:s.nothing}
|
|
2020
2053
|
${l?s.html`<span class="moz-notification-item-unread"
|
|
2021
2054
|
><span class="moz-notification-item-dot" aria-hidden="true"></span
|
|
2022
2055
|
><span class="moz-notification-item-sr">${e.locale.Notification.unread}</span></span
|
|
2023
2056
|
>`:s.nothing}
|
|
2024
2057
|
${e.slots.has("meta")?s.html`<span class="moz-notification-item-meta">${e.slot("meta")}</span>`:s.nothing}
|
|
2025
2058
|
</span>
|
|
2026
|
-
${
|
|
2027
|
-
${
|
|
2059
|
+
${r!==void 0||o.time?s.html`<span class="moz-notification-item-content">
|
|
2060
|
+
${r!==void 0?s.html`<span class="moz-notification-item-description">${r}</span>`:s.nothing}
|
|
2028
2061
|
${o.time?s.html`<time class="moz-notification-item-time" datetime=${Ee.ifDefined(o.datetime||void 0)}
|
|
2029
2062
|
>${o.time}</time
|
|
2030
2063
|
>`:s.nothing}
|
|
2031
2064
|
</span>`:s.nothing}
|
|
2032
2065
|
`;return typeof o.onSelect=="function"?s.html`<button
|
|
2033
2066
|
type="button"
|
|
2034
|
-
class=${
|
|
2067
|
+
class=${h}
|
|
2035
2068
|
data-unread=${l?"true":"false"}
|
|
2036
|
-
style=${
|
|
2037
|
-
${
|
|
2069
|
+
style=${d}
|
|
2070
|
+
${fe(n)}
|
|
2038
2071
|
@click=${t}
|
|
2039
2072
|
>
|
|
2040
|
-
${
|
|
2041
|
-
</button>`:s.html`<div class=${
|
|
2042
|
-
${
|
|
2043
|
-
</div>`}}}}),
|
|
2073
|
+
${b}
|
|
2074
|
+
</button>`:s.html`<div class=${h} data-unread=${l?"true":"false"} style=${d} ${fe(n)}>
|
|
2075
|
+
${b}
|
|
2076
|
+
</div>`}}}}),qr=3,wt=[];let Br=0;const Fr=e=>{var t;typeof e.remove<"u"?e.remove():(t=e.parentNode)==null||t.removeChild(e)},Ft=e=>e.closing||e.instance.api.isClosing(),St=e=>{Ft(e)||(e.closing=!0,e.instance.api.dismiss())},Nr=(e={})=>({open:(l={},c={})=>{const r={...e,...l},{id:h,max:d,onDismiss:b,...a}=r;if(h){const p=wt.find(y=>y.id===h&&!Ft(y));if(p)return{id:p.id,close:()=>St(p)}}const m=h||`moz-notification-${++Br}`,u=co(a.position),E=typeof d=="number"&&d>0?Math.floor(d):qr,x=wt.filter(p=>p.position===u&&!Ft(p));for(let p=0;p<=x.length-E;p++)St(x[p]);const $=document.createElement("div");$.style.display="contents",document.body.appendChild($);let P;const L={...a,position:u,inline:!1,onDismiss:()=>{const p=P?wt.indexOf(P):-1;p!==-1&&wt.splice(p,1),b==null||b(),queueMicrotask(()=>{var y;P==null||P.instance.destroy(),Fr($),(y=c.onRemoved)==null||y.call(c)})}},g=xo($,L,(()=>{}),{slots:c.slots,locale:c.locale});P={id:m,position:u,instance:g,closing:!1},wt.push(P);const i=P;return{id:m,close:()=>St(i)}},close:l=>{const c=wt.find(r=>r.id===l&&!Ft(r));c&&St(c)},closeAll:()=>{for(const l of wt.slice())St(l)}}),_r={name:"MozNotificationCard",core:xo,booleanProps:["dismissible","inline","pauseOnHover"],props:["tone","title","body","time","datetime","dismissible","closeLabel","duration","pauseOnHover","exitDuration","position","inline","onSelect","onDismiss"],emits:[],slots:["avatar","heading","description","actions"],expose:!1,syncUpdate:!0},Hr={name:"MozNotificationItem",core:fn,booleanProps:["unread"],props:["title","body","time","datetime","unread","onSelect"],emits:[],slots:["heading","description","meta"],expose:!1,syncUpdate:!0};exports.AVATAR_SPEC=Cr;exports.BADGE_APPEARANCES=Xs;exports.BADGE_SIZES=Qs;exports.BADGE_SPEC=kr;exports.BADGE_TONES=js;exports.BREADCRUMB_SPEC=el;exports.BUTTON_SIZES=Jo;exports.BUTTON_SPEC=Gn;exports.CALENDAR_SPEC=Wl;exports.CALLOUT_MODES=un;exports.CALLOUT_SPEC=Rr;exports.CALLOUT_TONES=dn;exports.CHECKBOX_SPEC=dl;exports.CHIP_APPEARANCES=tn;exports.CHIP_SIZES=on;exports.CHIP_SPEC=Pr;exports.CHIP_TONES=en;exports.COLLAPSIBLE_HEIGHT_VAR=Ks;exports.COLLAPSIBLE_SPEC=vr;exports.CONTEXTMENU_SPEC=Ti;exports.CONTROLLER_SPEC=er;exports.ChromeComponent=Yo;exports.DATEINPUT_SPEC=Xl;exports.DEFAULT_TREE_PROPS=ro;exports.EMPTYSTATE_SPEC=al;exports.INPUT_SPEC=Cl;exports.LABEL_SPEC=jn;exports.MOZ_BOOLEAN_PROPS=In;exports.MULTISELECT_SPEC=wi;exports.NOTIFICATION_CARD_SPEC=_r;exports.NOTIFICATION_ITEM_SPEC=Hr;exports.NOTIFICATION_POSITIONS=mn;exports.NOTIFICATION_TONES=hn;exports.NUMBERINPUT_SPEC=Pl;exports.Observable=Pn;exports.Overlay=Kt;exports.POPOVER_SPEC=fr;exports.POPUP_SPEC=ii;exports.PortalHost=Nt;exports.RADIO_SPEC=pl;exports.SCROLLAREA_SPEC=$r;exports.SEGMENT_TONES=ms;exports.SELECT_SPEC=pi;exports.SLIDER_SPEC=Ol;exports.SPLITPANE_SPEC=Wi;exports.SlotHost=jo;exports.TABLESELECT_SPEC=Ri;exports.TAB_SPEC=zl;exports.TAGINPUT_SPEC=Pi;exports.TEXTAREA_SPEC=yl;exports.TIMEPICKER_SPEC=Si;exports.TOAST_SPEC=ur;exports.TOGGLE_SPEC=Qn;exports.TOOLTIP_SPEC=pr;exports.TREESELECT_SPEC=Hi;exports.Timer=Po;exports.breadcrumbTemplate=wo;exports.buttonTemplate=kt;exports.checkboxTemplate=qt;exports.circleLoader=Qo;exports.cn=V;exports.computeTooltipPlacement=$s;exports.createAvatar=Gs;exports.createBadge=Js;exports.createBreadCrumb=cs;exports.createButton=ls;exports.createCalendar=Eo;exports.createCallout=pn;exports.createCheckBox=hs;exports.createChip=sn;exports.createCollapsible=Zs;exports.createContextMenu=Vs;exports.createController=Us;exports.createDateInput=ks;exports.createEmptyState=ps;exports.createInput=gs;exports.createLabel=is;exports.createMultiSelect=As;exports.createNotificationCard=xo;exports.createNotificationItem=fn;exports.createNumberInput=ws;exports.createPopover=Ws;exports.createPopup=Ls;exports.createRadio=fs;exports.createScrollArea=Ys;exports.createSelect=Ts;exports.createSlider=Ss;exports.createSplitPane=Hs;exports.createTab=bs;exports.createTableSelect=Os;exports.createTagInput=Is;exports.createTextArea=vs;exports.createTimePicker=Ds;exports.createToast=Mo;exports.createToggle=rs;exports.createTooltip=So;exports.createTreeSelect=_s;exports.createValidator=qn;exports.dayjs=Me;exports.defaultEmptyStateMessages=ds;exports.defineHeadless=$e;exports.dismissLayerCount=Un;exports.enUS=Tn;exports.generateUUID=Mt;exports.iconArrowRight=Jn;exports.iconCheckBox=Co;exports.iconCheckBoxChecked=bo;exports.iconCheckboxIndeterminate=yo;exports.iconClose=Cs;exports.iconFavorite=go;exports.iconFavoriteFilled=vo;exports.iconInfo=$o;exports.jaJP=Rn;exports.koKR=no;exports.labelClass=fo;exports.labelTemplate=Xe;exports.normalizeStyle=Ce;exports.pickRest=ye;exports.pxToRem=De;exports.registerDismissLayer=mo;exports.registerForeignLayer=Hn;exports.registerSelfHandledLayer=Zt;exports.shallowEqual=bt;exports.spread=fe;exports.toggleTemplate=Ht;exports.uniqueId=ot;exports.useNotification=Nr;exports.useToast=dr;exports.zhCN=An;
|
|
2044
2077
|
//# sourceMappingURL=index.cjs.map
|