diff --git a/src/assets/t9n/feature-comments/resources.json b/src/assets/t9n/feature-comments/resources.json deleted file mode 100644 index 0db3279e4..000000000 --- a/src/assets/t9n/feature-comments/resources.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - -} diff --git a/src/assets/t9n/feature-comments/resources_en.json b/src/assets/t9n/feature-comments/resources_en.json deleted file mode 100644 index 0db3279e4..000000000 --- a/src/assets/t9n/feature-comments/resources_en.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - -} diff --git a/src/assets/t9n/feature-form-flow-item/resources.json b/src/assets/t9n/feature-form-flow-item/resources.json deleted file mode 100644 index 0db3279e4..000000000 --- a/src/assets/t9n/feature-form-flow-item/resources.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - -} diff --git a/src/assets/t9n/feature-form-flow-item/resources_en.json b/src/assets/t9n/feature-form-flow-item/resources_en.json deleted file mode 100644 index 0db3279e4..000000000 --- a/src/assets/t9n/feature-form-flow-item/resources_en.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - -} diff --git a/src/assets/t9n/layout-manager/resources.json b/src/assets/t9n/layout-manager/resources.json deleted file mode 100644 index 968ddb1ce..000000000 --- a/src/assets/t9n/layout-manager/resources.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "layout": "Layout", - "grid": "Grid", - "vertical": "Vertical", - "horizontal": "Horizontal", - "appInfo": "Some basic information about the app" -} diff --git a/src/assets/t9n/layout-manager/resources_ar.json b/src/assets/t9n/layout-manager/resources_ar.json deleted file mode 100644 index 917088f4e..000000000 --- a/src/assets/t9n/layout-manager/resources_ar.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "layout": "تخطيط", - "grid": "شبكة", - "vertical": "رأسي", - "horizontal": "أفقياً", - "appInfo": "بعض المعلومات الأساسية عن التطبيق" -} diff --git a/src/assets/t9n/layout-manager/resources_bg.json b/src/assets/t9n/layout-manager/resources_bg.json deleted file mode 100644 index 5c4a9ca80..000000000 --- a/src/assets/t9n/layout-manager/resources_bg.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "layout": "Оформление", - "grid": "Мрежа", - "vertical": "Вертикално", - "horizontal": "Хоризонтално", - "appInfo": "Малко основна информация за приложението" -} diff --git a/src/assets/t9n/layout-manager/resources_bs.json b/src/assets/t9n/layout-manager/resources_bs.json deleted file mode 100644 index 85836850f..000000000 --- a/src/assets/t9n/layout-manager/resources_bs.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "layout": "Razmještaj", - "grid": "Mreža", - "vertical": "Okomito", - "horizontal": "Vodoravno", - "appInfo": "Neki osnovni podaci o aplikaciji" -} diff --git a/src/assets/t9n/layout-manager/resources_ca.json b/src/assets/t9n/layout-manager/resources_ca.json deleted file mode 100644 index d0414d274..000000000 --- a/src/assets/t9n/layout-manager/resources_ca.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "layout": "Disseny", - "grid": "Quadrícula", - "vertical": "Vertical", - "horizontal": "Horitzontal", - "appInfo": "Informació bàsica sobre l'aplicació" -} diff --git a/src/assets/t9n/layout-manager/resources_cs.json b/src/assets/t9n/layout-manager/resources_cs.json deleted file mode 100644 index 43567f08d..000000000 --- a/src/assets/t9n/layout-manager/resources_cs.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "layout": "Rozvržení", - "grid": "Mřížka", - "vertical": "Svisle", - "horizontal": "Vodorovně", - "appInfo": "Základní informace o aplikaci" -} diff --git a/src/assets/t9n/layout-manager/resources_da.json b/src/assets/t9n/layout-manager/resources_da.json deleted file mode 100644 index 85830e3d2..000000000 --- a/src/assets/t9n/layout-manager/resources_da.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "layout": "Layout", - "grid": "Gitter", - "vertical": "Lodret", - "horizontal": "Vandret", - "appInfo": "Grundlæggende oplysninger om app'en" -} diff --git a/src/assets/t9n/layout-manager/resources_de.json b/src/assets/t9n/layout-manager/resources_de.json deleted file mode 100644 index deffbaba0..000000000 --- a/src/assets/t9n/layout-manager/resources_de.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "layout": "Layout", - "grid": "Gitternetz", - "vertical": "Vertikal", - "horizontal": "Horizontal", - "appInfo": "Grundlegende Informationen zur App" -} diff --git a/src/assets/t9n/layout-manager/resources_el.json b/src/assets/t9n/layout-manager/resources_el.json deleted file mode 100644 index 27624dd95..000000000 --- a/src/assets/t9n/layout-manager/resources_el.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "layout": "Διάταξη", - "grid": "Πλέγμα", - "vertical": "Κατακόρυφα", - "horizontal": "Οριζόντια", - "appInfo": "Κάποιες βασικές πληροφορίες για αυτήν την εφαρμογή" -} diff --git a/src/assets/t9n/layout-manager/resources_en.json b/src/assets/t9n/layout-manager/resources_en.json deleted file mode 100644 index 968ddb1ce..000000000 --- a/src/assets/t9n/layout-manager/resources_en.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "layout": "Layout", - "grid": "Grid", - "vertical": "Vertical", - "horizontal": "Horizontal", - "appInfo": "Some basic information about the app" -} diff --git a/src/assets/t9n/layout-manager/resources_es.json b/src/assets/t9n/layout-manager/resources_es.json deleted file mode 100644 index ca7cb46ba..000000000 --- a/src/assets/t9n/layout-manager/resources_es.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "layout": "Diseño", - "grid": "Cuadrícula", - "vertical": "Vertical", - "horizontal": "Horizontal", - "appInfo": "Alguna información básica sobre la aplicación" -} diff --git a/src/assets/t9n/layout-manager/resources_et.json b/src/assets/t9n/layout-manager/resources_et.json deleted file mode 100644 index 1f3eb77c2..000000000 --- a/src/assets/t9n/layout-manager/resources_et.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "layout": "Paigutus", - "grid": "Ruudustik", - "vertical": "Vertikaalne", - "horizontal": "Horisontaalne", - "appInfo": "Mõned põhiandmed rakenduse kohta" -} diff --git a/src/assets/t9n/layout-manager/resources_fi.json b/src/assets/t9n/layout-manager/resources_fi.json deleted file mode 100644 index 9b47ab6b2..000000000 --- a/src/assets/t9n/layout-manager/resources_fi.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "layout": "Asettelu", - "grid": "Ruudukko", - "vertical": "Pysty", - "horizontal": "Vaaka", - "appInfo": "Perustietoja sovelluksesta" -} diff --git a/src/assets/t9n/layout-manager/resources_fr.json b/src/assets/t9n/layout-manager/resources_fr.json deleted file mode 100644 index c8ae2f20e..000000000 --- a/src/assets/t9n/layout-manager/resources_fr.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "layout": "Mise en page", - "grid": "Grille", - "vertical": "Vertical", - "horizontal": "Horizontal", - "appInfo": "Informations de base sur l’application" -} diff --git a/src/assets/t9n/layout-manager/resources_he.json b/src/assets/t9n/layout-manager/resources_he.json deleted file mode 100644 index 947acae5d..000000000 --- a/src/assets/t9n/layout-manager/resources_he.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "layout": "פריסה", - "grid": "גריד", - "vertical": "אנכי", - "horizontal": "אופקי", - "appInfo": "כמה פרטים בסיסיים על האפליקציה" -} diff --git a/src/assets/t9n/layout-manager/resources_hr.json b/src/assets/t9n/layout-manager/resources_hr.json deleted file mode 100644 index 85836850f..000000000 --- a/src/assets/t9n/layout-manager/resources_hr.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "layout": "Razmještaj", - "grid": "Mreža", - "vertical": "Okomito", - "horizontal": "Vodoravno", - "appInfo": "Neki osnovni podaci o aplikaciji" -} diff --git a/src/assets/t9n/layout-manager/resources_hu.json b/src/assets/t9n/layout-manager/resources_hu.json deleted file mode 100644 index eaf856774..000000000 --- a/src/assets/t9n/layout-manager/resources_hu.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "layout": "Kimenet", - "grid": "Rácsháló", - "vertical": "Függőleges", - "horizontal": "Vízszintes", - "appInfo": "Néhány alapvető információ az alkalmazással kapcsolatban" -} diff --git a/src/assets/t9n/layout-manager/resources_id.json b/src/assets/t9n/layout-manager/resources_id.json deleted file mode 100644 index 7d1c22e06..000000000 --- a/src/assets/t9n/layout-manager/resources_id.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "layout": "Tata Letak", - "grid": "Grid", - "vertical": "Vertikal", - "horizontal": "Horisontal", - "appInfo": "Beberapa informasi dasar tentang aplikasi" -} diff --git a/src/assets/t9n/layout-manager/resources_it.json b/src/assets/t9n/layout-manager/resources_it.json deleted file mode 100644 index 5f17e2988..000000000 --- a/src/assets/t9n/layout-manager/resources_it.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "layout": "Layout", - "grid": "Griglia", - "vertical": "Verticale", - "horizontal": "Orizzontale", - "appInfo": "Alcune informazioni di base sull'app" -} diff --git a/src/assets/t9n/layout-manager/resources_ja.json b/src/assets/t9n/layout-manager/resources_ja.json deleted file mode 100644 index a4929e020..000000000 --- a/src/assets/t9n/layout-manager/resources_ja.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "layout": "レイアウト", - "grid": "グリッド", - "vertical": "鉛直", - "horizontal": "水平", - "appInfo": "アプリに関する一部の基本情報" -} diff --git a/src/assets/t9n/layout-manager/resources_ko.json b/src/assets/t9n/layout-manager/resources_ko.json deleted file mode 100644 index d1fd25964..000000000 --- a/src/assets/t9n/layout-manager/resources_ko.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "layout": "레이아웃", - "grid": "그리드", - "vertical": "수직", - "horizontal": "수평", - "appInfo": "앱에 대한 일부 기본 정보" -} diff --git a/src/assets/t9n/layout-manager/resources_lt.json b/src/assets/t9n/layout-manager/resources_lt.json deleted file mode 100644 index f638fb250..000000000 --- a/src/assets/t9n/layout-manager/resources_lt.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "layout": "Maketas", - "grid": "Tinklelis", - "vertical": "Vertikalus", - "horizontal": "Horizontalus", - "appInfo": "Pagrindinė informacija apie programėlę" -} diff --git a/src/assets/t9n/layout-manager/resources_lv.json b/src/assets/t9n/layout-manager/resources_lv.json deleted file mode 100644 index ef694bf58..000000000 --- a/src/assets/t9n/layout-manager/resources_lv.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "layout": "Izkārtojums", - "grid": "Režģis", - "vertical": "Vertikāls", - "horizontal": "Horizontāls", - "appInfo": "Pamatinformācija par lietotni" -} diff --git a/src/assets/t9n/layout-manager/resources_nb.json b/src/assets/t9n/layout-manager/resources_nb.json deleted file mode 100644 index 7bced4cbf..000000000 --- a/src/assets/t9n/layout-manager/resources_nb.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "layout": "Oppsett", - "grid": "Rutenett", - "vertical": "Loddrett", - "horizontal": "Vannrett", - "appInfo": "Grunnleggende informasjon om appen" -} diff --git a/src/assets/t9n/layout-manager/resources_nl.json b/src/assets/t9n/layout-manager/resources_nl.json deleted file mode 100644 index 045f9dd40..000000000 --- a/src/assets/t9n/layout-manager/resources_nl.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "layout": "Lay-out", - "grid": "Raster", - "vertical": "Verticaal", - "horizontal": "Horizontaal", - "appInfo": "Basisinformatie over de app" -} diff --git a/src/assets/t9n/layout-manager/resources_pl.json b/src/assets/t9n/layout-manager/resources_pl.json deleted file mode 100644 index 5156571cc..000000000 --- a/src/assets/t9n/layout-manager/resources_pl.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "layout": "Kompozycja", - "grid": "Siatka", - "vertical": "Pionowo", - "horizontal": "Poziomo", - "appInfo": "Podstawowe informacje o aplikacji" -} diff --git a/src/assets/t9n/layout-manager/resources_pt-BR.json b/src/assets/t9n/layout-manager/resources_pt-BR.json deleted file mode 100644 index 5db202a1e..000000000 --- a/src/assets/t9n/layout-manager/resources_pt-BR.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "layout": "Layout", - "grid": "Grade", - "vertical": "Vertical", - "horizontal": "Horizontal", - "appInfo": "Algumas informações básicas sobre o aplicativo" -} diff --git a/src/assets/t9n/layout-manager/resources_pt-PT.json b/src/assets/t9n/layout-manager/resources_pt-PT.json deleted file mode 100644 index 16b7d3bcd..000000000 --- a/src/assets/t9n/layout-manager/resources_pt-PT.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "layout": "Layout", - "grid": "Grelha", - "vertical": "Vertical", - "horizontal": "Horizontal", - "appInfo": "Algumas informações básicas sobre a aplicação" -} diff --git a/src/assets/t9n/layout-manager/resources_ro.json b/src/assets/t9n/layout-manager/resources_ro.json deleted file mode 100644 index 8b3298a3e..000000000 --- a/src/assets/t9n/layout-manager/resources_ro.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "layout": "Configuraţie", - "grid": "Grilă", - "vertical": "Vertical", - "horizontal": "Orizontal", - "appInfo": "Unele informații de bază despre aplicație" -} diff --git a/src/assets/t9n/layout-manager/resources_ru.json b/src/assets/t9n/layout-manager/resources_ru.json deleted file mode 100644 index 44187c75a..000000000 --- a/src/assets/t9n/layout-manager/resources_ru.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "layout": "Компоновка", - "grid": "Сетка", - "vertical": "Вертикальная", - "horizontal": "Горизонтальная", - "appInfo": "Основная информация о приложении" -} diff --git a/src/assets/t9n/layout-manager/resources_sk.json b/src/assets/t9n/layout-manager/resources_sk.json deleted file mode 100644 index 071db8de2..000000000 --- a/src/assets/t9n/layout-manager/resources_sk.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "layout": "Rozloženie", - "grid": "Mriežka", - "vertical": "Vertikálne", - "horizontal": "Horizontálne", - "appInfo": "Niektoré základné informácie o aplikácii" -} diff --git a/src/assets/t9n/layout-manager/resources_sl.json b/src/assets/t9n/layout-manager/resources_sl.json deleted file mode 100644 index b4b0b7265..000000000 --- a/src/assets/t9n/layout-manager/resources_sl.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "layout": "Postavitev", - "grid": "Mreža", - "vertical": "Vertikalno", - "horizontal": "Horizontalno", - "appInfo": "Nekaj osnovnih podatkov o aplikaciji" -} diff --git a/src/assets/t9n/layout-manager/resources_sr.json b/src/assets/t9n/layout-manager/resources_sr.json deleted file mode 100644 index b0387bfd2..000000000 --- a/src/assets/t9n/layout-manager/resources_sr.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "layout": "Priprema za štampu", - "grid": "Mreža", - "vertical": "Vertikalno", - "horizontal": "Horizontalno", - "appInfo": "Neke osnovne informacije o aplikaciji" -} diff --git a/src/assets/t9n/layout-manager/resources_sv.json b/src/assets/t9n/layout-manager/resources_sv.json deleted file mode 100644 index c94dc5839..000000000 --- a/src/assets/t9n/layout-manager/resources_sv.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "layout": "Layout", - "grid": "Rutnät", - "vertical": "Vertikal", - "horizontal": "Horisontell", - "appInfo": "Lite grundläggande information om appen" -} diff --git a/src/assets/t9n/layout-manager/resources_th.json b/src/assets/t9n/layout-manager/resources_th.json deleted file mode 100644 index 642ef2bbb..000000000 --- a/src/assets/t9n/layout-manager/resources_th.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "layout": "หน้ากระดาษ", - "grid": "กริด", - "vertical": "แนวตั้ง", - "horizontal": "แนวนอน", - "appInfo": "ข้อมูลพื้นฐานบางส่วนเกี่ยวกับแอป" -} diff --git a/src/assets/t9n/layout-manager/resources_tr.json b/src/assets/t9n/layout-manager/resources_tr.json deleted file mode 100644 index 41692d701..000000000 --- a/src/assets/t9n/layout-manager/resources_tr.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "layout": "Çıktı Düzeni", - "grid": "Grid", - "vertical": "Dikey", - "horizontal": "Yatay", - "appInfo": "Uygulama hakkında bazı temel bilgiler" -} diff --git a/src/assets/t9n/layout-manager/resources_uk.json b/src/assets/t9n/layout-manager/resources_uk.json deleted file mode 100644 index cf072476c..000000000 --- a/src/assets/t9n/layout-manager/resources_uk.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "layout": "Компонування", - "grid": "Грід", - "vertical": "Вертикальна", - "horizontal": "Горизонтальна", - "appInfo": "Деякі основні відомості про додаток" -} diff --git a/src/assets/t9n/layout-manager/resources_vi.json b/src/assets/t9n/layout-manager/resources_vi.json deleted file mode 100644 index 2d9aa4ace..000000000 --- a/src/assets/t9n/layout-manager/resources_vi.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "layout": "Bố cục", - "grid": "Lưới", - "vertical": "Dọc", - "horizontal": "Ngang", - "appInfo": "Một số thông tin cơ bản về ứng dụng" -} diff --git a/src/assets/t9n/layout-manager/resources_zh-CN.json b/src/assets/t9n/layout-manager/resources_zh-CN.json deleted file mode 100644 index c971f4d1a..000000000 --- a/src/assets/t9n/layout-manager/resources_zh-CN.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "layout": "布局", - "grid": "格网", - "vertical": "垂直", - "horizontal": "水平", - "appInfo": "有关该应用程序的一些基本信息" -} diff --git a/src/assets/t9n/layout-manager/resources_zh-HK.json b/src/assets/t9n/layout-manager/resources_zh-HK.json deleted file mode 100644 index 77c36d695..000000000 --- a/src/assets/t9n/layout-manager/resources_zh-HK.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "layout": "版面配置", - "grid": "網格", - "vertical": "垂直", - "horizontal": "水平對齊", - "appInfo": "應用程式相關的部分基本資訊" -} diff --git a/src/assets/t9n/layout-manager/resources_zh-TW.json b/src/assets/t9n/layout-manager/resources_zh-TW.json deleted file mode 100644 index 77c36d695..000000000 --- a/src/assets/t9n/layout-manager/resources_zh-TW.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "layout": "版面配置", - "grid": "網格", - "vertical": "垂直", - "horizontal": "水平對齊", - "appInfo": "應用程式相關的部分基本資訊" -} diff --git a/src/assets/t9n/list-flow-item/resources.json b/src/assets/t9n/list-flow-item/resources.json deleted file mode 100644 index 0db3279e4..000000000 --- a/src/assets/t9n/list-flow-item/resources.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - -} diff --git a/src/assets/t9n/list-flow-item/resources_en.json b/src/assets/t9n/list-flow-item/resources_en.json deleted file mode 100644 index 0db3279e4..000000000 --- a/src/assets/t9n/list-flow-item/resources_en.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - -} diff --git a/src/assets/t9n/location-flow-item/resources.json b/src/assets/t9n/location-flow-item/resources.json deleted file mode 100644 index 0db3279e4..000000000 --- a/src/assets/t9n/location-flow-item/resources.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - -} diff --git a/src/assets/t9n/location-flow-item/resources_en.json b/src/assets/t9n/location-flow-item/resources_en.json deleted file mode 100644 index 0db3279e4..000000000 --- a/src/assets/t9n/location-flow-item/resources_en.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - -} diff --git a/src/components.d.ts b/src/components.d.ts index ac6be72a8..10faedca3 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -5,11 +5,11 @@ * It contains typing information for all components that exist in this project. */ import { HTMLStencilElement, JSXBase } from "@stencil/core/internal"; -import { AppLayout, ButtonType, DistanceUnit, EditType, EDrawMode, ELayoutMode, IBasemapConfig, IConsentResponse, IExportInfos, IFeatureServiceEnabledStatus, IInventoryItem, ILayerAndTableIds, ILayerExpression, IMapChange, IMapInfo, IReportingOptions, ISearchConfiguration, ISelectionSet, ISketchGraphicsChange, ISolutionSpatialReferenceInfo, ISortingInfo, ISpatialRefRepresentation, ITemplateInfo, IValueChange, theme } from "./utils/interfaces"; +import { AppLayout, ButtonType, DistanceUnit, EditType, EDrawMode, IBasemapConfig, IConsentResponse, IExportInfos, IFeatureServiceEnabledStatus, IInventoryItem, ILayerAndTableIds, ILayerExpression, IMapChange, IMapInfo, IReportingOptions, ISearchConfiguration, ISelectionSet, ISketchGraphicsChange, ISolutionSpatialReferenceInfo, ISortingInfo, ISpatialRefRepresentation, ITemplateInfo, IValueChange, theme } from "./utils/interfaces"; import { IReportingOptions as IReportingOptions1 } from "./components"; import { ILayerItemsHash } from "./components/layer-list/layer-list"; import { UserSession } from "@esri/solution-common"; -export { AppLayout, ButtonType, DistanceUnit, EditType, EDrawMode, ELayoutMode, IBasemapConfig, IConsentResponse, IExportInfos, IFeatureServiceEnabledStatus, IInventoryItem, ILayerAndTableIds, ILayerExpression, IMapChange, IMapInfo, IReportingOptions, ISearchConfiguration, ISelectionSet, ISketchGraphicsChange, ISolutionSpatialReferenceInfo, ISortingInfo, ISpatialRefRepresentation, ITemplateInfo, IValueChange, theme } from "./utils/interfaces"; +export { AppLayout, ButtonType, DistanceUnit, EditType, EDrawMode, IBasemapConfig, IConsentResponse, IExportInfos, IFeatureServiceEnabledStatus, IInventoryItem, ILayerAndTableIds, ILayerExpression, IMapChange, IMapInfo, IReportingOptions, ISearchConfiguration, ISelectionSet, ISketchGraphicsChange, ISolutionSpatialReferenceInfo, ISortingInfo, ISpatialRefRepresentation, ITemplateInfo, IValueChange, theme } from "./utils/interfaces"; export { IReportingOptions as IReportingOptions1 } from "./components"; export { ILayerItemsHash } from "./components/layer-list/layer-list"; export { UserSession } from "@esri/solution-common"; @@ -49,6 +49,10 @@ export namespace Components { * @returns Promise resolving with the translated unit */ "getTranslatedUnit": (unit: string) => Promise; + /** + * string: Locale to use for translation of stings in the UI + */ + "locale": string; /** * number: The component's maximum selectable value. */ @@ -91,6 +95,10 @@ export namespace Components { * esri/views/layers/FeatureLayer: https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html */ "layer": __esri.FeatureLayer; + /** + * string: Locale to use for translation of stings in the UI + */ + "locale": string; /** * esri/views/MapView: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html */ @@ -117,6 +125,10 @@ export namespace Components { * Initialize and return the telemetry instance if consent has been granted */ "getInstance": () => Promise; + /** + * string: Locale to use for translation of stings in the UI + */ + "locale": string; /** * string[]: Any ids for the analytics configured to receive events from the telemety instance */ @@ -147,6 +159,10 @@ export namespace Components { * boolean: When true the application will be in mobile mode, controls the mobile or desktop view */ "isMobile": boolean; + /** + * string: Locale to use for translation of stings in the UI + */ + "locale": string; /** * esri/views/MapView: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html */ @@ -183,6 +199,10 @@ export namespace Components { * boolean: Set this to true when have a custom submit button in the app. This will hide the header and footer elements of the editor and user needs to execute the submit method manually. */ "customizeSubmit"?: boolean; + /** + * string: Locale to use for translation of stings in the UI + */ + "locale": string; /** * esri/views/MapView: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html */ @@ -305,6 +325,10 @@ export namespace Components { * boolean: When true a introduction window has been enabled in the consuming application. Also when true a floating button will be shown in the lower right of the window that will emit an event when clicked that the consuming application can respond to that will open the introduction window. */ "introductionWindowEnabled": boolean; + /** + * string: Locale to use for translation of stings in the UI + */ + "locale": string; /** * IMapInfo[]: array of map infos (name and id) */ @@ -431,6 +455,10 @@ export namespace Components { * string: Id of the zoom level from URL params */ "level": string; + /** + * string: Locale to use for translation of stings in the UI + */ + "locale": string; /** * string: The text that will display at the top of the landing page */ @@ -519,6 +547,10 @@ export namespace Components { * esri/views/layers/FeatureLayer: https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html */ "layer": __esri.FeatureLayer; + /** + * string: Locale to use for translation of stings in the UI + */ + "locale": string; } interface DeleteDialog { /** @@ -529,6 +561,10 @@ export namespace Components { * esri/views/layers/FeatureLayer: https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html */ "layer": __esri.FeatureLayer; + /** + * string: Locale to use for translation of stings in the UI + */ + "locale": string; /** * boolean: When true the delete dialog will be displayed */ @@ -547,6 +583,10 @@ export namespace Components { * esri/Graphic[]: https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html */ "graphics": __esri.Graphic[]; + /** + * string: Locale to use for translation of stings in the UI + */ + "locale": string; /** * esri/views/MapView: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html */ @@ -556,8 +596,6 @@ export namespace Components { */ "open": boolean; } - interface FeatureComments { - } interface FeatureDetails { /** * Go to the previous feature in the features widget @@ -571,6 +609,10 @@ export namespace Components { * ILayerItemsHash: LayerDetailsHash for each layer in the map */ "layerItemsHash": ILayerItemsHash; + /** + * string: Locale to use for translation of stings in the UI + */ + "locale": string; /** * esri/views/MapView: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html */ @@ -597,8 +639,6 @@ export namespace Components { */ "toggleListView": () => Promise; } - interface FeatureFormFlowItem { - } interface FeatureList { /** * boolean: If true will consider the FeatureFilter applied on the layerview @@ -612,6 +652,10 @@ export namespace Components { * boolean: Highlight feature on map optional (default false) boolean to indicate if we should highlight and zoom to the extent of the feature geometry */ "highlightOnMap"?: boolean; + /** + * string: Locale to use for translation of stings in the UI + */ + "locale": string; /** * esri/views/View: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html */ @@ -667,8 +711,6 @@ export namespace Components { */ "whereClause"?: string; } - interface FeaturesFlowItem { - } interface FloorFilter { /** * boolean: when true the Floor Filter widget will be available @@ -717,6 +759,10 @@ export namespace Components { * When true the component will render an optimized view for mobile devices */ "isMobile": boolean; + /** + * string: Locale to use for translation of stings in the UI + */ + "locale": string; /** * esri/views/MapView: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html */ @@ -765,6 +811,10 @@ export namespace Components { * Contains a unique identifier for when we have multiple instances of the editor. For example when we want to show an item's data as well as an item's properties. */ "instanceid": any; + /** + * string: Locale to use for translation of stings in the UI + */ + "locale": string; /** * Frees the editor events and memory; to be called when the web component is no longer needed. Because the component lifecycle doesn't include an "onDestroy" event (@see https://stenciljs.com/docs/component-lifecycle#disconnectedcallback) and TypeScript/JavaScript does automatic garbage collection without a callback hook until ES2021 (@see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/FinalizationRegistry), this cleanup call needs to be called manually. */ @@ -794,6 +844,10 @@ export namespace Components { * string[]: If passed will show only these layers in the list if they are present in map and are editable */ "layers": string[]; + /** + * string: Locale to use for translation of stings in the UI + */ + "locale": string; /** * esri/views/View: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html */ @@ -869,6 +923,10 @@ export namespace Components { * When true the component will render an optimized view for mobile devices */ "isMobile": boolean; + /** + * string: Locale to use for translation of stings in the UI + */ + "locale": string; /** * boolean: when true the map is hidden and map specific controls should be hidden */ @@ -914,12 +972,6 @@ export namespace Components { */ "zoomToScale": number; } - interface LayoutManager { - } - interface ListFlowItem { - } - interface LocationFlowItem { - } interface MapCard { /** * AppLayout: the current app layout @@ -997,6 +1049,10 @@ export namespace Components { * When true the component will render an optimized view for mobile devices */ "isMobile": boolean; + /** + * string: Locale to use for translation of stings in the UI + */ + "locale": string; /** * IMapInfo: key configuration details about the current map */ @@ -1092,6 +1148,10 @@ export namespace Components { * esri/Graphic: https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html */ "graphics": __esri.Graphic[]; + /** + * string: Locale to use for translation of stings in the UI + */ + "locale": string; /** * esri/views/View: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html */ @@ -1161,6 +1221,10 @@ export namespace Components { * When true the component will render an optimized view for mobile devices */ "isMobile": boolean; + /** + * string: Locale to use for translation of stings in the UI + */ + "locale": string; /** * esri/views/View: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html */ @@ -1221,6 +1285,10 @@ export namespace Components { * boolean: when true map list will shown in half width. */ "isMapLayout"?: boolean; + /** + * string: Locale to use for translation of stings in the UI + */ + "locale": string; /** * IMapInfo[]: array of map infos (name and id) */ @@ -1406,6 +1474,10 @@ export namespace Components { * "horizontal" | "vertical": used to control the orientation of the tools */ "layout": "horizontal" | "vertical"; + /** + * string: Locale to use for translation of stings in the UI + */ + "locale": string; /** * esri/views/View: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html */ @@ -1461,6 +1533,10 @@ export namespace Components { * @returns Promise resolving when function is done */ "downloadPDF": (webmap: __esri.Map, exportInfos: IExportInfos, removeDuplicates?: boolean, title?: string, initialImageDataUrl?: string) => Promise; + /** + * string: Locale to use for translation of stings in the UI + */ + "locale": string; } interface PublicNotification { /** @@ -1564,8 +1640,6 @@ export namespace Components { */ "sketchPolygonSymbol": __esri.SimpleFillSymbol | any; } - interface RefineResultsFlowItem { - } interface RefineSelection { /** * esri/views/layers/FeatureLayerView: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-FeatureLayerView.html @@ -1608,6 +1682,10 @@ export namespace Components { */ "authentication": UserSession; "getSpatialReferenceInfo": () => Promise; + /** + * string: Locale to use for translation of stings in the UI + */ + "locale": string; "saveSolution": () => Promise; "serializedAuthentication": string; /** @@ -1639,6 +1717,10 @@ export namespace Components { * A template's itemId. */ "itemId": string; + /** + * string: Locale to use for translation of stings in the UI + */ + "locale": string; /** * Contains the organization based variables */ @@ -1649,6 +1731,10 @@ export namespace Components { "solutionVariables": string; } interface SolutionItemAccordion { + /** + * string: Locale to use for translation of stings in the UI + */ + "locale": string; /** * ITemplateInfo[]: Collection of template infos */ @@ -1659,6 +1745,10 @@ export namespace Components { * A template's itemId. */ "itemId": string; + /** + * string: Locale to use for translation of stings in the UI + */ + "locale": string; } interface SolutionItemIcon { /** @@ -1680,8 +1770,16 @@ export namespace Components { * A template's groupId. */ "groupId": string; + /** + * string: Locale to use for translation of stings in the UI + */ + "locale": string; } interface SolutionOrganizationVariables { + /** + * string: Locale to use for translation of stings in the UI + */ + "locale": string; /** * Contains the public value for this component. */ @@ -1696,6 +1794,10 @@ export namespace Components { * A template's itemId. This is used to get the correct model from a store in the json-editor */ "itemId": string; + /** + * string: Locale to use for translation of stings in the UI + */ + "locale": string; } interface SolutionSpatialRef { /** @@ -1719,6 +1821,10 @@ export namespace Components { * List of services the spatial reference should apply to */ "featureServices": IFeatureServiceEnabledStatus[]; + /** + * string: Locale to use for translation of stings in the UI + */ + "locale": string; } interface SolutionTemplateData { /** @@ -1729,6 +1835,10 @@ export namespace Components { * A template's itemId. This is used to get the correct model from a store in the json-editor */ "itemId": string; + /** + * string: Locale to use for translation of stings in the UI + */ + "locale": string; "organizationVariables": string; /** * Contains the solution based variables @@ -1740,6 +1850,10 @@ export namespace Components { "varsOpen": boolean; } interface SolutionVariables { + /** + * string: Locale to use for translation of stings in the UI + */ + "locale": string; /** * Contains the public value for this component. */ @@ -1764,6 +1878,10 @@ export namespace Components { * Returns the current spatial reference description. (Exposes protected variable `spatialRef` for testing.) */ "getSpatialRef": () => Promise; + /** + * string: Locale to use for translation of stings in the UI + */ + "locale": string; /** * Contains the public value for this component, which is a wkid or a wkt. */ @@ -1863,10 +1981,6 @@ export interface LayerTableCustomEvent extends CustomEvent { detail: T; target: HTMLLayerTableElement; } -export interface LayoutManagerCustomEvent extends CustomEvent { - detail: T; - target: HTMLLayoutManagerElement; -} export interface MapCardCustomEvent extends CustomEvent { detail: T; target: HTMLMapCardElement; @@ -2139,12 +2253,6 @@ declare global { prototype: HTMLEditCardElement; new (): HTMLEditCardElement; }; - interface HTMLFeatureCommentsElement extends Components.FeatureComments, HTMLStencilElement { - } - var HTMLFeatureCommentsElement: { - prototype: HTMLFeatureCommentsElement; - new (): HTMLFeatureCommentsElement; - }; interface HTMLFeatureDetailsElementEventMap { "loadingStatus": boolean; "commentSelect": __esri.Graphic; @@ -2166,12 +2274,6 @@ declare global { prototype: HTMLFeatureDetailsElement; new (): HTMLFeatureDetailsElement; }; - interface HTMLFeatureFormFlowItemElement extends Components.FeatureFormFlowItem, HTMLStencilElement { - } - var HTMLFeatureFormFlowItemElement: { - prototype: HTMLFeatureFormFlowItemElement; - new (): HTMLFeatureFormFlowItemElement; - }; interface HTMLFeatureListElementEventMap { "featureSelect": __esri.Graphic; } @@ -2189,12 +2291,6 @@ declare global { prototype: HTMLFeatureListElement; new (): HTMLFeatureListElement; }; - interface HTMLFeaturesFlowItemElement extends Components.FeaturesFlowItem, HTMLStencilElement { - } - var HTMLFeaturesFlowItemElement: { - prototype: HTMLFeaturesFlowItemElement; - new (): HTMLFeaturesFlowItemElement; - }; interface HTMLFloorFilterElementEventMap { "facilityChanged": string; "levelChanged": string; @@ -2274,35 +2370,6 @@ declare global { prototype: HTMLLayerTableElement; new (): HTMLLayerTableElement; }; - interface HTMLLayoutManagerElementEventMap { - "layoutChanged": ELayoutMode; - } - interface HTMLLayoutManagerElement extends Components.LayoutManager, HTMLStencilElement { - addEventListener(type: K, listener: (this: HTMLLayoutManagerElement, ev: LayoutManagerCustomEvent) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLLayoutManagerElement, ev: LayoutManagerCustomEvent) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; - } - var HTMLLayoutManagerElement: { - prototype: HTMLLayoutManagerElement; - new (): HTMLLayoutManagerElement; - }; - interface HTMLListFlowItemElement extends Components.ListFlowItem, HTMLStencilElement { - } - var HTMLListFlowItemElement: { - prototype: HTMLListFlowItemElement; - new (): HTMLListFlowItemElement; - }; - interface HTMLLocationFlowItemElement extends Components.LocationFlowItem, HTMLStencilElement { - } - var HTMLLocationFlowItemElement: { - prototype: HTMLLocationFlowItemElement; - new (): HTMLLocationFlowItemElement; - }; interface HTMLMapCardElementEventMap { "mapChanged": IMapChange; "beforeMapChanged": void; @@ -2460,12 +2527,6 @@ declare global { prototype: HTMLPublicNotificationElement; new (): HTMLPublicNotificationElement; }; - interface HTMLRefineResultsFlowItemElement extends Components.RefineResultsFlowItem, HTMLStencilElement { - } - var HTMLRefineResultsFlowItemElement: { - prototype: HTMLRefineResultsFlowItemElement; - new (): HTMLRefineResultsFlowItemElement; - }; interface HTMLRefineSelectionElementEventMap { "selectionLoadingChange": boolean; "selectionSetsChanged": ISelectionSet[]; @@ -2656,19 +2717,13 @@ declare global { "delete-button": HTMLDeleteButtonElement; "delete-dialog": HTMLDeleteDialogElement; "edit-card": HTMLEditCardElement; - "feature-comments": HTMLFeatureCommentsElement; "feature-details": HTMLFeatureDetailsElement; - "feature-form-flow-item": HTMLFeatureFormFlowItemElement; "feature-list": HTMLFeatureListElement; - "features-flow-item": HTMLFeaturesFlowItemElement; "floor-filter": HTMLFloorFilterElement; "info-card": HTMLInfoCardElement; "json-editor": HTMLJsonEditorElement; "layer-list": HTMLLayerListElement; "layer-table": HTMLLayerTableElement; - "layout-manager": HTMLLayoutManagerElement; - "list-flow-item": HTMLListFlowItemElement; - "location-flow-item": HTMLLocationFlowItemElement; "map-card": HTMLMapCardElement; "map-draw-tools": HTMLMapDrawToolsElement; "map-fullscreen": HTMLMapFullscreenElement; @@ -2681,7 +2736,6 @@ declare global { "pci-calculator": HTMLPciCalculatorElement; "pdf-download": HTMLPdfDownloadElement; "public-notification": HTMLPublicNotificationElement; - "refine-results-flow-item": HTMLRefineResultsFlowItemElement; "refine-selection": HTMLRefineSelectionElement; "share-item": HTMLShareItemElement; "solution-configuration": HTMLSolutionConfigurationElement; @@ -2731,6 +2785,10 @@ declare namespace LocalJSX { * esri/geometry/Geometry: https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Geometry.html */ "geometries"?: __esri.Geometry[]; + /** + * string: Locale to use for translation of stings in the UI + */ + "locale"?: string; /** * number: The component's maximum selectable value. */ @@ -2785,6 +2843,10 @@ declare namespace LocalJSX { * esri/views/layers/FeatureLayer: https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html */ "layer"?: __esri.FeatureLayer; + /** + * string: Locale to use for translation of stings in the UI + */ + "locale"?: string; /** * esri/views/MapView: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html */ @@ -2819,6 +2881,10 @@ declare namespace LocalJSX { * string: The name to use for the variable stored in the browsers local storge that will keep track of the users choice for consent */ "firstUseVar": string; + /** + * string: Locale to use for translation of stings in the UI + */ + "locale"?: string; /** * string[]: Any ids for the analytics configured to receive events from the telemety instance */ @@ -2853,6 +2919,10 @@ declare namespace LocalJSX { * boolean: When true the application will be in mobile mode, controls the mobile or desktop view */ "isMobile"?: boolean; + /** + * string: Locale to use for translation of stings in the UI + */ + "locale"?: string; /** * esri/views/MapView: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html */ @@ -2903,6 +2973,10 @@ declare namespace LocalJSX { * boolean: Set this to true when have a custom submit button in the app. This will hide the header and footer elements of the editor and user needs to execute the submit method manually. */ "customizeSubmit"?: boolean; + /** + * string: Locale to use for translation of stings in the UI + */ + "locale"?: string; /** * esri/views/MapView: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html */ @@ -3037,6 +3111,10 @@ declare namespace LocalJSX { * boolean: When true a introduction window has been enabled in the consuming application. Also when true a floating button will be shown in the lower right of the window that will emit an event when clicked that the consuming application can respond to that will open the introduction window. */ "introductionWindowEnabled"?: boolean; + /** + * string: Locale to use for translation of stings in the UI + */ + "locale"?: string; /** * IMapInfo[]: array of map infos (name and id) */ @@ -3171,6 +3249,10 @@ declare namespace LocalJSX { * string: Id of the zoom level from URL params */ "level"?: string; + /** + * string: Locale to use for translation of stings in the UI + */ + "locale"?: string; /** * string: The text that will display at the top of the landing page */ @@ -3267,6 +3349,10 @@ declare namespace LocalJSX { * esri/views/layers/FeatureLayer: https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html */ "layer"?: __esri.FeatureLayer; + /** + * string: Locale to use for translation of stings in the UI + */ + "locale"?: string; /** * Emitted on demand when features have been deleted */ @@ -3281,6 +3367,10 @@ declare namespace LocalJSX { * esri/views/layers/FeatureLayer: https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html */ "layer"?: __esri.FeatureLayer; + /** + * string: Locale to use for translation of stings in the UI + */ + "locale"?: string; /** * Emitted on demand when features have been deleted */ @@ -3307,6 +3397,10 @@ declare namespace LocalJSX { * esri/Graphic[]: https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html */ "graphics"?: __esri.Graphic[]; + /** + * string: Locale to use for translation of stings in the UI + */ + "locale"?: string; /** * esri/views/MapView: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html */ @@ -3328,8 +3422,6 @@ declare namespace LocalJSX { */ "open"?: boolean; } - interface FeatureComments { - } interface FeatureDetails { /** * esri/Graphic: https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html @@ -3339,6 +3431,10 @@ declare namespace LocalJSX { * ILayerItemsHash: LayerDetailsHash for each layer in the map */ "layerItemsHash"?: ILayerItemsHash; + /** + * string: Locale to use for translation of stings in the UI + */ + "locale"?: string; /** * esri/views/MapView: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html */ @@ -3372,8 +3468,6 @@ declare namespace LocalJSX { */ "showUserImageInCommentsList"?: boolean; } - interface FeatureFormFlowItem { - } interface FeatureList { /** * boolean: If true will consider the FeatureFilter applied on the layerview @@ -3387,6 +3481,10 @@ declare namespace LocalJSX { * boolean: Highlight feature on map optional (default false) boolean to indicate if we should highlight and zoom to the extent of the feature geometry */ "highlightOnMap"?: boolean; + /** + * string: Locale to use for translation of stings in the UI + */ + "locale"?: string; /** * esri/views/View: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html */ @@ -3440,8 +3538,6 @@ declare namespace LocalJSX { */ "whereClause"?: string; } - interface FeaturesFlowItem { - } interface FloorFilter { /** * boolean: when true the Floor Filter widget will be available @@ -3493,6 +3589,10 @@ declare namespace LocalJSX { * When true the component will render an optimized view for mobile devices */ "isMobile"?: boolean; + /** + * string: Locale to use for translation of stings in the UI + */ + "locale"?: string; /** * esri/views/MapView: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html */ @@ -3527,6 +3627,10 @@ declare namespace LocalJSX { * Contains a unique identifier for when we have multiple instances of the editor. For example when we want to show an item's data as well as an item's properties. */ "instanceid"?: any; + /** + * string: Locale to use for translation of stings in the UI + */ + "locale"?: string; /** * Contains the public value for this component; it is not changed by the editor. When changed, the change overwrites the contents of the editor. */ @@ -3541,6 +3645,10 @@ declare namespace LocalJSX { * string[]: If passed will show only these layers in the list if they are present in map and are editable */ "layers"?: string[]; + /** + * string: Locale to use for translation of stings in the UI + */ + "locale"?: string; /** * esri/views/View: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html */ @@ -3607,6 +3715,10 @@ declare namespace LocalJSX { * When true the component will render an optimized view for mobile devices */ "isMobile"?: boolean; + /** + * string: Locale to use for translation of stings in the UI + */ + "locale"?: string; /** * boolean: when true the map is hidden and map specific controls should be hidden */ @@ -3656,16 +3768,6 @@ declare namespace LocalJSX { */ "zoomToScale"?: number; } - interface LayoutManager { - /** - * Emitted when the layout should change - */ - "onLayoutChanged"?: (event: LayoutManagerCustomEvent) => void; - } - interface ListFlowItem { - } - interface LocationFlowItem { - } interface MapCard { /** * AppLayout: the current app layout @@ -3743,6 +3845,10 @@ declare namespace LocalJSX { * When true the component will render an optimized view for mobile devices */ "isMobile"?: boolean; + /** + * string: Locale to use for translation of stings in the UI + */ + "locale"?: string; /** * IMapInfo: key configuration details about the current map */ @@ -3837,6 +3943,10 @@ declare namespace LocalJSX { * esri/Graphic: https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html */ "graphics"?: __esri.Graphic[]; + /** + * string: Locale to use for translation of stings in the UI + */ + "locale"?: string; /** * esri/views/View: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html */ @@ -3921,6 +4031,10 @@ declare namespace LocalJSX { * When true the component will render an optimized view for mobile devices */ "isMobile"?: boolean; + /** + * string: Locale to use for translation of stings in the UI + */ + "locale"?: string; /** * esri/views/View: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html */ @@ -3985,6 +4099,10 @@ declare namespace LocalJSX { * boolean: when true map list will shown in half width. */ "isMapLayout"?: boolean; + /** + * string: Locale to use for translation of stings in the UI + */ + "locale"?: string; /** * IMapInfo[]: array of map infos (name and id) */ @@ -4163,6 +4281,10 @@ declare namespace LocalJSX { * "horizontal" | "vertical": used to control the orientation of the tools */ "layout"?: "horizontal" | "vertical"; + /** + * string: Locale to use for translation of stings in the UI + */ + "locale"?: string; /** * esri/views/View: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html */ @@ -4199,6 +4321,10 @@ declare namespace LocalJSX { * boolean: Controls the enabled/disabled state of download */ "disabled"?: boolean; + /** + * string: Locale to use for translation of stings in the UI + */ + "locale"?: string; } interface PublicNotification { /** @@ -4306,8 +4432,6 @@ declare namespace LocalJSX { */ "sketchPolygonSymbol"?: __esri.SimpleFillSymbol | any; } - interface RefineResultsFlowItem { - } interface RefineSelection { /** * esri/views/layers/FeatureLayerView: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-FeatureLayerView.html @@ -4357,6 +4481,10 @@ declare namespace LocalJSX { * Credentials for requests, which can be a serialized UserSession */ "authentication"?: UserSession; + /** + * string: Locale to use for translation of stings in the UI + */ + "locale"?: string; "serializedAuthentication"?: string; /** * Used to show/hide loading indicator @@ -4387,6 +4515,10 @@ declare namespace LocalJSX { * A template's itemId. */ "itemId"?: string; + /** + * string: Locale to use for translation of stings in the UI + */ + "locale"?: string; /** * Contains the organization based variables */ @@ -4397,6 +4529,10 @@ declare namespace LocalJSX { "solutionVariables"?: string; } interface SolutionItemAccordion { + /** + * string: Locale to use for translation of stings in the UI + */ + "locale"?: string; /** * ITemplateInfo[]: Collection of template infos */ @@ -4407,6 +4543,10 @@ declare namespace LocalJSX { * A template's itemId. */ "itemId"?: string; + /** + * string: Locale to use for translation of stings in the UI + */ + "locale"?: string; } interface SolutionItemIcon { /** @@ -4427,8 +4567,16 @@ declare namespace LocalJSX { * A template's groupId. */ "groupId"?: string; + /** + * string: Locale to use for translation of stings in the UI + */ + "locale"?: string; } interface SolutionOrganizationVariables { + /** + * string: Locale to use for translation of stings in the UI + */ + "locale"?: string; "onOrganizationVariableSelected"?: (event: SolutionOrganizationVariablesCustomEvent<{ itemId: string, value: string }>) => void; /** * Contains the public value for this component. @@ -4444,6 +4592,10 @@ declare namespace LocalJSX { * A template's itemId. This is used to get the correct model from a store in the json-editor */ "itemId"?: string; + /** + * string: Locale to use for translation of stings in the UI + */ + "locale"?: string; } interface SolutionSpatialRef { /** @@ -4458,6 +4610,10 @@ declare namespace LocalJSX { * List of services the spatial reference should apply to */ "featureServices"?: IFeatureServiceEnabledStatus[]; + /** + * string: Locale to use for translation of stings in the UI + */ + "locale"?: string; "onEnableDefaultSpatialReferenceChange"?: (event: SolutionSpatialRefCustomEvent<{ defaultWkid: string }>) => void; "onEnabledSpatialReferenceChange"?: (event: SolutionSpatialRefCustomEvent<{ enabled: boolean }>) => void; "onFeatureServiceSpatialReferenceChange"?: (event: SolutionSpatialRefCustomEvent) => void; @@ -4471,6 +4627,10 @@ declare namespace LocalJSX { * A template's itemId. This is used to get the correct model from a store in the json-editor */ "itemId"?: string; + /** + * string: Locale to use for translation of stings in the UI + */ + "locale"?: string; "organizationVariables"?: string; /** * Contains the solution based variables @@ -4482,6 +4642,10 @@ declare namespace LocalJSX { "varsOpen"?: boolean; } interface SolutionVariables { + /** + * string: Locale to use for translation of stings in the UI + */ + "locale"?: string; "onSolutionVariableSelected"?: (event: SolutionVariablesCustomEvent<{ itemId: string, value: string }>) => void; /** * Contains the public value for this component. @@ -4497,6 +4661,10 @@ declare namespace LocalJSX { * When true, all are disabled to prevent interaction. */ "disabled"?: boolean; + /** + * string: Locale to use for translation of stings in the UI + */ + "locale"?: string; "onSpatialReferenceChange"?: (event: SpatialRefCustomEvent) => void; /** * Contains the public value for this component, which is a wkid or a wkt. @@ -4532,19 +4700,13 @@ declare namespace LocalJSX { "delete-button": DeleteButton; "delete-dialog": DeleteDialog; "edit-card": EditCard; - "feature-comments": FeatureComments; "feature-details": FeatureDetails; - "feature-form-flow-item": FeatureFormFlowItem; "feature-list": FeatureList; - "features-flow-item": FeaturesFlowItem; "floor-filter": FloorFilter; "info-card": InfoCard; "json-editor": JsonEditor; "layer-list": LayerList; "layer-table": LayerTable; - "layout-manager": LayoutManager; - "list-flow-item": ListFlowItem; - "location-flow-item": LocationFlowItem; "map-card": MapCard; "map-draw-tools": MapDrawTools; "map-fullscreen": MapFullscreen; @@ -4557,7 +4719,6 @@ declare namespace LocalJSX { "pci-calculator": PciCalculator; "pdf-download": PdfDownload; "public-notification": PublicNotification; - "refine-results-flow-item": RefineResultsFlowItem; "refine-selection": RefineSelection; "share-item": ShareItem; "solution-configuration": SolutionConfiguration; @@ -4593,19 +4754,13 @@ declare module "@stencil/core" { "delete-button": LocalJSX.DeleteButton & JSXBase.HTMLAttributes; "delete-dialog": LocalJSX.DeleteDialog & JSXBase.HTMLAttributes; "edit-card": LocalJSX.EditCard & JSXBase.HTMLAttributes; - "feature-comments": LocalJSX.FeatureComments & JSXBase.HTMLAttributes; "feature-details": LocalJSX.FeatureDetails & JSXBase.HTMLAttributes; - "feature-form-flow-item": LocalJSX.FeatureFormFlowItem & JSXBase.HTMLAttributes; "feature-list": LocalJSX.FeatureList & JSXBase.HTMLAttributes; - "features-flow-item": LocalJSX.FeaturesFlowItem & JSXBase.HTMLAttributes; "floor-filter": LocalJSX.FloorFilter & JSXBase.HTMLAttributes; "info-card": LocalJSX.InfoCard & JSXBase.HTMLAttributes; "json-editor": LocalJSX.JsonEditor & JSXBase.HTMLAttributes; "layer-list": LocalJSX.LayerList & JSXBase.HTMLAttributes; "layer-table": LocalJSX.LayerTable & JSXBase.HTMLAttributes; - "layout-manager": LocalJSX.LayoutManager & JSXBase.HTMLAttributes; - "list-flow-item": LocalJSX.ListFlowItem & JSXBase.HTMLAttributes; - "location-flow-item": LocalJSX.LocationFlowItem & JSXBase.HTMLAttributes; "map-card": LocalJSX.MapCard & JSXBase.HTMLAttributes; "map-draw-tools": LocalJSX.MapDrawTools & JSXBase.HTMLAttributes; "map-fullscreen": LocalJSX.MapFullscreen & JSXBase.HTMLAttributes; @@ -4618,7 +4773,6 @@ declare module "@stencil/core" { "pci-calculator": LocalJSX.PciCalculator & JSXBase.HTMLAttributes; "pdf-download": LocalJSX.PdfDownload & JSXBase.HTMLAttributes; "public-notification": LocalJSX.PublicNotification & JSXBase.HTMLAttributes; - "refine-results-flow-item": LocalJSX.RefineResultsFlowItem & JSXBase.HTMLAttributes; "refine-selection": LocalJSX.RefineSelection & JSXBase.HTMLAttributes; "share-item": LocalJSX.ShareItem & JSXBase.HTMLAttributes; "solution-configuration": LocalJSX.SolutionConfiguration & JSXBase.HTMLAttributes; diff --git a/src/components/buffer-tools/buffer-tools.tsx b/src/components/buffer-tools/buffer-tools.tsx index 715208b96..acd17f83c 100644 --- a/src/components/buffer-tools/buffer-tools.tsx +++ b/src/components/buffer-tools/buffer-tools.tsx @@ -54,6 +54,11 @@ export class BufferTools { */ @Prop({ mutable: true }) geometries: __esri.Geometry[] = []; + /** + * string: Locale to use for translation of stings in the UI + */ + @Prop() locale: string; + /** * number: The component's maximum selectable value. */ @@ -140,6 +145,16 @@ export class BufferTools { this._buffer(); } + /** + * Fetch translations when the locale is updated + */ + @Watch("locale") + async localeWatchHandler(): Promise { + // to support url param and language switcher + this.el.lang = this.locale; + await this._getTranslations(); + } + //-------------------------------------------------------------------------- // // Methods (public) diff --git a/src/components/buffer-tools/readme.md b/src/components/buffer-tools/readme.md index 6aae8dff2..615744bd1 100644 --- a/src/components/buffer-tools/readme.md +++ b/src/components/buffer-tools/readme.md @@ -13,6 +13,7 @@ | `disabled` | `disabled` | | `boolean` | `false` | | `distance` | `distance` | number: The distance used for buffer | `number` | `0` | | `geometries` | -- | esri/geometry/Geometry: https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Geometry.html | `Geometry[]` | `[]` | +| `locale` | `locale` | string: Locale to use for translation of stings in the UI | `string` | `undefined` | | `max` | `max` | number: The component's maximum selectable value. | `number` | `undefined` | | `min` | `min` | number: The component's minimum selectable value. | `number` | `0` | | `sliderTicks` | `slider-ticks` | number: Displays tick marks on the number line at a specified interval. | `number` | `10` | diff --git a/src/components/card-manager/card-manager.tsx b/src/components/card-manager/card-manager.tsx index 85cdb5962..29bb23b8a 100644 --- a/src/components/card-manager/card-manager.tsx +++ b/src/components/card-manager/card-manager.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import { Component, Element, Host, h, Listen, Prop, State, Event, EventEmitter } from "@stencil/core"; +import { Component, Element, Host, h, Listen, Prop, State, Event, EventEmitter, Watch } from "@stencil/core"; import CardManager_T9n from "../../assets/t9n/card-manager/resources.json"; import { getLocaleComponentStrings } from "../../utils/locale"; import { queryFeaturesByID } from "../../utils/queryUtils"; @@ -59,6 +59,11 @@ export class CardManager { */ @Prop({ mutable: true }) layer: __esri.FeatureLayer; + /** + * string: Locale to use for translation of stings in the UI + */ + @Prop() locale: string; + /** * esri/views/MapView: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html */ @@ -138,6 +143,16 @@ export class CardManager { // //-------------------------------------------------------------------------- + /** + * Fetch translations when the locale is updated + */ + @Watch("locale") + async localeWatchHandler(): Promise { + // to support url param and language switcher + this.el.lang = this.locale; + await this._getTranslations(); + } + //-------------------------------------------------------------------------- // // Methods (public) @@ -232,6 +247,7 @@ export class CardManager { graphics={this._graphics} isLoading={this._cardLoading} isMobile={this.isMobile} + locale={this.locale} mapView={this.mapView} /> @@ -292,6 +308,7 @@ export class CardManager {
{this._showCreateFeatureComponent && { this._showSubmitBtn = true }} onEditingAttachment={(evt) => { this._showSubmitBtn = !evt.detail }} diff --git a/src/components/card-manager/readme.md b/src/components/card-manager/readme.md index d38bb6ade..15de89d02 100644 --- a/src/components/card-manager/readme.md +++ b/src/components/card-manager/readme.md @@ -14,6 +14,7 @@ | `enableEditGeometry` | `enable-edit-geometry` | When true the geometry of the current feature will be editable | `boolean` | `false` | | `isMobile` | `is-mobile` | When true the component will render an optimized view for mobile devices | `boolean` | `undefined` | | `layer` | -- | esri/views/layers/FeatureLayer: https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html | `FeatureLayer` | `undefined` | +| `locale` | `locale` | string: Locale to use for translation of stings in the UI | `string` | `undefined` | | `mapView` | -- | esri/views/MapView: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html | `MapView` | `undefined` | | `selectedFeaturesIds` | -- | A list of ids that are currently selected | `number[]` | `undefined` | | `selectingFeatureFromMap` | `selecting-feature-from-map` | boolean: When select feature from map message will shown | `boolean` | `undefined` | diff --git a/src/components/consent-manager/consent-manager.tsx b/src/components/consent-manager/consent-manager.tsx index cca4e57de..2b917c21e 100644 --- a/src/components/consent-manager/consent-manager.tsx +++ b/src/components/consent-manager/consent-manager.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import { Component, Element, Event, EventEmitter, Host, h, Method, Prop, State } from '@stencil/core'; +import { Component, Element, Event, EventEmitter, Host, h, Method, Prop, State, Watch } from '@stencil/core'; import ConsentManager_T9n from "../../assets/t9n/consent-manager/resources.json"; import { getLocaleComponentStrings } from "../../utils/locale"; import { Telemetry } from "@esri/telemetry"; @@ -47,6 +47,11 @@ export class ConsentManager { */ @Prop() firstUseVar!: string; + /** + * string: Locale to use for translation of stings in the UI + */ + @Prop() locale: string; + /** * string[]: Any ids for the analytics configured to receive events from the telemety instance */ @@ -103,6 +108,16 @@ export class ConsentManager { // //-------------------------------------------------------------------------- + /** + * Fetch translations when the locale is updated + */ + @Watch("locale") + async localeWatchHandler(): Promise { + // to support url param and language switcher + this.el.lang = this.locale; + await this._getTranslations(); + } + //-------------------------------------------------------------------------- // // Methods (public) diff --git a/src/components/consent-manager/readme.md b/src/components/consent-manager/readme.md index c48ee2a91..651ccff3a 100644 --- a/src/components/consent-manager/readme.md +++ b/src/components/consent-manager/readme.md @@ -10,6 +10,7 @@ | Property | Attribute | Description | Type | Default | | ----------------------------- | --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------- | ----------- | | `firstUseVar` _(required)_ | `first-use-var` | string: The name to use for the variable stored in the browsers local storge that will keep track of the users choice for consent | `string` | `undefined` | +| `locale` | `locale` | string: Locale to use for translation of stings in the UI | `string` | `undefined` | | `measurementIds` _(required)_ | -- | string[]: Any ids for the analytics configured to receive events from the telemety instance | `string[]` | `undefined` | | `portal` _(required)_ | -- | esri/portal/Portal: https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html Required prop for this component to function | `Portal` | `undefined` | diff --git a/src/components/create-feature/create-feature.tsx b/src/components/create-feature/create-feature.tsx index 9f4af9bc7..fb937cb55 100644 --- a/src/components/create-feature/create-feature.tsx +++ b/src/components/create-feature/create-feature.tsx @@ -59,6 +59,11 @@ export class CreateFeature { */ @Prop() customizeSubmit?: boolean = false; + /** + * string: Locale to use for translation of stings in the UI + */ + @Prop() locale: string; + /** * ISearchConfiguration: Configuration details for the Search widget */ @@ -226,6 +231,17 @@ export class CreateFeature { // Watch handlers // //-------------------------------------------------------------------------- + + /** + * Fetch translations when the locale is updated + */ + @Watch("locale") + async localeWatchHandler(): Promise { + // to support url param and language switcher + this.el.lang = this.locale; + await this._getTranslations(); + } + /** * Called each time the mapView prop is changed. */ diff --git a/src/components/create-feature/readme.md b/src/components/create-feature/readme.md index 300e258b3..9551c5a37 100644 --- a/src/components/create-feature/readme.md +++ b/src/components/create-feature/readme.md @@ -14,6 +14,7 @@ | `floorLevel` | `floor-level` | string: selected floor level | `string` | `undefined` | | `formElements` | `form-elements` | string: selected floor level | `any` | `undefined` | | `isMobile` | `is-mobile` | boolean: When true the application will be in mobile mode, controls the mobile or desktop view | `boolean` | `undefined` | +| `locale` | `locale` | string: Locale to use for translation of stings in the UI | `string` | `undefined` | | `mapView` | -- | esri/views/MapView: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html | `MapView` | `undefined` | | `searchConfiguration` | -- | ISearchConfiguration: Configuration details for the Search widget | `ISearchConfiguration` | `undefined` | | `selectedLayerId` | `selected-layer-id` | string: Layer id of the feature layer in which the new feature is to be created | `string` | `undefined` | diff --git a/src/components/create-related-feature/create-related-feature.tsx b/src/components/create-related-feature/create-related-feature.tsx index 1418514be..a2c80383f 100644 --- a/src/components/create-related-feature/create-related-feature.tsx +++ b/src/components/create-related-feature/create-related-feature.tsx @@ -40,6 +40,11 @@ export class CreateRelatedFeature { // //-------------------------------------------------------------------------- + /** + * string: Locale to use for translation of stings in the UI + */ + @Prop() locale: string; + /** * esri/views/MapView: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html */ @@ -126,6 +131,17 @@ export class CreateRelatedFeature { // Watch handlers // //-------------------------------------------------------------------------- + + /** + * Fetch translations when the locale is updated + */ + @Watch("locale") + async localeWatchHandler(): Promise { + // to support url param and language switcher + this.el.lang = this.locale; + await this._getTranslations(); + } + /** * Called each time the mapView prop is changed. */ diff --git a/src/components/create-related-feature/readme.md b/src/components/create-related-feature/readme.md index 89630c608..cb1c1bc79 100644 --- a/src/components/create-related-feature/readme.md +++ b/src/components/create-related-feature/readme.md @@ -10,6 +10,7 @@ | Property | Attribute | Description | Type | Default | | ----------------- | ------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------- | ----------- | | `customizeSubmit` | `customize-submit` | boolean: Set this to true when have a custom submit button in the app. This will hide the header and footer elements of the editor and user needs to execute the submit method manually. | `boolean` | `false` | +| `locale` | `locale` | string: Locale to use for translation of stings in the UI | `string` | `undefined` | | `mapView` | -- | esri/views/MapView: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html | `MapView` | `undefined` | | `selectedFeature` | -- | __esri.Graphic: https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html | `Graphic` | `undefined` | | `showGuidingMsg` | `show-guiding-msg` | boolean: When true the notice message should be shown | `boolean` | `true` | diff --git a/src/components/crowdsource-manager/crowdsource-manager.tsx b/src/components/crowdsource-manager/crowdsource-manager.tsx index 1227a1fa6..5203a7d06 100644 --- a/src/components/crowdsource-manager/crowdsource-manager.tsx +++ b/src/components/crowdsource-manager/crowdsource-manager.tsx @@ -171,6 +171,11 @@ export class CrowdsourceManager { */ @Prop() hideMapOnLoad = false; + /** + * string: Locale to use for translation of stings in the UI + */ + @Prop() locale: string; + /** * IMapInfo[]: array of map infos (name and id) */ @@ -430,6 +435,16 @@ export class CrowdsourceManager { console.warn("hideMapOnLoad will be removed. Please use appLayout to control layout options."); } + /** + * Fetch translations when the locale is updated + */ + @Watch("locale") + async localeWatchHandler(): Promise { + // to support url param and language switcher + this.el.lang = this.locale; + await this._getTranslations(); + } + //-------------------------------------------------------------------------- // // Methods (public) @@ -626,6 +641,7 @@ export class CrowdsourceManager { id="solutions-delete" ids={this._layerTable.selectedIds} layer={this._layer} + locale={this.locale} /> ) : undefined}
@@ -874,6 +890,7 @@ export class CrowdsourceManager { homeZoomToolsSize={"s"} isMapLayout={isMapLayout} isMobile={this._isMobile} + locale={this.locale} mapInfo={this._mapInfo} mapInfos={this.mapInfos?.filter(mapInfo => mapInfo.visible !== false)} mapWidgetsIndex={0} @@ -956,6 +973,7 @@ export class CrowdsourceManager { enableEditGeometry={this?._mapInfo?.enableEditGeometry} isMobile={this._isPortraitMobile} layer={this._layer} + locale={this.locale} mapView={this?._mapView} onBackFromCreateWorkFlow={() => { this._showInformationHeader = true; @@ -1026,6 +1044,7 @@ export class CrowdsourceManager { enableInlineEdit={this?._mapInfo?.enableInlineEdit} enableShare={this.enableShare} isMobile={this._isPortraitMobile} + locale={this.locale} mapHidden={isTableLayout} mapInfo={this._mapInfo} mapView={this?._mapView} diff --git a/src/components/crowdsource-manager/readme.md b/src/components/crowdsource-manager/readme.md index dcc51465b..430caf708 100644 --- a/src/components/crowdsource-manager/readme.md +++ b/src/components/crowdsource-manager/readme.md @@ -34,6 +34,7 @@ | `enableZoom` | `enable-zoom` | boolean: when true the zoom widget will be available | `boolean` | `true` | | `hideMapOnLoad` | `hide-map-on-load` | boolean: when true the map will be hidden on load | `boolean` | `false` | | `introductionWindowEnabled` | `introduction-window-enabled` | boolean: When true a introduction window has been enabled in the consuming application. Also when true a floating button will be shown in the lower right of the window that will emit an event when clicked that the consuming application can respond to that will open the introduction window. | `boolean` | `false` | +| `locale` | `locale` | string: Locale to use for translation of stings in the UI | `string` | `undefined` | | `mapInfos` | -- | IMapInfo[]: array of map infos (name and id) | `IMapInfo[]` | `[]` | | `onlyShowUpdatableLayers` | `only-show-updatable-layers` | boolean: When true only editable layers that support the update capability will be available | `boolean` | `true` | | `popupHeaderColor` | `popup-header-color` | string: The background color to apply to the popup header | `string` | `undefined` | diff --git a/src/components/crowdsource-reporter/crowdsource-reporter.tsx b/src/components/crowdsource-reporter/crowdsource-reporter.tsx index 241f10a47..beb502737 100644 --- a/src/components/crowdsource-reporter/crowdsource-reporter.tsx +++ b/src/components/crowdsource-reporter/crowdsource-reporter.tsx @@ -129,6 +129,11 @@ export class CrowdsourceReporter { */ @Prop() level: string; + /** + * string: Locale to use for translation of stings in the UI + */ + @Prop() locale: string; + /** * string: The text that will display at the top of the landing page */ @@ -487,6 +492,16 @@ export class CrowdsourceReporter { this.updatePanelState(false, this._showFullPanel); } + /** + * Fetch translations when the locale is updated + */ + @Watch("locale") + async localeWatchHandler(): Promise { + // to support url param and language switcher + this.el.lang = this.locale; + await this._getTranslations(); + } + /** * Called each time the mapView prop is changed. */ @@ -532,7 +547,7 @@ export class CrowdsourceReporter { if (this._editableLayerIds) { await this._updateFeatures(); setTimeout(() => { - // refresh layer list when user is on layer list panel + // refresh layer list when user is on layer list panel if (this._flowItems[this._flowItems.length - 1] === "layer-list" && this._layerList) { void this._layerList.refresh(); } @@ -875,6 +890,7 @@ export class CrowdsourceReporter { applyLayerViewFilter={this.showMyReportsOnly} class="height-full" layers={this._editableLayerIds?.length > 0 ? this._editableLayerIds : this._layers} + locale={this.locale} mapView={this.mapView} onLayerSelect={this.displayFeaturesList.bind(this)} onLayersListLoaded={this.layerListLoaded.bind(this)} @@ -915,6 +931,7 @@ export class CrowdsourceReporter { elm.id === this._selectedLayerId)} isMobile={this.isMobile} + locale={this.locale} mapView={this.mapView} onDrawComplete={this.onFormReady.bind(this)} onEditingAttachment={this.showSubmitCancelButton.bind(this)} @@ -1392,6 +1410,7 @@ export class CrowdsourceReporter { applyLayerViewFilter={this.showMyReportsOnly} class="height-full" highlightOnHover + locale={this.locale} mapView={this.mapView} noFeaturesFoundMsg={this._translations.featureErrorMsg} onFeatureSelect={this.onFeatureSelectFromList.bind(this)} @@ -1493,6 +1512,7 @@ export class CrowdsourceReporter { class={'full-height'} graphics={this._selectedFeature} layerItemsHash={this._layerItemsHash} + locale={this.locale} mapView={this.mapView} onAddComment={this.showAddCommentsPanel.bind(this)} onCommentSelect={this.onCommentSelectFromList.bind(this)} @@ -1581,6 +1601,7 @@ export class CrowdsourceReporter { highlightEnabled={false} isLoading={false} isMobile={false} + locale={this.locale} mapView={this.mapView} paginationEnabled={false} /> @@ -1623,6 +1644,7 @@ export class CrowdsourceReporter { { + // to support url param and language switcher + this.el.lang = this.locale; + await this._getTranslations(); + } + //-------------------------------------------------------------------------- // // Methods (public) @@ -243,6 +258,7 @@ export class DeleteButton { id="solution-delete-dialog" ids={this.ids} layer={this.layer} + locale={this.locale} onDeleteDialogClose={() => this._confirmDelete = false} open={this._confirmDelete} /> diff --git a/src/components/delete-button/readme.md b/src/components/delete-button/readme.md index 86459b718..c4c90ff21 100644 --- a/src/components/delete-button/readme.md +++ b/src/components/delete-button/readme.md @@ -15,6 +15,7 @@ | `icon` | `icon` | string: The icon to display in the component | `string` | `undefined` | | `ids` | -- | number[]: The ids that would be deleted | `any[]` | `[]` | | `layer` | -- | esri/views/layers/FeatureLayer: https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html | `FeatureLayer` | `undefined` | +| `locale` | `locale` | string: Locale to use for translation of stings in the UI | `string` | `undefined` | ## Events diff --git a/src/components/delete-dialog/delete-dialog.tsx b/src/components/delete-dialog/delete-dialog.tsx index ffc770864..a696c4d30 100644 --- a/src/components/delete-dialog/delete-dialog.tsx +++ b/src/components/delete-dialog/delete-dialog.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import { Component, Element, Event, EventEmitter, Host, h, Prop, State } from '@stencil/core'; +import { Component, Element, Event, EventEmitter, Host, h, Prop, State, Watch } from '@stencil/core'; import DeleteDialog_T9n from "../../assets/t9n/delete-button/resources.json"; import { getLocaleComponentStrings } from "../../utils/locale"; import { EditType } from "../../utils/interfaces"; @@ -49,6 +49,11 @@ export class DeleteDialog { */ @Prop() layer: __esri.FeatureLayer; + /** + * string: Locale to use for translation of stings in the UI + */ + @Prop() locale: string; + /** * boolean: When true the delete dialog will be displayed */ @@ -83,6 +88,16 @@ export class DeleteDialog { // //-------------------------------------------------------------------------- + /** + * Fetch translations when the locale is updated + */ + @Watch("locale") + async localeWatchHandler(): Promise { + // to support url param and language switcher + this.el.lang = this.locale; + await this._getTranslations(); + } + //-------------------------------------------------------------------------- // // Methods (public) diff --git a/src/components/delete-dialog/readme.md b/src/components/delete-dialog/readme.md index 46215b7c8..a4d68124e 100644 --- a/src/components/delete-dialog/readme.md +++ b/src/components/delete-dialog/readme.md @@ -11,6 +11,7 @@ | -------- | --------- | --------------------------------------------------------------------------------------------------------------------------- | -------------- | ----------- | | `ids` | -- | number[]: The ids that would be deleted | `any[]` | `[]` | | `layer` | -- | esri/views/layers/FeatureLayer: https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html | `FeatureLayer` | `undefined` | +| `locale` | `locale` | string: Locale to use for translation of stings in the UI | `string` | `undefined` | | `open` | `open` | boolean: When true the delete dialog will be displayed | `boolean` | `false` | diff --git a/src/components/edit-card/edit-card.tsx b/src/components/edit-card/edit-card.tsx index 3e4d3c3b1..f7c556e69 100644 --- a/src/components/edit-card/edit-card.tsx +++ b/src/components/edit-card/edit-card.tsx @@ -49,6 +49,11 @@ export class EditCard { */ @Prop({ mutable: true }) graphics: __esri.Graphic[]; + /** + * string: Locale to use for translation of stings in the UI + */ + @Prop() locale: string; + /** * esri/views/MapView: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html */ @@ -174,6 +179,16 @@ export class EditCard { } } + /** + * Fetch translations when the locale is updated + */ + @Watch("locale") + async localeWatchHandler(): Promise { + // to support url param and language switcher + this.el.lang = this.locale; + await this._getTranslations(); + } + @Watch("open") async openWatchHandler(v: boolean): Promise { if (v && this.graphics?.length > 0 && this.graphicIndex > -1) { diff --git a/src/components/edit-card/readme.md b/src/components/edit-card/readme.md index bb80629bf..001496b0d 100644 --- a/src/components/edit-card/readme.md +++ b/src/components/edit-card/readme.md @@ -12,6 +12,7 @@ | `enableEditGeometry` | `enable-edit-geometry` | When true the geometry of the current feature will be editable | `boolean` | `false` | | `graphicIndex` | `graphic-index` | The index of the current graphic | `number` | `0` | | `graphics` | -- | esri/Graphic[]: https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html | `Graphic[]` | `undefined` | +| `locale` | `locale` | string: Locale to use for translation of stings in the UI | `string` | `undefined` | | `mapView` | -- | esri/views/MapView: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html | `MapView` | `undefined` | | `open` | `open` | When true the component is displayed | `boolean` | `false` | diff --git a/src/components/feature-comments/feature-comments.css b/src/components/feature-comments/feature-comments.css deleted file mode 100644 index 0705834fd..000000000 --- a/src/components/feature-comments/feature-comments.css +++ /dev/null @@ -1,19 +0,0 @@ -/** @license - * Copyright 2022 Esri - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -:host { - display: block; -} \ No newline at end of file diff --git a/src/components/feature-comments/feature-comments.tsx b/src/components/feature-comments/feature-comments.tsx deleted file mode 100644 index 50ce07c83..000000000 --- a/src/components/feature-comments/feature-comments.tsx +++ /dev/null @@ -1,89 +0,0 @@ -/** @license - * Copyright 2022 Esri - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { Component, Element, Host, h } from '@stencil/core'; - -@Component({ - tag: 'feature-comments', - styleUrl: 'feature-comments.css', - shadow: true, -}) -export class FeatureComments { - //-------------------------------------------------------------------------- - // - // Host element access - // - //-------------------------------------------------------------------------- - - @Element() el: HTMLFeatureCommentsElement; - - //-------------------------------------------------------------------------- - // - // Properties (public) - // - //-------------------------------------------------------------------------- - - //-------------------------------------------------------------------------- - // - // State (internal) - // - //-------------------------------------------------------------------------- - - //-------------------------------------------------------------------------- - // - // Properties (protected) - // - //-------------------------------------------------------------------------- - - //-------------------------------------------------------------------------- - // - // Watch handlers - // - //-------------------------------------------------------------------------- - - //-------------------------------------------------------------------------- - // - // Methods (public) - // - //-------------------------------------------------------------------------- - - //-------------------------------------------------------------------------- - // - // Events (public) - // - //-------------------------------------------------------------------------- - - //-------------------------------------------------------------------------- - // - // Functions (lifecycle) - // - //-------------------------------------------------------------------------- - - render() { - return ( - - - - ); - } - - //-------------------------------------------------------------------------- - // - // Functions (protected) - // - //-------------------------------------------------------------------------- - -} diff --git a/src/components/feature-comments/readme.md b/src/components/feature-comments/readme.md deleted file mode 100644 index cd08d69fa..000000000 --- a/src/components/feature-comments/readme.md +++ /dev/null @@ -1,10 +0,0 @@ -# feature-comments - - - - - - ----------------------------------------------- - -*Built with [StencilJS](https://stenciljs.com/)* diff --git a/src/components/feature-comments/test/feature-comments.e2e.ts b/src/components/feature-comments/test/feature-comments.e2e.ts deleted file mode 100644 index 3bc7d7bf7..000000000 --- a/src/components/feature-comments/test/feature-comments.e2e.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** @license - * Copyright 2022 Esri - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { newE2EPage } from '@stencil/core/testing'; - -xdescribe('feature-comments', () => { - it('renders', async () => { - const page = await newE2EPage(); - await page.setContent(''); - - const element = await page.find('feature-comments'); - expect(element).toHaveClass('hydrated'); - }); -}); diff --git a/src/components/feature-comments/test/feature-comments.spec.tsx b/src/components/feature-comments/test/feature-comments.spec.tsx deleted file mode 100644 index a20d11c3c..000000000 --- a/src/components/feature-comments/test/feature-comments.spec.tsx +++ /dev/null @@ -1,34 +0,0 @@ -/** @license - * Copyright 2022 Esri - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { newSpecPage } from '@stencil/core/testing'; -import { FeatureComments } from '../feature-comments'; - -xdescribe('feature-comments', () => { - it('renders', async () => { - const page = await newSpecPage({ - components: [FeatureComments], - html: ``, - }); - expect(page.root).toEqualHtml(` - - - - - - `); - }); -}); diff --git a/src/components/feature-details/feature-details.tsx b/src/components/feature-details/feature-details.tsx index 1aeca72f5..c29ccf94a 100644 --- a/src/components/feature-details/feature-details.tsx +++ b/src/components/feature-details/feature-details.tsx @@ -60,6 +60,11 @@ export class FeatureDetails { */ @Prop() layerItemsHash: ILayerItemsHash; + /** + * string: Locale to use for translation of stings in the UI + */ + @Prop() locale: string; + /** * boolean: When true the profile image of the comment creator will be shown in the comments list */ @@ -288,6 +293,7 @@ export class FeatureDetails { highlightEnabled={false} isLoading={false} isMobile={false} + locale={this.locale} mapView={this.mapView} onSelectionChanged={(e) => { this.featureSelectionChange.emit(e.detail) }} paginationEnabled={false} @@ -329,6 +335,7 @@ export class FeatureDetails { {this.relatedTableId && this._commentsAvailable && { this.commentSelect.emit(e.detail) }} pageSize={5} diff --git a/src/components/feature-details/readme.md b/src/components/feature-details/readme.md index 67e1c0308..475e73fe2 100644 --- a/src/components/feature-details/readme.md +++ b/src/components/feature-details/readme.md @@ -11,6 +11,7 @@ | ----------------------------- | ---------------------------------- | --------------------------------------------------------------------------------------------------------- | ------------------- | ----------- | | `graphics` | -- | esri/Graphic: https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html | `Graphic[]` | `undefined` | | `layerItemsHash` | -- | ILayerItemsHash: LayerDetailsHash for each layer in the map | `ILayerItemsHash` | `undefined` | +| `locale` | `locale` | string: Locale to use for translation of stings in the UI | `string` | `undefined` | | `mapView` | -- | esri/views/MapView: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html | `MapView` | `undefined` | | `reportingOptions` | -- | IReportingOptions: Key options for reporting | `IReportingOptions` | `undefined` | | `showUserImageInCommentsList` | `show-user-image-in-comments-list` | boolean: When true the profile image of the comment creator will be shown in the comments list | `boolean` | `false` | diff --git a/src/components/feature-form-flow-item/feature-form-flow-item.css b/src/components/feature-form-flow-item/feature-form-flow-item.css deleted file mode 100644 index 0705834fd..000000000 --- a/src/components/feature-form-flow-item/feature-form-flow-item.css +++ /dev/null @@ -1,19 +0,0 @@ -/** @license - * Copyright 2022 Esri - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -:host { - display: block; -} \ No newline at end of file diff --git a/src/components/feature-form-flow-item/feature-form-flow-item.tsx b/src/components/feature-form-flow-item/feature-form-flow-item.tsx deleted file mode 100644 index f42cd99f1..000000000 --- a/src/components/feature-form-flow-item/feature-form-flow-item.tsx +++ /dev/null @@ -1,89 +0,0 @@ -/** @license - * Copyright 2022 Esri - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { Component, Element, Host, h } from '@stencil/core'; - -@Component({ - tag: 'feature-form-flow-item', - styleUrl: 'feature-form-flow-item.css', - shadow: true, -}) -export class FeatureFormFlowItem { - //-------------------------------------------------------------------------- - // - // Host element access - // - //-------------------------------------------------------------------------- - - @Element() el: HTMLFeatureFormFlowItemElement; - - //-------------------------------------------------------------------------- - // - // Properties (public) - // - //-------------------------------------------------------------------------- - - //-------------------------------------------------------------------------- - // - // State (internal) - // - //-------------------------------------------------------------------------- - - //-------------------------------------------------------------------------- - // - // Properties (protected) - // - //-------------------------------------------------------------------------- - - //-------------------------------------------------------------------------- - // - // Watch handlers - // - //-------------------------------------------------------------------------- - - //-------------------------------------------------------------------------- - // - // Methods (public) - // - //-------------------------------------------------------------------------- - - //-------------------------------------------------------------------------- - // - // Events (public) - // - //-------------------------------------------------------------------------- - - //-------------------------------------------------------------------------- - // - // Functions (lifecycle) - // - //-------------------------------------------------------------------------- - - render() { - return ( - - - - ); - } - - //-------------------------------------------------------------------------- - // - // Functions (protected) - // - //-------------------------------------------------------------------------- - -} diff --git a/src/components/feature-form-flow-item/readme.md b/src/components/feature-form-flow-item/readme.md deleted file mode 100644 index 58f9ca0a7..000000000 --- a/src/components/feature-form-flow-item/readme.md +++ /dev/null @@ -1,10 +0,0 @@ -# feature-form-flow-item - - - - - - ----------------------------------------------- - -*Built with [StencilJS](https://stenciljs.com/)* diff --git a/src/components/feature-form-flow-item/test/feature-form-flow-item.e2e.ts b/src/components/feature-form-flow-item/test/feature-form-flow-item.e2e.ts deleted file mode 100644 index e2daba9ca..000000000 --- a/src/components/feature-form-flow-item/test/feature-form-flow-item.e2e.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** @license - * Copyright 2022 Esri - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { newE2EPage } from '@stencil/core/testing'; - -xdescribe('feature-form-flow-item', () => { - it('renders', async () => { - const page = await newE2EPage(); - await page.setContent(''); - - const element = await page.find('feature-form-flow-item'); - expect(element).toHaveClass('hydrated'); - }); -}); diff --git a/src/components/feature-form-flow-item/test/feature-form-flow-item.spec.tsx b/src/components/feature-form-flow-item/test/feature-form-flow-item.spec.tsx deleted file mode 100644 index a9375710b..000000000 --- a/src/components/feature-form-flow-item/test/feature-form-flow-item.spec.tsx +++ /dev/null @@ -1,34 +0,0 @@ -/** @license - * Copyright 2022 Esri - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { newSpecPage } from '@stencil/core/testing'; -import { FeatureFormFlowItem } from '../feature-form-flow-item'; - -xdescribe('feature-form-flow-item', () => { - it('renders', async () => { - const page = await newSpecPage({ - components: [FeatureFormFlowItem], - html: ``, - }); - expect(page.root).toEqualHtml(` - - - - - - `); - }); -}); diff --git a/src/components/feature-list/feature-list.tsx b/src/components/feature-list/feature-list.tsx index 1688e8512..0f25029a9 100644 --- a/src/components/feature-list/feature-list.tsx +++ b/src/components/feature-list/feature-list.tsx @@ -72,6 +72,11 @@ export class FeatureList { */ @Prop() highlightOnHover?: boolean = false; + /** + * string: Locale to use for translation of stings in the UI + */ + @Prop() locale: string; + /** * ISortingInfo: Sorting field and order using which features list will be sorted */ @@ -214,6 +219,16 @@ export class FeatureList { // //-------------------------------------------------------------------------- + /** + * Fetch translations when the locale is updated + */ + @Watch("locale") + async localeWatchHandler(): Promise { + // to support url param and language switcher + this.el.lang = this.locale; + await this._getTranslations(); + } + /** * Watch for selectedLayerId change and update layer instance and features list for new layerId */ diff --git a/src/components/feature-list/readme.md b/src/components/feature-list/readme.md index 797a4f262..acaf9e3c8 100644 --- a/src/components/feature-list/readme.md +++ b/src/components/feature-list/readme.md @@ -12,6 +12,7 @@ | `applyLayerViewFilter` | `apply-layer-view-filter` | boolean: If true will consider the FeatureFilter applied on the layerview | `boolean` | `false` | | `highlightOnHover` | `highlight-on-hover` | boolean: Highlight feature on map optional (default false) boolean to indicate if we should highlight when hover on Feature in list | `boolean` | `false` | | `highlightOnMap` | `highlight-on-map` | boolean: Highlight feature on map optional (default false) boolean to indicate if we should highlight and zoom to the extent of the feature geometry | `boolean` | `false` | +| `locale` | `locale` | string: Locale to use for translation of stings in the UI | `string` | `undefined` | | `mapView` | -- | esri/views/View: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html | `MapView` | `undefined` | | `noFeaturesFoundMsg` | `no-features-found-msg` | string: Message to be displayed when features are not found | `string` | `undefined` | | `pageSize` | `page-size` | number: Number features to be fetched per page, by default 100 features will be fetched | `number` | `100` | diff --git a/src/components/features-flow-item/features-flow-item.css b/src/components/features-flow-item/features-flow-item.css deleted file mode 100644 index 0705834fd..000000000 --- a/src/components/features-flow-item/features-flow-item.css +++ /dev/null @@ -1,19 +0,0 @@ -/** @license - * Copyright 2022 Esri - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -:host { - display: block; -} \ No newline at end of file diff --git a/src/components/features-flow-item/features-flow-item.tsx b/src/components/features-flow-item/features-flow-item.tsx deleted file mode 100644 index 16656459c..000000000 --- a/src/components/features-flow-item/features-flow-item.tsx +++ /dev/null @@ -1,89 +0,0 @@ -/** @license - * Copyright 2022 Esri - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { Component, Element, Host, h } from '@stencil/core'; - -@Component({ - tag: 'features-flow-item', - styleUrl: 'features-flow-item.css', - shadow: true, -}) -export class FeaturesFlowItem { - //-------------------------------------------------------------------------- - // - // Host element access - // - //-------------------------------------------------------------------------- - - @Element() el: HTMLLocationFlowItemElement; - - //-------------------------------------------------------------------------- - // - // Properties (public) - // - //-------------------------------------------------------------------------- - - //-------------------------------------------------------------------------- - // - // State (internal) - // - //-------------------------------------------------------------------------- - - //-------------------------------------------------------------------------- - // - // Properties (protected) - // - //-------------------------------------------------------------------------- - - //-------------------------------------------------------------------------- - // - // Watch handlers - // - //-------------------------------------------------------------------------- - - //-------------------------------------------------------------------------- - // - // Methods (public) - // - //-------------------------------------------------------------------------- - - //-------------------------------------------------------------------------- - // - // Events (public) - // - //-------------------------------------------------------------------------- - - //-------------------------------------------------------------------------- - // - // Functions (lifecycle) - // - //-------------------------------------------------------------------------- - - render() { - return ( - - - - ); - } - - //-------------------------------------------------------------------------- - // - // Functions (protected) - // - //-------------------------------------------------------------------------- - -} diff --git a/src/components/features-flow-item/readme.md b/src/components/features-flow-item/readme.md deleted file mode 100644 index 17a725b26..000000000 --- a/src/components/features-flow-item/readme.md +++ /dev/null @@ -1,10 +0,0 @@ -# features-flow-item - - - - - - ----------------------------------------------- - -*Built with [StencilJS](https://stenciljs.com/)* diff --git a/src/components/features-flow-item/test/features-flow-item.e2e.ts b/src/components/features-flow-item/test/features-flow-item.e2e.ts deleted file mode 100644 index abb0df27b..000000000 --- a/src/components/features-flow-item/test/features-flow-item.e2e.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** @license - * Copyright 2022 Esri - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { newE2EPage } from '@stencil/core/testing'; - -xdescribe('features-flow-item', () => { - it('renders', async () => { - const page = await newE2EPage(); - await page.setContent(''); - - const element = await page.find('features-flow-item'); - expect(element).toHaveClass('hydrated'); - }); -}); diff --git a/src/components/features-flow-item/test/features-flow-item.spec.tsx b/src/components/features-flow-item/test/features-flow-item.spec.tsx deleted file mode 100644 index f0adc4b74..000000000 --- a/src/components/features-flow-item/test/features-flow-item.spec.tsx +++ /dev/null @@ -1,34 +0,0 @@ -/** @license - * Copyright 2022 Esri - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { newSpecPage } from '@stencil/core/testing'; -import { FeaturesFlowItem } from '../features-flow-item'; - -xdescribe('features-flow-item', () => { - it('renders', async () => { - const page = await newSpecPage({ - components: [FeaturesFlowItem], - html: ``, - }); - expect(page.root).toEqualHtml(` - - - - - - `); - }); -}); diff --git a/src/components/info-card/info-card.tsx b/src/components/info-card/info-card.tsx index 937862862..b08ac916f 100644 --- a/src/components/info-card/info-card.tsx +++ b/src/components/info-card/info-card.tsx @@ -76,6 +76,11 @@ export class InfoCard { */ @Prop() highlightEnabled?: boolean = true; + /** + * string: Locale to use for translation of stings in the UI + */ + @Prop() locale: string; + /** * boolean: If true will show the pagination for multiple features */ @@ -192,6 +197,21 @@ export class InfoCard { await this._initFeaturesWidget(); } + /** + * Fetch translations when the locale is updated + */ + @Watch("locale") + async localeWatchHandler(): Promise { + // to support url param and language switcher + this.el.lang = this.locale; + await this._getTranslations(); + if (this._features) { + const graphics = [...this.graphics]; + this.graphics = []; + this.graphics = graphics; + } + } + /** * Watch for changes to the mapView and re-init the Feature widget */ @@ -383,6 +403,7 @@ export class InfoCard { id="solutions-delete" ids={ids} layer={this._layer} + locale={this.locale} onEditsComplete={() => this._closePopup()} /> ) : undefined @@ -449,6 +470,7 @@ export class InfoCard { enableEditGeometry={this.enableEditGeometry} graphicIndex={this._features?.selectedFeatureIndex} graphics={this.graphics} + locale={this.locale} mapView={this.mapView} open={this._editRecordOpen} /> diff --git a/src/components/info-card/readme.md b/src/components/info-card/readme.md index 8b65d0e4f..c8ad73472 100644 --- a/src/components/info-card/readme.md +++ b/src/components/info-card/readme.md @@ -15,6 +15,7 @@ | `highlightEnabled` | `highlight-enabled` | boolean: If true will highlights the features on map using Features Widget | `boolean` | `true` | | `isLoading` | `is-loading` | boolean: when true a loading indicator will be shown | `boolean` | `false` | | `isMobile` | `is-mobile` | When true the component will render an optimized view for mobile devices | `boolean` | `undefined` | +| `locale` | `locale` | string: Locale to use for translation of stings in the UI | `string` | `undefined` | | `mapView` | -- | esri/views/MapView: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html | `MapView` | `undefined` | | `paginationEnabled` | `pagination-enabled` | boolean: If true will show the pagination for multiple features | `boolean` | `true` | | `position` | `position` | string: Set the position of the feature info | `string` | `'absolute'` | diff --git a/src/components/json-editor/json-editor.tsx b/src/components/json-editor/json-editor.tsx index 2ebd42355..be1c73609 100644 --- a/src/components/json-editor/json-editor.tsx +++ b/src/components/json-editor/json-editor.tsx @@ -49,7 +49,7 @@ * > */ -import { Component, Element, Host, h, Method, Prop, VNode } from '@stencil/core'; +import { Component, Element, Host, h, Method, Prop, VNode, Watch } from '@stencil/core'; import JsonEditor_T9n from '../../assets/t9n/json-editor/resources.json'; import { getLocaleComponentStrings } from '../../utils/locale'; @@ -92,12 +92,33 @@ export class JsonEditor { */ @Prop({ mutable: true, reflect: true }) instanceid: any = ""; + /** + * string: Locale to use for translation of stings in the UI + */ + @Prop() locale: string; + /** * Contains the public value for this component; it is not changed by the editor. * When changed, the change overwrites the contents of the editor. */ @Prop({ mutable: true, reflect: true }) value: any = ""; + //-------------------------------------------------------------------------- + // + // Watch handlers + // + //-------------------------------------------------------------------------- + + /** + * Fetch translations when the locale is updated + */ + @Watch("locale") + async localeWatchHandler(): Promise { + // to support url param and language switcher + this.el.lang = this.locale; + await this._getTranslations(); + } + //-------------------------------------------------------------------------- // // Lifecycle diff --git a/src/components/json-editor/readme.md b/src/components/json-editor/readme.md index 4cdae1767..72f33cd33 100644 --- a/src/components/json-editor/readme.md +++ b/src/components/json-editor/readme.md @@ -7,12 +7,13 @@ ## Properties -| Property | Attribute | Description | Type | Default | -| ------------ | ------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------- | ------- | -| `hasChanges` | `has-changes` | Contains a public value to indicate if the model has any changes. | `boolean` | `false` | -| `hasErrors` | `has-errors` | Contains a public value to indicate if the model has any errors that would prevent saving it. | `boolean` | `false` | -| `instanceid` | `instanceid` | Contains a unique identifier for when we have multiple instances of the editor. For example when we want to show an item's data as well as an item's properties. | `any` | `""` | -| `value` | `value` | Contains the public value for this component; it is not changed by the editor. When changed, the change overwrites the contents of the editor. | `any` | `""` | +| Property | Attribute | Description | Type | Default | +| ------------ | ------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------- | ----------- | +| `hasChanges` | `has-changes` | Contains a public value to indicate if the model has any changes. | `boolean` | `false` | +| `hasErrors` | `has-errors` | Contains a public value to indicate if the model has any errors that would prevent saving it. | `boolean` | `false` | +| `instanceid` | `instanceid` | Contains a unique identifier for when we have multiple instances of the editor. For example when we want to show an item's data as well as an item's properties. | `any` | `""` | +| `locale` | `locale` | string: Locale to use for translation of stings in the UI | `string` | `undefined` | +| `value` | `value` | Contains the public value for this component; it is not changed by the editor. When changed, the change overwrites the contents of the editor. | `any` | `""` | ## Methods diff --git a/src/components/layer-list/layer-list.tsx b/src/components/layer-list/layer-list.tsx index b2c6df988..7f4844242 100644 --- a/src/components/layer-list/layer-list.tsx +++ b/src/components/layer-list/layer-list.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import { Component, Element, Prop, VNode, h, State, Fragment, Event, EventEmitter, Method } from "@stencil/core"; +import { Component, Element, Prop, VNode, h, State, Fragment, Event, EventEmitter, Method, Watch } from "@stencil/core"; import { getAllLayers, getFeatureLayerView, getMapLayerHash } from "../../utils/mapViewUtils"; import LayerList_T9n from "../../assets/t9n/layer-list/resources.json"; import { getLocaleComponentStrings } from "../../utils/locale"; @@ -61,6 +61,11 @@ export class LayerList { */ @Prop() layers: string[]; + /** + * string: Locale to use for translation of stings in the UI + */ + @Prop() locale: string; + /** * boolean: if true display's feature count for each layer */ @@ -119,6 +124,16 @@ export class LayerList { // //-------------------------------------------------------------------------- + /** + * Fetch translations when the locale is updated + */ + @Watch("locale") + async localeWatchHandler(): Promise { + // to support url param and language switcher + this.el.lang = this.locale; + await this._getTranslations(); + } + //-------------------------------------------------------------------------- // // Methods (public) diff --git a/src/components/layer-list/readme.md b/src/components/layer-list/readme.md index d38adebac..43f0957bc 100644 --- a/src/components/layer-list/readme.md +++ b/src/components/layer-list/readme.md @@ -11,6 +11,7 @@ | ---------------------- | ------------------------- | ------------------------------------------------------------------------------------------------------- | ---------- | ----------- | | `applyLayerViewFilter` | `apply-layer-view-filter` | boolean: If true will consider the FeatureFilter applied on the layerview | `boolean` | `false` | | `layers` | -- | string[]: If passed will show only these layers in the list if they are present in map and are editable | `string[]` | `undefined` | +| `locale` | `locale` | string: Locale to use for translation of stings in the UI | `string` | `undefined` | | `mapView` | -- | esri/views/View: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html | `MapView` | `undefined` | | `showFeatureCount` | `show-feature-count` | boolean: if true display's feature count for each layer | `boolean` | `true` | | `showNextIcon` | `show-next-icon` | boolean: If true display's arrow icon on each layer item | `boolean` | `false` | diff --git a/src/components/layer-table/layer-table.tsx b/src/components/layer-table/layer-table.tsx index 4745b58f5..829a9d19a 100644 --- a/src/components/layer-table/layer-table.tsx +++ b/src/components/layer-table/layer-table.tsx @@ -36,7 +36,7 @@ export class LayerTable { // Host element access // //-------------------------------------------------------------------------- - @Element() el: HTMLCrowdsourceManagerElement; + @Element() el: HTMLLayerTableElement; //-------------------------------------------------------------------------- // @@ -94,6 +94,11 @@ export class LayerTable { */ @Prop() isMobile: boolean; + /** + * string: Locale to use for translation of stings in the UI + */ + @Prop() locale: string; + /** * boolean: when true the map is hidden and map specific controls should be hidden */ @@ -517,6 +522,16 @@ export class LayerTable { }); } + /** + * Fetch translations when the locale is updated + */ + @Watch("locale") + async localeWatchHandler(): Promise { + // to support url param and language switcher + this.el.lang = this.locale; + await this._getTranslations(); + } + /** * Reset the toolInfos when mapHidden prop changes so we can show/hide any map dependant tool(s) */ @@ -854,6 +869,7 @@ export class LayerTable { id={"deleteDialogId"} ids={this._getIds()} layer={this._layer} + locale={this.locale} onDeleteDialogClose={() => this._deleteDialogOpen = false} open={this._deleteDialogOpen} ref={(el) => this._deleteDialog = el} @@ -1076,6 +1092,7 @@ export class LayerTable { display="inline-flex" height={50} isMobile={this.isMobile} + locale={this.locale} mapView={this.mapView} onlyShowUpdatableLayers={this.onlyShowUpdatableLayers} placeholderIcon="layers" @@ -1767,6 +1784,7 @@ export class LayerTable { id="solutions-delete" ids={this._getIds()} layer={this._layer} + locale={this.locale} /> ) : (