@ngx-stoui/core 19.0.2 → 20.0.1
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/fesm2022/ngx-stoui-core.mjs +95 -93
- package/fesm2022/ngx-stoui-core.mjs.map +1 -1
- package/index.d.ts +362 -11
- package/ngx-datatable.css +4 -5
- package/ngx-stoui-core-20.0.1.tgz +0 -0
- package/ngx-stoui.css +1932 -2178
- package/package.json +3 -3
- package/style/datatable/ngx-datatable.scss +7 -6
- package/style/form/sto-form.scss +4 -3
- package/style/theme/_datatable.scss +2 -2
- package/style/theme/_input-overrides.scss +0 -1
- package/lib/abstract-and-interfaces/keyPress.enum.d.ts +0 -138
- package/lib/sto-directives/context-menu.directive.d.ts +0 -11
- package/lib/sto-directives/date-form-field-click.directive.d.ts +0 -20
- package/lib/sto-directives/directives.module.d.ts +0 -12
- package/lib/sto-directives/index.d.ts +0 -6
- package/lib/sto-directives/menu-overlay.directive.d.ts +0 -12
- package/lib/sto-directives/quick-keys.directive.d.ts +0 -42
- package/lib/sto-directives/sto-grid.directive.d.ts +0 -31
- package/lib/sto-directives/sto-select-text-on-focus.directive.d.ts +0 -16
- package/lib/sto-pipes/currency-format.pipe.d.ts +0 -16
- package/lib/sto-pipes/date-format.pipe.d.ts +0 -16
- package/lib/sto-pipes/keys.pipe.d.ts +0 -15
- package/lib/sto-pipes/number-format.pipe.d.ts +0 -20
- package/lib/sto-pipes/sto-pipes.module.d.ts +0 -12
- package/lib/sto-pipes/with-unit.d.ts +0 -12
- package/lib/sto-pipes/yes-no.d.ts +0 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ngx-stoui/core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "20.0.1",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "Ronnie Laugen",
|
|
6
6
|
"email": "rhenri@equinor.com"
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"equinor"
|
|
22
22
|
],
|
|
23
23
|
"peerDependencies": {
|
|
24
|
-
"@angular/common": "^
|
|
25
|
-
"@angular/core": "^
|
|
24
|
+
"@angular/common": "^20.0.0",
|
|
25
|
+
"@angular/core": "^20.0.0",
|
|
26
26
|
"date-fns": "^3.6.0"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
@@ -15,6 +15,9 @@
|
|
|
15
15
|
-moz-user-select: none; /* Firefox */
|
|
16
16
|
-ms-user-select: none; /* IE10+/Edge */
|
|
17
17
|
user-select: none; /* Standard */
|
|
18
|
+
&:has(.mat-mdc-checkbox) {
|
|
19
|
+
padding: 4px 8px 0 8px;
|
|
20
|
+
}
|
|
18
21
|
|
|
19
22
|
.datatable-header-cell-wrapper {
|
|
20
23
|
position: relative;
|
|
@@ -41,10 +44,6 @@
|
|
|
41
44
|
border-right: none;
|
|
42
45
|
}
|
|
43
46
|
}
|
|
44
|
-
.mat-mdc-checkbox {
|
|
45
|
-
--mdc-checkbox-state-layer-size: 18px;
|
|
46
|
-
margin-left: 11px;
|
|
47
|
-
}
|
|
48
47
|
}
|
|
49
48
|
|
|
50
49
|
.resize-handle {
|
|
@@ -59,11 +58,13 @@
|
|
|
59
58
|
|
|
60
59
|
.datatable-body-row {
|
|
61
60
|
.datatable-body-cell {
|
|
62
|
-
--
|
|
61
|
+
--mat-checkbox-state-layer-size: 35px;
|
|
63
62
|
padding: 8px;
|
|
64
63
|
vertical-align: top;
|
|
65
64
|
border-top: 0;
|
|
66
|
-
transition:
|
|
65
|
+
transition:
|
|
66
|
+
width 0.3s ease,
|
|
67
|
+
box-shadow 250ms linear;
|
|
67
68
|
&:has(.mat-mdc-form-field),
|
|
68
69
|
&:has(.mat-mdc-checkbox) {
|
|
69
70
|
padding: 0;
|
package/style/form/sto-form.scss
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
.sto-form {
|
|
14
14
|
&__field {
|
|
15
15
|
input {
|
|
16
|
-
color: var(--
|
|
16
|
+
color: var(--mat-form-field-filled-label-text-color);
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
|
|
@@ -124,7 +124,8 @@ $height: 72px;
|
|
|
124
124
|
&__field {
|
|
125
125
|
cursor: pointer;
|
|
126
126
|
@extend %sto-form__field;
|
|
127
|
-
--
|
|
127
|
+
--mat-form-field-filled-container-color: #{$form-field-bg};
|
|
128
|
+
--mat-form-field-state-layer-color: #{$form-field-bg};
|
|
128
129
|
|
|
129
130
|
&.mat-focused {
|
|
130
131
|
@extend %sto-form__field--focused;
|
|
@@ -183,7 +184,7 @@ $height: 72px;
|
|
|
183
184
|
color: var(--text);
|
|
184
185
|
display: flex;
|
|
185
186
|
.mat-mdc-icon-button {
|
|
186
|
-
--
|
|
187
|
+
--mat-icon-button-state-layer-size: 23px;
|
|
187
188
|
}
|
|
188
189
|
> span {
|
|
189
190
|
display: inline-block;
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
.mat-mdc-checkbox {
|
|
92
|
-
--
|
|
92
|
+
--mat-checkbox-state-layer-size: 35px;
|
|
93
93
|
display: inline-flex;
|
|
94
94
|
}
|
|
95
95
|
.datatable-header {
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
background-color: $hover-color;
|
|
123
123
|
}
|
|
124
124
|
.mat-mdc-icon-button {
|
|
125
|
-
--
|
|
125
|
+
--mat-icon-button-state-layer-size: 28px;
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
128
|
}
|
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
MIT License
|
|
3
|
-
|
|
4
|
-
Copyright (c) 2017 Nathan Friend
|
|
5
|
-
|
|
6
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
8
|
-
in the Software without restriction, including without limitation the rights
|
|
9
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
11
|
-
furnished to do so, subject to the following conditions:
|
|
12
|
-
|
|
13
|
-
The above copyright notice and this permission notice shall be included in all
|
|
14
|
-
copies or substantial portions of the Software.
|
|
15
|
-
|
|
16
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
-
SOFTWARE. **/
|
|
23
|
-
export declare enum Key {
|
|
24
|
-
Backspace = 8,
|
|
25
|
-
Tab = 9,
|
|
26
|
-
Enter = 13,
|
|
27
|
-
Shift = 16,
|
|
28
|
-
Ctrl = 17,
|
|
29
|
-
Alt = 18,
|
|
30
|
-
PauseBreak = 19,
|
|
31
|
-
CapsLock = 20,
|
|
32
|
-
Escape = 27,
|
|
33
|
-
Space = 32,
|
|
34
|
-
PageUp = 33,
|
|
35
|
-
PageDown = 34,
|
|
36
|
-
End = 35,
|
|
37
|
-
Home = 36,
|
|
38
|
-
LeftArrow = 37,
|
|
39
|
-
UpArrow = 38,
|
|
40
|
-
RightArrow = 39,
|
|
41
|
-
DownArrow = 40,
|
|
42
|
-
Insert = 45,
|
|
43
|
-
Delete = 46,
|
|
44
|
-
Zero = 48,
|
|
45
|
-
ClosedParen = 48,
|
|
46
|
-
One = 49,
|
|
47
|
-
ExclamationMark = 49,
|
|
48
|
-
Two = 50,
|
|
49
|
-
AtSign = 50,
|
|
50
|
-
Three = 51,
|
|
51
|
-
PoundSign = 51,
|
|
52
|
-
Hash = 51,
|
|
53
|
-
Four = 52,
|
|
54
|
-
DollarSign = 52,
|
|
55
|
-
Five = 53,
|
|
56
|
-
PercentSign = 53,
|
|
57
|
-
Six = 54,
|
|
58
|
-
Caret = 54,
|
|
59
|
-
Hat = 54,
|
|
60
|
-
Seven = 55,
|
|
61
|
-
Ampersand = 55,
|
|
62
|
-
Eight = 56,
|
|
63
|
-
Star = 56,
|
|
64
|
-
Asterik = 56,
|
|
65
|
-
Nine = 57,
|
|
66
|
-
OpenParen = 57,
|
|
67
|
-
A = 65,
|
|
68
|
-
B = 66,
|
|
69
|
-
C = 67,
|
|
70
|
-
D = 68,
|
|
71
|
-
E = 69,
|
|
72
|
-
F = 70,
|
|
73
|
-
G = 71,
|
|
74
|
-
H = 72,
|
|
75
|
-
I = 73,
|
|
76
|
-
J = 74,
|
|
77
|
-
K = 75,
|
|
78
|
-
L = 76,
|
|
79
|
-
M = 77,
|
|
80
|
-
N = 78,
|
|
81
|
-
O = 79,
|
|
82
|
-
P = 80,
|
|
83
|
-
Q = 81,
|
|
84
|
-
R = 82,
|
|
85
|
-
S = 83,
|
|
86
|
-
T = 84,
|
|
87
|
-
U = 85,
|
|
88
|
-
V = 86,
|
|
89
|
-
W = 87,
|
|
90
|
-
X = 88,
|
|
91
|
-
Y = 89,
|
|
92
|
-
Z = 90,
|
|
93
|
-
LeftWindowKey = 91,
|
|
94
|
-
RightWindowKey = 92,
|
|
95
|
-
SelectKey = 93,
|
|
96
|
-
Numpad0 = 96,
|
|
97
|
-
Numpad1 = 97,
|
|
98
|
-
Numpad2 = 98,
|
|
99
|
-
Numpad3 = 99,
|
|
100
|
-
Numpad4 = 100,
|
|
101
|
-
Numpad5 = 101,
|
|
102
|
-
Numpad6 = 102,
|
|
103
|
-
Numpad7 = 103,
|
|
104
|
-
Numpad8 = 104,
|
|
105
|
-
Numpad9 = 105,
|
|
106
|
-
Multiply = 106,
|
|
107
|
-
Add = 107,
|
|
108
|
-
Subtract = 109,
|
|
109
|
-
DecimalPoint = 110,
|
|
110
|
-
Divide = 111,
|
|
111
|
-
F1 = 112,
|
|
112
|
-
F2 = 113,
|
|
113
|
-
F3 = 114,
|
|
114
|
-
F4 = 115,
|
|
115
|
-
F5 = 116,
|
|
116
|
-
F6 = 117,
|
|
117
|
-
F7 = 118,
|
|
118
|
-
F8 = 119,
|
|
119
|
-
F9 = 120,
|
|
120
|
-
F10 = 121,
|
|
121
|
-
F11 = 122,
|
|
122
|
-
F12 = 123,
|
|
123
|
-
NumLock = 144,
|
|
124
|
-
ScrollLock = 145,
|
|
125
|
-
SemiColon = 186,
|
|
126
|
-
Equals = 187,
|
|
127
|
-
Comma = 188,
|
|
128
|
-
Dash = 189,
|
|
129
|
-
Period = 190,
|
|
130
|
-
UnderScore = 189,
|
|
131
|
-
PlusSign = 187,
|
|
132
|
-
ForwardSlash = 191,
|
|
133
|
-
Tilde = 192,
|
|
134
|
-
GraveAccent = 192,
|
|
135
|
-
OpenBracket = 219,
|
|
136
|
-
ClosedBracket = 221,
|
|
137
|
-
Quote = 222
|
|
138
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { MatMenuTrigger } from '@angular/material/menu';
|
|
2
|
-
import { MenuOverlayDirective } from './menu-overlay.directive';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class ContextMenuDirective {
|
|
5
|
-
menuTrigger: MatMenuTrigger;
|
|
6
|
-
overlayDirective: MenuOverlayDirective;
|
|
7
|
-
menuContext: unknown;
|
|
8
|
-
contextMenu(event: MouseEvent): void;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ContextMenuDirective, never>;
|
|
10
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ContextMenuDirective, "[stoContextMenu]", never, { "menuTrigger": { "alias": "menuTrigger"; "required": false; }; "overlayDirective": { "alias": "overlayDirective"; "required": false; }; "menuContext": { "alias": "menuContext"; "required": false; }; }, {}, never, never, true, never>;
|
|
11
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { OnDestroy, OnInit, QueryList } from '@angular/core';
|
|
2
|
-
import { MatDatepicker } from '@angular/material/datepicker';
|
|
3
|
-
import { MatInput } from '@angular/material/input';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
/**
|
|
6
|
-
* Directive that can be placed on mat-form-fields that contains a mat-datepicker.
|
|
7
|
-
* This directive has two tasks:
|
|
8
|
-
* Clicking anywhere on the mat-form-field will open the datepicker dialog
|
|
9
|
-
* When the datepicker is closed in any manner, we shift focus back to the datepicker input
|
|
10
|
-
*/
|
|
11
|
-
export declare class DateFormFieldClickDirective implements OnInit, OnDestroy {
|
|
12
|
-
inputs: QueryList<MatInput>;
|
|
13
|
-
stoDateFormFieldClick: MatDatepicker<Date>;
|
|
14
|
-
private destroy$;
|
|
15
|
-
clickEvent(): void;
|
|
16
|
-
ngOnInit(): void;
|
|
17
|
-
ngOnDestroy(): void;
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DateFormFieldClickDirective, never>;
|
|
19
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DateFormFieldClickDirective, "[stoDateFormFieldClick]", never, { "stoDateFormFieldClick": { "alias": "stoDateFormFieldClick"; "required": false; }; }, {}, ["inputs"], never, true, never>;
|
|
20
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./quick-keys.directive";
|
|
3
|
-
import * as i2 from "./date-form-field-click.directive";
|
|
4
|
-
import * as i3 from "./sto-select-text-on-focus.directive";
|
|
5
|
-
import * as i4 from "./sto-grid.directive";
|
|
6
|
-
import * as i5 from "./menu-overlay.directive";
|
|
7
|
-
import * as i6 from "./context-menu.directive";
|
|
8
|
-
export declare class StoDirectivesModule {
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<StoDirectivesModule, never>;
|
|
10
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<StoDirectivesModule, never, [typeof i1.QuickKeysDirective, typeof i2.DateFormFieldClickDirective, typeof i3.StoSelectTextOnFocusDirective, typeof i4.StoGridDirective, typeof i4.StoGridColumnDirective, typeof i4.StoGridSpacerDirective, typeof i5.MenuOverlayDirective, typeof i6.ContextMenuDirective], [typeof i1.QuickKeysDirective, typeof i2.DateFormFieldClickDirective, typeof i3.StoSelectTextOnFocusDirective, typeof i4.StoGridDirective, typeof i4.StoGridColumnDirective, typeof i4.StoGridSpacerDirective, typeof i5.MenuOverlayDirective, typeof i6.ContextMenuDirective]>;
|
|
11
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<StoDirectivesModule>;
|
|
12
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export * from './quick-keys.directive';
|
|
2
|
-
export * from './date-form-field-click.directive';
|
|
3
|
-
export * from './sto-select-text-on-focus.directive';
|
|
4
|
-
export * from './sto-grid.directive';
|
|
5
|
-
export * from './menu-overlay.directive';
|
|
6
|
-
export * from './context-menu.directive';
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class MenuOverlayDirective {
|
|
3
|
-
private trigger;
|
|
4
|
-
left: number;
|
|
5
|
-
top: number;
|
|
6
|
-
private readonly menu;
|
|
7
|
-
constructor();
|
|
8
|
-
updatePosition(event: MouseEvent): void;
|
|
9
|
-
private setStyle;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MenuOverlayDirective, never>;
|
|
11
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MenuOverlayDirective, "[stoMenuOverlay]", ["stoMenuOverlay"], {}, {}, never, never, true, never>;
|
|
12
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import { UntypedFormGroup } from '@angular/forms';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
/**
|
|
5
|
-
* QuickKeysDirective is used to implement shortcut keys on DOM elements, e.g to submit or reset a form on enter/escape
|
|
6
|
-
* <form quickKeys (quickSubmit)="save()" (quickCancel)="reset()">
|
|
7
|
-
*/
|
|
8
|
-
export declare class QuickKeysDirective {
|
|
9
|
-
quickKeys: unknown;
|
|
10
|
-
/**
|
|
11
|
-
* Optional formGroup input, when used in combination with a reactive form
|
|
12
|
-
*/
|
|
13
|
-
formGroup: UntypedFormGroup;
|
|
14
|
-
/**
|
|
15
|
-
* Emits when ctrl + enter is clicked in combination
|
|
16
|
-
* <form (quickSubmit)="save()">
|
|
17
|
-
*/
|
|
18
|
-
quickSubmit: EventEmitter<void>;
|
|
19
|
-
/**
|
|
20
|
-
* Emits when escape is clicked
|
|
21
|
-
* <form (quickCancel)="cancel()">
|
|
22
|
-
*/
|
|
23
|
-
quickCancel: EventEmitter<void>;
|
|
24
|
-
/**
|
|
25
|
-
* Listens on the host element for any keyup events
|
|
26
|
-
* @param e
|
|
27
|
-
*/
|
|
28
|
-
onKeyUp(e: KeyboardEvent): void;
|
|
29
|
-
/**
|
|
30
|
-
* Handler for generic keydowns, such as cancel events to close drawers
|
|
31
|
-
* @param e
|
|
32
|
-
* void
|
|
33
|
-
*/
|
|
34
|
-
private handleGenericKeydown;
|
|
35
|
-
/**
|
|
36
|
-
* Handler for form specific shortcuts, such as saving the form
|
|
37
|
-
* @param e
|
|
38
|
-
*/
|
|
39
|
-
private handleFormKeys;
|
|
40
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<QuickKeysDirective, never>;
|
|
41
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<QuickKeysDirective, "[stoQuickKeys]", never, { "quickKeys": { "alias": "quickKeys"; "required": false; }; "formGroup": { "alias": "formGroup"; "required": false; }; }, { "quickSubmit": "quickSubmit"; "quickCancel": "quickCancel"; }, never, never, true, never>;
|
|
42
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { AfterViewInit, ElementRef, OnDestroy, QueryList } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
interface BreakpointConfig {
|
|
4
|
-
2: number;
|
|
5
|
-
4: number;
|
|
6
|
-
}
|
|
7
|
-
export declare class StoGridSpacerDirective {
|
|
8
|
-
useClass: boolean;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<StoGridSpacerDirective, never>;
|
|
10
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<StoGridSpacerDirective, "[stoGridSpacer]", never, {}, {}, never, never, true, never>;
|
|
11
|
-
}
|
|
12
|
-
export declare class StoGridColumnDirective {
|
|
13
|
-
useClass: boolean;
|
|
14
|
-
stoGridColumnDouble: boolean;
|
|
15
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<StoGridColumnDirective, never>;
|
|
16
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<StoGridColumnDirective, "[stoGridColumn]", never, { "stoGridColumnDouble": { "alias": "stoGridColumnDouble"; "required": false; }; }, {}, never, never, true, never>;
|
|
17
|
-
}
|
|
18
|
-
export declare class StoGridDirective implements AfterViewInit, OnDestroy {
|
|
19
|
-
private elRef;
|
|
20
|
-
maxWidth: number;
|
|
21
|
-
minWidth: number;
|
|
22
|
-
baseClass: boolean;
|
|
23
|
-
columns: QueryList<ElementRef<HTMLElement>>;
|
|
24
|
-
breakpoints: BreakpointConfig;
|
|
25
|
-
private observer;
|
|
26
|
-
ngAfterViewInit(): void;
|
|
27
|
-
ngOnDestroy(): void;
|
|
28
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<StoGridDirective, never>;
|
|
29
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<StoGridDirective, "[stoGrid]", ["stoGrid"], { "maxWidth": { "alias": "maxWidth"; "required": false; }; "minWidth": { "alias": "minWidth"; "required": false; }; "breakpoints": { "alias": "breakpoints"; "required": false; }; }, {}, ["columns"], never, true, never>;
|
|
30
|
-
}
|
|
31
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
/**
|
|
3
|
-
* stoSelectTextOnFocus listens for input focus events, and selects the contents of the input
|
|
4
|
-
* A user service is established in {@link StoUserPreferenceService} that allows a user to toggle this feature
|
|
5
|
-
*/
|
|
6
|
-
export declare class StoSelectTextOnFocusDirective {
|
|
7
|
-
private elementRef;
|
|
8
|
-
private _el;
|
|
9
|
-
constructor();
|
|
10
|
-
/**
|
|
11
|
-
* Listens for focus events on the host (input) element, and focuses if applicable
|
|
12
|
-
*/
|
|
13
|
-
onFocus(): void;
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<StoSelectTextOnFocusDirective, never>;
|
|
15
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<StoSelectTextOnFocusDirective, "[stoSelectTextOnFocus]", never, {}, {}, never, never, true, never>;
|
|
16
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
/**
|
|
4
|
-
* Pipe used to transform numbers to a currency format
|
|
5
|
-
*
|
|
6
|
-
* @example
|
|
7
|
-
*
|
|
8
|
-
* <span>{{ 5000.5824 | currentFormat:'$':3 }}</span>
|
|
9
|
-
* Results in
|
|
10
|
-
* <span>5 000,582 $</span>
|
|
11
|
-
*/
|
|
12
|
-
export declare class CurrencyFormatPipe implements PipeTransform {
|
|
13
|
-
transform(value: number, unit?: string, maximumFractionDigits?: number): string | null;
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CurrencyFormatPipe, never>;
|
|
15
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<CurrencyFormatPipe, "currencyFormat", true>;
|
|
16
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
/**
|
|
4
|
-
* Pipe used to transform dates, based on our default formats.
|
|
5
|
-
*
|
|
6
|
-
* @example
|
|
7
|
-
*
|
|
8
|
-
* public date = "2018-08-27 14:00:30"
|
|
9
|
-
* <span>{{ date | dateFormat }}</span> -> Aug 27, 2018
|
|
10
|
-
* <span>{{ date | dateFormat:'long' }}</span> -> Monday Aug 27, 2018
|
|
11
|
-
*/
|
|
12
|
-
export declare class DateFormatPipe implements PipeTransform {
|
|
13
|
-
transform(value: string | number | Date | null, format?: string): string | null;
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DateFormatPipe, never>;
|
|
15
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<DateFormatPipe, "formatDate", true>;
|
|
16
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
/**
|
|
4
|
-
* Transforms an Object to an Array.
|
|
5
|
-
*
|
|
6
|
-
* @example
|
|
7
|
-
*
|
|
8
|
-
* public obj = {a: 1, b: 2, c: 3};
|
|
9
|
-
* <span *ngFor="let key of obj | keys "> {{ obj[key] }}, </span> -> 1, 2, 3,
|
|
10
|
-
*/
|
|
11
|
-
export declare class KeysPipe implements PipeTransform {
|
|
12
|
-
transform(value: Record<string, unknown>): Array<string>;
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<KeysPipe, never>;
|
|
14
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<KeysPipe, "keys", true>;
|
|
15
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
/**
|
|
4
|
-
* Formats numbers to use our standard formatting (d ddd,ddd)
|
|
5
|
-
*
|
|
6
|
-
* @example
|
|
7
|
-
*
|
|
8
|
-
* {{ 1234,32 | numberFormat }} -> 1 234,320
|
|
9
|
-
* {{ 1234,32 | numberFormat:'M3' }} -> 1 234,320 M3
|
|
10
|
-
* {{ -1234,32 | numberFormat:'M3':true }} -> 1 234,320 M3
|
|
11
|
-
* {{ 1234,32 | numberFormat:'M3':false:false }} -> 1 234 M3
|
|
12
|
-
* {{ 1234,32 | numberFormat:'M3':false:true:5 }} -> 1 234,32000 M3
|
|
13
|
-
*/
|
|
14
|
-
export declare class NumberFormatPipe implements PipeTransform {
|
|
15
|
-
transform(value: number | string, unit?: string, abs?: boolean, appendDecimals?: boolean, numberOfDecimals?: number): string | null;
|
|
16
|
-
private prettyPrintValue;
|
|
17
|
-
private toFixed;
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NumberFormatPipe, never>;
|
|
19
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<NumberFormatPipe, "numberFormat", true>;
|
|
20
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./date-format.pipe";
|
|
3
|
-
import * as i2 from "./keys.pipe";
|
|
4
|
-
import * as i3 from "./number-format.pipe";
|
|
5
|
-
import * as i4 from "./currency-format.pipe";
|
|
6
|
-
import * as i5 from "./with-unit";
|
|
7
|
-
import * as i6 from "./yes-no";
|
|
8
|
-
export declare class StoPipesModule {
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<StoPipesModule, never>;
|
|
10
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<StoPipesModule, never, [typeof i1.DateFormatPipe, typeof i2.KeysPipe, typeof i3.NumberFormatPipe, typeof i4.CurrencyFormatPipe, typeof i5.GetUnit, typeof i5.ExcludeUnit, typeof i6.YesNoPipe], [typeof i1.DateFormatPipe, typeof i2.KeysPipe, typeof i3.NumberFormatPipe, typeof i4.CurrencyFormatPipe, typeof i5.GetUnit, typeof i5.ExcludeUnit, typeof i6.YesNoPipe]>;
|
|
11
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<StoPipesModule>;
|
|
12
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class GetUnit implements PipeTransform {
|
|
4
|
-
transform(value: string, withParens?: boolean): string;
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<GetUnit, never>;
|
|
6
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<GetUnit, "getUnit", true>;
|
|
7
|
-
}
|
|
8
|
-
export declare class ExcludeUnit implements PipeTransform {
|
|
9
|
-
transform(value: string): string;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ExcludeUnit, never>;
|
|
11
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<ExcludeUnit, "excludeUnit", true>;
|
|
12
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class YesNoPipe implements PipeTransform {
|
|
4
|
-
transform(value: boolean, ignoreNulls?: boolean): string;
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<YesNoPipe, never>;
|
|
6
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<YesNoPipe, "yesNo", true>;
|
|
7
|
-
}
|