@3dsource/source-ui 0.0.28 → 0.0.30
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 +57 -62
- package/fesm2022/3dsource-source-ui.mjs +143 -143
- package/fesm2022/3dsource-source-ui.mjs.map +1 -1
- package/package.json +2 -2
- package/styles/material/checkbox.scss +102 -18
- package/styles/material/form-field.scss +256 -36
- package/styles/material/radio.scss +73 -15
- package/styles/material/select.scss +54 -36
- package/styles/material/theme.scss +307 -301
- package/styles/material/toggle.scss +82 -24
- package/styles/toastr/toastr.scss +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# @3dsource/source-ui
|
|
2
2
|
|
|
3
|
-
A comprehensive library of Angular UI components designed specifically for 3D visualization applications. This library
|
|
3
|
+
A comprehensive library of Angular UI components designed specifically for 3D visualization applications. This library
|
|
4
|
+
extends Angular Material with specialized components for 3D content interaction.
|
|
4
5
|
|
|
5
6
|
## Overview
|
|
6
7
|
|
|
@@ -9,7 +10,7 @@ The Source UI library provides Angular components that are optimized for 3D appl
|
|
|
9
10
|
- Specialized UI controls for 3D scene manipulation
|
|
10
11
|
- Integration with Angular Material design system
|
|
11
12
|
- Responsive and accessible components
|
|
12
|
-
- Consistent styling across
|
|
13
|
+
- Consistent styling across 3D Source applications
|
|
13
14
|
|
|
14
15
|
## Installation
|
|
15
16
|
|
|
@@ -31,12 +32,6 @@ This library requires the following peer dependencies:
|
|
|
31
32
|
}
|
|
32
33
|
```
|
|
33
34
|
|
|
34
|
-
Install peer dependencies:
|
|
35
|
-
|
|
36
|
-
```shell
|
|
37
|
-
npx install-peerdeps @3dsource/source-ui
|
|
38
|
-
```
|
|
39
|
-
|
|
40
35
|
### Library Installation
|
|
41
36
|
|
|
42
37
|
```shell
|
|
@@ -45,79 +40,79 @@ Install peer dependencies:
|
|
|
45
40
|
|
|
46
41
|
## Usage
|
|
47
42
|
|
|
48
|
-
###
|
|
43
|
+
### Style imports
|
|
49
44
|
|
|
50
|
-
Import
|
|
45
|
+
Import both styles for SourceUI Native and SourceUI in your style.scss
|
|
51
46
|
|
|
52
|
-
```
|
|
53
|
-
|
|
47
|
+
```scss
|
|
48
|
+
// Source UI Native
|
|
49
|
+
@use '../node_modules/@3dsource/source-ui-native/styles/source.ui.native.scss' as source-ui-native;
|
|
50
|
+
// Source UI
|
|
51
|
+
@use '../node_modules/@3dsource/source-ui/styles/source.ui.scss' as source-ui;
|
|
54
52
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
})
|
|
58
|
-
export class AppModule {}
|
|
53
|
+
`
|
|
54
|
+
;
|
|
59
55
|
```
|
|
60
56
|
|
|
61
|
-
###
|
|
57
|
+
### Material settings
|
|
62
58
|
|
|
63
|
-
|
|
59
|
+
For correct styling provide neccessary outline option for form elements in your appConfig
|
|
64
60
|
|
|
65
|
-
```
|
|
66
|
-
|
|
61
|
+
```typescript
|
|
62
|
+
{
|
|
63
|
+
provide: MAT_FORM_FIELD_DEFAULT_OPTIONS,
|
|
64
|
+
useValue
|
|
65
|
+
:
|
|
66
|
+
{
|
|
67
|
+
appearance: 'outline'
|
|
68
|
+
}
|
|
69
|
+
,
|
|
70
|
+
}
|
|
71
|
+
,
|
|
67
72
|
```
|
|
68
73
|
|
|
69
|
-
|
|
74
|
+
### Import
|
|
70
75
|
|
|
71
|
-
|
|
72
|
-
- **Control Panels** - UI controls for manipulating 3D scenes
|
|
73
|
-
- **Property Editors** - Components for editing 3D object properties
|
|
74
|
-
- **Navigation Controls** - Components for navigating 3D spaces
|
|
75
|
-
- **Material Pickers** - Components for selecting materials and textures
|
|
76
|
+
Import desired component and use it in template as described in components documentation.
|
|
76
77
|
|
|
77
|
-
|
|
78
|
+
```typescript
|
|
79
|
+
import { SourceSliderGroupComponent } from '@3dsource/source-ui';
|
|
78
80
|
|
|
79
|
-
|
|
81
|
+
@NgModule({
|
|
82
|
+
imports: [SourceSliderGroupComponent],
|
|
83
|
+
})
|
|
84
|
+
export class AppComponent {
|
|
85
|
+
value = signal(15);
|
|
80
86
|
|
|
81
|
-
|
|
82
|
-
|
|
87
|
+
groupValueChange(value: number) {
|
|
88
|
+
console.log('Group value changed:', value);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
83
91
|
```
|
|
84
92
|
|
|
85
|
-
### Control Panel
|
|
86
|
-
|
|
87
93
|
```html
|
|
88
|
-
<
|
|
89
|
-
<source-slider label="Zoom" [min]="0.1" [max]="10" [(value)]="zoomLevel"> </source-slider>
|
|
90
|
-
</source-control-panel>
|
|
94
|
+
<src-slider-group label="Slider Group" [min]="0" [max]="100" [step]="1" units="" [showRange]="true" [value]="value()" (groupValueChange)="groupValueChange($event)"></src-slider-group>
|
|
91
95
|
```
|
|
92
96
|
|
|
93
|
-
##
|
|
97
|
+
## Available Components and Examples
|
|
94
98
|
|
|
95
|
-
|
|
99
|
+
- **[src-colorpicker](https://preview.3dsource.com/front-libraries/master/#/components/SourceBadgeComponent)** - Highly
|
|
100
|
+
customizable colorpicker
|
|
101
|
+
- **[src-modal](https://preview.3dsource.com/front-libraries/master/#/components/SourceModalComponent)** - Service modal
|
|
102
|
+
component
|
|
103
|
+
- **[src-popover](https://preview.3dsource.com/front-libraries/master/#/components/SourcePopoverComponent)** - Popover
|
|
104
|
+
with trigger or Service
|
|
105
|
+
- **[src-slider-group](https://preview.3dsource.com/front-libraries/master/#/components/SourceSliderGroupComponent)** -
|
|
106
|
+
Advanced variant of slider
|
|
107
|
+
- **[src-tabs](https://preview.3dsource.com/front-libraries/master/#/components/SourceTabsComponent)** - Tabs in two
|
|
108
|
+
options of usage
|
|
109
|
+
- **[src-tooltip](https://preview.3dsource.com/front-libraries/master/#/components/SourceTooltipComponent)** - Directive
|
|
110
|
+
for custom tooltips
|
|
96
111
|
|
|
97
|
-
|
|
98
|
-
@use '@angular/material' as mat;
|
|
99
|
-
@use '@3dsource/source-ui/theming' as source-ui;
|
|
100
|
-
|
|
101
|
-
$my-primary: mat.define-palette(mat.$indigo-palette);
|
|
102
|
-
$my-accent: mat.define-palette(mat.$pink-palette);
|
|
103
|
-
|
|
104
|
-
$my-theme: mat.define-light-theme(
|
|
105
|
-
(
|
|
106
|
-
color: (
|
|
107
|
-
primary: $my-primary,
|
|
108
|
-
accent: $my-accent,
|
|
109
|
-
),
|
|
110
|
-
)
|
|
111
|
-
);
|
|
112
|
-
|
|
113
|
-
@include mat.all-component-themes($my-theme);
|
|
114
|
-
@include source-ui.theme($my-theme);
|
|
115
|
-
```
|
|
116
|
-
|
|
117
|
-
## Examples
|
|
112
|
+
## Customization
|
|
118
113
|
|
|
119
|
-
|
|
114
|
+
Customization provided in the same way as in SourceUI Native. Whole table of CSS custom properties is available in
|
|
115
|
+
the \* \*[documentation site](https://preview.3dsource.com/front-libraries/master/#/components/design-tokens)\*\*.
|
|
120
116
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
```
|
|
117
|
+
You can see all available options and examples
|
|
118
|
+
in \* \*[documentation](https://preview.3dsource.com/front-libraries/master/#/components/getting-started)\*\*
|