diff --git a/package.json b/package.json index 3bed7a0..b4be583 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pcp-design", - "version": "2.1.0", + "version": "2.1.1", "description": "", "main": "index.js", "scripts": { @@ -34,6 +34,6 @@ }, "dependencies": { "jquery": "^2.2.2", - "fsa-style": "^2.1.0" + "fsa-style": "^2.1.1" } } diff --git a/src/_PATTERN.content-tabs-swap.html b/src/_PATTERN.content-tabs-swap.html deleted file mode 100644 index 88aaff0..0000000 --- a/src/_PATTERN.content-tabs-swap.html +++ /dev/null @@ -1,24 +0,0 @@ -
- -
-
- -
-
- tab 1 content -
-
- tab 2 content -
-
diff --git a/src/component_stepped-tabs.html b/src/component_stepped-tabs.html index 58156fc..c18c65e 100644 --- a/src/component_stepped-tabs.html +++ b/src/component_stepped-tabs.html @@ -26,8 +26,8 @@

Component: Stepped Tabs

As seen on

-

Price Discovery re-opened.

+

Discovery re-opened.

diff --git a/src/includes/growl_reopen-discovery.html b/src/includes/growl_reopen-discovery.html index e49164e..0bc77a9 100644 --- a/src/includes/growl_reopen-discovery.html +++ b/src/includes/growl_reopen-discovery.html @@ -4,7 +4,7 @@

Are you sure?

-

Re-opening Price Discovery will reset any work completed in future steps.

+

Re-opening Discovery will reset any work completed in future steps.

diff --git a/src/includes/pcp-info-bar.html b/src/includes/pcp-info-bar.html index 1107a05..0e73168 100644 --- a/src/includes/pcp-info-bar.html +++ b/src/includes/pcp-info-bar.html @@ -1,16 +1,16 @@

- EFFECTIVE DATE - + EFFECTIVE DATE +
- ORGANIZER - Carol Brady + ORGANIZER + Carol Brady
- APPROVER - Mike Brady + APPROVER + Mike Brady
NOTES diff --git a/src/includes/pcp-stepped-tabs__closing.html b/src/includes/pcp-stepped-tabs__closing.html index 6821ea7..b38e8c9 100644 --- a/src/includes/pcp-stepped-tabs__closing.html +++ b/src/includes/pcp-stepped-tabs__closing.html @@ -10,7 +10,7 @@
  • {% include: 'includes/icon.html' @NAME:'checkmark' @SIZE:' ' @CLASS:'pcp-stepped-tabs__icon' %} - Price Discovery + Discovery
  • diff --git a/src/includes/pcp-stepped-tabs__discovery--at-adjustments.html b/src/includes/pcp-stepped-tabs__discovery--at-adjustments.html index 5882b8f..258162d 100644 --- a/src/includes/pcp-stepped-tabs__discovery--at-adjustments.html +++ b/src/includes/pcp-stepped-tabs__discovery--at-adjustments.html @@ -10,7 +10,7 @@
  • {% include: 'includes/icon.html' @NAME:'checkmark' @SIZE:' ' @CLASS:'pcp-stepped-tabs__icon' %} - Price Discovery + Discovery
  • diff --git a/src/includes/pcp-stepped-tabs__discovery.html b/src/includes/pcp-stepped-tabs__discovery.html index 6aff0fa..61f5aa1 100644 --- a/src/includes/pcp-stepped-tabs__discovery.html +++ b/src/includes/pcp-stepped-tabs__discovery.html @@ -10,7 +10,7 @@
  • {% include: 'includes/icon.html' @NAME:'contrast' @SIZE:' ' @CLASS:'pcp-stepped-tabs__icon' %} - Price Discovery + Discovery
  • diff --git a/src/includes/pcp-stepped-tabs__init.html b/src/includes/pcp-stepped-tabs__init.html index d462244..a20303c 100644 --- a/src/includes/pcp-stepped-tabs__init.html +++ b/src/includes/pcp-stepped-tabs__init.html @@ -10,7 +10,7 @@
  • {% include: 'includes/icon.html' @NAME:'radio-unchecked' @SIZE:' ' @CLASS:'pcp-stepped-tabs__icon' %} - Price Discovery + Discovery
  • diff --git a/src/includes/pcp-stepped-tabs__mapping.html b/src/includes/pcp-stepped-tabs__mapping.html index 87c7c0e..5ab6299 100644 --- a/src/includes/pcp-stepped-tabs__mapping.html +++ b/src/includes/pcp-stepped-tabs__mapping.html @@ -10,7 +10,7 @@
  • {% include: 'includes/icon.html' @NAME:'checkmark' @SIZE:' ' @CLASS:'pcp-stepped-tabs__icon' %} - Price Discovery + Discovery
  • diff --git a/src/includes/pcp-stepped-tabs__publish.html b/src/includes/pcp-stepped-tabs__publish.html index 8684614..8c1d20a 100644 --- a/src/includes/pcp-stepped-tabs__publish.html +++ b/src/includes/pcp-stepped-tabs__publish.html @@ -10,7 +10,7 @@
  • {% include: 'includes/icon.html' @NAME:'checkmark' @SIZE:' ' @CLASS:'pcp-stepped-tabs__icon' %} - Price Discovery + Discovery
  • diff --git a/src/includes/pcp-stepped-tabs__review.html b/src/includes/pcp-stepped-tabs__review.html index 4f27b71..91d0734 100644 --- a/src/includes/pcp-stepped-tabs__review.html +++ b/src/includes/pcp-stepped-tabs__review.html @@ -10,7 +10,7 @@
  • {% include: 'includes/icon.html' @NAME:'checkmark' @SIZE:' ' @CLASS:'pcp-stepped-tabs__icon' %} - Price Discovery + Discovery
  • diff --git a/src/includes/program-entry__glf.html b/src/includes/program-entry__glf.html index 9b0cdac..8759bf7 100644 --- a/src/includes/program-entry__glf.html +++ b/src/includes/program-entry__glf.html @@ -1,246 +1,248 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - + + +
    MarketSRW - Soft Red Winter WheatHRW - Hard Red Winter WheatYC - Corn
    MarketValueChangeValueChangeValueChange
    LMN -
    -
    - -
    -
    - - -
    -
    -
    - 0.08 - -
    -
    - -
    -
    - - -
    -
    -
    - -0.01 - -
    -
    - -
    -
    - - -
    -
    -
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - + + + + + + + - - - - - - - + + + + + + + - - + + - - - - - - - + + + + + + + - - - - - - - - - - - + + + + + + + + + + + - - + + - - -
    MarketSRW - Soft Red Winter WheatHRW - Hard Red Winter WheatYC - Corn
    MarketValueChangeValueChangeValueChange
    LMN +
    +
    + +
    +
    + + +
    +
    +
    + 0.08 + +
    +
    + +
    +
    + + +
    +
    +
    + -0.01 + +
    +
    + +
    +
    + + +
    +
    +
    -
    ABC -
    -
    - -
    -
    - - -
    -
    -
    - 0.02 - -
    -
    - -
    -
    - - -
    -
    -
    +
    ABC +
    +
    + +
    +
    + + +
    +
    +
    + 0.02 + +
    +
    + +
    +
    + + +
    +
    +
    - -
    -
    - -
    -
    - - -
    -
    -
    - 0.01 -
    XYZ -
    -
    - -
    -
    - - -
    -
    -
    + +
    +
    + +
    +
    + + +
    +
    +
    + 0.01 +
    XYZ +
    +
    + +
    +
    + + +
    +
    +
    - -
    -
    - -
    -
    - - -
    -
    -
    + +
    +
    + +
    +
    + + +
    +
    +
    - -
    -
    - -
    -
    - - -
    -
    -
    - -0.07 -
    QRS -
    -
    - -
    -
    - - -
    -
    -
    + +
    +
    + +
    +
    + + +
    +
    +
    + -0.07 +
    QRS +
    +
    + +
    +
    + + +
    +
    +
    - -
    -
    - -
    -
    - - -
    -
    -
    - -0.03 - -
    -
    - -
    -
    - - -
    -
    -
    - 0.05 -
    TRE -
    -
    - -
    -
    - - -
    -
    -
    - -0.01 - -
    -
    - -
    -
    - - -
    -
    -
    + +
    +
    + +
    +
    + + +
    +
    +
    + -0.03 + +
    +
    + +
    +
    + + +
    +
    +
    + 0.05 +
    TRE +
    +
    + +
    +
    + + +
    +
    +
    + -0.01 + +
    +
    + +
    +
    + + +
    +
    +
    - -
    -
    - -
    -
    - - -
    -
    -
    + +
    +
    + +
    +
    + + +
    +
    +
    -
    +
    +
  • diff --git a/src/includes/program-entry__pnw-proteins.html b/src/includes/program-entry__pnw-proteins.html index 8bf8226..f9230bf 100644 --- a/src/includes/program-entry__pnw-proteins.html +++ b/src/includes/program-entry__pnw-proteins.html @@ -1,762 +1,764 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    ScalePNW / HRWWCD / HRWPNW / HRS
    ValueChangeValueChangeValueChange
    Ordinary -
    -
    - -
    -
    - - -
    -
    -
    0.08 -
    -
    - -
    -
    - - -
    -
    -
    -0.03 -
    -
    - -
    -
    - - -
    -
    -
    10.00 -
    -
    - -
    -
    - - -
    -
    -
    -
    -
    - -
    -
    - - -
    -
    -
    -
    -
    - -
    -
    - - -
    -
    -
    -0.02
    10.25 -
    -
    - -
    -
    - - -
    -
    -
    0.02 -
    -
    - -
    -
    - - -
    -
    -
    -1.02 -
    -
    - -
    -
    - - -
    -
    -
    10.50 -
    -
    - -
    -
    - - -
    -
    -
    -
    -
    - -
    -
    - - -
    -
    -
    -
    -
    - -
    -
    - - -
    -
    -
    10.75 -
    -
    - -
    -
    - - -
    -
    -
    -
    -
    - -
    -
    - - -
    -
    -
    -
    -
    - -
    -
    - - -
    -
    -
    -0.12
    11.00 -
    -
    - -
    -
    - - -
    -
    -
    -0.12 -
    -
    - -
    -
    - - -
    -
    -
    0.35 -
    -
    - -
    -
    - - -
    -
    -
    11.25 -
    -
    - -
    -
    - - -
    -
    -
    -
    -
    - -
    -
    - - -
    -
    -
    -
    -
    - -
    -
    - - -
    -
    -
    11.50 -
    -
    - -
    -
    - - -
    -
    -
    -0.02 -
    -
    - -
    -
    - - -
    -
    -
    -0.02 -
    -
    - -
    -
    - - -
    -
    -
    11.75 -
    -
    - -
    -
    - - -
    -
    -
    -
    -
    - -
    -
    - - -
    -
    -
    -
    -
    - -
    -
    - - -
    -
    -
    12.00 -
    -
    - -
    -
    - - -
    -
    -
    -
    -
    - -
    -
    - - -
    -
    -
    -
    -
    - -
    -
    - - -
    -
    -
    0.01
    12.25 -
    -
    - -
    -
    - - -
    -
    -
    -
    -
    - -
    -
    - - -
    -
    -
    0.01 -
    -
    - -
    -
    - - -
    -
    -
    12.50 -
    -
    - -
    -
    - - -
    -
    -
    -
    -
    - -
    -
    - - -
    -
    -
    -0.12 -
    -
    - -
    -
    - - -
    -
    -
    12.75 -
    -
    - -
    -
    - - -
    -
    -
    -
    -
    - -
    -
    - - -
    -
    -
    -
    -
    - -
    -
    - - -
    -
    -
    13.00 -
    -
    - -
    -
    - - -
    -
    -
    0.02 -
    -
    - -
    -
    - - -
    -
    -
    -
    -
    - -
    -
    - - -
    -
    -
    0.02
    13.25 -
    -
    - -
    -
    - - -
    -
    -
    0.01 -
    -
    - -
    -
    - - -
    -
    -
    -
    -
    - -
    -
    - - -
    -
    -
    13.50 -
    -
    - -
    -
    - - -
    -
    -
    -0.02 -
    -
    - -
    -
    - - -
    -
    -
    -0.01 -
    -
    - -
    -
    - - -
    -
    -
    13.75 -
    -
    - -
    -
    - - -
    -
    -
    -
    -
    - -
    -
    - - -
    -
    -
    -
    -
    - -
    -
    - - -
    -
    -
    14.00 -
    -
    - -
    -
    - - -
    -
    -
    -
    -
    - -
    -
    - - -
    -
    -
    -
    -
    - -
    -
    - - -
    -
    -
    14.25 + -
    -
    - -
    -
    - - -
    -
    -
    -
    -
    - -
    -
    - - -
    -
    -
    -
    -
    - -
    -
    - - -
    -
    -
    -0.01
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    ScalePNW / HRWWCD / HRWPNW / HRS
    ValueChangeValueChangeValueChange
    Ordinary +
    +
    + +
    +
    + + +
    +
    +
    0.08 +
    +
    + +
    +
    + + +
    +
    +
    -0.03 +
    +
    + +
    +
    + + +
    +
    +
    10.00 +
    +
    + +
    +
    + + +
    +
    +
    +
    +
    + +
    +
    + + +
    +
    +
    +
    +
    + +
    +
    + + +
    +
    +
    -0.02
    10.25 +
    +
    + +
    +
    + + +
    +
    +
    0.02 +
    +
    + +
    +
    + + +
    +
    +
    -1.02 +
    +
    + +
    +
    + + +
    +
    +
    10.50 +
    +
    + +
    +
    + + +
    +
    +
    +
    +
    + +
    +
    + + +
    +
    +
    +
    +
    + +
    +
    + + +
    +
    +
    10.75 +
    +
    + +
    +
    + + +
    +
    +
    +
    +
    + +
    +
    + + +
    +
    +
    +
    +
    + +
    +
    + + +
    +
    +
    -0.12
    11.00 +
    +
    + +
    +
    + + +
    +
    +
    -0.12 +
    +
    + +
    +
    + + +
    +
    +
    0.35 +
    +
    + +
    +
    + + +
    +
    +
    11.25 +
    +
    + +
    +
    + + +
    +
    +
    +
    +
    + +
    +
    + + +
    +
    +
    +
    +
    + +
    +
    + + +
    +
    +
    11.50 +
    +
    + +
    +
    + + +
    +
    +
    -0.02 +
    +
    + +
    +
    + + +
    +
    +
    -0.02 +
    +
    + +
    +
    + + +
    +
    +
    11.75 +
    +
    + +
    +
    + + +
    +
    +
    +
    +
    + +
    +
    + + +
    +
    +
    +
    +
    + +
    +
    + + +
    +
    +
    12.00 +
    +
    + +
    +
    + + +
    +
    +
    +
    +
    + +
    +
    + + +
    +
    +
    +
    +
    + +
    +
    + + +
    +
    +
    0.01
    12.25 +
    +
    + +
    +
    + + +
    +
    +
    +
    +
    + +
    +
    + + +
    +
    +
    0.01 +
    +
    + +
    +
    + + +
    +
    +
    12.50 +
    +
    + +
    +
    + + +
    +
    +
    +
    +
    + +
    +
    + + +
    +
    +
    -0.12 +
    +
    + +
    +
    + + +
    +
    +
    12.75 +
    +
    + +
    +
    + + +
    +
    +
    +
    +
    + +
    +
    + + +
    +
    +
    +
    +
    + +
    +
    + + +
    +
    +
    13.00 +
    +
    + +
    +
    + + +
    +
    +
    0.02 +
    +
    + +
    +
    + + +
    +
    +
    +
    +
    + +
    +
    + + +
    +
    +
    0.02
    13.25 +
    +
    + +
    +
    + + +
    +
    +
    0.01 +
    +
    + +
    +
    + + +
    +
    +
    +
    +
    + +
    +
    + + +
    +
    +
    13.50 +
    +
    + +
    +
    + + +
    +
    +
    -0.02 +
    +
    + +
    +
    + + +
    +
    +
    -0.01 +
    +
    + +
    +
    + + +
    +
    +
    13.75 +
    +
    + +
    +
    + + +
    +
    +
    +
    +
    + +
    +
    + + +
    +
    +
    +
    +
    + +
    +
    + + +
    +
    +
    14.00 +
    +
    + +
    +
    + + +
    +
    +
    +
    +
    + +
    +
    + + +
    +
    +
    +
    +
    + +
    +
    + + +
    +
    +
    14.25 + +
    +
    + +
    +
    + + +
    +
    +
    +
    +
    + +
    +
    + + +
    +
    +
    +
    +
    + +
    +
    + + +
    +
    +
    -0.01
    +
    diff --git a/src/includes/program-entry__pnw-proteins__marked.html b/src/includes/program-entry__pnw-proteins__marked.html index bc3b224..5aaed00 100644 --- a/src/includes/program-entry__pnw-proteins__marked.html +++ b/src/includes/program-entry__pnw-proteins__marked.html @@ -1,762 +1,764 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    ScalePNW / HRWWCD / HRWPNW / HRS
    ValueChangeValueChangeValueChange
    Ordinary -
    -
    - -
    -
    - - -
    -
    -
    0.08 -
    -
    - -
    -
    - - -
    -
    -
    -0.03 -
    -
    - -
    -
    - - -
    -
    -
    10.00 -
    -
    - -
    -
    - - -
    -
    -
    -
    -
    - -
    -
    - - -
    -
    -
    -
    -
    - -
    -
    - - -
    -
    -
    -0.02
    10.25 -
    -
    - -
    -
    - - -
    -
    -
    0.02 -
    -
    - -
    -
    - - -
    -
    -
    -1.02 -
    -
    - -
    -
    - - -
    -
    -
    10.50 -
    -
    - -
    -
    - - -
    -
    -
    -
    -
    - -
    -
    - - -
    -
    -
    -
    -
    - -
    -
    - - -
    -
    -
    10.75 -
    -
    - -
    -
    - - -
    -
    -
    -
    -
    - -
    -
    - - -
    -
    -
    -
    -
    - -
    -
    - - -
    -
    -
    -0.12
    11.00 -
    -
    - -
    -
    - - -
    -
    -
    -0.12 -
    -
    - -
    -
    - - -
    -
    -
    0.35 -
    -
    - -
    -
    - - -
    -
    -
    11.25 -
    -
    - -
    -
    - - -
    -
    -
    -
    -
    - -
    -
    - - -
    -
    -
    -
    -
    - -
    -
    - - -
    -
    -
    11.50 -
    -
    - -
    -
    - - -
    -
    -
    -0.02 -
    -
    - -
    -
    - - -
    -
    -
    -0.02 -
    -
    - -
    -
    - - -
    -
    -
    11.75 -
    -
    - -
    -
    - - -
    -
    -
    -
    -
    - -
    -
    - - -
    -
    -
    -
    -
    - -
    -
    - - -
    -
    -
    12.00 -
    -
    - -
    -
    - - -
    -
    -
    -
    -
    - -
    -
    - - -
    -
    -
    -
    -
    - -
    -
    - - -
    -
    -
    0.01
    12.25 -
    -
    - -
    -
    - - -
    -
    -
    -
    -
    - -
    -
    - - -
    -
    -
    0.01 -
    -
    - -
    -
    - - -
    -
    -
    12.50 -
    -
    - -
    -
    - - -
    -
    -
    -
    -
    - -
    -
    - - -
    -
    -
    -0.12 -
    -
    - -
    -
    - - -
    -
    -
    12.75 -
    -
    - -
    -
    - - -
    -
    -
    -
    -
    - -
    -
    - - -
    -
    -
    -
    -
    - -
    -
    - - -
    -
    -
    13.00 -
    -
    - -
    -
    - - -
    -
    -
    0.02 -
    -
    - -
    -
    - - -
    -
    -
    -
    -
    - -
    -
    - - -
    -
    -
    0.02
    13.25 -
    -
    - -
    -
    - - -
    -
    -
    0.01 -
    -
    - -
    -
    - - -
    -
    -
    -
    -
    - -
    -
    - - -
    -
    -
    13.50 -
    -
    - -
    -
    - - -
    -
    -
    -0.02 -
    -
    - -
    -
    - - -
    -
    -
    -0.01 -
    -
    - -
    -
    - - -
    -
    -
    13.75 -
    -
    - -
    -
    - - -
    -
    -
    -
    -
    - -
    -
    - - -
    -
    -
    -
    -
    - -
    -
    - - -
    -
    -
    14.00 -
    -
    - -
    -
    - - -
    -
    -
    -
    -
    - -
    -
    - - -
    -
    -
    -
    -
    - -
    -
    - - -
    -
    -
    14.25 + -
    -
    - -
    -
    - - -
    -
    -
    -
    -
    - -
    -
    - - -
    -
    -
    -
    -
    - -
    -
    - - -
    -
    -
    -0.01
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    ScalePNW / HRWWCD / HRWPNW / HRS
    ValueChangeValueChangeValueChange
    Ordinary +
    +
    + +
    +
    + + +
    +
    +
    0.08 +
    +
    + +
    +
    + + +
    +
    +
    -0.03 +
    +
    + +
    +
    + + +
    +
    +
    10.00 +
    +
    + +
    +
    + + +
    +
    +
    +
    +
    + +
    +
    + + +
    +
    +
    +
    +
    + +
    +
    + + +
    +
    +
    -0.02
    10.25 +
    +
    + +
    +
    + + +
    +
    +
    0.02 +
    +
    + +
    +
    + + +
    +
    +
    -1.02 +
    +
    + +
    +
    + + +
    +
    +
    10.50 +
    +
    + +
    +
    + + +
    +
    +
    +
    +
    + +
    +
    + + +
    +
    +
    +
    +
    + +
    +
    + + +
    +
    +
    10.75 +
    +
    + +
    +
    + + +
    +
    +
    +
    +
    + +
    +
    + + +
    +
    +
    +
    +
    + +
    +
    + + +
    +
    +
    -0.12
    11.00 +
    +
    + +
    +
    + + +
    +
    +
    -0.12 +
    +
    + +
    +
    + + +
    +
    +
    0.35 +
    +
    + +
    +
    + + +
    +
    +
    11.25 +
    +
    + +
    +
    + + +
    +
    +
    +
    +
    + +
    +
    + + +
    +
    +
    +
    +
    + +
    +
    + + +
    +
    +
    11.50 +
    +
    + +
    +
    + + +
    +
    +
    -0.02 +
    +
    + +
    +
    + + +
    +
    +
    -0.02 +
    +
    + +
    +
    + + +
    +
    +
    11.75 +
    +
    + +
    +
    + + +
    +
    +
    +
    +
    + +
    +
    + + +
    +
    +
    +
    +
    + +
    +
    + + +
    +
    +
    12.00 +
    +
    + +
    +
    + + +
    +
    +
    +
    +
    + +
    +
    + + +
    +
    +
    +
    +
    + +
    +
    + + +
    +
    +
    0.01
    12.25 +
    +
    + +
    +
    + + +
    +
    +
    +
    +
    + +
    +
    + + +
    +
    +
    0.01 +
    +
    + +
    +
    + + +
    +
    +
    12.50 +
    +
    + +
    +
    + + +
    +
    +
    +
    +
    + +
    +
    + + +
    +
    +
    -0.12 +
    +
    + +
    +
    + + +
    +
    +
    12.75 +
    +
    + +
    +
    + + +
    +
    +
    +
    +
    + +
    +
    + + +
    +
    +
    +
    +
    + +
    +
    + + +
    +
    +
    13.00 +
    +
    + +
    +
    + + +
    +
    +
    0.02 +
    +
    + +
    +
    + + +
    +
    +
    +
    +
    + +
    +
    + + +
    +
    +
    0.02
    13.25 +
    +
    + +
    +
    + + +
    +
    +
    0.01 +
    +
    + +
    +
    + + +
    +
    +
    +
    +
    + +
    +
    + + +
    +
    +
    13.50 +
    +
    + +
    +
    + + +
    +
    +
    -0.02 +
    +
    + +
    +
    + + +
    +
    +
    -0.01 +
    +
    + +
    +
    + + +
    +
    +
    13.75 +
    +
    + +
    +
    + + +
    +
    +
    +
    +
    + +
    +
    + + +
    +
    +
    +
    +
    + +
    +
    + + +
    +
    +
    14.00 +
    +
    + +
    +
    + + +
    +
    +
    +
    +
    + +
    +
    + + +
    +
    +
    +
    +
    + +
    +
    + + +
    +
    +
    14.25 + +
    +
    + +
    +
    + + +
    +
    +
    +
    +
    + +
    +
    + + +
    +
    +
    +
    +
    + +
    +
    + + +
    +
    +
    -0.01
    +
    diff --git a/src/includes/program-entry__pnw.html b/src/includes/program-entry__pnw.html index b5c636b..9e4bf15 100644 --- a/src/includes/program-entry__pnw.html +++ b/src/includes/program-entry__pnw.html @@ -1,246 +1,248 @@ - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + +
    MarketSRW - Soft Red Winter WheatHRW - Hard Red Winter WheatYC - Corn
    MarketValueChangeValueChangeValueChange
    CIN -
    -
    - -
    -
    - - -
    -
    -
    - 0.02 - -
    -
    - -
    -
    - - -
    -
    -
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - + + + + + + + - - + + - - - - - - - - - - - + + + + + + + + + + + - - - - - - - + + + + + + + - - + + - - - - - + + + + + - - - - - - -
    MarketSRW - Soft Red Winter WheatHRW - Hard Red Winter WheatYC - Corn
    MarketValueChangeValueChangeValueChange
    CIN +
    +
    + +
    +
    + + +
    +
    +
    + 0.02 + +
    +
    + +
    +
    + + +
    +
    +
    - -
    -
    - -
    -
    - - -
    -
    -
    - 0.01 -
    TOL -
    -
    - -
    -
    - - -
    -
    -
    + +
    +
    + +
    +
    + + +
    +
    +
    + 0.01 +
    TOL +
    +
    + +
    +
    + + +
    +
    +
    - -
    -
    - -
    -
    - - -
    -
    -
    + +
    +
    + +
    +
    + + +
    +
    +
    - -
    -
    - -
    -
    - - -
    -
    -
    - -0.07 -
    EVN -
    -
    - -
    -
    - - -
    -
    -
    - 0.08 - -
    -
    - -
    -
    - - -
    -
    -
    - -0.01 - -
    -
    - -
    -
    - - -
    -
    -
    + +
    +
    + +
    +
    + + +
    +
    +
    + -0.07 +
    EVN +
    +
    + +
    +
    + + +
    +
    +
    + 0.08 + +
    +
    + +
    +
    + + +
    +
    +
    + -0.01 + +
    +
    + +
    +
    + + +
    +
    +
    -
    MEM -
    -
    - -
    -
    - - -
    -
    -
    - -0.01 - -
    -
    - -
    -
    - - -
    -
    -
    +
    MEM +
    +
    + +
    +
    + + +
    +
    +
    + -0.01 + +
    +
    + +
    +
    + + +
    +
    +
    - -
    -
    - -
    -
    - - -
    -
    -
    + +
    +
    + +
    +
    + + +
    +
    +
    -
    CCC -
    -
    - -
    -
    - - -
    -
    -
    +
    CCC +
    +
    + +
    +
    + + +
    +
    +
    - -
    -
    - -
    -
    - - -
    -
    -
    - -0.03 - -
    -
    - -
    -
    - - -
    -
    -
    - 0.05 -
    +
    +
    +
    + +
    +
    + + +
    +
    +
    + -0.03 + +
    +
    + +
    +
    + + +
    +
    +
    + 0.05 +
    +
    diff --git a/src/includes/program-entry__pnw__marked.html b/src/includes/program-entry__pnw__marked.html index 4fcf8a2..26adbb0 100644 --- a/src/includes/program-entry__pnw__marked.html +++ b/src/includes/program-entry__pnw__marked.html @@ -1,246 +1,248 @@ - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + +
    MarketSRW - Soft Red Winter WheatHRW - Hard Red Winter WheatYC - Corn
    MarketValueChangeValueChangeValueChange
    CIN -
    -
    - -
    -
    - - -
    -
    -
    - 0.02 - -
    -
    - -
    -
    - - -
    -
    -
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - + + + + + + + - - + + - - - - - - - - - - - + + + + + + + + + + + - - - - - - - + + + + + + + - - + + - - - - - + + + + + - - - - - - -
    MarketSRW - Soft Red Winter WheatHRW - Hard Red Winter WheatYC - Corn
    MarketValueChangeValueChangeValueChange
    CIN +
    +
    + +
    +
    + + +
    +
    +
    + 0.02 + +
    +
    + +
    +
    + + +
    +
    +
    - -
    -
    - -
    -
    - - -
    -
    -
    - 0.01 -
    TOL -
    -
    - -
    -
    - - -
    -
    -
    + +
    +
    + +
    +
    + + +
    +
    +
    + 0.01 +
    TOL +
    +
    + +
    +
    + + +
    +
    +
    - -
    -
    - -
    -
    - - -
    -
    -
    + +
    +
    + +
    +
    + + +
    +
    +
    - -
    -
    - -
    -
    - - -
    -
    -
    - -0.07 -
    EVN -
    -
    - -
    -
    - - -
    -
    -
    - 0.08 - -
    -
    - -
    -
    - - -
    -
    -
    - -0.01 - -
    -
    - -
    -
    - - -
    -
    -
    + +
    +
    + +
    +
    + + +
    +
    +
    + -0.07 +
    EVN +
    +
    + +
    +
    + + +
    +
    +
    + 0.08 + +
    +
    + +
    +
    + + +
    +
    +
    + -0.01 + +
    +
    + +
    +
    + + +
    +
    +
    -
    MEM -
    -
    - -
    -
    - - -
    -
    -
    - -0.01 - -
    -
    - -
    -
    - - -
    -
    -
    +
    MEM +
    +
    + +
    +
    + + +
    +
    +
    + -0.01 + +
    +
    + +
    +
    + + +
    +
    +
    - -
    -
    - -
    -
    - - -
    -
    -
    + +
    +
    + +
    +
    + + +
    +
    +
    -
    CCC -
    -
    - -
    -
    - - -
    -
    -
    +
    CCC +
    +
    + +
    +
    + + +
    +
    +
    - -
    -
    - -
    -
    - - -
    -
    -
    - -0.03 - -
    -
    - -
    -
    - - -
    -
    -
    - 0.05 -
    +
    +
    +
    + +
    +
    + + +
    +
    +
    + -0.03 + +
    +
    + +
    +
    + + +
    +
    +
    + 0.05 +
    +
    diff --git a/src/includes/prototype-list.html b/src/includes/prototype-list.html index 0339304..6561c27 100644 --- a/src/includes/prototype-list.html +++ b/src/includes/prototype-list.html @@ -13,9 +13,9 @@

    Pages

  • Home
  • Home, Publish Complete
  • Initialize new Daily Process
  • -
  • Price Discovery
  • -
  • Price Discovery - Limited
  • -
  • Price Discovery - Complete
  • +
  • Discovery
  • +
  • Discovery - Limited
  • +
  • Discovery - Complete
  • Closing
  • Adjustments
  • Adjustments - Empty State Panel
  • diff --git a/src/includes/table_overflow-example.html b/src/includes/table_overflow-example.html new file mode 100644 index 0000000..d1acb08 --- /dev/null +++ b/src/includes/table_overflow-example.html @@ -0,0 +1,188 @@ +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    OneTwoThreeFourFiveSixSevenEightNineTenElevenTwelveThirteenFourteenFifteenSixteenSeventeenEightteenNineteenTwentyTwentyoneTwentytwoTwentythreeTwentyfourTwentyfiveTwentysixTwentysevenTwentyeightTwentynineThirtyThurdeeThrdThoordiThordey
    CulpaDoloreNonOccaecatNullaSintEsseExcepteurPariaturProidentOfficiaSuntFugiatCillumEsseExcepteurOfficiaNullaSintPariaturCillumFugiatCulpaOccaecatNonCulpaDoloreOfficiaProidentSuntOccaecatNonProidentSunt
    FugiatDoloreExcepteurEssePariaturCillumOfficiaNonSuntSintNullaFugiatNonSuntCulpaDoloreCulpaOfficiaProidentSuntOccaecatSintNullaOccaecatCillumEsseCulpaExcepteurOfficiaPariaturProidentOccaecatNonProident
    FugiatNonSuntProidentOccaecatOccaecatNonProidentCulpaCulpaDoloreProidentOfficiaSuntEsseOccaecatDoloreExcepteurPariaturFugiatCillumOfficiaNonSuntSintSintNullaNullaCillumEsseCulpaExcepteurOfficiaPariatur
    NonCulpaProidentDoloreProidentOccaecatDoloreCulpaExcepteurOfficiaSuntFugiatNonPariaturSuntOccaecatProidentEsseFugiatOccaecatCillumNonOfficiaSuntSintSintNullaNullaCillumEsseCulpaExcepteurOfficiaPariatur
    +
    diff --git a/src/js/components/fsa-nav-global.js b/src/js/components/fsa-nav-global.js index 972b5b7..f4ca34f 100644 --- a/src/js/components/fsa-nav-global.js +++ b/src/js/components/fsa-nav-global.js @@ -1,111 +1,111 @@ -// None of this is production-quality. Do not use for production. Use as inspiration and guidance for yours. -// None of this is production-quality. Do not use for production. Use as inspiration and guidance for yours. -// None of this is production-quality. Do not use for production. Use as inspiration and guidance for yours. -// None of this is production-quality. Do not use for production. Use as inspiration and guidance for yours. -// None of this is production-quality. Do not use for production. Use as inspiration and guidance for yours. -// None of this is production-quality. Do not use for production. Use as inspiration and guidance for yours. -// None of this is production-quality. Do not use for production. Use as inspiration and guidance for yours. -// None of this is production-quality. Do not use for production. Use as inspiration and guidance for yours. -// None of this is production-quality. Do not use for production. Use as inspiration and guidance for yours. -// None of this is production-quality. Do not use for production. Use as inspiration and guidance for yours. - - -// Disable functionality if class is present -if (document.querySelectorAll('.docs__page').length == 0) { - - var $menuItem = document.querySelectorAll('.fsa-nav-global__link--has-sub-menu'); - var $main = document.querySelectorAll('.fsa-tophat, .fsa-header-app, #main-content, .fsa-footer'); - - // Utility method to loop thru NodeList correctly - var forEach = function (array, callback, scope) { - for (var i = 0; i < array.length; i++) { - callback.call(scope, i, array[i]); // passes back stuff we need - } - }; - - // Utilitity method - var getClosest = function (elem, selector) { - // Element.matches() polyfill - if (!Element.prototype.matches) { - Element.prototype.matches = - Element.prototype.matchesSelector || - Element.prototype.mozMatchesSelector || - Element.prototype.msMatchesSelector || - Element.prototype.oMatchesSelector || - Element.prototype.webkitMatchesSelector || - function (s) { - var matches = (this.document || this.ownerDocument).querySelectorAll(s), - i = matches.length; - while (--i >= 0 && matches.item(i) !== this) {} - return i > -1; - }; - } - // Get the closest matching element - for (; elem && elem !== document; elem = elem.parentNode) { - if (elem.matches(selector)) return elem; - } - return null; - }; - - forEach($main, function (index, value) { - var _el = value; - _el.addEventListener('click', function (e) { - if (document.querySelector('.fsa-nav-global__link[aria-expanded="true"]')) { - document.querySelector('.fsa-nav-global__link[aria-expanded="true"]').setAttribute('aria-expanded', 'false'); - document.querySelector('.fsa-nav-global__sub-menu[aria-hidden="false"]').setAttribute('aria-hidden', 'true'); - } - }); - }); - - forEach($menuItem, function (index, value) { - var _el = value; - _el.addEventListener('click', function (e) { - - var $self = this; - var $component = getClosest($self, '.fsa-nav-global'); - var $listItem = getClosest($self, '.fsa-nav-global__list-item'); - var $target = $listItem.querySelector('.fsa-nav-global__sub-menu'); - var $currentlyActiveTab = $component.querySelector('.fsa-nav-global__link[aria-expanded="true"]'); - var $currentlyActiveFlyout = $component.querySelector('.fsa-nav-global__sub-menu[aria-hidden="false"]'); - var menuState = $self.getAttribute('aria-expanded'); - // $target.classList.add('OUTLINE'); - - if ($currentlyActiveTab) { - $currentlyActiveTab.setAttribute('aria-expanded', 'false'); - $currentlyActiveFlyout.setAttribute('aria-hidden', 'true'); - } - - // TOGGLE MENU ITEM OPENED STATE - if (menuState == 'true') { - // $self.classList.remove('OUTLINE'); - $self.setAttribute('aria-expanded', 'false'); - $target.setAttribute('aria-hidden', 'true'); - } else { - // $self.classList.add('OUTLINE'); - $self.setAttribute('aria-expanded', 'true'); - $target.setAttribute('aria-hidden', 'false'); - } - - // if ($self.classList.contains('OUTLINE')) { - // $self.classList.remove('OUTLINE'); - // $target.setAttribute('aria-hidden', 'true'); - // } else { - // $self.classList.add('OUTLINE'); - // $target.setAttribute('aria-hidden', 'false'); - // } - // - }); - - _el.addEventListener('focus', function (e) { - if (document.querySelector('.fsa-nav-global__link[aria-expanded="true"]')) { - document.querySelector('.fsa-nav-global__link[aria-expanded="true"]').setAttribute('aria-expanded', 'false'); - document.querySelector('.fsa-nav-global__sub-menu[aria-hidden="false"]').setAttribute('aria-hidden', 'true'); - } - console.log('you focused an item'); - }); - - }); - - console.log('FSA_NAV_GLOBAL loaded, its JS ***not*** to be used for Production'); - -} +// None of this is production-quality. Do not use for production. Use as inspiration and guidance for yours. +// None of this is production-quality. Do not use for production. Use as inspiration and guidance for yours. +// None of this is production-quality. Do not use for production. Use as inspiration and guidance for yours. +// None of this is production-quality. Do not use for production. Use as inspiration and guidance for yours. +// None of this is production-quality. Do not use for production. Use as inspiration and guidance for yours. +// None of this is production-quality. Do not use for production. Use as inspiration and guidance for yours. +// None of this is production-quality. Do not use for production. Use as inspiration and guidance for yours. +// None of this is production-quality. Do not use for production. Use as inspiration and guidance for yours. +// None of this is production-quality. Do not use for production. Use as inspiration and guidance for yours. +// None of this is production-quality. Do not use for production. Use as inspiration and guidance for yours. + + +// Disable functionality if class is present +if (document.querySelectorAll('.docs__page').length == 0) { + + var $menuItem = document.querySelectorAll('.fsa-nav-global__link--has-sub-menu'); + var $main = document.querySelectorAll('.fsa-tophat, .fsa-header-app, #main-content, .fsa-footer'); + + // Utility method to loop thru NodeList correctly + var forEach = function (array, callback, scope) { + for (var i = 0; i < array.length; i++) { + callback.call(scope, i, array[i]); // passes back stuff we need + } + }; + + // Utilitity method + var getClosest = function (elem, selector) { + // Element.matches() polyfill + if (!Element.prototype.matches) { + Element.prototype.matches = + Element.prototype.matchesSelector || + Element.prototype.mozMatchesSelector || + Element.prototype.msMatchesSelector || + Element.prototype.oMatchesSelector || + Element.prototype.webkitMatchesSelector || + function (s) { + var matches = (this.document || this.ownerDocument).querySelectorAll(s), + i = matches.length; + while (--i >= 0 && matches.item(i) !== this) {} + return i > -1; + }; + } + // Get the closest matching element + for (; elem && elem !== document; elem = elem.parentNode) { + if (elem.matches(selector)) return elem; + } + return null; + }; + + forEach($main, function (index, value) { + var _el = value; + _el.addEventListener('click', function (e) { + if (document.querySelector('.fsa-nav-global__link[aria-expanded="true"]')) { + document.querySelector('.fsa-nav-global__link[aria-expanded="true"]').setAttribute('aria-expanded', 'false'); + document.querySelector('.fsa-nav-global__sub-menu[aria-hidden="false"]').setAttribute('aria-hidden', 'true'); + } + }); + }); + + forEach($menuItem, function (index, value) { + var _el = value; + _el.addEventListener('click', function (e) { + + var $self = this; + var $component = getClosest($self, '.fsa-nav-global'); + var $listItem = getClosest($self, '.fsa-nav-global__list-item'); + var $target = $listItem.querySelector('.fsa-nav-global__sub-menu'); + var $currentlyActiveTab = $component.querySelector('.fsa-nav-global__link[aria-expanded="true"]'); + var $currentlyActiveFlyout = $component.querySelector('.fsa-nav-global__sub-menu[aria-hidden="false"]'); + var menuState = $self.getAttribute('aria-expanded'); + // $target.classList.add('OUTLINE'); + + if ($currentlyActiveTab) { + $currentlyActiveTab.setAttribute('aria-expanded', 'false'); + $currentlyActiveFlyout.setAttribute('aria-hidden', 'true'); + } + + // TOGGLE MENU ITEM OPENED STATE + if (menuState == 'true') { + // $self.classList.remove('OUTLINE'); + $self.setAttribute('aria-expanded', 'false'); + $target.setAttribute('aria-hidden', 'true'); + } else { + // $self.classList.add('OUTLINE'); + $self.setAttribute('aria-expanded', 'true'); + $target.setAttribute('aria-hidden', 'false'); + } + + // if ($self.classList.contains('OUTLINE')) { + // $self.classList.remove('OUTLINE'); + // $target.setAttribute('aria-hidden', 'true'); + // } else { + // $self.classList.add('OUTLINE'); + // $target.setAttribute('aria-hidden', 'false'); + // } + // + }); + + _el.addEventListener('focus', function (e) { + if (document.querySelector('.fsa-nav-global__link[aria-expanded="true"]')) { + document.querySelector('.fsa-nav-global__link[aria-expanded="true"]').setAttribute('aria-expanded', 'false'); + document.querySelector('.fsa-nav-global__sub-menu[aria-hidden="false"]').setAttribute('aria-hidden', 'true'); + } + console.log('you focused an item'); + }); + + }); + + console.log('FSA_NAV_GLOBAL loaded, its JS ***not*** to be used for Production'); + +} diff --git a/src/js/components/fsa-select-multi.js b/src/js/components/fsa-select-multi.js index c0a08fd..e2ec075 100644 --- a/src/js/components/fsa-select-multi.js +++ b/src/js/components/fsa-select-multi.js @@ -1,120 +1,120 @@ -// None of this is production-quality. Do not use for production. Use as inspiration and guidance for yours. -// None of this is production-quality. Do not use for production. Use as inspiration and guidance for yours. -// None of this is production-quality. Do not use for production. Use as inspiration and guidance for yours. -// None of this is production-quality. Do not use for production. Use as inspiration and guidance for yours. -// None of this is production-quality. Do not use for production. Use as inspiration and guidance for yours. -// None of this is production-quality. Do not use for production. Use as inspiration and guidance for yours. -// None of this is production-quality. Do not use for production. Use as inspiration and guidance for yours. -// None of this is production-quality. Do not use for production. Use as inspiration and guidance for yours. -// None of this is production-quality. Do not use for production. Use as inspiration and guidance for yours. -// None of this is production-quality. Do not use for production. Use as inspiration and guidance for yours. - -var selectMulti__triggers = document.querySelectorAll('[data-behavior~="select-multi"]'); - -// Utility method to loop thru NodeList correctly -var forEach = function (array, callback, scope) { - for (var i = 0; i < array.length; i++) { - callback.call(scope, i, array[i]); // passes back stuff we need - } -}; - -// Utilitity method -var getClosest = function(elem, selector){ - - // Element.matches() polyfill - if (!Element.prototype.matches) { - Element.prototype.matches = - Element.prototype.matchesSelector || - Element.prototype.mozMatchesSelector || - Element.prototype.msMatchesSelector || - Element.prototype.oMatchesSelector || - Element.prototype.webkitMatchesSelector || - function(s) { - var matches = (this.document || this.ownerDocument).querySelectorAll(s), - i = matches.length; - while (--i >= 0 && matches.item(i) !== this) {} - return i > -1; - }; - } - - // Get the closest matching element - for ( ; elem && elem !== document; elem = elem.parentNode ) { - if ( elem.matches( selector ) ) return elem; - } - return null; - -}; - -// iterate thru trigger elements and set click handler -forEach(selectMulti__triggers, function(index, value) { - var _el = value; - _el.addEventListener('click', function(e){ - - var _check = e.target; - //var _parent = el.closest('.fsa-select-multi'); - var _parent = getClosest(_el, '.fsa-select-multi'); - var _selectAll = _parent.querySelector('[data-behavior~="select-multi-all"]'); - - if(_el != _selectAll){ - - var _len = _parent.querySelectorAll('[data-behavior~="select-multi"]').length; - var _lenChecked = _parent.querySelectorAll('[data-behavior~="select-multi"]:checked').length - var _count = _len - _lenChecked; - - if( _el.checked){ - if(!_selectAll.checked){ - if( _count <= 1 ){ - _selectAll.indeterminate = false; - _selectAll.checked = true; - } else { - _selectAll.indeterminate = true; - _selectAll.checked = false; - } - } - } else { - if(_selectAll.checked){ - _selectAll.indeterminate = true; - _selectAll.checked = false; - } else if(_count == (_len)) { - _selectAll.indeterminate = false; - _selectAll.checked = false; - } - } - - } else { - var _cbs = _parent.querySelectorAll('[data-behavior~="select-multi"]'); - forEach(_cbs, function (index, value) { - value.checked = _selectAll.checked; - }); - _selectAll.indeterminate = false; - } - - }, false); -}); - -function selectMulti__setState(){ - - var _selectAll = document.querySelectorAll('[data-behavior~="select-multi-all"]'); - forEach(_selectAll, function (index, value) { - - //console.log(typeof value); - //var _parent = value.closest('.fsa-select-multi'); - var _parent = getClosest(value, '.fsa-select-multi'); - var _selectAll = value; - - var _len = _parent.querySelectorAll('[data-behavior~="select-multi"]').length; - var _lenChecked = _parent.querySelectorAll('[data-behavior~="select-multi"]:checked').length - var _count = _len - _lenChecked; - - if( _count <= 1 ){ - _selectAll.indeterminate = false; - _selectAll.checked = true; - } else { - _selectAll.indeterminate = true; - _selectAll.checked = false; - } - }); -} - - -selectMulti__setState(); +// None of this is production-quality. Do not use for production. Use as inspiration and guidance for yours. +// None of this is production-quality. Do not use for production. Use as inspiration and guidance for yours. +// None of this is production-quality. Do not use for production. Use as inspiration and guidance for yours. +// None of this is production-quality. Do not use for production. Use as inspiration and guidance for yours. +// None of this is production-quality. Do not use for production. Use as inspiration and guidance for yours. +// None of this is production-quality. Do not use for production. Use as inspiration and guidance for yours. +// None of this is production-quality. Do not use for production. Use as inspiration and guidance for yours. +// None of this is production-quality. Do not use for production. Use as inspiration and guidance for yours. +// None of this is production-quality. Do not use for production. Use as inspiration and guidance for yours. +// None of this is production-quality. Do not use for production. Use as inspiration and guidance for yours. + +var selectMulti__triggers = document.querySelectorAll('[data-behavior~="select-multi"]'); + +// Utility method to loop thru NodeList correctly +var forEach = function (array, callback, scope) { + for (var i = 0; i < array.length; i++) { + callback.call(scope, i, array[i]); // passes back stuff we need + } +}; + +// Utilitity method +var getClosest = function(elem, selector){ + + // Element.matches() polyfill + if (!Element.prototype.matches) { + Element.prototype.matches = + Element.prototype.matchesSelector || + Element.prototype.mozMatchesSelector || + Element.prototype.msMatchesSelector || + Element.prototype.oMatchesSelector || + Element.prototype.webkitMatchesSelector || + function(s) { + var matches = (this.document || this.ownerDocument).querySelectorAll(s), + i = matches.length; + while (--i >= 0 && matches.item(i) !== this) {} + return i > -1; + }; + } + + // Get the closest matching element + for ( ; elem && elem !== document; elem = elem.parentNode ) { + if ( elem.matches( selector ) ) return elem; + } + return null; + +}; + +// iterate thru trigger elements and set click handler +forEach(selectMulti__triggers, function(index, value) { + var _el = value; + _el.addEventListener('click', function(e){ + + var _check = e.target; + //var _parent = el.closest('.fsa-select-multi'); + var _parent = getClosest(_el, '.fsa-select-multi'); + var _selectAll = _parent.querySelector('[data-behavior~="select-multi-all"]'); + + if(_el != _selectAll){ + + var _len = _parent.querySelectorAll('[data-behavior~="select-multi"]').length; + var _lenChecked = _parent.querySelectorAll('[data-behavior~="select-multi"]:checked').length + var _count = _len - _lenChecked; + + if( _el.checked){ + if(!_selectAll.checked){ + if( _count <= 1 ){ + _selectAll.indeterminate = false; + _selectAll.checked = true; + } else { + _selectAll.indeterminate = true; + _selectAll.checked = false; + } + } + } else { + if(_selectAll.checked){ + _selectAll.indeterminate = true; + _selectAll.checked = false; + } else if(_count == (_len)) { + _selectAll.indeterminate = false; + _selectAll.checked = false; + } + } + + } else { + var _cbs = _parent.querySelectorAll('[data-behavior~="select-multi"]'); + forEach(_cbs, function (index, value) { + value.checked = _selectAll.checked; + }); + _selectAll.indeterminate = false; + } + + }, false); +}); + +function selectMulti__setState(){ + + var _selectAll = document.querySelectorAll('[data-behavior~="select-multi-all"]'); + forEach(_selectAll, function (index, value) { + + //console.log(typeof value); + //var _parent = value.closest('.fsa-select-multi'); + var _parent = getClosest(value, '.fsa-select-multi'); + var _selectAll = value; + + var _len = _parent.querySelectorAll('[data-behavior~="select-multi"]').length; + var _lenChecked = _parent.querySelectorAll('[data-behavior~="select-multi"]:checked').length + var _count = _len - _lenChecked; + + if( _count <= 1 ){ + _selectAll.indeterminate = false; + _selectAll.checked = true; + } else { + _selectAll.indeterminate = true; + _selectAll.checked = false; + } + }); +} + + +selectMulti__setState(); diff --git a/src/js/components/fsa-whiteout.js b/src/js/components/fsa-whiteout.js index c441ea9..7298644 100644 --- a/src/js/components/fsa-whiteout.js +++ b/src/js/components/fsa-whiteout.js @@ -1,37 +1,37 @@ -// None of this is production-quality. Do not use for production. Use as inspiration and guidance for yours. -// None of this is production-quality. Do not use for production. Use as inspiration and guidance for yours. -// None of this is production-quality. Do not use for production. Use as inspiration and guidance for yours. -// None of this is production-quality. Do not use for production. Use as inspiration and guidance for yours. -// None of this is production-quality. Do not use for production. Use as inspiration and guidance for yours. -// None of this is production-quality. Do not use for production. Use as inspiration and guidance for yours. -// None of this is production-quality. Do not use for production. Use as inspiration and guidance for yours. - -var whiteoutShow = document.querySelectorAll('[data-behavior~="whiteout-show"]'); -var whiteoutDismiss = document.querySelectorAll('[data-behavior~="whiteout-dismiss"]'); - - -// Utility method to loop thru NodeList correctly -var forEach = function (array, callback, scope) { - for (var i = 0; i < array.length; i++) { - callback.call(scope, i, array[i]); // passes back stuff we need - } -}; - -// iterate thru trigger elements and set click handler -forEach(whiteoutShow, function (index, value) { - var _el = value; - _el.addEventListener('click', function(e){ - var _whiteout = document.getElementById('fsa-whiteout'); - _whiteout.setAttribute('aria-hidden', 'false'); - _whiteout.setAttribute('aria-expanded', 'false'); - }, false); -}); - -forEach(whiteoutDismiss, function (index, value) { - var _el = value; - _el.addEventListener('click', function(e){ - var _whiteout = document.getElementById('fsa-whiteout'); - _whiteout.setAttribute('aria-hidden', 'true'); - _whiteout.setAttribute('aria-expanded', 'true'); - }, false); -}); +// None of this is production-quality. Do not use for production. Use as inspiration and guidance for yours. +// None of this is production-quality. Do not use for production. Use as inspiration and guidance for yours. +// None of this is production-quality. Do not use for production. Use as inspiration and guidance for yours. +// None of this is production-quality. Do not use for production. Use as inspiration and guidance for yours. +// None of this is production-quality. Do not use for production. Use as inspiration and guidance for yours. +// None of this is production-quality. Do not use for production. Use as inspiration and guidance for yours. +// None of this is production-quality. Do not use for production. Use as inspiration and guidance for yours. + +var whiteoutShow = document.querySelectorAll('[data-behavior~="whiteout-show"]'); +var whiteoutDismiss = document.querySelectorAll('[data-behavior~="whiteout-dismiss"]'); + + +// Utility method to loop thru NodeList correctly +var forEach = function (array, callback, scope) { + for (var i = 0; i < array.length; i++) { + callback.call(scope, i, array[i]); // passes back stuff we need + } +}; + +// iterate thru trigger elements and set click handler +forEach(whiteoutShow, function (index, value) { + var _el = value; + _el.addEventListener('click', function(e){ + var _whiteout = document.getElementById('fsa-whiteout'); + _whiteout.setAttribute('aria-hidden', 'false'); + _whiteout.setAttribute('aria-expanded', 'false'); + }, false); +}); + +forEach(whiteoutDismiss, function (index, value) { + var _el = value; + _el.addEventListener('click', function(e){ + var _whiteout = document.getElementById('fsa-whiteout'); + _whiteout.setAttribute('aria-hidden', 'true'); + _whiteout.setAttribute('aria-expanded', 'true'); + }, false); +}); diff --git a/src/js/vendor/html5shiv.js b/src/js/vendor/html5shiv.js index be068a4..205bdfe 100644 --- a/src/js/vendor/html5shiv.js +++ b/src/js/vendor/html5shiv.js @@ -1,301 +1,301 @@ -/** -* @preserve HTML5 Shiv prev3.7.1 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed -*/ -;(function(window, document) { -/*jshint evil:true */ - /** version */ - var version = '3.7.0'; - - /** Preset options */ - var options = window.html5 || {}; - - /** Used to skip problem elements */ - var reSkip = /^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i; - - /** Not all elements can be cloned in IE **/ - var saveClones = /^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i; - - /** Detect whether the browser supports default html5 styles */ - var supportsHtml5Styles; - - /** Name of the expando, to work with multiple documents or to re-shiv one document */ - var expando = '_html5shiv'; - - /** The id for the the documents expando */ - var expanID = 0; - - /** Cached data for each document */ - var expandoData = {}; - - /** Detect whether the browser supports unknown elements */ - var supportsUnknownElements; - - (function() { - try { - var a = document.createElement('a'); - a.innerHTML = ''; - //if the hidden property is implemented we can assume, that the browser supports basic HTML5 Styles - supportsHtml5Styles = ('hidden' in a); - - supportsUnknownElements = a.childNodes.length == 1 || (function() { - // assign a false positive if unable to shiv - (document.createElement)('a'); - var frag = document.createDocumentFragment(); - return ( - typeof frag.cloneNode == 'undefined' || - typeof frag.createDocumentFragment == 'undefined' || - typeof frag.createElement == 'undefined' - ); - }()); - } catch(e) { - // assign a false positive if detection fails => unable to shiv - supportsHtml5Styles = true; - supportsUnknownElements = true; - } - - }()); - - /*--------------------------------------------------------------------------*/ - - /** - * Creates a style sheet with the given CSS text and adds it to the document. - * @private - * @param {Document} ownerDocument The document. - * @param {String} cssText The CSS text. - * @returns {StyleSheet} The style element. - */ - function addStyleSheet(ownerDocument, cssText) { - var p = ownerDocument.createElement('p'), - parent = ownerDocument.getElementsByTagName('head')[0] || ownerDocument.documentElement; - - p.innerHTML = 'x'; - return parent.insertBefore(p.lastChild, parent.firstChild); - } - - /** - * Returns the value of `html5.elements` as an array. - * @private - * @returns {Array} An array of shived element node names. - */ - function getElements() { - var elements = html5.elements; - return typeof elements == 'string' ? elements.split(' ') : elements; - } - - /** - * Returns the data associated to the given document - * @private - * @param {Document} ownerDocument The document. - * @returns {Object} An object of data. - */ - function getExpandoData(ownerDocument) { - var data = expandoData[ownerDocument[expando]]; - if (!data) { - data = {}; - expanID++; - ownerDocument[expando] = expanID; - expandoData[expanID] = data; - } - return data; - } - - /** - * returns a shived element for the given nodeName and document - * @memberOf html5 - * @param {String} nodeName name of the element - * @param {Document} ownerDocument The context document. - * @returns {Object} The shived element. - */ - function createElement(nodeName, ownerDocument, data){ - if (!ownerDocument) { - ownerDocument = document; - } - if(supportsUnknownElements){ - return ownerDocument.createElement(nodeName); - } - if (!data) { - data = getExpandoData(ownerDocument); - } - var node; - - if (data.cache[nodeName]) { - node = data.cache[nodeName].cloneNode(); - } else if (saveClones.test(nodeName)) { - node = (data.cache[nodeName] = data.createElem(nodeName)).cloneNode(); - } else { - node = data.createElem(nodeName); - } - - // Avoid adding some elements to fragments in IE < 9 because - // * Attributes like `name` or `type` cannot be set/changed once an element - // is inserted into a document/fragment - // * Link elements with `src` attributes that are inaccessible, as with - // a 403 response, will cause the tab/window to crash - // * Script elements appended to fragments will execute when their `src` - // or `text` property is set - return node.canHaveChildren && !reSkip.test(nodeName) && !node.tagUrn ? data.frag.appendChild(node) : node; - } - - /** - * returns a shived DocumentFragment for the given document - * @memberOf html5 - * @param {Document} ownerDocument The context document. - * @returns {Object} The shived DocumentFragment. - */ - function createDocumentFragment(ownerDocument, data){ - if (!ownerDocument) { - ownerDocument = document; - } - if(supportsUnknownElements){ - return ownerDocument.createDocumentFragment(); - } - data = data || getExpandoData(ownerDocument); - var clone = data.frag.cloneNode(), - i = 0, - elems = getElements(), - l = elems.length; - for(;i