@spartan-ng/cli 0.0.1-alpha.718 → 0.0.1-alpha.719
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/base/generator.js +30 -0
- package/src/generators/base/generator.js.map +1 -1
- package/src/generators/base/lib/build-dependency-array.js +13 -0
- package/src/generators/base/lib/build-dependency-array.js.map +1 -1
- package/src/generators/base/versions.d.ts +1 -1
- package/src/generators/base/versions.js +1 -1
- package/src/generators/migrate-naming-convention/__snapshots__/generator.spec.ts.snap +1 -1
- package/src/generators/ui/libs/avatar/files/lib/hlm-avatar-badge.ts.template +2 -2
- package/src/generators/ui/libs/breadcrumb/files/lib/hlm-breadcrumb-ellipsis.ts.template +9 -4
- package/src/generators/ui/libs/carousel/files/lib/hlm-carousel-next.ts.template +3 -4
- package/src/generators/ui/libs/carousel/files/lib/hlm-carousel-previous.ts.template +3 -4
- package/src/generators/ui/libs/checkbox/files/lib/hlm-checkbox.ts.template +3 -4
- package/src/generators/ui/libs/dialog/files/lib/hlm-dialog-content.ts.template +4 -4
- package/src/generators/ui/libs/dropdown-menu/files/lib/hlm-dropdown-menu-item-sub-indicator.ts.template +1 -1
- package/src/generators/ui/libs/input-otp/files/lib/hlm-input-otp-separator.ts.template +2 -3
- package/src/generators/ui/libs/sheet/files/lib/hlm-sheet-content.ts.template +4 -4
- package/src/generators/ui/libs/sidebar/files/lib/hlm-sidebar-menu-button.ts.template +1 -1
- package/src/generators/ui/libs/spinner/files/lib/hlm-spinner.ts.template +1 -1
- package/src/generators/ui/libs/tabs/files/lib/hlm-tabs-paginated-list.ts.template +7 -8
- package/src/generators/ui/primitive-deps.js +19 -20
- package/src/generators/ui/primitive-deps.js.map +1 -1
- package/src/generators/ui/primitives.d.ts +1 -1
- package/src/generators/ui/style-luma.css +43 -43
- package/src/generators/ui/style-lyra.css +44 -44
- package/src/generators/ui/style-maia.css +43 -43
- package/src/generators/ui/style-mira.css +48 -48
- package/src/generators/ui/style-nova.css +45 -45
- package/src/generators/ui/style-vega.css +43 -43
- package/src/generators/ui/supported-ui-libraries.json +41 -49
- package/src/generators/ui/libs/icon/files/index.ts.template +0 -7
- package/src/generators/ui/libs/icon/files/lib/hlm-icon.token.ts.template +0 -20
- package/src/generators/ui/libs/icon/files/lib/hlm-icon.ts.template +0 -35
- package/src/generators/ui/libs/icon/generator.d.ts +0 -3
- package/src/generators/ui/libs/icon/generator.js +0 -9
- package/src/generators/ui/libs/icon/generator.js.map +0 -1
package/package.json
CHANGED
|
@@ -40,6 +40,36 @@ function isAlreadyInstalled(tree, alias) {
|
|
|
40
40
|
}
|
|
41
41
|
function setupAngularCliProject(tree, alias, targetLibDir) {
|
|
42
42
|
(0, js_1.addTsConfigPath)(tree, alias, [`./${(0, devkit_1.joinPathFragments)(targetLibDir, 'src', 'index.ts').replace(/\\/g, '/')}`]);
|
|
43
|
+
// The generated libraries live outside the app's `src`, so they aren't covered by tsconfig.app.json's
|
|
44
|
+
// default `src/**/*.ts` include. The app still *builds* (the Angular builder follows the path-mapped
|
|
45
|
+
// imports into the libs), but the TS language server treats the generated files as orphans compiled
|
|
46
|
+
// without the root `paths`, so cross-lib imports (`@spartan-ng/helm/utils`, ...) show as "cannot find
|
|
47
|
+
// module" in the editor. Add the generated component source dirs to the include so the files belong to
|
|
48
|
+
// the app project and resolve in-editor, without pulling specs/stories/helpers under the components dir
|
|
49
|
+
// into the app program.
|
|
50
|
+
const componentsBaseDir = path.posix.dirname(targetLibDir.replace(/\\/g, '/'));
|
|
51
|
+
ensureAppTsConfigIncludes(tree, `${componentsBaseDir}/**/src/**/*.ts`);
|
|
52
|
+
}
|
|
53
|
+
// Adds `glob` to the Angular CLI app's tsconfig.app.json `include` (idempotent). Targets tsconfig.app.json
|
|
54
|
+
// by convention - the default build/typecheck tsconfig for an `ng new` app; a non-standard app tsconfig is
|
|
55
|
+
// left untouched (the spartan angular-cli flow assumes the default layout).
|
|
56
|
+
function ensureAppTsConfigIncludes(tree, glob) {
|
|
57
|
+
const tsConfigAppPath = 'tsconfig.app.json';
|
|
58
|
+
if (!tree.exists(tsConfigAppPath)) {
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
(0, devkit_1.updateJson)(tree, tsConfigAppPath, (json) => {
|
|
62
|
+
if (!Array.isArray(json.include)) {
|
|
63
|
+
// With no `include`, TypeScript implicitly compiles every `.ts` under the config dir. Seeding the
|
|
64
|
+
// array with just our glob would silently replace that with "only the generated libs", dropping the
|
|
65
|
+
// app's own `src` from the editor program. Preserve the implicit `src` coverage before appending.
|
|
66
|
+
json.include = ['src/**/*.ts'];
|
|
67
|
+
}
|
|
68
|
+
if (!json.include.includes(glob)) {
|
|
69
|
+
json.include.push(glob);
|
|
70
|
+
}
|
|
71
|
+
return json;
|
|
72
|
+
});
|
|
43
73
|
}
|
|
44
74
|
// nx's `librarySecondaryEntryPointGenerator` appends an entrypoint-prefixed copy of every existing
|
|
45
75
|
// include/exclude glob each time it runs (see `updateTsConfigIncludedFiles`). When many entrypoints
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../libs/cli/src/generators/base/generator.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../libs/cli/src/generators/base/generator.ts"],"names":[],"mappings":";;AAqGA,sDA2BC;AAwED,4CAyCC;;AAjPD,uCASoB;AACpB,+BAAoE;AACpE,wDAAkC;AAElC,mDAAiE;AACjE,6DAAuE;AACvE,yEAA6F;AAC7F,mDAAgD;AAChD,qFAA+E;AAC/E,iFAA4E;AAE5E,uDAA6E;AAC7E,2BAA4C;AAC5C,2DAAsD;AACtD,oEAA+D;AAC/D,sDAAwD;AAExD,yCAA0D;AAE1D,MAAM,aAAa,GAAG,IAAI,GAAG,EAAkC,CAAC;AAEhE,KAAK,UAAU,WAAW,CAAC,KAAa;IACvC,IAAI,aAAa,CAAC,GAAG,CA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AAS,EAAE,CAAC,QAAQ,EAAE,EAAE;QAClD,cAAc,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC/B,CAAC,CAAC,CAAC;IAEH,KAAK,MAAM,QAAQ,IAAI,cAAc,EAAE,CAAC;QACvC,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;QAC7C,IAAI,CAAC,OAAO;YAAE,SAAS;QACvB,MAAM,WAAW,GAAG,MAAM,IAAA,0BAAc,EAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,CAAC,CAAC;QAChE,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAC;IACnC,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,oBAAoB,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC;IAEhD,OAAO,IAAA,yBAAgB,EAAC,GAAG,KAAK,CAAC,CAAC;AACnC,CAAC;AAED,kBAAe,gBAAgB,CAAC"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.buildDependencyArray = buildDependencyArray;
|
|
4
4
|
exports.buildDevDependencyArray = buildDevDependencyArray;
|
|
5
|
+
const semver_1 = require("semver");
|
|
5
6
|
const version_utils_1 = require("../../../utils/version-utils");
|
|
6
7
|
const versions_1 = require("../versions");
|
|
7
8
|
function buildDependencyArray(tree, options, cdkVersion) {
|
|
@@ -13,8 +14,20 @@ function buildDependencyArray(tree, options, cdkVersion) {
|
|
|
13
14
|
if (options.peerDependencies) {
|
|
14
15
|
dependencies = { ...dependencies, ...options.peerDependencies };
|
|
15
16
|
}
|
|
17
|
+
// embla-carousel-angular majors track the Angular major (v21 -> Angular 21, v22 -> Angular 22). A static
|
|
18
|
+
// range in supported-ui-libraries.json can't know the consumer's Angular version, so npm resolves the
|
|
19
|
+
// highest match and pulls a major whose peer range excludes an older Angular (ERESOLVE). Pin it to the
|
|
20
|
+
// installed Angular major instead. Falls back to the declared range when Angular can't be resolved.
|
|
21
|
+
if (dependencies['embla-carousel-angular']) {
|
|
22
|
+
const angularVersion = (0, version_utils_1.getInstalledPackageVersion)(tree, '@angular/core', undefined, false);
|
|
23
|
+
const angularMajor = angularVersion ? (0, semver_1.major)(angularVersion) : null;
|
|
24
|
+
if (angularMajor !== null) {
|
|
25
|
+
dependencies['embla-carousel-angular'] = `^${angularMajor}.0.0`;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
16
28
|
if (options.name === 'icon' || options.name === 'spinner') {
|
|
17
29
|
dependencies['@ng-icons/core'] = versions_1.NG_ICONS_VERSION;
|
|
30
|
+
dependencies['@ng-icons/lucide'] = versions_1.NG_ICONS_VERSION;
|
|
18
31
|
}
|
|
19
32
|
return dependencies;
|
|
20
33
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-dependency-array.js","sourceRoot":"","sources":["../../../../../../../libs/cli/src/generators/base/lib/build-dependency-array.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"build-dependency-array.js","sourceRoot":"","sources":["../../../../../../../libs/cli/src/generators/base/lib/build-dependency-array.ts"],"names":[],"mappings":";;AAMA,oDA4BC;AAED,0DAIC;AAvCD,mCAA+B;AAC/B,gEAA0E;AAE1E,0CAAuF;AAEvF,SAAgB,oBAAoB,CAAC,IAAU,EAAE,OAA+B,EAAE,UAAkB;IACnG,IAAI,YAAY,GAA2B;QAC1C,cAAc,EAAE,UAAU;QAC1B,mBAAmB,EAAE,IAAA,0CAA0B,EAAC,IAAI,EAAE,iBAAiB,EAAE,SAAS,EAAE,IAAI,CAAC;QACzF,gBAAgB,EAAE,iCAAsB;KACxC,CAAC;IAEF,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC;QAC9B,YAAY,GAAG,EAAE,GAAG,YAAY,EAAE,GAAG,OAAO,CAAC,gBAAgB,EAAE,CAAC;IACjE,CAAC;IAED,yGAAyG;IACzG,sGAAsG;IACtG,uGAAuG;IACvG,oGAAoG;IACpG,IAAI,YAAY,CAAC,wBAAwB,CAAC,EAAE,CAAC;QAC5C,MAAM,cAAc,GAAG,IAAA,0CAA0B,EAAC,IAAI,EAAE,eAAe,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC;QAC3F,MAAM,YAAY,GAAG,cAAc,CAAC,CAAC,CAAC,IAAA,cAAK,EAAC,cAAc,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;QACnE,IAAI,YAAY,KAAK,IAAI,EAAE,CAAC;YAC3B,YAAY,CAAC,wBAAwB,CAAC,GAAG,IAAI,YAAY,MAAM,CAAC;QACjE,CAAC;IACF,CAAC;IAED,IAAI,OAAO,CAAC,IAAI,KAAK,MAAM,IAAI,OAAO,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;QAC3D,YAAY,CAAC,gBAAgB,CAAC,GAAG,2BAAgB,CAAC;QAClD,YAAY,CAAC,kBAAkB,CAAC,GAAG,2BAAgB,CAAC;IACrD,CAAC;IACD,OAAO,YAAY,CAAC;AACrB,CAAC;AAED,SAAgB,uBAAuB;IACtC,OAAO;QACN,gBAAgB,EAAE,yBAAc;KAChC,CAAC;AACH,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const FALLBACK_ANGULAR_VERSION: string;
|
|
2
2
|
export declare const FALLBACK_ANGULAR_CDK_VERSION: string;
|
|
3
|
-
export declare const NG_ICONS_VERSION = "^
|
|
3
|
+
export declare const NG_ICONS_VERSION = "^32.2.0";
|
|
4
4
|
export declare const TAILWIND_MERGE_VERSION = "^3.5.0";
|
|
5
5
|
export declare const TW_ANIMATE_CSS = "^1.4.0";
|
|
@@ -6,7 +6,7 @@ const core_1 = require("@angular/core");
|
|
|
6
6
|
exports.FALLBACK_ANGULAR_VERSION = `^${core_1.VERSION.major}.0.0`;
|
|
7
7
|
exports.FALLBACK_ANGULAR_CDK_VERSION = `^${core_1.VERSION.major}.0.0`;
|
|
8
8
|
// ng-icon dependency
|
|
9
|
-
exports.NG_ICONS_VERSION = '^
|
|
9
|
+
exports.NG_ICONS_VERSION = '^32.2.0';
|
|
10
10
|
// dev dependencies
|
|
11
11
|
exports.TAILWIND_MERGE_VERSION = '^3.5.0';
|
|
12
12
|
exports.TW_ANIMATE_CSS = '^1.4.0';
|
|
@@ -138,7 +138,7 @@ type Framework = { label: string; value: string };
|
|
|
138
138
|
hlmBtn
|
|
139
139
|
>
|
|
140
140
|
{{ currentFramework() ? currentFramework()?.label : 'Select framework...' }}
|
|
141
|
-
<ng-icon
|
|
141
|
+
<ng-icon name="lucideChevronsUpDown" class="opacity-50" />
|
|
142
142
|
</button>
|
|
143
143
|
<hlm-command *brnPopoverContent="let ctx" hlmPopoverContent class="w-[200px] p-0">
|
|
144
144
|
<hlm-command-search>
|
|
@@ -12,8 +12,8 @@ export class HlmAvatarBadge {
|
|
|
12
12
|
classes(() => [
|
|
13
13
|
'spartan-avatar-badge absolute right-0 bottom-0 z-10 inline-flex items-center justify-center rounded-full bg-blend-color ring-2 select-none',
|
|
14
14
|
'group-data-[size=sm]/avatar:size-2 group-data-[size=sm]/avatar:[&>ng-icon]:hidden',
|
|
15
|
-
'group-data-[size=default]/avatar:size-2.5 group-data-[size=default]/avatar:[&>ng-icon]:text-[
|
|
16
|
-
'group-data-[size=lg]/avatar:size-3 group-data-[size=lg]/avatar:[&>ng-icon]:text-[
|
|
15
|
+
'group-data-[size=default]/avatar:size-2.5 group-data-[size=default]/avatar:[&>ng-icon]:text-[length:--spacing(2)]',
|
|
16
|
+
'group-data-[size=lg]/avatar:size-3 group-data-[size=lg]/avatar:[&>ng-icon]:text-[length:--spacing(2)]',
|
|
17
17
|
]);
|
|
18
18
|
}
|
|
19
19
|
}
|
|
@@ -1,18 +1,23 @@
|
|
|
1
1
|
import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';
|
|
2
2
|
import { NgIcon, provideIcons } from '@ng-icons/core';
|
|
3
3
|
import { lucideEllipsis } from '@ng-icons/lucide';
|
|
4
|
-
import { HlmIcon } from '<%- importAlias %>/icon';
|
|
5
4
|
import { hlm } from '<%- importAlias %>/utils';
|
|
6
5
|
import type { ClassValue } from 'clsx';
|
|
7
6
|
|
|
8
7
|
@Component({
|
|
9
8
|
selector: 'hlm-breadcrumb-ellipsis',
|
|
10
|
-
imports: [NgIcon
|
|
9
|
+
imports: [NgIcon],
|
|
11
10
|
providers: [provideIcons({ lucideEllipsis })],
|
|
12
11
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
13
12
|
template: `
|
|
14
|
-
<span
|
|
15
|
-
|
|
13
|
+
<span
|
|
14
|
+
class="spartan-breadcrumb-ellipsis"
|
|
15
|
+
data-slot="breadcrumb-ellipsis"
|
|
16
|
+
role="presentation"
|
|
17
|
+
aria-hidden="true"
|
|
18
|
+
[class]="_computedClass()"
|
|
19
|
+
>
|
|
20
|
+
<ng-icon name="lucideEllipsis" />
|
|
16
21
|
<span class="sr-only">{{ srOnlyText() }}</span>
|
|
17
22
|
</span>
|
|
18
23
|
`,
|
|
@@ -2,14 +2,13 @@ import { ChangeDetectionStrategy, Component, computed, effect, inject, untracked
|
|
|
2
2
|
import { NgIcon, provideIcons } from '@ng-icons/core';
|
|
3
3
|
import { lucideArrowRight } from '@ng-icons/lucide';
|
|
4
4
|
import { HlmButton, provideBrnButtonConfig } from '<%- importAlias %>/button';
|
|
5
|
-
import { HlmIcon } from '<%- importAlias %>/icon';
|
|
6
5
|
import { hlm } from '<%- importAlias %>/utils';
|
|
7
6
|
import { HlmCarousel } from './hlm-carousel';
|
|
8
7
|
|
|
9
8
|
@Component({
|
|
10
9
|
selector: 'button[hlm-carousel-next], button[hlmCarouselNext]',
|
|
11
|
-
imports: [NgIcon
|
|
12
|
-
providers: [provideIcons({ lucideArrowRight }), provideBrnButtonConfig({ variant: 'outline', size: 'icon' })],
|
|
10
|
+
imports: [NgIcon],
|
|
11
|
+
providers: [provideIcons({ lucideArrowRight }), provideBrnButtonConfig({ variant: 'outline', size: 'icon-sm' })],
|
|
13
12
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
14
13
|
hostDirectives: [{ directive: HlmButton, inputs: ['variant', 'size'] }],
|
|
15
14
|
host: {
|
|
@@ -18,7 +17,7 @@ import { HlmCarousel } from './hlm-carousel';
|
|
|
18
17
|
'(click)': '_carousel.scrollNext()',
|
|
19
18
|
},
|
|
20
19
|
template: `
|
|
21
|
-
<ng-icon
|
|
20
|
+
<ng-icon name="lucideArrowRight" class="rtl:rotate-180" />
|
|
22
21
|
<span class="sr-only">Next slide</span>
|
|
23
22
|
`,
|
|
24
23
|
})
|
|
@@ -2,14 +2,13 @@ import { ChangeDetectionStrategy, Component, computed, effect, inject, untracked
|
|
|
2
2
|
import { NgIcon, provideIcons } from '@ng-icons/core';
|
|
3
3
|
import { lucideArrowLeft } from '@ng-icons/lucide';
|
|
4
4
|
import { HlmButton, provideBrnButtonConfig } from '<%- importAlias %>/button';
|
|
5
|
-
import { HlmIcon } from '<%- importAlias %>/icon';
|
|
6
5
|
import { hlm } from '<%- importAlias %>/utils';
|
|
7
6
|
import { HlmCarousel } from './hlm-carousel';
|
|
8
7
|
|
|
9
8
|
@Component({
|
|
10
9
|
selector: 'button[hlm-carousel-previous], button[hlmCarouselPrevious]',
|
|
11
|
-
imports: [NgIcon
|
|
12
|
-
providers: [provideIcons({ lucideArrowLeft }), provideBrnButtonConfig({ variant: 'outline', size: 'icon' })],
|
|
10
|
+
imports: [NgIcon],
|
|
11
|
+
providers: [provideIcons({ lucideArrowLeft }), provideBrnButtonConfig({ variant: 'outline', size: 'icon-sm' })],
|
|
13
12
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
14
13
|
hostDirectives: [{ directive: HlmButton, inputs: ['variant', 'size'] }],
|
|
15
14
|
host: {
|
|
@@ -18,7 +17,7 @@ import { HlmCarousel } from './hlm-carousel';
|
|
|
18
17
|
'(click)': '_carousel.scrollPrev()',
|
|
19
18
|
},
|
|
20
19
|
template: `
|
|
21
|
-
<ng-icon
|
|
20
|
+
<ng-icon name="lucideArrowLeft" class="rtl:rotate-180" />
|
|
22
21
|
<span class="sr-only">Previous slide</span>
|
|
23
22
|
`,
|
|
24
23
|
})
|
|
@@ -17,7 +17,6 @@ import { lucideCheck } from '@ng-icons/lucide';
|
|
|
17
17
|
import { BrnCheckbox } from '@spartan-ng/brain/checkbox';
|
|
18
18
|
import { BrnFieldControlDescribedBy } from '@spartan-ng/brain/field';
|
|
19
19
|
import type { ChangeFn, TouchFn } from '@spartan-ng/brain/forms';
|
|
20
|
-
import { HlmIcon } from '<%- importAlias %>/icon';
|
|
21
20
|
import { hlm } from '<%- importAlias %>/utils';
|
|
22
21
|
import type { ClassValue } from 'clsx';
|
|
23
22
|
|
|
@@ -29,7 +28,7 @@ export const HLM_CHECKBOX_VALUE_ACCESSOR = {
|
|
|
29
28
|
|
|
30
29
|
@Component({
|
|
31
30
|
selector: 'hlm-checkbox',
|
|
32
|
-
imports: [BrnCheckbox, NgIcon
|
|
31
|
+
imports: [BrnCheckbox, NgIcon],
|
|
33
32
|
providers: [HLM_CHECKBOX_VALUE_ACCESSOR],
|
|
34
33
|
viewProviders: [provideIcons({ lucideCheck })],
|
|
35
34
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -58,8 +57,8 @@ export const HLM_CHECKBOX_VALUE_ACCESSOR = {
|
|
|
58
57
|
(touched)="_onTouched?.()"
|
|
59
58
|
>
|
|
60
59
|
@if (checked() || indeterminate()) {
|
|
61
|
-
<span class="flex items-center justify-center text-current transition-none">
|
|
62
|
-
<ng-icon
|
|
60
|
+
<span class="spartan-checkbox-indicator flex items-center justify-center text-current transition-none">
|
|
61
|
+
<ng-icon name="lucideCheck" />
|
|
63
62
|
</span>
|
|
64
63
|
}
|
|
65
64
|
</brn-checkbox>
|
|
@@ -2,11 +2,11 @@ import type { BooleanInput } from '@angular/cdk/coercion';
|
|
|
2
2
|
import type { ComponentType } from '@angular/cdk/portal';
|
|
3
3
|
import { NgComponentOutlet } from '@angular/common';
|
|
4
4
|
import { booleanAttribute, ChangeDetectionStrategy, Component, computed, inject, input } from '@angular/core';
|
|
5
|
-
import { provideIcons } from '@ng-icons/core';
|
|
5
|
+
import { NgIcon, provideIcons } from '@ng-icons/core';
|
|
6
6
|
import { lucideX } from '@ng-icons/lucide';
|
|
7
7
|
import { BrnDialogRef, injectBrnDialogContext } from '@spartan-ng/brain/dialog';
|
|
8
8
|
import { HlmButton } from '<%- importAlias %>/button';
|
|
9
|
-
|
|
9
|
+
|
|
10
10
|
import { classes } from '<%- importAlias %>/utils';
|
|
11
11
|
import { HlmDialogClose } from './hlm-dialog-close';
|
|
12
12
|
|
|
@@ -18,7 +18,7 @@ type HlmDialogContentContext = {
|
|
|
18
18
|
|
|
19
19
|
@Component({
|
|
20
20
|
selector: 'hlm-dialog-content',
|
|
21
|
-
imports: [NgComponentOutlet,
|
|
21
|
+
imports: [NgComponentOutlet, HlmButton, HlmDialogClose, NgIcon],
|
|
22
22
|
providers: [provideIcons({ lucideX })],
|
|
23
23
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
24
24
|
host: {
|
|
@@ -35,7 +35,7 @@ type HlmDialogContentContext = {
|
|
|
35
35
|
@if (showCloseButton()) {
|
|
36
36
|
<button hlmBtn variant="ghost" size="icon-sm" class="spartan-dialog-close" hlmDialogClose>
|
|
37
37
|
<span class="sr-only">close</span>
|
|
38
|
-
<ng-icon
|
|
38
|
+
<ng-icon name="lucideX" />
|
|
39
39
|
</button>
|
|
40
40
|
}
|
|
41
41
|
`,
|
|
@@ -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-[
|
|
12
|
+
<ng-icon name="lucideChevronRight" class="text-[length:--spacing(4)] rtl:rotate-180" />
|
|
13
13
|
`,
|
|
14
14
|
})
|
|
15
15
|
export class HlmDropdownMenuItemSubIndicator {
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
2
2
|
import { NgIcon, provideIcons } from '@ng-icons/core';
|
|
3
3
|
import { lucideMinus } from '@ng-icons/lucide';
|
|
4
|
-
import { HlmIcon } from '<%- importAlias %>/icon';
|
|
5
4
|
import { classes } from '<%- importAlias %>/utils';
|
|
6
5
|
|
|
7
6
|
@Component({
|
|
8
7
|
selector: 'hlm-input-otp-separator',
|
|
9
|
-
imports: [
|
|
8
|
+
imports: [NgIcon],
|
|
10
9
|
providers: [provideIcons({ lucideMinus })],
|
|
11
10
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
12
11
|
host: {
|
|
@@ -14,7 +13,7 @@ import { classes } from '<%- importAlias %>/utils';
|
|
|
14
13
|
'data-slot': 'input-otp-separator',
|
|
15
14
|
},
|
|
16
15
|
template: `
|
|
17
|
-
<ng-icon
|
|
16
|
+
<ng-icon name="lucideMinus" />
|
|
18
17
|
`,
|
|
19
18
|
})
|
|
20
19
|
export class HlmInputOtpSeparator {
|
|
@@ -10,17 +10,17 @@ import {
|
|
|
10
10
|
Renderer2,
|
|
11
11
|
signal,
|
|
12
12
|
} from '@angular/core';
|
|
13
|
-
import { provideIcons } from '@ng-icons/core';
|
|
13
|
+
import { NgIcon, provideIcons } from '@ng-icons/core';
|
|
14
14
|
import { lucideX } from '@ng-icons/lucide';
|
|
15
15
|
import { injectExposedSideProvider, injectExposesStateProvider } from '@spartan-ng/brain/core';
|
|
16
16
|
import { HlmButton } from '<%- importAlias %>/button';
|
|
17
|
-
|
|
17
|
+
|
|
18
18
|
import { classes } from '<%- importAlias %>/utils';
|
|
19
19
|
import { HlmSheetClose } from './hlm-sheet-close';
|
|
20
20
|
|
|
21
21
|
@Component({
|
|
22
22
|
selector: 'hlm-sheet-content',
|
|
23
|
-
imports: [
|
|
23
|
+
imports: [HlmButton, HlmSheetClose, NgIcon],
|
|
24
24
|
providers: [provideIcons({ lucideX })],
|
|
25
25
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
26
26
|
host: {
|
|
@@ -34,7 +34,7 @@ import { HlmSheetClose } from './hlm-sheet-close';
|
|
|
34
34
|
@if (showCloseButton()) {
|
|
35
35
|
<button hlmBtn variant="ghost" size="icon-sm" class="spartan-sheet-close" hlmSheetClose>
|
|
36
36
|
<span class="sr-only">Close</span>
|
|
37
|
-
<ng-icon
|
|
37
|
+
<ng-icon name="lucideX" />
|
|
38
38
|
</button>
|
|
39
39
|
}
|
|
40
40
|
`,
|
|
@@ -12,7 +12,7 @@ import { HlmSidebarService } from './hlm-sidebar.service';
|
|
|
12
12
|
import { injectHlmSidebarConfig } from './hlm-sidebar.token';
|
|
13
13
|
|
|
14
14
|
const sidebarMenuButtonVariants = cva(
|
|
15
|
-
'spartan-sidebar-menu-button peer/menu-button group/menu-button flex w-full items-center overflow-hidden outline-hidden disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&_ng-icon]:shrink-0 [&_ng-icon]:text-[
|
|
15
|
+
'spartan-sidebar-menu-button peer/menu-button group/menu-button flex w-full items-center overflow-hidden outline-hidden disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&_ng-icon]:shrink-0 [&_ng-icon]:text-[length:--spacing(4)] [&>span:last-child]:truncate',
|
|
16
16
|
{
|
|
17
17
|
variants: {
|
|
18
18
|
variant: {
|
|
@@ -27,6 +27,6 @@ export class HlmSpinner {
|
|
|
27
27
|
public readonly ariaLabel = input<string>('Loading', { alias: 'aria-label' });
|
|
28
28
|
|
|
29
29
|
constructor() {
|
|
30
|
-
classes(() => 'inline-flex text-[
|
|
30
|
+
classes(() => 'inline-flex text-[length:--spacing(4)] motion-safe:animate-spin');
|
|
31
31
|
}
|
|
32
32
|
}
|
|
@@ -2,9 +2,9 @@ import { CdkObserveContent } from '@angular/cdk/observers';
|
|
|
2
2
|
import {
|
|
3
3
|
ChangeDetectionStrategy,
|
|
4
4
|
Component,
|
|
5
|
-
type ElementRef,
|
|
6
5
|
computed,
|
|
7
6
|
contentChildren,
|
|
7
|
+
type ElementRef,
|
|
8
8
|
input,
|
|
9
9
|
viewChild,
|
|
10
10
|
} from '@angular/core';
|
|
@@ -13,7 +13,6 @@ import { NgIcon, provideIcons } from '@ng-icons/core';
|
|
|
13
13
|
import { lucideChevronLeft, lucideChevronRight } from '@ng-icons/lucide';
|
|
14
14
|
import { type BrnPaginatedTabHeaderItem, BrnTabsPaginatedList, BrnTabsTrigger } from '@spartan-ng/brain/tabs';
|
|
15
15
|
import { buttonVariants } from '<%- importAlias %>/button';
|
|
16
|
-
import { HlmIcon } from '<%- importAlias %>/icon';
|
|
17
16
|
import { classes, hlm } from '<%- importAlias %>/utils';
|
|
18
17
|
import type { ClassValue } from 'clsx';
|
|
19
18
|
import type { Observable } from 'rxjs';
|
|
@@ -21,7 +20,7 @@ import { listVariants } from './hlm-tabs-list';
|
|
|
21
20
|
|
|
22
21
|
@Component({
|
|
23
22
|
selector: 'hlm-paginated-tabs-list',
|
|
24
|
-
imports: [CdkObserveContent, NgIcon
|
|
23
|
+
imports: [CdkObserveContent, NgIcon],
|
|
25
24
|
providers: [provideIcons({ lucideChevronRight, lucideChevronLeft })],
|
|
26
25
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
27
26
|
host: {
|
|
@@ -42,7 +41,7 @@ import { listVariants } from './hlm-tabs-list';
|
|
|
42
41
|
(mousedown)="_handlePaginatorPress('before', $event)"
|
|
43
42
|
(touchend)="_stopInterval()"
|
|
44
43
|
>
|
|
45
|
-
<ng-icon
|
|
44
|
+
<ng-icon name="lucideChevronLeft" />
|
|
46
45
|
</button>
|
|
47
46
|
|
|
48
47
|
<div #tabListContainer class="z-[1] flex grow overflow-hidden" (keydown)="_handleKeydown($event)">
|
|
@@ -67,14 +66,14 @@ import { listVariants } from './hlm-tabs-list';
|
|
|
67
66
|
(mousedown)="_handlePaginatorPress('after', $event)"
|
|
68
67
|
(touchend)="_stopInterval()"
|
|
69
68
|
>
|
|
70
|
-
<ng-icon
|
|
69
|
+
<ng-icon name="lucideChevronRight" />
|
|
71
70
|
</button>
|
|
72
71
|
`,
|
|
73
72
|
})
|
|
74
73
|
export class HlmTabsPaginatedList extends BrnTabsPaginatedList {
|
|
75
74
|
constructor() {
|
|
76
75
|
super();
|
|
77
|
-
classes(() => 'relative flex flex-shrink-0 gap-1 overflow-hidden');
|
|
76
|
+
classes(() => 'relative flex flex-shrink-0 items-center gap-1 overflow-hidden');
|
|
78
77
|
}
|
|
79
78
|
|
|
80
79
|
public readonly items = contentChildren(BrnTabsTrigger, { descendants: false });
|
|
@@ -90,11 +89,11 @@ export class HlmTabsPaginatedList extends BrnTabsPaginatedList {
|
|
|
90
89
|
public readonly tabListClass = input<ClassValue>('', { alias: 'tabListClass' });
|
|
91
90
|
protected readonly _tabListClass = computed(() => hlm(listVariants(), this.tabListClass()));
|
|
92
91
|
|
|
93
|
-
public readonly paginationButtonClass = input<ClassValue>(''
|
|
92
|
+
public readonly paginationButtonClass = input<ClassValue>('');
|
|
94
93
|
protected readonly _paginationButtonClass = computed(() =>
|
|
95
94
|
hlm(
|
|
96
95
|
'relative z-[2] select-none disabled:cursor-default',
|
|
97
|
-
buttonVariants({ variant: 'ghost', size: 'icon' }),
|
|
96
|
+
buttonVariants({ variant: 'ghost', size: 'icon-sm' }),
|
|
98
97
|
this.paginationButtonClass(),
|
|
99
98
|
),
|
|
100
99
|
);
|
|
@@ -2,58 +2,57 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getDependentPrimitives = exports.primitiveDependencies = void 0;
|
|
4
4
|
exports.primitiveDependencies = {
|
|
5
|
-
accordion: ['utils'
|
|
6
|
-
alert: ['utils'
|
|
5
|
+
accordion: ['utils'],
|
|
6
|
+
alert: ['utils'],
|
|
7
7
|
'alert-dialog': ['utils', 'button'],
|
|
8
8
|
'aspect-ratio': ['utils'],
|
|
9
|
-
autocomplete: ['utils', 'popover', '
|
|
9
|
+
autocomplete: ['utils', 'popover', 'input-group'],
|
|
10
10
|
avatar: ['utils'],
|
|
11
11
|
badge: ['utils'],
|
|
12
|
-
breadcrumb: ['utils'
|
|
12
|
+
breadcrumb: ['utils'],
|
|
13
13
|
button: ['utils'],
|
|
14
14
|
'button-group': ['utils', 'button'],
|
|
15
|
-
calendar: ['utils', 'button', '
|
|
15
|
+
calendar: ['utils', 'button', 'select'],
|
|
16
16
|
card: ['utils'],
|
|
17
|
-
carousel: ['utils', 'button'
|
|
18
|
-
checkbox: ['utils'
|
|
17
|
+
carousel: ['utils', 'button'],
|
|
18
|
+
checkbox: ['utils'],
|
|
19
19
|
collapsible: ['utils'],
|
|
20
|
-
combobox: ['utils', 'input-group', 'button'
|
|
21
|
-
command: ['utils', 'button'
|
|
20
|
+
combobox: ['utils', 'input-group', 'button'],
|
|
21
|
+
command: ['utils', 'button'],
|
|
22
22
|
'context-menu': ['utils', 'dropdown-menu'],
|
|
23
|
-
'date-picker': ['utils', 'calendar', '
|
|
24
|
-
dialog: ['utils'
|
|
23
|
+
'date-picker': ['utils', 'calendar', 'popover'],
|
|
24
|
+
dialog: ['utils'],
|
|
25
25
|
drawer: ['utils'],
|
|
26
|
-
'dropdown-menu': ['utils'
|
|
26
|
+
'dropdown-menu': ['utils'],
|
|
27
27
|
empty: ['utils'],
|
|
28
28
|
field: ['utils', 'label', 'separator'],
|
|
29
29
|
'hover-card': ['utils'],
|
|
30
|
-
icon: [],
|
|
31
30
|
input: ['utils'],
|
|
32
31
|
'input-group': ['utils', 'button', 'input', 'textarea'],
|
|
33
|
-
'input-otp': ['utils'
|
|
32
|
+
'input-otp': ['utils'],
|
|
34
33
|
item: ['utils', 'separator'],
|
|
35
34
|
kbd: ['utils'],
|
|
36
35
|
label: ['utils'],
|
|
37
36
|
menubar: ['utils', 'dropdown-menu'],
|
|
38
|
-
'native-select': ['utils'
|
|
37
|
+
'native-select': ['utils'],
|
|
39
38
|
'navigation-menu': ['utils'],
|
|
40
|
-
pagination: ['utils', 'button', '
|
|
39
|
+
pagination: ['utils', 'button', 'select'],
|
|
41
40
|
popover: ['utils'],
|
|
42
41
|
progress: ['utils'],
|
|
43
42
|
'radio-group': ['utils'],
|
|
44
43
|
resizable: ['utils'],
|
|
45
44
|
'scroll-area': ['utils'],
|
|
46
|
-
select: ['utils'
|
|
45
|
+
select: ['utils'],
|
|
47
46
|
separator: ['utils'],
|
|
48
|
-
sheet: ['utils', '
|
|
49
|
-
sidebar: ['utils', 'button', '
|
|
47
|
+
sheet: ['utils', 'button'],
|
|
48
|
+
sidebar: ['utils', 'button', 'input', 'separator', 'sheet', 'skeleton', 'tooltip'],
|
|
50
49
|
skeleton: ['utils'],
|
|
51
50
|
slider: ['utils'],
|
|
52
51
|
sonner: ['utils'],
|
|
53
52
|
spinner: ['utils'],
|
|
54
53
|
switch: ['utils'],
|
|
55
54
|
table: ['utils'],
|
|
56
|
-
tabs: ['utils'
|
|
55
|
+
tabs: ['utils'],
|
|
57
56
|
textarea: ['utils'],
|
|
58
57
|
toggle: ['utils'],
|
|
59
58
|
'toggle-group': ['utils', 'toggle'],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"primitive-deps.js","sourceRoot":"","sources":["../../../../../../libs/cli/src/generators/ui/primitive-deps.ts"],"names":[],"mappings":";;;AAEa,QAAA,qBAAqB,GAAmC;IACpE,SAAS,EAAE,CAAC,OAAO,
|
|
1
|
+
{"version":3,"file":"primitive-deps.js","sourceRoot":"","sources":["../../../../../../libs/cli/src/generators/ui/primitive-deps.ts"],"names":[],"mappings":";;;AAEa,QAAA,qBAAqB,GAAmC;IACpE,SAAS,EAAE,CAAC,OAAO,CAAC;IACpB,KAAK,EAAE,CAAC,OAAO,CAAC;IAChB,cAAc,EAAE,CAAC,OAAO,EAAE,QAAQ,CAAC;IACnC,cAAc,EAAE,CAAC,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GAAG,6BAAqB,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;QACpD,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;YACxB,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;gBAC/B,2FAA2F;gBAC3F,mBAAmB,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;gBAC7B,IAAA,8BAAsB,EAAC,CAAC,GAAG,CAAC,CAAC;qBAC3B,MAAM,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC,mBAAmB,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;qBAC7F,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,mBAAmB,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;YAC9C,CAAC;QACF,CAAC;IACF,CAAC;IAED,OAAO,KAAK,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;AACxC,CAAC,CAAC;AAjBW,QAAA,sBAAsB,0BAiBjC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type Primitive = 'accordion' | 'alert' | 'alert-dialog' | 'aspect-ratio' | 'autocomplete' | 'avatar' | 'badge' | 'breadcrumb' | 'button' | 'button-group' | 'calendar' | 'card' | 'carousel' | 'checkbox' | 'collapsible' | 'combobox' | 'command' | 'context-menu' | 'date-picker' | 'dialog' | 'drawer' | 'dropdown-menu' | 'empty' | 'field' | 'hover-card' | '
|
|
1
|
+
export type Primitive = 'accordion' | 'alert' | 'alert-dialog' | 'aspect-ratio' | 'autocomplete' | 'avatar' | 'badge' | 'breadcrumb' | 'button' | 'button-group' | 'calendar' | 'card' | 'carousel' | 'checkbox' | 'collapsible' | 'combobox' | 'command' | 'context-menu' | 'date-picker' | 'dialog' | 'drawer' | 'dropdown-menu' | 'empty' | 'field' | 'hover-card' | 'input' | 'input-group' | 'input-otp' | 'item' | 'kbd' | 'label' | 'menubar' | 'native-select' | 'navigation-menu' | 'pagination' | 'popover' | 'progress' | 'radio-group' | 'resizable' | 'scroll-area' | 'select' | 'separator' | 'sheet' | 'sidebar' | 'skeleton' | 'slider' | 'sonner' | 'spinner' | 'switch' | 'table' | 'tabs' | 'textarea' | 'toggle' | 'toggle-group' | 'tooltip' | 'typography' | 'utils';
|