@3dsource/source-ui 0.0.25 → 0.0.28

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.
Files changed (50) hide show
  1. package/README.md +98 -6
  2. package/fesm2022/3dsource-source-ui.mjs +45 -45
  3. package/fesm2022/3dsource-source-ui.mjs.map +1 -1
  4. package/index.d.ts +337 -5
  5. package/package.json +1 -1
  6. package/styles/material/radio.scss +1 -1
  7. package/lib/components/source-color-picker/components/color-palette/color-palette.component.d.ts +0 -31
  8. package/lib/components/source-color-picker/components/color-slider/color-slider.component.d.ts +0 -34
  9. package/lib/components/source-color-picker/components/container/source-color-picker.component.d.ts +0 -20
  10. package/lib/components/source-color-picker/components/index.d.ts +0 -3
  11. package/lib/components/source-color-picker/helpers/RGBtoHEX.d.ts +0 -1
  12. package/lib/components/source-color-picker/helpers/RGBtoHSV.d.ts +0 -19
  13. package/lib/components/source-color-picker/helpers/calculatePosition.d.ts +0 -5
  14. package/lib/components/source-color-picker/helpers/clampf.d.ts +0 -1
  15. package/lib/components/source-color-picker/helpers/drawGradient.d.ts +0 -2
  16. package/lib/components/source-color-picker/helpers/drawPaletteGradient.d.ts +0 -1
  17. package/lib/components/source-color-picker/helpers/randomUUID.d.ts +0 -1
  18. package/lib/components/source-color-picker/index.d.ts +0 -2
  19. package/lib/components/source-color-picker/interfaces/source-color-picker.interface.d.ts +0 -5
  20. package/lib/components/source-modal/components/source-modal.component.d.ts +0 -15
  21. package/lib/components/source-modal/constants/sourceModalSize.const.d.ts +0 -5
  22. package/lib/components/source-modal/index.d.ts +0 -3
  23. package/lib/components/source-modal/interfaces/index.d.ts +0 -1
  24. package/lib/components/source-modal/interfaces/sourceModalData.interface.d.ts +0 -19
  25. package/lib/components/source-popover/components/source-popover-trigger.component.d.ts +0 -27
  26. package/lib/components/source-popover/components/source-popover.component.d.ts +0 -12
  27. package/lib/components/source-popover/index.d.ts +0 -4
  28. package/lib/components/source-popover/interfaces/defaultSourcePopover.config.d.ts +0 -2
  29. package/lib/components/source-popover/interfaces/index.d.ts +0 -2
  30. package/lib/components/source-popover/interfaces/sourcePopoverData.interface.d.ts +0 -27
  31. package/lib/components/source-popover/services/index.d.ts +0 -1
  32. package/lib/components/source-popover/services/sourcePopover.service.d.ts +0 -13
  33. package/lib/components/source-popover/tokens/sourcePopoverDataToken.d.ts +0 -3
  34. package/lib/components/source-slider-group/components/source-slider-group.component.d.ts +0 -24
  35. package/lib/components/source-slider-group/index.d.ts +0 -1
  36. package/lib/components/source-tab-line/components/source-tab-line.component.d.ts +0 -26
  37. package/lib/components/source-tab-line/index.d.ts +0 -1
  38. package/lib/components/source-tabs/components/source-tab/source-tab.component.d.ts +0 -6
  39. package/lib/components/source-tabs/components/source-tabs/source-tabs.component.d.ts +0 -19
  40. package/lib/components/source-tabs/index.d.ts +0 -3
  41. package/lib/components/source-tabs/interfaces/index.d.ts +0 -1
  42. package/lib/components/source-tabs/interfaces/sourceTabData.interface.d.ts +0 -6
  43. package/lib/components/source-tooltip/components/source-tooltip.component.d.ts +0 -9
  44. package/lib/components/source-tooltip/constants/position.d.ts +0 -3
  45. package/lib/components/source-tooltip/directives/source-tooltip.directive.d.ts +0 -31
  46. package/lib/components/source-tooltip/helpers/index.d.ts +0 -1
  47. package/lib/components/source-tooltip/index.d.ts +0 -4
  48. package/lib/components/source-tooltip/interfaces/source-tooltip.interface.d.ts +0 -15
  49. package/lib/components/source-tooltip/tokens/sourceTooltipDataToken.d.ts +0 -3
  50. package/public-api.d.ts +0 -7
package/README.md CHANGED
@@ -1,26 +1,43 @@
1
1
  # @3dsource/source-ui
2
2
 
3
- ### A bunch of ui elements using angular
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.
4
+
5
+ ## Overview
6
+
7
+ The Source UI library provides Angular components that are optimized for 3D applications, offering:
8
+
9
+ - Specialized UI controls for 3D scene manipulation
10
+ - Integration with Angular Material design system
11
+ - Responsive and accessible components
12
+ - Consistent styling across 3dsource applications
4
13
 
5
14
  ## Installation
6
15
 
7
- ### add peer dependencies
16
+ ### Prerequisites
17
+
18
+ - Angular 19+
19
+ - Angular Material
20
+
21
+ ### Peer Dependencies
8
22
 
9
- _List of peer dependencies_
23
+ This library requires the following peer dependencies:
10
24
 
11
25
  ```json
12
26
  {
13
27
  "@angular/common": "^19.2.0",
14
28
  "@angular/core": "^19.2.0",
15
- "@angular/material": "19.2.11"
29
+ "@angular/material": "19.2.11",
30
+ "@3dsource/source-ui-native": "^1.0.17"
16
31
  }
17
32
  ```
18
33
 
34
+ Install peer dependencies:
35
+
19
36
  ```shell
20
37
  npx install-peerdeps @3dsource/source-ui
21
38
  ```
22
39
 
23
- ### add a library
40
+ ### Library Installation
24
41
 
25
42
  ```shell
26
43
  npm i @3dsource/source-ui
@@ -28,4 +45,79 @@ _List of peer dependencies_
28
45
 
29
46
  ## Usage
30
47
 
31
- todo
48
+ ### Module Import
49
+
50
+ Import the SourceUiModule in your Angular application:
51
+
52
+ ```typescript
53
+ import { SourceUiModule } from '@3dsource/source-ui';
54
+
55
+ @NgModule({
56
+ imports: [SourceUiModule],
57
+ })
58
+ export class AppModule {}
59
+ ```
60
+
61
+ ### Using Components
62
+
63
+ After importing the module, you can use the components in your templates:
64
+
65
+ ```html
66
+ <source-3d-viewer [model]="modelUrl"></source-3d-viewer>
67
+ ```
68
+
69
+ ## Available Components
70
+
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
+
77
+ ## Component Examples
78
+
79
+ ### 3D Viewer
80
+
81
+ ```html
82
+ <source-3d-viewer [model]="'assets/models/example.glb'" [autoRotate]="true" [controls]="true"> </source-3d-viewer>
83
+ ```
84
+
85
+ ### Control Panel
86
+
87
+ ```html
88
+ <source-control-panel>
89
+ <source-slider label="Zoom" [min]="0.1" [max]="10" [(value)]="zoomLevel"> </source-slider>
90
+ </source-control-panel>
91
+ ```
92
+
93
+ ## Theming
94
+
95
+ The library supports Angular Material theming:
96
+
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
118
+
119
+ Check the demo application for complete usage examples:
120
+
121
+ ```shell
122
+ npm run demo:start
123
+ ```