@3dsource/source-ui 0.0.27 → 0.0.29

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 +81 -6
  2. package/fesm2022/3dsource-source-ui.mjs +144 -144
  3. package/fesm2022/3dsource-source-ui.mjs.map +1 -1
  4. package/index.d.ts +337 -5
  5. package/package.json +2 -2
  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 3D Source applications
4
13
 
5
14
  ## Installation
6
15
 
7
- ### add peer dependencies
16
+ ### Prerequisites
17
+
18
+ - Angular 19+
19
+ - Angular Material
8
20
 
9
- _List of peer dependencies_
21
+ ### Peer Dependencies
22
+
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,62 @@ _List of peer dependencies_
28
45
 
29
46
  ## Usage
30
47
 
31
- todo
48
+ ### Style imports
49
+
50
+ Import both styles for SourceUI Native and SourceUI in your style.scss
51
+
52
+ ```scss
53
+ // Source UI Native
54
+ @use '../node_modules/@3dsource/source-ui-native/styles/source.ui.native.scss' as source-ui-native;
55
+ // Source UI
56
+ @use '../node_modules/@3dsource/source-ui/styles/source.ui.scss' as source-ui;`;
57
+ ```
58
+
59
+ ### Material settings
60
+
61
+ For correct styling provide neccessary outline option for form elements in your appConfig
62
+
63
+ ```typescript
64
+ {
65
+ provide: MAT_FORM_FIELD_DEFAULT_OPTIONS,
66
+ useValue: { appearance: 'outline' },
67
+ },
68
+ ```
69
+
70
+ ### Import
71
+
72
+ Import desired component and use it in template as described in components documentation.
73
+
74
+ ```typescript
75
+ import { SourceSliderGroupComponent } from '@3dsource/source-ui';
76
+
77
+ @NgModule({
78
+ imports: [SourceSliderGroupComponent],
79
+ })
80
+ export class AppComponent {
81
+ value = signal(15);
82
+
83
+ groupValueChange(value: number) {
84
+ console.log('Group value changed:', value);
85
+ }
86
+ }
87
+ ```
88
+
89
+ ```html
90
+ <src-slider-group label="Slider Group" [min]="0" [max]="100" [step]="1" units="" [showRange]="true" [value]="value()" (groupValueChange)="groupValueChange($event)"></src-slider-group>
91
+ ```
92
+
93
+ ## Available Components and Examples
94
+
95
+ - **[src-colorpicker](https://preview.3dsource.com/front-libraries/master/#/components/SourceBadgeComponent)** - Highly customizable colorpicker
96
+ - **[src-modal](https://preview.3dsource.com/front-libraries/master/#/components/SourceModalComponent)** - Service modal component
97
+ - **[src-popover](https://preview.3dsource.com/front-libraries/master/#/components/SourcePopoverComponent)** - Popover with trigger or Service
98
+ - **[src-slider-group](https://preview.3dsource.com/front-libraries/master/#/components/SourceSliderGroupComponent)** - Advanced variant of slider
99
+ - **[src-tabs](https://preview.3dsource.com/front-libraries/master/#/components/SourceTabsComponent)** - Tabs in two options of usage
100
+ - **[src-tooltip](https://preview.3dsource.com/front-libraries/master/#/components/SourceTooltipComponent)** - Directive for custom tooltips
101
+
102
+ ## Customization
103
+
104
+ Customization provided in the same way as in SourceUI Native. Whole table of CSS custom properties is available in the **[documentation site](https://preview.3dsource.com/front-libraries/master/#/components/design-tokens)**.
105
+
106
+ You can see all available options and examples in **[documentation](https://preview.3dsource.com/front-libraries/master/#/components/getting-started)**