@spartan-ng/cli 0.0.1-alpha.713 → 0.0.1-alpha.715
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/package.json +1 -1
- package/src/generators/healthcheck/generator.js +7 -2
- package/src/generators/healthcheck/generator.js.map +1 -1
- package/src/generators/healthcheck/healthchecks/version.js +19 -8
- package/src/generators/healthcheck/healthchecks/version.js.map +1 -1
- package/src/generators/healthcheck/utils/runner.js +9 -1
- package/src/generators/healthcheck/utils/runner.js.map +1 -1
- package/src/generators/migrate-helm-libraries/generator.js +0 -4
- package/src/generators/migrate-helm-libraries/generator.js.map +1 -1
- package/src/generators/migrate-hlm/generator.js +2 -1
- package/src/generators/migrate-hlm/generator.js.map +1 -1
- package/src/generators/ui/libs/drawer/files/index.ts.template +34 -0
- package/src/generators/ui/libs/drawer/files/lib/hlm-drawer-close.ts.template +9 -0
- package/src/generators/ui/libs/drawer/files/lib/hlm-drawer-content.ts.template +36 -0
- package/src/generators/ui/libs/drawer/files/lib/hlm-drawer-description.ts.template +14 -0
- package/src/generators/ui/libs/drawer/files/lib/hlm-drawer-footer.ts.template +12 -0
- package/src/generators/ui/libs/drawer/files/lib/hlm-drawer-header.ts.template +12 -0
- package/src/generators/ui/libs/drawer/files/lib/hlm-drawer-overlay.ts.template +27 -0
- package/src/generators/ui/libs/drawer/files/lib/hlm-drawer-portal.ts.template +8 -0
- package/src/generators/ui/libs/drawer/files/lib/hlm-drawer-title.ts.template +14 -0
- package/src/generators/ui/libs/drawer/files/lib/hlm-drawer-trigger.ts.template +9 -0
- package/src/generators/ui/libs/drawer/files/lib/hlm-drawer.ts.template +29 -0
- package/src/generators/ui/libs/drawer/generator.d.ts +3 -0
- package/src/generators/ui/libs/drawer/generator.js +9 -0
- package/src/generators/ui/libs/drawer/generator.js.map +1 -0
- package/src/generators/ui/libs/dropdown-menu/files/lib/hlm-dropdown-menu-item-sub-indicator.ts.template +1 -1
- package/src/generators/ui/libs/menubar/files/lib/hlm-menubar-trigger.ts.template +1 -1
- package/src/generators/ui/libs/menubar/files/lib/hlm-menubar.ts.template +1 -1
- package/src/generators/ui/libs/native-select/files/lib/hlm-native-select-opt-group.ts.template +7 -2
- package/src/generators/ui/libs/native-select/files/lib/hlm-native-select-option.ts.template +7 -2
- package/src/generators/ui/style-luma.css +2 -6
- package/src/generators/ui/style-lyra.css +2 -6
- package/src/generators/ui/style-maia.css +2 -6
- package/src/generators/ui/style-mira.css +2 -6
- package/src/generators/ui/style-nova.css +2 -6
- package/src/generators/ui/style-vega.css +2 -6
- package/src/generators/ui/supported-ui-libraries.json +48 -40
- package/src/utils/config.js +6 -6
- package/src/utils/config.js.map +1 -1
- package/src/utils/version-utils.js +2 -2
- package/src/utils/version-utils.js.map +1 -1
- package/src/generators/healthcheck/utils/prompt.d.ts +0 -1
- package/src/generators/healthcheck/utils/prompt.js +0 -23
- package/src/generators/healthcheck/utils/prompt.js.map +0 -1
package/package.json
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.healthcheckGenerator = healthcheckGenerator;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
|
+
const enquirer_1 = require("enquirer");
|
|
5
6
|
const config_1 = require("../../utils/config");
|
|
6
7
|
const healthchecks_1 = require("./healthchecks");
|
|
7
8
|
const brain_imports_1 = require("./healthchecks/brain-imports");
|
|
@@ -32,7 +33,6 @@ const module_imports_1 = require("./healthchecks/module-imports");
|
|
|
32
33
|
const naming_conventions_1 = require("./healthchecks/naming-conventions");
|
|
33
34
|
const sonner_1 = require("./healthchecks/sonner");
|
|
34
35
|
const version_1 = require("./healthchecks/version");
|
|
35
|
-
const prompt_1 = require("./utils/prompt");
|
|
36
36
|
const reporter_1 = require("./utils/reporter");
|
|
37
37
|
const runner_1 = require("./utils/runner");
|
|
38
38
|
async function healthcheckGenerator(tree, options) {
|
|
@@ -78,7 +78,12 @@ async function healthcheckGenerator(tree, options) {
|
|
|
78
78
|
}
|
|
79
79
|
for (const report of failedReports) {
|
|
80
80
|
if (report.fixable && (0, healthchecks_1.isHealthcheckFixable)(report.healthcheck)) {
|
|
81
|
-
const fix = options.autoFix ||
|
|
81
|
+
const fix = options.autoFix ||
|
|
82
|
+
(await (0, enquirer_1.prompt)({
|
|
83
|
+
type: 'confirm',
|
|
84
|
+
name: 'confirmed',
|
|
85
|
+
message: report.healthcheck.prompt,
|
|
86
|
+
})).confirmed;
|
|
82
87
|
if (fix) {
|
|
83
88
|
await report.healthcheck.fix(tree, { angularCli: options.angularCli, importAlias });
|
|
84
89
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../libs/cli/src/generators/healthcheck/generator.ts"],"names":[],"mappings":";;AAoCA,
|
|
1
|
+
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../libs/cli/src/generators/healthcheck/generator.ts"],"names":[],"mappings":";;AAoCA,oDAoEC;AAxGD,uCAA4D;AAC5D,uCAAkC;AAClC,+CAAoD;AACpD,iDAAmH;AACnH,gEAAuE;AACvE,gFAAwF;AACxF,wGAAiG;AACjG,oEAA6E;AAC7E,wDAAiE;AACjE,0DAAiE;AACjE,gEAAyE;AACzE,oGAA6F;AAC7F,0DAAmE;AACnE,sEAA8E;AAC9E,0EAAiF;AACjF,8DAAqE;AACrE,8DAAqE;AACrE,4CAA0D;AAC1D,oEAAuE;AACvE,0DAAkE;AAClE,wEAA+E;AAC/E,kEAAyE;AACzE,sDAA8D;AAC9D,8DAAoE;AACpE,sDAA8D;AAC9D,8DAAkE;AAClE,oEAAuE;AACvE,0DAA8D;AAC9D,kEAAyE;AACzE,0EAAgF;AAChF,kDAA0D;AAC1D,oDAA4D;AAE5D,+CAA+C;AAC/C,2CAAgD;AAEzC,KAAK,UAAU,oBAAoB,CAAC,IAAU,EAAE,OAA8D;IACpH,eAAM,CAAC,IAAI,CAAC,yB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AC,MAAM;iBAClC,CAAC,CACF,CAAC,SAAS,CAAC;YAEb,IAAI,GAAG,EAAE,CAAC;gBACT,MAAM,MAAM,CAAC,WAAW,CAAC,GAAG,CAAC,IAAI,EAAE,EAAE,UAAU,EAAE,OAAO,CAAC,UAAU,EAAE,WAAW,EAAE,CAAC,CAAC;YACrF,CAAC;QACF,CAAC;IACF,CAAC;IAED,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,CAAC;QACzB,MAAM,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;IACzB,CAAC;AACF,CAAC;AAED,kBAAe,oBAAoB,CAAC"}
|
|
@@ -25,12 +25,11 @@ exports.versionHealthcheck = {
|
|
|
25
25
|
}
|
|
26
26
|
const installedVersion = dependencies[dep];
|
|
27
27
|
// check if the installed version is the latest version
|
|
28
|
-
const
|
|
29
|
-
if (!
|
|
28
|
+
const metadata = await fetchLatestMetadata(dep);
|
|
29
|
+
if (!metadata) {
|
|
30
30
|
failure(`Failed to fetch metadata for ${dep}.`, healthchecks_1.HealthcheckSeverity.Error, false);
|
|
31
31
|
continue;
|
|
32
32
|
}
|
|
33
|
-
const metadata = (await request.json());
|
|
34
33
|
if (!semver.satisfies(metadata.version, installedVersion)) {
|
|
35
34
|
failure(`The installed version of ${dep} is not the latest version. The latest version is ${metadata.version}.`, healthchecks_1.HealthcheckSeverity.Warning, true);
|
|
36
35
|
continue;
|
|
@@ -45,16 +44,15 @@ exports.versionHealthcheck = {
|
|
|
45
44
|
if (!dependencies[dep]) {
|
|
46
45
|
return false;
|
|
47
46
|
}
|
|
48
|
-
const
|
|
49
|
-
if (!
|
|
47
|
+
const metadata = await fetchLatestMetadata(dep);
|
|
48
|
+
if (!metadata) {
|
|
50
49
|
return false;
|
|
51
50
|
}
|
|
52
|
-
const metadata = (await request.json());
|
|
53
51
|
// update the dependency to the latest version in the respective section
|
|
54
|
-
if (packageJson.dependencies[dep]) {
|
|
52
|
+
if (packageJson.dependencies?.[dep]) {
|
|
55
53
|
packageJson.dependencies[dep] = `^${metadata.version}`;
|
|
56
54
|
}
|
|
57
|
-
else {
|
|
55
|
+
else if (packageJson.devDependencies?.[dep]) {
|
|
58
56
|
packageJson.devDependencies[dep] = `^${metadata.version}`;
|
|
59
57
|
}
|
|
60
58
|
}
|
|
@@ -63,4 +61,17 @@ exports.versionHealthcheck = {
|
|
|
63
61
|
},
|
|
64
62
|
prompt: 'Would you like to update to the latest versions of the dependencies?',
|
|
65
63
|
};
|
|
64
|
+
async function fetchLatestMetadata(dep) {
|
|
65
|
+
try {
|
|
66
|
+
const request = await fetch(`https://registry.npmjs.org/${dep}/latest`);
|
|
67
|
+
if (!request.ok) {
|
|
68
|
+
return null;
|
|
69
|
+
}
|
|
70
|
+
return (await request.json());
|
|
71
|
+
}
|
|
72
|
+
catch {
|
|
73
|
+
// offline, DNS failure, timeout, malformed JSON - treat as "could not determine latest"
|
|
74
|
+
return null;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
66
77
|
//# sourceMappingURL=version.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../../../../../../libs/cli/src/generators/healthcheck/healthchecks/version.ts"],"names":[],"mappings":";;;;AAAA,uCAAsC;AAEtC,uDAAiC;AACjC,kDAAwE;AAE3D,QAAA,kBAAkB,GAAgB;IAC9C,IAAI,EAAE,4BAA4B;IAClC,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI;QAC/B,qDAAqD;QACrD,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,EAAE,CAAC;YAClC,IAAI,CAAC,wBAAwB,CAAC,CAAC;YAC/B,OAAO;QACR,CAAC;QAED,wBAAwB;QACxB,MAAM,WAAW,GAAG,IAAA,iBAAQ,EAAC,IAAI,EAAE,cAAc,CAAC,CAAC;QAEnD,6CAA6C;QAC7C,MAAM,YAAY,GAAG,EAAE,GAAG,WAAW,CAAC,YAAY,EAAE,GAAG,WAAW,CAAC,eAAe,EAAE,CAAC;QAErF,MAAM,mBAAmB,GAAG,CAAC,mBAAmB,EAAE,iBAAiB,CAAC,CAAC;QAErE,KAAK,MAAM,GAAG,IAAI,mBAAmB,EAAE,CAAC;YACvC,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,EAAE,CAAC;gBACxB,OAAO,CAAC,kBAAkB,GAAG,oBAAoB,EAAE,kCAAmB,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;gBACpF,SAAS;YACV,CAAC;YAED,MAAM,gBAAgB,GAAG,YAAY,CAAC,GAAG,CAAC,CAAC;YAE3C,uDAAuD;YACvD,MAAM,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../../../../../../libs/cli/src/generators/healthcheck/healthchecks/version.ts"],"names":[],"mappings":";;;;AAAA,uCAAsC;AAEtC,uDAAiC;AACjC,kDAAwE;AAE3D,QAAA,kBAAkB,GAAgB;IAC9C,IAAI,EAAE,4BAA4B;IAClC,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI;QAC/B,qDAAqD;QACrD,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,EAAE,CAAC;YAClC,IAAI,CAAC,wBAAwB,CAAC,CAAC;YAC/B,OAAO;QACR,CAAC;QAED,wBAAwB;QACxB,MAAM,WAAW,GAAG,IAAA,iBAAQ,EAAC,IAAI,EAAE,cAAc,CAAC,CAAC;QAEnD,6CAA6C;QAC7C,MAAM,YAAY,GAAG,EAAE,GAAG,WAAW,CAAC,YAAY,EAAE,GAAG,WAAW,CAAC,eAAe,EAAE,CAAC;QAErF,MAAM,mBAAmB,GAAG,CAAC,mBAAmB,EAAE,iBAAiB,CAAC,CAAC;QAErE,KAAK,MAAM,GAAG,IAAI,mBAAmB,EAAE,CAAC;YACvC,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,EAAE,CAAC;gBACxB,OAAO,CAAC,kBAAkB,GAAG,oBAAoB,EAA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AAG,CAAC,EAAE,CAAC;gBACrC,WAAW,CAAC,YAAY,CAAC,GAAG,CAAC,GAAG,IAAI,QAAQ,CAAC,OAAO,EAAE,CAAC;YACxD,CAAC;iBAAM,IAAI,WAAW,CAAC,eAAe,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC;gBAC/C,WAAW,CAAC,eAAe,CAAC,GAAG,CAAC,GAAG,IAAI,QAAQ,CAAC,OAAO,EAAE,CAAC;YAC3D,CAAC;QACF,CAAC;QAED,IAAI,CAAC,KAAK,CAAC,cAAc,EAAE,IAAI,CAAC,SAAS,CAAC,WAAW,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;QAEjE,OAAO,IAAI,CAAC;IACb,CAAC;IACD,MAAM,EAAE,sEAAsE;CAC9E,CAAC;AAEF,KAAK,UAAU,mBAAmB,CAAC,GAAW;IAC7C,IAAI,CAAC;QACJ,MAAM,OAAO,GAAG,MAAM,KAAK,CAAC,8BAA8B,GAAG,SAAS,CAAC,CAAC;QAExE,IAAI,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC;YACjB,OAAO,IAAI,CAAC;QACb,CAAC;QAED,OAAO,CAAC,MAAM,OAAO,CAAC,IAAI,EAAE,CAAgB,CAAC;IAC9C,CAAC;IAAC,MAAM,CAAC;QACR,wFAAwF;QACxF,OAAO,IAAI,CAAC;IACb,CAAC;AACF,CAAC"}
|
|
@@ -23,7 +23,15 @@ async function runHealthcheck(tree, healthcheck, importAlias) {
|
|
|
23
23
|
report.status = healthchecks_1.HealthcheckStatus.Skipped;
|
|
24
24
|
report.reason = reason;
|
|
25
25
|
};
|
|
26
|
-
|
|
26
|
+
try {
|
|
27
|
+
await coercePromise(healthcheck.detect(tree, failure, skip, { importAlias }));
|
|
28
|
+
}
|
|
29
|
+
catch (error) {
|
|
30
|
+
// A single check throwing (a parse error, a network failure, a malformed file) must not abort
|
|
31
|
+
// the remaining healthchecks - surface it as a failure and keep going.
|
|
32
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
33
|
+
failure(`Healthcheck threw an unexpected error: ${message}`, healthchecks_1.HealthcheckSeverity.Error, false);
|
|
34
|
+
}
|
|
27
35
|
return report;
|
|
28
36
|
}
|
|
29
37
|
function coercePromise(value) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runner.js","sourceRoot":"","sources":["../../../../../../../libs/cli/src/generators/healthcheck/utils/runner.ts"],"names":[],"mappings":";;AAUA,
|
|
1
|
+
{"version":3,"file":"runner.js","sourceRoot":"","sources":["../../../../../../../libs/cli/src/generators/healthcheck/utils/runner.ts"],"names":[],"mappings":";;AAUA,wCAuCC;AAhDD,kDAOyB;AAElB,KAAK,UAAU,cAAc,CACnC,IAAU,EACV,WAAwB,EACxB,WAAmB;IAEnB,MAAM,MAAM,GAAsB;QACjC,IAAI,EAAE,WAAW,CAAC,IAAI;QACtB,MAAM,EAAE,gCAAiB,CAAC,OAAO;QACjC,OAAO,EAAE,KAAK;QACd,WAAW;KACX,CAAC;IAEF,MAAM,OAAO,GAAyB,CAAC,OAAe,EAAE,QAA6B,EAAE,OAAgB,EAAE,EAAE;QAC1G,qCAAqC;QACrC,IAAI,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,OAAO,KAAK,OAAO,CAAC,EAAE,CAAC;YAC/D,OAAO;QACR,CAAC;QAED,MAAM,CAAC,MAAM,GAAG,gCAAiB,CAAC,OAAO,CAAC;QAC1C,MAAM,CAAC,MAAM,KAAK,EAAE,CAAC;QACrB,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,CAAC;QAC1C,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,IAAI,CAAC,OAAO,IAAI,IAAA,mCAAoB,EAAC,WAAW,CAAC,CAAC,CAAC;IACnF,CAAC,CAAC;IAEF,MAAM,IAAI,GAAG,CAAC,MAAc,EAAE,EAAE;QAC/B,MAAM,CAAC,MAAM,GAAG,gCAAiB,CAAC,OAAO,CAAC;QAC1C,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC;IACxB,CAAC,CAAC;IAEF,IAAI,CAAC;QACJ,MAAM,aAAa,CAAC,WAAW,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC;IAC/E,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QAChB,8FAA8F;QAC9F,uEAAuE;QACvE,MAAM,OAAO,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACvE,OAAO,CAAC,0CAA0C,OAAO,EAAE,EAAE,kCAAmB,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IAChG,CAAC;IAED,OAAO,MAAM,CAAC;AACf,CAAC;AAED,SAAS,aAAa,CAAI,KAAqB;IAC9C,OAAO,KAAK,YAAY,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAClE,CAAC"}
|
|
@@ -56,10 +56,6 @@ async function migrateHelmLibrariesGenerator(tree, options) {
|
|
|
56
56
|
devkit_1.logger.info('No libraries to migrate');
|
|
57
57
|
return;
|
|
58
58
|
}
|
|
59
|
-
// if we are running in Jest we can't use the enquirer prompt
|
|
60
|
-
if (process.env.JEST_WORKER_ID) {
|
|
61
|
-
return;
|
|
62
|
-
}
|
|
63
59
|
// allow the user to select which libraries to migrate
|
|
64
60
|
const selectedLibraries = await (0, enquirer_1.prompt)({
|
|
65
61
|
type: 'multiselect',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../libs/cli/src/generators/migrate-helm-libraries/generator.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkBA,
|
|
1
|
+
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../libs/cli/src/generators/migrate-helm-libraries/generator.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkBA,sEAyDC;AA3ED,uCAAkF;AAClF,+BAAmD;AACnD,4FAA4F;AAC5F,2FAA2F;AAC3F,2FAA2F;AAC3F,mFAAmF;AACnF,4FAA4F;AAC5F,uEAA6E;AAC7E,uCAAkC;AAClC,+BAAqC;AACrC,+CAAuD;AACvD,mDAAiE;AACjE,yDAAsD;AAEtD,+CAA2D;AAIpD,KAAK,UAAU,6BAA6B,CAAC,IAAU,EAAE,OAA4C;IAC3G,kDAAkD;IAElD,MAAM,MAAM,GAAG,MAAM,IAAA,0BAAiB,EAAC,IAAI,EAAE,EAAE,UAAU,EAAE,OAAO,CAAC,UAAU,EAAE,CAAC,CAAC;IAEjF,MAAM,iBAAiB,GAAG,MAAM,eAAe,CAAC,IAAI,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC;IAE1E,IAAI,iBAAiB,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACpC,eAAM,CAAC,IAAI,CAAC,yBAAyB,CAAC,CAAC;QACvC,OAAO;IACR,CAAC;IAED,sDAAsD;IACtD,MAAM,iBAAiB,GAAG,MAAM,IAAA,iBAAM,EAAC;QACtC,IAAI,EAAE,aAAa;QACnB,IAAI,EAAE,WAAW;QACjB,OAAO,EAAE,qGAAqG;QAC9G,OAAO,EAAE,CAAC,KAAK,EAAE,GAAG,iBAAiB,CAAC;KACtC,CAAC,CAAC;IAEH,uHAAuH;IACvH,MAAM,YAAY,GAAG,CAAC,MAAM,IAAA,iBAAM,EAAC;QAClC,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,SAAS;QACf,OAAO,EACN,mIAAmI;KACpI,CAAC,CAAyB,CAAC;IAE5B,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,CAAC;QAC3B,eAAM,C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AAS,GAAG,IAAA,cAAO,EAAC,IAAI,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;YAEtD,gDAAgD;YAChD,IAAA,yBAAW,EAAC,IAAI,EAAE,SAAS,CAAC,CAAC;YAE7B,oCAAoC;YACpC,IAAA,mBAAU,EAAC,IAAI,EAAE,IAAA,8BAAyB,EAAC,IAAI,CAAC,EAAE,CAAC,IAAI,EAAE,EAAE;gBAC1D,OAAO,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;gBAC9C,OAAO,IAAI,CAAC;YACb,CAAC,CAAC,CAAC;QACJ,CAAC;IACF,CAAC;AACF,CAAC;AAED,KAAK,UAAU,mBAAmB,CAAC,IAAU,EAAE,OAA4C,EAAE,SAAsB;IAClH,MAAM,kBAAkB,GAAG,CAAC,MAAM,kDAAO,mCAAmC,IAAE,IAAI,CACjF,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAChB,CAAuB,CAAC;IACzB,MAAM,MAAM,GAAG,MAAM,IAAA,0BAAiB,EAAC,IAAI,EAAE,EAAE,UAAU,EAAE,OAAO,CAAC,UAAU,EAAE,CAAC,CAAC;IAEjF,MAAM,IAAA,oCAAwB,EAC7B;QACC,UAAU,EAAE,SAAS;KACrB,EACD,MAAM,CAAC,IAAI,CAAC,kBAAkB,CAAgB,EAC9C,kBAAkB,EAClB,IAAI,EACJ,EAAE,GAAG,OAAO,EAAE,uBAAuB,EAAE,KAAK,EAAE,EAC9C,MAAM,CACN,CAAC;AACH,CAAC"}
|
|
@@ -54,7 +54,8 @@ async function ensureHelmUtilsInstalled(tree, angularCli) {
|
|
|
54
54
|
if (!tsconfigPath) {
|
|
55
55
|
throw new Error('Could not find tsconfig.base.json or tsconfig.json to verify @spartan-ng/helm/utils.');
|
|
56
56
|
}
|
|
57
|
-
|
|
57
|
+
// readJson tolerates JSONC (comments / trailing commas), which real tsconfig files often contain.
|
|
58
|
+
const tsconfig = (0, devkit_1.readJson)(tree, tsconfigPath);
|
|
58
59
|
// Check compilerOptions.paths for @spartan-ng/helm/utils
|
|
59
60
|
const paths = tsconfig.compilerOptions?.paths || {};
|
|
60
61
|
const hasHelmUtils = Object.keys(paths).some((pkg) => pkg === '@spartan-ng/helm/utils');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../libs/cli/src/generators/migrate-hlm/generator.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,kDAOC;AAfD,
|
|
1
|
+
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../libs/cli/src/generators/migrate-hlm/generator.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,kDAOC;AAfD,uCAA8D;AAC9D,+CAAuD;AACvD,yDAAqD;AAErD,+CAA2D;AAIpD,KAAK,UAAU,mBAAmB,CAAC,IAAU,EAAE,EAAE,UAAU,EAAE,UAAU,EAA6B;IAC1G,MAAM,wBAAwB,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;IACjD,gBAAgB,CAAC,IAAI,CAAC,CAAC;IAEvB,IAAI,CAAC,UAAU,EAAE,CAAC;QACjB,MAAM,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;IACzB,CAAC;AACF,CAAC;AAED,KAAK,UAAU,wBAAwB,CAAC,IAAU,EAAE,UAAmB;IACtE,MAAM,YAAY,GAAG,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC;QACrD,CAAC,CAAC,oBAAoB;QACtB,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC;YAC7B,CAAC,CAAC,eAAe;YACjB,CAAC,CAAC,IAAI,CAAC;IAET,IAAI,CAAC,YAAY,EAAE,CAAC;QACnB,MAAM,IAAI,KAAK,CAAC,sFAAsF,CAAC,CAAC;IACzG,CAAC;IAED,kGAAkG;IAClG,MAAM,Q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EAAE;YACzD,8BAA8B;YAC9B,MAAM,UAAU,GAAG,OAAO;iBACxB,KAAK,CAAC,GAAG,CAAC;iBACV,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;iBACpB,MAAM,CAAC,OAAO,CAAC,CAAC;YAElB,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;gBACjC,oBAAoB;gBACpB,OAAO,KAAK,CAAC;YACd,CAAC;YAED,sCAAsC;YACtC,MAAM,SAAS,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,KAAK,CAAC,CAAC;YAExD,IAAI,UAAU,GAAG,EAAE,CAAC;YACpB,IAAI,SAAS,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBAC1B,UAAU,GAAG,YAAY,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,qCAAqC,CAAC;YACpF,CAAC;YAED,yCAAyC;YACzC,UAAU,IAAI,+CAA+C,CAAC;YAE9D,OAAO,UAAU,CAAC;QACnB,CAAC,CAAC,CAAC;QAEH,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC3B,CAAC,CAAC,CAAC;AACJ,CAAC;AAED,kBAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { HlmDrawer } from './lib/hlm-drawer';
|
|
2
|
+
import { HlmDrawerClose } from './lib/hlm-drawer-close';
|
|
3
|
+
import { HlmDrawerContent } from './lib/hlm-drawer-content';
|
|
4
|
+
import { HlmDrawerDescription } from './lib/hlm-drawer-description';
|
|
5
|
+
import { HlmDrawerFooter } from './lib/hlm-drawer-footer';
|
|
6
|
+
import { HlmDrawerHeader } from './lib/hlm-drawer-header';
|
|
7
|
+
import { HlmDrawerOverlay } from './lib/hlm-drawer-overlay';
|
|
8
|
+
import { HlmDrawerPortal } from './lib/hlm-drawer-portal';
|
|
9
|
+
import { HlmDrawerTitle } from './lib/hlm-drawer-title';
|
|
10
|
+
import { HlmDrawerTrigger } from './lib/hlm-drawer-trigger';
|
|
11
|
+
|
|
12
|
+
export * from './lib/hlm-drawer';
|
|
13
|
+
export * from './lib/hlm-drawer-close';
|
|
14
|
+
export * from './lib/hlm-drawer-content';
|
|
15
|
+
export * from './lib/hlm-drawer-description';
|
|
16
|
+
export * from './lib/hlm-drawer-footer';
|
|
17
|
+
export * from './lib/hlm-drawer-header';
|
|
18
|
+
export * from './lib/hlm-drawer-overlay';
|
|
19
|
+
export * from './lib/hlm-drawer-portal';
|
|
20
|
+
export * from './lib/hlm-drawer-title';
|
|
21
|
+
export * from './lib/hlm-drawer-trigger';
|
|
22
|
+
|
|
23
|
+
export const HlmDrawerImports = [
|
|
24
|
+
HlmDrawer,
|
|
25
|
+
HlmDrawerClose,
|
|
26
|
+
HlmDrawerContent,
|
|
27
|
+
HlmDrawerDescription,
|
|
28
|
+
HlmDrawerFooter,
|
|
29
|
+
HlmDrawerHeader,
|
|
30
|
+
HlmDrawerOverlay,
|
|
31
|
+
HlmDrawerPortal,
|
|
32
|
+
HlmDrawerTitle,
|
|
33
|
+
HlmDrawerTrigger,
|
|
34
|
+
] as const;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Directive } from '@angular/core';
|
|
2
|
+
import { BrnDrawerClose } from '@spartan-ng/brain/drawer';
|
|
3
|
+
|
|
4
|
+
@Directive({
|
|
5
|
+
selector: 'button[hlmDrawerClose]',
|
|
6
|
+
hostDirectives: [{ directive: BrnDrawerClose, inputs: ['delay'] }],
|
|
7
|
+
host: { 'data-slot': 'drawer-close' },
|
|
8
|
+
})
|
|
9
|
+
export class HlmDrawerClose {}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, signal } from '@angular/core';
|
|
2
|
+
import { injectExposedSideProvider, injectExposesStateProvider } from '@spartan-ng/brain/core';
|
|
3
|
+
import { BrnDrawerHandle } from '@spartan-ng/brain/drawer';
|
|
4
|
+
import { classes } from '<%- importAlias %>/utils';
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: 'hlm-drawer-content',
|
|
8
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
9
|
+
hostDirectives: [{ directive: BrnDrawerHandle, inputs: ['closeThreshold'] }],
|
|
10
|
+
host: {
|
|
11
|
+
'data-slot': 'drawer-content',
|
|
12
|
+
'[attr.data-vaul-drawer-direction]': '_sideProvider.side()',
|
|
13
|
+
'[attr.data-state]': 'state()',
|
|
14
|
+
},
|
|
15
|
+
template: `
|
|
16
|
+
<div class="spartan-drawer-handle"></div>
|
|
17
|
+
<ng-content />
|
|
18
|
+
`,
|
|
19
|
+
})
|
|
20
|
+
export class HlmDrawerContent {
|
|
21
|
+
private readonly _stateProvider = injectExposesStateProvider({ host: true });
|
|
22
|
+
protected readonly _sideProvider = injectExposedSideProvider({ host: true });
|
|
23
|
+
public readonly state = this._stateProvider.state ?? signal('closed');
|
|
24
|
+
|
|
25
|
+
constructor() {
|
|
26
|
+
classes(() => [
|
|
27
|
+
'spartan-drawer-content',
|
|
28
|
+
'group/drawer-content',
|
|
29
|
+
'data-open:animate-in data-closed:animate-out',
|
|
30
|
+
'data-[vaul-drawer-direction=bottom]:data-closed:slide-out-to-bottom data-[vaul-drawer-direction=bottom]:data-open:slide-in-from-bottom',
|
|
31
|
+
'data-[vaul-drawer-direction=top]:data-closed:slide-out-to-top data-[vaul-drawer-direction=top]:data-open:slide-in-from-top',
|
|
32
|
+
'data-[vaul-drawer-direction=left]:data-closed:slide-out-to-left data-[vaul-drawer-direction=left]:data-open:slide-in-from-left',
|
|
33
|
+
'data-[vaul-drawer-direction=right]:data-closed:slide-out-to-right data-[vaul-drawer-direction=right]:data-open:slide-in-from-right',
|
|
34
|
+
]);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Directive } from '@angular/core';
|
|
2
|
+
import { BrnDrawerDescription } from '@spartan-ng/brain/drawer';
|
|
3
|
+
import { classes } from '<%- importAlias %>/utils';
|
|
4
|
+
|
|
5
|
+
@Directive({
|
|
6
|
+
selector: '[hlmDrawerDescription]',
|
|
7
|
+
hostDirectives: [BrnDrawerDescription],
|
|
8
|
+
host: { 'data-slot': 'drawer-description' },
|
|
9
|
+
})
|
|
10
|
+
export class HlmDrawerDescription {
|
|
11
|
+
constructor() {
|
|
12
|
+
classes(() => 'spartan-drawer-description');
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Directive } from '@angular/core';
|
|
2
|
+
import { classes } from '<%- importAlias %>/utils';
|
|
3
|
+
|
|
4
|
+
@Directive({
|
|
5
|
+
selector: '[hlmDrawerFooter],hlm-drawer-footer',
|
|
6
|
+
host: { 'data-slot': 'drawer-footer' },
|
|
7
|
+
})
|
|
8
|
+
export class HlmDrawerFooter {
|
|
9
|
+
constructor() {
|
|
10
|
+
classes(() => 'spartan-drawer-footer mt-auto flex flex-col');
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Directive } from '@angular/core';
|
|
2
|
+
import { classes } from '<%- importAlias %>/utils';
|
|
3
|
+
|
|
4
|
+
@Directive({
|
|
5
|
+
selector: '[hlmDrawerHeader],hlm-drawer-header',
|
|
6
|
+
host: { 'data-slot': 'drawer-header' },
|
|
7
|
+
})
|
|
8
|
+
export class HlmDrawerHeader {
|
|
9
|
+
constructor() {
|
|
10
|
+
classes(() => 'spartan-drawer-header flex flex-col');
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Directive, computed, effect, input, untracked } from '@angular/core';
|
|
2
|
+
import { injectCustomClassSettable } from '@spartan-ng/brain/core';
|
|
3
|
+
import { BrnDrawerOverlay } from '@spartan-ng/brain/drawer';
|
|
4
|
+
import { hlm } from '<%- importAlias %>/utils';
|
|
5
|
+
import type { ClassValue } from 'clsx';
|
|
6
|
+
|
|
7
|
+
@Directive({
|
|
8
|
+
selector: '[hlmDrawerOverlay],hlm-drawer-overlay',
|
|
9
|
+
hostDirectives: [BrnDrawerOverlay],
|
|
10
|
+
})
|
|
11
|
+
export class HlmDrawerOverlay {
|
|
12
|
+
private readonly _classSettable = injectCustomClassSettable({ optional: true, host: true });
|
|
13
|
+
public readonly userClass = input<ClassValue>('', { alias: 'class' });
|
|
14
|
+
protected readonly _computedClass = computed(() =>
|
|
15
|
+
hlm(
|
|
16
|
+
'spartan-drawer-overlay transition-opacity duration-150 data-ending-style:opacity-0 data-starting-style:opacity-0',
|
|
17
|
+
this.userClass(),
|
|
18
|
+
),
|
|
19
|
+
);
|
|
20
|
+
|
|
21
|
+
constructor() {
|
|
22
|
+
effect(() => {
|
|
23
|
+
const classValue = this._computedClass();
|
|
24
|
+
untracked(() => this._classSettable?.setClassToCustomElement(classValue));
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Directive } from '@angular/core';
|
|
2
|
+
import { BrnDrawerContent } from '@spartan-ng/brain/drawer';
|
|
3
|
+
|
|
4
|
+
@Directive({
|
|
5
|
+
selector: '[hlmDrawerPortal]',
|
|
6
|
+
hostDirectives: [{ directive: BrnDrawerContent, inputs: ['context', 'class'] }],
|
|
7
|
+
})
|
|
8
|
+
export class HlmDrawerPortal {}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Directive } from '@angular/core';
|
|
2
|
+
import { BrnDrawerTitle } from '@spartan-ng/brain/drawer';
|
|
3
|
+
import { classes } from '<%- importAlias %>/utils';
|
|
4
|
+
|
|
5
|
+
@Directive({
|
|
6
|
+
selector: '[hlmDrawerTitle]',
|
|
7
|
+
hostDirectives: [BrnDrawerTitle],
|
|
8
|
+
host: { 'data-slot': 'drawer-title' },
|
|
9
|
+
})
|
|
10
|
+
export class HlmDrawerTitle {
|
|
11
|
+
constructor() {
|
|
12
|
+
classes(() => 'spartan-drawer-title');
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Directive } from '@angular/core';
|
|
2
|
+
import { BrnDrawerTrigger } from '@spartan-ng/brain/drawer';
|
|
3
|
+
|
|
4
|
+
@Directive({
|
|
5
|
+
selector: 'button[hlmDrawerTrigger]',
|
|
6
|
+
hostDirectives: [{ directive: BrnDrawerTrigger, inputs: ['id', 'direction', 'type'] }],
|
|
7
|
+
host: { 'data-slot': 'drawer-trigger' },
|
|
8
|
+
})
|
|
9
|
+
export class HlmDrawerTrigger {}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, forwardRef } from '@angular/core';
|
|
2
|
+
import { BrnDialog, provideBrnDialogDefaultOptions } from '@spartan-ng/brain/dialog';
|
|
3
|
+
import { BrnDrawer } from '@spartan-ng/brain/drawer';
|
|
4
|
+
import { HlmDrawerOverlay } from './hlm-drawer-overlay';
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: 'hlm-drawer',
|
|
8
|
+
exportAs: 'hlmDrawer',
|
|
9
|
+
imports: [HlmDrawerOverlay],
|
|
10
|
+
providers: [
|
|
11
|
+
{
|
|
12
|
+
provide: BrnDialog,
|
|
13
|
+
useExisting: forwardRef(() => HlmDrawer),
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
provide: BrnDrawer,
|
|
17
|
+
useExisting: forwardRef(() => HlmDrawer),
|
|
18
|
+
},
|
|
19
|
+
provideBrnDialogDefaultOptions({
|
|
20
|
+
// add custom options here
|
|
21
|
+
}),
|
|
22
|
+
],
|
|
23
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
24
|
+
template: `
|
|
25
|
+
<hlm-drawer-overlay />
|
|
26
|
+
<ng-content />
|
|
27
|
+
`,
|
|
28
|
+
})
|
|
29
|
+
export class HlmDrawer extends BrnDrawer {}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.generator = generator;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const generator_1 = tslib_1.__importDefault(require("../../../base/generator"));
|
|
6
|
+
async function generator(tree, options) {
|
|
7
|
+
return await (0, generator_1.default)(tree, { ...options, name: 'drawer' });
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=generator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../../../libs/cli/src/generators/ui/libs/drawer/generator.ts"],"names":[],"mappings":";;AAIA,8BAEC;;AALD,gFAAuD;AAGhD,KAAK,UAAU,SAAS,CAAC,IAAU,EAAE,OAA+B;IAC1E,OAAO,MAAM,IAAA,mBAAgB,EAAC,IAAI,EAAE,EAAE,GAAG,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAC;AACrE,CAAC"}
|
|
@@ -9,7 +9,7 @@ import { classes } from '<%- importAlias %>/utils';
|
|
|
9
9
|
providers: [provideIcons({ lucideChevronRight })],
|
|
10
10
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
11
11
|
template: `
|
|
12
|
-
<ng-icon name="lucideChevronRight" class="text-base" />
|
|
12
|
+
<ng-icon name="lucideChevronRight" class="text-base rtl:rotate-180" />
|
|
13
13
|
`,
|
|
14
14
|
})
|
|
15
15
|
export class HlmDropdownMenuItemSubIndicator {
|
|
@@ -55,7 +55,7 @@ export class HlmMenubarTrigger {
|
|
|
55
55
|
|
|
56
56
|
classes(
|
|
57
57
|
() =>
|
|
58
|
-
'
|
|
58
|
+
'spartan-menubar-trigger flex items-center outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50',
|
|
59
59
|
);
|
|
60
60
|
}
|
|
61
61
|
}
|
|
@@ -11,6 +11,6 @@ import { classes } from '<%- importAlias %>/utils';
|
|
|
11
11
|
})
|
|
12
12
|
export class HlmMenubar {
|
|
13
13
|
constructor() {
|
|
14
|
-
classes(() => '
|
|
14
|
+
classes(() => 'spartan-menubar flex items-center');
|
|
15
15
|
}
|
|
16
16
|
}
|
package/src/generators/ui/libs/native-select/files/lib/hlm-native-select-opt-group.ts.template
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import { Directive } from '@angular/core';
|
|
2
|
+
import { classes } from '<%- importAlias %>/utils';
|
|
2
3
|
|
|
3
4
|
@Directive({
|
|
4
|
-
selector: '[hlmNativeSelectOptGroup]',
|
|
5
|
+
selector: 'optgroup[hlmNativeSelectOptGroup]',
|
|
5
6
|
host: { 'data-slot': 'native-select-optgroup' },
|
|
6
7
|
})
|
|
7
|
-
export class HlmNativeSelectOptGroup {
|
|
8
|
+
export class HlmNativeSelectOptGroup {
|
|
9
|
+
constructor() {
|
|
10
|
+
classes(() => 'bg-[Canvas] text-[CanvasText]');
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import { Directive } from '@angular/core';
|
|
2
|
+
import { classes } from '<%- importAlias %>/utils';
|
|
2
3
|
|
|
3
4
|
@Directive({
|
|
4
|
-
selector: '[hlmNativeSelectOption]',
|
|
5
|
+
selector: 'option[hlmNativeSelectOption]',
|
|
5
6
|
host: { 'data-slot': 'native-select-option' },
|
|
6
7
|
})
|
|
7
|
-
export class HlmNativeSelectOption {
|
|
8
|
+
export class HlmNativeSelectOption {
|
|
9
|
+
constructor() {
|
|
10
|
+
classes(() => 'bg-[Canvas] text-[CanvasText]');
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -230,11 +230,6 @@
|
|
|
230
230
|
@apply text-muted-foreground end-2.5 top-1/2 -translate-y-1/2 text-[calc(var(--spacing)*4)];
|
|
231
231
|
}
|
|
232
232
|
|
|
233
|
-
.spartan-native-select [data-slot='native-select-option'],
|
|
234
|
-
.spartan-native-select [data-slot='native-select-optgroup'] {
|
|
235
|
-
@apply bg-[color:Canvas] text-[color:CanvasText];
|
|
236
|
-
}
|
|
237
|
-
|
|
238
233
|
/* MARK: Combobox */
|
|
239
234
|
.spartan-combobox-content {
|
|
240
235
|
@apply bg-popover text-popover-foreground data-open:animate-in **:has-[[data-slot=input-group-control]:focus-visible]:border-input data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-end-2 data-[side=right]:slide-in-from-start-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/5 dark:ring-foreground/10 **:data-[slot=input-group]:bg-input/50 **:data-[slot=input-group]:border-input/30 max-h-72 min-w-36 overflow-hidden rounded-3xl shadow-lg ring-1 duration-100 **:has-[[data-slot=input-group-control]:focus-visible]:ring-0 **:data-[slot=input-group]:m-1.5 **:data-[slot=input-group]:mb-0 **:data-[slot=input-group]:h-8 **:data-[slot=input-group]:shadow-none;
|
|
@@ -753,7 +748,8 @@
|
|
|
753
748
|
}
|
|
754
749
|
|
|
755
750
|
.spartan-drawer-content {
|
|
756
|
-
@apply before:bg-popover before:border-border
|
|
751
|
+
@apply before:bg-popover before:border-border fixed z-50 flex h-auto flex-col bg-transparent p-4 text-sm before:absolute before:inset-2 before:-z-10 before:rounded-4xl before:border before:shadow-xl data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:start-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:end-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=left]:sm:max-w-sm data-[vaul-drawer-direction=right]:sm:max-w-sm;
|
|
752
|
+
touch-action: none;
|
|
757
753
|
}
|
|
758
754
|
|
|
759
755
|
.spartan-drawer-handle {
|
|
@@ -502,7 +502,8 @@
|
|
|
502
502
|
}
|
|
503
503
|
|
|
504
504
|
.spartan-drawer-content {
|
|
505
|
-
@apply bg-background flex h-auto flex-col text-xs/relaxed data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-none data-[vaul-drawer-direction=bottom]:border-t data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:rounded-none data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:rounded-none data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-none data-[vaul-drawer-direction=top]:border-b data-[vaul-drawer-direction=left]:sm:max-w-sm data-[vaul-drawer-direction=right]:sm:max-w-sm;
|
|
505
|
+
@apply bg-background fixed z-50 flex h-auto flex-col text-xs/relaxed data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-none data-[vaul-drawer-direction=bottom]:border-t data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:rounded-none data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:rounded-none data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-none data-[vaul-drawer-direction=top]:border-b data-[vaul-drawer-direction=left]:sm:max-w-sm data-[vaul-drawer-direction=right]:sm:max-w-sm;
|
|
506
|
+
touch-action: none;
|
|
506
507
|
}
|
|
507
508
|
|
|
508
509
|
.spartan-drawer-handle {
|
|
@@ -889,11 +890,6 @@
|
|
|
889
890
|
@apply text-muted-foreground end-2.5 top-1/2 -translate-y-1/2 text-[calc(var(--spacing)*4)];
|
|
890
891
|
}
|
|
891
892
|
|
|
892
|
-
.spartan-native-select [data-slot='native-select-option'],
|
|
893
|
-
.spartan-native-select [data-slot='native-select-optgroup'] {
|
|
894
|
-
@apply bg-[color:Canvas] text-[color:CanvasText];
|
|
895
|
-
}
|
|
896
|
-
|
|
897
893
|
/* MARK: Pagination */
|
|
898
894
|
.spartan-pagination-content {
|
|
899
895
|
@apply gap-0.5;
|
|
@@ -524,7 +524,8 @@
|
|
|
524
524
|
}
|
|
525
525
|
|
|
526
526
|
.spartan-drawer-content {
|
|
527
|
-
@apply before:bg-background before:border-border
|
|
527
|
+
@apply before:bg-background before:border-border fixed z-50 flex h-auto flex-col bg-transparent p-4 text-sm before:absolute before:inset-2 before:-z-10 before:rounded-4xl before:border data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=left]:sm:max-w-sm data-[vaul-drawer-direction=right]:sm:max-w-sm;
|
|
528
|
+
touch-action: none;
|
|
528
529
|
}
|
|
529
530
|
|
|
530
531
|
.spartan-drawer-handle {
|
|
@@ -911,11 +912,6 @@
|
|
|
911
912
|
@apply text-muted-foreground end-3.5 top-1/2 -translate-y-1/2 text-[calc(var(--spacing)*4)];
|
|
912
913
|
}
|
|
913
914
|
|
|
914
|
-
.spartan-native-select [data-slot='native-select-option'],
|
|
915
|
-
.spartan-native-select [data-slot='native-select-optgroup'] {
|
|
916
|
-
@apply bg-[color:Canvas] text-[color:CanvasText];
|
|
917
|
-
}
|
|
918
|
-
|
|
919
915
|
/* MARK: Pagination */
|
|
920
916
|
.spartan-pagination-content {
|
|
921
917
|
@apply gap-1;
|
|
@@ -524,7 +524,8 @@
|
|
|
524
524
|
}
|
|
525
525
|
|
|
526
526
|
.spartan-drawer-content {
|
|
527
|
-
@apply before:bg-background before:border-border
|
|
527
|
+
@apply before:bg-background before:border-border fixed z-50 flex h-auto flex-col bg-transparent p-2 text-xs/relaxed before:absolute before:inset-2 before:-z-10 before:rounded-xl before:border data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=left]:sm:max-w-sm data-[vaul-drawer-direction=right]:sm:max-w-sm;
|
|
528
|
+
touch-action: none;
|
|
528
529
|
}
|
|
529
530
|
|
|
530
531
|
.spartan-drawer-handle {
|
|
@@ -911,11 +912,6 @@
|
|
|
911
912
|
@apply text-muted-foreground end-1.5 top-1/2 -translate-y-1.5 text-[calc(var(--spacing)*3.5)] group-data-[size=sm]/native-select:-translate-y-1.25 group-data-[size=sm]/native-select:text-[calc(var(--spacing)*3)];
|
|
912
913
|
}
|
|
913
914
|
|
|
914
|
-
.spartan-native-select [data-slot='native-select-option'],
|
|
915
|
-
.spartan-native-select [data-slot='native-select-optgroup'] {
|
|
916
|
-
@apply bg-[color:Canvas] text-[color:CanvasText];
|
|
917
|
-
}
|
|
918
|
-
|
|
919
915
|
/* MARK: Pagination */
|
|
920
916
|
.spartan-pagination-content {
|
|
921
917
|
@apply gap-0.5;
|
|
@@ -524,7 +524,8 @@
|
|
|
524
524
|
}
|
|
525
525
|
|
|
526
526
|
.spartan-drawer-content {
|
|
527
|
-
@apply bg-background flex h-auto flex-col text-sm data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-xl data-[vaul-drawer-direction=bottom]:border-t data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:rounded-r-xl data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:rounded-l-xl data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-xl data-[vaul-drawer-direction=top]:border-b data-[vaul-drawer-direction=left]:sm:max-w-sm data-[vaul-drawer-direction=right]:sm:max-w-sm;
|
|
527
|
+
@apply bg-background fixed z-50 flex h-auto flex-col text-sm data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-xl data-[vaul-drawer-direction=bottom]:border-t data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:rounded-r-xl data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:rounded-l-xl data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-xl data-[vaul-drawer-direction=top]:border-b data-[vaul-drawer-direction=left]:sm:max-w-sm data-[vaul-drawer-direction=right]:sm:max-w-sm;
|
|
528
|
+
touch-action: none;
|
|
528
529
|
}
|
|
529
530
|
|
|
530
531
|
.spartan-drawer-handle {
|
|
@@ -911,11 +912,6 @@
|
|
|
911
912
|
@apply text-muted-foreground end-2.5 top-1/2 -translate-y-1/2 text-[calc(var(--spacing)*4)];
|
|
912
913
|
}
|
|
913
914
|
|
|
914
|
-
.spartan-native-select [data-slot='native-select-option'],
|
|
915
|
-
.spartan-native-select [data-slot='native-select-optgroup'] {
|
|
916
|
-
@apply bg-[color:Canvas] text-[color:CanvasText];
|
|
917
|
-
}
|
|
918
|
-
|
|
919
915
|
/* MARK: Pagination */
|
|
920
916
|
.spartan-pagination-content {
|
|
921
917
|
@apply gap-0.5;
|
|
@@ -520,7 +520,8 @@
|
|
|
520
520
|
}
|
|
521
521
|
|
|
522
522
|
&.spartan-drawer-content {
|
|
523
|
-
@apply bg-background flex h-auto flex-col text-sm data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-xl data-[vaul-drawer-direction=bottom]:border-t data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:rounded-r-xl data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:rounded-l-xl data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-xl data-[vaul-drawer-direction=top]:border-b data-[vaul-drawer-direction=left]:sm:max-w-sm data-[vaul-drawer-direction=right]:sm:max-w-sm;
|
|
523
|
+
@apply bg-background fixed z-50 flex h-auto flex-col text-sm data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-xl data-[vaul-drawer-direction=bottom]:border-t data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:rounded-r-xl data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:rounded-l-xl data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-xl data-[vaul-drawer-direction=top]:border-b data-[vaul-drawer-direction=left]:sm:max-w-sm data-[vaul-drawer-direction=right]:sm:max-w-sm;
|
|
524
|
+
touch-action: none;
|
|
524
525
|
}
|
|
525
526
|
|
|
526
527
|
&.spartan-drawer-handle {
|
|
@@ -907,11 +908,6 @@
|
|
|
907
908
|
@apply text-muted-foreground end-2.5 top-1/2 -translate-y-1/2 text-[calc(var(--spacing)*4)];
|
|
908
909
|
}
|
|
909
910
|
|
|
910
|
-
&.spartan-native-select [data-slot='native-select-option'],
|
|
911
|
-
&.spartan-native-select [data-slot='native-select-optgroup'] {
|
|
912
|
-
@apply bg-[color:Canvas] text-[color:CanvasText];
|
|
913
|
-
}
|
|
914
|
-
|
|
915
911
|
/* MARK: Pagination */
|
|
916
912
|
&.spartan-pagination-content {
|
|
917
913
|
@apply gap-1;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"name": "accordion",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/core": ">=21.0.0 <23.0.0",
|
|
6
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
6
|
+
"@spartan-ng/brain": "0.0.1-alpha.715",
|
|
7
7
|
"@ng-icons/core": ">=32.0.0 <34.0.0",
|
|
8
8
|
"@ng-icons/lucide": ">=32.0.0 <34.0.0",
|
|
9
9
|
"clsx": "^2.1.1"
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"name": "alert-dialog",
|
|
21
21
|
"peerDependencies": {
|
|
22
22
|
"@angular/core": ">=21.0.0 <23.0.0",
|
|
23
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
23
|
+
"@spartan-ng/brain": "0.0.1-alpha.715",
|
|
24
24
|
"clsx": "^2.1.1"
|
|
25
25
|
}
|
|
26
26
|
},
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"@angular/core": ">=21.0.0 <23.0.0",
|
|
38
38
|
"@angular/forms": ">=21.0.0 <23.0.0",
|
|
39
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
39
|
+
"@spartan-ng/brain": "0.0.1-alpha.715",
|
|
40
40
|
"@angular/cdk": ">=21.0.0 <23.0.0",
|
|
41
41
|
"@ng-icons/core": ">=32.0.0 <34.0.0",
|
|
42
42
|
"@ng-icons/lucide": ">=32.0.0 <34.0.0"
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"name": "avatar",
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"@angular/core": ">=21.0.0 <23.0.0",
|
|
49
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
49
|
+
"@spartan-ng/brain": "0.0.1-alpha.715"
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
52
|
"badge": {
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"name": "button",
|
|
71
71
|
"peerDependencies": {
|
|
72
72
|
"@angular/core": ">=21.0.0 <23.0.0",
|
|
73
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
73
|
+
"@spartan-ng/brain": "0.0.1-alpha.715",
|
|
74
74
|
"class-variance-authority": "^0.7.0",
|
|
75
75
|
"clsx": "^2.1.1"
|
|
76
76
|
}
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"name": "button-group",
|
|
80
80
|
"peerDependencies": {
|
|
81
81
|
"@angular/core": ">=21.0.0 <23.0.0",
|
|
82
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
82
|
+
"@spartan-ng/brain": "0.0.1-alpha.715",
|
|
83
83
|
"class-variance-authority": "^0.7.0"
|
|
84
84
|
}
|
|
85
85
|
},
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"@angular/core": ">=21.0.0 <23.0.0",
|
|
92
92
|
"@ng-icons/core": ">=32.0.0 <34.0.0",
|
|
93
93
|
"@ng-icons/lucide": ">=32.0.0 <34.0.0",
|
|
94
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
94
|
+
"@spartan-ng/brain": "0.0.1-alpha.715",
|
|
95
95
|
"clsx": "^2.1.1"
|
|
96
96
|
}
|
|
97
97
|
},
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
"@angular/cdk": ">=21.0.0 <23.0.0",
|
|
122
122
|
"@ng-icons/core": ">=32.0.0 <34.0.0",
|
|
123
123
|
"@ng-icons/lucide": ">=32.0.0 <34.0.0",
|
|
124
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
124
|
+
"@spartan-ng/brain": "0.0.1-alpha.715",
|
|
125
125
|
"clsx": "^2.1.1"
|
|
126
126
|
}
|
|
127
127
|
},
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
"name": "collapsible",
|
|
130
130
|
"peerDependencies": {
|
|
131
131
|
"@angular/core": ">=21.0.0 <23.0.0",
|
|
132
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
132
|
+
"@spartan-ng/brain": "0.0.1-alpha.715"
|
|
133
133
|
}
|
|
134
134
|
},
|
|
135
135
|
"combobox": {
|
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
"peerDependencies": {
|
|
138
138
|
"@angular/core": ">=21.0.0 <23.0.0",
|
|
139
139
|
"@angular/forms": ">=21.0.0 <23.0.0",
|
|
140
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
140
|
+
"@spartan-ng/brain": "0.0.1-alpha.715",
|
|
141
141
|
"@angular/cdk": ">=21.0.0 <23.0.0",
|
|
142
142
|
"@ng-icons/core": ">=32.0.0 <34.0.0",
|
|
143
143
|
"@ng-icons/lucide": ">=32.0.0 <34.0.0",
|
|
@@ -149,7 +149,7 @@
|
|
|
149
149
|
"peerDependencies": {
|
|
150
150
|
"@angular/cdk": ">=21.0.0 <23.0.0",
|
|
151
151
|
"@angular/core": ">=21.0.0 <23.0.0",
|
|
152
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
152
|
+
"@spartan-ng/brain": "0.0.1-alpha.715",
|
|
153
153
|
"clsx": "^2.1.1",
|
|
154
154
|
"@ng-icons/core": ">=32.0.0 <34.0.0",
|
|
155
155
|
"@ng-icons/lucide": ">=32.0.0 <34.0.0"
|
|
@@ -159,7 +159,7 @@
|
|
|
159
159
|
"name": "context-menu",
|
|
160
160
|
"peerDependencies": {
|
|
161
161
|
"@angular/core": ">=21.0.0 <23.0.0",
|
|
162
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
162
|
+
"@spartan-ng/brain": "0.0.1-alpha.715",
|
|
163
163
|
"@angular/cdk": ">=21.0.0 <23.0.0",
|
|
164
164
|
"rxjs": "^7.8.0"
|
|
165
165
|
}
|
|
@@ -169,7 +169,7 @@
|
|
|
169
169
|
"peerDependencies": {
|
|
170
170
|
"@angular/core": ">=21.0.0 <23.0.0",
|
|
171
171
|
"@angular/forms": ">=21.0.0 <23.0.0",
|
|
172
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
172
|
+
"@spartan-ng/brain": "0.0.1-alpha.715",
|
|
173
173
|
"@angular/cdk": ">=21.0.0 <23.0.0",
|
|
174
174
|
"@ng-icons/core": ">=32.0.0 <34.0.0",
|
|
175
175
|
"@ng-icons/lucide": ">=32.0.0 <34.0.0",
|
|
@@ -180,7 +180,7 @@
|
|
|
180
180
|
"name": "dialog",
|
|
181
181
|
"peerDependencies": {
|
|
182
182
|
"@angular/core": ">=21.0.0 <23.0.0",
|
|
183
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
183
|
+
"@spartan-ng/brain": "0.0.1-alpha.715",
|
|
184
184
|
"@angular/cdk": ">=21.0.0 <23.0.0",
|
|
185
185
|
"@angular/common": ">=21.0.0 <23.0.0",
|
|
186
186
|
"@ng-icons/core": ">=32.0.0 <34.0.0",
|
|
@@ -188,6 +188,14 @@
|
|
|
188
188
|
"clsx": "^2.1.1"
|
|
189
189
|
}
|
|
190
190
|
},
|
|
191
|
+
"drawer": {
|
|
192
|
+
"name": "drawer",
|
|
193
|
+
"peerDependencies": {
|
|
194
|
+
"@angular/core": ">=21.0.0 <23.0.0",
|
|
195
|
+
"@spartan-ng/brain": "0.0.1-alpha.715",
|
|
196
|
+
"clsx": "^2.1.1"
|
|
197
|
+
}
|
|
198
|
+
},
|
|
191
199
|
"dropdown-menu": {
|
|
192
200
|
"name": "dropdown-menu",
|
|
193
201
|
"peerDependencies": {
|
|
@@ -196,7 +204,7 @@
|
|
|
196
204
|
"@ng-icons/lucide": ">=32.0.0 <34.0.0",
|
|
197
205
|
"@angular/cdk": ">=21.0.0 <23.0.0",
|
|
198
206
|
"rxjs": "^7.8.0",
|
|
199
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
207
|
+
"@spartan-ng/brain": "0.0.1-alpha.715"
|
|
200
208
|
}
|
|
201
209
|
},
|
|
202
210
|
"empty": {
|
|
@@ -210,7 +218,7 @@
|
|
|
210
218
|
"name": "field",
|
|
211
219
|
"peerDependencies": {
|
|
212
220
|
"@angular/core": ">=21.0.0 <23.0.0",
|
|
213
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
221
|
+
"@spartan-ng/brain": "0.0.1-alpha.715",
|
|
214
222
|
"@angular/cdk": ">=21.0.0 <23.0.0",
|
|
215
223
|
"class-variance-authority": "^0.7.0"
|
|
216
224
|
}
|
|
@@ -219,7 +227,7 @@
|
|
|
219
227
|
"name": "hover-card",
|
|
220
228
|
"peerDependencies": {
|
|
221
229
|
"@angular/core": ">=21.0.0 <23.0.0",
|
|
222
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
230
|
+
"@spartan-ng/brain": "0.0.1-alpha.715"
|
|
223
231
|
}
|
|
224
232
|
},
|
|
225
233
|
"icon": {
|
|
@@ -235,7 +243,7 @@
|
|
|
235
243
|
"peerDependencies": {
|
|
236
244
|
"@angular/core": ">=21.0.0 <23.0.0",
|
|
237
245
|
"@angular/forms": ">=21.0.0 <23.0.0",
|
|
238
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
246
|
+
"@spartan-ng/brain": "0.0.1-alpha.715"
|
|
239
247
|
}
|
|
240
248
|
},
|
|
241
249
|
"input-group": {
|
|
@@ -252,7 +260,7 @@
|
|
|
252
260
|
"@ng-icons/core": ">=32.0.0 <34.0.0",
|
|
253
261
|
"@ng-icons/lucide": ">=32.0.0 <34.0.0",
|
|
254
262
|
"@angular/cdk": ">=21.0.0 <23.0.0",
|
|
255
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
263
|
+
"@spartan-ng/brain": "0.0.1-alpha.715"
|
|
256
264
|
}
|
|
257
265
|
},
|
|
258
266
|
"item": {
|
|
@@ -260,7 +268,7 @@
|
|
|
260
268
|
"peerDependencies": {
|
|
261
269
|
"@angular/core": ">=21.0.0 <23.0.0",
|
|
262
270
|
"class-variance-authority": "^0.7.0",
|
|
263
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
271
|
+
"@spartan-ng/brain": "0.0.1-alpha.715"
|
|
264
272
|
}
|
|
265
273
|
},
|
|
266
274
|
"kbd": {
|
|
@@ -273,14 +281,14 @@
|
|
|
273
281
|
"name": "label",
|
|
274
282
|
"peerDependencies": {
|
|
275
283
|
"@angular/core": ">=21.0.0 <23.0.0",
|
|
276
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
284
|
+
"@spartan-ng/brain": "0.0.1-alpha.715"
|
|
277
285
|
}
|
|
278
286
|
},
|
|
279
287
|
"menubar": {
|
|
280
288
|
"name": "menubar",
|
|
281
289
|
"peerDependencies": {
|
|
282
290
|
"@angular/core": ">=21.0.0 <23.0.0",
|
|
283
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
291
|
+
"@spartan-ng/brain": "0.0.1-alpha.715",
|
|
284
292
|
"@angular/cdk": ">=21.0.0 <23.0.0",
|
|
285
293
|
"rxjs": "^7.8.0"
|
|
286
294
|
}
|
|
@@ -293,7 +301,7 @@
|
|
|
293
301
|
"@angular/forms": ">=21.0.0 <23.0.0",
|
|
294
302
|
"@ng-icons/core": ">=32.0.0 <34.0.0",
|
|
295
303
|
"@ng-icons/lucide": ">=32.0.0 <34.0.0",
|
|
296
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
304
|
+
"@spartan-ng/brain": "0.0.1-alpha.715",
|
|
297
305
|
"clsx": "^2.1.1"
|
|
298
306
|
}
|
|
299
307
|
},
|
|
@@ -301,7 +309,7 @@
|
|
|
301
309
|
"name": "navigation-menu",
|
|
302
310
|
"peerDependencies": {
|
|
303
311
|
"@angular/core": ">=21.0.0 <23.0.0",
|
|
304
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
312
|
+
"@spartan-ng/brain": "0.0.1-alpha.715"
|
|
305
313
|
}
|
|
306
314
|
},
|
|
307
315
|
"pagination": {
|
|
@@ -319,7 +327,7 @@
|
|
|
319
327
|
"name": "popover",
|
|
320
328
|
"peerDependencies": {
|
|
321
329
|
"@angular/core": ">=21.0.0 <23.0.0",
|
|
322
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
330
|
+
"@spartan-ng/brain": "0.0.1-alpha.715",
|
|
323
331
|
"@angular/cdk": ">=21.0.0 <23.0.0"
|
|
324
332
|
}
|
|
325
333
|
},
|
|
@@ -328,7 +336,7 @@
|
|
|
328
336
|
"peerDependencies": {
|
|
329
337
|
"@angular/cdk": ">=21.0.0 <23.0.0",
|
|
330
338
|
"@angular/core": ">=21.0.0 <23.0.0",
|
|
331
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
339
|
+
"@spartan-ng/brain": "0.0.1-alpha.715"
|
|
332
340
|
}
|
|
333
341
|
},
|
|
334
342
|
"radio-group": {
|
|
@@ -336,7 +344,7 @@
|
|
|
336
344
|
"peerDependencies": {
|
|
337
345
|
"@angular/core": ">=21.0.0 <23.0.0",
|
|
338
346
|
"@angular/forms": ">=21.0.0 <23.0.0",
|
|
339
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
347
|
+
"@spartan-ng/brain": "0.0.1-alpha.715",
|
|
340
348
|
"clsx": "^2.1.1",
|
|
341
349
|
"@angular/cdk": ">=21.0.0 <23.0.0",
|
|
342
350
|
"@angular/common": ">=21.0.0 <23.0.0"
|
|
@@ -346,7 +354,7 @@
|
|
|
346
354
|
"name": "resizable",
|
|
347
355
|
"peerDependencies": {
|
|
348
356
|
"@angular/core": ">=21.0.0 <23.0.0",
|
|
349
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
357
|
+
"@spartan-ng/brain": "0.0.1-alpha.715"
|
|
350
358
|
}
|
|
351
359
|
},
|
|
352
360
|
"scroll-area": {
|
|
@@ -362,7 +370,7 @@
|
|
|
362
370
|
"@angular/core": ">=21.0.0 <23.0.0",
|
|
363
371
|
"@angular/forms": ">=21.0.0 <23.0.0",
|
|
364
372
|
"@angular/cdk": ">=21.0.0 <23.0.0",
|
|
365
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
373
|
+
"@spartan-ng/brain": "0.0.1-alpha.715",
|
|
366
374
|
"@ng-icons/core": ">=32.0.0 <34.0.0",
|
|
367
375
|
"@ng-icons/lucide": ">=32.0.0 <34.0.0",
|
|
368
376
|
"clsx": "^2.1.1"
|
|
@@ -372,14 +380,14 @@
|
|
|
372
380
|
"name": "separator",
|
|
373
381
|
"peerDependencies": {
|
|
374
382
|
"@angular/core": ">=21.0.0 <23.0.0",
|
|
375
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
383
|
+
"@spartan-ng/brain": "0.0.1-alpha.715"
|
|
376
384
|
}
|
|
377
385
|
},
|
|
378
386
|
"sheet": {
|
|
379
387
|
"name": "sheet",
|
|
380
388
|
"peerDependencies": {
|
|
381
389
|
"@angular/core": ">=21.0.0 <23.0.0",
|
|
382
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
390
|
+
"@spartan-ng/brain": "0.0.1-alpha.715",
|
|
383
391
|
"@angular/cdk": ">=21.0.0 <23.0.0",
|
|
384
392
|
"@ng-icons/core": ">=32.0.0 <34.0.0",
|
|
385
393
|
"@ng-icons/lucide": ">=32.0.0 <34.0.0",
|
|
@@ -391,7 +399,7 @@
|
|
|
391
399
|
"peerDependencies": {
|
|
392
400
|
"@angular/core": ">=21.0.0 <23.0.0",
|
|
393
401
|
"@angular/cdk": ">=21.0.0 <23.0.0",
|
|
394
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
402
|
+
"@spartan-ng/brain": "0.0.1-alpha.715",
|
|
395
403
|
"class-variance-authority": "^0.7.0",
|
|
396
404
|
"@ng-icons/core": ">=32.0.0 <34.0.0",
|
|
397
405
|
"@ng-icons/lucide": ">=32.0.0 <34.0.0",
|
|
@@ -410,7 +418,7 @@
|
|
|
410
418
|
"peerDependencies": {
|
|
411
419
|
"@angular/core": ">=21.0.0 <23.0.0",
|
|
412
420
|
"@angular/forms": ">=21.0.0 <23.0.0",
|
|
413
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
421
|
+
"@spartan-ng/brain": "0.0.1-alpha.715"
|
|
414
422
|
}
|
|
415
423
|
},
|
|
416
424
|
"sonner": {
|
|
@@ -420,7 +428,7 @@
|
|
|
420
428
|
"@angular/core": ">=21.0.0 <23.0.0",
|
|
421
429
|
"@ng-icons/core": ">=32.0.0 <34.0.0",
|
|
422
430
|
"@ng-icons/lucide": ">=32.0.0 <34.0.0",
|
|
423
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
431
|
+
"@spartan-ng/brain": "0.0.1-alpha.715",
|
|
424
432
|
"clsx": "^2.1.1"
|
|
425
433
|
}
|
|
426
434
|
},
|
|
@@ -438,7 +446,7 @@
|
|
|
438
446
|
"@angular/core": ">=21.0.0 <23.0.0",
|
|
439
447
|
"@angular/cdk": ">=21.0.0 <23.0.0",
|
|
440
448
|
"@angular/forms": ">=21.0.0 <23.0.0",
|
|
441
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
449
|
+
"@spartan-ng/brain": "0.0.1-alpha.715",
|
|
442
450
|
"clsx": "^2.1.1"
|
|
443
451
|
}
|
|
444
452
|
},
|
|
@@ -452,7 +460,7 @@
|
|
|
452
460
|
"name": "tabs",
|
|
453
461
|
"peerDependencies": {
|
|
454
462
|
"@angular/core": ">=21.0.0 <23.0.0",
|
|
455
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
463
|
+
"@spartan-ng/brain": "0.0.1-alpha.715",
|
|
456
464
|
"class-variance-authority": "^0.7.0",
|
|
457
465
|
"@angular/cdk": ">=21.0.0 <23.0.0",
|
|
458
466
|
"@ng-icons/core": ">=32.0.0 <34.0.0",
|
|
@@ -466,14 +474,14 @@
|
|
|
466
474
|
"peerDependencies": {
|
|
467
475
|
"@angular/core": ">=21.0.0 <23.0.0",
|
|
468
476
|
"@angular/forms": ">=21.0.0 <23.0.0",
|
|
469
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
477
|
+
"@spartan-ng/brain": "0.0.1-alpha.715"
|
|
470
478
|
}
|
|
471
479
|
},
|
|
472
480
|
"toggle": {
|
|
473
481
|
"name": "toggle",
|
|
474
482
|
"peerDependencies": {
|
|
475
483
|
"@angular/core": ">=21.0.0 <23.0.0",
|
|
476
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
484
|
+
"@spartan-ng/brain": "0.0.1-alpha.715",
|
|
477
485
|
"class-variance-authority": "^0.7.0"
|
|
478
486
|
}
|
|
479
487
|
},
|
|
@@ -481,7 +489,7 @@
|
|
|
481
489
|
"name": "toggle-group",
|
|
482
490
|
"peerDependencies": {
|
|
483
491
|
"@angular/core": ">=21.0.0 <23.0.0",
|
|
484
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
492
|
+
"@spartan-ng/brain": "0.0.1-alpha.715",
|
|
485
493
|
"@angular/cdk": ">=21.0.0 <23.0.0"
|
|
486
494
|
}
|
|
487
495
|
},
|
|
@@ -489,7 +497,7 @@
|
|
|
489
497
|
"name": "tooltip",
|
|
490
498
|
"peerDependencies": {
|
|
491
499
|
"@angular/core": ">=21.0.0 <23.0.0",
|
|
492
|
-
"@spartan-ng/brain": "0.0.1-alpha.
|
|
500
|
+
"@spartan-ng/brain": "0.0.1-alpha.715",
|
|
493
501
|
"class-variance-authority": "^0.7.0"
|
|
494
502
|
}
|
|
495
503
|
},
|
package/src/utils/config.js
CHANGED
|
@@ -62,14 +62,14 @@ const getConfig = async (tree, isAngularCli) => {
|
|
|
62
62
|
}
|
|
63
63
|
};
|
|
64
64
|
async function getImportAlias(tree, isAngularCli) {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
return config.importAlias;
|
|
68
|
-
}
|
|
69
|
-
catch (error) {
|
|
70
|
-
// components.json does not exist or is invalid
|
|
65
|
+
// A missing config is expected for a fresh project - fall back to the default alias.
|
|
66
|
+
if (!tree.exists(configPath)) {
|
|
71
67
|
return '@spartan-ng/helm';
|
|
72
68
|
}
|
|
69
|
+
// A present-but-invalid config is a real error: every migration depends on this alias, so let
|
|
70
|
+
// getConfig throw (it prints the offending fields) rather than silently using the wrong one.
|
|
71
|
+
const config = await getConfig(tree, isAngularCli);
|
|
72
|
+
return config.importAlias;
|
|
73
73
|
}
|
|
74
74
|
async function getOrCreateConfig(tree, defaults) {
|
|
75
75
|
if (tree.exists(configPath)) {
|
package/src/utils/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../../../libs/cli/src/utils/config.ts"],"names":[],"mappings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ACD;YACF,CAAC,CAAC,EAAE,CAAC;QACN;YACC,IAAI,EAAE,OAAO;YACb,IAAI,EAAE,aAAa;YACnB,OAAO,EAAE,sDAAsD;YAC/D,OAAO,EAAE,QAAQ,EAAE,WAAW,IAAI,kBAAkB;YACpD,IAAI,EAAE,CAAC,CAAC,QAAQ,EAAE,WAAW;SAC7B;KACD,CAAC;IAEF,OAAO,CAAC,GAAG,CAAC,qDAAqD,CAAC,CAAC;IAEnE,MAAM,EAAE,cAAc,EAAE,SAAS,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,CAAC,MAAM,IAAA,iBAAM,EAAC,SAAS,CAAC,CAKtF,CAAC;IAEF,MAAM,MAAM,GAAG,EAAE,cAAc,EAAE,SAAS,EAAE,UAAU,EAAE,WAAW,EAAE,CAAC;IAEtE,IAAI,CAAC,KAAK,CAAC,UAAU,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;IAExD,OAAO,MAAM,CAAC;AACf,CAAC"}
|
|
@@ -10,8 +10,8 @@ function getInstalledPackageVersion(tree, packageName, defaultVersion, raw = fal
|
|
|
10
10
|
return null;
|
|
11
11
|
}
|
|
12
12
|
if (!installedPackageVersion || installedPackageVersion === 'latest' || installedPackageVersion === 'next') {
|
|
13
|
-
return (0, semver_1.clean)(defaultVersion) ?? (0, semver_1.coerce)(defaultVersion)
|
|
13
|
+
return (0, semver_1.clean)(defaultVersion) ?? (0, semver_1.coerce)(defaultVersion)?.version ?? null;
|
|
14
14
|
}
|
|
15
|
-
return (raw ? installedPackageVersion : (0, semver_1.clean)(installedPackageVersion)) ?? (0, semver_1.coerce)(installedPackageVersion)
|
|
15
|
+
return ((raw ? installedPackageVersion : (0, semver_1.clean)(installedPackageVersion)) ?? (0, semver_1.coerce)(installedPackageVersion)?.version ?? null);
|
|
16
16
|
}
|
|
17
17
|
//# sourceMappingURL=version-utils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version-utils.js","sourceRoot":"","sources":["../../../../../libs/cli/src/utils/version-utils.ts"],"names":[],"mappings":";;AAGA,
|
|
1
|
+
{"version":3,"file":"version-utils.js","sourceRoot":"","sources":["../../../../../libs/cli/src/utils/version-utils.ts"],"names":[],"mappings":";;AAGA,gEAmBC;AAtBD,uCAAiD;AACjD,mCAAuC;AAEvC,SAAgB,0BAA0B,CACzC,IAAU,EACV,WAAmB,EACnB,cAAuB,EACvB,GAAG,GAAG,KAAK;IAEX,MAAM,OAAO,GAAG,IAAA,iBAAQ,EAAC,IAAI,EAAE,cAAc,CAAC,CAAC;IAC/C,MAAM,uBAAuB,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC,WAAW,CAAC,IAAI,OAAO,CAAC,eAAe,EAAE,CAAC,WAAW,CAAC,CAAC;IAC9G,IAAI,CAAC,uBAAuB,IAAI,CAAC,cAAc,EAAE,CAAC;QACjD,OAAO,IAAI,CAAC;IACb,CAAC;IAED,IAAI,CAAC,uBAAuB,IAAI,uBAAuB,KAAK,QAAQ,IAAI,uBAAuB,KAAK,MAAM,EAAE,CAAC;QAC5G,OAAO,IAAA,cAAK,EAAC,cAAc,CAAC,IAAI,IAAA,eAAM,EAAC,cAAc,CAAC,EAAE,OAAO,IAAI,IAAI,CAAC;IACzE,CAAC;IAED,OAAO,CACN,CAAC,GAAG,CAAC,CAAC,CAAC,uBAAuB,CAAC,CAAC,CAAC,IAAA,cAAK,EAAC,uBAAuB,CAAC,CAAC,IAAI,IAAA,eAAM,EAAC,uBAAuB,CAAC,EAAE,OAAO,IAAI,IAAI,CACpH,CAAC;AACH,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function promptUser(question: string): Promise<boolean>;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.promptUser = promptUser;
|
|
4
|
-
function promptUser(question) {
|
|
5
|
-
return new Promise((resolve) => {
|
|
6
|
-
process.stdout.write(`${question} (y/n): `);
|
|
7
|
-
process.stdin.setEncoding('utf8');
|
|
8
|
-
process.stdin.once('data', (data) => {
|
|
9
|
-
const answer = data.toString().trim().toLowerCase();
|
|
10
|
-
if (['yes', 'y'].includes(answer)) {
|
|
11
|
-
resolve(true);
|
|
12
|
-
}
|
|
13
|
-
else if (['no', 'n'].includes(answer)) {
|
|
14
|
-
resolve(false);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
console.log('Invalid response. Please answer with "yes" or "no".');
|
|
18
|
-
resolve(promptUser(question));
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
//# sourceMappingURL=prompt.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"prompt.js","sourceRoot":"","sources":["../../../../../../../libs/cli/src/generators/healthcheck/utils/prompt.ts"],"names":[],"mappings":";;AAAA,gCAiBC;AAjBD,SAAgB,UAAU,CAAC,QAAgB;IAC1C,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QAC9B,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,UAAU,CAAC,CAAC;QAE5C,OAAO,CAAC,KAAK,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;QAClC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE;YACnC,MAAM,MAAM,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;YACpD,IAAI,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;gBACnC,OAAO,CAAC,IAAI,CAAC,CAAC;YACf,CAAC;iBAAM,IAAI,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;gBACzC,OAAO,CAAC,KAAK,CAAC,CAAC;YAChB,CAAC;iBAAM,CAAC;gBACP,OAAO,CAAC,GAAG,CAAC,qDAAqD,CAAC,CAAC;gBACnE,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAC;YAC/B,CAAC;QACF,CAAC,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;AACJ,CAAC"}
|