multiple-select-vanilla
Advanced tools
Comparing version 3.2.2 to 3.3.0
@@ -1,2 +0,1 @@ | ||
/// <reference types="trusted-types" /> | ||
export type InferDOMType<T> = T extends CSSStyleDeclaration ? Partial<CSSStyleDeclaration> : T extends infer R ? R : any; | ||
@@ -3,0 +2,0 @@ export type OptionDataObject = { |
/** Locale I18N key (string) that currently exists in the project */ | ||
export type LocaleKey = 'cz-CS' | 'da-DK' | 'en-US' | 'es-ES' | 'fr-FR' | 'hu-HU' | 'it-IT' | 'ja-JP' | 'pt-BR' | 'ru-RU' | 'vi-VN' | 'zh-CN' | 'zh-TW'; | ||
export type LocaleKey = 'cz-CS' | 'da-DK' | 'de-DE' | 'en-US' | 'es-ES' | 'fr-FR' | 'hu-HU' | 'it-IT' | 'ja-JP' | 'pt-BR' | 'ru-RU' | 'vi-VN' | 'zh-CN' | 'zh-TW'; | ||
export interface MultipleSelectLocale { | ||
@@ -4,0 +4,0 @@ /** Customize the formatted text "All Selected" when using custom locale. */ |
@@ -1,2 +0,1 @@ | ||
/// <reference types="trusted-types" /> | ||
import type { LabelFilter, OptGroupRowData, OptionRowData, OptionRowDivider, TextFilter } from './interfaces'; | ||
@@ -3,0 +2,0 @@ import type { LocaleKey, MultipleSelectLocale } from './locale.interface'; |
export * from './multiple-select-cz-CS'; | ||
export * from './multiple-select-da-DK'; | ||
export * from './multiple-select-de-DE'; | ||
export * from './multiple-select-en-US'; | ||
@@ -4,0 +5,0 @@ export * from './multiple-select-es-ES'; |
@@ -1,2 +0,2 @@ | ||
var l=typeof window<"u"&&window.multipleSelect!==void 0?window.multipleSelect:{locales:{}},d={formatSelectAll(){return"[Vybrat v\u0161e]"},formatAllSelected(){return"V\u0161e vybr\xE1no"},formatCountSelected(e,t){return`${e} z ${t} vybr\xE1no`},formatNoMatchesFound(){return"Nebylo nalezeno"},formatOkButton(){return"Zav\u0159\xEDt"}};l.locales["cz-CS"]=d;var C=l.locales;var o=typeof window<"u"&&window.multipleSelect!==void 0?window.multipleSelect:{locales:{}},M={formatSelectAll(){return"[V\xE6lg alle]"},formatAllSelected(){return"Alle valgt"},formatCountSelected(e,t){return`${e} af ${t} valgt`},formatNoMatchesFound(){return"S\xF8gning uden resultat"},formatOkButton(){return"Lukke"}};o.locales["da-DK"]=M;var z=o.locales;var c=typeof window<"u"&&window.multipleSelect!==void 0?window.multipleSelect:{locales:{}},w={formatSelectAll(){return"[Select all]"},formatAllSelected(){return"All selected"},formatCountSelected(e,t){return`${e} of ${t} selected`},formatNoMatchesFound(){return"No matches found"},formatOkButton(){return"OK"}};c.locales["en-US"]=w;var P=c.locales;var n=typeof window<"u"&&window.multipleSelect!==void 0?window.multipleSelect:{locales:{}},L={formatSelectAll(){return"[Seleccionar todo]"},formatAllSelected(){return"Todos seleccionados"},formatCountSelected(e,t){return`${e} de ${t} seleccionado`},formatNoMatchesFound(){return"No se encontraron coincidencias"},formatOkButton(){return"Cerrar"}};n.locales["es-ES"]=L;var v=n.locales;var r=typeof window<"u"&&window.multipleSelect!==void 0?window.multipleSelect:{locales:{}},y={formatSelectAll(){return"[Tout s\xE9lectionner]"},formatAllSelected(){return"Tous s\xE9lectionn\xE9s"},formatCountSelected(e,t){return`${e} de ${t} s\xE9lectionn\xE9s`},formatNoMatchesFound(){return"Aucun r\xE9sultat"},formatOkButton(){return"Fermer"}};r.locales["fr-FR"]=y;var T=r.locales;var a=typeof window<"u"&&window.multipleSelect!==void 0?window.multipleSelect:{locales:{}},I={formatSelectAll(){return"[\xD6sszes kiv\xE1laszt\xE1sa]"},formatAllSelected(){return"\xD6sszes kiv\xE1lasztva"},formatCountSelected(e,t){return`${e} / ${t} kiv\xE1lasztva`},formatNoMatchesFound(){return"Nincs tal\xE1lat"},formatOkButton(){return"Bez\xE1r"}};a.locales["hu-HU"]=I;var R=a.locales;var u=typeof window<"u"&&window.multipleSelect!==void 0?window.multipleSelect:{locales:{}},x={formatSelectAll(){return"[Seleziona tutti]"},formatAllSelected(){return"Tutti selezionati"},formatCountSelected(e,t){return`${e} di ${t} selezionati`},formatNoMatchesFound(){return"Nessun risultato"},formatOkButton(){return"Chiudere"}};u.locales["it-IT"]=x;var U=u.locales;var i=typeof window<"u"&&window.multipleSelect!==void 0?window.multipleSelect:{locales:{}},b={formatSelectAll(){return"[\u3059\u3079\u3066\u9078\u629E]"},formatAllSelected(){return"\u3059\u3079\u3066\u9078\u629E"},formatCountSelected(e,t){return`${t} \u4EF6\u4E2D ${e} \u4EF6\u9078\u629E`},formatNoMatchesFound(){return"\u898B\u3064\u304B\u308A\u307E\u305B\u3093"},formatOkButton(){return"\u9589\u3081\u308B"}};i.locales["ja-JP"]=b;var E=i.locales;var s=typeof window<"u"&&window.multipleSelect!==void 0?window.multipleSelect:{locales:{}},h={formatSelectAll(){return"[Selecionar todos]"},formatAllSelected(){return"Todos selecionados"},formatCountSelected(e,t){return`${e} de ${t} selecionado(s)`},formatNoMatchesFound(){return"Nenhum resultado encontrado"},formatOkButton(){return"Fechar"}};s.locales["pt-BR"]=h;var J=s.locales;var p=typeof window<"u"&&window.multipleSelect!==void 0?window.multipleSelect:{locales:{}},A={formatSelectAll(){return"[\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0432\u0441\u0435]"},formatAllSelected(){return"\u0412\u044B\u0431\u0440\u0430\u043D\u043E \u0432\u0441\u0435"},formatCountSelected(e,t){return`${e} \u0438\u0437 ${t} \u0432\u044B\u0431\u0440\u0430\u043D\u043E`},formatNoMatchesFound(){return"\u0421\u043E\u0432\u043F\u0430\u0434\u0435\u043D\u0438\u0439 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u043E"},formatOkButton(){return"\u0417\u0430\u043A\u0440\u044B\u0432\u0430\u0442\u044C"}};p.locales["ru-RU"]=A;var q=p.locales;var m=typeof window<"u"&&window.multipleSelect!==void 0?window.multipleSelect:{locales:{}},$={formatSelectAll(){return"[T\u1EA5t c\u1EA3]"},formatAllSelected(){return"Ch\u1ECDn t\u1EA5t c\u1EA3"},formatCountSelected(e,t){return`\u0110\xE3 ch\u1ECDn ${e} trong ${t}`},formatNoMatchesFound(){return"Kh\xF4ng t\xECm th\u1EA5y k\u1EBFt qu\u1EA3."},formatOkButton(){return"\u0110\xF3ng"}};m.locales["vi-VN"]=$;var Z=m.locales;var S=typeof window<"u"&&window.multipleSelect!==void 0?window.multipleSelect:{locales:{}},N={formatSelectAll(){return"[\u5168\u9009]"},formatAllSelected(){return"\u5DF2\u9009\u62E9\u6240\u6709\u8BB0\u5F55"},formatCountSelected(e,t){return`\u5DF2\u4ECE${t}\u6761\u8BB0\u5F55\u4E2D\u9009\u62E9${e}\u6761`},formatNoMatchesFound(){return"\u6CA1\u6709\u627E\u5230\u8BB0\u5F55"},formatOkButton(){return"\u5173\u95ED"}};S.locales["zh-CN"]=N;var Q=S.locales;var f=typeof window<"u"&&window.multipleSelect!==void 0?window.multipleSelect:{locales:{}},k={formatSelectAll(){return"[\u5168\u9078]"},formatAllSelected(){return"\u5DF2\u9078\u64C7\u6240\u6709\u8A18\u9304"},formatCountSelected(e,t){return`\u5DF2\u5F9E${t}\u689D\u8A18\u9304\u4E2D\u9078\u64C7${e}\u689D`},formatNoMatchesFound(){return"\u6C92\u6709\u627E\u5230\u8A18\u9304"},formatOkButton(){return"\u5173\u95ED"}};f.locales["zh-TW"]=k;var Y=f.locales;export{d as Czech,M as Danish,w as English,y as French,I as Hungarian,x as Italian,b as Japanese,N as Mandarin,k as MandarinTraditional,h as Portuguese,A as Russian,L as Spanish,$ as Vietnamese}; | ||
var l=typeof window<"u"&&window.multipleSelect!==void 0?window.multipleSelect:{locales:{}},M={formatSelectAll(){return"[Vybrat v\u0161e]"},formatAllSelected(){return"V\u0161e vybr\xE1no"},formatCountSelected(e,t){return`${e} z ${t} vybr\xE1no`},formatNoMatchesFound(){return"Nebylo nalezeno"},formatOkButton(){return"Zav\u0159\xEDt"}};l.locales["cz-CS"]=M;var B=l.locales;var o=typeof window<"u"&&window.multipleSelect!==void 0?window.multipleSelect:{locales:{}},w={formatSelectAll(){return"[V\xE6lg alle]"},formatAllSelected(){return"Alle valgt"},formatCountSelected(e,t){return`${e} af ${t} valgt`},formatNoMatchesFound(){return"S\xF8gning uden resultat"},formatOkButton(){return"Lukke"}};o.locales["da-DK"]=w;var z=o.locales;var n=typeof window<"u"&&window.multipleSelect!==void 0?window.multipleSelect:{locales:{}},L={formatSelectAll(){return"[Alles ausw\xE4hlen]"},formatAllSelected(){return"Alles ausgew\xE4hlt"},formatCountSelected(e,t){return`${e} von ${t} ausgew\xE4hlt`},formatNoMatchesFound(){return"Keine Ergebnisse"},formatOkButton(){return"Schlie\xDFen"}};n.locales["de-DE"]=L;var g=n.locales;var c=typeof window<"u"&&window.multipleSelect!==void 0?window.multipleSelect:{locales:{}},y={formatSelectAll(){return"[Select all]"},formatAllSelected(){return"All selected"},formatCountSelected(e,t){return`${e} of ${t} selected`},formatNoMatchesFound(){return"No matches found"},formatOkButton(){return"OK"}};c.locales["en-US"]=y;var T=c.locales;var r=typeof window<"u"&&window.multipleSelect!==void 0?window.multipleSelect:{locales:{}},I={formatSelectAll(){return"[Seleccionar todo]"},formatAllSelected(){return"Todos seleccionados"},formatCountSelected(e,t){return`${e} de ${t} seleccionado`},formatNoMatchesFound(){return"No se encontraron coincidencias"},formatOkButton(){return"Cerrar"}};r.locales["es-ES"]=I;var E=r.locales;var a=typeof window<"u"&&window.multipleSelect!==void 0?window.multipleSelect:{locales:{}},x={formatSelectAll(){return"[Tout s\xE9lectionner]"},formatAllSelected(){return"Tous s\xE9lectionn\xE9s"},formatCountSelected(e,t){return`${e} de ${t} s\xE9lectionn\xE9s`},formatNoMatchesFound(){return"Aucun r\xE9sultat"},formatOkButton(){return"Fermer"}};a.locales["fr-FR"]=x;var R=a.locales;var u=typeof window<"u"&&window.multipleSelect!==void 0?window.multipleSelect:{locales:{}},h={formatSelectAll(){return"[\xD6sszes kiv\xE1laszt\xE1sa]"},formatAllSelected(){return"\xD6sszes kiv\xE1lasztva"},formatCountSelected(e,t){return`${e} / ${t} kiv\xE1lasztva`},formatNoMatchesFound(){return"Nincs tal\xE1lat"},formatOkButton(){return"Bez\xE1r"}};u.locales["hu-HU"]=h;var U=u.locales;var i=typeof window<"u"&&window.multipleSelect!==void 0?window.multipleSelect:{locales:{}},b={formatSelectAll(){return"[Seleziona tutti]"},formatAllSelected(){return"Tutti selezionati"},formatCountSelected(e,t){return`${e} di ${t} selezionati`},formatNoMatchesFound(){return"Nessun risultato"},formatOkButton(){return"Chiudere"}};i.locales["it-IT"]=b;var J=i.locales;var s=typeof window<"u"&&window.multipleSelect!==void 0?window.multipleSelect:{locales:{}},A={formatSelectAll(){return"[\u3059\u3079\u3066\u9078\u629E]"},formatAllSelected(){return"\u3059\u3079\u3066\u9078\u629E"},formatCountSelected(e,t){return`${t} \u4EF6\u4E2D ${e} \u4EF6\u9078\u629E`},formatNoMatchesFound(){return"\u898B\u3064\u304B\u308A\u307E\u305B\u3093"},formatOkButton(){return"\u9589\u3081\u308B"}};s.locales["ja-JP"]=A;var q=s.locales;var p=typeof window<"u"&&window.multipleSelect!==void 0?window.multipleSelect:{locales:{}},$={formatSelectAll(){return"[Selecionar todos]"},formatAllSelected(){return"Todos selecionados"},formatCountSelected(e,t){return`${e} de ${t} selecionado(s)`},formatNoMatchesFound(){return"Nenhum resultado encontrado"},formatOkButton(){return"Fechar"}};p.locales["pt-BR"]=$;var W=p.locales;var m=typeof window<"u"&&window.multipleSelect!==void 0?window.multipleSelect:{locales:{}},N={formatSelectAll(){return"[\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0432\u0441\u0435]"},formatAllSelected(){return"\u0412\u044B\u0431\u0440\u0430\u043D\u043E \u0432\u0441\u0435"},formatCountSelected(e,t){return`${e} \u0438\u0437 ${t} \u0432\u044B\u0431\u0440\u0430\u043D\u043E`},formatNoMatchesFound(){return"\u0421\u043E\u0432\u043F\u0430\u0434\u0435\u043D\u0438\u0439 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u043E"},formatOkButton(){return"\u0417\u0430\u043A\u0440\u044B\u0432\u0430\u0442\u044C"}};m.locales["ru-RU"]=N;var Q=m.locales;var S=typeof window<"u"&&window.multipleSelect!==void 0?window.multipleSelect:{locales:{}},k={formatSelectAll(){return"[T\u1EA5t c\u1EA3]"},formatAllSelected(){return"Ch\u1ECDn t\u1EA5t c\u1EA3"},formatCountSelected(e,t){return`\u0110\xE3 ch\u1ECDn ${e} trong ${t}`},formatNoMatchesFound(){return"Kh\xF4ng t\xECm th\u1EA5y k\u1EBFt qu\u1EA3."},formatOkButton(){return"\u0110\xF3ng"}};S.locales["vi-VN"]=k;var Y=S.locales;var f=typeof window<"u"&&window.multipleSelect!==void 0?window.multipleSelect:{locales:{}},C={formatSelectAll(){return"[\u5168\u9009]"},formatAllSelected(){return"\u5DF2\u9009\u62E9\u6240\u6709\u8BB0\u5F55"},formatCountSelected(e,t){return`\u5DF2\u4ECE${t}\u6761\u8BB0\u5F55\u4E2D\u9009\u62E9${e}\u6761`},formatNoMatchesFound(){return"\u6CA1\u6709\u627E\u5230\u8BB0\u5F55"},formatOkButton(){return"\u5173\u95ED"}};f.locales["zh-CN"]=C;var ee=f.locales;var d=typeof window<"u"&&window.multipleSelect!==void 0?window.multipleSelect:{locales:{}},F={formatSelectAll(){return"[\u5168\u9078]"},formatAllSelected(){return"\u5DF2\u9078\u64C7\u6240\u6709\u8A18\u9304"},formatCountSelected(e,t){return`\u5DF2\u5F9E${t}\u689D\u8A18\u9304\u4E2D\u9078\u64C7${e}\u689D`},formatNoMatchesFound(){return"\u6C92\u6709\u627E\u5230\u8A18\u9304"},formatOkButton(){return"\u5173\u95ED"}};d.locales["zh-TW"]=F;var le=d.locales;export{M as Czech,w as Danish,y as English,x as French,L as German,h as Hungarian,b as Italian,A as Japanese,C as Mandarin,F as MandarinTraditional,$ as Portuguese,N as Russian,I as Spanish,k as Vietnamese}; | ||
//# sourceMappingURL=multiple-select-all-locales.js.map |
@@ -13,3 +13,3 @@ /** | ||
export declare const multipleSelect: { | ||
(selector: ArrayLike<Node> | Node | string, config?: Partial<Omit<MultipleSelectOption, 'onHardDestroy' | 'onAfterHardDestroy'>>): MultipleSelectInstance | MultipleSelectInstance[]; | ||
(selector: ArrayLike<Node> | Node | string, config?: Partial<Omit<MultipleSelectOption, "onHardDestroy" | "onAfterHardDestroy">>): MultipleSelectInstance | MultipleSelectInstance[]; | ||
defaults: Partial<MultipleSelectOption>; | ||
@@ -16,0 +16,0 @@ locales: MultipleSelectLocales; |
@@ -1,2 +0,1 @@ | ||
/// <reference types="node" /> | ||
import type { HtmlStruct, MultipleSelectLocales, OptGroupRowData, OptionRowData } from './interfaces'; | ||
@@ -3,0 +2,0 @@ import type { CloseReason, MultipleSelectOption } from './interfaces/multipleSelectOption.interface'; |
{ | ||
"name": "multiple-select-vanilla", | ||
"version": "3.2.2", | ||
"version": "3.3.0", | ||
"main": "./dist/multiple-select.cjs", | ||
@@ -49,3 +49,3 @@ "module": "./dist/multiple-select.js", | ||
}, | ||
"gitHead": "bae7a809b681ae1d42f683b9dae62b3a00b90071" | ||
"gitHead": "c2c3dc0166c0b99c9f4d201e9b89bd0c81f9233a" | ||
} |
@@ -5,2 +5,3 @@ /** Locale I18N key (string) that currently exists in the project */ | ||
| 'da-DK' | ||
| 'de-DE' | ||
| 'en-US' | ||
@@ -7,0 +8,0 @@ | 'es-ES' |
export * from './multiple-select-cz-CS'; | ||
export * from './multiple-select-da-DK'; | ||
export * from './multiple-select-de-DE'; | ||
export * from './multiple-select-en-US'; | ||
@@ -4,0 +5,0 @@ export * from './multiple-select-es-ES'; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1152734
171
4892