@esri/solutions-components 0.11.24 → 0.11.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/buffer-tools_2.cjs.entry.js +1 -1
- package/dist/cjs/feature-list.cjs.entry.js +1 -1
- package/dist/collection/assets/t9n/layer-table/resources_ar.json +4 -1
- package/dist/collection/assets/t9n/layer-table/resources_bg.json +4 -1
- package/dist/collection/assets/t9n/layer-table/resources_bs.json +4 -1
- package/dist/collection/assets/t9n/layer-table/resources_ca.json +4 -1
- package/dist/collection/assets/t9n/layer-table/resources_cs.json +4 -1
- package/dist/collection/assets/t9n/layer-table/resources_da.json +4 -1
- package/dist/collection/assets/t9n/layer-table/resources_de.json +4 -1
- package/dist/collection/assets/t9n/layer-table/resources_el.json +4 -1
- package/dist/collection/assets/t9n/layer-table/resources_es.json +4 -1
- package/dist/collection/assets/t9n/layer-table/resources_et.json +4 -1
- package/dist/collection/assets/t9n/layer-table/resources_fi.json +4 -1
- package/dist/collection/assets/t9n/layer-table/resources_fr.json +4 -1
- package/dist/collection/assets/t9n/layer-table/resources_he.json +4 -1
- package/dist/collection/assets/t9n/layer-table/resources_hr.json +4 -1
- package/dist/collection/assets/t9n/layer-table/resources_hu.json +4 -1
- package/dist/collection/assets/t9n/layer-table/resources_id.json +4 -1
- package/dist/collection/assets/t9n/layer-table/resources_it.json +4 -1
- package/dist/collection/assets/t9n/layer-table/resources_ja.json +4 -1
- package/dist/collection/assets/t9n/layer-table/resources_ko.json +4 -1
- package/dist/collection/assets/t9n/layer-table/resources_lt.json +4 -1
- package/dist/collection/assets/t9n/layer-table/resources_lv.json +4 -1
- package/dist/collection/assets/t9n/layer-table/resources_nb.json +4 -1
- package/dist/collection/assets/t9n/layer-table/resources_nl.json +4 -1
- package/dist/collection/assets/t9n/layer-table/resources_no.json +4 -1
- package/dist/collection/assets/t9n/layer-table/resources_pl.json +4 -1
- package/dist/collection/assets/t9n/layer-table/resources_pt-BR.json +4 -1
- package/dist/collection/assets/t9n/layer-table/resources_pt-PT.json +4 -1
- package/dist/collection/assets/t9n/layer-table/resources_ro.json +4 -1
- package/dist/collection/assets/t9n/layer-table/resources_ru.json +4 -1
- package/dist/collection/assets/t9n/layer-table/resources_sk.json +4 -1
- package/dist/collection/assets/t9n/layer-table/resources_sl.json +4 -1
- package/dist/collection/assets/t9n/layer-table/resources_sr.json +4 -1
- package/dist/collection/assets/t9n/layer-table/resources_sv.json +4 -1
- package/dist/collection/assets/t9n/layer-table/resources_th.json +4 -1
- package/dist/collection/assets/t9n/layer-table/resources_tr.json +4 -1
- package/dist/collection/assets/t9n/layer-table/resources_uk.json +4 -1
- package/dist/collection/assets/t9n/layer-table/resources_vi.json +4 -1
- package/dist/collection/assets/t9n/layer-table/resources_zh-CN.json +4 -1
- package/dist/collection/assets/t9n/layer-table/resources_zh-HK.json +4 -1
- package/dist/collection/assets/t9n/layer-table/resources_zh-TW.json +4 -1
- package/dist/collection/components/feature-list/feature-list.css +1 -1
- package/dist/collection/components/map-draw-tools/map-draw-tools.css +4 -0
- package/dist/components/feature-list2.js +1 -1
- package/dist/components/map-draw-tools2.js +1 -1
- package/dist/esm/buffer-tools_2.entry.js +1 -1
- package/dist/esm/feature-list.entry.js +1 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_ar.json +4 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_bg.json +4 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_bs.json +4 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_ca.json +4 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_cs.json +4 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_da.json +4 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_de.json +4 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_el.json +4 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_es.json +4 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_et.json +4 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_fi.json +4 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_fr.json +4 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_he.json +4 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_hr.json +4 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_hu.json +4 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_id.json +4 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_it.json +4 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_ja.json +4 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_ko.json +4 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_lt.json +4 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_lv.json +4 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_nb.json +4 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_nl.json +4 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_no.json +4 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_pl.json +4 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_pt-BR.json +4 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_pt-PT.json +4 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_ro.json +4 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_ru.json +4 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_sk.json +4 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_sl.json +4 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_sr.json +4 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_sv.json +4 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_th.json +4 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_tr.json +4 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_uk.json +4 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_vi.json +4 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_zh-CN.json +4 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_zh-HK.json +4 -1
- package/dist/solutions-components/assets/t9n/layer-table/resources_zh-TW.json +4 -1
- package/dist/solutions-components/{p-a2e356f8.entry.js → p-3e16c433.entry.js} +1 -1
- package/dist/solutions-components/{p-df018eb2.entry.js → p-e086ad1d.entry.js} +1 -1
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/solutions-components_commit.txt +6 -6
- package/package.json +3 -3
@@ -18,5 +18,8 @@
|
|
18
18
|
"recordsSelected": "Celkem: {{total}} | Výběr: {{selected}}",
|
19
19
|
"moreOptions": "Další možnosti tabulky",
|
20
20
|
"showHideColumns": "Zobrazit/skrýt sloupce",
|
21
|
-
"searchPlaceholder": "Vyhledat text v poli {{fields}}"
|
21
|
+
"searchPlaceholder": "Vyhledat text v poli {{fields}}",
|
22
|
+
"photosAndFiles": "Ř_Photos and files_________________ů",
|
23
|
+
"attachments": "Ř_Attachments____________ů",
|
24
|
+
"relatedRecords": "Ř_Related records________________ů"
|
22
25
|
}
|
@@ -18,5 +18,8 @@
|
|
18
18
|
"recordsSelected": "I alt: {{total}} | Markering: {{selected}}",
|
19
19
|
"moreOptions": "Flere tabelindstillinger",
|
20
20
|
"showHideColumns": "Vis/skjul kolonner",
|
21
|
-
"searchPlaceholder": "Søg efter tekst i feltet {{fields}}"
|
21
|
+
"searchPlaceholder": "Søg efter tekst i feltet {{fields}}",
|
22
|
+
"photosAndFiles": "ø_Photos and files_________________å",
|
23
|
+
"attachments": "ø_Attachments____________å",
|
24
|
+
"relatedRecords": "ø_Related records________________å"
|
22
25
|
}
|
@@ -18,5 +18,8 @@
|
|
18
18
|
"recordsSelected": "Gesamt: {{total}} | Auswahl: {{selected}}",
|
19
19
|
"moreOptions": "Weitere Tabellenoptionen",
|
20
20
|
"showHideColumns": "Spalten ein-/ausblenden",
|
21
|
-
"searchPlaceholder": "Suchtext im Feld {{fields}}"
|
21
|
+
"searchPlaceholder": "Suchtext im Feld {{fields}}",
|
22
|
+
"photosAndFiles": "ä_Photos and files_________________Ü",
|
23
|
+
"attachments": "ä_Attachments____________Ü",
|
24
|
+
"relatedRecords": "ä_Related records________________Ü"
|
22
25
|
}
|
@@ -18,5 +18,8 @@
|
|
18
18
|
"recordsSelected": "Σύνολο: {{total}} | Επιλογή: {{selected}}",
|
19
19
|
"moreOptions": "Περισσότερες επιλογές πίνακα",
|
20
20
|
"showHideColumns": "Εμφάνιση/Απόκρυψη στηλών",
|
21
|
-
"searchPlaceholder": "Αναζήτηση κειμένου στο πεδίο {{fields}}"
|
21
|
+
"searchPlaceholder": "Αναζήτηση κειμένου στο πεδίο {{fields}}",
|
22
|
+
"photosAndFiles": "Đ_Photos and files_________________ớ",
|
23
|
+
"attachments": "Đ_Attachments____________ớ",
|
24
|
+
"relatedRecords": "Đ_Related records________________ớ"
|
22
25
|
}
|
@@ -18,5 +18,8 @@
|
|
18
18
|
"recordsSelected": "Total: {{total}} | Selección: {{selected}}",
|
19
19
|
"moreOptions": "Más opciones de tabla",
|
20
20
|
"showHideColumns": "Mostrar/ocultar columnas",
|
21
|
-
"searchPlaceholder": "Buscar texto en campo {{fields}}"
|
21
|
+
"searchPlaceholder": "Buscar texto en campo {{fields}}",
|
22
|
+
"photosAndFiles": "á_Photos and files_________________Ó",
|
23
|
+
"attachments": "á_Attachments____________Ó",
|
24
|
+
"relatedRecords": "á_Related records________________Ó"
|
22
25
|
}
|
@@ -18,5 +18,8 @@
|
|
18
18
|
"recordsSelected": "Kokku: {{total}} | Valik: {{selected}}",
|
19
19
|
"moreOptions": "Rohkem tabelivalikuid",
|
20
20
|
"showHideColumns": "Kuva/peida veerud",
|
21
|
-
"searchPlaceholder": "Otsige teksti väljal {{fields}}"
|
21
|
+
"searchPlaceholder": "Otsige teksti väljal {{fields}}",
|
22
|
+
"photosAndFiles": "Š_Photos and files_________________ä",
|
23
|
+
"attachments": "Š_Attachments____________ä",
|
24
|
+
"relatedRecords": "Š_Related records________________ä"
|
22
25
|
}
|
@@ -18,5 +18,8 @@
|
|
18
18
|
"recordsSelected": "Yhteensä: {{total}} | Valinta: {{selected}}",
|
19
19
|
"moreOptions": "Muut taulun asetukset",
|
20
20
|
"showHideColumns": "Näytä/piilota sarakkeet",
|
21
|
-
"searchPlaceholder": "Hakuteksti kentässä {{fields}}"
|
21
|
+
"searchPlaceholder": "Hakuteksti kentässä {{fields}}",
|
22
|
+
"photosAndFiles": "Å_Photos and files_________________ö",
|
23
|
+
"attachments": "Å_Attachments____________ö",
|
24
|
+
"relatedRecords": "Å_Related records________________ö"
|
22
25
|
}
|
@@ -18,5 +18,8 @@
|
|
18
18
|
"recordsSelected": "Total : {{total}} | Sélection : {{selected}}",
|
19
19
|
"moreOptions": "Autres options de la table",
|
20
20
|
"showHideColumns": "Afficher/masquer les colonnes",
|
21
|
-
"searchPlaceholder": "Texte de recherche dans le champ {{fields}}"
|
21
|
+
"searchPlaceholder": "Texte de recherche dans le champ {{fields}}",
|
22
|
+
"photosAndFiles": "æ_Photos and files_________________Â",
|
23
|
+
"attachments": "æ_Attachments____________Â",
|
24
|
+
"relatedRecords": "æ_Related records________________Â"
|
22
25
|
}
|
@@ -18,5 +18,8 @@
|
|
18
18
|
"recordsSelected": "(סה\"כ: {{total}} | בחירה: {{selected}})",
|
19
19
|
"moreOptions": "אפשרויות טבלה נוספות",
|
20
20
|
"showHideColumns": "הצג/הסתר עמודות",
|
21
|
-
"searchPlaceholder": "חיפוש טקסט בשדה {{fields}}"
|
21
|
+
"searchPlaceholder": "חיפוש טקסט בשדה {{fields}}",
|
22
|
+
"photosAndFiles": "כן_Photos and files_________________ש",
|
23
|
+
"attachments": "כן_Attachments____________ש",
|
24
|
+
"relatedRecords": "כן_Related records________________ש"
|
22
25
|
}
|
@@ -18,5 +18,8 @@
|
|
18
18
|
"recordsSelected": "Ukupno: {{total}} | Odabir: {{selected}}",
|
19
19
|
"moreOptions": "Više opcija tablice",
|
20
20
|
"showHideColumns": "Prikaži/skrij stupce",
|
21
|
-
"searchPlaceholder": "Pretraži tekst u polju {{fields}}"
|
21
|
+
"searchPlaceholder": "Pretraži tekst u polju {{fields}}",
|
22
|
+
"photosAndFiles": "Č_Photos and files_________________ž",
|
23
|
+
"attachments": "Č_Attachments____________ž",
|
24
|
+
"relatedRecords": "Č_Related records________________ž"
|
22
25
|
}
|
@@ -18,5 +18,8 @@
|
|
18
18
|
"recordsSelected": "Összesen: {{total}} | Kiválasztva: {{selected}}",
|
19
19
|
"moreOptions": "További táblázat beállítások",
|
20
20
|
"showHideColumns": "Oszlopok megjelenítése/elrejtése",
|
21
|
-
"searchPlaceholder": "Szöveg keresése a(z) {{fields}} mezőben"
|
21
|
+
"searchPlaceholder": "Szöveg keresése a(z) {{fields}} mezőben",
|
22
|
+
"photosAndFiles": "í_Photos and files_________________ő",
|
23
|
+
"attachments": "í_Attachments____________ő",
|
24
|
+
"relatedRecords": "í_Related records________________ő"
|
22
25
|
}
|
@@ -18,5 +18,8 @@
|
|
18
18
|
"recordsSelected": "Total: {{total}} | Pilihan: {{selected}}",
|
19
19
|
"moreOptions": "Opsi tabel lainnya",
|
20
20
|
"showHideColumns": "Tampilkan/sembunyikan kolom",
|
21
|
-
"searchPlaceholder": "Cari teks di kolom {{fields}}"
|
21
|
+
"searchPlaceholder": "Cari teks di kolom {{fields}}",
|
22
|
+
"photosAndFiles": "ng_Photos and files_________________ny",
|
23
|
+
"attachments": "ng_Attachments____________ny",
|
24
|
+
"relatedRecords": "ng_Related records________________ny"
|
22
25
|
}
|
@@ -18,5 +18,8 @@
|
|
18
18
|
"recordsSelected": "Totale: {{total}} | Selezione: {{selected}}",
|
19
19
|
"moreOptions": "Altre opzioni tabella",
|
20
20
|
"showHideColumns": "Mostra/nascondi colonne",
|
21
|
-
"searchPlaceholder": "Cerca testo nel campo {{fields}}"
|
21
|
+
"searchPlaceholder": "Cerca testo nel campo {{fields}}",
|
22
|
+
"photosAndFiles": "é_Photos and files_________________È",
|
23
|
+
"attachments": "é_Attachments____________È",
|
24
|
+
"relatedRecords": "é_Related records________________È"
|
22
25
|
}
|
@@ -18,5 +18,8 @@
|
|
18
18
|
"recordsSelected": "合計: {{total}} | 選択: {{selected}}",
|
19
19
|
"moreOptions": "その他のテーブル オプション",
|
20
20
|
"showHideColumns": "列の表示/非表示",
|
21
|
-
"searchPlaceholder": "{{fields}} フィールドのテキストを検索"
|
21
|
+
"searchPlaceholder": "{{fields}} フィールドのテキストを検索",
|
22
|
+
"photosAndFiles": "須_Photos and files_________________鷗",
|
23
|
+
"attachments": "須_Attachments____________鷗",
|
24
|
+
"relatedRecords": "須_Related records________________鷗"
|
22
25
|
}
|
@@ -18,5 +18,8 @@
|
|
18
18
|
"recordsSelected": "총: {{total}}개 | 선택: {{selected}}개",
|
19
19
|
"moreOptions": "추가 테이블 옵션",
|
20
20
|
"showHideColumns": "열 표시/숨기기",
|
21
|
-
"searchPlaceholder": "{{fields}} 필드에서 텍스트 검색"
|
21
|
+
"searchPlaceholder": "{{fields}} 필드에서 텍스트 검색",
|
22
|
+
"photosAndFiles": "한_Photos and files_________________빠",
|
23
|
+
"attachments": "한_Attachments____________빠",
|
24
|
+
"relatedRecords": "한_Related records________________빠"
|
22
25
|
}
|
@@ -18,5 +18,8 @@
|
|
18
18
|
"recordsSelected": "Iš viso: {{total}} | Pasirinkta: {{selected}}",
|
19
19
|
"moreOptions": "Daugiau lentelės parinkčių",
|
20
20
|
"showHideColumns": "Rodyti / slėpti stulpelius",
|
21
|
-
"searchPlaceholder": "Ieškoti teksto lauke {{fields}}"
|
21
|
+
"searchPlaceholder": "Ieškoti teksto lauke {{fields}}",
|
22
|
+
"photosAndFiles": "Į_Photos and files_________________š",
|
23
|
+
"attachments": "Į_Attachments____________š",
|
24
|
+
"relatedRecords": "Į_Related records________________š"
|
22
25
|
}
|
@@ -18,5 +18,8 @@
|
|
18
18
|
"recordsSelected": "Kopā: {{total}} | Izvēle: {{selected}}",
|
19
19
|
"moreOptions": "Citas tabulas opcijas",
|
20
20
|
"showHideColumns": "Rādīt/paslēpt kolonnas",
|
21
|
-
"searchPlaceholder": "Meklēt tekstu {{fields}} laukā"
|
21
|
+
"searchPlaceholder": "Meklēt tekstu {{fields}} laukā",
|
22
|
+
"photosAndFiles": "ķ_Photos and files_________________ū",
|
23
|
+
"attachments": "ķ_Attachments____________ū",
|
24
|
+
"relatedRecords": "ķ_Related records________________ū"
|
22
25
|
}
|
@@ -18,5 +18,8 @@
|
|
18
18
|
"recordsSelected": "Totalt: {{total}} | Utvalg: {{selected}}",
|
19
19
|
"moreOptions": "Flere tabellalternativer",
|
20
20
|
"showHideColumns": "Vis/skjul kolonner",
|
21
|
-
"searchPlaceholder": "Søk etter tekst i {{fields}} felt"
|
21
|
+
"searchPlaceholder": "Søk etter tekst i {{fields}} felt",
|
22
|
+
"photosAndFiles": "å_Photos and files_________________ø",
|
23
|
+
"attachments": "å_Attachments____________ø",
|
24
|
+
"relatedRecords": "å_Related records________________ø"
|
22
25
|
}
|
@@ -18,5 +18,8 @@
|
|
18
18
|
"recordsSelected": "Totaal: {{total}} | Selectie: {{selected}}",
|
19
19
|
"moreOptions": "Meer tabelopties",
|
20
20
|
"showHideColumns": "Kolommen weergeven/verbergen",
|
21
|
-
"searchPlaceholder": "Tekst zoeken in veld {{fields}}"
|
21
|
+
"searchPlaceholder": "Tekst zoeken in veld {{fields}}",
|
22
|
+
"photosAndFiles": "IJ_Photos and files_________________ä",
|
23
|
+
"attachments": "IJ_Attachments____________ä",
|
24
|
+
"relatedRecords": "IJ_Related records________________ä"
|
22
25
|
}
|
@@ -18,5 +18,8 @@
|
|
18
18
|
"recordsSelected": "Totalt: {{total}} | Utvalg: {{selected}}",
|
19
19
|
"moreOptions": "Flere tabellalternativer",
|
20
20
|
"showHideColumns": "Vis/skjul kolonner",
|
21
|
-
"searchPlaceholder": "Søk etter tekst i {{fields}} felt"
|
21
|
+
"searchPlaceholder": "Søk etter tekst i {{fields}} felt",
|
22
|
+
"photosAndFiles": "å_Photos and files_________________ø",
|
23
|
+
"attachments": "å_Attachments____________ø",
|
24
|
+
"relatedRecords": "å_Related records________________ø"
|
22
25
|
}
|
@@ -18,5 +18,8 @@
|
|
18
18
|
"recordsSelected": "Łącznie: {{total}} | Wybrane: {{selected}}",
|
19
19
|
"moreOptions": "Więcej opcji tabeli",
|
20
20
|
"showHideColumns": "Pokaż/ukryj kolumny",
|
21
|
-
"searchPlaceholder": "Wyszukaj tekst w polu {{fields}}"
|
21
|
+
"searchPlaceholder": "Wyszukaj tekst w polu {{fields}}",
|
22
|
+
"photosAndFiles": "ł_Photos and files_________________ą",
|
23
|
+
"attachments": "ł_Attachments____________ą",
|
24
|
+
"relatedRecords": "ł_Related records________________ą"
|
22
25
|
}
|
@@ -18,5 +18,8 @@
|
|
18
18
|
"recordsSelected": "Total: {{total}} | Seleção: {{selected}}",
|
19
19
|
"moreOptions": "Mais opções da tabela",
|
20
20
|
"showHideColumns": "Mostrar/ocultar colunas",
|
21
|
-
"searchPlaceholder": "Procurar texto no campo {{fields}}"
|
21
|
+
"searchPlaceholder": "Procurar texto no campo {{fields}}",
|
22
|
+
"photosAndFiles": "ã_Photos and files_________________Ç",
|
23
|
+
"attachments": "ã_Attachments____________Ç",
|
24
|
+
"relatedRecords": "ã_Related records________________Ç"
|
22
25
|
}
|
@@ -18,5 +18,8 @@
|
|
18
18
|
"recordsSelected": "Total: {{total}} | Seleção: {{selected}}",
|
19
19
|
"moreOptions": "Mais opções de tabela",
|
20
20
|
"showHideColumns": "Exibir/ocultar colunas",
|
21
|
-
"searchPlaceholder": "Pesquisar texto no campo {{fields}}"
|
21
|
+
"searchPlaceholder": "Pesquisar texto no campo {{fields}}",
|
22
|
+
"photosAndFiles": "ã_Photos and files_________________Ç",
|
23
|
+
"attachments": "ã_Attachments____________Ç",
|
24
|
+
"relatedRecords": "ã_Related records________________Ç"
|
22
25
|
}
|
@@ -18,5 +18,8 @@
|
|
18
18
|
"recordsSelected": "Total: {{total}} | Selecție: {{selected}}",
|
19
19
|
"moreOptions": "Mai multe opțiuni de tabel",
|
20
20
|
"showHideColumns": "Afişare/ascundere coloane",
|
21
|
-
"searchPlaceholder": "Căutare text în câmpul {{fields}}"
|
21
|
+
"searchPlaceholder": "Căutare text în câmpul {{fields}}",
|
22
|
+
"photosAndFiles": "Ă_Photos and files_________________ș",
|
23
|
+
"attachments": "Ă_Attachments____________ș",
|
24
|
+
"relatedRecords": "Ă_Related records________________ș"
|
22
25
|
}
|
@@ -18,5 +18,8 @@
|
|
18
18
|
"recordsSelected": "Всего: {{total}} | Выборка: {{selected}}",
|
19
19
|
"moreOptions": "Дополнительные опции таблицы",
|
20
20
|
"showHideColumns": "Показать/скрыть столбцы",
|
21
|
-
"searchPlaceholder": "Поиск текста в поле {{fields}}"
|
21
|
+
"searchPlaceholder": "Поиск текста в поле {{fields}}",
|
22
|
+
"photosAndFiles": "Ж_Photos and files_________________Я",
|
23
|
+
"attachments": "Ж_Attachments____________Я",
|
24
|
+
"relatedRecords": "Ж_Related records________________Я"
|
22
25
|
}
|
@@ -18,5 +18,8 @@
|
|
18
18
|
"recordsSelected": "Celkový počet: {{total}} | Výber: {{selected}}",
|
19
19
|
"moreOptions": "Viac možností tabuľky",
|
20
20
|
"showHideColumns": "Zobraziť/skryť stĺpce",
|
21
|
-
"searchPlaceholder": "Vyhľadať text v poli {{fields}}"
|
21
|
+
"searchPlaceholder": "Vyhľadať text v poli {{fields}}",
|
22
|
+
"photosAndFiles": "ĺ_Photos and files_________________ľ",
|
23
|
+
"attachments": "ĺ_Attachments____________ľ",
|
24
|
+
"relatedRecords": "ĺ_Related records________________ľ"
|
22
25
|
}
|
@@ -18,5 +18,8 @@
|
|
18
18
|
"recordsSelected": "Skupno: {{total}} | Selection: {{selected}}",
|
19
19
|
"moreOptions": "Več možnosti tabele",
|
20
20
|
"showHideColumns": "Pokaži/skrij stolpce",
|
21
|
-
"searchPlaceholder": "Išči besedilo v {{fields}} polju"
|
21
|
+
"searchPlaceholder": "Išči besedilo v {{fields}} polju",
|
22
|
+
"photosAndFiles": "Š_Photos and files_________________č",
|
23
|
+
"attachments": "Š_Attachments____________č",
|
24
|
+
"relatedRecords": "Š_Related records________________č"
|
22
25
|
}
|
@@ -18,5 +18,8 @@
|
|
18
18
|
"recordsSelected": "Ukupno: {{total}} | Odabir: {{selected}}",
|
19
19
|
"moreOptions": "Više opcija za tabelu",
|
20
20
|
"showHideColumns": "Prikaži/sakrij kolone",
|
21
|
-
"searchPlaceholder": "Pretraži tekst u polju {{fields}}"
|
21
|
+
"searchPlaceholder": "Pretraži tekst u polju {{fields}}",
|
22
|
+
"photosAndFiles": "Č_Photos and files_________________ž",
|
23
|
+
"attachments": "Č_Attachments____________ž",
|
24
|
+
"relatedRecords": "Č_Related records________________ž"
|
22
25
|
}
|
@@ -18,5 +18,8 @@
|
|
18
18
|
"recordsSelected": "Totalt: {{total}} | Urval: {{selected}}",
|
19
19
|
"moreOptions": "Fler tabellalternativ",
|
20
20
|
"showHideColumns": "Visa/dölj kolumner",
|
21
|
-
"searchPlaceholder": "Söktext i fältet {{fields}}"
|
21
|
+
"searchPlaceholder": "Söktext i fältet {{fields}}",
|
22
|
+
"photosAndFiles": "Å_Photos and files_________________ö",
|
23
|
+
"attachments": "Å_Attachments____________ö",
|
24
|
+
"relatedRecords": "Å_Related records________________ö"
|
22
25
|
}
|
@@ -18,5 +18,8 @@
|
|
18
18
|
"recordsSelected": "รวม: {{total}} | ที่เลือก: {{selected}}",
|
19
19
|
"moreOptions": "ตัวเลือกตารางเพิ่มเติม",
|
20
20
|
"showHideColumns": "แสดง/ซ่อนคอลัมน์",
|
21
|
-
"searchPlaceholder": "ค้นหาข้อความในฟิลด์ {{fields}}"
|
21
|
+
"searchPlaceholder": "ค้นหาข้อความในฟิลด์ {{fields}}",
|
22
|
+
"photosAndFiles": "ก้_Photos and files_________________ษฺ",
|
23
|
+
"attachments": "ก้_Attachments____________ษฺ",
|
24
|
+
"relatedRecords": "ก้_Related records________________ษฺ"
|
22
25
|
}
|
@@ -18,5 +18,8 @@
|
|
18
18
|
"recordsSelected": "Toplam: {{total}} | Seçim: {{selected}}",
|
19
19
|
"moreOptions": "Daha fazla tablo seçeneği",
|
20
20
|
"showHideColumns": "Sütunları göster/gizle",
|
21
|
-
"searchPlaceholder": "{{fields}} alanında metin ara"
|
21
|
+
"searchPlaceholder": "{{fields}} alanında metin ara",
|
22
|
+
"photosAndFiles": "ı_Photos and files_________________İ",
|
23
|
+
"attachments": "ı_Attachments____________İ",
|
24
|
+
"relatedRecords": "ı_Related records________________İ"
|
22
25
|
}
|
@@ -18,5 +18,8 @@
|
|
18
18
|
"recordsSelected": "Усього: {{total}} | Вибірка: {{selected}}",
|
19
19
|
"moreOptions": "Інші опції таблиці",
|
20
20
|
"showHideColumns": "Показати/приховати стовпці",
|
21
|
-
"searchPlaceholder": "Пошук тексту у полі {{fields}}"
|
21
|
+
"searchPlaceholder": "Пошук тексту у полі {{fields}}",
|
22
|
+
"photosAndFiles": "ґ_Photos and files_________________Ї",
|
23
|
+
"attachments": "ґ_Attachments____________Ї",
|
24
|
+
"relatedRecords": "ґ_Related records________________Ї"
|
22
25
|
}
|
@@ -18,5 +18,8 @@
|
|
18
18
|
"recordsSelected": "Tổng: {{total}} | Lựa chọn: {{selected}}",
|
19
19
|
"moreOptions": "Các tùy chọn bảng khác",
|
20
20
|
"showHideColumns": "Hiển thị/ẩn cột",
|
21
|
-
"searchPlaceholder": "Tìm kiếm văn bản trong trường {{fields}}"
|
21
|
+
"searchPlaceholder": "Tìm kiếm văn bản trong trường {{fields}}",
|
22
|
+
"photosAndFiles": "Đ_Photos and files_________________ớ",
|
23
|
+
"attachments": "Đ_Attachments____________ớ",
|
24
|
+
"relatedRecords": "Đ_Related records________________ớ"
|
22
25
|
}
|
@@ -18,5 +18,8 @@
|
|
18
18
|
"recordsSelected": "总数:{{total}} | 选择:{{selected}}",
|
19
19
|
"moreOptions": "更多表选项",
|
20
20
|
"showHideColumns": "显示/隐藏列",
|
21
|
-
"searchPlaceholder": "在 {{fields}} 字段中搜索文本"
|
21
|
+
"searchPlaceholder": "在 {{fields}} 字段中搜索文本",
|
22
|
+
"photosAndFiles": "试_Photos and files_________________验",
|
23
|
+
"attachments": "试_Attachments____________验",
|
24
|
+
"relatedRecords": "试_Related records________________验"
|
22
25
|
}
|
@@ -18,5 +18,8 @@
|
|
18
18
|
"recordsSelected": "總計: {{total}} | 選擇: {{selected}}",
|
19
19
|
"moreOptions": "更多表格選項",
|
20
20
|
"showHideColumns": "顯示/隱藏欄",
|
21
|
-
"searchPlaceholder": "在 {{fields}} 欄位中搜尋文字"
|
21
|
+
"searchPlaceholder": "在 {{fields}} 欄位中搜尋文字",
|
22
|
+
"photosAndFiles": "試_Photos and files_________________驗",
|
23
|
+
"attachments": "試_Attachments____________驗",
|
24
|
+
"relatedRecords": "試_Related records________________驗"
|
22
25
|
}
|
@@ -18,5 +18,8 @@
|
|
18
18
|
"recordsSelected": "總計: {{total}} | 選擇: {{selected}}",
|
19
19
|
"moreOptions": "更多表格選項",
|
20
20
|
"showHideColumns": "顯示/隱藏欄",
|
21
|
-
"searchPlaceholder": "在 {{fields}} 欄位中搜尋文字"
|
21
|
+
"searchPlaceholder": "在 {{fields}} 欄位中搜尋文字",
|
22
|
+
"photosAndFiles": "試_Photos and files_________________驗",
|
23
|
+
"attachments": "試_Attachments____________驗",
|
24
|
+
"relatedRecords": "試_Related records________________驗"
|
22
25
|
}
|
@@ -3,4 +3,4 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{r as t,c as i,g as s,h as e}from"./p-e996c38f.js";import{l as a,g as h}from"./p-404cbf48.js";import{P as l}from"./p-bf04c6f4.js";import{g as n,c as o,h as r}from"./p-dcd2f00b.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";import"./p-db3391b9.js";import"./p-4fe489cf.js";import"./p-2bc98cb0.js";import"./p-4f236b5d.js";import"./p-570b13d9.js";import"./p-0668e30d.js";import"./p-80cb7c73.js";const c=class{constructor(s){t(this,s),this.featureSelect=i(this,"featureSelect",7),this.selectedLayerId=void 0,this.mapView=void 0,this.noFeaturesFoundMsg=void 0,this.pageSize=100,this.highlightOnMap=!1,this.highlightOnHover=!1,this.locale=void 0,this.sortingInfo=void 0,this.whereClause=void 0,this.textSize="large",this.showInitialLoading=!0,this.showErrorWhenNoFeatures=!0,this.showUserImageInList=!1,this.showFeatureSymbol=!1,this.applyLayerViewFilter=!1,this.reportingOptions=void 0,this.showFullTitle=!0,this.filterByMapExtent=!1,this._featureItems=[],this._featuresCount=0,this._isLoading=!1,this._searchPlaceHolder="",this._fullTextSearchInfo=void 0,this._translations=void 0}get el(){return s(this)}Color;esriConfig;symbolUtils;reactiveUtils;_popupUtils;_selectedLayer;_highlightHandle;_filterByMapExtentHandle;_highlights;_pagination;_calciteList;_validFieldTypes=["small-integer","integer","big-integer","single","long"];_abbreviatedLikeCount;_likeFieldAvailable=!1;_searchExpression;async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}async selectedLayerWatchHandler(){this._selectedLayer=await n(this.mapView,this.selectedLayerId),await this.initializeFeatureItems()}async sortingInfoWatchHandler(){await this.initializeFeatureItems()}async whereClauseHandler(){await this.initializeFeatureItems()}async filterByMapExtentHandler(t){t?this.initializeMapExtentFilter():this._filterByMapExtentHandle&&this._filterByMapExtentHandle.remove()}async refresh(t){if(t&&this._pagination){const t={target:{startItem:this._pagination.startItem}};await this.pageChanged(t)}else this._searchExpression?await this._searchFullText():await this.initializeFeatureItems()}featureSelect;async componentWillLoad(){await this.initModules(),await this._getTranslations(),this._isLoading=this.showInitialLoading,this._popupUtils=new l,this.mapView&&this.selectedLayerId&&(this._selectedLayer=await n(this.mapView,this.selectedLayerId),this._getFullTextSearchInfo()),this.filterByMapExtent&&this.initializeMapExtentFilter()}async componentDidLoad(){await this.initializeFeatureItems()}render(){const t=this._canShowFullTextSearch();return e("calcite-panel",{key:"da51d35e66ceea64f32ddf7872ac7133f98bfc48","full-height":!0,"full-width":!0},t&&e("calcite-input",{key:"04a50538873d5a87eb194edca98fa5a86818bfc4",class:"search",clearable:!0,icon:"search",onCalciteInputChange:this._searchTextChanged.bind(this),placeholder:this._searchPlaceHolder,title:"",type:"search"}),this._isLoading&&e("calcite-loader",{key:"f89602c8d36c41d8ed5b028619853ba8e1dedbc9",label:"",scale:"m"}),this.showErrorWhenNoFeatures&&0===this._featureItems.length&&!this._isLoading&&e("calcite-notice",{key:"147d2072a916b9a0ec34d3819a8c88ded50673b1",class:"error-msg",icon:"feature-details",kind:"info",open:!0},e("div",{key:"ab769558c1489e9b24eff945b970230b5015a35c",slot:"message"},this.filterByMapExtent?this._translations.featureErrorMsgInCurrentMapView:this.noFeaturesFoundMsg?this.noFeaturesFoundMsg:this._translations.featureErrorMsg)),e("calcite-list",{key:"aa05260aa25bd5023be842969f6660950269221e",class:"small"!==this.textSize||this.showFullTitle?"":"overflow-hidden",label:"",ref:t=>this._calciteList=t,"selection-appearance":"border","selection-mode":"none"},!this._isLoading&&this._featureItems.length>0&&this._featureItems),this._featuresCount>this.pageSize&&e("div",{key:"6db2614c585cc95605998c2ddd96e9d8980ed875",class:"width-full",slot:"footer"},e("calcite-pagination",{key:"59f0c7e97b02215ec717d902fdf6294ed7c82a67",class:"pagination","full-width":!0,onCalcitePaginationChange:this.pageChanged.bind(this),"page-size":this.pageSize,ref:t=>this._pagination=t,"start-item":"1","total-items":this._featuresCount})))}async initModules(){const[t,i,s,e]=await a(["esri/Color","esri/config","esri/symbols/support/symbolUtils","esri/core/reactiveUtils"]);this.Color=t,this.esriConfig=i,this.symbolUtils=s,this.reactiveUtils=e}async getWhereCondition(){let t="1=1";if(this.whereClause&&(t=this.whereClause),this._selectedLayer?.definitionExpression&&(t=t+" AND "+this._selectedLayer.definitionExpression),this.applyLayerViewFilter){const i=await o(this.mapView,this.selectedLayerId);i?.filter?.where&&(t=t+" AND "+i.filter.where)}return t}async initializeFeatureItems(){if(this._selectedLayer){this._pagination?.goTo("start"),this._isLoading=this.showInitialLoading,this._featureItems=await this.queryPage(0);const t={where:await this.getWhereCondition(),geometry:this.filterByMapExtent?this.mapView.extent:null};this._featuresCount=await this._selectedLayer.queryFeatureCount(t),this._isLoading=!1}}initializeMapExtentFilter(){this._filterByMapExtentHandle=this.reactiveUtils.when((()=>this.mapView.stationary),(()=>{this.initializeFeatureItems()}),{initial:!0})}async pageChanged(t){this._isLoading=!0,this._highlightHandle&&(this._highlightHandle.remove(),this._highlightHandle=null);const i=t.target.startItem-1;this._featureItems=await this.queryPage(i),this._isLoading=!1}_canShowFullTextSearch(){return((this._selectedLayer?.capabilities)?.query)?.supportsFullTextSearch&&this._selectedLayer.indexes.items.filter((t=>"FullText"==t.indexType)).length>0}_getFullTextSearchInfo(){if(this._fullTextSearchInfo=[],((this._selectedLayer?.capabilities)?.query)?.supportsFullTextSearch){const t=this._selectedLayer.indexes?.filter((t=>"FullText"==t.indexType));if(t?.length){const i=[];t.forEach((t=>{i.push(...t.fields.split(","))}));const s=[];i.forEach((t=>{const i=this._selectedLayer.getField(t.trim());s.push(i.alias)})),this._searchPlaceHolder=this._translations.searchPlaceholder.replace("{{fields}}",s.join(", ")),this._fullTextSearchInfo.push({onFields:["*"],searchTerm:"",searchType:"prefix"})}}}async _searchTextChanged(t){this._fullTextSearchInfo.forEach((i=>{i.searchTerm=t.target.value})),await this._searchFullText()}async _searchFullText(){this._searchExpression&&this._clearSearchDefinitionExpression();let t=[];if(this._fullTextSearchInfo&&this._fullTextSearchInfo[0].searchTerm){const i=this._selectedLayer.createQuery();i.fullText=this._fullTextSearchInfo,t=await this._selectedLayer.queryObjectIds(i),await this._updateSearchDefinitionExpression(t?.length?t:[-1])}await this.initializeFeatureItems()}async _updateSearchDefinitionExpression(t){const i=this._selectedLayer.definitionExpression;if(t?.length){const s=`objectId in(${t})`;this._selectedLayer.definitionExpression=i?.indexOf(this._searchExpression)>-1?i.replace(this._searchExpression,s):i?`${i} AND (${s})`:s,this._searchExpression=s}else this._clearSearchDefinitionExpression()}_clearSearchDefinitionExpression(){const t=this._selectedLayer.definitionExpression;this._searchExpression&&t?.indexOf(this._searchExpression)>-1&&(this._selectedLayer.definitionExpression=t?.indexOf(" AND ("+this._searchExpression)>-1?t.replace(` AND (${this._searchExpression})`,""):t.replace(this._searchExpression,"")),this._searchExpression=void 0}async featureClicked(t,i){if(this.clearHighlights(),this.highlightOnMap){const i=Number(t.target.value),s=await o(this.mapView,this.selectedLayerId);this._highlightHandle=await r([i],s,this.mapView,!0)}await this.emitSelectedFeature(i)}async emitSelectedFeature(t){const i=t.layer,s=i.createQuery();s.returnGeometry=!0,s.objectIds=[t.getObjectId()];const e=await i.queryFeatures(s);this.featureSelect.emit(e.features[0])}async onFeatureHover(t){if(this.clearHighlights(),this.highlightOnHover){const i=t.getObjectId(),s=await o(this.mapView,this.selectedLayerId);this._highlights&&(s.highlights=JSON.parse(this._highlights)),s.highlightOptions={color:new this.Color("#FFFF00")},this._highlights=JSON.stringify(s.highlights),this._highlightHandle=s.highlight([i])}}clearHighlights(){this._highlightHandle&&this._highlightHandle.remove()}async queryPage(t){const i=this._selectedLayer,s=this.sortingInfo?.field?this.sortingInfo.field:i.objectIdField,e=this.sortingInfo?.order?this.sortingInfo.order:"desc",a=await this.getWhereCondition(),h={start:t,num:this.pageSize,outFields:["*"],returnGeometry:!0,where:a,outSpatialReference:this.mapView.spatialReference.toJSON(),geometry:this.filterByMapExtent?this.mapView.extent:null};s&&e&&(h.orderByFields=[s.toString()+" "+e]);const l=await i.queryFeatures(h);return await this.createFeatureItem(l)}async createFeatureItem(t){const i=t?.features,s=this.reportingOptions&&this.reportingOptions[this.selectedLayerId].like,e=i.map((async t=>{const i=await this._popupUtils.getPopupTitle(t,this.mapView.map);let e,a;if(this.showUserImageInList){const i=this._selectedLayer.editFieldsInfo?.creatorField;i&&(e=await this.getUserInformation(t))}return this.showFeatureSymbol&&(a=await this.getFeatureSymbol(t)),s&&this.getAbbreviatedLikeCount(t),this.getFeatureItem(t,i,a,e)}));return Promise.all(e)}getAbbreviatedLikeCount(t){const i=this._selectedLayer,s=this.reportingOptions[i.id].likeField;i.fields.forEach((e=>{if(this._validFieldTypes.indexOf(e.type)>-1&&e.name===s&&this.reportingOptions[i.id].like){this._likeFieldAvailable=!0;let i=t.attributes[s]||0;i>999&&(i=i>999999?this._translations.millionsAbbreviation.replace("{{abbreviated_value}}",Math.floor(i/1e6).toString()):this._translations.thousandsAbbreviation.replace("{{abbreviated_value}}",Math.floor(i/1e3).toString())),this._abbreviatedLikeCount=i}}))}getFeatureItem(t,i,s,a){const h=t.attributes[this._selectedLayer.objectIdField].toString();i=i??h;const l=Number(t.attributes[this.reportingOptions?.[this._selectedLayer.id].likeField]).toLocaleString(),n="small"!==this.textSize||this.showFullTitle?"small"===this.textSize?"feature-list-popup-title-small":"feature-list-popup-title":"feature-list-popup-title-small-ellipsis",o=this._calciteList.offsetWidth-(this.showUserImageInList?115:65);return e("calcite-list-item",{onCalciteListItemSelect:i=>{this.featureClicked(i,t)},onMouseLeave:()=>{this.clearHighlights()},onMouseOver:()=>{this.onFeatureHover(t)},value:h},this.showUserImageInList&&e("calcite-avatar",{class:"profile-img","full-name":a?.fullName,scale:"m",slot:"content-start",thumbnail:a?.userProfileUrl,userId:a?.id,username:a?.fullName?a.username:void 0}),this.showFeatureSymbol&&e("div",{class:"feature-symbol",ref:t=>t&&t.replaceChildren(s),slot:"content-start"}),e("div",{class:`popup-title ${n}`,slot:"content-start",style:{maxWidth:"large"===this.textSize?"none":`${o}px`}},i),this._likeFieldAvailable&&e("div",{class:"like-container",id:h.concat("like"),slot:"content-end"},e("span",null,this._abbreviatedLikeCount),e("calcite-icon",{icon:"thumbs-up",scale:"s"}),e("calcite-tooltip",{overlayPositioning:"fixed",placement:"top","reference-element":h.concat("like")},l)),e("calcite-icon",{flipRtl:!0,icon:"chevron-right",scale:"s",slot:"content-end"}))}async getUserInformation(t){let i=this._selectedLayer.editFieldsInfo?.creatorField;t.attributes.hasOwnProperty(i.toLowerCase())?i=i.toLowerCase():t.attributes.hasOwnProperty(i.toUpperCase())&&(i=i.toUpperCase());let s=`${this.esriConfig.portalUrl}/sharing/rest/community/users/${t.attributes[i]}?f=json&returnUserLicensedItems=true`;const e=this.mapView.map.portalItem.portal?.credential?.token;e&&(s+=`&token=${e}`);const a=await fetch(s),h=await a.json();let l=`${this.esriConfig.portalUrl}/sharing/rest/community/users/${h?.username??t.attributes[i]}/info/blob.png`;return h?.access&&e&&(l+=`?token=${e}`),h.userProfileUrl=l,h}async getFeatureSymbol(t){const i=document.createElement("div");return await this.symbolUtils.getDisplayedSymbol(t).then((async t=>{if(t&&await(this.symbolUtils?.renderPreviewHTML(t,{node:i})),i.children?.length){const t=i.children[0];if(t){const i=Number(t.getAttribute("height")),s=Number(t.getAttribute("width"));s>30&&t.setAttribute("width","30"),i>30&&t.setAttribute("height","30"),t.setAttribute("viewBox",`0 0 ${s} ${i}`)}}})),i}async _getTranslations(){const t=await h(this.el);this._translations=t[0]}static get watchers(){return{locale:["localeWatchHandler"],selectedLayerId:["selectedLayerWatchHandler"],sortingInfo:["sortingInfoWatchHandler"],whereClause:["whereClauseHandler"],filterByMapExtent:["filterByMapExtentHandler"]}}};c.style=":host{display:block}.width-full{width:100%}.pagination{display:flex;justify-content:center}.error-msg{padding:10px;width:calc(100% - 20px)}.feature-list-popup-title{font-weight:500;white-space:pre-line}.feature-list-popup-title-small{font-size:small;white-space:pre-line}.feature-list-popup-title-small-ellipsis{font-size:small;white-space:nowrap !important;text-overflow:ellipsis;overflow:hidden}.popup-title{padding:0 5px;word-break:break-word}.profile-img{padding:0 5px;min-width:32px}.like-container{display:flex;align-items:center;gap:5px;color:gray !important;font-style:italic}.feature-symbol{padding:0 3px;min-width:30px;display:flex;justify-content:center}.search{padding:10px;background-color:var(--calcite-color-foreground-1) !important;border-block-end:1px solid var(--calcite-color-border-3)}";export{c as feature_list}
|
6
|
+
import{r as t,c as i,g as s,h as e}from"./p-e996c38f.js";import{l as a,g as h}from"./p-404cbf48.js";import{P as l}from"./p-bf04c6f4.js";import{g as n,c as o,h as r}from"./p-dcd2f00b.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";import"./p-db3391b9.js";import"./p-4fe489cf.js";import"./p-2bc98cb0.js";import"./p-4f236b5d.js";import"./p-570b13d9.js";import"./p-0668e30d.js";import"./p-80cb7c73.js";const c=class{constructor(s){t(this,s),this.featureSelect=i(this,"featureSelect",7),this.selectedLayerId=void 0,this.mapView=void 0,this.noFeaturesFoundMsg=void 0,this.pageSize=100,this.highlightOnMap=!1,this.highlightOnHover=!1,this.locale=void 0,this.sortingInfo=void 0,this.whereClause=void 0,this.textSize="large",this.showInitialLoading=!0,this.showErrorWhenNoFeatures=!0,this.showUserImageInList=!1,this.showFeatureSymbol=!1,this.applyLayerViewFilter=!1,this.reportingOptions=void 0,this.showFullTitle=!0,this.filterByMapExtent=!1,this._featureItems=[],this._featuresCount=0,this._isLoading=!1,this._searchPlaceHolder="",this._fullTextSearchInfo=void 0,this._translations=void 0}get el(){return s(this)}Color;esriConfig;symbolUtils;reactiveUtils;_popupUtils;_selectedLayer;_highlightHandle;_filterByMapExtentHandle;_highlights;_pagination;_calciteList;_validFieldTypes=["small-integer","integer","big-integer","single","long"];_abbreviatedLikeCount;_likeFieldAvailable=!1;_searchExpression;async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}async selectedLayerWatchHandler(){this._selectedLayer=await n(this.mapView,this.selectedLayerId),await this.initializeFeatureItems()}async sortingInfoWatchHandler(){await this.initializeFeatureItems()}async whereClauseHandler(){await this.initializeFeatureItems()}async filterByMapExtentHandler(t){t?this.initializeMapExtentFilter():this._filterByMapExtentHandle&&this._filterByMapExtentHandle.remove()}async refresh(t){if(t&&this._pagination){const t={target:{startItem:this._pagination.startItem}};await this.pageChanged(t)}else this._searchExpression?await this._searchFullText():await this.initializeFeatureItems()}featureSelect;async componentWillLoad(){await this.initModules(),await this._getTranslations(),this._isLoading=this.showInitialLoading,this._popupUtils=new l,this.mapView&&this.selectedLayerId&&(this._selectedLayer=await n(this.mapView,this.selectedLayerId),this._getFullTextSearchInfo()),this.filterByMapExtent&&this.initializeMapExtentFilter()}async componentDidLoad(){await this.initializeFeatureItems()}render(){const t=this._canShowFullTextSearch();return e("calcite-panel",{key:"da51d35e66ceea64f32ddf7872ac7133f98bfc48","full-height":!0,"full-width":!0},t&&e("calcite-input",{key:"04a50538873d5a87eb194edca98fa5a86818bfc4",class:"search",clearable:!0,icon:"search",onCalciteInputChange:this._searchTextChanged.bind(this),placeholder:this._searchPlaceHolder,title:"",type:"search"}),this._isLoading&&e("calcite-loader",{key:"f89602c8d36c41d8ed5b028619853ba8e1dedbc9",label:"",scale:"m"}),this.showErrorWhenNoFeatures&&0===this._featureItems.length&&!this._isLoading&&e("calcite-notice",{key:"147d2072a916b9a0ec34d3819a8c88ded50673b1",class:"error-msg",icon:"feature-details",kind:"info",open:!0},e("div",{key:"ab769558c1489e9b24eff945b970230b5015a35c",slot:"message"},this.filterByMapExtent?this._translations.featureErrorMsgInCurrentMapView:this.noFeaturesFoundMsg?this.noFeaturesFoundMsg:this._translations.featureErrorMsg)),e("calcite-list",{key:"aa05260aa25bd5023be842969f6660950269221e",class:"small"!==this.textSize||this.showFullTitle?"":"overflow-hidden",label:"",ref:t=>this._calciteList=t,"selection-appearance":"border","selection-mode":"none"},!this._isLoading&&this._featureItems.length>0&&this._featureItems),this._featuresCount>this.pageSize&&e("div",{key:"6db2614c585cc95605998c2ddd96e9d8980ed875",class:"width-full",slot:"footer"},e("calcite-pagination",{key:"59f0c7e97b02215ec717d902fdf6294ed7c82a67",class:"pagination","full-width":!0,onCalcitePaginationChange:this.pageChanged.bind(this),"page-size":this.pageSize,ref:t=>this._pagination=t,"start-item":"1","total-items":this._featuresCount})))}async initModules(){const[t,i,s,e]=await a(["esri/Color","esri/config","esri/symbols/support/symbolUtils","esri/core/reactiveUtils"]);this.Color=t,this.esriConfig=i,this.symbolUtils=s,this.reactiveUtils=e}async getWhereCondition(){let t="1=1";if(this.whereClause&&(t=this.whereClause),this._selectedLayer?.definitionExpression&&(t=t+" AND "+this._selectedLayer.definitionExpression),this.applyLayerViewFilter){const i=await o(this.mapView,this.selectedLayerId);i?.filter?.where&&(t=t+" AND "+i.filter.where)}return t}async initializeFeatureItems(){if(this._selectedLayer){this._pagination?.goTo("start"),this._isLoading=this.showInitialLoading,this._featureItems=await this.queryPage(0);const t={where:await this.getWhereCondition(),geometry:this.filterByMapExtent?this.mapView.extent:null};this._featuresCount=await this._selectedLayer.queryFeatureCount(t),this._isLoading=!1}}initializeMapExtentFilter(){this._filterByMapExtentHandle=this.reactiveUtils.when((()=>this.mapView.stationary),(()=>{this.initializeFeatureItems()}),{initial:!0})}async pageChanged(t){this._isLoading=!0,this._highlightHandle&&(this._highlightHandle.remove(),this._highlightHandle=null);const i=t.target.startItem-1;this._featureItems=await this.queryPage(i),this._isLoading=!1}_canShowFullTextSearch(){return((this._selectedLayer?.capabilities)?.query)?.supportsFullTextSearch&&this._selectedLayer.indexes.items.filter((t=>"FullText"==t.indexType)).length>0}_getFullTextSearchInfo(){if(this._fullTextSearchInfo=[],((this._selectedLayer?.capabilities)?.query)?.supportsFullTextSearch){const t=this._selectedLayer.indexes?.filter((t=>"FullText"==t.indexType));if(t?.length){const i=[];t.forEach((t=>{i.push(...t.fields.split(","))}));const s=[];i.forEach((t=>{const i=this._selectedLayer.getField(t.trim());s.push(i.alias)})),this._searchPlaceHolder=this._translations.searchPlaceholder.replace("{{fields}}",s.join(", ")),this._fullTextSearchInfo.push({onFields:["*"],searchTerm:"",searchType:"prefix"})}}}async _searchTextChanged(t){this._fullTextSearchInfo.forEach((i=>{i.searchTerm=t.target.value})),await this._searchFullText()}async _searchFullText(){this._searchExpression&&this._clearSearchDefinitionExpression();let t=[];if(this._fullTextSearchInfo&&this._fullTextSearchInfo[0].searchTerm){const i=this._selectedLayer.createQuery();i.fullText=this._fullTextSearchInfo,t=await this._selectedLayer.queryObjectIds(i),await this._updateSearchDefinitionExpression(t?.length?t:[-1])}await this.initializeFeatureItems()}async _updateSearchDefinitionExpression(t){const i=this._selectedLayer.definitionExpression;if(t?.length){const s=`objectId in(${t})`;this._selectedLayer.definitionExpression=i?.indexOf(this._searchExpression)>-1?i.replace(this._searchExpression,s):i?`${i} AND (${s})`:s,this._searchExpression=s}else this._clearSearchDefinitionExpression()}_clearSearchDefinitionExpression(){const t=this._selectedLayer.definitionExpression;this._searchExpression&&t?.indexOf(this._searchExpression)>-1&&(this._selectedLayer.definitionExpression=t?.indexOf(" AND ("+this._searchExpression)>-1?t.replace(` AND (${this._searchExpression})`,""):t.replace(this._searchExpression,"")),this._searchExpression=void 0}async featureClicked(t,i){if(this.clearHighlights(),this.highlightOnMap){const i=Number(t.target.value),s=await o(this.mapView,this.selectedLayerId);this._highlightHandle=await r([i],s,this.mapView,!0)}await this.emitSelectedFeature(i)}async emitSelectedFeature(t){const i=t.layer,s=i.createQuery();s.returnGeometry=!0,s.objectIds=[t.getObjectId()];const e=await i.queryFeatures(s);this.featureSelect.emit(e.features[0])}async onFeatureHover(t){if(this.clearHighlights(),this.highlightOnHover){const i=t.getObjectId(),s=await o(this.mapView,this.selectedLayerId);this._highlights&&(s.highlights=JSON.parse(this._highlights)),s.highlightOptions={color:new this.Color("#FFFF00")},this._highlights=JSON.stringify(s.highlights),this._highlightHandle=s.highlight([i])}}clearHighlights(){this._highlightHandle&&this._highlightHandle.remove()}async queryPage(t){const i=this._selectedLayer,s=this.sortingInfo?.field?this.sortingInfo.field:i.objectIdField,e=this.sortingInfo?.order?this.sortingInfo.order:"desc",a=await this.getWhereCondition(),h={start:t,num:this.pageSize,outFields:["*"],returnGeometry:!0,where:a,outSpatialReference:this.mapView.spatialReference.toJSON(),geometry:this.filterByMapExtent?this.mapView.extent:null};s&&e&&(h.orderByFields=[s.toString()+" "+e]);const l=await i.queryFeatures(h);return await this.createFeatureItem(l)}async createFeatureItem(t){const i=t?.features,s=this.reportingOptions&&this.reportingOptions[this.selectedLayerId].like,e=i.map((async t=>{const i=await this._popupUtils.getPopupTitle(t,this.mapView.map);let e,a;if(this.showUserImageInList){const i=this._selectedLayer.editFieldsInfo?.creatorField;i&&(e=await this.getUserInformation(t))}return this.showFeatureSymbol&&(a=await this.getFeatureSymbol(t)),s&&this.getAbbreviatedLikeCount(t),this.getFeatureItem(t,i,a,e)}));return Promise.all(e)}getAbbreviatedLikeCount(t){const i=this._selectedLayer,s=this.reportingOptions[i.id].likeField;i.fields.forEach((e=>{if(this._validFieldTypes.indexOf(e.type)>-1&&e.name===s&&this.reportingOptions[i.id].like){this._likeFieldAvailable=!0;let i=t.attributes[s]||0;i>999&&(i=i>999999?this._translations.millionsAbbreviation.replace("{{abbreviated_value}}",Math.floor(i/1e6).toString()):this._translations.thousandsAbbreviation.replace("{{abbreviated_value}}",Math.floor(i/1e3).toString())),this._abbreviatedLikeCount=i}}))}getFeatureItem(t,i,s,a){const h=t.attributes[this._selectedLayer.objectIdField].toString();i=i??h;const l=Number(t.attributes[this.reportingOptions?.[this._selectedLayer.id].likeField]).toLocaleString(),n="small"!==this.textSize||this.showFullTitle?"small"===this.textSize?"feature-list-popup-title-small":"feature-list-popup-title":"feature-list-popup-title-small-ellipsis",o=this._calciteList.offsetWidth-(this.showUserImageInList?115:65);return e("calcite-list-item",{onCalciteListItemSelect:i=>{this.featureClicked(i,t)},onMouseLeave:()=>{this.clearHighlights()},onMouseOver:()=>{this.onFeatureHover(t)},value:h},this.showUserImageInList&&e("calcite-avatar",{class:"profile-img","full-name":a?.fullName,scale:"m",slot:"content-start",thumbnail:a?.userProfileUrl,userId:a?.id,username:a?.fullName?a.username:void 0}),this.showFeatureSymbol&&e("div",{class:"feature-symbol",ref:t=>t&&t.replaceChildren(s),slot:"content-start"}),e("div",{class:`popup-title ${n}`,slot:"content-start",style:{maxWidth:"large"===this.textSize?"none":`${o}px`}},i),this._likeFieldAvailable&&e("div",{class:"like-container",id:h.concat("like"),slot:"content-end"},e("span",null,this._abbreviatedLikeCount),e("calcite-icon",{icon:"thumbs-up",scale:"s"}),e("calcite-tooltip",{overlayPositioning:"fixed",placement:"top","reference-element":h.concat("like")},l)),e("calcite-icon",{flipRtl:!0,icon:"chevron-right",scale:"s",slot:"content-end"}))}async getUserInformation(t){let i=this._selectedLayer.editFieldsInfo?.creatorField;t.attributes.hasOwnProperty(i.toLowerCase())?i=i.toLowerCase():t.attributes.hasOwnProperty(i.toUpperCase())&&(i=i.toUpperCase());let s=`${this.esriConfig.portalUrl}/sharing/rest/community/users/${t.attributes[i]}?f=json&returnUserLicensedItems=true`;const e=this.mapView.map.portalItem.portal?.credential?.token;e&&(s+=`&token=${e}`);const a=await fetch(s),h=await a.json();let l=`${this.esriConfig.portalUrl}/sharing/rest/community/users/${h?.username??t.attributes[i]}/info/blob.png`;return h?.access&&e&&(l+=`?token=${e}`),h.userProfileUrl=l,h}async getFeatureSymbol(t){const i=document.createElement("div");return await this.symbolUtils.getDisplayedSymbol(t).then((async t=>{if(t&&await(this.symbolUtils?.renderPreviewHTML(t,{node:i})),i.children?.length){const t=i.children[0];if(t){const i=Number(t.getAttribute("height")),s=Number(t.getAttribute("width"));s>30&&t.setAttribute("width","30"),i>30&&t.setAttribute("height","30"),t.setAttribute("viewBox",`0 0 ${s} ${i}`)}}})),i}async _getTranslations(){const t=await h(this.el);this._translations=t[0]}static get watchers(){return{locale:["localeWatchHandler"],selectedLayerId:["selectedLayerWatchHandler"],sortingInfo:["sortingInfoWatchHandler"],whereClause:["whereClauseHandler"],filterByMapExtent:["filterByMapExtentHandler"]}}};c.style=":host{display:block}.width-full{width:100%}.pagination{display:flex;justify-content:center}.error-msg{padding:10px;width:calc(100% - 20px)}.feature-list-popup-title{font-weight:500;white-space:pre-line}.feature-list-popup-title-small{font-size:small;white-space:pre-line}.feature-list-popup-title-small-ellipsis{font-size:small;white-space:nowrap !important;text-overflow:ellipsis;overflow:hidden}.popup-title{padding:0 5px;word-break:break-word}.profile-img{margin:0 5px;min-width:32px}.like-container{display:flex;align-items:center;gap:5px;color:gray !important;font-style:italic}.feature-symbol{padding:0 3px;min-width:30px;display:flex;justify-content:center}.search{padding:10px;background-color:var(--calcite-color-foreground-1) !important;border-block-end:1px solid var(--calcite-color-border-3)}";export{c as feature_list}
|
@@ -3,4 +3,4 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{r as t,c as i,g as s,h as e,H as a}from"./p-e996c38f.js";import{l as h,g as n}from"./p-404cbf48.js";import{f as l}from"./p-80cb7c73.js";import{s as r}from"./p-e6859850.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";import"./p-8717729a.js";const o=class{constructor(s){t(this,s),this.bufferComplete=i(this,"bufferComplete",7),this.distanceChanged=i(this,"distanceChanged",7),this.unitChanged=i(this,"unitChanged",7),this.appearance="text",this.distance=0,this.geometries=[],this.locale=void 0,this.max=void 0,this.min=0,this.sliderTicks=10,this.unionResults=!0,this.unit="meters",this.disabled=!1,this._translations=void 0}get el(){return s(this)}_geometryEngine;_bufferTimeout;_unitElement;_units;geometriesWatchHandler(){this._buffer()}disabledWatchHandler(){this._buffer()}async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}async getTranslatedUnit(t){return this._units||await this._defineTranslations(),this._units[t]}bufferComplete;distanceChanged;unitChanged;async componentWillLoad(){await this._defineTranslations(),await this._initModules()}render(){return e(a,{key:"56719f53eabb0743adb129546e27e7dc99399021"},"text"===this.appearance?this._getTextBoxDisplay():this._getSliderDisplay())}async _defineTranslations(){await this._getTranslations(),this._initTranslatedUnits()}async _initModules(){const[t]=await h(["esri/geometry/geometryEngine"]);this._geometryEngine=t}_initTranslatedUnits(){this._units={feet:this._translations.feet,meters:this._translations.meters,miles:this._translations.miles,kilometers:this._translations.kilometers}}_getUnits(){return Object.keys(this._units).map((t=>e("calcite-option",{label:this._units[t],selected:this.unit===t,value:t})))}_setDistance(t){const i=parseInt(t.target.value,10);this.distance!==i&&i>=this.min&&(this.distanceChanged.emit({oldValue:this.distance,newValue:i}),this.distance=i,this.distance>0?this._buffer():this.bufferComplete.emit(void 0))}_setUnit(t){this.unitChanged.emit({oldValue:this.unit,newValue:t}),this.unit=t,this._buffer()}_buffer(){this.disabled?this.bufferComplete.emit(void 0):(this._bufferTimeout&&clearTimeout(this._bufferTimeout),this._bufferTimeout=setTimeout((()=>{if(this.geometries?.length>0&&this.unit&&this.distance>0){const t=this.geometries[0].spatialReference,i=t.isWGS84||t.isWebMercator?this._geometryEngine.geodesicBuffer(this.geometries,this.distance,this.unit,this.unionResults):this._geometryEngine.buffer(this.geometries,this.distance,this.unit,this.unionResults);this.bufferComplete.emit(i)}}),400))}_getTextBoxDisplay(){return e("div",{class:"c-container"},e("calcite-input",{class:"padding-end-1 w-50",max:this.max&&this.max>0?this.max:void 0,min:this.min,"number-button-type":"vertical",onCalciteInputInput:t=>this._setDistance(t),placeholder:"0",type:"number",value:this.distance?this.distance.toString():void 0}),e("calcite-select",{class:"flex-1 w-50",label:"label",onCalciteSelectChange:()=>this._setUnit(this._unitElement.value),ref:t=>{this._unitElement=t}},this._getUnits()))}_getSliderDisplay(){return e("div",null,e("calcite-slider",{labelHandles:!0,max:this.max&&this.max>0?this.max:void 0,min:this.min,ticks:this.sliderTicks}))}async _getTranslations(){const t=await n(this.el);this._translations=t[0]}_testAccess(t,i){switch(t){case"_setUnit":return this._setUnit(i);case"_setDistance":return this._setDistance(i)}return null}static get watchers(){return{geometries:["geometriesWatchHandler"],disabled:["disabledWatchHandler"],locale:["localeWatchHandler"]}}};o.style=':host{display:block}.c-container{display:inline-flex}.flex-1{flex:"1"}.padding-end-1{padding-inline-end:1rem}.w-50{width:50%}';const c=class{constructor(s){t(this,s),this.selectionLoadingChange=i(this,"selectionLoadingChange",7),this.sketchGraphicsChange=i(this,"sketchGraphicsChange",7),this.drawUndo=i(this,"drawUndo",7),this.drawRedo=i(this,"drawRedo",7),this.active=!1,this.drawMode=l.SKETCH,this.editGraphicsEnabled=!0,this.graphics=void 0,this.locale=void 0,this.mapView=void 0,this.pointSymbol=void 0,this.polylineSymbol=void 0,this.polygonSymbol=void 0,this.redoEnabled=!1,this.undoEnabled=!1,this._translations=void 0,this._selectionMode=void 0}get el(){return s(this)}GraphicsLayer;SketchViewModel;Sketch;_sketchGraphicsLayer;_sketchViewModel;_sketchWidget;_sketchElement;graphicsWatchHandler(t,i){t&&t.length>0&&JSON.stringify(t)!==JSON.stringify(i)&&this._sketchGraphicsLayer&&(this._updateGraphicsSymbols(t),this._sketchGraphicsLayer.removeAll(),this._sketchGraphicsLayer.addMany(t))}async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}mapViewWatchHandler(t,i){t&&t!==i&&this._init()}async clear(){this._clearSketch()}async updateGraphics(){this._updateGraphics()}selectionLoadingChange;sketchGraphicsChange;drawUndo;drawRedo;async componentWillLoad(){await this._getTranslations(),await this._initModules()}componentDidLoad(){this._init()}disconnectedCallback(){this._sketchWidget.cancel(),this._clearSketch()}render(){const t=this.drawMode===l.SKETCH?"display-none":"esri-widget esri-sketch__panel border-left esri-sketch__section";return e(a,{key:"253db0399bab5d5fc6f4232bb537ddeec81fec2c"},e("div",{key:"bbac53da8b8b1196cc3a7aedf5479cd4e33ab3ea",class:this.drawMode===l.SKETCH?"border":"border esri-widget esri-sketch__panel"},e("div",{key:"8d3dae2c2f82f7e4d7aae92d4a4c6050d2a96478",ref:t=>{this._sketchElement=t}}),e("div",{key:"d635374374ebdff26157a1258ba84932d491e36a",class:t},e("calcite-action",{key:"fb437fec19fa7ffc57459e426ba988fd4d50c1e6",disabled:!this.undoEnabled,icon:"undo",onClick:()=>this._undo(),scale:"s",text:this._translations.undo}),e("calcite-action",{key:"fd3f4f3e8b722b95c0b7aad1fc6b909a97787b86",disabled:!this.redoEnabled,icon:"redo",onClick:()=>this._redo(),scale:"s",text:this._translations.redo}))))}async _initModules(){const[t,i,s]=await h(["esri/layers/GraphicsLayer","esri/widgets/Sketch","esri/widgets/Sketch/SketchViewModel"]);this.GraphicsLayer=t,this.Sketch=i,this.SketchViewModel=s}_init(){this.mapView&&this._sketchElement&&(this._initGraphicsLayer(),this._initSketch())}_initGraphicsLayer(){const t=this._translations.sketchLayer,i=this.mapView.map.layers.findIndex((i=>i.title===t));i>-1?this._sketchGraphicsLayer=this.mapView.map.layers.getItemAt(i):(this._sketchGraphicsLayer=new this.GraphicsLayer({title:t,listMode:"hide"}),r.managedLayers[t]="sketch",this.mapView.map.layers.add(this._sketchGraphicsLayer)),this.graphics&&this.graphics.length>0&&this._sketchGraphicsLayer.addMany(this.graphics)}_initSketch(){const t={layer:this._sketchGraphicsLayer,view:this.mapView,defaultCreateOptions:{mode:"hybrid"},defaultUpdateOptions:{preserveAspectRatio:!1,enableScaling:!1,enableRotation:!1,tool:"reshape",toggleToolOnClick:!1}};this._sketchWidget=new this.Sketch({...t,container:this._sketchElement,creationMode:"single",toolbarKind:"docked",visibleElements:{duplicateButton:!1,selectionTools:{"lasso-selection":!1,"rectangle-selection":!1},createTools:{circle:!1},undoRedoMenu:!1,settingsMenu:this.drawMode===l.SKETCH}}),this._sketchViewModel=new this.SketchViewModel({...t}),this._sketchWidget.viewModel.polylineSymbol=this.polylineSymbol,this._sketchWidget.viewModel.pointSymbol=this.pointSymbol,this._sketchWidget.viewModel.polygonSymbol=this.polygonSymbol;let i=!1;this._sketchWidget.on("create",(t=>{"complete"===t.state&&(this.graphics=[t.graphic],this.sketchGraphicsChange.emit({graphics:this.graphics,useOIDs:!1}),this.drawMode===l.REFINE&&(i=!0,this._sketchWidget.viewModel.create(t.tool))),"cancel"===t.state&&this.drawMode===l.REFINE&&i&&(i=!i,this._sketchWidget.viewModel.create(t.tool))})),this._sketchWidget.on("update",(t=>{if(this.editGraphicsEnabled){const i=t?.toolEventInfo?.type;"reshape-stop"!==i&&"move-stop"!==i||(this.graphics=t.graphics,this.sketchGraphicsChange.emit({graphics:this.graphics,useOIDs:!1}))}else this._sketchWidget.viewModel.cancel(),this._sketchViewModel.cancel()})),this._sketchWidget.on("delete",(()=>{this.graphics=[],this.sketchGraphicsChange.emit({graphics:this.graphics,useOIDs:!1})})),this._sketchWidget.on("undo",(t=>{this.graphics=t.graphics,this.sketchGraphicsChange.emit({graphics:this.graphics,useOIDs:!1})})),this._sketchWidget.on("redo",(t=>{this.graphics=t.graphics,this.sketchGraphicsChange.emit({graphics:this.graphics,useOIDs:!1})}))}_clearSketch(){this._sketchWidget?.viewModel.cancel(),this.graphics=[],this._sketchGraphicsLayer?.removeAll()}_undo(){this.drawUndo.emit()}_redo(){this.drawRedo.emit()}_updateGraphics(){setTimeout((()=>{1===this.graphics.length&&this._sketchWidget.update(this.graphics,{tool:"reshape",enableRotation:!1,enableScaling:!1,preserveAspectRatio:!1,toggleToolOnClick:!1})}),100)}_updateGraphicsSymbols(t){const i=t[0].geometry.type,s="point"===i?this.pointSymbol:"polyline"===i?this.polylineSymbol:"polygon"===i?this.polygonSymbol:void 0;s&&t.forEach((t=>t.symbol=s))}async _getTranslations(){const t=await n(this.el);this._translations=t[0]}static get watchers(){return{graphics:["graphicsWatchHandler"],locale:["localeWatchHandler"],mapView:["mapViewWatchHandler"]}}};c.style=':host{display:block}.border{outline:1px solid var(--calcite-color-border-input)}.div-visible{display:inherit}.div-not-visible{display:none !important}.padding-top-1-2{padding-top:.5rem}.main-label{display:flex;float:left}html[dir="rtl"] .main-label{display:flex;float:right}.margin-top-1{margin-top:1rem}.border-left{border-left:1px solid rgba(110, 110, 110, .3)}.border-left[dir="rtl"]{border-right:1px solid rgba(110, 110, 110, .3)}.esri-widget{box-sizing:border-box;color:#323232;font-size:14px;font-family:"Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;line-height:1.3em;background-color:#fff;--esri-widget-padding-v:12px;--esri-widget-padding-h:15px;--esri-widget-padding:var(--esri-widget-padding-v) var(--esri-widget-padding-h)}.esri-sketch__panel{align-items:center;display:flex;flex-flow:row wrap;padding:0;justify-content:flex-start !important}.esri-sketch__section{align-items:center;display:flex;flex-flow:row wrap;padding:0 7px;margin:6px 0}';export{o as buffer_tools,c as map_draw_tools}
|
6
|
+
import{r as t,c as i,g as s,h as e,H as a}from"./p-e996c38f.js";import{l as h,g as n}from"./p-404cbf48.js";import{f as r}from"./p-80cb7c73.js";import{s as o}from"./p-e6859850.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";import"./p-8717729a.js";const l=class{constructor(s){t(this,s),this.bufferComplete=i(this,"bufferComplete",7),this.distanceChanged=i(this,"distanceChanged",7),this.unitChanged=i(this,"unitChanged",7),this.appearance="text",this.distance=0,this.geometries=[],this.locale=void 0,this.max=void 0,this.min=0,this.sliderTicks=10,this.unionResults=!0,this.unit="meters",this.disabled=!1,this._translations=void 0}get el(){return s(this)}_geometryEngine;_bufferTimeout;_unitElement;_units;geometriesWatchHandler(){this._buffer()}disabledWatchHandler(){this._buffer()}async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}async getTranslatedUnit(t){return this._units||await this._defineTranslations(),this._units[t]}bufferComplete;distanceChanged;unitChanged;async componentWillLoad(){await this._defineTranslations(),await this._initModules()}render(){return e(a,{key:"56719f53eabb0743adb129546e27e7dc99399021"},"text"===this.appearance?this._getTextBoxDisplay():this._getSliderDisplay())}async _defineTranslations(){await this._getTranslations(),this._initTranslatedUnits()}async _initModules(){const[t]=await h(["esri/geometry/geometryEngine"]);this._geometryEngine=t}_initTranslatedUnits(){this._units={feet:this._translations.feet,meters:this._translations.meters,miles:this._translations.miles,kilometers:this._translations.kilometers}}_getUnits(){return Object.keys(this._units).map((t=>e("calcite-option",{label:this._units[t],selected:this.unit===t,value:t})))}_setDistance(t){const i=parseInt(t.target.value,10);this.distance!==i&&i>=this.min&&(this.distanceChanged.emit({oldValue:this.distance,newValue:i}),this.distance=i,this.distance>0?this._buffer():this.bufferComplete.emit(void 0))}_setUnit(t){this.unitChanged.emit({oldValue:this.unit,newValue:t}),this.unit=t,this._buffer()}_buffer(){this.disabled?this.bufferComplete.emit(void 0):(this._bufferTimeout&&clearTimeout(this._bufferTimeout),this._bufferTimeout=setTimeout((()=>{if(this.geometries?.length>0&&this.unit&&this.distance>0){const t=this.geometries[0].spatialReference,i=t.isWGS84||t.isWebMercator?this._geometryEngine.geodesicBuffer(this.geometries,this.distance,this.unit,this.unionResults):this._geometryEngine.buffer(this.geometries,this.distance,this.unit,this.unionResults);this.bufferComplete.emit(i)}}),400))}_getTextBoxDisplay(){return e("div",{class:"c-container"},e("calcite-input",{class:"padding-end-1 w-50",max:this.max&&this.max>0?this.max:void 0,min:this.min,"number-button-type":"vertical",onCalciteInputInput:t=>this._setDistance(t),placeholder:"0",type:"number",value:this.distance?this.distance.toString():void 0}),e("calcite-select",{class:"flex-1 w-50",label:"label",onCalciteSelectChange:()=>this._setUnit(this._unitElement.value),ref:t=>{this._unitElement=t}},this._getUnits()))}_getSliderDisplay(){return e("div",null,e("calcite-slider",{labelHandles:!0,max:this.max&&this.max>0?this.max:void 0,min:this.min,ticks:this.sliderTicks}))}async _getTranslations(){const t=await n(this.el);this._translations=t[0]}_testAccess(t,i){switch(t){case"_setUnit":return this._setUnit(i);case"_setDistance":return this._setDistance(i)}return null}static get watchers(){return{geometries:["geometriesWatchHandler"],disabled:["disabledWatchHandler"],locale:["localeWatchHandler"]}}};l.style=':host{display:block}.c-container{display:inline-flex}.flex-1{flex:"1"}.padding-end-1{padding-inline-end:1rem}.w-50{width:50%}';const c=class{constructor(s){t(this,s),this.selectionLoadingChange=i(this,"selectionLoadingChange",7),this.sketchGraphicsChange=i(this,"sketchGraphicsChange",7),this.drawUndo=i(this,"drawUndo",7),this.drawRedo=i(this,"drawRedo",7),this.active=!1,this.drawMode=r.SKETCH,this.editGraphicsEnabled=!0,this.graphics=void 0,this.locale=void 0,this.mapView=void 0,this.pointSymbol=void 0,this.polylineSymbol=void 0,this.polygonSymbol=void 0,this.redoEnabled=!1,this.undoEnabled=!1,this._translations=void 0,this._selectionMode=void 0}get el(){return s(this)}GraphicsLayer;SketchViewModel;Sketch;_sketchGraphicsLayer;_sketchViewModel;_sketchWidget;_sketchElement;graphicsWatchHandler(t,i){t&&t.length>0&&JSON.stringify(t)!==JSON.stringify(i)&&this._sketchGraphicsLayer&&(this._updateGraphicsSymbols(t),this._sketchGraphicsLayer.removeAll(),this._sketchGraphicsLayer.addMany(t))}async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}mapViewWatchHandler(t,i){t&&t!==i&&this._init()}async clear(){this._clearSketch()}async updateGraphics(){this._updateGraphics()}selectionLoadingChange;sketchGraphicsChange;drawUndo;drawRedo;async componentWillLoad(){await this._getTranslations(),await this._initModules()}componentDidLoad(){this._init()}disconnectedCallback(){this._sketchWidget.cancel(),this._clearSketch()}render(){const t=this.drawMode===r.SKETCH?"display-none":"esri-widget esri-sketch__panel border-left esri-sketch__section";return e(a,{key:"253db0399bab5d5fc6f4232bb537ddeec81fec2c"},e("div",{key:"bbac53da8b8b1196cc3a7aedf5479cd4e33ab3ea",class:this.drawMode===r.SKETCH?"border":"border esri-widget esri-sketch__panel"},e("div",{key:"8d3dae2c2f82f7e4d7aae92d4a4c6050d2a96478",ref:t=>{this._sketchElement=t}}),e("div",{key:"d635374374ebdff26157a1258ba84932d491e36a",class:t},e("calcite-action",{key:"fb437fec19fa7ffc57459e426ba988fd4d50c1e6",disabled:!this.undoEnabled,icon:"undo",onClick:()=>this._undo(),scale:"s",text:this._translations.undo}),e("calcite-action",{key:"fd3f4f3e8b722b95c0b7aad1fc6b909a97787b86",disabled:!this.redoEnabled,icon:"redo",onClick:()=>this._redo(),scale:"s",text:this._translations.redo}))))}async _initModules(){const[t,i,s]=await h(["esri/layers/GraphicsLayer","esri/widgets/Sketch","esri/widgets/Sketch/SketchViewModel"]);this.GraphicsLayer=t,this.Sketch=i,this.SketchViewModel=s}_init(){this.mapView&&this._sketchElement&&(this._initGraphicsLayer(),this._initSketch())}_initGraphicsLayer(){const t=this._translations.sketchLayer,i=this.mapView.map.layers.findIndex((i=>i.title===t));i>-1?this._sketchGraphicsLayer=this.mapView.map.layers.getItemAt(i):(this._sketchGraphicsLayer=new this.GraphicsLayer({title:t,listMode:"hide"}),o.managedLayers[t]="sketch",this.mapView.map.layers.add(this._sketchGraphicsLayer)),this.graphics&&this.graphics.length>0&&this._sketchGraphicsLayer.addMany(this.graphics)}_initSketch(){const t={layer:this._sketchGraphicsLayer,view:this.mapView,defaultCreateOptions:{mode:"hybrid"},defaultUpdateOptions:{preserveAspectRatio:!1,enableScaling:!1,enableRotation:!1,tool:"reshape",toggleToolOnClick:!1}};this._sketchWidget=new this.Sketch({...t,container:this._sketchElement,creationMode:"single",toolbarKind:"docked",visibleElements:{duplicateButton:!1,selectionTools:{"lasso-selection":!1,"rectangle-selection":!1},createTools:{circle:!1},undoRedoMenu:!1,settingsMenu:this.drawMode===r.SKETCH}}),this._sketchViewModel=new this.SketchViewModel({...t}),this._sketchWidget.viewModel.polylineSymbol=this.polylineSymbol,this._sketchWidget.viewModel.pointSymbol=this.pointSymbol,this._sketchWidget.viewModel.polygonSymbol=this.polygonSymbol;let i=!1;this._sketchWidget.on("create",(t=>{"complete"===t.state&&(this.graphics=[t.graphic],this.sketchGraphicsChange.emit({graphics:this.graphics,useOIDs:!1}),this.drawMode===r.REFINE&&(i=!0,this._sketchWidget.viewModel.create(t.tool))),"cancel"===t.state&&this.drawMode===r.REFINE&&i&&(i=!i,this._sketchWidget.viewModel.create(t.tool))})),this._sketchWidget.on("update",(t=>{if(this.editGraphicsEnabled){const i=t?.toolEventInfo?.type;"reshape-stop"!==i&&"move-stop"!==i||(this.graphics=t.graphics,this.sketchGraphicsChange.emit({graphics:this.graphics,useOIDs:!1}))}else this._sketchWidget.viewModel.cancel(),this._sketchViewModel.cancel()})),this._sketchWidget.on("delete",(()=>{this.graphics=[],this.sketchGraphicsChange.emit({graphics:this.graphics,useOIDs:!1})})),this._sketchWidget.on("undo",(t=>{this.graphics=t.graphics,this.sketchGraphicsChange.emit({graphics:this.graphics,useOIDs:!1})})),this._sketchWidget.on("redo",(t=>{this.graphics=t.graphics,this.sketchGraphicsChange.emit({graphics:this.graphics,useOIDs:!1})}))}_clearSketch(){this._sketchWidget?.viewModel.cancel(),this.graphics=[],this._sketchGraphicsLayer?.removeAll()}_undo(){this.drawUndo.emit()}_redo(){this.drawRedo.emit()}_updateGraphics(){setTimeout((()=>{1===this.graphics.length&&this._sketchWidget.update(this.graphics,{tool:"reshape",enableRotation:!1,enableScaling:!1,preserveAspectRatio:!1,toggleToolOnClick:!1})}),100)}_updateGraphicsSymbols(t){const i=t[0].geometry.type,s="point"===i?this.pointSymbol:"polyline"===i?this.polylineSymbol:"polygon"===i?this.polygonSymbol:void 0;s&&t.forEach((t=>t.symbol=s))}async _getTranslations(){const t=await n(this.el);this._translations=t[0]}static get watchers(){return{graphics:["graphicsWatchHandler"],locale:["localeWatchHandler"],mapView:["mapViewWatchHandler"]}}};c.style=':host{display:block}.border{outline:1px solid var(--calcite-color-border-input)}.div-visible{display:inherit}.div-not-visible{display:none !important}.padding-top-1-2{padding-top:.5rem}.main-label{display:flex;float:left}html[dir="rtl"] .main-label{display:flex;float:right}.margin-top-1{margin-top:1rem}.border-left{border-left:1px solid rgba(110, 110, 110, .3)}.border-left[dir="rtl"]{border-right:1px solid rgba(110, 110, 110, .3)}.esri-widget{box-sizing:border-box;color:#323232;font-size:14px;font-family:"Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;line-height:1.3em;background-color:#fff;--esri-widget-padding-v:12px;--esri-widget-padding-h:15px;--esri-widget-padding:var(--esri-widget-padding-v) var(--esri-widget-padding-h)}.esri-sketch__panel{align-items:center;display:flex;flex-flow:row wrap;padding:0;justify-content:flex-start !important}.esri-sketch__section{align-items:center;display:flex;flex-flow:row wrap;padding:0 7px;margin:6px 0}.esri-responsive-toolbar__bar--horizontal{--calcite-action-group-border-color:var(--calcite-color-border-3) !important}';export{l as buffer_tools,c as map_draw_tools}
|