@mgdis/mg-components 5.21.1 → 5.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{components.utils-cd908d4e.js → components.utils-637c479d.js} +9 -5
- package/dist/cjs/components.utils-637c479d.js.map +1 -0
- package/dist/cjs/{index-b4c6ee30.js → index-28bf9033.js} +1 -1
- package/dist/cjs/{index-b4c6ee30.js.map → index-28bf9033.js.map} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/mg-action-more_34.cjs.entry.js +157 -129
- package/dist/cjs/mg-action-more_34.cjs.entry.js.map +1 -1
- package/dist/cjs/mg-components.cjs.js +3 -3
- package/dist/cjs/mg-components.cjs.js.map +1 -1
- package/dist/cjs/mg-item-more.cjs.entry.js +2 -2
- package/dist/collection/assets/icons/index.js +91 -90
- package/dist/collection/assets/icons/index.js.map +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.js +3 -1
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox-paginated/mg-input-checkbox-paginated.js +9 -5
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox-paginated/mg-input-checkbox-paginated.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.conf.js +9 -0
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.conf.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.js +44 -32
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.js.map +1 -1
- package/dist/collection/locales/en/messages.json +4 -2
- package/dist/collection/locales/fr/messages.json +4 -2
- package/dist/components/index2.js +8 -4
- package/dist/components/index2.js.map +1 -1
- package/dist/components/mg-icon2.js +92 -90
- package/dist/components/mg-icon2.js.map +1 -1
- package/dist/components/mg-input-checkbox-paginated.js +1 -1
- package/dist/components/mg-input-checkbox-paginated2.js +19 -6
- package/dist/components/mg-input-checkbox-paginated2.js.map +1 -1
- package/dist/components/mg-input-checkbox.js +44 -32
- package/dist/components/mg-input-checkbox.js.map +1 -1
- package/dist/components/mg-tooltip2.js +3 -1
- package/dist/components/mg-tooltip2.js.map +1 -1
- package/dist/esm/{components.utils-0d67c31c.js → components.utils-f7c073a0.js} +9 -5
- package/dist/esm/components.utils-f7c073a0.js.map +1 -0
- package/dist/esm/{index-61c7cfb5.js → index-93dafb06.js} +1 -1
- package/dist/esm/{index-61c7cfb5.js.map → index-93dafb06.js.map} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/mg-action-more_34.entry.js +157 -129
- package/dist/esm/mg-action-more_34.entry.js.map +1 -1
- package/dist/esm/mg-components.js +4 -4
- package/dist/esm/mg-components.js.map +1 -1
- package/dist/esm/mg-item-more.entry.js +2 -2
- package/dist/mg-components/locales/en/messages.json +4 -2
- package/dist/mg-components/locales/fr/messages.json +4 -2
- package/dist/mg-components/mg-components.esm.js +1 -1
- package/dist/mg-components/mg-components.esm.js.map +1 -1
- package/dist/mg-components/p-457dd62a.entry.js +2 -0
- package/dist/mg-components/p-457dd62a.entry.js.map +1 -0
- package/dist/mg-components/{p-1c17516a.entry.js → p-4fa40a8f.entry.js} +2 -2
- package/dist/mg-components/p-721c4571.js +2 -0
- package/dist/mg-components/{p-af42d17b.js.map → p-721c4571.js.map} +1 -1
- package/dist/mg-components/{p-6e7aebeb.js → p-8155d0e2.js} +1 -1
- package/dist/mg-components/{p-6e7aebeb.js.map → p-8155d0e2.js.map} +1 -1
- package/dist/types/assets/icons/index.d.ts +1 -0
- package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.conf.d.ts +8 -0
- package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.d.ts +14 -12
- package/dist/types/locales/index.d.ts +4 -0
- package/package.json +5 -5
- package/dist/cjs/components.utils-cd908d4e.js.map +0 -1
- package/dist/esm/components.utils-0d67c31c.js.map +0 -1
- package/dist/mg-components/p-5b4eb029.entry.js +0 -2
- package/dist/mg-components/p-5b4eb029.entry.js.map +0 -1
- package/dist/mg-components/p-af42d17b.js +0 -2
- /package/dist/mg-components/{p-1c17516a.entry.js.map → p-4fa40a8f.entry.js.map} +0 -0
|
@@ -33,12 +33,14 @@
|
|
|
33
33
|
"selected": {
|
|
34
34
|
"title": "Selected",
|
|
35
35
|
"titlePlurial": "Selected",
|
|
36
|
-
"action": "Unselect all"
|
|
36
|
+
"action": "Unselect all",
|
|
37
|
+
"tooltip": "Unselect all current search results"
|
|
37
38
|
},
|
|
38
39
|
"notSelected": {
|
|
39
40
|
"title": "Not selected",
|
|
40
41
|
"titlePlurial": "Not selected",
|
|
41
|
-
"action": "Select all"
|
|
42
|
+
"action": "Select all",
|
|
43
|
+
"tooltip": "Select all current search results"
|
|
42
44
|
}
|
|
43
45
|
}
|
|
44
46
|
}
|
|
@@ -33,12 +33,14 @@
|
|
|
33
33
|
"selected": {
|
|
34
34
|
"title": "Sélectionné",
|
|
35
35
|
"titlePlurial": "Sélectionnés",
|
|
36
|
-
"action": "Tout désélectionner"
|
|
36
|
+
"action": "Tout désélectionner",
|
|
37
|
+
"tooltip": "Désélectionne tous les résultats de la recherche en cours"
|
|
37
38
|
},
|
|
38
39
|
"notSelected": {
|
|
39
40
|
"title": "Non sélectionné",
|
|
40
41
|
"titlePlurial": "Non sélectionnés",
|
|
41
|
-
"action": "Tout sélectionner"
|
|
42
|
+
"action": "Tout sélectionner",
|
|
43
|
+
"tooltip": "Sélectionne tous les résultats de la recherche en cours"
|
|
42
44
|
}
|
|
43
45
|
}
|
|
44
46
|
}
|
|
@@ -32,12 +32,14 @@ const input$1 = {
|
|
|
32
32
|
selected: {
|
|
33
33
|
title: "Selected",
|
|
34
34
|
titlePlurial: "Selected",
|
|
35
|
-
action: "Unselect all"
|
|
35
|
+
action: "Unselect all",
|
|
36
|
+
tooltip: "Unselect all current search results"
|
|
36
37
|
},
|
|
37
38
|
notSelected: {
|
|
38
39
|
title: "Not selected",
|
|
39
40
|
titlePlurial: "Not selected",
|
|
40
|
-
action: "Select all"
|
|
41
|
+
action: "Select all",
|
|
42
|
+
tooltip: "Select all current search results"
|
|
41
43
|
}
|
|
42
44
|
}
|
|
43
45
|
}
|
|
@@ -131,12 +133,14 @@ const input = {
|
|
|
131
133
|
selected: {
|
|
132
134
|
title: "Sélectionné",
|
|
133
135
|
titlePlurial: "Sélectionnés",
|
|
134
|
-
action: "Tout désélectionner"
|
|
136
|
+
action: "Tout désélectionner",
|
|
137
|
+
tooltip: "Désélectionne tous les résultats de la recherche en cours"
|
|
135
138
|
},
|
|
136
139
|
notSelected: {
|
|
137
140
|
title: "Non sélectionné",
|
|
138
141
|
titlePlurial: "Non sélectionnés",
|
|
139
|
-
action: "Tout sélectionner"
|
|
142
|
+
action: "Tout sélectionner",
|
|
143
|
+
tooltip: "Sélectionne tous les résultats de la recherche en cours"
|
|
140
144
|
}
|
|
141
145
|
}
|
|
142
146
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"index2.js","mappings":"
|
|
1
|
+
{"file":"index2.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;MAOa,cAAc,GAAG,CAAC,MAAc,EAAE,MAAc,EAAE,QAAgB;IAC7E,OAAO,IAAI,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;AACvF,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AAE,CAAC;AAE5B;;;;;MAKa,WAAW,GAAG,CAAC,OAAoB,KAA4D,iBAAiB,CAAC,OAAO,EAAE,QAAQ,EAAE,aAAa;;;;","names":[],"sources":["src/utils/locale.utils.ts","src/locales/index.ts"],"sourcesContent":["/**\n * Format number to the locale currency\n * @param number - number to format\n * @param locale - locale to apply\n * @param currency - currency to apply\n * @returns formatted currency\n */\nexport const localeCurrency = (number: number, locale: string, currency: string): string => {\n return new Intl.NumberFormat(locale, { style: 'currency', currency }).format(number);\n};\n\n/**\n * Format number to locale\n * @param number - number to format\n * @param locale - locale to apply\n * @returns formatted number\n */\nexport const localeNumber = (number: number, locale: string): string => {\n return new Intl.NumberFormat(locale).format(number);\n};\n\n/**\n * Date RegExp\n */\nexport const dateRegExp = /^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$/;\n\n/**\n * Locale date format\n * @param date - date to format\n * @param locale - locale to apply\n * @returns formatted date\n */\nexport const localeDate = (date: string, locale: string): string => {\n if (typeof date !== 'string' || date === '' || !dateRegExp.test(date)) {\n return '';\n }\n return new Intl.DateTimeFormat(locale).format(new Date(date));\n};\n\n/**\n * Get locale and messages\n * We load the defined locale but for now we only support the first subtag for messages\n * @param element - element we need to get the language\n * @param messages - messages to use\n * @param defaultLocale - default messages locale\n * @returns messages object\n */\nexport const getLocaleMessages = (element: HTMLElement, messages: unknown, defaultLocale: string): { locale: string; messages: Record<string, unknown> } => {\n // Get local\n const closestLangAttribute: HTMLElement = element.closest('[lang]');\n const closestLang: string[] = Intl.NumberFormat.supportedLocalesOf(closestLangAttribute?.lang);\n const locale = closestLang.length > 0 ? closestLang[0] : navigator.language || defaultLocale;\n // Only keep first subtag\n const localeSubtag = locale.split('-').shift();\n // Return\n return {\n locale,\n messages: messages[localeSubtag] || messages[defaultLocale],\n };\n};\n","import en from './en/messages.json';\nimport fr from './fr/messages.json';\nimport { getLocaleMessages } from '../utils/locale.utils';\n\nconst defaultLocale = 'en';\nconst messages = { en, fr };\n\n/**\n * Get Intl object\n * @param element - element we need to get the language\n * @returns messages object\n */\nexport const initLocales = (element: HTMLElement): { locale: string; messages: Record<string, unknown> } => getLocaleMessages(element, messages, defaultLocale);\n"],"version":3}
|