@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.
Files changed (66) hide show
  1. package/dist/cjs/{components.utils-cd908d4e.js → components.utils-637c479d.js} +9 -5
  2. package/dist/cjs/components.utils-637c479d.js.map +1 -0
  3. package/dist/cjs/{index-b4c6ee30.js → index-28bf9033.js} +1 -1
  4. package/dist/cjs/{index-b4c6ee30.js.map → index-28bf9033.js.map} +1 -1
  5. package/dist/cjs/loader.cjs.js +2 -2
  6. package/dist/cjs/mg-action-more_34.cjs.entry.js +157 -129
  7. package/dist/cjs/mg-action-more_34.cjs.entry.js.map +1 -1
  8. package/dist/cjs/mg-components.cjs.js +3 -3
  9. package/dist/cjs/mg-components.cjs.js.map +1 -1
  10. package/dist/cjs/mg-item-more.cjs.entry.js +2 -2
  11. package/dist/collection/assets/icons/index.js +91 -90
  12. package/dist/collection/assets/icons/index.js.map +1 -1
  13. package/dist/collection/collection-manifest.json +1 -1
  14. package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.js +3 -1
  15. package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.js.map +1 -1
  16. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox-paginated/mg-input-checkbox-paginated.js +9 -5
  17. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox-paginated/mg-input-checkbox-paginated.js.map +1 -1
  18. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.conf.js +9 -0
  19. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.conf.js.map +1 -1
  20. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.js +44 -32
  21. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.js.map +1 -1
  22. package/dist/collection/locales/en/messages.json +4 -2
  23. package/dist/collection/locales/fr/messages.json +4 -2
  24. package/dist/components/index2.js +8 -4
  25. package/dist/components/index2.js.map +1 -1
  26. package/dist/components/mg-icon2.js +92 -90
  27. package/dist/components/mg-icon2.js.map +1 -1
  28. package/dist/components/mg-input-checkbox-paginated.js +1 -1
  29. package/dist/components/mg-input-checkbox-paginated2.js +19 -6
  30. package/dist/components/mg-input-checkbox-paginated2.js.map +1 -1
  31. package/dist/components/mg-input-checkbox.js +44 -32
  32. package/dist/components/mg-input-checkbox.js.map +1 -1
  33. package/dist/components/mg-tooltip2.js +3 -1
  34. package/dist/components/mg-tooltip2.js.map +1 -1
  35. package/dist/esm/{components.utils-0d67c31c.js → components.utils-f7c073a0.js} +9 -5
  36. package/dist/esm/components.utils-f7c073a0.js.map +1 -0
  37. package/dist/esm/{index-61c7cfb5.js → index-93dafb06.js} +1 -1
  38. package/dist/esm/{index-61c7cfb5.js.map → index-93dafb06.js.map} +1 -1
  39. package/dist/esm/loader.js +3 -3
  40. package/dist/esm/mg-action-more_34.entry.js +157 -129
  41. package/dist/esm/mg-action-more_34.entry.js.map +1 -1
  42. package/dist/esm/mg-components.js +4 -4
  43. package/dist/esm/mg-components.js.map +1 -1
  44. package/dist/esm/mg-item-more.entry.js +2 -2
  45. package/dist/mg-components/locales/en/messages.json +4 -2
  46. package/dist/mg-components/locales/fr/messages.json +4 -2
  47. package/dist/mg-components/mg-components.esm.js +1 -1
  48. package/dist/mg-components/mg-components.esm.js.map +1 -1
  49. package/dist/mg-components/p-457dd62a.entry.js +2 -0
  50. package/dist/mg-components/p-457dd62a.entry.js.map +1 -0
  51. package/dist/mg-components/{p-1c17516a.entry.js → p-4fa40a8f.entry.js} +2 -2
  52. package/dist/mg-components/p-721c4571.js +2 -0
  53. package/dist/mg-components/{p-af42d17b.js.map → p-721c4571.js.map} +1 -1
  54. package/dist/mg-components/{p-6e7aebeb.js → p-8155d0e2.js} +1 -1
  55. package/dist/mg-components/{p-6e7aebeb.js.map → p-8155d0e2.js.map} +1 -1
  56. package/dist/types/assets/icons/index.d.ts +1 -0
  57. package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.conf.d.ts +8 -0
  58. package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.d.ts +14 -12
  59. package/dist/types/locales/index.d.ts +4 -0
  60. package/package.json +5 -5
  61. package/dist/cjs/components.utils-cd908d4e.js.map +0 -1
  62. package/dist/esm/components.utils-0d67c31c.js.map +0 -1
  63. package/dist/mg-components/p-5b4eb029.entry.js +0 -2
  64. package/dist/mg-components/p-5b4eb029.entry.js.map +0 -1
  65. package/dist/mg-components/p-af42d17b.js +0 -2
  66. /package/dist/mg-components/{p-1c17516a.entry.js.map → p-4fa40a8f.entry.js.map} +0 -0
@@ -34,12 +34,14 @@ const input$1 = {
34
34
  selected: {
35
35
  title: "Selected",
36
36
  titlePlurial: "Selected",
37
- action: "Unselect all"
37
+ action: "Unselect all",
38
+ tooltip: "Unselect all current search results"
38
39
  },
39
40
  notSelected: {
40
41
  title: "Not selected",
41
42
  titlePlurial: "Not selected",
42
- action: "Select all"
43
+ action: "Select all",
44
+ tooltip: "Select all current search results"
43
45
  }
44
46
  }
45
47
  }
@@ -133,12 +135,14 @@ const input = {
133
135
  selected: {
134
136
  title: "Sélectionné",
135
137
  titlePlurial: "Sélectionnés",
136
- action: "Tout désélectionner"
138
+ action: "Tout désélectionner",
139
+ tooltip: "Désélectionne tous les résultats de la recherche en cours"
137
140
  },
138
141
  notSelected: {
139
142
  title: "Non sélectionné",
140
143
  titlePlurial: "Non sélectionnés",
141
- action: "Tout sélectionner"
144
+ action: "Tout sélectionner",
145
+ tooltip: "Sélectionne tous les résultats de la recherche en cours"
142
146
  }
143
147
  }
144
148
  }
@@ -440,4 +444,4 @@ exports.localeNumber = localeNumber;
440
444
  exports.nextTick = nextTick;
441
445
  exports.sizes = sizes;
442
446
 
443
- //# sourceMappingURL=components.utils-cd908d4e.js.map
447
+ //# sourceMappingURL=components.utils-637c479d.js.map
@@ -0,0 +1 @@
1
+ {"file":"components.utils-637c479d.js","mappings":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B,IAAI;SACD,iBAAiB,EAAE;SACnB,SAAS,CAAC,KAAK,CAAC;SAChB,UAAU,CAAC,kBAAkB,EAAE,EAAE,EAAE;AAExC;;;;;MAKa,QAAQ,GAAG,OAAO,QAAoB,KAAoB,QAAQ;;;;;;;;;;;;;;;;;;","names":["Direction"],"sources":["src/utils/locale.utils.ts","src/locales/index.ts","src/components/molecules/menu/mg-menu/mg-menu.conf.ts","src/utils/components.utils.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","import { MgItemMore } from '../../mg-item-more/mg-item-more';\n\n/**\n * Menu direction type\n */\nexport enum Direction {\n VERTICAL = 'vertical',\n HORIZONTAL = 'horizontal',\n}\n\n/**\n * ItemMore prop type\n */\nexport type ItemMoreType = Pick<MgItemMore, 'icon' | 'slotlabel' | 'size'>;\n\n/**\n * List of all possibles sizes\n */\nexport const sizes = ['regular', 'medium', 'large'] as const;\n\n/**\n * item Size from sizes\n */\nexport type MenuSizeType = (typeof sizes)[number];\n","/**\n * Create random ID\n * @param prefix - add prefix to created ID\n * @param length - ID length\n * @returns ID\n */\nexport const createID = (prefix = '', length = 10): string => {\n const randomBytes = new Uint8Array(length);\n\n crypto.getRandomValues(randomBytes);\n\n const hexString = Array.from(randomBytes)\n .map(byte => byte.toString(16).padStart(2, '0'))\n .join('')\n .slice(0, length);\n\n return prefix !== '' ? `${prefix}-${hexString}` : hexString;\n};\n\n/**\n * Class to manage component classlist\n * Set() are not working when imported in project\n */\nexport class ClassList {\n /**\n * Available classes\n */\n classes: string[];\n\n constructor(classlist: string[] = []) {\n this.classes = classlist;\n }\n\n /**\n * Add class\n * @param className - class name to add\n */\n add = (className: string): void => {\n if (!this.has(className)) {\n this.classes.push(className);\n }\n };\n\n /**\n * Delete class\n * @param className - class name to delete\n */\n delete = (className: string): void => {\n const index = this.classes.indexOf(className);\n if (index > -1) {\n this.classes.splice(index, 1);\n }\n };\n\n /**\n * Check if class exist in list\n * @param className - class name to check\n * @returns class name is in the list\n */\n has = (className: string): boolean => {\n return this.classes.includes(className);\n };\n\n /**\n * Join classes seperated by spaces\n * @returns joined values\n */\n join = (): string => {\n return this.classes.join(' ');\n };\n}\n\n/**\n * Check if all items are string\n * @param items - items to check\n * @returns all items are string\n */\nexport const allItemsAreString = (items: unknown): items is string[] => Array.isArray(items) && items.every(item => typeof item === 'string');\n\n/**\n * Check if element is a heading\n * @param element - slotted element\n * @param tagNames - allowed tag names list\n * @returns element is a heading\n */\nexport const isTagName = (element: Element, tagNames: string[]): boolean => {\n return tagNames.includes(element?.tagName.toLowerCase());\n};\n\n/**\n * Focusable elements query selector\n */\nexport const focusableElements = 'a[href], button, input, textarea, select, details, [tabindex]:not([tabindex=\"-1\"]), [identifier]';\n\n/**\n * Get windows\n * @param localWindow - the window we are lookink for other windows\n * @returns The list of windows found\n */\nexport const getWindows = (localWindow: Window): Window[] => {\n const parentWindows = getParentWindows(localWindow);\n const childWindows = getChildWindows(localWindow);\n return [localWindow, ...parentWindows, ...childWindows];\n};\n\n/**\n * Get parent windows\n * @param localWindow - the window we are lookink for parents\n * @param windows - The list of allready found windows\n * @returns The list of windows found\n */\nexport const getParentWindows = (localWindow: Window, windows: Window[] = []): Window[] => {\n // Check if is in iframe\n if (localWindow.self !== localWindow.top) {\n // Check if we have permission to access parent\n try {\n const parentWindow: Window = localWindow.parent;\n windows.push(parentWindow);\n return getParentWindows(parentWindow, windows);\n } catch (err) {\n console.error('Different hosts between iframes:', err);\n return windows;\n }\n }\n return windows;\n};\n\n/**\n * Get child windows\n * @param localWindow - the window we are lookink for children\n * @param windows - The list of allready found windows\n * @returns The list of windows found\n */\nconst getChildWindows = (localWindow: Window, windows: Window[] = []): Window[] => {\n if (localWindow.frames.length > 0) {\n for (const childWindow of Array.from(localWindow.frames)) {\n windows.push(childWindow);\n getChildWindows(childWindow, windows);\n }\n }\n return windows;\n};\n\n/**\n * Validate string\n * @param value - value to check\n * @returns if string is valid\n */\nexport const isValidString = (value: unknown): boolean => typeof value === 'string' && value.trim() !== '';\n\n/**\n * Clean string caraters\n * @param text - text to cliean\n * @returns cleanded string\n */\nexport const cleanString = (text: string): string =>\n typeof text === 'string' &&\n text\n .toLocaleLowerCase()\n .normalize('NFD')\n .replaceAll(/[\\u0300-\\u036f]/g, '');\n\n/**\n * Use to process code next tick in the event loop\n * @param callback - code to excute on next tick\n * @returns differed code excution\n */\nexport const nextTick = async (callback: () => void): Promise<void> => callback();\n"],"version":3}
@@ -2486,4 +2486,4 @@ exports.promiseResolve = promiseResolve;
2486
2486
  exports.registerInstance = registerInstance;
2487
2487
  exports.setNonce = setNonce;
2488
2488
 
2489
- //# sourceMappingURL=index-b4c6ee30.js.map
2489
+ //# sourceMappingURL=index-28bf9033.js.map