@zambon-dev/ui 0.0.0-stage → 1.0.0

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 (42) hide show
  1. package/CHANGELOG.md +2329 -0
  2. package/README.md +80 -2
  3. package/fesm2022/zambon-dev-ui-framework.mjs +5960 -0
  4. package/fesm2022/zambon-dev-ui-framework.mjs.map +1 -0
  5. package/fesm2022/zambon-dev-ui-library.mjs +5795 -0
  6. package/fesm2022/zambon-dev-ui-library.mjs.map +1 -0
  7. package/fesm2022/zambon-dev-ui-shared.mjs +2517 -0
  8. package/fesm2022/zambon-dev-ui-shared.mjs.map +1 -0
  9. package/fesm2022/zambon-dev-ui-testing.mjs +76 -0
  10. package/fesm2022/zambon-dev-ui-testing.mjs.map +1 -0
  11. package/fesm2022/zambon-dev-ui.mjs +3 -0
  12. package/i18n/framework/en.json +63 -0
  13. package/i18n/framework/pt.json +63 -0
  14. package/i18n/shared/external-content/en.json +12 -0
  15. package/i18n/shared/external-content/pt.json +12 -0
  16. package/i18n/shared/language-selector/en.json +5 -0
  17. package/i18n/shared/language-selector/pt.json +5 -0
  18. package/i18n/shared/login/en.json +14 -0
  19. package/i18n/shared/login/pt.json +14 -0
  20. package/i18n/shared/operations-history/en.json +5 -0
  21. package/i18n/shared/operations-history/pt.json +5 -0
  22. package/i18n/shared/services-history/en.json +14 -0
  23. package/i18n/shared/services-history/pt.json +14 -0
  24. package/i18n/shared/top-bar/en.json +7 -0
  25. package/i18n/shared/top-bar/pt.json +7 -0
  26. package/package.json +106 -4
  27. package/styles/common.scss +10 -0
  28. package/styles/components/button.scss +101 -0
  29. package/styles/components/card.scss +13 -0
  30. package/styles/components/dropdown-static.scss +35 -0
  31. package/styles/components/input-group.scss +44 -0
  32. package/styles/components/input.scss +99 -0
  33. package/styles/components/label.scss +3 -0
  34. package/styles/components/row.scss +48 -0
  35. package/styles/mixins/background.scss +31 -0
  36. package/styles/theme.css +75 -0
  37. package/styles/variables.scss +60 -0
  38. package/types/zambon-dev-ui-framework.d.ts +1496 -0
  39. package/types/zambon-dev-ui-library.d.ts +1675 -0
  40. package/types/zambon-dev-ui-shared.d.ts +675 -0
  41. package/types/zambon-dev-ui-testing.d.ts +51 -0
  42. package/types/zambon-dev-ui.d.ts +3 -0
@@ -0,0 +1,51 @@
1
+ import * as i0 from "@angular/core";
2
+ import { ComponentRef, Type, ViewContainerRef } from "@angular/core";
3
+ import { ComponentFixture } from "@angular/core/testing";
4
+ /**
5
+ * A host that behaves exactly like a consumer application's own component: it declares no
6
+ * change-detection strategy, which in Angular 22 means `OnPush`. Once it has rendered it goes
7
+ * clean, and a top-down pass skips it -- `detectChangesInView` only refreshes a view in Global
8
+ * mode when it is `CheckAlways`, which an `OnPush` view never is, and then descends in Targeted
9
+ * mode where nothing below is reached either unless the path was marked.
10
+ *
11
+ * That is what makes it an oracle. A component that mutates state without telling Angular
12
+ * cannot update its DOM underneath this host, which is precisely the failure that a plain
13
+ * `TestBed.createComponent` + `fixture.detectChanges()` cannot express.
14
+ */
15
+ export declare class InertHostComponent {
16
+ readonly outlet: import("@angular/core").Signal<ViewContainerRef>;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<InertHostComponent, never>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<InertHostComponent, "lib-inert-host", never, {}, {}, never, never, true, never>;
19
+ }
20
+ /** A component rendered beneath {@link InertHostComponent}, plus the handles a spec needs. */
21
+ export interface OnPushRender<TComponent> {
22
+ /** The component under test. */
23
+ readonly component: TComponent;
24
+ readonly componentRef: ComponentRef<TComponent>;
25
+ /** The component under test's own host element -- host bindings included. */
26
+ readonly element: HTMLElement;
27
+ /** The fixture whose root is the inert host. */
28
+ readonly fixture: ComponentFixture<InertHostComponent>;
29
+ /** Binds an input the way a template would, notifying Angular. */
30
+ setInput(name: string, value: unknown): void;
31
+ /**
32
+ * Runs a change-detection pass that a clean `OnPush` ancestor can still short-circuit.
33
+ *
34
+ * Call this and never `fixture.detectChanges()` yourself -- under a zoneless test environment
35
+ * that call forces every test view and hands the component a refresh it did not earn.
36
+ */
37
+ tick(): void;
38
+ }
39
+ /**
40
+ * Renders `type` beneath a clean `OnPush` ancestor and returns once it has painted for the
41
+ * first time.
42
+ *
43
+ * Three rules make this an oracle rather than decoration:
44
+ *
45
+ * 1. Drive the source **after** this call returns. Before the first paint every strategy renders.
46
+ * 2. The source must be genuinely asynchronous. `of(...)` emits inside `ngOnInit`, i.e. inside
47
+ * the first paint, so the failure cannot occur. Use a `Subject` you control.
48
+ * 3. Assert the DOM, never a field. `expect(component.loading).toBe(false)` passes on a blank
49
+ * screen.
50
+ */
51
+ export declare function renderUnderOnPush<TComponent>(type: Type<TComponent>, inputs?: Record<string, unknown>): OnPushRender<TComponent>;
@@ -0,0 +1,3 @@
1
+ export * from "@zambon-dev/ui/library";
2
+ export * from "@zambon-dev/ui/framework";
3
+ export * from "@zambon-dev/ui/shared";