@shrfe/assets 1.0.18 → 1.0.19

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 (94) hide show
  1. package/js/shrfe-core-umd.js +21 -21
  2. package/package.json +1 -1
  3. package/wc-lib/index.esm.js +0 -2
  4. package/wc-lib/p-06933d31.entry.js +1 -0
  5. package/wc-lib/p-073e72b7.js +1 -0
  6. package/wc-lib/p-125d443b.entry.js +1 -0
  7. package/wc-lib/p-197b576e.entry.js +1 -0
  8. package/wc-lib/p-3eaa4250.entry.js +1 -0
  9. package/wc-lib/p-4865cb8d.entry.js +1 -0
  10. package/wc-lib/p-6f116fdb.entry.js +1 -0
  11. package/wc-lib/p-72ad0bd5.entry.js +1 -0
  12. package/wc-lib/p-75161f0b.entry.js +1 -0
  13. package/wc-lib/p-7aab95ba.entry.js +1 -0
  14. package/wc-lib/p-86b5690c.entry.js +1 -0
  15. package/wc-lib/{p-412dd3a3.entry.js → p-8f324339.entry.js} +1 -2
  16. package/wc-lib/p-9cf22f72.entry.js +1 -0
  17. package/wc-lib/p-C6hwjI5h.js +2 -0
  18. package/wc-lib/p-DFCAnQFT.js +1 -2
  19. package/wc-lib/p-DOY8Zr-F.js +1 -2
  20. package/wc-lib/p-DQNvkMYd.js +1 -7
  21. package/wc-lib/p-ae4dbe50.entry.js +6 -0
  22. package/wc-lib/p-b243e285.entry.js +1 -0
  23. package/wc-lib/p-b6c40d9f.entry.js +1 -0
  24. package/wc-lib/p-bbc4e214.entry.js +1 -0
  25. package/wc-lib/p-c57ce36c.entry.js +1 -0
  26. package/wc-lib/p-c592afb3.entry.js +1 -0
  27. package/wc-lib/p-ff9e9733.entry.js +1 -0
  28. package/wc-lib/wc-lib.esm.js +1 -2
  29. package/wc-lib/index.esm.js.map +0 -1
  30. package/wc-lib/loader.esm.js.map +0 -1
  31. package/wc-lib/p-081ea842.js +0 -2
  32. package/wc-lib/p-0867d450.entry.js +0 -2
  33. package/wc-lib/p-0867d450.entry.js.map +0 -1
  34. package/wc-lib/p-1af02653.entry.js +0 -2
  35. package/wc-lib/p-1af02653.entry.js.map +0 -1
  36. package/wc-lib/p-400a180c.entry.js +0 -2
  37. package/wc-lib/p-400a180c.entry.js.map +0 -1
  38. package/wc-lib/p-412dd3a3.entry.js.map +0 -1
  39. package/wc-lib/p-5739d4fc.entry.js +0 -2
  40. package/wc-lib/p-5739d4fc.entry.js.map +0 -1
  41. package/wc-lib/p-85b27233.entry.js +0 -2
  42. package/wc-lib/p-85b27233.entry.js.map +0 -1
  43. package/wc-lib/p-98abf656.entry.js +0 -2
  44. package/wc-lib/p-98abf656.entry.js.map +0 -1
  45. package/wc-lib/p-9cbc25eb.entry.js +0 -2
  46. package/wc-lib/p-9cbc25eb.entry.js.map +0 -1
  47. package/wc-lib/p-9e6f6f9d.entry.js +0 -2
  48. package/wc-lib/p-9e6f6f9d.entry.js.map +0 -1
  49. package/wc-lib/p-CI4W38n1.js +0 -3
  50. package/wc-lib/p-CI4W38n1.js.map +0 -1
  51. package/wc-lib/p-DFCAnQFT.js.map +0 -1
  52. package/wc-lib/p-DOY8Zr-F.js.map +0 -1
  53. package/wc-lib/p-DQNvkMYd.js.map +0 -1
  54. package/wc-lib/p-DQuL1Twl.js +0 -2
  55. package/wc-lib/p-DQuL1Twl.js.map +0 -1
  56. package/wc-lib/p-a7ea7a4d.entry.js +0 -6
  57. package/wc-lib/p-a7ea7a4d.entry.js.map +0 -1
  58. package/wc-lib/p-b3fefffd.entry.js +0 -2
  59. package/wc-lib/p-b3fefffd.entry.js.map +0 -1
  60. package/wc-lib/p-b4425380.entry.js +0 -2
  61. package/wc-lib/p-b4425380.entry.js.map +0 -1
  62. package/wc-lib/p-d43aa1bb.entry.js +0 -2
  63. package/wc-lib/p-d43aa1bb.entry.js.map +0 -1
  64. package/wc-lib/p-d88b38d4.entry.js +0 -2
  65. package/wc-lib/p-d88b38d4.entry.js.map +0 -1
  66. package/wc-lib/p-dd466949.entry.js +0 -2
  67. package/wc-lib/p-dd466949.entry.js.map +0 -1
  68. package/wc-lib/p-e5921276.entry.js +0 -2
  69. package/wc-lib/p-e5921276.entry.js.map +0 -1
  70. package/wc-lib/p-e66726d3.entry.js +0 -2
  71. package/wc-lib/p-e66726d3.entry.js.map +0 -1
  72. package/wc-lib/p-f9b19e40.entry.js +0 -2
  73. package/wc-lib/p-f9b19e40.entry.js.map +0 -1
  74. package/wc-lib/p-fed0b212.entry.js +0 -2
  75. package/wc-lib/p-fed0b212.entry.js.map +0 -1
  76. package/wc-lib/swc-alert.entry.esm.js.map +0 -1
  77. package/wc-lib/swc-banner.entry.esm.js.map +0 -1
  78. package/wc-lib/swc-checkbox-group.entry.esm.js.map +0 -1
  79. package/wc-lib/swc-checkbox.entry.esm.js.map +0 -1
  80. package/wc-lib/swc-file-uploader.entry.esm.js.map +0 -1
  81. package/wc-lib/swc-multiple-file.swc-single-file.entry.esm.js.map +0 -1
  82. package/wc-lib/swc-radio-input.entry.esm.js.map +0 -1
  83. package/wc-lib/swc-side-panel.entry.esm.js.map +0 -1
  84. package/wc-lib/swc-skeleton.entry.esm.js.map +0 -1
  85. package/wc-lib/swc-stepper-item.entry.esm.js.map +0 -1
  86. package/wc-lib/swc-stepper.entry.esm.js.map +0 -1
  87. package/wc-lib/swc-table-footer.entry.esm.js.map +0 -1
  88. package/wc-lib/swc-tag.entry.esm.js.map +0 -1
  89. package/wc-lib/swc-tags-input.entry.esm.js.map +0 -1
  90. package/wc-lib/swc-toast.entry.esm.js.map +0 -1
  91. package/wc-lib/swc-top-nav.entry.esm.js.map +0 -1
  92. package/wc-lib/swc-tour-guide-step.entry.esm.js.map +0 -1
  93. package/wc-lib/swc-tour-guide.entry.esm.js.map +0 -1
  94. package/wc-lib/wc-lib.esm.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"p-DFCAnQFT.js","sources":["src/components/swc-toast/utils.ts"],"sourcesContent":["/* eslint-disable @stencil-community/strict-boolean-conditions */\nimport { SwcToast } from './swc-toast'\nimport { ToastPositions, ToastTypes } from './types'\n\ntype Options = Partial<{\n showTitle: boolean\n position: ToastPositions\n dismissible: boolean\n timeout: number\n}>\n\nexport const showToast = (type: ToastTypes, title: string, message: string, options?: Options) => {\n let swcToast = document.querySelector('swc-toast') as unknown as HTMLElement & SwcToast\n if (swcToast) return\n swcToast = document.createElement('swc-toast') as unknown as HTMLElement & SwcToast\n\n swcToast.type = type\n swcToast._title = title\n swcToast.message = message\n swcToast.position = options?.position ?? 'top-center'\n swcToast.dismissible = options?.dismissible ?? true\n swcToast.showTitle = options?.showTitle ?? true\n swcToast.timeout = options?.timeout ?? 5000\n document.body.appendChild(swcToast as unknown as Node)\n swcToast.showToast()\n}\n"],"names":[],"mappings":"AAWO,MAAM,SAAS,GAAG,CAAC,IAAgB,EAAE,KAAa,EAAE,OAAe,EAAE,OAAiB,KAAI;IAC/F,IAAI,QAAQ,GAAG,QAAQ,CAAC,aAAa,CAAC,WAAW,CAAsC;AACvF,IAAA,IAAI,QAAQ;QAAE;AACd,IAAA,QAAQ,GAAG,QAAQ,CAAC,aAAa,CAAC,WAAW,CAAsC;AAEnF,IAAA,QAAQ,CAAC,IAAI,GAAG,IAAI;AACpB,IAAA,QAAQ,CAAC,MAAM,GAAG,KAAK;AACvB,IAAA,QAAQ,CAAC,OAAO,GAAG,OAAO;IAC1B,QAAQ,CAAC,QAAQ,GAAwB,YAAY;IACrD,QAAQ,CAAC,WAAW,GAA2B,IAAI;IACnD,QAAQ,CAAC,SAAS,GAAyB,IAAI;IAC/C,QAAQ,CAAC,OAAO,GAAuB,IAAI;AAC3C,IAAA,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,QAA2B,CAAC;IACtD,QAAQ,CAAC,SAAS,EAAE;AACtB;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"p-DOY8Zr-F.js","sources":["src/utils/utils.ts"],"sourcesContent":["/* eslint-disable @stencil-community/strict-boolean-conditions */\nexport const format = (first?: string, middle?: string, last?: string): string => {\n let name = first != undefined ? first + ' ' : ''\n name += middle != undefined ? middle + ' ' : ''\n name += last != undefined ? last + ' ' : ''\n return name.trim()\n //return ((first + ' ' || '') + (middle + ' ' || '') + (last + ' ' || '')).trim()\n}\n\n/**\n * Use this function only when shadow is set to true in a component @shrfe/styles is needed\n *\n * @param tag The component's tag used as html element\n */\nexport const loadShrStyles = (tag: string) => {\n const link = document.createElement('link')\n link.type = 'text/css'\n link.rel = 'stylesheet preload'\n link.href = 'https://cdn.seamlesshr.com/css/shrfe-styles.css'\n link.as = 'style'\n const el = document.querySelector(tag)?.shadowRoot\n el?.prepend(link)\n}\n\n/**\n * Generates a unique ID.\n * Useful for generating unique ids when dealing with accessibility\n * requirements such as aria-labelledby and aria-describedby.\n *\n * Inspired by Radix-vue https://github.com/radix-vue/radix-vue/blob/main/packages/radix-vue/src/shared/useId.ts\n *\n */\n\nlet idCounter = 0\n\nexport const useId = () => {\n const increment = () => {\n return `${++idCounter}`\n }\n\n /*\n * @param {string} [prefix=''] - Optional prefix for the generated ID.\n * @returns {string} A unique ID string.\n */\n const generate = (prefix = '') => {\n const uniqueId = increment()\n return prefix ? `${prefix}-${uniqueId}` : uniqueId\n }\n\n return { generate }\n}\n\nexport const hasNamedSlot = (el: HTMLElement, slotName: string): boolean => {\n return !!el.querySelector<HTMLSlotElement>(`[slot=\"${slotName}\"]`)\n}\n\n/**\n * Checks if the component has content in its default slot.\n * @param el - The host element (usually `this` in a Stencil component).\n * @returns `true` if content exists in the default slot.\n */\nexport const hasDefaultSlot = (el: HTMLElement): boolean => {\n // Get the default slot (unnamed slot)\n const slot = el.querySelector<HTMLSlotElement>('slot:not([name])')\n\n // Check if the slot exists and has assigned nodes (excluding whitespace text nodes)\n return slot\n ? slot\n .assignedNodes({ flatten: true })\n .filter(\n (node) =>\n node.nodeType === Node.ELEMENT_NODE ||\n (node.nodeType === Node.TEXT_NODE && node.textContent?.trim()),\n ).length > 0\n : false\n}\n\n/**\n * Detects clicks or touches outside a specified element and invokes a callback.\n * @param element - The element to monitor for outside interactions.\n * @param callback - The function to call when an outside interaction is detected.\n * @returns A cleanup function to remove the event listeners.\n */\nexport function onClickOutside(\n element: HTMLElement,\n callback: (event: MouseEvent | TouchEvent) => void,\n): () => void {\n const handleOutsideInteraction = (event: MouseEvent | TouchEvent) => {\n if (!element.contains(event.target as Node)) {\n callback(event)\n }\n }\n\n // Listen for both mouse and touch events\n document.addEventListener('click', handleOutsideInteraction, true)\n document.addEventListener('touchstart', handleOutsideInteraction, true)\n\n // Return a cleanup function\n return () => {\n document.removeEventListener('click', handleOutsideInteraction, true)\n document.removeEventListener('touchstart', handleOutsideInteraction, true)\n }\n}\n"],"names":[],"mappings":"AAAA;AAwBA;;;;;;;AAOG;AAEH,IAAI,SAAS,GAAG,CAAC;AAEV,MAAM,KAAK,GAAG,MAAK;IACxB,MAAM,SAAS,GAAG,MAAK;AACrB,QAAA,OAAO,CAAG,EAAA,EAAE,SAAS,CAAA,CAAE;AACzB,KAAC;AAED;;;AAGG;AACH,IAAA,MAAM,QAAQ,GAAG,CAAC,MAAM,GAAG,EAAE,KAAI;AAC/B,QAAA,MAAM,QAAQ,GAAG,SAAS,EAAE;AAC5B,QAAA,OAAO,MAAM,GAAG,CAAG,EAAA,MAAM,CAAI,CAAA,EAAA,QAAQ,CAAE,CAAA,GAAG,QAAQ;AACpD,KAAC;IAED,OAAO,EAAE,QAAQ,EAAE;AACrB;MAEa,YAAY,GAAG,CAAC,EAAe,EAAE,QAAgB,KAAa;IACzE,OAAO,CAAC,CAAC,EAAE,CAAC,aAAa,CAAkB,CAAU,OAAA,EAAA,QAAQ,CAAI,EAAA,CAAA,CAAC;AACpE;AAEA;;;;AAIG;AACU,MAAA,cAAc,GAAG,CAAC,EAAe,KAAa;;IAEzD,MAAM,IAAI,GAAG,EAAE,CAAC,aAAa,CAAkB,kBAAkB,CAAC;;AAGlE,IAAA,OAAO;AACL,UAAE;AACG,aAAA,aAAa,CAAC,EAAE,OAA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