Skip to content

Commit

Permalink
Feature/5485 toolbox category title (#5510)
Browse files Browse the repository at this point in the history
* Introduce title into toolbox category #5485

* Add title into IToolboxCategoryDefinition and fix unit tests #5485

* Update toolbox-category.component.html

Do not change the formating

* Update index.js

Remove showing toolbar categories

* Fix knockout category title #5485

* Change regression test #5485
  • Loading branch information
andrewtelnov authored May 20, 2024
1 parent e458e3b commit f6e8078
Show file tree
Hide file tree
Showing 39 changed files with 298 additions and 222 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="svc-toolbox__category" [class.svc-toolbox__category--collapsed]="category.collapsed">
<div class="svc-toolbox__category-header"
(click)="category.toggleState()" [key2click] [class.svc-toolbox__category-header--collapsed]="toolbox.canCollapseCategories">
<span class="svc-toolbox__category-title">{{category.name}}</span>
<span class="svc-toolbox__category-title">{{category.title}}</span>
<div *ngIf="toolbox.canCollapseCategories" class="svc-toolbox__category-header__controls">
<svg [iconName]="'icon-arrow-down'" class="svc-toolbox__category-header__button svc-string-editor__button--expand" [size]="24" sv-ng-svg-icon [visible]="category.collapsed"></svg>
<svg [iconName]="'icon-arrow-up'" class="svc-toolbox__category-header__button svc-string-editor__button--collapse" [size]="24" sv-ng-svg-icon [visible]="!category.collapsed"></svg>
Expand All @@ -12,4 +12,4 @@
<svc-toolbox-tool [item]="item" [creator]="toolbox.creator" [isCompact]="false" ></svc-toolbox-tool>
</ng-container>
</div>
</ng-template>
</ng-template>
14 changes: 8 additions & 6 deletions packages/survey-creator-core/src/localization/arabic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ export var arStrings = {
signaturepad: "لوحة توقيع",
buttongroup: "Button group"
},
toolbox_categories: {
feneral: "قائمة العام",
choice: "أسئلة الاختيار",
text: "أسئلة إدخال النص",
containers: "حاويات",
matrix: "أسئلة المصفوفة",
misc: "متفرقات",
},
// Strings in SurveyJS Creator
ed: {
defaultLocale: "إفتراضي ({0})",
Expand Down Expand Up @@ -111,12 +119,6 @@ export var arStrings = {
"property-grid": "Properties",
propertyGridFilteredTextPlaceholder: "Type to search...",
propertyGridNoResultsFound: "لم يتم العثور على نتائج",
toolboxGeneralCategory: "قائمة العام",
toolboxChoiceCategory: "أسئلة الاختيار",
toolboxTextCategory: "أسئلة إدخال النص",
toolboxContainersCategory: "حاويات",
toolboxMatrixCategory: "أسئلة المصفوفة",
toolboxMiscCategory: "متفرقات",
correctJSON: "Please correct JSON.",
surveyResults: "Survey Results ",
surveyResultsTable: "As Table",
Expand Down
14 changes: 8 additions & 6 deletions packages/survey-creator-core/src/localization/bulgarian.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ export var bgStrings = {
signaturepad: "Подпис",
buttongroup: "Група бутони"
},
toolbox_categories: {
general: "Общ",
choice: "Въпроси за избор",
text: "Въпроси с въвеждане на текст",
containers: "Контейнери",
matrix: "Матрица с въпроси",
misc: "Разни",
},
// Strings in SurveyJS Creator
ed: {
defaultLocale: "По подразбиране ({0})",
Expand Down Expand Up @@ -111,12 +119,6 @@ export var bgStrings = {
"property-grid": "Свойства",
propertyGridFilteredTextPlaceholder: "Въведи за търсене...",
propertyGridNoResultsFound: "Няма намерени резултати",
toolboxGeneralCategory: "Общ",
toolboxChoiceCategory: "Въпроси за избор",
toolboxTextCategory: "Въпроси с въвеждане на текст",
toolboxContainersCategory: "Контейнери",
toolboxMatrixCategory: "Матрица с въпроси",
toolboxMiscCategory: "Разни",
correctJSON: "Моля, коригирай JSON.",
surveyResults: "Резултати от анкетата ",
surveyResultsTable: "Като таблица",
Expand Down
14 changes: 8 additions & 6 deletions packages/survey-creator-core/src/localization/croatian.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ export var hrStrings = {
signaturepad: "Jastučić za potpis",
buttongroup: "Grupa gumba"
},
toolbox_categories: {
general: "Općenito",
choice: "Pitanja o izboru",
text: "Pitanja o unosu teksta",
containers: "Kontejnere",
matrix: "Matrična pitanja",
misc: "Ostalo",
},
// Strings in SurveyJS Creator
ed: {
defaultLocale: "Zadani ({0})",
Expand Down Expand Up @@ -111,12 +119,6 @@ export var hrStrings = {
"property-grid": "Svojstva",
propertyGridFilteredTextPlaceholder: "Upišite za pretraživanje...",
propertyGridNoResultsFound: "Nisu pronađeni rezultati",
toolboxGeneralCategory: "Općenito",
toolboxChoiceCategory: "Pitanja o izboru",
toolboxTextCategory: "Pitanja o unosu teksta",
toolboxContainersCategory: "Kontejnere",
toolboxMatrixCategory: "Matrična pitanja",
toolboxMiscCategory: "Ostalo",
correctJSON: "Ispravite JSON.",
surveyResults: "Rezultat ankete: ",
surveyResultsTable: "Kao tablica",
Expand Down
14 changes: 8 additions & 6 deletions packages/survey-creator-core/src/localization/czech.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ export var czStrings = {
signaturepad: "Podpisová podložka",
buttongroup: "Skupina tlačítek"
},
toolbox_categories: {
general: "Obecné",
choice: "Výběrové otázky",
text: "Textové otázky",
containers: "Kontejnery",
matrix: "Maticové otázky",
misc: "Ostatní",
},
// Strings in SurveyJS Creator
ed: {
defaultLocale: "Výchozí ({0})",
Expand Down Expand Up @@ -111,12 +119,6 @@ export var czStrings = {
"property-grid": "Vlastnosti",
propertyGridFilteredTextPlaceholder: "Zadejte hledaný text...",
propertyGridNoResultsFound: "Nebyly nalezeny žádné výsledky",
toolboxGeneralCategory: "Obecné",
toolboxChoiceCategory: "Výběrové otázky",
toolboxTextCategory: "Textové otázky",
toolboxContainersCategory: "Kontejnery",
toolboxMatrixCategory: "Maticové otázky",
toolboxMiscCategory: "Ostatní",
correctJSON: "Opravte JSON.",
surveyResults: "Výsledek průzkumu: ",
surveyResultsTable: "Jako tabulka",
Expand Down
14 changes: 8 additions & 6 deletions packages/survey-creator-core/src/localization/danish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ export var danishStrings = {
signaturepad: "Underskrift",
buttongroup: "Knap gruppe"
},
toolbox_categories: {
general: "Generelt",
choice: "Spørgsmål om valg",
text: "Spørgsmål om tekstinput",
containers: "Containere",
matrix: "Matrix spørgsmål",
misc: "Misc",
},
// Strings in SurveyJS Creator
ed: {
defaultLocale: "Standard ({0})",
Expand Down Expand Up @@ -111,12 +119,6 @@ export var danishStrings = {
"property-grid": "Egenskaber",
propertyGridFilteredTextPlaceholder: "Skriv for at søge...",
propertyGridNoResultsFound: "Ingen resultater fundet",
toolboxGeneralCategory: "Generelt",
toolboxChoiceCategory: "Spørgsmål om valg",
toolboxTextCategory: "Spørgsmål om tekstinput",
toolboxContainersCategory: "Containere",
toolboxMatrixCategory: "Matrix spørgsmål",
toolboxMiscCategory: "Misc",
correctJSON: "Ret venligst JSON.",
surveyResults: "Undersøgelsesresultat: ",
surveyResultsTable: "Som tabel",
Expand Down
14 changes: 8 additions & 6 deletions packages/survey-creator-core/src/localization/dutch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ export var nlStrings = {
signaturepad: "Handtekening",
buttongroup: "Knoppengroep"
},
toolbox_categories: {
general: "Algemeen",
choice: "Keuzevragen",
text: "Vragen over tekstinvoer",
containers: "Containers",
matrix: "Matrix vragen",
misc: "MISC",
},
// Strings in SurveyJS Creator
ed: {
defaultLocale: "Standaard ({0})",
Expand Down Expand Up @@ -111,12 +119,6 @@ export var nlStrings = {
"property-grid": "Eigenschappen",
propertyGridFilteredTextPlaceholder: "Typ om te zoeken...",
propertyGridNoResultsFound: "Geen resultaten gevonden",
toolboxGeneralCategory: "Algemeen",
toolboxChoiceCategory: "Keuzevragen",
toolboxTextCategory: "Vragen over tekstinvoer",
toolboxContainersCategory: "Containers",
toolboxMatrixCategory: "Matrix vragen",
toolboxMiscCategory: "MISC",
correctJSON: "Corrigeer JSON.",
surveyResults: "Enquêteresultaat: ",
surveyResultsTable: "Als tabel",
Expand Down
14 changes: 8 additions & 6 deletions packages/survey-creator-core/src/localization/english.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,14 @@ export var enStrings = {
signaturepad: "Signature",
buttongroup: "Button Group"
},
toolbox_categories: {
general: "General",
choice: "Choice Questions",
text: "Text Input Questions",
containers: "Containers",
matrix: "Matrix Questions",
misc: "Misc",
},
// Strings in SurveyJS Creator
ed: {
defaultLocale: "Default ({0})",
Expand Down Expand Up @@ -113,12 +121,6 @@ export var enStrings = {
"property-grid": "Properties",
propertyGridFilteredTextPlaceholder: "Type to search...",
propertyGridNoResultsFound: "No results found",
toolboxGeneralCategory: "General",
toolboxChoiceCategory: "Choice Questions",
toolboxTextCategory: "Text Input Questions",
toolboxContainersCategory: "Containers",
toolboxMatrixCategory: "Matrix Questions",
toolboxMiscCategory: "Misc",
correctJSON: "Please correct JSON.",
surveyResults: "Survey Results ",
surveyResultsTable: "As Table",
Expand Down
14 changes: 8 additions & 6 deletions packages/survey-creator-core/src/localization/finnish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ export var fiStrings = {
signaturepad: "Allekirjoitusalusta",
buttongroup: "Painike-ryhmä"
},
toolbox_categories: {
general: "Yleinen",
choice: "Valintaa koskevat kysymykset",
text: "Tekstinsyöttökysymykset",
containers: "Säiliöt",
matrix: "Matriisin kysymykset",
misc: "Muut",
},
// Strings in SurveyJS Creator
ed: {
defaultLocale: "Vakio ({0})",
Expand Down Expand Up @@ -111,12 +119,6 @@ export var fiStrings = {
"property-grid": "Properties",
propertyGridFilteredTextPlaceholder: "Kirjoita etsiäksesi...",
propertyGridNoResultsFound: "Tuloksia ei löytynyt",
toolboxGeneralCategory: "Yleinen",
toolboxChoiceCategory: "Valintaa koskevat kysymykset",
toolboxTextCategory: "Tekstinsyöttökysymykset",
toolboxContainersCategory: "Säiliöt",
toolboxMatrixCategory: "Matriisin kysymykset",
toolboxMiscCategory: "Muut",
correctJSON: "Korjaa JSON.",
surveyResults: "Kyselyn tulos:",
surveyResultsTable: "Taulukossa",
Expand Down
14 changes: 8 additions & 6 deletions packages/survey-creator-core/src/localization/french.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ var frenchTranslation = {
signaturepad: "Signature",
buttongroup: "Groupe de boutons"
},
toolbox_categories: {
general: "Général",
choice: "Questions à choix",
text: "Questions de saisie libre",
containers: "Conteneurs",
matrix: "Questions matricielles",
misc: "Divers",
},
// Strings in SurveyJS Creator
ed: {
defaultLocale: "Valeur par défaut ({0})",
Expand Down Expand Up @@ -111,12 +119,6 @@ var frenchTranslation = {
"property-grid": "Propriétés",
propertyGridFilteredTextPlaceholder: "Tapez pour rechercher...",
propertyGridNoResultsFound: "Aucun résultat trouvé",
toolboxGeneralCategory: "Général",
toolboxChoiceCategory: "Questions à choix",
toolboxTextCategory: "Questions de saisie libre",
toolboxContainersCategory: "Conteneurs",
toolboxMatrixCategory: "Questions matricielles",
toolboxMiscCategory: "Divers",
correctJSON: "Merci de corriger le JSON",
surveyResults: "Résultat du sondage : ",
surveyResultsTable: "Format tableau",
Expand Down
14 changes: 8 additions & 6 deletions packages/survey-creator-core/src/localization/german.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ var germanTranslation = {
signaturepad: "Unterschrift",
buttongroup: "Schaltfläche-Gruppe"
},
toolbox_categories: {
general: "Allgemein",
choice: "Auswahl-Fragen",
text: "Text-Eingabe-Fragen",
containers: "Kontainer",
matrix: "Matrix-Fragen",
misc: "Verschiedenes",
},
// Strings in SurveyJS Creator
ed: {
defaultLocale: "Standard ({0})",
Expand Down Expand Up @@ -111,12 +119,6 @@ var germanTranslation = {
"property-grid": "Eigenschaften",
propertyGridFilteredTextPlaceholder: "Tippen, um zu suchen ...",
propertyGridNoResultsFound: "Keine Ergebnisse gefunden",
toolboxGeneralCategory: "Allgemein",
toolboxChoiceCategory: "Auswahl-Fragen",
toolboxTextCategory: "Text-Eingabe-Fragen",
toolboxContainersCategory: "Kontainer",
toolboxMatrixCategory: "Matrix-Fragen",
toolboxMiscCategory: "Verschiedenes",
correctJSON: "Bitte JSON korrigieren.",
surveyResults: "Umfrageergebnis: ",
surveyResultsTable: "Als Tabelle",
Expand Down
14 changes: 8 additions & 6 deletions packages/survey-creator-core/src/localization/hebrew.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ export var hebrewStrings = {
signaturepad: "חתימה",
buttongroup: "קבוצת כפתורים"
},
toolbox_categories: {
general: "כללי",
choice: "שאלות עם בחירה",
text: "שאלות טקסטואליות",
containers: "מכילים",
matrix: "שאלות מטריצה",
misc: "שונות",
},
// Strings in SurveyJS Creator
ed: {
defaultLocale: "ברירת מחדל ({0})",
Expand Down Expand Up @@ -111,12 +119,6 @@ export var hebrewStrings = {
"property-grid": "מאפיינים",
propertyGridFilteredTextPlaceholder: "הקלד כדי לחפש...",
propertyGridNoResultsFound: "לא נמצאו תוצאות",
toolboxGeneralCategory: "כללי",
toolboxChoiceCategory: "שאלות עם בחירה",
toolboxTextCategory: "שאלות טקסטואליות",
toolboxContainersCategory: "מכילים",
toolboxMatrixCategory: "שאלות מטריצה",
toolboxMiscCategory: "שונות",
correctJSON: "אנא תקנו את ה-JSON.",
surveyResults: "תוצאות הסקר",
surveyResultsTable: "כטבלה",
Expand Down
14 changes: 8 additions & 6 deletions packages/survey-creator-core/src/localization/hungarian.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ export var huStrings = {
signaturepad: "Aláírás",
buttongroup: "Gombcsoport"
},
toolbox_categories: {
general: "Általános",
choice: "Választási kérdések",
text: "Szövegbeviteli kérdések",
containers: "Konténerek",
matrix: "Mátrix kérdések",
misc: "Misc",
},
// Strings in SurveyJS Creator
ed: {
defaultLocale: "Alapértelmezett ({0})",
Expand Down Expand Up @@ -111,12 +119,6 @@ export var huStrings = {
"property-grid": "Kellékek",
propertyGridFilteredTextPlaceholder: "Írja be a kereséshez...",
propertyGridNoResultsFound: "Nincs találat",
toolboxGeneralCategory: "Általános",
toolboxChoiceCategory: "Választási kérdések",
toolboxTextCategory: "Szövegbeviteli kérdések",
toolboxContainersCategory: "Konténerek",
toolboxMatrixCategory: "Mátrix kérdések",
toolboxMiscCategory: "Misc",
correctJSON: "Kérem javítsa a JSON-t.",
surveyResults: "Kérdőív eredménye: ",
surveyResultsTable: "Táblaként",
Expand Down
14 changes: 8 additions & 6 deletions packages/survey-creator-core/src/localization/indonesian.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ export var indonesianStrings = {
signaturepad: "Tanda tangan",
buttongroup: "Grup Tombol"
},
toolbox_categories: {
general: "Umum",
choice: "Pertanyaan Pilihan",
text: "Pertanyaan Input Teks",
containers: "Wadah",
matrix: "Pertanyaan Matriks",
misc: "Misc",
},
// Strings in SurveyJS Creator
ed: {
defaultLocale: "Default ({0})",
Expand Down Expand Up @@ -111,12 +119,6 @@ export var indonesianStrings = {
"property-grid": "Properti",
propertyGridFilteredTextPlaceholder: "Ketik untuk mencari...",
propertyGridNoResultsFound: "Tidak ada hasil yang ditemukan",
toolboxGeneralCategory: "Umum",
toolboxChoiceCategory: "Pertanyaan Pilihan",
toolboxTextCategory: "Pertanyaan Input Teks",
toolboxContainersCategory: "Wadah",
toolboxMatrixCategory: "Pertanyaan Matriks",
toolboxMiscCategory: "Misc",
correctJSON: "Please correct JSON.",
surveyResults: "Hasil survei: ",
surveyResultsTable: "Sebagai tabel",
Expand Down
Loading

0 comments on commit f6e8078

Please sign in to comment.