Skip to content

Commit 125b2a4

Browse files
authored
Merge branch 'master' into finjs-dev-demo-m
2 parents 4caa377 + e2ed6d9 commit 125b2a4

File tree

185 files changed

+2998
-2139
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

185 files changed

+2998
-2139
lines changed
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
12+
name: "CodeQL"
13+
14+
on:
15+
push:
16+
branches: [ master ]
17+
pull_request:
18+
# The branches below must be a subset of the branches above
19+
branches: [ master ]
20+
schedule:
21+
- cron: '33 4 * * 4'
22+
23+
jobs:
24+
analyze:
25+
name: Analyze
26+
runs-on: ubuntu-latest
27+
28+
strategy:
29+
fail-fast: false
30+
matrix:
31+
language: [ 'javascript' ]
32+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
33+
# Learn more:
34+
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
35+
36+
steps:
37+
- name: Checkout repository
38+
uses: actions/checkout@v2
39+
40+
# Initializes the CodeQL tools for scanning.
41+
- name: Initialize CodeQL
42+
uses: github/codeql-action/init@v1
43+
with:
44+
languages: ${{ matrix.language }}
45+
# If you wish to specify custom queries, you can do so here or in a config file.
46+
# By default, queries listed here will override any specified in a config file.
47+
# Prefix the list here with "+" to use these queries and those in the config file.
48+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
49+
50+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
51+
# If this step fails, then you should remove it and run the build manually (see below)
52+
- name: Autobuild
53+
uses: github/codeql-action/autobuild@v1
54+
55+
# ℹ️ Command-line programs to run using the OS shell.
56+
# 📚 https://git.io/JvXDl
57+
58+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
59+
# and modify them (or add more) to build your code if your project
60+
# uses a compiled language
61+
62+
#- run: |
63+
# make bootstrap
64+
# make release
65+
66+
- name: Perform CodeQL Analysis
67+
uses: github/codeql-action/analyze@v1

.stylelintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"plugins": ["stylelint-scss"],
33
"ignoreFiles": ["projects/igniteui-angular/src/lib/core/styles/**/*.md"],
44
"rules": {
5-
"at-rule-blacklist": ["debug", {
5+
"at-rule-disallowed-list": ["debug", {
66
"severity": "warning"
77
}],
88
"block-closing-brace-empty-line-before": "never",

angular.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"src/web.config"
3030
],
3131
"styles": [
32-
"src/styles/igniteui-theme.scss"
32+
"src/styles/styles.scss"
3333
],
3434
"scripts": []
3535
},

projects/igniteui-angular/migrations/update-12_0_0/changes/theme-props.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@
322322
"owner": "igx-button-theme"
323323
},
324324
{
325-
"name": "$disabled-text-color",
325+
"name": "$disabled-color",
326326
"replaceWith": "$disabled-foreground",
327327
"owner": "igx-button-theme"
328328
}

projects/igniteui-angular/src/lib/action-strip/grid-actions/grid-editing-actions.component.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ describe('igxGridEditingActions #grid ', () => {
5656
expect(editIcon.nativeElement.innerText).toBe('edit');
5757
editIcon.parent.triggerEventHandler('click', new Event('click'));
5858
fixture.detectChanges();
59-
expect(grid.rowInEditMode).not.toBeNull();
59+
expect(grid.gridAPI.crudService.rowInEditMode).not.toBeNull();
6060
expect(grid.rowList.first.inEditMode).toBe(true);
6161

6262
expect(grid.rowList.first.rowData['ID']).toBe('ALFKI');
@@ -66,7 +66,7 @@ describe('igxGridEditingActions #grid ', () => {
6666
deleteIcon = fixture.debugElement.queryAll(By.css(`igx-grid-editing-actions igx-icon`))[1];
6767
// grid actions should not showing when the row is in edit mode #
6868
expect(deleteIcon).toBeUndefined();
69-
grid.endEdit();
69+
grid.gridAPI.crudService.endEdit();
7070
actionStrip.show(grid.rowList.first);
7171
fixture.detectChanges();
7272
deleteIcon = fixture.debugElement.queryAll(By.css(`igx-grid-editing-actions igx-icon`))[1];
@@ -102,7 +102,7 @@ describe('igxGridEditingActions #grid ', () => {
102102

103103
expect(row.inEditMode).toBeTrue();
104104

105-
grid.endEdit();
105+
grid.gridAPI.crudService.endEdit();
106106
fixture.detectChanges();
107107
actionStrip.menu.open();
108108
fixture.detectChanges();

projects/igniteui-angular/src/lib/action-strip/grid-actions/grid-editing-actions.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export class IgxGridEditingActionsComponent extends IgxGridActionsBaseDirective
104104
}
105105
// be sure row is in view
106106
if (grid.rowList.filter(r => r === row).length !== 0) {
107-
grid.crudService.enterEditMode(firstEditable, event);
107+
grid.gridAPI.crudService.enterEditMode(firstEditable, event);
108108
}
109109
this.strip.hide();
110110
}

projects/igniteui-angular/src/lib/core/styles/base/elevations/_index.scss

Lines changed: 26 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -117,23 +117,6 @@
117117
);
118118
}
119119

120-
/// Returns an igx elevation from an igx-elevations produced map.
121-
/// @access public
122-
/// @param {Map} $elevations - The igx-elevations map to extract the elevation from.
123-
/// @param {number} $elevation - The elevation level from 1 to 24.
124-
/// @returns {String} Returns a box-shadow value.
125-
@function igx-elevation($elevations, $elevation) {
126-
@if type-of($elevation) != number or not unitless($elevation) {
127-
@error '$elevation must be a number';
128-
}
129-
130-
@if $elevation < 0 or $elevation > 24 {
131-
@error '$elevation must be between 0 and 24';
132-
}
133-
134-
@return map-get($elevations, #{$elevation});
135-
}
136-
137120
/// Generates a map of 24 shadows.
138121
/// @access public
139122
/// @requires _elevation
@@ -157,9 +140,34 @@
157140
/// @prop {Color} $color-2 [rgba(0, 0, 0, .12)] - The color used for the penumbra shadow.
158141
/// @prop {Color} $color-3 [rgba(0, 0, 0, .08)] - The color used for the ambient shadow.
159142
/// @requires igx-elevations
160-
$elevations: igx-elevations(
143+
$igx-elevations: igx-elevations(
161144
rgba(0, 0, 0, .26),
162145
rgba(0, 0, 0, .12),
163146
rgba(0, 0, 0, .08)
164147
) !default;
165148

149+
/// Returns an igx elevation from an igx-elevations produced map.
150+
/// @access public
151+
/// @param {Map} $elevations [null] - The igx-elevations map to extract the elevation from.
152+
/// @param {number} $elevation [0] - The elevation level from 0 to 24.
153+
/// @returns {String} Returns a box-shadow value.
154+
@function igx-elevation($elevations: null, $elevation: 0) {
155+
@if type-of($elevation) != number or not unitless($elevation) {
156+
@error '$elevation must be a number';
157+
}
158+
159+
@if $elevation < 0 or $elevation > 24 {
160+
@error '$elevation must be between 0 and 24';
161+
}
162+
163+
@if $elevations == null {
164+
@return if(
165+
legacy(),
166+
igx-elevation($igx-elevations, $elevation),
167+
#{var(--igx-elevation-#{$elevation})}
168+
);
169+
}
170+
171+
@return map-get($elevations, #{$elevation});
172+
}
173+

0 commit comments

Comments
 (0)