@taon-dev/ui 21.0.16 → 21.0.17

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 (60) hide show
  1. package/VERIFIED-BUILD-DATA.jsonc +3 -3
  2. package/browser/fesm2022/ui-browser.mjs +8 -3
  3. package/browser/fesm2022/ui-browser.mjs.map +1 -1
  4. package/browser/package.json +1 -1
  5. package/browser/types/ui-browser.d.ts +3 -2
  6. package/browser-prod/fesm2022/ui-browser-prod.mjs +8 -3
  7. package/browser-prod/fesm2022/ui-browser-prod.mjs.map +1 -1
  8. package/browser-prod/package.json +1 -1
  9. package/browser-prod/types/ui-browser-prod.d.ts +3 -2
  10. package/full-dts/build-info._auto-generated_.d.ts +1 -1
  11. package/full-dts/taon-draggable-button-panel/taon-draggable-button-panel.component.d.ts +1 -0
  12. package/lib/build-info._auto-generated_.d.ts +1 -1
  13. package/lib/build-info._auto-generated_.js +1 -1
  14. package/lib/package.json +1 -1
  15. package/lib/taon-admin-layout/index.d.ts +1 -1
  16. package/lib/taon-admin-layout/index.js +2 -2
  17. package/lib/taon-admin-welcome/index.d.ts +1 -1
  18. package/lib/taon-admin-welcome/index.js +2 -2
  19. package/lib/taon-datatable/index.d.ts +1 -1
  20. package/lib/taon-datatable/index.js +2 -2
  21. package/lib/taon-draggable-button-panel/index.d.ts +1 -1
  22. package/lib/taon-draggable-button-panel/index.js +2 -2
  23. package/lib-esm/lib/build-info._auto-generated_.d.ts +1 -1
  24. package/lib-esm/lib/build-info._auto-generated_.js +1 -1
  25. package/lib-esm/lib/taon-admin-layout/index.d.ts +1 -1
  26. package/lib-esm/lib/taon-admin-layout/index.js +1 -1
  27. package/lib-esm/lib/taon-admin-welcome/index.d.ts +1 -1
  28. package/lib-esm/lib/taon-admin-welcome/index.js +1 -1
  29. package/lib-esm/lib/taon-datatable/index.d.ts +1 -1
  30. package/lib-esm/lib/taon-datatable/index.js +1 -1
  31. package/lib-esm/lib/taon-draggable-button-panel/index.d.ts +1 -1
  32. package/lib-esm/lib/taon-draggable-button-panel/index.js +1 -1
  33. package/lib-prod/build-info._auto-generated_.d.ts +1 -1
  34. package/lib-prod/build-info._auto-generated_.js +1 -1
  35. package/lib-prod/package.json +1 -1
  36. package/lib-prod/taon-admin-layout/index.d.ts +1 -1
  37. package/lib-prod/taon-admin-layout/index.js +1 -1
  38. package/lib-prod/taon-admin-welcome/index.d.ts +1 -1
  39. package/lib-prod/taon-admin-welcome/index.js +1 -1
  40. package/lib-prod/taon-datatable/index.d.ts +1 -1
  41. package/lib-prod/taon-datatable/index.js +1 -1
  42. package/lib-prod/taon-draggable-button-panel/index.d.ts +1 -1
  43. package/lib-prod/taon-draggable-button-panel/index.js +1 -1
  44. package/package.json +1 -1
  45. package/ts-source/browser-code/build-info._auto-generated_.ts +1 -1
  46. package/ts-source/browser-code/taon-draggable-button-panel/taon-draggable-button-panel.component.ts +5 -1
  47. package/ts-source/browser-code-prod/build-info._auto-generated_.ts +1 -1
  48. package/ts-source/browser-code-prod/taon-draggable-button-panel/taon-draggable-button-panel.component.ts +5 -1
  49. package/ts-source/websql-code/build-info._auto-generated_.ts +1 -1
  50. package/ts-source/websql-code/taon-draggable-button-panel/taon-draggable-button-panel.component.ts +5 -1
  51. package/ts-source/websql-code-prod/build-info._auto-generated_.ts +1 -1
  52. package/ts-source/websql-code-prod/taon-draggable-button-panel/taon-draggable-button-panel.component.ts +5 -1
  53. package/websql/fesm2022/ui-websql.mjs +8 -3
  54. package/websql/fesm2022/ui-websql.mjs.map +1 -1
  55. package/websql/package.json +1 -1
  56. package/websql/types/ui-websql.d.ts +3 -2
  57. package/websql-prod/fesm2022/ui-websql-prod.mjs +8 -3
  58. package/websql-prod/fesm2022/ui-websql-prod.mjs.map +1 -1
  59. package/websql-prod/package.json +1 -1
  60. package/websql-prod/types/ui-websql-prod.d.ts +3 -2
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taon-dev/ui/browser-prod",
3
- "version": "21.0.16",
3
+ "version": "21.0.17",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^21.0.0",
6
6
  "@angular/core": "^21.0.0"
@@ -34,7 +34,7 @@ declare const CURRENT_PACKAGE_TAON_VERSION = "v21";
34
34
  /**
35
35
  * Autogenerated by current cli tool. Use *tnp release* to bump version.
36
36
  */
37
- declare const CURRENT_PACKAGE_VERSION = "21.0.16";
37
+ declare const CURRENT_PACKAGE_VERSION = "21.0.17";
38
38
 
39
39
  declare function myOrgProj(): void;
40
40
 
@@ -439,6 +439,7 @@ declare class TaonDraggableButtonPanelComponent<TContext = unknown> implements O
439
439
  */
440
440
  stateParamName: string;
441
441
  set state(state: TaonDraggableButtonPanelState);
442
+ initialState: TaonDraggableButtonPanelState;
442
443
  readonly stateChange: EventEmitter<TaonDraggableButtonPanelState>;
443
444
  protected readonly forceFullScreen: i0.WritableSignal<boolean>;
444
445
  private readonly resizeListener;
@@ -468,7 +469,7 @@ declare class TaonDraggableButtonPanelComponent<TContext = unknown> implements O
468
469
  private resetDragPosition;
469
470
  private isTransitionAllowed;
470
471
  static ɵfac: i0.ɵɵFactoryDeclaration<TaonDraggableButtonPanelComponent<any>, never>;
471
- static ɵcmp: i0.ɵɵComponentDeclaration<TaonDraggableButtonPanelComponent<any>, "taon-draggable-button-panel", never, { "context": { "alias": "context"; "required": false; }; "basePath": { "alias": "basePath"; "required": false; }; "buttonIcon": { "alias": "buttonIcon"; "required": false; }; "title": { "alias": "title"; "required": false; }; "outlet": { "alias": "outlet"; "required": false; }; "stateParamName": { "alias": "stateParamName"; "required": false; }; "state": { "alias": "state"; "required": false; }; "autoHideIcon": { "alias": "autoHideIcon"; "required": false; }; "iconTemplate": { "alias": "iconTemplate"; "required": false; }; "headerCenterTemplate": { "alias": "headerCenterTemplate"; "required": false; }; }, { "stateChange": "stateChange"; }, never, ["*"], true, never>;
472
+ static ɵcmp: i0.ɵɵComponentDeclaration<TaonDraggableButtonPanelComponent<any>, "taon-draggable-button-panel", never, { "context": { "alias": "context"; "required": false; }; "basePath": { "alias": "basePath"; "required": false; }; "buttonIcon": { "alias": "buttonIcon"; "required": false; }; "title": { "alias": "title"; "required": false; }; "outlet": { "alias": "outlet"; "required": false; }; "stateParamName": { "alias": "stateParamName"; "required": false; }; "state": { "alias": "state"; "required": false; }; "initialState": { "alias": "initialState"; "required": false; }; "autoHideIcon": { "alias": "autoHideIcon"; "required": false; }; "iconTemplate": { "alias": "iconTemplate"; "required": false; }; "headerCenterTemplate": { "alias": "headerCenterTemplate"; "required": false; }; }, { "stateChange": "stateChange"; }, never, ["*"], true, never>;
472
473
  }
473
474
 
474
475
  declare const TaonDraggableButtonPanelRoutes: Routes;
@@ -22,4 +22,4 @@ export declare const CURRENT_PACKAGE_TAON_VERSION = "v21";
22
22
  /**
23
23
  * Autogenerated by current cli tool. Use *tnp release* to bump version.
24
24
  */
25
- export declare const CURRENT_PACKAGE_VERSION = "21.0.16";
25
+ export declare const CURRENT_PACKAGE_VERSION = "21.0.17";
@@ -26,6 +26,7 @@ export declare class TaonDraggableButtonPanelComponent<TContext = unknown> imple
26
26
  */
27
27
  stateParamName: string;
28
28
  set state(state: TaonDraggableButtonPanelState);
29
+ initialState: TaonDraggableButtonPanelState;
29
30
  readonly stateChange: EventEmitter<TaonDraggableButtonPanelState>;
30
31
  protected readonly forceFullScreen: import("@angular/core", { with: { "resolution-mode": "import" } }).WritableSignal<boolean>;
31
32
  private readonly resizeListener;
@@ -21,4 +21,4 @@ export declare const CURRENT_PACKAGE_TAON_VERSION = "v21";
21
21
  /**
22
22
  * Autogenerated by current cli tool. Use *tnp release* to bump version.
23
23
  */
24
- export declare const CURRENT_PACKAGE_VERSION = "21.0.16";
24
+ export declare const CURRENT_PACKAGE_VERSION = "21.0.17";
@@ -25,6 +25,6 @@ exports.CURRENT_PACKAGE_TAON_VERSION = 'v21';
25
25
  /**
26
26
  * Autogenerated by current cli tool. Use *tnp release* to bump version.
27
27
  */
28
- exports.CURRENT_PACKAGE_VERSION = '21.0.16';
28
+ exports.CURRENT_PACKAGE_VERSION = '21.0.17';
29
29
  // THIS FILE IS GENERATED - DO NOT MODIFY
30
30
  //# sourceMappingURL=build-info._auto-generated_.js.map
package/lib/package.json CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@taon-dev/ui/lib",
3
- "version": "21.0.16"
3
+ "version": "21.0.17"
4
4
  }
@@ -1 +1 @@
1
- export declare function dummy1792514216807(): void;
1
+ export declare function dummy1792624456976(): void;
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.dummy1792514216807 = dummy1792514216807;
4
- function dummy1792514216807() { }
3
+ exports.dummy1792624456976 = dummy1792624456976;
4
+ function dummy1792624456976() { }
5
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- export declare function dummy1792514216862(): void;
1
+ export declare function dummy1792624457033(): void;
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.dummy1792514216862 = dummy1792514216862;
4
- function dummy1792514216862() { }
3
+ exports.dummy1792624457033 = dummy1792624457033;
4
+ function dummy1792624457033() { }
5
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- export declare function dummy1792514216890(): void;
1
+ export declare function dummy1792624457064(): void;
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.dummy1792514216890 = dummy1792514216890;
4
- function dummy1792514216890() { }
3
+ exports.dummy1792624457064 = dummy1792624457064;
4
+ function dummy1792624457064() { }
5
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- export declare function dummy1792514216914(): void;
1
+ export declare function dummy1792624457089(): void;
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.dummy1792514216914 = dummy1792514216914;
4
- function dummy1792514216914() { }
3
+ exports.dummy1792624457089 = dummy1792624457089;
4
+ function dummy1792624457089() { }
5
5
  //# sourceMappingURL=index.js.map
@@ -21,4 +21,4 @@ export declare const CURRENT_PACKAGE_TAON_VERSION = "v21";
21
21
  /**
22
22
  * Autogenerated by current cli tool. Use *tnp release* to bump version.
23
23
  */
24
- export declare const CURRENT_PACKAGE_VERSION = "21.0.16";
24
+ export declare const CURRENT_PACKAGE_VERSION = "21.0.17";
@@ -22,6 +22,6 @@ export const CURRENT_PACKAGE_TAON_VERSION = 'v21';
22
22
  /**
23
23
  * Autogenerated by current cli tool. Use *tnp release* to bump version.
24
24
  */
25
- export const CURRENT_PACKAGE_VERSION = '21.0.16';
25
+ export const CURRENT_PACKAGE_VERSION = '21.0.17';
26
26
  // THIS FILE IS GENERATED - DO NOT MODIFY
27
27
  //# sourceMappingURL=build-info._auto-generated_.js.map
@@ -1 +1 @@
1
- export declare function dummy1792514216807(): void;
1
+ export declare function dummy1792624456976(): void;
@@ -1,2 +1,2 @@
1
- export function dummy1792514216807() { }
1
+ export function dummy1792624456976() { }
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- export declare function dummy1792514216862(): void;
1
+ export declare function dummy1792624457033(): void;
@@ -1,2 +1,2 @@
1
- export function dummy1792514216862() { }
1
+ export function dummy1792624457033() { }
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- export declare function dummy1792514216890(): void;
1
+ export declare function dummy1792624457064(): void;
@@ -1,2 +1,2 @@
1
- export function dummy1792514216890() { }
1
+ export function dummy1792624457064() { }
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- export declare function dummy1792514216914(): void;
1
+ export declare function dummy1792624457089(): void;
@@ -1,2 +1,2 @@
1
- export function dummy1792514216914() { }
1
+ export function dummy1792624457089() { }
2
2
  //# sourceMappingURL=index.js.map
@@ -21,4 +21,4 @@ export declare const CURRENT_PACKAGE_TAON_VERSION = "v21";
21
21
  /**
22
22
  * Autogenerated by current cli tool. Use *tnp release* to bump version.
23
23
  */
24
- export declare const CURRENT_PACKAGE_VERSION = "21.0.16";
24
+ export declare const CURRENT_PACKAGE_VERSION = "21.0.17";
@@ -22,6 +22,6 @@ export const CURRENT_PACKAGE_TAON_VERSION = 'v21';
22
22
  /**
23
23
  * Autogenerated by current cli tool. Use *tnp release* to bump version.
24
24
  */
25
- export const CURRENT_PACKAGE_VERSION = '21.0.16';
25
+ export const CURRENT_PACKAGE_VERSION = '21.0.17';
26
26
  // THIS FILE IS GENERATED - DO NOT MODIFY
27
27
  //# sourceMappingURL=build-info._auto-generated_.js.map
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@taon-dev/ui/lib-prod",
3
- "version": "21.0.16"
3
+ "version": "21.0.17"
4
4
  }
@@ -1 +1 @@
1
- export declare function dummy1792514240318(): void;
1
+ export declare function dummy1792624480217(): void;
@@ -1,2 +1,2 @@
1
- export function dummy1792514240318() { }
1
+ export function dummy1792624480217() { }
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- export declare function dummy1792514240382(): void;
1
+ export declare function dummy1792624480274(): void;
@@ -1,2 +1,2 @@
1
- export function dummy1792514240382() { }
1
+ export function dummy1792624480274() { }
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- export declare function dummy1792514240411(): void;
1
+ export declare function dummy1792624480304(): void;
@@ -1,2 +1,2 @@
1
- export function dummy1792514240411() { }
1
+ export function dummy1792624480304() { }
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- export declare function dummy1792514240438(): void;
1
+ export declare function dummy1792624480329(): void;
@@ -1,2 +1,2 @@
1
- export function dummy1792514240438() { }
1
+ export function dummy1792624480329() { }
2
2
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taon-dev/ui",
3
- "version": "21.0.16",
3
+ "version": "21.0.17",
4
4
  "scripts": {
5
5
  "taon init": "taon init",
6
6
  "taon start": "taon start",
@@ -15,4 +15,4 @@ export const APP_ID = 'com.domain.example.ui';
15
15
  export const BUILD_BASE_HREF = '';
16
16
  export const PROJECT_NPM_NAME = '@taon-dev/ui';
17
17
  export const CURRENT_PACKAGE_TAON_VERSION = 'v21';
18
- export const CURRENT_PACKAGE_VERSION = '21.0.16';
18
+ export const CURRENT_PACKAGE_VERSION = '21.0.17';
@@ -60,6 +60,8 @@ export class TaonDraggableButtonPanelComponent<TContext = unknown> implements On
60
60
  set state(state: TaonDraggableButtonPanelState) {
61
61
  this.currentState.set(state);
62
62
  }
63
+ @Input()
64
+ initialState: TaonDraggableButtonPanelState = TaonDraggableButtonPanelState.WINDOW;
63
65
  @Output()
64
66
  readonly stateChange = new EventEmitter<TaonDraggableButtonPanelState>();
65
67
  protected readonly forceFullScreen = signal(window.innerWidth < 900);
@@ -158,7 +160,7 @@ export class TaonDraggableButtonPanelComponent<TContext = unknown> implements On
158
160
  await this.saveStateToUrl(next);
159
161
  }
160
162
  protected open(): void {
161
- void this.setState(TaonDraggableButtonPanelState.WINDOW);
163
+ void this.setState(this.initialState);
162
164
  }
163
165
  protected toggle(): void {
164
166
  if (this.currentState() === this.State.CLICKABLE_BUTTON) {
@@ -245,6 +247,8 @@ export class TaonDraggableButtonPanelComponent<TContext = unknown> implements On
245
247
  const transitions: Record<TaonDraggableButtonPanelState, TaonDraggableButtonPanelState[]> = {
246
248
  [TaonDraggableButtonPanelState.CLICKABLE_BUTTON]: [
247
249
  TaonDraggableButtonPanelState.WINDOW,
250
+ TaonDraggableButtonPanelState.FULL_SCREEN_DRAGGABLE,
251
+ TaonDraggableButtonPanelState.FULL_SCREEN_LOCKED,
248
252
  ],
249
253
  [TaonDraggableButtonPanelState.WINDOW]: [
250
254
  TaonDraggableButtonPanelState.CLICKABLE_BUTTON,
@@ -15,4 +15,4 @@ export const APP_ID = 'com.domain.example.ui';
15
15
  export const BUILD_BASE_HREF = '';
16
16
  export const PROJECT_NPM_NAME = '@taon-dev/ui';
17
17
  export const CURRENT_PACKAGE_TAON_VERSION = 'v21';
18
- export const CURRENT_PACKAGE_VERSION = '21.0.16';
18
+ export const CURRENT_PACKAGE_VERSION = '21.0.17';
@@ -60,6 +60,8 @@ export class TaonDraggableButtonPanelComponent<TContext = unknown> implements On
60
60
  set state(state: TaonDraggableButtonPanelState) {
61
61
  this.currentState.set(state);
62
62
  }
63
+ @Input()
64
+ initialState: TaonDraggableButtonPanelState = TaonDraggableButtonPanelState.WINDOW;
63
65
  @Output()
64
66
  readonly stateChange = new EventEmitter<TaonDraggableButtonPanelState>();
65
67
  protected readonly forceFullScreen = signal(window.innerWidth < 900);
@@ -158,7 +160,7 @@ export class TaonDraggableButtonPanelComponent<TContext = unknown> implements On
158
160
  await this.saveStateToUrl(next);
159
161
  }
160
162
  protected open(): void {
161
- void this.setState(TaonDraggableButtonPanelState.WINDOW);
163
+ void this.setState(this.initialState);
162
164
  }
163
165
  protected toggle(): void {
164
166
  if (this.currentState() === this.State.CLICKABLE_BUTTON) {
@@ -245,6 +247,8 @@ export class TaonDraggableButtonPanelComponent<TContext = unknown> implements On
245
247
  const transitions: Record<TaonDraggableButtonPanelState, TaonDraggableButtonPanelState[]> = {
246
248
  [TaonDraggableButtonPanelState.CLICKABLE_BUTTON]: [
247
249
  TaonDraggableButtonPanelState.WINDOW,
250
+ TaonDraggableButtonPanelState.FULL_SCREEN_DRAGGABLE,
251
+ TaonDraggableButtonPanelState.FULL_SCREEN_LOCKED,
248
252
  ],
249
253
  [TaonDraggableButtonPanelState.WINDOW]: [
250
254
  TaonDraggableButtonPanelState.CLICKABLE_BUTTON,
@@ -15,4 +15,4 @@ export const APP_ID = 'com.domain.example.ui';
15
15
  export const BUILD_BASE_HREF = '';
16
16
  export const PROJECT_NPM_NAME = '@taon-dev/ui';
17
17
  export const CURRENT_PACKAGE_TAON_VERSION = 'v21';
18
- export const CURRENT_PACKAGE_VERSION = '21.0.16';
18
+ export const CURRENT_PACKAGE_VERSION = '21.0.17';
@@ -60,6 +60,8 @@ export class TaonDraggableButtonPanelComponent<TContext = unknown> implements On
60
60
  set state(state: TaonDraggableButtonPanelState) {
61
61
  this.currentState.set(state);
62
62
  }
63
+ @Input()
64
+ initialState: TaonDraggableButtonPanelState = TaonDraggableButtonPanelState.WINDOW;
63
65
  @Output()
64
66
  readonly stateChange = new EventEmitter<TaonDraggableButtonPanelState>();
65
67
  protected readonly forceFullScreen = signal(window.innerWidth < 900);
@@ -158,7 +160,7 @@ export class TaonDraggableButtonPanelComponent<TContext = unknown> implements On
158
160
  await this.saveStateToUrl(next);
159
161
  }
160
162
  protected open(): void {
161
- void this.setState(TaonDraggableButtonPanelState.WINDOW);
163
+ void this.setState(this.initialState);
162
164
  }
163
165
  protected toggle(): void {
164
166
  if (this.currentState() === this.State.CLICKABLE_BUTTON) {
@@ -245,6 +247,8 @@ export class TaonDraggableButtonPanelComponent<TContext = unknown> implements On
245
247
  const transitions: Record<TaonDraggableButtonPanelState, TaonDraggableButtonPanelState[]> = {
246
248
  [TaonDraggableButtonPanelState.CLICKABLE_BUTTON]: [
247
249
  TaonDraggableButtonPanelState.WINDOW,
250
+ TaonDraggableButtonPanelState.FULL_SCREEN_DRAGGABLE,
251
+ TaonDraggableButtonPanelState.FULL_SCREEN_LOCKED,
248
252
  ],
249
253
  [TaonDraggableButtonPanelState.WINDOW]: [
250
254
  TaonDraggableButtonPanelState.CLICKABLE_BUTTON,
@@ -15,4 +15,4 @@ export const APP_ID = 'com.domain.example.ui';
15
15
  export const BUILD_BASE_HREF = '';
16
16
  export const PROJECT_NPM_NAME = '@taon-dev/ui';
17
17
  export const CURRENT_PACKAGE_TAON_VERSION = 'v21';
18
- export const CURRENT_PACKAGE_VERSION = '21.0.16';
18
+ export const CURRENT_PACKAGE_VERSION = '21.0.17';
@@ -60,6 +60,8 @@ export class TaonDraggableButtonPanelComponent<TContext = unknown> implements On
60
60
  set state(state: TaonDraggableButtonPanelState) {
61
61
  this.currentState.set(state);
62
62
  }
63
+ @Input()
64
+ initialState: TaonDraggableButtonPanelState = TaonDraggableButtonPanelState.WINDOW;
63
65
  @Output()
64
66
  readonly stateChange = new EventEmitter<TaonDraggableButtonPanelState>();
65
67
  protected readonly forceFullScreen = signal(window.innerWidth < 900);
@@ -158,7 +160,7 @@ export class TaonDraggableButtonPanelComponent<TContext = unknown> implements On
158
160
  await this.saveStateToUrl(next);
159
161
  }
160
162
  protected open(): void {
161
- void this.setState(TaonDraggableButtonPanelState.WINDOW);
163
+ void this.setState(this.initialState);
162
164
  }
163
165
  protected toggle(): void {
164
166
  if (this.currentState() === this.State.CLICKABLE_BUTTON) {
@@ -245,6 +247,8 @@ export class TaonDraggableButtonPanelComponent<TContext = unknown> implements On
245
247
  const transitions: Record<TaonDraggableButtonPanelState, TaonDraggableButtonPanelState[]> = {
246
248
  [TaonDraggableButtonPanelState.CLICKABLE_BUTTON]: [
247
249
  TaonDraggableButtonPanelState.WINDOW,
250
+ TaonDraggableButtonPanelState.FULL_SCREEN_DRAGGABLE,
251
+ TaonDraggableButtonPanelState.FULL_SCREEN_LOCKED,
248
252
  ],
249
253
  [TaonDraggableButtonPanelState.WINDOW]: [
250
254
  TaonDraggableButtonPanelState.CLICKABLE_BUTTON,
@@ -68,7 +68,7 @@ const CURRENT_PACKAGE_TAON_VERSION = 'v21';
68
68
  /**
69
69
  * Autogenerated by current cli tool. Use *tnp release* to bump version.
70
70
  */
71
- const CURRENT_PACKAGE_VERSION = '21.0.16';
71
+ const CURRENT_PACKAGE_VERSION = '21.0.17';
72
72
  // THIS FILE IS GENERATED - DO NOT MODIFY
73
73
 
74
74
  const t$3 = Translation.for('src/lib/my-organization-proj.ts', { "src/lib/my-organization-proj.ts": { "en-US": async () => (await import('./ui-websql-my-organization-proj.ts.en-US.i18n.data-CoSik70Y.mjs')).default, "pl-PL": async () => (await import('./ui-websql-my-organization-proj.ts.pl-PL.i18n.data-BZPsT3Zk.mjs')).default } });
@@ -1718,6 +1718,7 @@ class TaonDraggableButtonPanelComponent {
1718
1718
  * Matrix parameter used for persisting the panel state.
1719
1719
  */
1720
1720
  this.stateParamName = 'state';
1721
+ this.initialState = TaonDraggableButtonPanelState.WINDOW;
1721
1722
  this.stateChange = new EventEmitter();
1722
1723
  this.forceFullScreen = signal(window.innerWidth < 900, ...(ngDevMode ? [{ debugName: "forceFullScreen" }] : []));
1723
1724
  this.resizeListener = () => {
@@ -1910,7 +1911,7 @@ class TaonDraggableButtonPanelComponent {
1910
1911
  //#endregion
1911
1912
  //#region methods / open
1912
1913
  open() {
1913
- void this.setState(TaonDraggableButtonPanelState.WINDOW);
1914
+ void this.setState(this.initialState);
1914
1915
  }
1915
1916
  toggle() {
1916
1917
  if (this.currentState() === this.State.CLICKABLE_BUTTON) {
@@ -2052,6 +2053,8 @@ class TaonDraggableButtonPanelComponent {
2052
2053
  const transitions = {
2053
2054
  [TaonDraggableButtonPanelState.CLICKABLE_BUTTON]: [
2054
2055
  TaonDraggableButtonPanelState.WINDOW,
2056
+ TaonDraggableButtonPanelState.FULL_SCREEN_DRAGGABLE,
2057
+ TaonDraggableButtonPanelState.FULL_SCREEN_LOCKED,
2055
2058
  ],
2056
2059
  [TaonDraggableButtonPanelState.WINDOW]: [
2057
2060
  TaonDraggableButtonPanelState.CLICKABLE_BUTTON,
@@ -2072,7 +2075,7 @@ class TaonDraggableButtonPanelComponent {
2072
2075
  return transitions[current].includes(next);
2073
2076
  }
2074
2077
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonDraggableButtonPanelComponent, deps: [{ token: i1.Router }], target: i0.ɵɵFactoryTarget.Component }); }
2075
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.9", type: TaonDraggableButtonPanelComponent, isStandalone: true, selector: "taon-draggable-button-panel", inputs: { context: "context", basePath: "basePath", buttonIcon: "buttonIcon", title: "title", outlet: "outlet", stateParamName: "stateParamName", state: "state", autoHideIcon: "autoHideIcon", iconTemplate: "iconTemplate", headerCenterTemplate: "headerCenterTemplate" }, outputs: { stateChange: "stateChange" }, providers: [TaonAdminMenuContext], viewQueries: [{ propertyName: "drag", first: true, predicate: CdkDrag, descendants: true }], ngImport: i0, template: "@if (currentState() === State.CLICKABLE_BUTTON || !autoHideIcon) {\n @if (iconTemplate) {\n <ng-container [ngTemplateOutlet]=\"iconTemplate\" />\n } @else {\n <button\n class=\"taon-admin-panel-toogle-open-button\"\n [class.taon-admin-panel-toogle-button-dimmer-opacity]=\"\n effectiveState() !== State.CLICKABLE_BUTTON\n \"\n mat-icon-button\n type=\"button\"\n [matTooltip]=\"title\"\n (click)=\"toggle()\">\n <mat-icon>{{ buttonIcon }}</mat-icon>\n </button>\n }\n}\n\n<section\n cdkDrag\n [hidden]=\"currentState() === State.CLICKABLE_BUTTON\"\n [cdkDragDisabled]=\"!isDraggingEnabled()\"\n class=\"taon-draggable-panel\"\n [class.taon-window]=\"effectiveState() === State.WINDOW\"\n [class.taon-window-full]=\"effectiveState() !== State.WINDOW\"\n [class.taon-fullscreen]=\"\n effectiveState() === State.FULL_SCREEN_DRAGGABLE ||\n effectiveState() === State.FULL_SCREEN_LOCKED\n \">\n <header\n cdkDragHandle\n (dblclick)=\"toogleFullscreen($event)\"\n class=\"taon-window-bar\">\n <!-- LEFT -->\n <div class=\"flex min-w-0 flex-1 items-center gap-2\">\n <mat-icon class=\"text-gray-500\"> admin_panel_settings </mat-icon>\n\n <span class=\"truncate font-medium\">\n {{ title }}\n </span>\n </div>\n\n <!-- EXACT CENTER -->\n <div class=\"flex min-w-0 items-center justify-center\">\n @if (headerCenterTemplate) {\n <ng-container [ngTemplateOutlet]=\"headerCenterTemplate\" />\n }\n </div>\n\n <!-- #region window buttons -->\n <div class=\"flex shrink-0 items-center\">\n <!-- Desktop-only window/fullscreen controls -->\n @if (!forceFullScreen()) {\n @if (currentState() !== State.WINDOW) {\n <button\n mat-icon-button\n type=\"button\"\n matTooltip=\"Window mode\"\n (click)=\"windowMode()\">\n <mat-icon>filter_none</mat-icon>\n </button>\n }\n\n @if (currentState() === State.WINDOW) {\n <button\n mat-icon-button\n type=\"button\"\n matTooltip=\"Full screen\"\n (click)=\"fullScreenDraggable()\">\n <mat-icon>fullscreen</mat-icon>\n </button>\n }\n\n @if (currentState() !== State.FULL_SCREEN_LOCKED) {\n <button\n mat-icon-button\n type=\"button\"\n matTooltip=\"Lock full screen\"\n (click)=\"lockFullScreen()\">\n <mat-icon>lock_open</mat-icon>\n </button>\n } @else {\n <button\n mat-icon-button\n type=\"button\"\n matTooltip=\"Unlock\"\n (click)=\"fullScreenDraggable()\">\n <mat-icon>lock</mat-icon>\n </button>\n }\n }\n\n <!-- ALWAYS available -->\n <button\n mat-icon-button\n type=\"button\"\n matTooltip=\"Close admin panel\"\n (click)=\"returnToButton()\">\n <mat-icon>close</mat-icon>\n </button>\n </div>\n <!-- #endregion -->\n </header>\n\n <div class=\"min-h-0 flex-1 overflow-hidden\">\n <ng-content />\n </div>\n</section>\n", styles: [":host{display:contents}.taon-admin-panel-toogle-button-dimmer-opacity{opacity:.6}.taon-draggable-panel{position:fixed;display:flex;flex-direction:column;min-width:320px;min-height:240px;overflow:hidden;background:#fff;border:1px solid #e5e7eb;box-shadow:0 20px 50px #00000026;z-index:1000}.taon-window{width:70vw;height:70vh;left:15vw;top:25vh;border-radius:6px}.taon-fullscreen{width:100vw;height:100dvh;left:0;top:0;border-radius:0}.taon-window-bar{height:48px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;flex-shrink:0;padding-left:12px;border-bottom:1px solid #e5e7eb;background:#fafafa;-webkit-user-select:none;user-select:none;cursor:move}\n"], dependencies: [{ kind: "directive", type: CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i3$2.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i3.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
2078
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.9", type: TaonDraggableButtonPanelComponent, isStandalone: true, selector: "taon-draggable-button-panel", inputs: { context: "context", basePath: "basePath", buttonIcon: "buttonIcon", title: "title", outlet: "outlet", stateParamName: "stateParamName", state: "state", initialState: "initialState", autoHideIcon: "autoHideIcon", iconTemplate: "iconTemplate", headerCenterTemplate: "headerCenterTemplate" }, outputs: { stateChange: "stateChange" }, providers: [TaonAdminMenuContext], viewQueries: [{ propertyName: "drag", first: true, predicate: CdkDrag, descendants: true }], ngImport: i0, template: "@if (currentState() === State.CLICKABLE_BUTTON || !autoHideIcon) {\n @if (iconTemplate) {\n <ng-container [ngTemplateOutlet]=\"iconTemplate\" />\n } @else {\n <button\n class=\"taon-admin-panel-toogle-open-button\"\n [class.taon-admin-panel-toogle-button-dimmer-opacity]=\"\n effectiveState() !== State.CLICKABLE_BUTTON\n \"\n mat-icon-button\n type=\"button\"\n [matTooltip]=\"title\"\n (click)=\"toggle()\">\n <mat-icon>{{ buttonIcon }}</mat-icon>\n </button>\n }\n}\n\n<section\n cdkDrag\n [hidden]=\"currentState() === State.CLICKABLE_BUTTON\"\n [cdkDragDisabled]=\"!isDraggingEnabled()\"\n class=\"taon-draggable-panel\"\n [class.taon-window]=\"effectiveState() === State.WINDOW\"\n [class.taon-window-full]=\"effectiveState() !== State.WINDOW\"\n [class.taon-fullscreen]=\"\n effectiveState() === State.FULL_SCREEN_DRAGGABLE ||\n effectiveState() === State.FULL_SCREEN_LOCKED\n \">\n <header\n cdkDragHandle\n (dblclick)=\"toogleFullscreen($event)\"\n class=\"taon-window-bar\">\n <!-- LEFT -->\n <div class=\"flex min-w-0 flex-1 items-center gap-2\">\n <mat-icon class=\"text-gray-500\"> admin_panel_settings </mat-icon>\n\n <span class=\"truncate font-medium\">\n {{ title }}\n </span>\n </div>\n\n <!-- EXACT CENTER -->\n <div class=\"flex min-w-0 items-center justify-center\">\n @if (headerCenterTemplate) {\n <ng-container [ngTemplateOutlet]=\"headerCenterTemplate\" />\n }\n </div>\n\n <!-- #region window buttons -->\n <div class=\"flex shrink-0 items-center\">\n <!-- Desktop-only window/fullscreen controls -->\n @if (!forceFullScreen()) {\n @if (currentState() !== State.WINDOW) {\n <button\n mat-icon-button\n type=\"button\"\n matTooltip=\"Window mode\"\n (click)=\"windowMode()\">\n <mat-icon>filter_none</mat-icon>\n </button>\n }\n\n @if (currentState() === State.WINDOW) {\n <button\n mat-icon-button\n type=\"button\"\n matTooltip=\"Full screen\"\n (click)=\"fullScreenDraggable()\">\n <mat-icon>fullscreen</mat-icon>\n </button>\n }\n\n @if (currentState() !== State.FULL_SCREEN_LOCKED) {\n <button\n mat-icon-button\n type=\"button\"\n matTooltip=\"Lock full screen\"\n (click)=\"lockFullScreen()\">\n <mat-icon>lock_open</mat-icon>\n </button>\n } @else {\n <button\n mat-icon-button\n type=\"button\"\n matTooltip=\"Unlock\"\n (click)=\"fullScreenDraggable()\">\n <mat-icon>lock</mat-icon>\n </button>\n }\n }\n\n <!-- ALWAYS available -->\n <button\n mat-icon-button\n type=\"button\"\n matTooltip=\"Close admin panel\"\n (click)=\"returnToButton()\">\n <mat-icon>close</mat-icon>\n </button>\n </div>\n <!-- #endregion -->\n </header>\n\n <div class=\"min-h-0 flex-1 overflow-hidden\">\n <ng-content />\n </div>\n</section>\n", styles: [":host{display:contents}.taon-admin-panel-toogle-button-dimmer-opacity{opacity:.6}.taon-draggable-panel{position:fixed;display:flex;flex-direction:column;min-width:320px;min-height:240px;overflow:hidden;background:#fff;border:1px solid #e5e7eb;box-shadow:0 20px 50px #00000026;z-index:1000}.taon-window{width:70vw;height:70vh;left:15vw;top:25vh;border-radius:6px}.taon-fullscreen{width:100vw;height:100dvh;left:0;top:0;border-radius:0}.taon-window-bar{height:48px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;flex-shrink:0;padding-left:12px;border-bottom:1px solid #e5e7eb;background:#fafafa;-webkit-user-select:none;user-select:none;cursor:move}\n"], dependencies: [{ kind: "directive", type: CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i3$2.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i3.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
2076
2079
  }
2077
2080
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: TaonDraggableButtonPanelComponent, decorators: [{
2078
2081
  type: Component,
@@ -2102,6 +2105,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImpor
2102
2105
  type: Input
2103
2106
  }], state: [{
2104
2107
  type: Input
2108
+ }], initialState: [{
2109
+ type: Input
2105
2110
  }], stateChange: [{
2106
2111
  type: Output
2107
2112
  }], autoHideIcon: [{