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