npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

dd-flexbox

v9.0.1

Published

DdFlexbox and ddFlexitem ([Source Code]) are [Angular UI Framework] directives for `display: flex;` based layouting. See [Deployed Site] for project's CI built template view.

Downloads

1

Readme

ddFlexbox, ddFlexitem

DdFlexbox and ddFlexitem (Source Code) are Angular UI Framework directives for display: flex; based layouting. See Deployed Site for project's CI built template view.

Info

Handles setting of flex based style parameters on the target element. Useful for layouting done directly in templates and generally separating layouting from visuals which can stay in CSS. Both directives can be used on same element. Directive's parameters can be mixed together in any order (and can be separated by spaces) e.g. ddFlexbox="vycw" denotes a vbox (flex-direction: column;) with items centered horizontally and with auto-wrapping.

HowTo: Example of flexible layout with top menu, sidebar and auto-wrapping data view

<!-- main: vbox -->
<div ddFlexbox="v">
  <!-- menu: hbox with centered content -->
  <div ddFlexbox="xcyc">
    <button>Overview</button>
    <button>Projects</button>
    <button>Partner</button>
  </div>
  <!-- content: hbox -->
  <div ddFlexbox>
    <!-- sidebar: no grow or shrink in parent, itself a vbox with content to the right -->
    <div ddFlexitem="0 0" ddFlexbox="vye">
      <!-- label: position self left in parent -->
      <h3 ddFlexitem="as">Do:</h3>
      <button>Action 1</button>
      <button>Action 2</button>
      <button>Action 3</button>
    </div>
    <!-- data view: hbox which auto-wraps content -->
    <div ddFlexbox="w">
      <!-- data items: cards with different min width -->
      <div *ngFor="let card of [1,2,3,4,5,6,7,8,9,10]" ddFlexitem="0 0 {{ 1 + card%3 }}00px" ddFlexbox="v">
        <h4>Card {{card}}</h4>
        <label>Text Card Text Card Text Card</label>
      </div>
    </div>
  </div>
</div>

API

ddFlexbox

| CSS Targeted | Css Value | Parameter | Info | | --------------- | ------------- | -------------- | --------------------------------------------------- | | display | flex | - | default (auto-set) | | flex-direction | row | h (default) | hbox | | | column | v | vbox | | flex-wrap | wrap | w | auto-wrap mode (default is 'no-wrap') | | justify-content | flex-start | xs (default) | pack content at beginning of flex-direction | | | center | xc | ... | | | flex-end | xe | ... | | | space-between | xb | ... | | | space-around | xa | ... | | align-items | flex-start | ys | pack content at beginning 90° to flex-direction | | | center | yc | ... | | | flex-end | ye | ... | | | baseline | yb | ... | | | stretch | yt (default) | ... | | align-content | flex-start | cs | aligning lines when wrapped (yeah I know, see docs) | | | center | cc | ... | | | flex-end | ce | ... | | | space-between | cb | ... | | | space-around | ca | ... | | | stretch | ct (default) | ... |

ddFlexitem

| CSS Targeted | Css Value | Parameter | | ------------ | ------------------------ | ------------------------------------------------ | | align-self | flex-start | as | | | center | ac | | | flex-end | ae | | | baseline | ab | | | stretch | at | | | auto | aa (default if empty) | | flex | <grow> <shrink> {size} | <grow> <shrink> {size} (default is 0 1 auto) |

License

MIT