@molecule/app-related-items-card-angular 0.0.0-stage → 0.0.1-stage

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.
@@ -0,0 +1,46 @@
1
+ /**
2
+ * Types of `@molecule/app-related-items-card-angular` — the Angular
3
+ * counterpart of `@molecule/app-related-items-card-react`, same props and DOM.
4
+ *
5
+ * @module
6
+ */
7
+ /**
8
+ * Props accepted by {@link RelatedItemsCard} — the same props
9
+ * `@molecule/app-related-items-card-react` accepts. Node-valued props
10
+ * (`title`, `icon`, `emptyState`, `headerActions`) are projected content in
11
+ * Angular (an input cannot carry a node): pass a string value through the
12
+ * input, and element content in the host template as `[slot=<name>]` content.
13
+ */
14
+ export interface RelatedItemsCardProps<T> {
15
+ /**
16
+ * Card heading. A string or number renders as text; element content is
17
+ * projected as `[slot=title]` content instead.
18
+ */
19
+ title?: unknown;
20
+ /** Optional leading icon, projected as `[slot=icon]` content. */
21
+ icon?: unknown;
22
+ /** Items to render. */
23
+ items: readonly T[];
24
+ /**
25
+ * Render function for each item. Angular passes a `TemplateRef` whose
26
+ * context carries the item as `$implicit` (and `a0`, the way the conformance
27
+ * kit maps a React render function) and the index as `a1`.
28
+ */
29
+ renderItem?: unknown;
30
+ /** Called when an item row is clicked (if applicable). */
31
+ onItemClick?: (item: T, index: number) => void;
32
+ /**
33
+ * Rendered when `items` is empty. A string or number renders as text;
34
+ * element content is projected as `[slot=emptyState]` content instead.
35
+ */
36
+ emptyState?: unknown;
37
+ /** Optional "View all" link rendered in the header. */
38
+ viewAllHref?: string;
39
+ /** Optional right-aligned header actions, projected as `[slot=headerActions]` content. */
40
+ headerActions?: unknown;
41
+ /** Extra classes on the Card. */
42
+ className?: string;
43
+ /** `data-mol-id` for AI-agent selectors. */
44
+ dataMolId?: string;
45
+ }
46
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;;;;GAMG;AACH,MAAM,WAAW,qBAAqB,CAAC,CAAC;IACtC;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,iEAAiE;IACjE,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,uBAAuB;IACvB,KAAK,EAAE,SAAS,CAAC,EAAE,CAAA;IACnB;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,0DAA0D;IAC1D,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAC9C;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,uDAAuD;IACvD,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,0FAA0F;IAC1F,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,iCAAiC;IACjC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,4CAA4C;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB"}
package/dist/types.js ADDED
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Types of `@molecule/app-related-items-card-angular` — the Angular
3
+ * counterpart of `@molecule/app-related-items-card-react`, same props and DOM.
4
+ *
5
+ * @module
6
+ */
7
+ export {};
8
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG"}
package/package.json CHANGED
@@ -1,6 +1,71 @@
1
1
  {
2
2
  "name": "@molecule/app-related-items-card-angular",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.0.1-stage",
4
+ "description": "Card container for cross-linked items: company→deals, contact→notes, ticket→articles",
5
+ "homepage": "https://www.molecule.dev/packages/app-related-items-card-angular",
6
+ "type": "module",
7
+ "main": "dist/index.js",
8
+ "types": "dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.js"
13
+ }
14
+ },
15
+ "files": [
16
+ "dist",
17
+ "README.md"
18
+ ],
19
+ "scripts": {
20
+ "build": "ngc",
21
+ "dev": "ngc --watch",
22
+ "test": "vitest run",
23
+ "test:watch": "vitest"
24
+ },
25
+ "keywords": [
26
+ "molecule",
27
+ "related-items-card",
28
+ "angular"
29
+ ],
30
+ "author": "Molecule Dev, Inc. (https://molecule.dev)",
31
+ "license": "Apache-2.0",
32
+ "repository": {
33
+ "type": "git",
34
+ "url": "https://github.com/molecule-dev/molecule.git",
35
+ "directory": "packages/app/features/related-items-card-angular"
36
+ },
37
+ "engines": {
38
+ "node": ">=20"
39
+ },
40
+ "bugs": "https://github.com/molecule-dev/molecule/issues",
41
+ "publishConfig": {
42
+ "access": "public"
43
+ },
44
+ "peerDependencies": {
45
+ "@angular/common": "^22.0.0",
46
+ "@angular/core": "^22.0.0",
47
+ "@angular/platform-browser": "^22.0.0",
48
+ "@molecule/app-angular": "^3.5.0",
49
+ "@molecule/app-ui": "^1.0.1",
50
+ "@molecule/app-ui-angular": "^1.1.0"
51
+ },
52
+ "devDependencies": {
53
+ "@angular/common": "22.2.3",
54
+ "@angular/compiler": "22.2.3",
55
+ "@angular/compiler-cli": "22.2.3",
56
+ "@angular/core": "22.2.3",
57
+ "@angular/platform-browser": "22.2.3",
58
+ "@molecule/app-angular": "3.6.0",
59
+ "@molecule/app-framework-conformance": "0.0.0",
60
+ "@molecule/app-i18n": "1.2.1",
61
+ "@molecule/app-icons": "1.0.4",
62
+ "@molecule/app-ui": "1.3.11",
63
+ "@molecule/app-ui-angular": "1.1.2",
64
+ "@types/node": "26.6.5",
65
+ "jsdom": "30.1.3",
66
+ "rxjs": "7.8.2",
67
+ "typescript": "6.0.3",
68
+ "vitest": "4.1.12",
69
+ "zone.js": "0.16.3"
70
+ }
71
+ }