@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 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 extends Angular Material with specialized components for 3D content interaction.
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 3dsource applications
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
- ### Module Import
43
+ ### Style imports
49
44
 
50
- Import the SourceUiModule in your Angular application:
45
+ Import both styles for SourceUI Native and SourceUI in your style.scss
51
46
 
52
- ```typescript
53
- import { SourceUiModule } from '@3dsource/source-ui';
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
- @NgModule({
56
- imports: [SourceUiModule],
57
- })
58
- export class AppModule {}
53
+ `
54
+ ;
59
55
  ```
60
56
 
61
- ### Using Components
57
+ ### Material settings
62
58
 
63
- After importing the module, you can use the components in your templates:
59
+ For correct styling provide neccessary outline option for form elements in your appConfig
64
60
 
65
- ```html
66
- <source-3d-viewer [model]="modelUrl"></source-3d-viewer>
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
- ## Available Components
74
+ ### Import
70
75
 
71
- - **3D Viewers** - Components for displaying 3D models
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
- ## Component Examples
78
+ ```typescript
79
+ import { SourceSliderGroupComponent } from '@3dsource/source-ui';
78
80
 
79
- ### 3D Viewer
81
+ @NgModule({
82
+ imports: [SourceSliderGroupComponent],
83
+ })
84
+ export class AppComponent {
85
+ value = signal(15);
80
86
 
81
- ```html
82
- <source-3d-viewer [model]="'assets/models/example.glb'" [autoRotate]="true" [controls]="true"> </source-3d-viewer>
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
- <source-control-panel>
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
- ## Theming
97
+ ## Available Components and Examples
94
98
 
95
- The library supports Angular Material theming:
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
- ```scss
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
- Check the demo application for complete usage examples:
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
- ```shell
122
- npm run demo:start
123
- ```
117
+ You can see all available options and examples
118
+ in \* \*[documentation](https://preview.3dsource.com/front-libraries/master/#/components/getting-started)\*\*