@ojiepermana/angular 21.1.30 → 21.2.2
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/README.md +29 -42
- package/fesm2022/ojiepermana-angular-chart.mjs +72 -72
- package/fesm2022/ojiepermana-angular-component.mjs +1738 -815
- package/fesm2022/ojiepermana-angular-component.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-layout.mjs +18 -18
- package/fesm2022/ojiepermana-angular-navigation.mjs +16 -16
- package/fesm2022/ojiepermana-angular-navigation.mjs.map +1 -1
- package/fesm2022/ojiepermana-angular-theme.mjs +3 -3
- package/fesm2022/ojiepermana-angular.mjs +0 -1
- package/fesm2022/ojiepermana-angular.mjs.map +1 -1
- package/generator/api/bin/schematics/ng-add/index.js +37 -14
- package/package.json +7 -17
- package/theme/styles/themes/tailwind.css +1 -1
- package/types/ojiepermana-angular-component.d.ts +381 -86
- package/brand/etos/README.md +0 -273
- package/brand/etos/package.json +0 -4
- package/etos/styles/color.css +0 -73
- package/etos/styles/index.css +0 -7
- package/etos/styles/layout.css +0 -21
- package/etos/styles/package.css +0 -15
- package/etos/styles/style.css +0 -53
- package/fesm2022/ojiepermana-angular-brand-etos.mjs +0 -1060
- package/fesm2022/ojiepermana-angular-brand-etos.mjs.map +0 -1
- package/theme/styles/etos.css +0 -6
- package/types/ojiepermana-angular-brand-etos.d.ts +0 -162
|
@@ -320,10 +320,10 @@ class ThemeService {
|
|
|
320
320
|
/* ignore */
|
|
321
321
|
}
|
|
322
322
|
}
|
|
323
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
324
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
323
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: ThemeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
324
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: ThemeService, providedIn: 'root' });
|
|
325
325
|
}
|
|
326
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
326
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: ThemeService, decorators: [{
|
|
327
327
|
type: Injectable,
|
|
328
328
|
args: [{ providedIn: 'root' }]
|
|
329
329
|
}], ctorParameters: () => [] });
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
* - `@ojiepermana/angular/layout` — layout primitives (WIP)
|
|
8
8
|
* - `@ojiepermana/angular/navigation` — navigation primitives (WIP)
|
|
9
9
|
* - `@ojiepermana/angular/chart` — chart primitives (WIP)
|
|
10
|
-
* - `@ojiepermana/angular/etos` — Etos brand umbrella (theme/layout/navigation composition)
|
|
11
10
|
* - `@ojiepermana/angular/generator/api` — OpenAPI → Angular SDK generator (schematics + config types)
|
|
12
11
|
*
|
|
13
12
|
* Consumers should import from the subpaths directly.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ojiepermana-angular.mjs","sources":["../../../projects/angular/public-api.ts","../../../projects/angular/ojiepermana-angular.ts"],"sourcesContent":["/*\n * Public API Surface of @ojiepermana/angular (primary entry)\n *\n * Components and utilities are shipped via subpath entries:\n * - `@ojiepermana/angular/theme` — design tokens, CSS variables, `ThemeService`, `provideMaterialTheme`\n * - `@ojiepermana/angular/component` — shadcn/ui primitives on top of Material M3\n * - `@ojiepermana/angular/layout` — layout primitives (WIP)\n * - `@ojiepermana/angular/navigation` — navigation primitives (WIP)\n * - `@ojiepermana/angular/chart` — chart primitives (WIP)\n * - `@ojiepermana/angular/
|
|
1
|
+
{"version":3,"file":"ojiepermana-angular.mjs","sources":["../../../projects/angular/public-api.ts","../../../projects/angular/ojiepermana-angular.ts"],"sourcesContent":["/*\n * Public API Surface of @ojiepermana/angular (primary entry)\n *\n * Components and utilities are shipped via subpath entries:\n * - `@ojiepermana/angular/theme` — design tokens, CSS variables, `ThemeService`, `provideMaterialTheme`\n * - `@ojiepermana/angular/component` — shadcn/ui primitives on top of Material M3\n * - `@ojiepermana/angular/layout` — layout primitives (WIP)\n * - `@ojiepermana/angular/navigation` — navigation primitives (WIP)\n * - `@ojiepermana/angular/chart` — chart primitives (WIP)\n * - `@ojiepermana/angular/generator/api` — OpenAPI → Angular SDK generator (schematics + config types)\n *\n * Consumers should import from the subpaths directly.\n */\n\nexport const MATERIAL_VERSION = '0.0.1';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":"AAAA;;;;;;;;;;;;AAYG;AAEI,MAAM,gBAAgB,GAAG;;ACdhC;;AAEG;;;;"}
|
|
@@ -4,6 +4,7 @@ exports.ngAdd = ngAdd;
|
|
|
4
4
|
const node_fs_1 = require("node:fs");
|
|
5
5
|
const node_path_1 = require("node:path");
|
|
6
6
|
const tasks_1 = require("@angular-devkit/schematics/tasks");
|
|
7
|
+
const semver_1 = require("semver");
|
|
7
8
|
function ngAdd(options = {}) {
|
|
8
9
|
return (tree, context) => {
|
|
9
10
|
const manifest = loadLibraryManifest();
|
|
@@ -16,9 +17,18 @@ function ngAdd(options = {}) {
|
|
|
16
17
|
workspacePackageJson.dependencies ??= {};
|
|
17
18
|
let changed = false;
|
|
18
19
|
for (const dependency of requiredDependencies) {
|
|
19
|
-
const
|
|
20
|
-
if (
|
|
21
|
-
|
|
20
|
+
const existingDependency = findExistingDependency(workspacePackageJson, dependency.name);
|
|
21
|
+
if (existingDependency) {
|
|
22
|
+
if (shouldUpdateDependency(existingDependency.version, dependency.version)) {
|
|
23
|
+
const section = workspacePackageJson[existingDependency.section] ?? {};
|
|
24
|
+
section[dependency.name] = dependency.version;
|
|
25
|
+
workspacePackageJson[existingDependency.section] = section;
|
|
26
|
+
changed = true;
|
|
27
|
+
context.logger.info(`[ng-add] updated ${dependency.name} from ${existingDependency.version} to ${dependency.version} in ${existingDependency.section}.`);
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
context.logger.info(`[ng-add] keeping existing ${dependency.name}@${existingDependency.version} from ${existingDependency.section}.`);
|
|
31
|
+
}
|
|
22
32
|
continue;
|
|
23
33
|
}
|
|
24
34
|
workspacePackageJson.dependencies[dependency.name] = dependency.version;
|
|
@@ -88,20 +98,33 @@ function writeWorkspacePackageJson(tree, packageJson) {
|
|
|
88
98
|
tree.create('/package.json', content);
|
|
89
99
|
}
|
|
90
100
|
}
|
|
91
|
-
function
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
101
|
+
function findExistingDependency(packageJson, dependencyName) {
|
|
102
|
+
const sections = [
|
|
103
|
+
'dependencies',
|
|
104
|
+
'devDependencies',
|
|
105
|
+
'peerDependencies',
|
|
106
|
+
'optionalDependencies',
|
|
107
|
+
];
|
|
108
|
+
for (const section of sections) {
|
|
109
|
+
const version = packageJson[section]?.[dependencyName];
|
|
110
|
+
if (version) {
|
|
111
|
+
return { section, version };
|
|
112
|
+
}
|
|
97
113
|
}
|
|
98
|
-
|
|
99
|
-
|
|
114
|
+
return null;
|
|
115
|
+
}
|
|
116
|
+
function shouldUpdateDependency(existingVersion, requiredVersion) {
|
|
117
|
+
const existing = (0, semver_1.validRange)(existingVersion);
|
|
118
|
+
const required = (0, semver_1.validRange)(requiredVersion);
|
|
119
|
+
if (!existing || !required) {
|
|
120
|
+
return false;
|
|
100
121
|
}
|
|
101
|
-
|
|
102
|
-
|
|
122
|
+
const existingMinimum = (0, semver_1.minVersion)(existing);
|
|
123
|
+
const requiredMinimum = (0, semver_1.minVersion)(required);
|
|
124
|
+
if (!existingMinimum || !requiredMinimum) {
|
|
125
|
+
return false;
|
|
103
126
|
}
|
|
104
|
-
return
|
|
127
|
+
return existingMinimum.compare(requiredMinimum) < 0;
|
|
105
128
|
}
|
|
106
129
|
function sortSection(section) {
|
|
107
130
|
return Object.fromEntries(Object.entries(section).sort(([left], [right]) => left.localeCompare(right)));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ojiepermana/angular",
|
|
3
|
-
"version": "21.
|
|
3
|
+
"version": "21.2.2",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/ojiepermana/angular.git"
|
|
@@ -16,7 +16,8 @@
|
|
|
16
16
|
"@angular/router": "^21.2.0",
|
|
17
17
|
"@angular/cdk": "^21.2.7",
|
|
18
18
|
"@angular/material": "^21.2.7",
|
|
19
|
-
"rxjs": "^7.8.0"
|
|
19
|
+
"rxjs": "^7.8.0",
|
|
20
|
+
"tailwindcss": "^4.3.0"
|
|
20
21
|
},
|
|
21
22
|
"peerDependenciesMeta": {
|
|
22
23
|
"@angular/forms": {
|
|
@@ -39,7 +40,9 @@
|
|
|
39
40
|
"d3-array": "^3.2.4",
|
|
40
41
|
"d3-scale": "^4.0.2",
|
|
41
42
|
"d3-shape": "^3.2.0",
|
|
43
|
+
"embla-carousel": "^8.6.0",
|
|
42
44
|
"marked": "^18.0.2",
|
|
45
|
+
"semver": "^7.7.4",
|
|
43
46
|
"tailwind-merge": "^3.5.0",
|
|
44
47
|
"tslib": "^2.8.1",
|
|
45
48
|
"yaml": "^2.8.3"
|
|
@@ -55,7 +58,8 @@
|
|
|
55
58
|
"@angular/router": "^21.2.9",
|
|
56
59
|
"@angular/cdk": "^21.2.7",
|
|
57
60
|
"@angular/material": "^21.2.7",
|
|
58
|
-
"rxjs": "~7.8.2"
|
|
61
|
+
"rxjs": "~7.8.2",
|
|
62
|
+
"tailwindcss": "^4.3.0"
|
|
59
63
|
}
|
|
60
64
|
},
|
|
61
65
|
"publishConfig": {
|
|
@@ -65,8 +69,6 @@
|
|
|
65
69
|
"sideEffects": false,
|
|
66
70
|
"schematics": "./collection.json",
|
|
67
71
|
"exports": {
|
|
68
|
-
"./etos/styles": "./etos/styles/package.css",
|
|
69
|
-
"./etos/styles/*": "./etos/styles/*",
|
|
70
72
|
"./theme/styles": "./theme/styles/index.css",
|
|
71
73
|
"./theme/styles/*": "./theme/styles/*",
|
|
72
74
|
"./theme/tailwind/theme.css": "./theme/styles/themes/tailwind.css",
|
|
@@ -101,18 +103,6 @@
|
|
|
101
103
|
"types": "./types/ojiepermana-angular-theme.d.ts",
|
|
102
104
|
"default": "./fesm2022/ojiepermana-angular-theme.mjs"
|
|
103
105
|
},
|
|
104
|
-
"./etos": {
|
|
105
|
-
"types": "./types/ojiepermana-angular-brand-etos.d.ts",
|
|
106
|
-
"default": "./fesm2022/ojiepermana-angular-brand-etos.mjs"
|
|
107
|
-
},
|
|
108
|
-
"./etos/shell/layout": {
|
|
109
|
-
"types": "./types/ojiepermana-angular-brand-etos.d.ts",
|
|
110
|
-
"default": "./fesm2022/ojiepermana-angular-brand-etos.mjs"
|
|
111
|
-
},
|
|
112
|
-
"./etos/shell/pages": {
|
|
113
|
-
"types": "./types/ojiepermana-angular-brand-etos.d.ts",
|
|
114
|
-
"default": "./fesm2022/ojiepermana-angular-brand-etos.mjs"
|
|
115
|
-
},
|
|
116
106
|
"./layout/shell/pages": {
|
|
117
107
|
"types": "./types/ojiepermana-angular-layout.d.ts",
|
|
118
108
|
"default": "./fesm2022/ojiepermana-angular-layout.mjs"
|