hr-design-system-handlebars 0.41.0 → 0.42.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ # v0.42.0 (Thu Apr 07 2022)
2
+
3
+ #### 🚀 Enhancement
4
+
5
+ - FEATURE: employs a loadDynamic template as a [#207](https://github.com/mumprod/hr-design-system-handlebars/pull/207) ([@szuelch](https://github.com/szuelch))
6
+
7
+ #### Authors: 1
8
+
9
+ - [@szuelch](https://github.com/szuelch)
10
+
11
+ ---
12
+
1
13
  # v0.41.0 (Wed Apr 06 2022)
2
14
 
3
15
  #### 🚀 Enhancement
@@ -1,5 +1,6 @@
1
1
  module.exports = function (value, options) {
2
- this.switch_value = value;
3
- this.switch_break = false;
4
- return options.fn(this);
5
- };
2
+ if (value == this.switch_value) {
3
+ this.switch_break = true
4
+ return options.fn(this)
5
+ }
6
+ }
@@ -1,6 +1,5 @@
1
1
  module.exports = function (value, options) {
2
- if (value == this.switch_value) {
3
- this.switch_break = true;
4
- return options.fn(this);
5
- }
6
- };
2
+ this.switch_value = value
3
+ this.switch_break = false
4
+ return options.fn(this)
5
+ }
@@ -8,12 +8,7 @@
8
8
  {{#with this.serviceNavigationSSILinks}}
9
9
  <ul class="flex justify-around w-full h-full -itemCount-{{ count }} lg:w-auto lg:justify-end lg:pt-1">
10
10
  {{#each this}}
11
- {{!-- {{> components/base/loadSSI _template='components/Header/ServiceNavigation/ServiceNavigationItem' }} --}}
12
- {{#if (isStorybook)}}
13
- {{> components/Header/ServiceNavigation/ServiceNavigationItem }}
14
- {{else}}
15
- {{{this}}}
16
- {{/if}}
11
+ {{> components/base/loadSSI templatePath='components/Header/ServiceNavigation/ServiceNavigationItem' }}
17
12
  {{/each}}
18
13
  </ul>
19
14
  {{/with}}
@@ -0,0 +1,5 @@
1
+ {{#switch templatePath}}
2
+ {{#case "components/Header/ServiceNavigation/ServiceNavigationItem"}}
3
+ {{> components/Header/ServiceNavigation/ServiceNavigationItem}}
4
+ {{/case}}
5
+ {{/switch}}
@@ -1,5 +1,5 @@
1
1
  {{#if (isStorybook)}}
2
- {{> (lookup . '_template') }}
2
+ {{> components/base/loadDynamic templatePath=templatePath}}
3
3
  {{else}}
4
4
  {{{this}}}
5
5
  {{/if}}
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "license": "MIT",
7
7
  "main": "dist/index.js",
8
8
  "repository": "https://github.com/szuelch/hr-design-system-handlebars",
9
- "version": "0.41.0",
9
+ "version": "0.42.0",
10
10
  "scripts": {
11
11
  "test": "echo \"Error: no test specified\" && exit 1",
12
12
  "storybook": "start-storybook -p 6006 public",
@@ -8,12 +8,7 @@
8
8
  {{#with this.serviceNavigationSSILinks}}
9
9
  <ul class="flex justify-around w-full h-full -itemCount-{{ count }} lg:w-auto lg:justify-end lg:pt-1">
10
10
  {{#each this}}
11
- {{!-- {{> components/base/loadSSI _template='components/Header/ServiceNavigation/ServiceNavigationItem' }} --}}
12
- {{#if (isStorybook)}}
13
- {{> components/Header/ServiceNavigation/ServiceNavigationItem }}
14
- {{else}}
15
- {{{this}}}
16
- {{/if}}
11
+ {{> components/base/loadSSI templatePath='components/Header/ServiceNavigation/ServiceNavigationItem' }}
17
12
  {{/each}}
18
13
  </ul>
19
14
  {{/with}}
@@ -0,0 +1,5 @@
1
+ {{#switch templatePath}}
2
+ {{#case "components/Header/ServiceNavigation/ServiceNavigationItem"}}
3
+ {{> components/Header/ServiceNavigation/ServiceNavigationItem}}
4
+ {{/case}}
5
+ {{/switch}}
@@ -1,5 +1,5 @@
1
1
  {{#if (isStorybook)}}
2
- {{> (lookup . '_template') }}
2
+ {{> components/base/loadDynamic templatePath=templatePath}}
3
3
  {{else}}
4
4
  {{{this}}}
5
5
  {{/if}}