igniteui-theming 1.1.2 → 1.1.3

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.
Files changed (45) hide show
  1. package/package.json +12 -5
  2. package/sass/bem/_index.scss +4 -1
  3. package/sass/color/_charts.scss +2 -0
  4. package/sass/color/_functions.scss +2 -1
  5. package/sass/color/_types.scss +5 -0
  6. package/sass/elevations/_functions.scss +2 -2
  7. package/sass/elevations/presets/_index.scss +3 -0
  8. package/sass/elevations/presets/_material.scss +10 -1
  9. package/sass/themes/_functions.scss +5 -1
  10. package/sass/themes/_mixins.scss +5 -0
  11. package/sass/themes/charts/_category-chart-theme.scss +1 -1
  12. package/sass/themes/charts/_data-chart-theme.scss +1 -1
  13. package/sass/themes/charts/_doughnut-chart-theme.scss +1 -1
  14. package/sass/themes/charts/_financial-chart-theme.scss +1 -1
  15. package/sass/themes/charts/_funnel-chart-theme.scss +1 -1
  16. package/sass/themes/charts/_gauge-theme.scss +5 -5
  17. package/sass/themes/charts/_geo-map-theme.scss +3 -3
  18. package/sass/themes/charts/_graph-theme.scss +3 -3
  19. package/sass/themes/charts/_pie-chart-theme.scss +1 -1
  20. package/sass/themes/charts/_shape-chart-theme.scss +1 -1
  21. package/sass/themes/charts/_sparkline-theme.scss +3 -3
  22. package/sass/themes/schemas/charts/dark/_category-chart.scss +0 -5
  23. package/sass/themes/schemas/charts/dark/_doughnut-chart.scss +0 -1
  24. package/sass/themes/schemas/charts/dark/_financial-chart.scss +0 -1
  25. package/sass/themes/schemas/charts/dark/_funnel-chart.scss +1 -2
  26. package/sass/themes/schemas/charts/dark/_index.scss +17 -0
  27. package/sass/themes/schemas/charts/dark/_shape-chart.scss +0 -1
  28. package/sass/themes/schemas/charts/dark/_sparkline.scss +0 -1
  29. package/sass/themes/schemas/charts/light/_category-chart.scss +0 -1
  30. package/sass/themes/schemas/charts/light/_data-chart.scss +0 -1
  31. package/sass/themes/schemas/charts/light/_doughnut-chart.scss +0 -1
  32. package/sass/themes/schemas/charts/light/_financial-chart.scss +0 -1
  33. package/sass/themes/schemas/charts/light/_funnel-chart.scss +0 -1
  34. package/sass/themes/schemas/charts/light/_gauge.scss +0 -1
  35. package/sass/themes/schemas/charts/light/_geo-map.scss +0 -1
  36. package/sass/themes/schemas/charts/light/_graph.scss +0 -1
  37. package/sass/themes/schemas/charts/light/_index.scss +17 -0
  38. package/sass/themes/schemas/charts/light/_shape-chart.scss +0 -1
  39. package/sass/themes/schemas/charts/light/_sparkline.scss +0 -1
  40. package/sass/typography/_types.scss +3 -0
  41. package/sass/typography/charts/_index.scss +5 -0
  42. package/sass/utils/_css.scss +1 -0
  43. package/sass/utils/_map.scss +2 -0
  44. package/sass/utils/_math.scss +1 -0
  45. package/sass/utils/_string.scss +6 -0
package/package.json CHANGED
@@ -1,17 +1,21 @@
1
1
  {
2
2
  "name": "igniteui-theming",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "A set of Sass variables, mixins, and functions for generating palettes, typography, and elevations used by Ignite UI components.",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
- "clean": "rimraf \"json/\"",
7
+ "clean": "npm run clean:json && npm run clean:docs",
8
+ "clean:json": "rimraf \"json/\"",
9
+ "clean:docs": "rimraf \"docs/\"",
8
10
  "build": "npm run build:json && npm run build:e2e",
9
- "build:docs": "npx sassdoc ./sass",
11
+ "build:docs": "npm run clean:docs && npm run build:docs:en:production",
12
+ "build:docs:en:production": "set NODE_ENV=production && npx sassdoc ./sass -d docs",
13
+ "build:docs:en:staging": "set NODE_ENV=staging && npx sassdoc ./sass -d docs",
10
14
  "build:e2e": "sass ./test/e2e/theme.scss ./test/e2e/theme.css",
11
15
  "build:json": "node scripts/buildJSON.mjs",
12
16
  "lint": "stylelint ./sass",
13
17
  "test": "jest",
14
- "serve:docs": "npx http-server ./sassdoc"
18
+ "serve:docs": "npx http-server ./docs"
15
19
  },
16
20
  "files": [
17
21
  "/sass",
@@ -47,6 +51,8 @@
47
51
  },
48
52
  "devDependencies": {
49
53
  "globby": "^13.1.2",
54
+ "igniteui-sassdoc-theme": "^1.1.4",
55
+ "sassdoc-plugin-localization": "^1.4.3",
50
56
  "jest": "^28.1.1",
51
57
  "postcss": "^8.4.14",
52
58
  "rimraf": "^3.0.2",
@@ -54,7 +60,8 @@
54
60
  "sass-true": "^6.1.0",
55
61
  "stylelint": "^14.9.1",
56
62
  "stylelint-config-standard-scss": "^4.0.0",
57
- "stylelint-scss": "^4.2.0"
63
+ "stylelint-scss": "^4.2.0",
64
+ "lunr": "^2.3.9"
58
65
  },
59
66
  "peerDependencies": {
60
67
  "sass": "^1.53.0"
@@ -11,12 +11,15 @@
11
11
  ////
12
12
 
13
13
  /// @type String - The Element separator used. Default '__'.
14
+ /// @access private
14
15
  $bem--sep-elem: if(meta.variable-exists(bem--sep-elem), $bem--sep-elem, '__');
15
16
 
16
17
  /// @type String - The Modifier separator used. Default '--'.
18
+ /// @access private
17
19
  $bem--sep-mod: if(meta.variable-exists(bem--sep-mod), $bem--sep-mod, '--');
18
20
 
19
21
  /// @type String - The Modifier Value separator used. Default '-'.
22
+ /// @access private
20
23
  $bem--sep-mod-val: if(meta.variable-exists(bem--sep-mod-val), $bem--sep-mod-val, '-');
21
24
 
22
25
  /// Converts a passed selector value into plain string.
@@ -125,7 +128,7 @@ $bem--sep-mod-val: if(meta.variable-exists(bem--sep-mod-val), $bem--sep-mod-val,
125
128
  }
126
129
 
127
130
  /// Generates a full BEM selector.
128
- /// @access public
131
+ /// @access private
129
132
  /// @param {String} $block - Required. A string block name.
130
133
  /// @param {String|List} $elem - Optional. A sub-element name. If `$mod` is not present, it is
131
134
  /// joined with $block. If $mod is present, it is nested under `$block--$mod`.
@@ -1,4 +1,5 @@
1
1
  /// A list of color values to be used as brushes in charts.
2
+ /// @group palettes
2
3
  /// @type List
3
4
  /// @access public
4
5
  $brushes-regular: (
@@ -15,6 +16,7 @@ $brushes-regular: (
15
16
  );
16
17
 
17
18
  /// A list of color values to be used as color-blind brushes in charts.
19
+ /// @group palettes
18
20
  /// @type List
19
21
  /// @access public
20
22
  $brushes-color-blind: (
@@ -13,6 +13,7 @@ $_enhanced-accessibility: false;
13
13
 
14
14
  /// Configures the color module.
15
15
  /// @access public
16
+ /// @group color
16
17
  /// @param {Boolean} $enhanced-accessibility [null] - Enables features like color blind palettes.
17
18
  @mixin configure-colors($enhanced-accessibility: null) {
18
19
  @if $enhanced-accessibility {
@@ -261,7 +262,7 @@ $_enhanced-accessibility: false;
261
262
  }
262
263
 
263
264
  /// Mixes two colors to produce an opaque color.
264
- /// @access public
265
+ /// @access private
265
266
  /// @group Color
266
267
  /// @param {Color} $color-1 - The first color, usually transparent.
267
268
  /// @param {Color} $color-2 [#fff] - The second color, usually opaque.
@@ -7,14 +7,17 @@
7
7
 
8
8
  /// A list consisting of all generated gray shades
9
9
  /// @type Map
10
+ /// @access private
10
11
  $IGrayShades: (50, 100, 200, 300, 400, 500, 600, 700, 800, 900);
11
12
 
12
13
  /// A list consisting of all generated shades for palette colors
13
14
  /// @type Map
15
+ /// @access private
14
16
  $IColorShades: list.join($IGrayShades, ('A100', 'A200', 'A400', 'A700'));
15
17
 
16
18
  /// All palette colors mapped with corresponding color shades
17
19
  /// @type Map
20
+ /// @access private
18
21
  $IPaletteColors: (
19
22
  'primary': $IColorShades,
20
23
  'secondary': $IColorShades,
@@ -28,10 +31,12 @@ $IPaletteColors: (
28
31
 
29
32
  /// A list consisting of palette metadata
30
33
  /// @type Map
34
+ /// @access private
31
35
  $IPaletteMeta: (
32
36
  'variant': null,
33
37
  );
34
38
 
35
39
  /// A map with all palette colors and palette meta
36
40
  /// @type Map
41
+ /// @access private
37
42
  $IPalette: map.merge($IPaletteColors, (_meta: $IPaletteMeta));
@@ -9,7 +9,7 @@
9
9
  $factor: var(--ig-elevation-factor, 1);
10
10
 
11
11
  /// Checks if the passed argument is a valid box-shadow.
12
- /// @access public
12
+ /// @access private
13
13
  /// @param {List} $shadow - A list of shadow properties.
14
14
  /// @return {Boolean} - Returns a boolean depending on if the passed argument is a valid shadow.
15
15
  @function _is-shadow($shadow) {
@@ -31,7 +31,7 @@ $factor: var(--ig-elevation-factor, 1);
31
31
  }
32
32
 
33
33
  /// Transforms the passed box-shadow list according to the elevation factor value.
34
- /// @access public
34
+ /// @access private
35
35
  /// @param {List} $shadow - A list of shadow properties.
36
36
  /// @return {List} - The transformed shadow list.
37
37
  @function _transform-shadow($shadow) {
@@ -1,13 +1,16 @@
1
1
  /// Level 1 - The color used to generate umbra shadows.
2
2
  /// @type Color
3
+ /// @access private
3
4
  $color-1: rgba(0 0 0 / 26%) !default;
4
5
 
5
6
  /// Level 2 - The color used to generate penumbra shadows.
6
7
  /// @type Color
8
+ /// @access private
7
9
  $color-2: rgba(0 0 0 / 12%) !default;
8
10
 
9
11
  /// Level 3 - The color used to generate ambient shadows.
10
12
  /// @type Color
13
+ /// @access private
11
14
  $color-3: rgba(0 0 0 / 8%) !default;
12
15
 
13
16
  @forward './material' as material-* with(
@@ -7,17 +7,21 @@
7
7
 
8
8
  /// Level 1 - The color used to generate umbra shadows.
9
9
  /// @type Color
10
+ /// @access private
10
11
  $color-1: rgba(0 0 0 / 26%) !default;
11
12
 
12
13
  /// Level 2 - The color used to generate penumbra shadows.
13
14
  /// @type Color
15
+ /// @access private
14
16
  $color-2: rgba(0 0 0 / 12%) !default;
15
17
 
16
18
  /// Level 3 - The color used to generate ambient shadows.
17
19
  /// @type Color
20
+ /// @access private
18
21
  $color-3: rgba(0 0 0 / 8%) !default;
19
22
 
20
23
  /// All elevation levels
24
+ /// @access private
21
25
  $_1: box-shadow((0 1px 3px 0 $color-1, 0 1px 1px 0 $color-2, 0 2px 1px -1px $color-3));
22
26
  $_2: box-shadow((0 1px 5px 0 $color-1, 0 2px 2px 0 $color-2, 0 3px 1px -2px $color-3));
23
27
  $_3: box-shadow((0 1px 8px 0 $color-1, 0 3px 4px 0 $color-2, 0 3px 3px -2px $color-3));
@@ -43,7 +47,11 @@ $_22: box-shadow((0 10px 14px -6px $color-1, 0 22px 35px 3px $color-2, 0 8px 42p
43
47
  $_23: box-shadow((0 11px 14px -7px $color-1, 0 23px 36px 3px $color-2, 0 9px 44px 8px $color-3));
44
48
  $_24: box-shadow((0 11px 15px -7px $color-1, 0 24px 38px 3px $color-2, 0 9px 46px 8px $color-3));
45
49
 
46
- /// Allows user configration of this module.
50
+ /// Configures shadow colors for the material elevations.
51
+ /// @access public
52
+ /// @param {Color} $color-1 - The umbra shadow color.
53
+ /// @param {Color} $color-2 - The penumbra shadow color.
54
+ /// @param {Color} $color-3 - The ambiant shadow color.
47
55
  @mixin configure($color-1, $color-2, $color-3) {
48
56
  @if $color-1 {
49
57
  $color-1: $color-1 !global;
@@ -63,6 +71,7 @@ $_24: box-shadow((0 11px 15px -7px $color-1, 0 24px 38px 3px $color-2, 0 9px 46p
63
71
  */
64
72
  /// А map of 24 shadow elevations with the umbra, penumbra and ambient shadows.
65
73
  /// @type Map
74
+ /// @access private
66
75
  $elevations: (
67
76
  0: none,
68
77
  1: $_1,
@@ -96,7 +96,7 @@
96
96
  }
97
97
 
98
98
  /// Retrieves the CSS custom property reference for the given key in the component theme.
99
- /// @access public
99
+ /// @access private
100
100
  /// @param {Map} $theme - The source theme to be used to read values from.
101
101
  /// @param {String} $property - A key from the theme map to assign as value to the property.
102
102
  /// @param {String} $fallback [null] - A value to be used if the CSS property is not defined.
@@ -126,6 +126,7 @@
126
126
  }
127
127
 
128
128
  /// Used to switch between values based on the size of the component.
129
+ /// @group themes
129
130
  /// @access public
130
131
  /// @param {Number} $sm - The preferred value when the component's size is small.
131
132
  /// @param {Number} $md [$sm] - The preferred value when the component's size is medium.
@@ -140,6 +141,7 @@
140
141
  }
141
142
 
142
143
  /// Used to add spacing.
144
+ /// @group utilities
143
145
  /// @access public
144
146
  /// @param {Number} $sm - The preferred value when the component's size is small.
145
147
  /// @param {Number} $md [$sm] - The preferred value when the component's size is medium.
@@ -157,6 +159,7 @@
157
159
  }
158
160
 
159
161
  /// Used to add inline spacing.
162
+ /// @group utilities
160
163
  /// @access public
161
164
  /// @param {Number} $sm - The preferred value when the component's size is small.
162
165
  /// @param {Number} $md [$sm] - The preferred value when the component's size is medium.
@@ -167,6 +170,7 @@
167
170
  }
168
171
 
169
172
  /// Used to add block spacing.
173
+ /// @group utilities
170
174
  /// @access public
171
175
  /// @param {Number} $sm - The preferred value when the component's size is small.
172
176
  /// @param {Number} $md [$sm] - The preferred value when the component's size is medium.
@@ -39,6 +39,7 @@ $ignored-keys: ('name', 'palette', 'variant', 'selector');
39
39
 
40
40
  /// Add theme colors as CSS variables to a given scope.
41
41
  /// @access public
42
+ /// @group themes
42
43
  /// @param {map} $theme - The component theme to be used.
43
44
  /// @param {map} $scope [null] - The CSS variables scope to be used. (optional)
44
45
  /// @requires {mixin} css-vars-from-theme
@@ -74,6 +75,7 @@ $ignored-keys: ('name', 'palette', 'variant', 'selector');
74
75
 
75
76
  /// Truncates text to a specific number of lines.
76
77
  /// @access public
78
+ /// @group utilities
77
79
  /// @param {number|string} $lines - The number of lines to show
78
80
  /// @param {Boolean} $inline - Sets whether an element displays inline-box or box
79
81
  /// @param {Boolean} $vertical - Sets whether an element lays out its contents horizontally or vertically
@@ -88,6 +90,7 @@ $ignored-keys: ('name', 'palette', 'variant', 'selector');
88
90
 
89
91
  /// Applies text-overflow ellipsis to e text element.
90
92
  /// This won't work on display flex elements.
93
+ /// @group utilities
91
94
  /// @access public
92
95
  @mixin ellipsis() {
93
96
  white-space: nowrap;
@@ -96,6 +99,7 @@ $ignored-keys: ('name', 'palette', 'variant', 'selector');
96
99
  }
97
100
 
98
101
  /// Hides the element from the DOM.
102
+ /// @group utilities
99
103
  /// @access public
100
104
  /// @example scss - Sample usage
101
105
  /// input[type="checkbox"] {
@@ -115,6 +119,7 @@ $ignored-keys: ('name', 'palette', 'variant', 'selector');
115
119
  }
116
120
 
117
121
  /// Adds the required CSS properties so that the scope can react to size changes.
122
+ /// @group themes
118
123
  /// @access public
119
124
  @mixin sizable() {
120
125
  --is-large: clamp(0, (var(--component-size, 1) + 1) - var(--ig-size-large, 3), 1);
@@ -68,7 +68,7 @@
68
68
  /// @param {Number} $y-axis-tick-length [null] - Sets the length of tickmarks along the Y-axis.
69
69
  /// @param {Color} $y-axis-tick-stroke [null] - Sets the color to apply to tickmarks along the Y-axis.
70
70
  /// @param {Number} $y-axis-tick-stroke-thickness [null] - Sets the thickness to apply to tickmarks along the Y-axis.
71
- /// @requires $light-schema
71
+ /// @requires $light-material-schema
72
72
  /// @requires extend
73
73
  ///
74
74
  /// @example scss
@@ -26,7 +26,7 @@
26
26
  /// @param {Color} $plot-area-background [null] - Sets the brush used as the background for the current Chart object's plot area.
27
27
  /// @param {String} $title-horizontal-alignment [null] - The horizontal alignment to use for the title. Valid options are 'left', 'center', and 'right';
28
28
  /// @param {String} $subtitle-horizontal-alignment [null] - The horizontal alignment to use for the subtitle. Valid options are 'left', 'center', and 'right';
29
- /// @requires $light-schema
29
+ /// @requires $light-material-schema
30
30
  /// @requires extend
31
31
  ///
32
32
  /// @example scss
@@ -21,7 +21,7 @@
21
21
  /// @param {Number} $selected-slice-opacity [null] - Sets the opacity of the selected slice.
22
22
  /// @param {Color} $selected-slice-stroke [null] - Sets the stroke color of the selected slice.
23
23
  /// @param {Number} $selected-slice-stroke-thickness [null] - Sets the stroke thickness of the selected slice.
24
- /// @requires $light-schema
24
+ /// @requires $light-material-schema
25
25
  /// @requires extend
26
26
  ///
27
27
  /// @example scss
@@ -72,7 +72,7 @@
72
72
  /// @param {Number} $y-axis-tick-stroke-thickness [null] - Sets the thickness to apply to tickmarks along the Y-axis.
73
73
  /// @param {String} $zoom-slider-x-axis-major-stroke [null] - Gets or sets stroke brush of major gridlines on x-axis of the zoom slider pane.
74
74
  /// @param {Number} $zoom-slider-x-axis-major-stroke-thickness [null] - Gets or sets thickness of major gridlines on x-axis of the zoom slider pane.
75
- /// @requires $light-schema
75
+ /// @requires $light-material-schema
76
76
  /// @requires extend
77
77
  ///
78
78
  /// @example scss
@@ -23,7 +23,7 @@
23
23
  /// @param {Number} $outline-thickness [null] - Sets the thickness of outline around slices.
24
24
  /// @param {Color} $text-color - [null] Sets the Color used for the inner labels.
25
25
  ///
26
- /// @requires $light-schema
26
+ /// @requires $light-material-schema
27
27
  /// @requires extend
28
28
  ///
29
29
  /// @example scss
@@ -35,7 +35,7 @@
35
35
  /// @param {Number} $scale-stroke-thickness [null] - Sets the stroke thickness of the scale outline.
36
36
  /// @param {Color} $tick-brush [null] - Sets the color to use for the major tickmarks.
37
37
  /// @param {Number} $tick-stroke-thickness [null] - Sets the stroke thickness to use when rendering ticks.
38
- /// @requires $light-schema
38
+ /// @requires $light-material-schema
39
39
  /// @requires extend
40
40
  ///
41
41
  /// @example scss
@@ -43,7 +43,7 @@
43
43
  /// // Pass the theme to the css-vars mixin
44
44
  /// @include css-vars($custom-gauge-theme);
45
45
  @function linear-gauge-theme(
46
- $schema: $light-schema,
46
+ $schema: $light-material-schema,
47
47
  $target: 'angular',
48
48
  $rest...
49
49
  ) {
@@ -76,7 +76,7 @@
76
76
  );
77
77
  }
78
78
 
79
- /// @param {Map} $schema [$light-schema] - The schema used as basis for styling the component.
79
+ /// @param {Map} $schema [$light-material-schema] - The schema used as basis for styling the component.
80
80
  /// @param {Map} $target ['angular'] - The target platform to be used when scoping the theme variables.
81
81
  /// @param {Map} $width [null] - The width of the gauge in pixels, string (px) or percentage (%).
82
82
  /// @param {Map} $height [null] - The height of the gauge in pixels, string (px) or percentage (%).
@@ -95,7 +95,7 @@
95
95
  /// @param {Number} $tick-stroke-thickness [null] - Sets the stroke thickness to use when rendering ticks.
96
96
  /// @param {Color} $needle-pivot-brush [null] - Sets the color of the needle pivot point.
97
97
  /// @param {Color} $needle-pivot-outline [null] - Sets the outline color of the needle pivot point.
98
- /// @requires $light-schema
98
+ /// @requires $light-material-schema
99
99
  /// @requires extend
100
100
  ///
101
101
  /// @example scss
@@ -103,7 +103,7 @@
103
103
  /// // Pass the theme to the css-vars mixin
104
104
  /// @include css-vars($custom-gauge-theme);
105
105
  @function radial-gauge-theme(
106
- $schema: $light-schema,
106
+ $schema: $light-material-schema,
107
107
  $target: 'angular',
108
108
  $rest...
109
109
  ) {
@@ -12,10 +12,10 @@
12
12
  /// @author <a href="https://github.com/didimmova" target="_blank">Dilyana Dimova</a>
13
13
  ////
14
14
 
15
- /// @param {Map} $schema [$light-schema] - The schema used as basis for styling the component.
15
+ /// @param {Map} $schema [$light-material-schema] - The schema used as basis for styling the component.
16
16
  /// @param {Map} $target ['angular'] - The target platform to be used when scoping the theme variables.
17
17
  /// @param {String} $plot-area-background [null]- Gets or sets the brush used as the background for the current Map object's plot area.
18
- /// @requires $light-schema
18
+ /// @requires $light-material-schema
19
19
  /// @requires extend
20
20
  ///
21
21
  /// @example scss
@@ -23,7 +23,7 @@
23
23
  /// // Pass the theme to the css-vars mixin
24
24
  /// @include css-vars($my-map-theme);
25
25
  @function geo-map-theme(
26
- $schema: $light-schema,
26
+ $schema: $light-material-schema,
27
27
  $target: 'angular',
28
28
  $plot-area-background: null
29
29
  ) {
@@ -12,7 +12,7 @@
12
12
  /// @author <a href="https://github.com/simeonoff" target="_blank">Simeon Simeonoff</a>
13
13
  ////
14
14
 
15
- /// @param {Map} $schema [$light-schema] - The schema used as basis for styling the component.
15
+ /// @param {Map} $schema [$light-material-schema] - The schema used as basis for styling the component.
16
16
  /// @param {Map} $target ['angular'] - The target platform to be used when scoping the theme variables.
17
17
  /// @param {Color} $backing-brush [null] - Sets the brush to use to fill the backing of the bullet graph.
18
18
  /// @param {Color} $backing-outline [null] - Sets the brush to use for the outline of the backing.
@@ -34,7 +34,7 @@
34
34
  /// @param {Color} $value-brush [null] - Sets the brush to use for the actual value element.
35
35
  /// @param {Color} $value-outline [null] - Sets the brush to use for the outline of actual value element.
36
36
  /// @param {Number} $value-stroke-thickness [null] - Sets the stroke thickness to use when rendering single actual value element.
37
- /// @requires $light-schema
37
+ /// @requires $light-material-schema
38
38
  /// @requires extend
39
39
  ///
40
40
  /// @example scss
@@ -42,7 +42,7 @@
42
42
  /// // Pass the theme to the css-vars mixin
43
43
  /// @include css-vars($my-chart-theme);
44
44
  @function bullet-graph-theme(
45
- $schema: $light-schema,
45
+ $schema: $light-material-schema,
46
46
  $target: 'angular',
47
47
 
48
48
  $backing-brush: null,
@@ -24,7 +24,7 @@
24
24
  /// @param {String} $leader-line-type [null] - Sets what type of leader lines will be used for the outside end labels. Valid values are: 'straight', 'spline', and 'arc'.
25
25
  /// @param {String} $leader-line-visibility [null] - Sets whether the leader lines are visible. Valid values are: 'visible' and 'collapsed'.
26
26
  /// @param {Number} $radius-factor [null] - Sets the scaling factor of the chart's radius. Value between 0 and 1.
27
- /// @requires $light-schema
27
+ /// @requires $light-material-schema
28
28
  /// @requires extend
29
29
  ///
30
30
  /// @example scss
@@ -54,7 +54,7 @@
54
54
  /// @param {String} $y-axis-title-alignment [null] - Sets Horizontal alignment of the Y-axis title.
55
55
  /// @param {Color} $y-axis-title-color [null] - Sets color of title on the Y-axis.
56
56
  /// @param {List} $y-axis-title-margin [null] - Sets the margin around the title on the Y-axis.
57
- /// @requires $light-schema
57
+ /// @requires $light-material-schema
58
58
  /// @requires extend
59
59
  ///
60
60
  /// @example scss
@@ -11,7 +11,7 @@
11
11
  /// @author <a href="https://github.com/simeonoff" target="_blank">Simeon Simeonoff</a>
12
12
  ////
13
13
 
14
- /// @param {Map} $schema [$light-schema] - The schema used as basis for styling the component.
14
+ /// @param {Map} $schema [$light-material-schema] - The schema used as basis for styling the component.
15
15
  /// @param {Map} $target ['angular'] - The target platform to be used when scoping the theme variables.
16
16
  ///
17
17
  /// @param {Color} $brush [null] - Sets the sparkline brush.
@@ -34,7 +34,7 @@
34
34
  /// @param {Color} $horizontal-axis-brush [null] - Sets the horizontal axis line brush of the sparkline.
35
35
  /// @param {Color} $vertical-axis-brush [null] - Sets the vertical axis line brush of the sparkline.
36
36
  /// @param {Color} $normal-range-fill [null] - Sets the normal range brush of the sparkline.
37
- /// @requires $light-schema
37
+ /// @requires $light-material-schema
38
38
  /// @requires extend
39
39
  ///
40
40
  /// @example scss
@@ -42,7 +42,7 @@
42
42
  /// // Pass the theme to the css-vars mixin
43
43
  /// @include css-vars($my-sparkline-theme);
44
44
  @function sparkline-theme(
45
- $schema: $light-schema,
45
+ $schema: $light-material-schema,
46
46
  $target: 'angular',
47
47
 
48
48
  $brush: null,
@@ -10,24 +10,19 @@
10
10
  /// Generates a dark category-chart schema based on a mix of $material-category-chart and $base-dark-category-chart
11
11
  /// @type {Map}
12
12
  /// @requires $material-category-chart
13
- /// @requires $base-dark-category-chart
14
- /// @see $default-palette
15
13
  $dark-material-category-chart: $material-category-chart;
16
14
 
17
15
  /// Generates a dark fluent category-chart schema based on a mix of $fluent-category-chart and $base-dark-category-chart
18
16
  /// @type {Map}
19
17
  /// @requires $fluent-category-chart
20
- /// @requires $base-dark-category-chart
21
18
  $dark-fluent-category-chart: $fluent-category-chart;
22
19
 
23
20
  /// Generates a bootstrap category-chart schema based on a mix of $bootstrap-category-chart and $base-dark-category-chart
24
21
  /// @type {Map}
25
22
  /// @requires $bootstrap-category-chart
26
- /// @requires $base-dark-category-chart
27
23
  $dark-bootstrap-category-chart: $bootstrap-category-chart;
28
24
 
29
25
  /// Generates an indigo category-chart schema based on a mix of $indigo-category-chart and $base-dark-category-chart
30
26
  /// @type {Map}
31
27
  /// @requires $indigo-category-chart
32
- /// @requires $base-dark-category-chart
33
28
  $dark-indigo-category-chart: $indigo-category-chart;
@@ -9,7 +9,6 @@
9
9
  /// Generates a dark doughnut chart schema.
10
10
  /// @type {Map}
11
11
  /// @requires {function} extend
12
- /// @see $default-palette
13
12
  $dark-material-doughnut-chart: $material-doughnut-chart;
14
13
 
15
14
  /// Generates a dark fluent doughnut-chart schema.
@@ -9,7 +9,6 @@
9
9
  /// Generates a dark financial chart schema.
10
10
  /// @type {Map}
11
11
  /// @requires $material-financial-chart
12
- /// @see $default-palette
13
12
  $dark-material-financial-chart: $material-financial-chart;
14
13
 
15
14
  /// Generates a dark fluent financial-chart schema.
@@ -9,7 +9,6 @@
9
9
  /// Generates a dark funnel chart schema.
10
10
  /// @type {Map}
11
11
  /// @requires $material-funnel-chart
12
- /// @see $default-palette
13
12
  $dark-material-funnel-chart: $material-funnel-chart;
14
13
 
15
14
  /// Generates a dark fluent funnel-chart schema.
@@ -24,5 +23,5 @@ $dark-bootstrap-funnel-chart: $bootstrap-funnel-chart;
24
23
 
25
24
  /// Generates a dark indigo funnel-chart schema.
26
25
  /// @type {Map}
27
- /// @requires $ndigo-funnel-chart
26
+ /// @requires $indigo-funnel-chart
28
27
  $dark-indigo-funnel-chart: $indigo-funnel-chart;
@@ -10,6 +10,14 @@
10
10
  @use './shape-chart' as *;
11
11
  @use './sparkline' as *;
12
12
 
13
+ ////
14
+ /// @group schemas
15
+ /// @access public
16
+ /// @author <a href="https://github.com/desig9stein" target="_blank">Marin Popov</a>
17
+ ////
18
+
19
+ /// Generates the global charts dark material schema.
20
+ /// @type {Map}
13
21
  $dark-material-schema: (
14
22
  category-chart: $dark-material-category-chart,
15
23
  data-chart: $dark-material-data-chart,
@@ -24,6 +32,9 @@ $dark-material-schema: (
24
32
  shape-chart: $dark-material-shape-chart,
25
33
  sparkline: $dark-material-sparkline,
26
34
  );
35
+
36
+ /// Generates the global charts dark bootstrap schema.
37
+ /// @type {Map}
27
38
  $dark-bootstrap-schema: (
28
39
  category-chart: $dark-bootstrap-category-chart,
29
40
  data-chart: $dark-bootstrap-data-chart,
@@ -38,6 +49,9 @@ $dark-bootstrap-schema: (
38
49
  shape-chart: $dark-bootstrap-shape-chart,
39
50
  sparkline: $dark-bootstrap-sparkline,
40
51
  );
52
+
53
+ /// Generates the global charts dark fluent schema.
54
+ /// @type {Map}
41
55
  $dark-fluent-schema: (
42
56
  category-chart: $dark-fluent-category-chart,
43
57
  data-chart: $dark-fluent-data-chart,
@@ -52,6 +66,9 @@ $dark-fluent-schema: (
52
66
  shape-chart: $dark-fluent-shape-chart,
53
67
  sparkline: $dark-fluent-sparkline,
54
68
  );
69
+
70
+ /// Generates the global charts dark indigo schema.
71
+ /// @type {Map}
55
72
  $dark-indigo-schema: (
56
73
  category-chart: $dark-indigo-category-chart,
57
74
  data-chart: $dark-indigo-data-chart,
@@ -9,7 +9,6 @@
9
9
  /// Generates a dark shape chart schema.
10
10
  /// @type {Map}
11
11
  /// @requires $material-shape-chart
12
- /// @see $default-palette
13
12
  $dark-material-shape-chart: $material-shape-chart;
14
13
 
15
14
  /// Generates a dark fluent shape-chart schema.
@@ -9,7 +9,6 @@
9
9
  /// Generates a dark sparkline schema.
10
10
  /// @type {Map}
11
11
  /// @requires $material-sparkline
12
- /// @see $default-palette
13
12
  $dark-material-sparkline: $material-sparkline;
14
13
 
15
14
  /// Generates a dark fluent sparkline schema.
@@ -61,7 +61,6 @@
61
61
  /// @property {Number} y-axis-tick-length [null] - Sets the length of tickmarks along the Y-axis.
62
62
  /// @property {Color} y-axis-tick-stroke [color: ('gray', 500)] - Sets the color to apply to tickmarks along the Y-axis.
63
63
  /// @property {Number} y-axis-tick-stroke-thickness [null] - Sets the thickness to apply to tickmarks along the Y-axis.
64
- /// @see $default-palette
65
64
  $material-category-chart: (
66
65
  'margin': (
67
66
  expand-shorthand: (null)
@@ -19,7 +19,6 @@
19
19
  /// @property {Color} plot-area-background [color: ('surface', 500)] - Sets the brush used as the background for the current Chart object's plot area.
20
20
  /// @property {String} title-horizontal-alignment [null] - The horizontal alignment to use for the title.
21
21
  /// @property {String} subtitle-horizontal-alignment [null] - The horizontal alignment to use for the subtitle.
22
- /// @see $default-palette
23
22
  $material-data-chart: (
24
23
  'margin': null,
25
24
  'title-text-color': (
@@ -17,7 +17,6 @@
17
17
  /// @property {Number} selected-slice-opacity [null] - Sets the opacity of the selected slice.
18
18
  /// @property {Color} selected-slice-stroke [null] - Sets the stroke color of the selected slice.
19
19
  /// @property {Number} selected-slice-stroke-thickness [null] - Sets the stroke thickness of the selected slice.
20
- /// @see $default-palette
21
20
  $material-doughnut-chart: (
22
21
  'brushes': series,
23
22
  'outlines': series,
@@ -65,7 +65,6 @@
65
65
  /// @prop {Number} y-axis-tick-stroke-thickness [null] - Sets the thickness to apply to tickmarks along the Y-axis.
66
66
  /// @prop {String} zoom-slider-x-axis-major-stroke [null] - Gets or sets stroke brush of major gridlines on x-axis of the zoom slider pane.
67
67
  /// @prop {Number} zoom-slider-x-axis-major-stroke-thickness [null] - Gets or sets thickness of major gridlines on x-axis of the zoom slider pane.
68
- /// @see $default-palette
69
68
  $material-financial-chart: (
70
69
  'margin': null,
71
70
  'title-alignment': null,
@@ -16,7 +16,6 @@
16
16
  /// @property {Number} outline-thickness [null] - Sets the thickness of outline around slices.
17
17
  /// @property {Color} text-color [null] - Sets the Color used for the inner labels.
18
18
  /// @property {String} text-style [null] - Sets the text style for inner labels.
19
- /// @see $default-palette
20
19
  $material-funnel-chart: (
21
20
  'brushes': series,
22
21
  'outlines': series,
@@ -23,7 +23,6 @@
23
23
  /// @property {Color} scale-brush [(color: 'surface', darken: 8%)] - Sets the color to use to fill the scale of the linear gauge.
24
24
  /// @property {Color} tick-brush [(color: 'surface', rgba: .62)] - Sets the color to use for the major tickmarks.
25
25
  /// @property {Number} tick-stroke-thickness [null] - Sets the stroke thickness to use when rendering ticks.
26
- /// @see $default-palette
27
26
  $material-gauge: (
28
27
  'backing-brush': (
29
28
  color: 'surface',
@@ -9,7 +9,6 @@
9
9
  /// Generates a material geo map schema.
10
10
  /// @type {Map}
11
11
  /// @prop {String} plot-area-background [null] - Gets or sets the brush used as the background for the current Map object's plot area.
12
- /// @see $default-palette
13
12
  $material-geo-map: (
14
13
  'plot-area-background': (
15
14
  color: 'surface'
@@ -28,7 +28,6 @@
28
28
  /// @prop {Color} value-brush [(color: ('gray', 800))] - Sets the brush to use for the actual value element.
29
29
  /// @prop {Color} value-outline [null] - Sets the brush to use for the outline of actual value element.
30
30
  /// @prop {Number} value-stroke-thickness [null] - Sets the stroke thickness to use when rendering single actual value element.
31
- /// @see $default-palette
32
31
  $material-graph: (
33
32
  'backing-brush': (
34
33
  color: 'surface',
@@ -10,6 +10,14 @@
10
10
  @use './shape-chart' as *;
11
11
  @use './sparkline' as *;
12
12
 
13
+ ////
14
+ /// @group schemas
15
+ /// @access public
16
+ /// @author <a href="https://github.com/desig9stein" target="_blank">Marin Popov</a>
17
+ ////
18
+
19
+ /// Generates the global charts light material schema.
20
+ /// @type {Map}
13
21
  $light-material-schema: (
14
22
  category-chart: $material-category-chart,
15
23
  data-chart: $material-data-chart,
@@ -24,6 +32,9 @@ $light-material-schema: (
24
32
  shape-chart: $material-shape-chart,
25
33
  sparkline: $material-sparkline,
26
34
  );
35
+
36
+ /// Generates the global charts light bootstrap schema.
37
+ /// @type {Map}
27
38
  $light-bootstrap-schema: (
28
39
  category-chart: $bootstrap-category-chart,
29
40
  data-chart: $bootstrap-data-chart,
@@ -38,6 +49,9 @@ $light-bootstrap-schema: (
38
49
  shape-chart: $bootstrap-shape-chart,
39
50
  sparkline: $bootstrap-sparkline,
40
51
  );
52
+
53
+ /// Generates the global charts light fluent schema.
54
+ /// @type {Map}
41
55
  $light-fluent-schema: (
42
56
  category-chart: $fluent-category-chart,
43
57
  data-chart: $fluent-data-chart,
@@ -52,6 +66,9 @@ $light-fluent-schema: (
52
66
  shape-chart: $fluent-shape-chart,
53
67
  sparkline: $fluent-sparkline,
54
68
  );
69
+
70
+ /// Generates the global charts light indigo schema.
71
+ /// @type {Map}
55
72
  $light-indigo-schema: (
56
73
  category-chart: $indigo-category-chart,
57
74
  data-chart: $indigo-data-chart,
@@ -48,7 +48,6 @@
48
48
  /// @property {String} y-axis-title-alignment [null] - Sets Horizontal alignment of the Y-axis title.
49
49
  /// @property {Color} y-axis-title-color [null] - Sets color of title on the Y-axis.
50
50
  /// @property {List} y-axis-title-margin [null] - Sets the margin around the title on the Y-axis.
51
- /// @see $default-palette
52
51
  $material-shape-chart: (
53
52
  'margin': null,
54
53
  'title-alignment': null,
@@ -26,7 +26,6 @@
26
26
  /// @prop {Color} horizontal-axis-brush [null] - Sets the horizontal axis line brush of the sparkline.
27
27
  /// @prop {Color} vertical-axis-brush [null] - Sets the vertical axis line brush of the sparkline.
28
28
  /// @prop {Color} normal-range-fill [null] - Sets the normal range brush of the sparkline.
29
- /// @see $default-palette
30
29
  $material-sparkline: (
31
30
  'brush': (
32
31
  color: ('primary', 500)
@@ -4,6 +4,7 @@
4
4
 
5
5
  /// A list consisting of 13 different category type styles
6
6
  /// @type List
7
+ /// @access private
7
8
  $ITypeScale: (
8
9
  h1,
9
10
  h2,
@@ -22,6 +23,7 @@ $ITypeScale: (
22
23
 
23
24
  /// A set of style rules for all categories
24
25
  /// @type Map
26
+ /// @access private
25
27
  $ITypeStyle: (
26
28
  font-family: var(--ig-font-family),
27
29
  font-size: null,
@@ -36,6 +38,7 @@ $ITypeStyle: (
36
38
 
37
39
  /// A list of all category type styles that can be maped to native elements
38
40
  /// @type Map
41
+ /// @access private
39
42
  $IElementCategories: (
40
43
  h1: 'h1',
41
44
  h2: 'h2',
@@ -7,6 +7,11 @@
7
7
  @use '../../themes/charts/pie-chart-theme' as *;
8
8
  @use '../../themes/charts/shape-chart-theme' as *;
9
9
 
10
+ /// Includes all chart related typography styles for a given type-scale and target.
11
+ /// @group typography
12
+ /// @param {Map} $type-scale - The type-scale to be used when including typography styles.
13
+ /// @param {String} $target ['angular'] - The target platform. Could be 'angular', 'webc', or 'blazor'.
14
+ /// @access public
10
15
  @mixin charts-typography($type-scale, $target: 'angular') {
11
16
  @include category-chart-typography($type-scale: $type-scale, $target: $target);
12
17
  @include data-chart-typography($type-scale: $type-scale, $target: $target);
@@ -3,6 +3,7 @@
3
3
 
4
4
  /// Expands the provided list of values in all four directions.
5
5
  /// Works similar to how to browser expands shorthands for margins.
6
+ /// @access private
6
7
  /// @param {List} $list - The of values to be expanded. Supports up to four values.
7
8
  /// @param {string} $prop [margin] - The name of the property.
8
9
  /// @returns {Map} - Returns an expanded list of values.
@@ -23,6 +23,7 @@
23
23
  }
24
24
 
25
25
  /// Extends a Map with the values of another Map, disregarding null values in the process.
26
+ /// @group utilities
26
27
  /// @access public
27
28
  /// @param {Map...} $maps - The maps to get extended.
28
29
  /// @requires {function} clean
@@ -38,6 +39,7 @@
38
39
  }
39
40
 
40
41
  /// Prefixes the keys in a map with the specified prefix and separator.
42
+ /// @access private
41
43
  /// @param {Map} $map - The target map.
42
44
  /// @param {String} $prefix - The string used to prefix all keys in the map.
43
45
  /// @param {String} $separator [-] - The string used as a separator between the prefix and the key.
@@ -2,6 +2,7 @@
2
2
  @use 'sass:string';
3
3
 
4
4
  /// Rounds a number to a certain precision
5
+ /// @group utilities
5
6
  /// @access public
6
7
  /// @param {Number} $number - The number to be rounded
7
8
  /// @param {Number} $precision [2] - Specifies the number of the digits after the decimal separator
@@ -4,6 +4,8 @@
4
4
  @use 'sass:meta';
5
5
 
6
6
  /// Splits a string into a list by a given separator.
7
+ /// @access public
8
+ /// @group utilities
7
9
  /// @param {String} $string - The string to split.
8
10
  /// @param {String} $separator - The string separator to split the string by.
9
11
  @function split($string, $separator) {
@@ -23,6 +25,8 @@
23
25
  }
24
26
 
25
27
  /// Returns a new string with one, some, or all matches of a string replaced by a replacement.
28
+ /// @access public
29
+ /// @group utilities
26
30
  /// @param {String} $string - The target string.
27
31
  /// @param {String} $search - The term to search form.
28
32
  /// @param {String} $replace - The string to replace the search term with.
@@ -41,6 +45,8 @@
41
45
  }
42
46
 
43
47
  /// Converts a string to a number.
48
+ /// @access private
49
+ /// @group utilities
44
50
  /// @param {String} $value - The target string.
45
51
  @function to-number($value) {
46
52
  @if meta.type-of($value) == 'number' {