@zambon-dev/ui 0.0.1-bootstrap.0 → 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.
- package/CHANGELOG.md +4 -0
- package/README.md +81 -81
- package/fesm2022/zambon-dev-ui-framework.mjs +5943 -3980
- package/fesm2022/zambon-dev-ui-framework.mjs.map +1 -1
- package/fesm2022/zambon-dev-ui-library.mjs +5787 -4272
- package/fesm2022/zambon-dev-ui-library.mjs.map +1 -1
- package/fesm2022/zambon-dev-ui-shared.mjs +2505 -1790
- package/fesm2022/zambon-dev-ui-shared.mjs.map +1 -1
- package/fesm2022/zambon-dev-ui-testing.mjs +73 -77
- package/fesm2022/zambon-dev-ui-testing.mjs.map +1 -1
- package/fesm2022/zambon-dev-ui.mjs +3 -8
- package/i18n/framework/en.json +63 -63
- package/i18n/framework/pt.json +63 -63
- package/i18n/shared/external-content/en.json +12 -12
- package/i18n/shared/external-content/pt.json +12 -12
- package/i18n/shared/language-selector/en.json +5 -5
- package/i18n/shared/language-selector/pt.json +5 -5
- package/i18n/shared/login/en.json +14 -14
- package/i18n/shared/login/pt.json +14 -14
- package/i18n/shared/operations-history/en.json +5 -5
- package/i18n/shared/operations-history/pt.json +5 -5
- package/i18n/shared/services-history/en.json +14 -14
- package/i18n/shared/services-history/pt.json +14 -14
- package/i18n/shared/top-bar/en.json +7 -7
- package/i18n/shared/top-bar/pt.json +7 -7
- package/package.json +1 -1
- package/styles/common.scss +10 -10
- package/styles/components/button.scss +101 -101
- package/styles/components/card.scss +13 -13
- package/styles/components/dropdown-static.scss +35 -35
- package/styles/components/input-group.scss +44 -44
- package/styles/components/input.scss +99 -99
- package/styles/components/label.scss +3 -3
- package/styles/components/row.scss +48 -48
- package/styles/mixins/background.scss +31 -31
- package/styles/theme.css +75 -75
- package/styles/variables.scss +60 -60
- package/types/zambon-dev-ui-framework.d.ts +1459 -1029
- package/types/zambon-dev-ui-library.d.ts +1607 -1165
- package/types/zambon-dev-ui-shared.d.ts +563 -543
- package/types/zambon-dev-ui-testing.d.ts +25 -30
- package/types/zambon-dev-ui.d.ts +3 -3
- package/fesm2022/zambon-dev-ui.mjs.map +0 -1
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import * as i0 from
|
|
2
|
-
import {
|
|
3
|
-
import { ComponentFixture } from
|
|
4
|
-
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { ComponentRef, Type, ViewContainerRef } from "@angular/core";
|
|
3
|
+
import { ComponentFixture } from "@angular/core/testing";
|
|
5
4
|
/**
|
|
6
5
|
* A host that behaves exactly like a consumer application's own component: it declares no
|
|
7
6
|
* change-detection strategy, which in Angular 22 means `OnPush`. Once it has rendered it goes
|
|
@@ -13,30 +12,29 @@ import { ComponentFixture } from '@angular/core/testing';
|
|
|
13
12
|
* cannot update its DOM underneath this host, which is precisely the failure that a plain
|
|
14
13
|
* `TestBed.createComponent` + `fixture.detectChanges()` cannot express.
|
|
15
14
|
*/
|
|
16
|
-
declare class InertHostComponent {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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>;
|
|
20
19
|
}
|
|
21
|
-
|
|
22
20
|
/** A component rendered beneath {@link InertHostComponent}, plus the handles a spec needs. */
|
|
23
|
-
interface OnPushRender<TComponent> {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
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;
|
|
40
38
|
}
|
|
41
39
|
/**
|
|
42
40
|
* Renders `type` beneath a clean `OnPush` ancestor and returns once it has painted for the
|
|
@@ -50,7 +48,4 @@ interface OnPushRender<TComponent> {
|
|
|
50
48
|
* 3. Assert the DOM, never a field. `expect(component.loading).toBe(false)` passes on a blank
|
|
51
49
|
* screen.
|
|
52
50
|
*/
|
|
53
|
-
declare function renderUnderOnPush<TComponent>(type: Type<TComponent>, inputs?: Record<string, unknown>): OnPushRender<TComponent>;
|
|
54
|
-
|
|
55
|
-
export { InertHostComponent, renderUnderOnPush };
|
|
56
|
-
export type { OnPushRender };
|
|
51
|
+
export declare function renderUnderOnPush<TComponent>(type: Type<TComponent>, inputs?: Record<string, unknown>): OnPushRender<TComponent>;
|
package/types/zambon-dev-ui.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
1
|
+
export * from "@zambon-dev/ui/library";
|
|
2
|
+
export * from "@zambon-dev/ui/framework";
|
|
3
|
+
export * from "@zambon-dev/ui/shared";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"zambon-dev-ui.mjs","sources":["../../../../libs/ui/src/zambon-dev-ui.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAAA;;AAEG"}
|