@albi_scando/as-design-system-threejs-lib 1.1.1 → 1.1.3
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/dist/as-design-system-threejs-lib.es.js +1878 -1854
- package/dist/as-design-system-threejs-lib.umd.js +138 -138
- package/dist/types/main.d.ts +0 -1
- package/dist/types/web-components/language-picker/component.d.ts +12 -9
- package/package.json +2 -2
- package/dist/types/utils/switch-theme.utils.d.ts +0 -4
package/dist/types/main.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ import { APPLICATION_NAME } from './constants/application.constant.ts';
|
|
|
2
2
|
export { APPLICATION_NAME };
|
|
3
3
|
export { WebComponentsRegistry } from './web-components/registry.ts';
|
|
4
4
|
export { CUSTOM_MESSAGES } from './constants/custom-messages.const.ts';
|
|
5
|
-
export { switchTheme, clearThemes } from './utils/switch-theme.utils.ts';
|
|
6
5
|
export { THEME_TEXTURES_MAPPER } from './mappers/themes.mapper.ts';
|
|
7
6
|
export * as LanguagePicker from './web-components/language-picker/main.ts';
|
|
8
7
|
export * as ThemePicker from './web-components/theme-picker/main.ts';
|
|
@@ -40,7 +40,8 @@ export declare class LanguagePickerComponent extends HTMLElement {
|
|
|
40
40
|
* Single source of truth for which language is currently selected.
|
|
41
41
|
* Everything else (rotation, BarMenu) is derived from this.
|
|
42
42
|
*/
|
|
43
|
-
private
|
|
43
|
+
private _selectedId;
|
|
44
|
+
private _previewId;
|
|
44
45
|
private _menuContainer;
|
|
45
46
|
private _menuIntroStartScale;
|
|
46
47
|
private _barMenu;
|
|
@@ -49,6 +50,8 @@ export declare class LanguagePickerComponent extends HTMLElement {
|
|
|
49
50
|
private _isInitialized;
|
|
50
51
|
private _isInitializing;
|
|
51
52
|
constructor(options?: LanguagePickerComponentOptions);
|
|
53
|
+
private _indexOfId;
|
|
54
|
+
private _idOfIndex;
|
|
52
55
|
attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
|
|
53
56
|
connectedCallback(): void;
|
|
54
57
|
disconnectedCallback(): void;
|
|
@@ -57,26 +60,26 @@ export declare class LanguagePickerComponent extends HTMLElement {
|
|
|
57
60
|
* Rotates the flags ring and syncs the BarMenu to show the correct autonym.
|
|
58
61
|
* Safe to call before init — queued and applied once the component is ready.
|
|
59
62
|
*/
|
|
60
|
-
selectLanguage(language:
|
|
63
|
+
selectLanguage(language: Locales): void;
|
|
64
|
+
/**
|
|
65
|
+
* Rotate and sync BarMenu without touching _selectedId.
|
|
66
|
+
* Used by BarMenu arrows and button clicks (before confirmation).
|
|
67
|
+
*/
|
|
68
|
+
private _applyPreview;
|
|
61
69
|
addLanguage(_language: string): void;
|
|
62
70
|
addLocales(_languages: string[]): void;
|
|
63
71
|
removeLanguage(_language: string): void;
|
|
64
72
|
removeLocales(_languages: string[]): void;
|
|
65
|
-
/**
|
|
66
|
-
* THE single method that updates selection state.
|
|
67
|
-
* Both BarMenu navigation and selectLanguage() funnel through here.
|
|
68
|
-
*/
|
|
69
|
-
private _applySelection;
|
|
70
73
|
/**
|
|
71
74
|
* Rotate the flags group so that the flag at `index` faces the camera.
|
|
72
75
|
*/
|
|
73
|
-
private
|
|
76
|
+
private _rotateToId;
|
|
74
77
|
/**
|
|
75
78
|
* Tell BarMenu to display the button at `index`.
|
|
76
79
|
* Uses navigateToIndex if available, otherwise falls back to firing
|
|
77
80
|
* synthetic next/prev clicks — no more DOM polling.
|
|
78
81
|
*/
|
|
79
|
-
private
|
|
82
|
+
private _syncBarMenuToId;
|
|
80
83
|
private _initializeComponent;
|
|
81
84
|
private _listenToBarMenuNavigation;
|
|
82
85
|
private _setupScene;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@albi_scando/as-design-system-threejs-lib",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.3",
|
|
4
4
|
"description": "A library of reusable, strongly typed threejs Web Components built with TypeScript, designed for creating consistent and maintainable user interfaces.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@albi_scando/as-const-languages-lib": "^1.1.1",
|
|
50
50
|
"@albi_scando/as-const-lib": "^1.11.0",
|
|
51
|
-
"@albi_scando/as-design-system-lib": "^1.7.
|
|
51
|
+
"@albi_scando/as-design-system-lib": "^1.7.2",
|
|
52
52
|
"@albi_scando/as-threejs-flags-lib": "^2.3.2",
|
|
53
53
|
"@commitlint/cli": "^20.4.1",
|
|
54
54
|
"@commitlint/config-conventional": "^20.4.1",
|