@energycap/components 0.46.16 → 22.0.2-angular-22.20260721-2053
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/energycap-components.min.css +1 -1
- package/fesm2022/energycap-components.mjs +350 -350
- package/fesm2022/energycap-components.mjs.map +1 -1
- package/package.json +8 -7
- package/schematics/utilities/typescript.js +34 -1
- package/schematics/utilities/typescript.js.map +1 -1
- package/schematics/utilities/workspace.js +1 -0
- package/schematics/utilities/workspace.js.map +1 -1
- package/src/styles/mixins/_button-base.scss +6 -1
- package/src/styles/mixins/_form-control-base.scss +10 -1
- package/src/styles/mixins/_login.scss +1 -0
- package/src/styles/mixins/_menu-base.scss +7 -2
- package/src/styles/mixins/_tabs-base.scss +11 -3
- package/src/styles/mixins/_text.scss +6 -2
- package/types/energycap-components.d.ts +2 -3
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@energycap/components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "22.0.2-angular-22.20260721-2053",
|
|
4
4
|
"schematics": "./schematics/collection.json",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"tslib": "^2.0.0"
|
|
7
7
|
},
|
|
8
8
|
"peerDependencies": {
|
|
9
|
-
"@angular/common": ">=
|
|
10
|
-
"@angular/core": ">=
|
|
11
|
-
"@angular/forms": ">=
|
|
12
|
-
"@angular/router": ">=
|
|
13
|
-
"@angular/cdk": ">=
|
|
9
|
+
"@angular/common": ">=22.0.0",
|
|
10
|
+
"@angular/core": ">=22.0.0",
|
|
11
|
+
"@angular/forms": ">=22.0.0",
|
|
12
|
+
"@angular/router": ">=22.0.0",
|
|
13
|
+
"@angular/cdk": ">=22.0.0",
|
|
14
14
|
"@ngx-translate/core": "^15.0.0",
|
|
15
15
|
"popper.js": "~1.11.1",
|
|
16
16
|
"lodash-es": "^4.17.21",
|
|
@@ -28,5 +28,6 @@
|
|
|
28
28
|
"default": "./fesm2022/energycap-components.mjs"
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
|
-
"sideEffects": false
|
|
31
|
+
"sideEffects": false,
|
|
32
|
+
"type": "module"
|
|
32
33
|
}
|
|
@@ -1,10 +1,43 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
2
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
36
|
exports.parseTsConfig = parseTsConfig;
|
|
4
37
|
exports.createTsCompilerHost = createTsCompilerHost;
|
|
5
38
|
exports.createTsProgram = createTsProgram;
|
|
6
39
|
const path_1 = require("path");
|
|
7
|
-
const ts = require("typescript");
|
|
40
|
+
const ts = __importStar(require("typescript"));
|
|
8
41
|
/** Parses the TSConfig file to be used in the TS Compiler Program. */
|
|
9
42
|
function parseTsConfig(absoluteTsConfigPath) {
|
|
10
43
|
const { config } = ts.readConfigFile(absoluteTsConfigPath, ts.sys.readFile);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typescript.js","sourceRoot":"","sources":["../../../../projects/components/schematics/utilities/typescript.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"typescript.js","sourceRoot":"","sources":["../../../../projects/components/schematics/utilities/typescript.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,sCAUC;AAGD,oDAWC;AAGD,0CAOC;AAtCD,+BAAkD;AAClD,+CAAiC;AAEjC,sEAAsE;AACtE,SAAgB,aAAa,CAAC,oBAA4B;IACxD,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,cAAc,CAAC,oBAAoB,EAAE,EAAE,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IAC5E,MAAM,SAAS,GAAG;QAChB,yBAAyB,EAAE,EAAE,CAAC,GAAG,CAAC,yBAAyB;QAC3D,UAAU,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU;QAC7B,QAAQ,EAAE,EAAE,CAAC,GAAG,CAAC,QAAQ;QACzB,aAAa,EAAE,EAAE,CAAC,GAAG,CAAC,aAAa;KACpC,CAAC;IAEF,OAAO,EAAE,CAAC,0BAA0B,CAAC,MAAM,EAAE,SAAS,EAAE,IAAA,cAAO,EAAC,oBAAoB,CAAC,EAAE,EAAE,CAAC,CAAC;A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G;AAEjG,kFAAkF;AAClF,8EAA8E;AAC9E,aAAa;AACb,sDAAsD;AACtD,sCAAsC;AACtC,qBAAqB;AACrB,sDAAsD;AACtD,UAAU;AACV,mDAAmD;AACnD,SAAS;AACT,mEAAmE;AACnE,2CAA2C;AAC3C,SAAS;AACT,0DAA0D;AAC1D,4EAA4E;AAC5E,SAAS;AACT,qDAAqD;AACrD,kCAAkC;AAClC,QAAQ;AACR,MAAM;AACN,IAAI;AAEJ,qJAAqJ;AACrJ,0GAA0G;AAC1G,4CAA4C;AAC5C,sEAAsE;AACtE,sBAAsB;AACtB,IAAI;AAEJ,6FAA6F;AAC7F,sGAAsG;AACtG,0CAA0C;AAC1C,yCAAyC;AACzC,mGAAmG;AAEnG,6EAA6E;AAC7E,iDAAiD;AACjD,kBAAkB;AAClB,QAAQ;AAER,4DAA4D;AAC5D,yGAAyG;AACzG,8DAA8D;AAC9D,6FAA6F;AAC7F,UAAU;AACV,QAAQ;AACR,MAAM;AAEN,0CAA0C;AAC1C,IAAI"}
|
|
1
|
+
{"version":3,"file":"workspace.js","sourceRoot":"","sources":["../../../../projects/components/schematics/utilities/workspace.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,qDAAqD;AACrD,iGAAiG;AAEjG,kFAAkF;AAClF,8EAA8E;AAC9E,aAAa;AACb,sDAAsD;AACtD,sCAAsC;AACtC,qBAAqB;AACrB,sDAAsD;AACtD,UAAU;AACV,mDAAmD;AACnD,SAAS;AACT,mEAAmE;AACnE,2CAA2C;AAC3C,SAAS;AACT,0DAA0D;AAC1D,4EAA4E;AAC5E,SAAS;AACT,qDAAqD;AACrD,kCAAkC;AAClC,QAAQ;AACR,MAAM;AACN,IAAI;AAEJ,qJAAqJ;AACrJ,0GAA0G;AAC1G,4CAA4C;AAC5C,sEAAsE;AACtE,sBAAsB;AACtB,IAAI;AAEJ,6FAA6F;AAC7F,sGAAsG;AACtG,0CAA0C;AAC1C,yCAAyC;AACzC,mGAAmG;AAEnG,6EAA6E;AAC7E,iDAAiD;AACjD,kBAAkB;AAClB,QAAQ;AAER,4DAA4D;AAC5D,yGAAyG;AACzG,8DAA8D;AAC9D,6FAA6F;AAC7F,UAAU;AACV,QAAQ;AACR,MAAM;AAEN,0CAA0C;AAC1C,IAAI"}
|
|
@@ -37,11 +37,16 @@ $button-padding-x: 0.5rem;
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
&:focus {
|
|
40
|
-
outline:
|
|
40
|
+
outline: 2px solid transparent;
|
|
41
|
+
outline-offset: 2px;
|
|
41
42
|
position: relative;
|
|
42
43
|
z-index: 1;
|
|
43
44
|
}
|
|
44
45
|
|
|
46
|
+
&:focus-visible {
|
|
47
|
+
outline-color: var(--ec-border-color-focus);
|
|
48
|
+
}
|
|
49
|
+
|
|
45
50
|
&:disabled {
|
|
46
51
|
background-color: var(--ec-background-color-disabled);
|
|
47
52
|
border: 1px solid var(--ec-form-control-border-color-disabled);
|
|
@@ -125,6 +125,8 @@ $checkbox-indicator-size: $form-control-icon-size;
|
|
|
125
125
|
} @else if $state == focus {
|
|
126
126
|
border-color: var(--ec-form-control-border-color-focus);
|
|
127
127
|
box-shadow: var(--ec-form-control-box-shadow-focus);
|
|
128
|
+
outline: 2px solid transparent;
|
|
129
|
+
outline-offset: 2px;
|
|
128
130
|
position: relative;
|
|
129
131
|
z-index: 1;
|
|
130
132
|
|
|
@@ -342,7 +344,14 @@ $checkbox-indicator-size: $form-control-icon-size;
|
|
|
342
344
|
textarea:focus,
|
|
343
345
|
input:focus,
|
|
344
346
|
select:focus {
|
|
345
|
-
outline:
|
|
347
|
+
outline: 2px solid transparent;
|
|
348
|
+
outline-offset: 2px;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
textarea:focus-visible,
|
|
352
|
+
input:focus-visible,
|
|
353
|
+
select:focus-visible {
|
|
354
|
+
outline-color: var(--ec-border-color-focus);
|
|
346
355
|
}
|
|
347
356
|
|
|
348
357
|
.sr-only {
|
|
@@ -68,12 +68,17 @@ $menu-item-padding: get-item-padding($menu-item-height, $menu-item-line-height);
|
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
&:focus .item-wrapper{
|
|
71
|
-
outline:
|
|
72
|
-
|
|
71
|
+
outline: 2px solid transparent;
|
|
72
|
+
outline-offset: -2px;
|
|
73
|
+
background-color: var(--ec-background-color-selected);
|
|
73
74
|
position: relative;
|
|
74
75
|
z-index: 1;
|
|
75
76
|
}
|
|
76
77
|
|
|
78
|
+
&:focus-visible .item-wrapper{
|
|
79
|
+
outline-color: var(--ec-border-color-focus);
|
|
80
|
+
}
|
|
81
|
+
|
|
77
82
|
&.is-disabled .item-wrapper {
|
|
78
83
|
color: var(--ec-color-disabled-dark);
|
|
79
84
|
opacity: var(--ec-form-control-opacity-disabled);
|
|
@@ -61,9 +61,6 @@
|
|
|
61
61
|
|
|
62
62
|
&:hover,
|
|
63
63
|
&:focus {
|
|
64
|
-
// Override the default browser focus ring
|
|
65
|
-
outline: none;
|
|
66
|
-
|
|
67
64
|
@if $style =='pills' {
|
|
68
65
|
border-color: var(--ec-tab-border-color-active, var(--ec-border-color-focus));
|
|
69
66
|
box-shadow: 0 0 0 1px var(--ec-tab-border-color-active, var(--ec-border-color-focus));
|
|
@@ -85,6 +82,17 @@
|
|
|
85
82
|
}
|
|
86
83
|
}
|
|
87
84
|
|
|
85
|
+
// Transparent outline only on actual focus (not hover) so forced-colors doesn't
|
|
86
|
+
// promote it to a visible ring on hover; keyboard ring set in &:focus-visible below.
|
|
87
|
+
&:focus {
|
|
88
|
+
outline: 2px solid transparent;
|
|
89
|
+
outline-offset: -2px;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
&:focus-visible {
|
|
93
|
+
outline-color: var(--ec-border-color-focus);
|
|
94
|
+
}
|
|
95
|
+
|
|
88
96
|
&.is-disabled {
|
|
89
97
|
opacity: var(--ec-form-control-opacity-disabled);
|
|
90
98
|
cursor: default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { OnInit, OnChanges, AfterViewInit, OnDestroy, TemplateRef, EventEmitter, ElementRef, SimpleChanges, PipeTransform, ViewContainerRef, Renderer2, QueryList, ApplicationRef, AfterContentInit, Type, ComponentRef,
|
|
2
|
+
import { OnInit, OnChanges, AfterViewInit, OnDestroy, TemplateRef, EventEmitter, ElementRef, SimpleChanges, PipeTransform, ViewContainerRef, Renderer2, QueryList, ApplicationRef, AfterContentInit, Type, ComponentRef, AfterViewChecked, Injector, Provider, ModuleWithProviders } from '@angular/core';
|
|
3
3
|
import * as i74 from '@angular/router';
|
|
4
4
|
import { Params, Router, ActivatedRoute, ActivatedRouteSnapshot, ParamMap, UrlSegment, QueryParamsHandling } from '@angular/router';
|
|
5
5
|
import { Subject, Observable } from 'rxjs';
|
|
@@ -3148,7 +3148,6 @@ declare const DialogCloseDuration: number;
|
|
|
3148
3148
|
declare const PanelOpenDuration: number;
|
|
3149
3149
|
declare const PanelCloseDuration: number;
|
|
3150
3150
|
declare class DialogComponent {
|
|
3151
|
-
private componentFactoryResolver;
|
|
3152
3151
|
private windowService;
|
|
3153
3152
|
private dialogService;
|
|
3154
3153
|
private documentRef;
|
|
@@ -3227,7 +3226,7 @@ declare class DialogComponent {
|
|
|
3227
3226
|
*/
|
|
3228
3227
|
updateCdkTrapFocusAutoCapture: boolean;
|
|
3229
3228
|
private previouslyFocusedElement;
|
|
3230
|
-
constructor(
|
|
3229
|
+
constructor(windowService: WindowService, dialogService: DialogService, documentRef: Document);
|
|
3231
3230
|
ngOnInit(): void;
|
|
3232
3231
|
ngOnDestroy(): void;
|
|
3233
3232
|
/**
|