playbook_ui 14.5.0.pre.alpha.PLAY1486highchartscssdrivenPOC3931 → 14.5.0.pre.alpha.PLAY1486highchartscssdrivenPOC3944

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cc7a5d311c3e9fa9b0196d7db090be026c547a3569877bd5cc7ca65cbdd88634
4
- data.tar.gz: fe20311d78fd5b9bf8834fb066e72f4e7bca427c1678ccf38e72bfc9bd95a3ba
3
+ metadata.gz: 3a9114377efdf392c27e5ab55b3af4e52ac8650f2b83952980a9927b5486051c
4
+ data.tar.gz: 6fad58a2db127a94b2f6d6966580611a6742bb70eef8f27353b495810c621f26
5
5
  SHA512:
6
- metadata.gz: 4861e54d35be0272f5fa7d47b2a1d09d435a7867b884c3a08f2e04cd3c48eedb683e80710b289d2fda39cd02677fb13398d29a8c866b60139897f1541bb7e4b8
7
- data.tar.gz: 76168f05759a9401c277f7bdd8cba1c88b051ddc3642edc0ec9ee730ce34e2b5abfeb4b356f9403c4ed84c49c3f9bd92ad5c3b15370e755f39a7540b6d136c09
6
+ metadata.gz: 1c143cfa584e92e330f7920da29c3ad45d503308865175d777a84b62d15b3b89ae136bbdc286848a61cc9c640fc9e96eb590fa68c5082cc18d9d3c20099b4d68
7
+ data.tar.gz: c5e1e43db4ada861c092a2f20069b69ac9b9077d3d0a82b771115342acf5e2e0796418732cdbf355acbab0ca8c825b1274f7d1b307f673a705f57ac352df9c8a
@@ -1,11 +1,7 @@
1
1
  import colors from '../tokens/exports/_colors.module.scss'
2
2
  import typography from '../tokens/exports/_typography.module.scss'
3
3
 
4
- import { ThemeProps } from './themeTypes'
5
-
6
- import { PlotTreemapOptions } from "highcharts";
7
-
8
- const highchartsDarkTheme: ThemeProps = {
4
+ const highchartsDarkTheme = {
9
5
  lang: {
10
6
  thousandsSep: ',',
11
7
  },
@@ -202,11 +198,11 @@ const highchartsDarkTheme: ThemeProps = {
202
198
  traverseUpButton: {
203
199
  position: { y: -50 },
204
200
  },
205
- } as PlotTreemapOptions,
201
+ },
206
202
  },
207
203
  credits: {
208
204
  enabled: false
209
205
  },
210
206
  }
211
207
 
212
- export { highchartsDarkTheme }
208
+ export default highchartsDarkTheme
@@ -1,11 +1,7 @@
1
1
  import colors from '../tokens/exports/_colors.module.scss'
2
2
  import typography from '../tokens/exports/_typography.module.scss'
3
3
 
4
- import { ThemeProps } from './themeTypes'
5
-
6
- import { PlotTreemapOptions } from "highcharts";
7
-
8
- const highchartsTheme: ThemeProps = {
4
+ const highchartsTheme = {
9
5
  lang: {
10
6
  thousandsSep: ',',
11
7
  },
@@ -201,11 +197,11 @@ const highchartsTheme: ThemeProps = {
201
197
  traverseUpButton: {
202
198
  position: { y: -50 },
203
199
  },
204
- } as PlotTreemapOptions,
200
+ },
205
201
  },
206
202
  credits: {
207
203
  enabled: false
208
204
  },
209
205
  }
210
206
 
211
- export { highchartsTheme }
207
+ export default highchartsTheme
@@ -45,7 +45,7 @@ module Playbook
45
45
 
46
46
  # rubocop:disable Naming/AccessorMethodName
47
47
  def get_kits
48
- menu = YAML.load_file(Playbook::Engine.root.join("dist/menu.yml"))
48
+ menu = ActiveSupport::ConfigurationFile.parse(Playbook::Engine.root.join("dist/menu.yml"))
49
49
  all_kits = []
50
50
  menu["kits"].each do |kit|
51
51
  kit_name = kit["name"]
@@ -61,7 +61,7 @@ module Playbook
61
61
  end
62
62
 
63
63
  def get_kits_pb_website
64
- menu = YAML.load_file(Rails.root.join("config/menu.yml"))
64
+ menu = ActiveSupport::ConfigurationFile.parse(Rails.root.join("config/menu.yml"))
65
65
  menu["kits"]
66
66
  end
67
67
  # rubocop:enable Naming/AccessorMethodName
@@ -84,9 +84,9 @@ module Playbook
84
84
  def pb_doc_kit_examples(kit, type)
85
85
  example_file = pb_doc_kit_path(kit, "example.yml")
86
86
  if File.exist?(example_file)
87
- examples_list = YAML.load_file(example_file)
88
- .inject({}) { |item, (k, v)| item[k.to_sym] = v; item }
89
- examples_list.dig(:examples, type) || []
87
+ ActiveSupport::ConfigurationFile.parse(example_file)
88
+ .transform_keys(&:to_sym)
89
+ .dig(:examples, type) || []
90
90
  else
91
91
  []
92
92
  end
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Playbook
4
4
  PREVIOUS_VERSION = "14.5.0"
5
- VERSION = "14.5.0.pre.alpha.PLAY1486highchartscssdrivenPOC3931"
5
+ VERSION = "14.5.0.pre.alpha.PLAY1486highchartscssdrivenPOC3944"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: playbook_ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 14.5.0.pre.alpha.PLAY1486highchartscssdrivenPOC3931
4
+ version: 14.5.0.pre.alpha.PLAY1486highchartscssdrivenPOC3944
5
5
  platform: ruby
6
6
  authors:
7
7
  - Power UX
@@ -779,8 +779,8 @@ files:
779
779
  - app/pb_kits/playbook/pb_dashboard/_highcharts_theme.scss
780
780
  - app/pb_kits/playbook/pb_dashboard/commonSettings.js
781
781
  - app/pb_kits/playbook/pb_dashboard/pbChartsColorsHelper.ts
782
- - app/pb_kits/playbook/pb_dashboard/pbChartsDarkTheme.ts
783
- - app/pb_kits/playbook/pb_dashboard/pbChartsLightTheme.ts
782
+ - app/pb_kits/playbook/pb_dashboard/pbChartsDarkTheme.js
783
+ - app/pb_kits/playbook/pb_dashboard/pbChartsLightTheme.js
784
784
  - app/pb_kits/playbook/pb_dashboard/themeTypes.ts
785
785
  - app/pb_kits/playbook/pb_dashboard_value/_dashboard_value.scss
786
786
  - app/pb_kits/playbook/pb_dashboard_value/_dashboard_value.tsx