@3ddv/software-division-components 1.0.0-alpha.3.9 → 1.0.0-alpha.4
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 +297 -51
- package/backoffice/table/directives/table.directive.d.ts +10 -0
- package/backoffice/table/directives/table.directive.d.ts.map +1 -0
- package/backoffice/table/table.component.d.ts +17 -5
- package/backoffice/table/table.component.d.ts.map +1 -1
- package/backoffice/table/types.d.ts.map +1 -1
- package/dvm/neighbours/index.d.ts +2 -0
- package/dvm/neighbours/index.d.ts.map +1 -0
- package/dvm/neighbours/neighbours.component.d.ts +124 -0
- package/dvm/neighbours/neighbours.component.d.ts.map +1 -0
- package/dvm/neighbours/public-api.d.ts +3 -0
- package/dvm/neighbours/public-api.d.ts.map +1 -0
- package/dvm/neighbours/styles/side-button.tokens.d.ts +16 -0
- package/dvm/neighbours/styles/side-button.tokens.d.ts.map +1 -0
- package/dvm/neighbours/types.d.ts +8 -0
- package/dvm/neighbours/types.d.ts.map +1 -0
- package/dvm/public-api.d.ts +1 -0
- package/dvm/public-api.d.ts.map +1 -1
- package/esm2022/backoffice/table/components/body-row/body-row.component.mjs +8 -26
- package/esm2022/backoffice/table/components/header-row/header-row.component.mjs +7 -56
- package/esm2022/backoffice/table/directives/table.directive.mjs +98 -0
- package/esm2022/backoffice/table/table.component.mjs +38 -103
- package/esm2022/backoffice/table/table.service.mjs +9 -9
- package/esm2022/backoffice/table/types.mjs +1 -1
- package/esm2022/dvm/cart/cart.component.mjs +7 -15
- package/esm2022/dvm/cart/cart.service.mjs +9 -9
- package/esm2022/dvm/cart-item/cart-item.component.mjs +7 -15
- package/esm2022/dvm/cart-item/cart-item.service.mjs +9 -9
- package/esm2022/dvm/legend/legend.component.mjs +7 -15
- package/esm2022/dvm/legend/legend.service.mjs +9 -9
- package/esm2022/dvm/loader/loader.component.mjs +7 -15
- package/esm2022/dvm/loader/loader.service.mjs +9 -9
- package/esm2022/dvm/neighbours/index.mjs +2 -0
- package/esm2022/dvm/neighbours/neighbours.component.mjs +181 -0
- package/esm2022/dvm/neighbours/public-api.mjs +2 -0
- package/esm2022/dvm/neighbours/styles/side-button.tokens.mjs +20 -0
- package/esm2022/dvm/neighbours/types.mjs +2 -0
- package/esm2022/dvm/popover/popover.component.mjs +7 -15
- package/esm2022/dvm/popover/popover.service.mjs +9 -9
- package/esm2022/dvm/public-api.mjs +2 -1
- package/esm2022/dvm/stepper/stepper.component.mjs +7 -15
- package/esm2022/dvm/stepper/stepper.service.mjs +9 -9
- package/esm2022/dvm/ticket-info-item/ticket-info-item.component.mjs +7 -15
- package/esm2022/dvm/ticket-info-item/ticket-info-item.service.mjs +9 -9
- package/esm2022/generic/button/button.component.mjs +15 -22
- package/esm2022/generic/button/types.mjs +5 -1
- package/esm2022/generic/drawer/drawer.component.mjs +7 -15
- package/esm2022/generic/drawer/drawer.service.mjs +9 -9
- package/esm2022/generic/modal/modal.component.mjs +7 -15
- package/esm2022/generic/modal/modal.service.mjs +9 -9
- package/esm2022/private-exports.mjs +2 -0
- package/esm2022/public-api.mjs +4 -3
- package/esm2022/shared/format-value.pipe.mjs +11 -11
- package/esm2022/shared/index.mjs +2 -0
- package/esm2022/shared/lib-provider/config-token.mjs +3 -0
- package/esm2022/shared/lib-provider/index.mjs +2 -0
- package/esm2022/shared/lib-provider/provide-sdc.mjs +36 -0
- package/esm2022/shared/lib-provider/public-api.mjs +2 -0
- package/esm2022/shared/public-api.mjs +5 -0
- package/esm2022/shared/theme-provider/generic-theme.mjs +10 -0
- package/esm2022/shared/theme-provider/index.mjs +2 -0
- package/esm2022/shared/theme-provider/public-api.mjs +3 -0
- package/esm2022/shared/theme-provider/theme-provider.directive.mjs +29 -0
- package/esm2022/shared/types.mjs +1 -1
- package/esm2022/utils/index.mjs +2 -0
- package/esm2022/utils/public-api.mjs +2 -0
- package/esm2022/utils/validate-styles-for-component.mjs +23 -5
- package/fesm2022/3ddv-software-division-components.mjs +604 -446
- package/fesm2022/3ddv-software-division-components.mjs.map +1 -1
- package/generic/button/button.component.d.ts +8 -7
- package/generic/button/button.component.d.ts.map +1 -1
- package/package.json +29 -4
- package/private-exports.d.ts +2 -0
- package/private-exports.d.ts.map +1 -0
- package/public-api.d.ts +1 -2
- package/public-api.d.ts.map +1 -1
- package/shared/index.d.ts +2 -0
- package/shared/index.d.ts.map +1 -0
- package/shared/lib-provider/config-token.d.ts +4 -0
- package/shared/lib-provider/config-token.d.ts.map +1 -0
- package/shared/lib-provider/index.d.ts +2 -0
- package/shared/lib-provider/index.d.ts.map +1 -0
- package/shared/lib-provider/provide-sdc.d.ts +11 -0
- package/shared/lib-provider/provide-sdc.d.ts.map +1 -0
- package/shared/lib-provider/public-api.d.ts +2 -0
- package/shared/lib-provider/public-api.d.ts.map +1 -0
- package/shared/public-api.d.ts +5 -0
- package/shared/public-api.d.ts.map +1 -0
- package/shared/theme-provider/generic-theme.d.ts +2 -0
- package/shared/theme-provider/generic-theme.d.ts.map +1 -0
- package/shared/theme-provider/index.d.ts +2 -0
- package/shared/theme-provider/index.d.ts.map +1 -0
- package/shared/theme-provider/public-api.d.ts +3 -0
- package/shared/theme-provider/public-api.d.ts.map +1 -0
- package/shared/{theme-provider.directive.d.ts → theme-provider/theme-provider.directive.d.ts} +1 -1
- package/shared/theme-provider/theme-provider.directive.d.ts.map +1 -0
- package/shared/types.d.ts +4 -0
- package/shared/types.d.ts.map +1 -1
- package/utils/index.d.ts +2 -0
- package/utils/index.d.ts.map +1 -0
- package/utils/public-api.d.ts +2 -0
- package/utils/public-api.d.ts.map +1 -0
- package/utils/validate-styles-for-component.d.ts +1 -1
- package/utils/validate-styles-for-component.d.ts.map +1 -1
- package/esm2022/shared/theme-provider.directive.mjs +0 -31
- package/esm2022/shared/theme.service.mjs +0 -6
- package/shared/theme-provider.directive.d.ts.map +0 -1
- package/shared/theme.service.d.ts +0 -9
- package/shared/theme.service.d.ts.map +0 -1
package/README.md
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
# Software Division Components
|
|
1
|
+
# **Software Division Components**
|
|
2
2
|
|
|
3
|
-
## Overview
|
|
3
|
+
## **Overview**
|
|
4
4
|
|
|
5
5
|

|
|
6
6
|

|
|
7
7
|

|
|
8
8
|
|
|
9
|
-
The Software Division Components library is a wrapper around the [PrimeNG](https://v18.primeng.org/installation) component library
|
|
9
|
+
The Software Division Components library is a wrapper around the [PrimeNG](https://v18.primeng.org/installation) component library. It enhances PrimeNG components by providing additional functionality tailored to the common requirements of applications developed within the Software Division department. It also uses [Angular](https://v18.angular.dev/) for application development and [Storybook](https://storybook.js.org/) for interactive component documentation and testing.
|
|
10
10
|
|
|
11
|
-
## Installation
|
|
11
|
+
## **Installation**
|
|
12
12
|
|
|
13
13
|
To install the library, use npm:
|
|
14
14
|
|
|
@@ -16,88 +16,216 @@ To install the library, use npm:
|
|
|
16
16
|
npm install @3ddv/software-division-components
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
-
##
|
|
19
|
+
## **Reporting issues**
|
|
20
|
+
|
|
21
|
+
> **Note: This is a temporary workflow for reporting issues. As the usage of the library increases, we will reassess and scale the issue reporting system accordingly.**
|
|
22
|
+
|
|
23
|
+
To report an issue, please visit [the following ticket](https://mmcbcn.atlassian.net/browse/TICKETING-598) and create a **Bug** ticket. Ensure that your report includes a clear and detailed description of the issue you are encountering..
|
|
24
|
+
|
|
25
|
+
## **Project summary**
|
|
26
|
+
|
|
27
|
+
The source folder of this project contains multiple subfolders. Below are the most important ones:
|
|
28
|
+
|
|
29
|
+
- **Backoffice**
|
|
30
|
+
This folder contains components that are **exclusive to the backoffice setting**, such as tables or sidebars. These components do **not** receive any styling from the theme class passed on initialization (be it `generic` or `backoffice`).
|
|
31
|
+
|
|
32
|
+
Some components from the Generic folder can also be used in the backoffice, but in such cases, the backoffice theme must be passed to the library provider. This ensures that no additional styles are applied, keeping the default PrimeNG design intact.
|
|
33
|
+
|
|
34
|
+
- **DVM**
|
|
35
|
+
This folder includes components specific to applications that use **DVM**. Many of these components share both style and functionality, and this module is designed to **maximize reusability**. Examples include the **section navigator buttons** and the **minimap**.
|
|
36
|
+
|
|
37
|
+
- **Generic**
|
|
38
|
+
This folder contains components which can be used in **any** setting. The appearance of these components relies heavily on the parameter that is passed to the library provider (generic or backoffice).
|
|
39
|
+
|
|
40
|
+
- **Shared**
|
|
41
|
+
This folder contains **initialization methods, directives and shared utilities, which are exposed to the library API**, like methods to aid with the usage of the library or debugging of the library.
|
|
42
|
+
|
|
43
|
+
- **Utils**
|
|
44
|
+
This folder contains **internal tools** which can also be shared across the library, but this is more directed to functions used by the developer to **streamline processes and reuse common logic**.
|
|
45
|
+
|
|
46
|
+
## **Common library errors**
|
|
47
|
+
|
|
48
|
+
**❌ Error: `Invalid CSS class string found on ...`**
|
|
49
|
+
|
|
50
|
+
This indicates that the `stylesClasses` input that you provided to the component does not have a valid format.
|
|
51
|
+
|
|
52
|
+
**✅ Solution:**
|
|
53
|
+
Ensure that the value assigned to `styleClasses` follows the correct format as documented in the respective component's guidelines.
|
|
54
|
+
|
|
55
|
+
If the issue persists, refer to the documentation or check for any unintended modifications in the `styleClasses` input.
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
> Any future errors will be documented here
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
## **How to use the library from the consuming application**
|
|
20
64
|
|
|
21
65
|
### Theming and styling
|
|
22
66
|
|
|
23
|
-
This library is a wrapper to an already existing component library,
|
|
67
|
+
This library is a wrapper to an already existing component library (PrimeNG), which means that there are some styles that are already present in all the exported components. These styles are kept intact whenever the `backoffice` theme parameter is passed to the `provideSdc` method. You also have the option of passing the `generic` parameter, which in turn makes the component align to the design that several ticketing applications share. If no parameter is passed, the `generic` is assigned as a fallback option. You can check that design [here](https://xd.adobe.com/view/0ea7033e-8fdf-4fcd-8215-546d1df20d37-5bf4/), [here](https://xd.adobe.com/view/c640d5a1-b5d3-4379-8684-fb860f95f052-9313/grid) and [here](https://xd.adobe.com/view/50a2d5c5-e2e1-413f-b7a5-8f3d61c88026-05f1/screen/65dee679-9942-4a63-b790-40e3b1fec39b/).
|
|
24
68
|
|
|
25
|
-
Styling components
|
|
69
|
+
Styling components consist of passing down CSS classes that consist of PrimeNG variables. Go by as if you were styling a common HTML element. Every component has a `styleClasses` input which accepts a single or several whitespace-separated CSS class/classes declared within the using application. To see the variables that each component has, please check the official PrimeNG documentation per each component. Here you can see an example for the (button component)[https://primeng.org/button]. The column _Variable_ includes every single class that you can use within the your CSS classes which you will later pass into the library button to style it. The result looks as follows:
|
|
26
70
|
|
|
27
71
|
```css
|
|
28
72
|
.my-class {
|
|
29
|
-
background
|
|
73
|
+
--p-button-primary-background: red;
|
|
30
74
|
}
|
|
31
75
|
```
|
|
32
76
|
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
77
|
+
```html
|
|
78
|
+
<sdc-button styleClasses="my-class"></sdc-button>
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
#### Specifity issues
|
|
82
|
+
|
|
83
|
+
If you are facing any specifity problems, each component also has an ID reference so you can later add them on your styles composition, giving advantage to the specifity algorithm to prioritize your styles:
|
|
37
84
|
|
|
85
|
+
```css
|
|
86
|
+
#sdc-button.my-class {
|
|
87
|
+
--p-button-primary-background: red;
|
|
88
|
+
}
|
|
38
89
|
```
|
|
39
90
|
|
|
40
|
-
|
|
91
|
+
#### Encapsulation issues
|
|
41
92
|
|
|
42
|
-
|
|
93
|
+
Most of the time you will be declaring your styles with a CSS file declared within the component scope (my-component.component.css) and later import it with _styleUrl_ or _stylesUrl_ in your component. In that scenario, you will be dealing with the default (component View Encapsulation)[https://angular.dev/guide/components/styling] setting, which does not allow a parent component to apply styles to the child component. This brings a problem when it comes to passing down CSS classes to the library components. Following similar practices from other component librareis, we bring the option to bypass View Encapsulation for a certain CSS class by declaring your classes with a pseudo-class selector:
|
|
43
94
|
|
|
44
|
-
|
|
95
|
+
Depending on the Encapsulation option that you are using in your component, some styles will not apply. In that scenario, declare the style as follows:
|
|
45
96
|
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
|
|
97
|
+
```css
|
|
98
|
+
::ng-deep.my-class {
|
|
99
|
+
--p-button-primary-background: red;
|
|
100
|
+
}
|
|
101
|
+
```
|
|
49
102
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
103
|
+
You also have the option with SCSS to nest:
|
|
104
|
+
|
|
105
|
+
```css
|
|
106
|
+
::ng-deep {
|
|
107
|
+
&.my-class-1 {
|
|
108
|
+
--p-button-primary-background: red;
|
|
109
|
+
}
|
|
110
|
+
&.my-class-2 {
|
|
111
|
+
--p-button-primary-background: green;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
&.my-class-3 {
|
|
115
|
+
--p-button-primary-background: blue;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
54
118
|
```
|
|
55
119
|
|
|
56
|
-
|
|
120
|
+
Or declare the style in your root stylesheet to avoid any view encapsulation to affect your custom styles. (not recommended)
|
|
57
121
|
|
|
58
|
-
|
|
59
|
-
|
|
122
|
+
#### Several styleClasses inputs
|
|
123
|
+
|
|
124
|
+
Some components are composed of several underlying components, so a single `styleClass` input will not be enough. For those scenarios, some components require the `styleClasses` paramater to be composed of an object, with each key targetting different parts of the component:
|
|
125
|
+
|
|
126
|
+
```html
|
|
127
|
+
<sdc-neighbours
|
|
128
|
+
[currentSection]="..."
|
|
129
|
+
[sectionsMmcToTdc]="..."
|
|
130
|
+
[neigboursData]="..."
|
|
131
|
+
[styleClasses]=`{
|
|
132
|
+
sideButtonsClass: 'mock-side-button',
|
|
133
|
+
middleDivClass: 'mock-middle-div'
|
|
134
|
+
}`
|
|
135
|
+
></sdc-neighbours>
|
|
60
136
|
```
|
|
61
137
|
|
|
62
|
-
|
|
138
|
+
With this method, we are able to apply certain styles for the buttons on the sides ( with `sideButtonsClass`) and a different one for the `div` on the middle of the component template (with `middleDivClass`).
|
|
63
139
|
|
|
64
|
-
|
|
65
|
-
|
|
140
|
+
Styles will pierce through the PrimeNG layer and directly style the underlying HTML element. If you are facing any problem styling any component, please check the [official PrimeNG documentation on theming](https://v18.primeng.org/theming) or the individual webpage for styling each component [as in this example for the button component](https://v18.primeng.org/button).
|
|
141
|
+
|
|
142
|
+
### What if I'm using Tailwind in my application?
|
|
143
|
+
|
|
144
|
+
Tailwind does reset most of the styles that any other third party app is applying, so PrimeNG styles will be overriden. In that scenario, the component library exposes several layers to scope this overriding as much as posible. If you are using Tailwind, declare the Tailwind reset as follows in your root stylesheet:
|
|
145
|
+
|
|
146
|
+
```css
|
|
147
|
+
@layer tailwind-base {
|
|
148
|
+
@tailwind base;
|
|
149
|
+
@tailwind components;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
@tailwind utilities;
|
|
66
153
|
```
|
|
67
154
|
|
|
68
|
-
|
|
155
|
+
TODO: DOCUMENT TAILWIND OPTION
|
|
69
156
|
|
|
70
|
-
|
|
157
|
+
### Passing inputs to components that have a lot of props
|
|
71
158
|
|
|
72
|
-
|
|
159
|
+
Besides all the documented inputs that components have, some components also have the option to pass all components in an object to end up with a more concise template markup, instead of using individual bindings.
|
|
73
160
|
|
|
74
|
-
|
|
161
|
+
> The components that provide this functionality are usually the ones that have a more direct representation within PrimeNG, as this is intended to solve the polution that the library creates due to it having so many inputs. An example would be the **ButtonComponent**.
|
|
75
162
|
|
|
76
|
-
This
|
|
163
|
+
This is the old markup:
|
|
77
164
|
|
|
78
|
-
|
|
79
|
-
|
|
165
|
+
```html
|
|
166
|
+
<sdc-button
|
|
167
|
+
type="button"
|
|
168
|
+
label="Hover to trigger"
|
|
169
|
+
ariaLabel="Hover to trigger"
|
|
170
|
+
tooltip="You triggered the tooltip"
|
|
171
|
+
tooltipPos="right"
|
|
172
|
+
severity="primary"
|
|
173
|
+
styleClasses="tooltip-padding" />
|
|
174
|
+
```
|
|
80
175
|
|
|
81
|
-
|
|
82
|
-
This folder contains components that are exclusive to an application that uses DVM. There are a lot of components that are common both in style and functionality, and this module aims to reuse those as much as posible. Some examples of these components are the section navigator buttons or the minimap.
|
|
176
|
+
And this is the example with the configuration object:
|
|
83
177
|
|
|
84
|
-
|
|
85
|
-
|
|
178
|
+
```ts
|
|
179
|
+
import { ButtonProps } from '@3ddv/software-division-components';
|
|
86
180
|
|
|
87
|
-
|
|
88
|
-
|
|
181
|
+
class MyComponent {
|
|
182
|
+
// You can of course declare, this where it better suits your use case
|
|
183
|
+
protected props = {
|
|
184
|
+
type: 'button',
|
|
185
|
+
label: 'Hover to trigger',
|
|
186
|
+
ariaLabel: 'Hover to trigger',
|
|
187
|
+
severity: 'primary',
|
|
188
|
+
tooltip: 'You triggered the tooltip',
|
|
189
|
+
tooltipPos: 'right',
|
|
190
|
+
styleClasses: 'tooltip-padding',
|
|
191
|
+
} satisfies ButtonProps;
|
|
192
|
+
}
|
|
193
|
+
```
|
|
89
194
|
|
|
90
|
-
|
|
91
|
-
|
|
195
|
+
And the resulting HTML:
|
|
196
|
+
|
|
197
|
+
```html
|
|
198
|
+
<sdc-button [props]="{props}" />
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
### Importing the library
|
|
202
|
+
|
|
203
|
+
#### Providing the library to the application
|
|
204
|
+
|
|
205
|
+
```ts
|
|
206
|
+
import { ApplicationConfig } from '@angular/core';
|
|
207
|
+
import { provideSdc } from '@3ddv/software-division-components';
|
|
208
|
+
|
|
209
|
+
export const appConfig: ApplicationConfig = {
|
|
210
|
+
// this provides the consuming app with all necessary modules
|
|
211
|
+
// to make it work
|
|
212
|
+
providers: [provideSdc({ theme: 'generic' })],
|
|
213
|
+
};
|
|
214
|
+
```
|
|
92
215
|
|
|
93
|
-
|
|
216
|
+
#### Import from main entry
|
|
94
217
|
|
|
95
|
-
|
|
218
|
+
```ts
|
|
219
|
+
import { TableComponent, ButtonComponent } from '@3ddv/software-division-components';
|
|
220
|
+
```
|
|
96
221
|
|
|
97
|
-
|
|
98
|
-
to adhere to a valid format documented in the component.
|
|
222
|
+
#### Import from secondary entry
|
|
99
223
|
|
|
100
|
-
|
|
224
|
+
```ts
|
|
225
|
+
import { ButtonComponent } from '@3ddv/software-division-components/generic/button';
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
## **How to collaborate to the library as a developer**
|
|
101
229
|
|
|
102
230
|
### Semantic versioning
|
|
103
231
|
|
|
@@ -136,8 +264,6 @@ If the commit message does not adhere to the Conventional Commits format, Commit
|
|
|
136
264
|
|
|
137
265
|
- Rinse and repeat.
|
|
138
266
|
|
|
139
|
-
## **How to document your changes**
|
|
140
|
-
|
|
141
267
|
### Documenting component files
|
|
142
268
|
|
|
143
269
|
When documenting your code changes, we use JSDoc to ensure that all JavaScript functions and components are described comprehensively. This helps maintain clarity and understandability throughout the codebase.
|
|
@@ -177,12 +303,132 @@ export class ButtonComponent extends Button {
|
|
|
177
303
|
*/
|
|
178
304
|
public handleClick(event: MouseEvent): void {
|
|
179
305
|
// Implementation should document any steps that cannot be easily explained
|
|
180
|
-
// with variable names. Another scenario
|
|
306
|
+
// with variable names. Another scenario on why you would add comments includes documenting why things
|
|
181
307
|
// are done the way they are done (there might be some framework or language limitation).
|
|
182
308
|
}
|
|
183
309
|
}
|
|
184
310
|
```
|
|
185
311
|
|
|
312
|
+
### Internally overriding PrimeNG styles with component scope
|
|
313
|
+
|
|
314
|
+
> First of all, we would like to clarify that this is a different feature from the previously mentioned `styleClasses` feature. Style classes are thought of as a styling interface for the users of the library. This feature is to be used for developers working on component development and wanting to override any styles of PrimeNG components, so custom components adhere to the styling required.
|
|
315
|
+
|
|
316
|
+
In some cases, specially if we are developing a component placed within the `generic` scope, we will need to override any required native styles from PrimeNG to be able to adhere to the design provided by our design team.
|
|
317
|
+
|
|
318
|
+
PrimeNG provides us with a tool called [Design Tokens](https://v18.primeng.org/theming), which consists of a CSS-in-JS solution that composes a nested object which targets several styles of each component. Here is an example corresponding to the Neighbours component:
|
|
319
|
+
|
|
320
|
+
```ts
|
|
321
|
+
// Import types from PrimeNG module
|
|
322
|
+
import { ButtonDesignTokens } from '@primeng/themes/types/button';
|
|
323
|
+
|
|
324
|
+
// Create an export an object which will later by used in neighbours.components.ts
|
|
325
|
+
export const sideButtonTokens = {
|
|
326
|
+
root: {
|
|
327
|
+
primary: {
|
|
328
|
+
// Overwrite the theme variables with PrimeNG existing variables
|
|
329
|
+
// Button text
|
|
330
|
+
color: '',
|
|
331
|
+
borderColor: '{zinc.50}',
|
|
332
|
+
hoverColor: '',
|
|
333
|
+
activeColor: '',
|
|
334
|
+
// Button background
|
|
335
|
+
background: '{zinc.50}',
|
|
336
|
+
hoverBackground: '{zinc.50}',
|
|
337
|
+
activeBackground: '{zinc.50}',
|
|
338
|
+
// Button border
|
|
339
|
+
activeBorderColor: '{zinc.50}',
|
|
340
|
+
hoverBorderColor: '{zinc.50}',
|
|
341
|
+
},
|
|
342
|
+
},
|
|
343
|
+
} satisfies ButtonDesignTokens;
|
|
344
|
+
```
|
|
345
|
+
|
|
346
|
+
And we pass in the styles within the component template
|
|
347
|
+
|
|
348
|
+
```ts
|
|
349
|
+
import { sideButtonTokens } from './styles/side-button.tokens';
|
|
350
|
+
....
|
|
351
|
+
export class NeighboursComponent {
|
|
352
|
+
...
|
|
353
|
+
protected readonly sideButtonStyle = sideButtonTokens;
|
|
354
|
+
...
|
|
355
|
+
}
|
|
356
|
+
```
|
|
357
|
+
|
|
358
|
+
Template example:
|
|
359
|
+
|
|
360
|
+
```html
|
|
361
|
+
<!-- [dt] is a default input which is present in all components to declare PrimeNG design tokens -->
|
|
362
|
+
<sdc-button [dt]="sideButtonStyle" />
|
|
363
|
+
```
|
|
364
|
+
|
|
365
|
+
This way, we accomplished adhering to the styling that this component needed, which brings this result:
|
|
366
|
+
|
|
367
|
+
<div style="display: flex; align-items: center; gap: 20px;">
|
|
368
|
+
<div style="text-align: center;">
|
|
369
|
+
<p>Before Styling</p>
|
|
370
|
+
<img src="./projects/software-division-components/public/neighbours-before.png" alt="Before styling neighbours." width="300">
|
|
371
|
+
</div>
|
|
372
|
+
<div style="text-align: center;">
|
|
373
|
+
<p>After Styling</p>
|
|
374
|
+
<img src="./projects/software-division-components/public/neighbours-after.png" alt="After styling neighbours." width="300">
|
|
375
|
+
</div>
|
|
376
|
+
</div>
|
|
377
|
+
|
|
378
|
+
### Styling native HTML elements
|
|
379
|
+
|
|
380
|
+
For styling native HTML elements in our project, we adhere to the **Block-Element-Modifier (BEM)** methodology. This ensures that our styles remain modular, maintainable, and predictable.
|
|
381
|
+
|
|
382
|
+
#### Guidelines for Using BEM
|
|
383
|
+
|
|
384
|
+
- **Use BEM for anything that is not a design token.**
|
|
385
|
+
|
|
386
|
+
- Design tokens (e.g., colors, typography, spacing) should be handled via variables, custom properties, or a design system, not through BEM class names.
|
|
387
|
+
|
|
388
|
+
- **Use design tokens for everything that involves styling a native PrimeNG component.**
|
|
389
|
+
|
|
390
|
+
- PrimeNG components already use design tokens, so we must align with them instead of defining custom BEM classes.
|
|
391
|
+
|
|
392
|
+
- **Native HTML elements must always be styled using BEM classes.**
|
|
393
|
+
- Avoid styling elements directly by tag selectors (e.g., button {} or input {}), as this can lead to specificity conflicts and unintended side effects.
|
|
394
|
+
- **Structure your class names properly:**
|
|
395
|
+
- Use meaningful blocks that represent standalone components.
|
|
396
|
+
- Define elements as child parts of blocks.
|
|
397
|
+
- Use modifiers to indicate variations in style or behavior.
|
|
398
|
+
|
|
399
|
+
By following this approach, we ensure that:
|
|
400
|
+
|
|
401
|
+
- Styles are reusable and scoped properly.
|
|
402
|
+
- We avoid unnecessary global overrides.
|
|
403
|
+
- We maintain consistency across the project.
|
|
404
|
+
- PrimeNG components remain compatible with design tokens.
|
|
405
|
+
|
|
406
|
+
Any further information regarding the BEM methodology can be found through the following links:
|
|
407
|
+
|
|
408
|
+
- https://css-tricks.com/bem-101/
|
|
409
|
+
- https://getbem.com/introduction/
|
|
410
|
+
- https://stackoverflow.com/questions/36703546/what-is-bem-methodology
|
|
411
|
+
- https://gauravmahlawat.github.io/online-bem-generator.html#google_vignette
|
|
412
|
+
|
|
413
|
+
#### Why are we not internally using Tailwind or SCSS?
|
|
414
|
+
|
|
415
|
+
###### Why no Tailwind?
|
|
416
|
+
|
|
417
|
+
We are not internally using Tailwind because this project has the intention of having a long lifespan, we do not want to introduce an extra dependency that could cause compatibility issues with PrimeNG, Angular, and Storybook.
|
|
418
|
+
Since our project already relies on component libraries that define their own styles and classes, Tailwind’s utility-based approach could lead to conflicts and unnecessary complexity. For all we know, Tailwind is more likely to not be that popular in the near future than native CSS :).
|
|
419
|
+
|
|
420
|
+
However, we have included in the roadmap the ability to pass Tailwind classes within the `styleClasses` prop, present in most components so you can use Tailwind from your consuming application.
|
|
421
|
+
|
|
422
|
+
###### Why no SCSS?
|
|
423
|
+
|
|
424
|
+
We are not using SCSS because modern CSS now provides most of SCSS’s features natively.
|
|
425
|
+
With CSS evolving rapidly (e.g., CSS variables, nesting, container queries, @layer, @scope, and :has()), there is little need for a preprocessor like SCSS.
|
|
426
|
+
Additionally, relying on native CSS ensures:
|
|
427
|
+
|
|
428
|
+
- Better browser compatibility.
|
|
429
|
+
- No build-step dependencies.
|
|
430
|
+
- Future-proof styling that aligns with upcoming CSS standards.
|
|
431
|
+
|
|
186
432
|
### Properly exporting a newly added component
|
|
187
433
|
|
|
188
434
|
Whenever a newly added component is added, do not forget to add a secondary entrypoint to be able to uniquely import that component in the consuming app:
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Table } from 'primeng/table';
|
|
2
|
+
import { TableComponent } from '../table.component';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class TableDirective {
|
|
5
|
+
private primeTable;
|
|
6
|
+
constructor(primeTable: Table, sdcTable: TableComponent);
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableDirective, [null, { optional: true; host: true; }]>;
|
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TableDirective, "p-table", never, {}, {}, never, never, true, never>;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=table.directive.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table.directive.d.ts","sourceRoot":"","sources":["../../../../projects/software-division-components/src/backoffice/table/directives/table.directive.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;;AAEpD,qBAIa,cAAc;IAEvB,OAAO,CAAC,UAAU;gBAAV,UAAU,EAAE,KAAK,EACL,QAAQ,EAAE,cAAc;yCAHnC,cAAc;2CAAd,cAAc;CAgF1B"}
|
|
@@ -1,25 +1,37 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
1
|
+
import { OnInit, TemplateRef } from '@angular/core';
|
|
2
2
|
import { MenuItem } from 'primeng/api';
|
|
3
3
|
import { Table } from 'primeng/table';
|
|
4
4
|
import { ObjectColumnData } from './types';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* A customizable table component built on PrimeNG's Table.
|
|
8
|
+
*
|
|
9
|
+
* This component extends the PrimeNG Table by introducing additional configurations and styling
|
|
10
|
+
* capabilities. It supports defining column data, enabling sorting, exporting data, and integrating
|
|
11
|
+
* context menu options for enhanced user interactions. Additionally, the component allows for dynamic
|
|
12
|
+
* styling through custom CSS classes and leverages Angular's standalone component pattern with OnPush
|
|
13
|
+
* change detection for performance optimization.
|
|
14
|
+
*
|
|
15
|
+
* @since 1.0.0-alpha.2
|
|
16
|
+
* @updated 1.0.0-alpha.2
|
|
17
|
+
*/
|
|
7
18
|
export declare class TableComponent extends Table implements OnInit {
|
|
8
|
-
|
|
19
|
+
props: import("@angular/core").InputSignal<typeof Table | undefined>;
|
|
9
20
|
/**
|
|
10
21
|
* Single string or whitespace-separated string of additional style classes for the button.
|
|
11
22
|
* Only accepts valid whitespace-separated class names.
|
|
12
23
|
*/
|
|
13
|
-
styleClasses: import("@angular/core").InputSignalWithTransform<string, string
|
|
24
|
+
styleClasses: import("@angular/core").InputSignalWithTransform<string | Record<string, string>, string | Record<string, string>>;
|
|
14
25
|
columnData: import("@angular/core").InputSignal<ObjectColumnData[]>;
|
|
15
26
|
sortable: import("@angular/core").InputSignal<boolean | undefined>;
|
|
16
27
|
export: import("@angular/core").InputSignal<boolean | undefined>;
|
|
17
28
|
exportButtonLabel: import("@angular/core").InputSignal<string>;
|
|
18
29
|
contextMenuOptions: import("@angular/core").InputSignal<MenuItem[] | undefined>;
|
|
19
30
|
projectedElementIdArray: import("@angular/core").InputSignal<string[] | undefined>;
|
|
31
|
+
customRowTemplate?: TemplateRef<any>;
|
|
20
32
|
protected selectedRow: (typeof this.value)[number];
|
|
21
33
|
protected cb(event: any): void;
|
|
22
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent, never>;
|
|
23
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent, "sdc-table", never, { "styleClasses": { "alias": "styleClasses"; "required": false; "isSignal": true; }; "columnData": { "alias": "columnData"; "required": true; "isSignal": true; }; "sortable": { "alias": "sortable"; "required": false; "isSignal": true; }; "export": { "alias": "export"; "required": false; "isSignal": true; }; "exportButtonLabel": { "alias": "exportButtonLabel"; "required": false; "isSignal": true; }; "contextMenuOptions": { "alias": "contextMenuOptions"; "required": false; "isSignal": true; }; "projectedElementIdArray": { "alias": "projectedElementIdArray"; "required": false; "isSignal": true; }; }, {},
|
|
35
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent, "sdc-table", never, { "props": { "alias": "props"; "required": false; "isSignal": true; }; "styleClasses": { "alias": "styleClasses"; "required": false; "isSignal": true; }; "columnData": { "alias": "columnData"; "required": true; "isSignal": true; }; "sortable": { "alias": "sortable"; "required": false; "isSignal": true; }; "export": { "alias": "export"; "required": false; "isSignal": true; }; "exportButtonLabel": { "alias": "exportButtonLabel"; "required": false; "isSignal": true; }; "contextMenuOptions": { "alias": "contextMenuOptions"; "required": false; "isSignal": true; }; "projectedElementIdArray": { "alias": "projectedElementIdArray"; "required": false; "isSignal": true; }; }, {}, ["customRowTemplate"], never, true, never>;
|
|
24
36
|
}
|
|
25
37
|
//# sourceMappingURL=table.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.component.d.ts","sourceRoot":"","sources":["../../../projects/software-division-components/src/backoffice/table/table.component.ts"],"names":[],"mappings":"AACA,OAAO,EAA6C,MAAM,
|
|
1
|
+
{"version":3,"file":"table.component.d.ts","sourceRoot":"","sources":["../../../projects/software-division-components/src/backoffice/table/table.component.ts"],"names":[],"mappings":"AACA,OAAO,EAA6C,MAAM,EAAE,WAAW,EAA2B,MAAM,eAAe,CAAC;AACxH,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAIvC,OAAO,EAAE,KAAK,EAA6B,MAAM,eAAe,CAAC;AAKjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;;AAE3C;;;;;;;;;;;GAWG;AACH,qBAkBa,cAAe,SAAQ,KAAM,YAAW,MAAM;IAClD,KAAK,gEAAyB;IACrC;;;OAGG;IACI,YAAY,qHAA+E;IAC3F,UAAU,0DAAwC;IAClD,QAAQ,2DAAoB;IAC5B,MAAM,2DAAoB;IAC1B,iBAAiB,8CAA2B;IAC5C,kBAAkB,8DAAuB;IACzC,uBAAuB,4DAAqB;IAEhB,iBAAiB,CAAC,EAAE,WAAW,CAAC,GAAG,CAAC,CAAC;IAExE,SAAS,CAAC,WAAW,EAAE,CAAC,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC;IAEnD,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG;yCAlBZ,cAAc;2CAAd,cAAc;CAmB1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../projects/software-division-components/src/backoffice/table/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../projects/software-division-components/src/backoffice/table/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAE7C,MAAM,MAAM,eAAe,GAAG,UAAU,GAAG,YAAY,GAAG,MAAM,CAAC;AAEjE,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,OAAO,GAAG,QAAQ,CAAC;AAErD,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,QAAQ,GAAG,UAAU,CAAC;AACxD,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,UAAU,CAAC;IAEjB,IAAI,EAAE,GAAG,EAAE,CAAC;CACb;AACD,MAAM,WAAW,mBAAmB;IAClC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,WAAW,CAAC;CACrB;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,mBAAmB,CAAC;CAC/B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../projects/software-division-components/src/dvm/neighbours/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { DirectionObjectKeys, NeighboursStyleClasses } from './types';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Component used to navigate between neighbouring sections.
|
|
5
|
+
*
|
|
6
|
+
* It determines the next and previous available sections based on predefined mappings
|
|
7
|
+
* and emits navigation events when users attempt to move between them.
|
|
8
|
+
*
|
|
9
|
+
* @since 1.0.0-alpha.2
|
|
10
|
+
* @updated 1.0.0-alpha.2
|
|
11
|
+
*/
|
|
12
|
+
export declare class NeighboursComponent {
|
|
13
|
+
/**
|
|
14
|
+
* Predefined styles for the side button.
|
|
15
|
+
*/
|
|
16
|
+
protected readonly sideButtonStyle: {
|
|
17
|
+
root: {
|
|
18
|
+
primary: {
|
|
19
|
+
color: string;
|
|
20
|
+
borderColor: string;
|
|
21
|
+
hoverColor: string;
|
|
22
|
+
activeColor: string;
|
|
23
|
+
background: string;
|
|
24
|
+
hoverBackground: string;
|
|
25
|
+
activeBackground: string;
|
|
26
|
+
activeBorderColor: string;
|
|
27
|
+
hoverBorderColor: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* The current section identifier.
|
|
33
|
+
*/
|
|
34
|
+
currentSection: import("@angular/core").InputSignal<string>;
|
|
35
|
+
/**
|
|
36
|
+
* Mapping of MMC section IDs to TDC section IDs.
|
|
37
|
+
*/
|
|
38
|
+
sectionsMmcToTdc: import("@angular/core").InputSignal<Record<string, string>>;
|
|
39
|
+
/**
|
|
40
|
+
* Mapping of TDC section IDs to MMC section IDs.
|
|
41
|
+
*/
|
|
42
|
+
sectionsTdcToMmc: import("@angular/core").InputSignal<Record<string, string>>;
|
|
43
|
+
/**
|
|
44
|
+
* Data structure defining neighboring relationships between sections.
|
|
45
|
+
*/
|
|
46
|
+
neigboursData: import("@angular/core").InputSignal<Record<string, Record<DirectionObjectKeys, string>>>;
|
|
47
|
+
/**
|
|
48
|
+
* Icon for the next navigation button.
|
|
49
|
+
*/
|
|
50
|
+
nextIcon: import("@angular/core").InputSignal<string>;
|
|
51
|
+
/**
|
|
52
|
+
* Icon for the previous navigation button.
|
|
53
|
+
*/
|
|
54
|
+
previousIcon: import("@angular/core").InputSignal<string>;
|
|
55
|
+
/**
|
|
56
|
+
* Flag indicating whether navigation is restricted to available sections only.
|
|
57
|
+
* This requires the sectionsAvailability input to be passed, otherwise the initialization of
|
|
58
|
+
* the component will fail.
|
|
59
|
+
*/
|
|
60
|
+
onlyNavigateToAvailable: import("@angular/core").InputSignal<boolean | undefined>;
|
|
61
|
+
/**
|
|
62
|
+
* Object defining the availability of sections. Required if you are wanting to allow navigation
|
|
63
|
+
* to available sections only.
|
|
64
|
+
*/
|
|
65
|
+
sectionsAvailability: import("@angular/core").InputSignal<Record<string, any>>;
|
|
66
|
+
/**
|
|
67
|
+
* Custom styling classes for the component.
|
|
68
|
+
*/
|
|
69
|
+
styleClasses: import("@angular/core").InputSignalWithTransform<NeighboursStyleClasses, NeighboursStyleClasses>;
|
|
70
|
+
/**
|
|
71
|
+
* Event emitter for section navigation.
|
|
72
|
+
*/
|
|
73
|
+
sectionToNavigate: import("@angular/core").OutputEmitterRef<string>;
|
|
74
|
+
/**
|
|
75
|
+
* The ID of the previous available section.
|
|
76
|
+
*/
|
|
77
|
+
protected previousAvailableSectionId: import("@angular/core").WritableSignal<string | null>;
|
|
78
|
+
/**
|
|
79
|
+
* The ID of the next available section.
|
|
80
|
+
*/
|
|
81
|
+
protected nextAvailableSectionId: import("@angular/core").WritableSignal<string | null>;
|
|
82
|
+
/**
|
|
83
|
+
* Constant representing the absence of a neighboring section.
|
|
84
|
+
*/
|
|
85
|
+
private NO_NEIGHBOUR_VALUE;
|
|
86
|
+
/**
|
|
87
|
+
* Key mappings for neighboring sections.
|
|
88
|
+
*/
|
|
89
|
+
private neighboursKeys;
|
|
90
|
+
/**
|
|
91
|
+
* Key mappings for navigation directions.
|
|
92
|
+
*/
|
|
93
|
+
private keyMapping;
|
|
94
|
+
constructor();
|
|
95
|
+
/**
|
|
96
|
+
* Handles navigation button clicks. Emits the new section identificator to navigate to.
|
|
97
|
+
* @param goTo - The direction to navigate.
|
|
98
|
+
* @throws If there is no valid section to navigate to.
|
|
99
|
+
*/
|
|
100
|
+
onClick(goTo: 'prev' | 'next'): void;
|
|
101
|
+
/**
|
|
102
|
+
* Retrieves the TDC section ID based on the navigation direction.
|
|
103
|
+
* @param direction - The navigation direction.
|
|
104
|
+
* @returns The section ID to navigate to, or null if unavailable.
|
|
105
|
+
*/
|
|
106
|
+
private getTdcIdFromDirection;
|
|
107
|
+
/**
|
|
108
|
+
* Determines and sets the available section for navigation in the specified direction.
|
|
109
|
+
* @param type - The navigation direction.
|
|
110
|
+
* @param [currentSection] - The current section ID (optional).
|
|
111
|
+
* @throws If navigation is restricted and sectionsAvailability is not provided.
|
|
112
|
+
*/
|
|
113
|
+
private findAndSetAvailableSection;
|
|
114
|
+
/**
|
|
115
|
+
* Sets the previous or next section values to the passed value
|
|
116
|
+
*
|
|
117
|
+
* @param type - The navigation direction.
|
|
118
|
+
* @param value - Value to set to either previous or next available section
|
|
119
|
+
*/
|
|
120
|
+
private setAvailableSection;
|
|
121
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NeighboursComponent, never>;
|
|
122
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NeighboursComponent, "sdc-neighbours", never, { "currentSection": { "alias": "currentSection"; "required": true; "isSignal": true; }; "sectionsMmcToTdc": { "alias": "sectionsMmcToTdc"; "required": true; "isSignal": true; }; "sectionsTdcToMmc": { "alias": "sectionsTdcToMmc"; "required": true; "isSignal": true; }; "neigboursData": { "alias": "neigboursData"; "required": true; "isSignal": true; }; "nextIcon": { "alias": "nextIcon"; "required": false; "isSignal": true; }; "previousIcon": { "alias": "previousIcon"; "required": false; "isSignal": true; }; "onlyNavigateToAvailable": { "alias": "onlyNavigateToAvailable"; "required": false; "isSignal": true; }; "sectionsAvailability": { "alias": "sectionsAvailability"; "required": false; "isSignal": true; }; "styleClasses": { "alias": "styleClasses"; "required": false; "isSignal": true; }; }, { "sectionToNavigate": "sectionToNavigate"; }, never, never, true, never>;
|
|
123
|
+
}
|
|
124
|
+
//# sourceMappingURL=neighbours.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"neighbours.component.d.ts","sourceRoot":"","sources":["../../../projects/software-division-components/src/dvm/neighbours/neighbours.component.ts"],"names":[],"mappings":"AAIA,OAAO,EAAa,mBAAmB,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;;AACjF;;;;;;;;GAQG;AACH,qBAQa,mBAAmB;IAC9B;;OAEG;IACH,SAAS,CAAC,QAAQ,CAAC,eAAe;;;;;;;;;;;;;;MAAoB;IAEtD;;OAEG;IACI,cAAc,8CAA4B;IAEjD;;OAEG;IACI,gBAAgB,8DAA8C;IAErE;;OAEG;IACI,gBAAgB,8DAA8C;IAErE;;OAEG;IACI,aAAa,2FAA2E;IAE/F;;OAEG;IACI,QAAQ,8CAAqB;IAEpC;;OAEG;IACI,YAAY,8CAAqB;IAExC;;;;OAIG;IACI,uBAAuB,2DAAoB;IAElD;;;OAGG;IACI,oBAAoB,2DAAkC;IAE7D;;OAEG;IACI,YAAY,mGAKjB;IAEF;;OAEG;IACI,iBAAiB,mDAAoB;IAE5C;;OAEG;IACH,SAAS,CAAC,0BAA0B,wDAA+B;IAEnE;;OAEG;IACH,SAAS,CAAC,sBAAsB,wDAA+B;IAE/D;;OAEG;IACH,OAAO,CAAC,kBAAkB,CAAmB;IAE7C;;OAEG;IACH,OAAO,CAAC,cAAc,CAG6B;IAEnD;;OAEG;IACH,OAAO,CAAC,UAAU,CAGP;;IAYX;;;;OAIG;IACI,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;IAUpC;;;;OAIG;IACH,OAAO,CAAC,qBAAqB;IAQ7B;;;;;OAKG;IACH,OAAO,CAAC,0BAA0B;IAyClC;;;;;OAKG;IACH,OAAO,CAAC,mBAAmB;yCA1LhB,mBAAmB;2CAAnB,mBAAmB;CAkM/B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public-api.d.ts","sourceRoot":"","sources":["../../../projects/software-division-components/src/dvm/neighbours/public-api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,YAAY,EAAE,SAAS,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC"}
|