npm

aem-fed-utils

1.1.8 • Public • Published

AEM FED Utilities

Projects that use the FED-Archetype (UI.Frontend) and go with Typescript can add this package to their project to get some very common global helper modules.

This is a work-in-progess. I plan to make these interfaces and focus on extensibility. I also have plans to add more utilities as I finish evaulating the ones see myself using a lot.

The modules in this include:

  • CollapseContent
    • addClickCollapseListener
    • toggleClick
    • openContent
    • closeContent
    • setCustomCallback
    • setCustomOnClickClass
    • setInstanceVariables
    • checkIfElementHasCollapseClasses
    • toggleCollapseClass
    • setInitialCollapseState
    • setAriaState
  • CustomEventPolyfill
    • CustomEvent
    • polyfill
  • Devices (enum)
    • Mobile
    • Tablet
    • Web
    • Desktop
  • DeviceCheck
    • private static readonly smBreakpoint;
    • private static readonly mdBreakpoint;
    • private static readonly lgBreakpoint;
    • getCurrentDevice
    • isMobileDevice
    • isTabletDevice
    • isWebDevice
    • isDesktop
    • isBrowser
  • DocumentReady
    • ready
  • Focus
    • preventFocusIndicatorOnClick
  • QueryParams
    • getParam
  • RequestUtils
    • makeJSONRequest
  • ScrollToTarget
    • scrollToTarget
    • scrollIntoView
  • TrapFocus
    • trapFocus
  • WCMUtils
    • getWcmMode
    • isWcmEditMode
    • isAuthorInstance

Package Sidebar

Install

npm i aem-fed-utils

Weekly Downloads

5

Version

1.1.8

License

MIT

Unpacked Size

14.5 kB

Total Files

12

Last publish

Collaborators

  • mansquatch