@ngx-stoui/core 20.0.15 → 21.0.0
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/README.md +143 -2
- package/fesm2022/ngx-stoui-core.mjs +79 -225
- package/fesm2022/ngx-stoui-core.mjs.map +1 -1
- package/ngx-datatable.css +343 -204
- package/ngx-stoui.css +2797 -4242
- package/package.json +5 -5
- package/styles/README.md +273 -0
- package/{index.d.ts → types/ngx-stoui-core.d.ts} +8 -33
- package/style/_fonts.scss +0 -3
- package/style/datatable/_ngx-datatable-compact.scss +0 -146
- package/style/datatable/_ngx-datatable-form.scss +0 -90
- package/style/datatable/_ngx-datatable-variables.scss +0 -10
- package/style/datatable/ngx-datatable.scss +0 -405
- package/style/fonts/Equinor-Bold.woff +0 -0
- package/style/fonts/Equinor-Bold.woff2 +0 -0
- package/style/fonts/Equinor-Light.woff +0 -0
- package/style/fonts/Equinor-Light.woff2 +0 -0
- package/style/fonts/Equinor-Medium.woff +0 -0
- package/style/fonts/Equinor-Medium.woff2 +0 -0
- package/style/fonts/Equinor-Regular.woff +0 -0
- package/style/fonts/Equinor-Regular.woff2 +0 -0
- package/style/form/sto-form.scss +0 -343
- package/style/grid.scss +0 -20
- package/style/statoil-sansmedium-webfont.woff +0 -0
- package/style/statoil-sansmedium-webfont.woff2 +0 -0
- package/style/sto-dialog.scss +0 -70
- package/style/sto-grid.scss +0 -63
- package/style/theme/_action-footer.scss +0 -18
- package/style/theme/_appheader.scss +0 -122
- package/style/theme/_card.scss +0 -28
- package/style/theme/_colors.scss +0 -185
- package/style/theme/_datatable.scss +0 -265
- package/style/theme/_daterange.scss +0 -48
- package/style/theme/_dialog.scss +0 -24
- package/style/theme/_drawer.scss +0 -0
- package/style/theme/_filterpanel.scss +0 -89
- package/style/theme/_input-overrides.scss +0 -119
- package/style/theme/_message-panel.scss +0 -96
- package/style/theme/_number-input.scss +0 -23
- package/style/theme/_number-unit-input.scss +0 -34
- package/style/theme/_select-filter.scss +0 -17
- package/style/theme/_sto-indicators.scss +0 -118
- package/style/theme/_theme-variables.scss +0 -67
- package/style/theme/_theme.scss +0 -22
- package/style/theme/_typography.scss +0 -56
- package/style/theme/_wysiwyg.scss +0 -39
- package/style/theme/components.scss +0 -16
- package/style/theme/preference-manager.scss +0 -46
- package/style/theme.scss +0 -46
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ngx-stoui/core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "21.0.0",
|
|
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": "^21.0.0",
|
|
25
|
+
"@angular/core": "^21.0.0",
|
|
26
26
|
"date-fns": "^4.1.0"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"exports": {
|
|
32
32
|
".": {
|
|
33
33
|
"default": "./fesm2022/ngx-stoui-core.mjs",
|
|
34
|
-
"types": "./
|
|
34
|
+
"types": "./types/ngx-stoui-core.d.ts"
|
|
35
35
|
},
|
|
36
36
|
"./ngx-stoui.css": {
|
|
37
37
|
"default": "./ngx-stoui.css"
|
|
@@ -44,6 +44,6 @@
|
|
|
44
44
|
}
|
|
45
45
|
},
|
|
46
46
|
"module": "fesm2022/ngx-stoui-core.mjs",
|
|
47
|
-
"typings": "
|
|
47
|
+
"typings": "types/ngx-stoui-core.d.ts",
|
|
48
48
|
"sideEffects": false
|
|
49
49
|
}
|
package/styles/README.md
ADDED
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
# Styles Folder Architecture
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
|
|
5
|
+
The new `styles/` directory provides a clean, intuitive structure that eliminates the complex import chains of the old `style/` folder. All CSS variables are centralized, and the import path is straightforward.
|
|
6
|
+
|
|
7
|
+
## Directory Structure
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
styles/
|
|
11
|
+
├── index.scss # Main entry point (import this!)
|
|
12
|
+
├── _tokens.scss # Design system tokens and CSS variables
|
|
13
|
+
├── _material-theme.scss # Material 3 theme configuration
|
|
14
|
+
├── _typography.scss # Typography scales (normal, small, large)
|
|
15
|
+
├── _utilities.scss # Utility classes (grid, helpers)
|
|
16
|
+
├── fonts/
|
|
17
|
+
│ └── _fonts.scss # Font loading from CDN
|
|
18
|
+
└── components/
|
|
19
|
+
├── _index.scss # Component barrel file
|
|
20
|
+
├── _action-footer.scss # Individual component styles
|
|
21
|
+
├── _appheader.scss
|
|
22
|
+
├── _card.scss
|
|
23
|
+
├── _datatable.scss
|
|
24
|
+
├── _daterange.scss
|
|
25
|
+
├── _dialog.scss
|
|
26
|
+
├── _drawer.scss
|
|
27
|
+
├── _filterpanel.scss
|
|
28
|
+
├── _input-overrides.scss
|
|
29
|
+
├── _message-panel.scss
|
|
30
|
+
├── _number-input.scss
|
|
31
|
+
├── _number-unit-input.scss
|
|
32
|
+
├── _preference-manager.scss
|
|
33
|
+
├── _select-filter.scss
|
|
34
|
+
├── _status-indicators.scss
|
|
35
|
+
└── _wysiwyg.scss
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Import Flow
|
|
39
|
+
|
|
40
|
+
### New Structure (Simplified)
|
|
41
|
+
|
|
42
|
+
```
|
|
43
|
+
ngx-stoui.scss
|
|
44
|
+
└─> styles/index.scss
|
|
45
|
+
├─> _tokens.scss (CSS variables)
|
|
46
|
+
├─> _material-theme.scss (Material 3)
|
|
47
|
+
├─> _typography.scss (Typography scales)
|
|
48
|
+
├─> _utilities.scss (Grid utilities)
|
|
49
|
+
├─> fonts/_fonts.scss (Font loading)
|
|
50
|
+
└─> components/_index.scss
|
|
51
|
+
└─> All component files
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### Old Structure (Complex)
|
|
55
|
+
|
|
56
|
+
```
|
|
57
|
+
ngx-stoui.scss
|
|
58
|
+
└─> style/theme/_theme.scss
|
|
59
|
+
├─> _colors.scss (M2 palettes)
|
|
60
|
+
├─> _theme-variables.scss (M2 functions)
|
|
61
|
+
├─> components.scss
|
|
62
|
+
│ └─> 21 individual component imports
|
|
63
|
+
└─> Circular dependencies
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
## Key Files
|
|
67
|
+
|
|
68
|
+
### `index.scss` - Main Entry Point
|
|
69
|
+
|
|
70
|
+
Single file to import for all styles. Automatically includes:
|
|
71
|
+
|
|
72
|
+
- Design tokens
|
|
73
|
+
- Material theme
|
|
74
|
+
- Typography
|
|
75
|
+
- Utilities
|
|
76
|
+
- Component styles
|
|
77
|
+
|
|
78
|
+
**Usage:**
|
|
79
|
+
|
|
80
|
+
```scss
|
|
81
|
+
@use './styles' as *;
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
### `_tokens.scss` - Design System Tokens
|
|
85
|
+
|
|
86
|
+
**Single source of truth** for all CSS variables:
|
|
87
|
+
|
|
88
|
+
- Light theme colors (`:root`, `body:not(.sto-dark-theme)`)
|
|
89
|
+
- Dark theme colors (`body.sto-dark-theme`)
|
|
90
|
+
- EDS (Equinor Design System) SCSS maps
|
|
91
|
+
- No dependencies
|
|
92
|
+
|
|
93
|
+
**Available CSS Variables:**
|
|
94
|
+
|
|
95
|
+
```scss
|
|
96
|
+
// Primary colors
|
|
97
|
+
--primary-resting, --primary-hover, --primary-text
|
|
98
|
+
|
|
99
|
+
// Accent colors
|
|
100
|
+
--accent-resting, --accent-hover, --accent-text
|
|
101
|
+
|
|
102
|
+
// Status colors
|
|
103
|
+
--success-*, --danger-*, --warning-*
|
|
104
|
+
|
|
105
|
+
// Text colors
|
|
106
|
+
--text, --text-secondary, --text-tertiary, --text-disabled
|
|
107
|
+
|
|
108
|
+
// Background colors
|
|
109
|
+
--bg-default, --bg-app, --bg-card, --bg-hover, --bg-focus
|
|
110
|
+
|
|
111
|
+
// UI elements
|
|
112
|
+
--divider, --border-disabled
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
### `_material-theme.scss` - Material 3 Configuration
|
|
116
|
+
|
|
117
|
+
Material Design 3 theme setup with `mat.define-theme()`:
|
|
118
|
+
|
|
119
|
+
- Azure/blue color scheme
|
|
120
|
+
- Component theme includes
|
|
121
|
+
- CSS variable overrides for Material components
|
|
122
|
+
|
|
123
|
+
**Mixin:**
|
|
124
|
+
|
|
125
|
+
```scss
|
|
126
|
+
@include material-theme.apply-material-theme();
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
### `_typography.scss` - Typography Scales
|
|
130
|
+
|
|
131
|
+
Three typography hierarchies:
|
|
132
|
+
|
|
133
|
+
- `$sto-typography` - Normal scale (13px base)
|
|
134
|
+
- `$sto-sm-typography` - Small scale (10px base)
|
|
135
|
+
- `$sto-l-typography` - Large scale (16px base)
|
|
136
|
+
|
|
137
|
+
**Mixin:**
|
|
138
|
+
|
|
139
|
+
```scss
|
|
140
|
+
@include typography.apply-typography();
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
### `_utilities.scss` - Utility Classes
|
|
144
|
+
|
|
145
|
+
Flexible grid system and helper classes:
|
|
146
|
+
|
|
147
|
+
- `.sto-grid` - Responsive grid using CSS Container Queries (auto 1→2→4 columns based on container width)
|
|
148
|
+
- `.sto-grid--{n}` - Fixed column layouts (`--1`, `--2`, `--3`, `--4`, `--6`, `--12`) that override responsive behavior
|
|
149
|
+
- `.sto-grid__col` - Grid column with span modifiers (`--2`, `--3`, `--4`)
|
|
150
|
+
- `.sto-grid__col--spacer` - Hidden spacer column for layout alignment
|
|
151
|
+
|
|
152
|
+
### `components/_index.scss` - Component Barrel
|
|
153
|
+
|
|
154
|
+
Imports all component styles and provides single mixin:
|
|
155
|
+
|
|
156
|
+
```scss
|
|
157
|
+
@include components.apply-component-styles();
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
## Migration from Old Structure
|
|
161
|
+
|
|
162
|
+
### What Changed?
|
|
163
|
+
|
|
164
|
+
1. **Folder Name**: `style/` → `styles/` (avoids Windows permission issues)
|
|
165
|
+
|
|
166
|
+
2. **Import Chain**:
|
|
167
|
+
- Old: 4-5 levels deep with circular dependencies
|
|
168
|
+
- New: Flat structure, clear hierarchy
|
|
169
|
+
|
|
170
|
+
3. **CSS Variables**:
|
|
171
|
+
- Old: Duplicated in `ngx-stoui.scss` and `_colors.scss`
|
|
172
|
+
- New: Single source in `_tokens.scss`
|
|
173
|
+
|
|
174
|
+
4. **Material Theme**:
|
|
175
|
+
- Old: Material 2 with palette extraction
|
|
176
|
+
- New: Material 3 with direct theme definition
|
|
177
|
+
|
|
178
|
+
5. **Component Organization**:
|
|
179
|
+
- Old: Nested in `style/theme/` with barrel file
|
|
180
|
+
- New: Flat in `styles/components/` with barrel file
|
|
181
|
+
|
|
182
|
+
### Migration Status
|
|
183
|
+
|
|
184
|
+
✅ **Completed:**
|
|
185
|
+
|
|
186
|
+
- Created new `styles/` folder structure
|
|
187
|
+
- Migrated all 16 component files from `style/theme/`
|
|
188
|
+
- Migrated form styles from `style/form/`
|
|
189
|
+
- Migrated datatable styles from `style/datatable/`
|
|
190
|
+
- Centralized CSS variables in `_tokens.scss`
|
|
191
|
+
- Converted to Material 3 in `_material-theme.scss`
|
|
192
|
+
- Updated `ngx-stoui.scss` to use new structure
|
|
193
|
+
- Removed all legacy imports
|
|
194
|
+
- Build successful
|
|
195
|
+
- Lint passing
|
|
196
|
+
|
|
197
|
+
✅ **Migration Complete!** All files have been moved to the new structure. The old `style/` folder can now be removed.
|
|
198
|
+
|
|
199
|
+
### Old `style/` Folder (Deprecated)
|
|
200
|
+
|
|
201
|
+
The old `style/` folder is now deprecated and can be safely deleted. All styles have been migrated to the new `styles/` structure.
|
|
202
|
+
|
|
203
|
+
## Best Practices
|
|
204
|
+
|
|
205
|
+
### 1. Use CSS Variables Directly
|
|
206
|
+
|
|
207
|
+
```scss
|
|
208
|
+
// ✅ CORRECT
|
|
209
|
+
.my-component {
|
|
210
|
+
color: var(--text);
|
|
211
|
+
background: var(--bg-card);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
// ❌ AVOID (old pattern)
|
|
215
|
+
.my-component {
|
|
216
|
+
color: $text-color; // SCSS variable wrapper
|
|
217
|
+
}
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
### 2. Component Styles
|
|
221
|
+
|
|
222
|
+
Component files should export mixins:
|
|
223
|
+
|
|
224
|
+
```scss
|
|
225
|
+
@mixin my-component-theme() {
|
|
226
|
+
.my-component {
|
|
227
|
+
border: 1px solid var(--divider);
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
### 3. Import Order
|
|
233
|
+
|
|
234
|
+
When creating new files, follow this order:
|
|
235
|
+
|
|
236
|
+
```scss
|
|
237
|
+
// 1. Design tokens (if needed)
|
|
238
|
+
@use '../tokens';
|
|
239
|
+
|
|
240
|
+
// 2. Material dependencies (if needed)
|
|
241
|
+
@use '@angular/material' as mat;
|
|
242
|
+
|
|
243
|
+
// 3. Component styles
|
|
244
|
+
@mixin my-component-theme() {
|
|
245
|
+
// styles here
|
|
246
|
+
}
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
### 4. Flat Structure
|
|
250
|
+
|
|
251
|
+
Keep component files flat - avoid nesting:
|
|
252
|
+
|
|
253
|
+
- `components/_my-component.scss` ✅
|
|
254
|
+
- `components/feature/_my-component.scss` ❌
|
|
255
|
+
|
|
256
|
+
## Benefits
|
|
257
|
+
|
|
258
|
+
1. **Discoverability**: Easy to find where styles are defined
|
|
259
|
+
2. **No Circular Dependencies**: Clear import hierarchy
|
|
260
|
+
3. **Single Source of Truth**: CSS variables in one place
|
|
261
|
+
4. **Modern Material**: Material 3 API
|
|
262
|
+
5. **Clean Separation**: Tokens, theme, typography, components
|
|
263
|
+
6. **Easy Debugging**: Flat structure, clear file names
|
|
264
|
+
7. **Performance**: Removed duplicate CSS variable definitions
|
|
265
|
+
|
|
266
|
+
## Future Improvements
|
|
267
|
+
|
|
268
|
+
1. Migrate `style/form/` to `styles/forms/`
|
|
269
|
+
2. Migrate `style/datatable/` to `styles/components/datatable/`
|
|
270
|
+
3. Convert remaining `@import` to `@use`/`@forward`
|
|
271
|
+
4. Remove old `style/` folder
|
|
272
|
+
5. Add Storybook integration for design tokens
|
|
273
|
+
6. Document CSS variable usage in component stories
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { OnInit, OnDestroy, QueryList,
|
|
2
|
+
import { OnInit, OnDestroy, QueryList, PipeTransform } from '@angular/core';
|
|
3
3
|
import { UntypedFormGroup } from '@angular/forms';
|
|
4
4
|
import { MatDatepicker } from '@angular/material/datepicker';
|
|
5
5
|
import { MatInput } from '@angular/material/input';
|
|
@@ -217,33 +217,20 @@ declare class StoSelectTextOnFocusDirective {
|
|
|
217
217
|
static ɵdir: i0.ɵɵDirectiveDeclaration<StoSelectTextOnFocusDirective, "[stoSelectTextOnFocus]", never, {}, {}, never, never, true, never>;
|
|
218
218
|
}
|
|
219
219
|
|
|
220
|
-
interface BreakpointConfig {
|
|
221
|
-
2: number;
|
|
222
|
-
4: number;
|
|
223
|
-
}
|
|
224
220
|
declare class StoGridSpacerDirective {
|
|
225
|
-
useClass: boolean;
|
|
226
221
|
static ɵfac: i0.ɵɵFactoryDeclaration<StoGridSpacerDirective, never>;
|
|
227
222
|
static ɵdir: i0.ɵɵDirectiveDeclaration<StoGridSpacerDirective, "[stoGridSpacer]", never, {}, {}, never, never, true, never>;
|
|
228
223
|
}
|
|
229
224
|
declare class StoGridColumnDirective {
|
|
230
|
-
|
|
231
|
-
stoGridColumnDouble: boolean;
|
|
225
|
+
readonly stoGridColumnDouble: i0.InputSignal<boolean>;
|
|
232
226
|
static ɵfac: i0.ɵɵFactoryDeclaration<StoGridColumnDirective, never>;
|
|
233
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<StoGridColumnDirective, "[stoGridColumn]", never, { "stoGridColumnDouble": { "alias": "stoGridColumnDouble"; "required": false; }; }, {}, never, never, true, never>;
|
|
227
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<StoGridColumnDirective, "[stoGridColumn]", never, { "stoGridColumnDouble": { "alias": "stoGridColumnDouble"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
234
228
|
}
|
|
235
|
-
declare class StoGridDirective
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
minWidth: number;
|
|
239
|
-
baseClass: boolean;
|
|
240
|
-
columns: QueryList<ElementRef<HTMLElement>>;
|
|
241
|
-
readonly breakpoints: i0.InputSignal<BreakpointConfig | undefined>;
|
|
242
|
-
private observer;
|
|
243
|
-
ngAfterViewInit(): void;
|
|
244
|
-
ngOnDestroy(): void;
|
|
229
|
+
declare class StoGridDirective {
|
|
230
|
+
readonly maxWidth: i0.InputSignal<number>;
|
|
231
|
+
readonly minWidth: i0.InputSignal<number>;
|
|
245
232
|
static ɵfac: i0.ɵɵFactoryDeclaration<StoGridDirective, never>;
|
|
246
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<StoGridDirective, "[stoGrid]", ["stoGrid"], { "maxWidth": { "alias": "maxWidth"; "required": false;
|
|
233
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<StoGridDirective, "[stoGrid]", ["stoGrid"], { "maxWidth": { "alias": "maxWidth"; "required": false; "isSignal": true; }; "minWidth": { "alias": "minWidth"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
247
234
|
}
|
|
248
235
|
|
|
249
236
|
declare class MenuOverlayDirective {
|
|
@@ -267,12 +254,6 @@ declare class ContextMenuDirective {
|
|
|
267
254
|
static ɵdir: i0.ɵɵDirectiveDeclaration<ContextMenuDirective, "[stoContextMenu]", never, { "menuTrigger": { "alias": "menuTrigger"; "required": true; "isSignal": true; }; "overlayDirective": { "alias": "overlayDirective"; "required": true; "isSignal": true; }; "menuContext": { "alias": "menuContext"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
268
255
|
}
|
|
269
256
|
|
|
270
|
-
declare class StoDirectivesModule {
|
|
271
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<StoDirectivesModule, never>;
|
|
272
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<StoDirectivesModule, never, [typeof QuickKeysDirective, typeof DateFormFieldClickDirective, typeof StoSelectTextOnFocusDirective, typeof StoGridDirective, typeof StoGridColumnDirective, typeof StoGridSpacerDirective, typeof MenuOverlayDirective, typeof ContextMenuDirective], [typeof QuickKeysDirective, typeof DateFormFieldClickDirective, typeof StoSelectTextOnFocusDirective, typeof StoGridDirective, typeof StoGridColumnDirective, typeof StoGridSpacerDirective, typeof MenuOverlayDirective, typeof ContextMenuDirective]>;
|
|
273
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<StoDirectivesModule>;
|
|
274
|
-
}
|
|
275
|
-
|
|
276
257
|
/**
|
|
277
258
|
* Pipe used to transform numbers to a currency format
|
|
278
259
|
*
|
|
@@ -353,10 +334,4 @@ declare class YesNoPipe implements PipeTransform {
|
|
|
353
334
|
static ɵpipe: i0.ɵɵPipeDeclaration<YesNoPipe, "yesNo", true>;
|
|
354
335
|
}
|
|
355
336
|
|
|
356
|
-
|
|
357
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<StoPipesModule, never>;
|
|
358
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<StoPipesModule, never, [typeof DateFormatPipe, typeof KeysPipe, typeof NumberFormatPipe, typeof CurrencyFormatPipe, typeof GetUnit, typeof ExcludeUnit, typeof YesNoPipe], [typeof DateFormatPipe, typeof KeysPipe, typeof NumberFormatPipe, typeof CurrencyFormatPipe, typeof GetUnit, typeof ExcludeUnit, typeof YesNoPipe]>;
|
|
359
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<StoPipesModule>;
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
export { ContextMenuDirective, CurrencyFormatPipe, DateFormFieldClickDirective, DateFormatPipe, ExcludeUnit, GetUnit, Key, KeysPipe, MenuOverlayDirective, NumberFormatPipe, QuickKeysDirective, StoDirectivesModule, StoGridColumnDirective, StoGridDirective, StoGridSpacerDirective, StoPipesModule, StoSelectTextOnFocusDirective, YesNoPipe };
|
|
337
|
+
export { ContextMenuDirective, CurrencyFormatPipe, DateFormFieldClickDirective, DateFormatPipe, ExcludeUnit, GetUnit, Key, KeysPipe, MenuOverlayDirective, NumberFormatPipe, QuickKeysDirective, StoGridColumnDirective, StoGridDirective, StoGridSpacerDirective, StoSelectTextOnFocusDirective, YesNoPipe };
|
package/style/_fonts.scss
DELETED
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
$row-height: 24px;
|
|
2
|
-
$icon-height: 16px;
|
|
3
|
-
|
|
4
|
-
.sto-compact .imo-overview,
|
|
5
|
-
.sto-compact .sto-drawer--compact {
|
|
6
|
-
//only in .imo-overview for now
|
|
7
|
-
|
|
8
|
-
.sto-datatable,
|
|
9
|
-
.sto-datatable.inside-card {
|
|
10
|
-
.datatable-body {
|
|
11
|
-
.progress-linear {
|
|
12
|
-
height: 3px;
|
|
13
|
-
margin: -3px 0 0 0;
|
|
14
|
-
|
|
15
|
-
.container {
|
|
16
|
-
height: 3px;
|
|
17
|
-
|
|
18
|
-
.bar {
|
|
19
|
-
height: 3px;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.datatable-body-row {
|
|
25
|
-
.datatable-body-cell {
|
|
26
|
-
padding: 2px 8px;
|
|
27
|
-
|
|
28
|
-
&.date-cell {
|
|
29
|
-
padding: 0px;
|
|
30
|
-
|
|
31
|
-
small {
|
|
32
|
-
display: none;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.datatable-body-cell-label {
|
|
37
|
-
.mat-icon-button {
|
|
38
|
-
margin-left: 0;
|
|
39
|
-
height: $row-height;
|
|
40
|
-
width: $row-height;
|
|
41
|
-
line-height: $row-height;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.datatable-header {
|
|
49
|
-
.datatable-header-cell {
|
|
50
|
-
padding: 4px 8px;
|
|
51
|
-
|
|
52
|
-
.column-group-header {
|
|
53
|
-
&-icon {
|
|
54
|
-
max-width: 8px;
|
|
55
|
-
margin-right: 8px;
|
|
56
|
-
flex-grow: 1;
|
|
57
|
-
|
|
58
|
-
.mat-icon {
|
|
59
|
-
height: 12px;
|
|
60
|
-
line-height: 12px;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
&.sto-datatable__header-column {
|
|
66
|
-
&--withunit {
|
|
67
|
-
.sto-datatable__header-column__unit {
|
|
68
|
-
margin-right: -3px; //Adjusment for weird whitepace
|
|
69
|
-
font-size: 10px;
|
|
70
|
-
position: static;
|
|
71
|
-
|
|
72
|
-
&::before {
|
|
73
|
-
content: '(';
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
&::after {
|
|
77
|
-
content: ')';
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.mat-icon {
|
|
86
|
-
height: $icon-height;
|
|
87
|
-
width: $icon-height;
|
|
88
|
-
font-size: $icon-height;
|
|
89
|
-
line-height: $icon-height;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
sto-datatable-fixed-row-wrapper {
|
|
94
|
-
margin-top: 8px;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.date-status-cell {
|
|
98
|
-
.month-label {
|
|
99
|
-
line-height: 20px;
|
|
100
|
-
position: absolute;
|
|
101
|
-
left: 2px;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
.sto-compact
|
|
107
|
-
.sto-datatable
|
|
108
|
-
.datatable-body
|
|
109
|
-
.datatable-body-cell-label
|
|
110
|
-
.date-status-cell {
|
|
111
|
-
line-height: 24px;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.sto-compact .sto-datatable {
|
|
115
|
-
.datatable-footer .datatable-footer-inner {
|
|
116
|
-
font-size: 11px;
|
|
117
|
-
line-height: 13px;
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.sto-compact
|
|
122
|
-
.imo-overview
|
|
123
|
-
.sto-datatable
|
|
124
|
-
.datatable-body
|
|
125
|
-
.datatable-body-row
|
|
126
|
-
.datatable-body-cell.sto-datatable__column--editable
|
|
127
|
-
.datatable-body-cell-label {
|
|
128
|
-
.mat-form-field-prefix {
|
|
129
|
-
height: 19px;
|
|
130
|
-
width: 19px;
|
|
131
|
-
|
|
132
|
-
button.mat-icon-button {
|
|
133
|
-
font-size: 18px;
|
|
134
|
-
height: 18px;
|
|
135
|
-
width: 18px;
|
|
136
|
-
line-height: 18px;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
.mat-icon {
|
|
140
|
-
font-size: 16px;
|
|
141
|
-
height: 16px;
|
|
142
|
-
width: 16px;
|
|
143
|
-
line-height: 16px;
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
}
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
.sto-datatable {
|
|
2
|
-
.sto-form__field {
|
|
3
|
-
// width: calc(100% - 4px);
|
|
4
|
-
min-height: auto;
|
|
5
|
-
--mat-form-field-container-vertical-padding: 7px;
|
|
6
|
-
&--readonly,
|
|
7
|
-
&--disabled {
|
|
8
|
-
.mat-mdc-form-field-flex {
|
|
9
|
-
border: 0;
|
|
10
|
-
color: var(--text-disabled);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
.mat-mdc-form-field-flex {
|
|
14
|
-
padding: 0 6px;
|
|
15
|
-
}
|
|
16
|
-
.mat-mdc-form-field-subscript-wrapper {
|
|
17
|
-
display: none;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
input[type='number'] {
|
|
21
|
-
text-align: right;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.mat-select {
|
|
25
|
-
.mat-select-arrow {
|
|
26
|
-
margin-top: -5px;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
&__column {
|
|
32
|
-
&--editable {
|
|
33
|
-
padding: 2px 0 !important;
|
|
34
|
-
|
|
35
|
-
.datatable-body-cell-label .mat-select {
|
|
36
|
-
height: 14px;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.datatable-body-cell-label .mat-icon-button {
|
|
40
|
-
margin: 0;
|
|
41
|
-
height: 16px;
|
|
42
|
-
width: 16px;
|
|
43
|
-
|
|
44
|
-
.mat-icon {
|
|
45
|
-
height: 1.125em;
|
|
46
|
-
width: 16px;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.mat-form-field-placeholder,
|
|
53
|
-
.mat-mdc-floating-label {
|
|
54
|
-
top: 0;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.mat-mdc-floating-label-wrapper {
|
|
58
|
-
top: 0;
|
|
59
|
-
padding: 0;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.sto-compact {
|
|
64
|
-
.sto-datatable {
|
|
65
|
-
.sto-form__field {
|
|
66
|
-
.mat-mdc-form-field-flex {
|
|
67
|
-
height: auto;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.mat-mdc-form-field-icon-suffix {
|
|
71
|
-
height: 22px;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
&.mat-form-field-type-mat-input {
|
|
75
|
-
.mat-form-field-underline {
|
|
76
|
-
bottom: 18px;
|
|
77
|
-
|
|
78
|
-
.mat-form-field-ripple {
|
|
79
|
-
height: 2px;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.datatable-body .datatable-body-cell-label {
|
|
86
|
-
line-height: inherit;
|
|
87
|
-
height: 100%;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
//colors: datatable
|
|
2
|
-
|
|
3
|
-
$datatable-font-size: $font-size;
|
|
4
|
-
$datatable-header-vertical-padding: $space-2x;
|
|
5
|
-
$datatable-header-horizontal-padding: $space-2x;
|
|
6
|
-
$datatable-header-font-size: 11px;
|
|
7
|
-
$datatable-vertical-padding: $space-2x;
|
|
8
|
-
$datatable-horizontal-padding: $space-2x;
|
|
9
|
-
|
|
10
|
-
$content-height: 20px;
|