@radix-ng/primitives 0.29.0 → 0.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/checkbox/src/checkbox.directive.d.ts +11 -0
- package/config/index.d.ts +2 -0
- package/config/src/config.d.ts +21 -0
- package/config/src/config.provider.d.ts +10 -0
- package/core/index.d.ts +2 -0
- package/core/src/isNumber.d.ts +1 -0
- package/core/src/nullish.d.ts +1 -0
- package/dialog/src/dialog.config.d.ts +1 -0
- package/dropdown-menu/src/dropdown-menu-label.directive.d.ts +2 -1
- package/dropdown-menu/src/dropdown-menu-separator.directive.d.ts +2 -2
- package/fesm2022/radix-ng-primitives-accordion.mjs +20 -20
- package/fesm2022/radix-ng-primitives-alert-dialog.mjs +22 -22
- package/fesm2022/radix-ng-primitives-aspect-ratio.mjs +3 -3
- package/fesm2022/radix-ng-primitives-avatar.mjs +16 -16
- package/fesm2022/radix-ng-primitives-checkbox.mjs +28 -17
- package/fesm2022/radix-ng-primitives-checkbox.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-collapsible.mjs +10 -10
- package/fesm2022/radix-ng-primitives-config.mjs +54 -0
- package/fesm2022/radix-ng-primitives-config.mjs.map +1 -0
- package/fesm2022/radix-ng-primitives-context-menu.mjs +36 -36
- package/fesm2022/radix-ng-primitives-core.mjs +14 -8
- package/fesm2022/radix-ng-primitives-core.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-dialog.mjs +40 -38
- package/fesm2022/radix-ng-primitives-dialog.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-dropdown-menu.mjs +39 -44
- package/fesm2022/radix-ng-primitives-dropdown-menu.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-hover-card.mjs +30 -33
- package/fesm2022/radix-ng-primitives-hover-card.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-label.mjs +3 -3
- package/fesm2022/radix-ng-primitives-menu.mjs +429 -62
- package/fesm2022/radix-ng-primitives-menu.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-menubar.mjs +87 -139
- package/fesm2022/radix-ng-primitives-menubar.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-pagination.mjs +326 -0
- package/fesm2022/radix-ng-primitives-pagination.mjs.map +1 -0
- package/fesm2022/radix-ng-primitives-popover.mjs +30 -33
- package/fesm2022/radix-ng-primitives-popover.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-progress.mjs +68 -90
- package/fesm2022/radix-ng-primitives-progress.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-radio.mjs +13 -13
- package/fesm2022/radix-ng-primitives-roving-focus.mjs +7 -7
- package/fesm2022/radix-ng-primitives-select.mjs +36 -36
- package/fesm2022/radix-ng-primitives-separator.mjs +3 -3
- package/fesm2022/radix-ng-primitives-slider.mjs +32 -32
- package/fesm2022/radix-ng-primitives-switch.mjs +13 -13
- package/fesm2022/radix-ng-primitives-tabs.mjs +16 -16
- package/fesm2022/radix-ng-primitives-toggle-group.mjs +9 -9
- package/fesm2022/radix-ng-primitives-toggle.mjs +6 -6
- package/fesm2022/radix-ng-primitives-toolbar.mjs +22 -22
- package/fesm2022/radix-ng-primitives-tooltip.mjs +30 -33
- package/fesm2022/radix-ng-primitives-tooltip.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-visually-hidden.mjs +9 -9
- package/hover-card/src/hover-card-root.directive.d.ts +4 -4
- package/menu/index.d.ts +20 -9
- package/menu/src/menu-content.directive.d.ts +1 -1
- package/menu/src/menu-directive.d.ts +1 -1
- package/menu/src/menu-group.directive.d.ts +1 -1
- package/menu/src/menu-item-checkbox.directive.d.ts +21 -0
- package/menu/src/menu-item-indicator.directive.d.ts +10 -0
- package/menu/src/menu-item-radio.directive.d.ts +20 -0
- package/menu/src/menu-item.directive.d.ts +8 -2
- package/menu/src/menu-label.directive.d.ts +1 -1
- package/menu/src/menu-radio-group.directive.d.ts +6 -0
- package/menu/src/menu-separator.directive.d.ts +1 -2
- package/menu/src/menu-trigger.directive.d.ts +35 -0
- package/menu/src/utils.d.ts +3 -0
- package/menubar/index.d.ts +1 -1
- package/menubar/src/menubar-content.directive.d.ts +2 -2
- package/menubar/src/menubar-item-checkbox.directive.d.ts +2 -10
- package/menubar/src/menubar-item-indicator.directive.d.ts +2 -1
- package/menubar/src/menubar-item-radio.directive.d.ts +2 -10
- package/menubar/src/menubar-item.directive.d.ts +1 -3
- package/menubar/src/menubar-radio-group.directive.d.ts +1 -1
- package/menubar/src/menubar-root.directive.d.ts +3 -4
- package/menubar/src/menubar-separator.directive.d.ts +1 -1
- package/menubar/src/menubar-trigger.directive.d.ts +2 -7
- package/package.json +19 -11
- package/pagination/README.md +1 -0
- package/pagination/index.d.ts +23 -0
- package/pagination/src/pagination-context.token.d.ts +11 -0
- package/pagination/src/pagination-ellipsis.directive.d.ts +5 -0
- package/pagination/src/pagination-first.directive.d.ts +8 -0
- package/pagination/src/pagination-last.directive.d.ts +8 -0
- package/pagination/src/pagination-list-item.directive.d.ts +10 -0
- package/pagination/src/pagination-list.directive.d.ts +12 -0
- package/pagination/src/pagination-next.directive.d.ts +8 -0
- package/pagination/src/pagination-prev.directive.d.ts +8 -0
- package/pagination/src/pagination-root.directive.d.ts +18 -0
- package/pagination/src/utils.d.ts +9 -0
- package/popover/src/popover-root.directive.d.ts +4 -4
- package/progress/src/progress-root.directive.d.ts +19 -33
- package/schematics/collection.json +2 -3
- package/schematics/ng-add/index.d.ts +1 -2
- package/schematics/ng-add/index.js +48 -18
- package/schematics/ng-add/index.js.map +1 -1
- package/schematics/ng-add/package-config.d.ts +18 -0
- package/schematics/ng-add/package-config.js +51 -0
- package/schematics/ng-add/package-config.js.map +1 -0
- package/tooltip/src/tooltip-root.directive.d.ts +4 -4
- package/LICENSE +0 -21
- package/schematics/ng-add/schema.d.ts +0 -3
- package/schematics/ng-add/schema.js +0 -3
- package/schematics/ng-add/schema.js.map +0 -1
@@ -1,5 +1,6 @@
|
|
1
|
-
import {
|
1
|
+
import { InjectionToken } from '@angular/core';
|
2
2
|
import * as i0 from "@angular/core";
|
3
|
+
export declare const RdxProgressToken: InjectionToken<RdxProgressRootDirective>;
|
3
4
|
/**
|
4
5
|
* Injects the current instance of RdxProgressRootDirective.
|
5
6
|
* @returns The instance of RdxProgressRootDirective.
|
@@ -7,9 +8,14 @@ import * as i0 from "@angular/core";
|
|
7
8
|
export declare function injectProgress(): RdxProgressRootDirective;
|
8
9
|
export type ProgressState = 'indeterminate' | 'complete' | 'loading';
|
9
10
|
export interface ProgressProps {
|
10
|
-
value?: number | null
|
11
|
+
value?: number | null;
|
11
12
|
max?: number;
|
12
|
-
|
13
|
+
/**
|
14
|
+
* A function to get the accessible label text representing the current value in a human-readable format.
|
15
|
+
*
|
16
|
+
* If not provided, the value label will be read as the numeric value as a percentage of the max value.
|
17
|
+
*/
|
18
|
+
getValueLabel?: (value: number, max: number) => string;
|
13
19
|
}
|
14
20
|
/**
|
15
21
|
* Directive to manage progress bar state and attributes.
|
@@ -19,50 +25,30 @@ export interface ProgressProps {
|
|
19
25
|
*
|
20
26
|
* @group Components
|
21
27
|
*/
|
22
|
-
export declare class RdxProgressRootDirective
|
23
|
-
/**
|
24
|
-
* The unique ID for the progress bar.
|
25
|
-
* @default 'rdx-progress-bar-{idIterator}'
|
26
|
-
*/
|
27
|
-
id: string;
|
28
|
+
export declare class RdxProgressRootDirective {
|
28
29
|
/**
|
29
30
|
* The current value of the progress bar.
|
30
31
|
* @group Props
|
31
32
|
* @defaultValue 0
|
32
33
|
*/
|
33
|
-
value: number
|
34
|
+
readonly value: import("@angular/core").ModelSignal<number>;
|
34
35
|
/**
|
35
36
|
* The maximum value of the progress bar.
|
36
37
|
* @defaultValue 100
|
37
38
|
* @group Props
|
38
39
|
*/
|
39
|
-
max: number
|
40
|
+
readonly max: import("@angular/core").ModelSignal<number>;
|
40
41
|
/**
|
41
42
|
* Function to generate the value label.
|
42
43
|
* @group Props
|
43
44
|
*/
|
44
|
-
valueLabel: (value: number, max: number) => string
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
ngOnChanges(changes: SimpleChanges): void;
|
51
|
-
/**
|
52
|
-
* Get the state of the progress bar.
|
53
|
-
* @returns 'indeterminate' | 'loading' | 'complete'
|
54
|
-
* @ignore
|
55
|
-
*/
|
56
|
-
get state(): ProgressState;
|
57
|
-
private getProgressState;
|
45
|
+
readonly valueLabel: import("@angular/core").InputSignal<(value: number, max: number) => string>;
|
46
|
+
protected readonly label: import("@angular/core").Signal<string>;
|
47
|
+
readonly progressState: import("@angular/core").Signal<ProgressState>;
|
48
|
+
constructor();
|
49
|
+
private validateValue;
|
50
|
+
private validateMax;
|
58
51
|
private defaultGetValueLabel;
|
59
|
-
private isValidMaxNumber;
|
60
|
-
private isNumber;
|
61
|
-
private isValidValueNumber;
|
62
|
-
private getInvalidMaxError;
|
63
|
-
private getInvalidValueError;
|
64
52
|
static ɵfac: i0.ɵɵFactoryDeclaration<RdxProgressRootDirective, never>;
|
65
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxProgressRootDirective, "[rdxProgressRoot]", ["rdxProgressRoot"], { "
|
66
|
-
static ngAcceptInputType_value: unknown;
|
67
|
-
static ngAcceptInputType_max: unknown;
|
53
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxProgressRootDirective, "[rdxProgressRoot]", ["rdxProgressRoot"], { "value": { "alias": "value"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "valueLabel": { "alias": "valueLabel"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "max": "maxChange"; }, never, never, true, never>;
|
68
54
|
}
|
@@ -2,9 +2,8 @@
|
|
2
2
|
"$schema": "../node_modules/@angular-devkit/schematics/collection-schema.json",
|
3
3
|
"schematics": {
|
4
4
|
"ng-add": {
|
5
|
-
"description": "Add
|
6
|
-
"factory": "./ng-add",
|
7
|
-
"schema": "./ng-add/schema.json",
|
5
|
+
"description": "Add RadixNG to the application.",
|
6
|
+
"factory": "./ng-add/index#ngAdd",
|
8
7
|
"aliases": ["install"]
|
9
8
|
}
|
10
9
|
}
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import { Rule } from '@angular-devkit/schematics';
|
2
|
-
import { Schema } from './schema';
|
3
2
|
/**
|
4
3
|
* This is executed when `ng add @radix-ng/primitives` is run.
|
5
4
|
* It installs all dependencies in the 'package.json'.
|
6
5
|
*/
|
7
|
-
export
|
6
|
+
export declare function ngAdd(): Rule;
|
@@ -1,31 +1,61 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.ngAdd = ngAdd;
|
4
4
|
const schematics_1 = require("@angular-devkit/schematics");
|
5
5
|
const tasks_1 = require("@angular-devkit/schematics/tasks");
|
6
|
-
const
|
7
|
-
const
|
8
|
-
const
|
9
|
-
ANGULAR_CDK: '^19.0.0',
|
10
|
-
RADIX_NG: '^28.0.0'
|
11
|
-
};
|
6
|
+
const dependencies_1 = require("@schematics/angular/utility/dependencies");
|
7
|
+
const pkgJson = require("../../package.json");
|
8
|
+
const package_config_1 = require("./package-config");
|
12
9
|
/**
|
13
10
|
* This is executed when `ng add @radix-ng/primitives` is run.
|
14
11
|
* It installs all dependencies in the 'package.json'.
|
15
12
|
*/
|
16
|
-
function
|
17
|
-
return
|
18
|
-
const
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
13
|
+
function ngAdd() {
|
14
|
+
return (tree, context) => {
|
15
|
+
const pkg = pkgJson;
|
16
|
+
context.logger.info(``);
|
17
|
+
context.logger.info(`Installing ${pkg.name} dependencies...`);
|
18
|
+
const ngCoreVersionTag = (0, package_config_1.getPackageVersionFromPackageJson)(tree, '@angular/core');
|
19
|
+
context.logger.info(`@angular/core version ${ngCoreVersionTag}`);
|
20
|
+
if (!ngCoreVersionTag) {
|
21
|
+
throw new schematics_1.SchematicsException('@angular/core version not found');
|
25
22
|
}
|
26
|
-
|
27
|
-
|
23
|
+
const projectDeps = [
|
24
|
+
{
|
25
|
+
name: '@angular/animations',
|
26
|
+
type: dependencies_1.NodeDependencyType.Default,
|
27
|
+
version: ngCoreVersionTag,
|
28
|
+
overwrite: false
|
29
|
+
},
|
30
|
+
{ name: '@angular/common', type: dependencies_1.NodeDependencyType.Default, version: ngCoreVersionTag, overwrite: false },
|
31
|
+
{ name: '@angular/core', type: dependencies_1.NodeDependencyType.Default, version: ngCoreVersionTag, overwrite: false }
|
32
|
+
];
|
33
|
+
projectDeps.forEach((dep) => {
|
34
|
+
(0, dependencies_1.addPackageJsonDependency)(tree, dep);
|
35
|
+
context.logger.info(`Added dependency: ${dep.name}@${dep.version}`);
|
36
|
+
});
|
37
|
+
const libraryDeps = [
|
38
|
+
{
|
39
|
+
name: '@angular/cdk',
|
40
|
+
type: dependencies_1.NodeDependencyType.Default,
|
41
|
+
version: pkg.peerDependencies['@angular/cdk'],
|
42
|
+
overwrite: false
|
43
|
+
}
|
44
|
+
];
|
45
|
+
libraryDeps.forEach((dep) => {
|
46
|
+
(0, dependencies_1.addPackageJsonDependency)(tree, dep);
|
47
|
+
context.logger.info(`Added dependency: ${dep.name}@${dep.version}`);
|
48
|
+
});
|
49
|
+
const library = {
|
50
|
+
name: pkg.name,
|
51
|
+
type: dependencies_1.NodeDependencyType.Default,
|
52
|
+
version: `~${pkg.version}`,
|
53
|
+
overwrite: true
|
54
|
+
};
|
55
|
+
(0, dependencies_1.addPackageJsonDependency)(tree, library);
|
56
|
+
context.logger.info(`Installing ${library.name}@${library.version}`);
|
28
57
|
context.addTask(new tasks_1.NodePackageInstallTask());
|
58
|
+
return tree;
|
29
59
|
};
|
30
60
|
}
|
31
61
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/primitives/schematics/ng-add/index.ts"],"names":[],"mappings":";;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/primitives/schematics/ng-add/index.ts"],"names":[],"mappings":";;AAUA,sBA0DC;AApED,2DAA+F;AAC/F,4DAA0E;AAC1E,2EAAwH;AACxH,8CAA8C;AAC9C,qDAAiF;AAEjF;;;GAGG;AACH,SAAgB,KAAK;IACjB,OAAO,CAAC,IAAU,EAAE,OAAyB,EAAE,EAAE;QAC7C,MAAM,GAAG,GAAG,OAAiC,CAAC;QAE9C,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACxB,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,cAAc,GAAG,CAAC,IAAI,kBAAkB,CAAC,CAAC;QAE9D,MAAM,gBAAgB,GAAG,IAAA,iDAAgC,EAAC,IAAI,EAAE,eAAe,CAAC,CAAC;QACjF,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,yBAAyB,gBAAgB,EAAE,CAAC,CAAC;QAEjE,IAAI,CAAC,gBAAgB,EAAE,CAAC;YACpB,MAAM,IAAI,gCAAmB,CAAC,iCAAiC,CAAC,CAAC;QACrE,CAAC;QAED,MAAM,WAAW,GAAqB;YAClC;gBACI,IAAI,EAAE,qBAAqB;gBAC3B,IAAI,EAAE,iCAAkB,CAAC,OAAO;gBAChC,OAAO,EAAE,gBAAgB;gBACzB,SAAS,EAAE,KAAK;aACnB;YACD,EAAE,IAAI,EAAE,iBAAiB,EAAE,IAAI,EAAE,iCAAkB,CAAC,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,KAAK,EAAE;YAC1G,EAAE,IAAI,EAAE,eAAe,EAAE,IAAI,EAAE,iCAAkB,CAAC,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,KAAK,EAAE;SAC3G,CAAC;QAEF,WAAW,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;YACxB,IAAA,uCAAwB,EAAC,IAAI,EAAE,GAAG,CAAC,CAAC;YACpC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,qBAAqB,GAAG,CAAC,IAAI,IAAI,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC;QACxE,CAAC,CAAC,CAAC;QAEH,MAAM,WAAW,GAAqB;YAClC;gBACI,IAAI,EAAE,cAAc;gBACpB,IAAI,EAAE,iCAAkB,CAAC,OAAO;gBAChC,OAAO,EAAE,GAAG,CAAC,gBAAgB,CAAC,cAAc,CAAC;gBAC7C,SAAS,EAAE,KAAK;aACnB;SACJ,CAAC;QAEF,WAAW,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;YACxB,IAAA,uCAAwB,EAAC,IAAI,EAAE,GAAG,CAAC,CAAC;YACpC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,qBAAqB,GAAG,CAAC,IAAI,IAAI,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC;QACxE,CAAC,CAAC,CAAC;QAEH,MAAM,OAAO,GAAmB;YAC5B,IAAI,EAAE,GAAG,CAAC,IAAI;YACd,IAAI,EAAE,iCAAkB,CAAC,OAAO;YAChC,OAAO,EAAE,IAAI,GAAG,CAAC,OAAO,EAAE;YAC1B,SAAS,EAAE,IAAI;SAClB,CAAC;QAEF,IAAA,uCAAwB,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QACxC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,cAAc,OAAO,CAAC,IAAI,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC;QAErE,OAAO,CAAC,OAAO,CAAC,IAAI,8BAAsB,EAAE,CAAC,CAAC;QAE9C,OAAO,IAAI,CAAC;IAChB,CAAC,CAAC;AACN,CAAC"}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Copyright Google LLC All Rights Reserved.
|
4
|
+
*
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be
|
6
|
+
* found in the LICENSE file at https://angular.io/license
|
7
|
+
*/
|
8
|
+
import { Tree } from '@angular-devkit/schematics';
|
9
|
+
export interface PackageJson {
|
10
|
+
dependencies: Record<string, string>;
|
11
|
+
name: string;
|
12
|
+
peerDependencies: Record<string, string>;
|
13
|
+
version: string;
|
14
|
+
}
|
15
|
+
/** Adds a package to the package.json in the given host tree. */
|
16
|
+
export declare function addPackageToPackageJson(host: Tree, pkg: string, version: string): Tree;
|
17
|
+
/** Gets the version of the specified package by looking at the package.json in the given tree. */
|
18
|
+
export declare function getPackageVersionFromPackageJson(tree: Tree, name: string): string | null;
|
@@ -0,0 +1,51 @@
|
|
1
|
+
"use strict";
|
2
|
+
/**
|
3
|
+
* @license
|
4
|
+
* Copyright Google LLC All Rights Reserved.
|
5
|
+
*
|
6
|
+
* Use of this source code is governed by an MIT-style license that can be
|
7
|
+
* found in the LICENSE file at https://angular.io/license
|
8
|
+
*/
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
10
|
+
exports.addPackageToPackageJson = addPackageToPackageJson;
|
11
|
+
exports.getPackageVersionFromPackageJson = getPackageVersionFromPackageJson;
|
12
|
+
/**
|
13
|
+
* Sorts the keys of the given object.
|
14
|
+
* @returns A new object instance with sorted keys
|
15
|
+
*/
|
16
|
+
function sortObjectByKeys(obj) {
|
17
|
+
return Object.keys(obj)
|
18
|
+
.sort()
|
19
|
+
.reduce((result, key) => {
|
20
|
+
result[key] = obj[key];
|
21
|
+
return result;
|
22
|
+
}, {});
|
23
|
+
}
|
24
|
+
/** Adds a package to the package.json in the given host tree. */
|
25
|
+
function addPackageToPackageJson(host, pkg, version) {
|
26
|
+
if (host.exists('package.json')) {
|
27
|
+
const sourceText = host.read('package.json').toString('utf-8');
|
28
|
+
const json = JSON.parse(sourceText);
|
29
|
+
if (!json.dependencies) {
|
30
|
+
json.dependencies = {};
|
31
|
+
}
|
32
|
+
if (!json.dependencies[pkg]) {
|
33
|
+
json.dependencies[pkg] = version;
|
34
|
+
json.dependencies = sortObjectByKeys(json.dependencies);
|
35
|
+
}
|
36
|
+
host.overwrite('package.json', JSON.stringify(json, null, 2));
|
37
|
+
}
|
38
|
+
return host;
|
39
|
+
}
|
40
|
+
/** Gets the version of the specified package by looking at the package.json in the given tree. */
|
41
|
+
function getPackageVersionFromPackageJson(tree, name) {
|
42
|
+
if (!tree.exists('package.json')) {
|
43
|
+
return null;
|
44
|
+
}
|
45
|
+
const packageJson = JSON.parse(tree.read('package.json').toString('utf8'));
|
46
|
+
if (packageJson.dependencies && packageJson.dependencies[name]) {
|
47
|
+
return packageJson.dependencies[name];
|
48
|
+
}
|
49
|
+
return null;
|
50
|
+
}
|
51
|
+
//# sourceMappingURL=package-config.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"package-config.js","sourceRoot":"","sources":["../../../../packages/primitives/schematics/ng-add/package-config.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AA4BH,0DAkBC;AAGD,4EAYC;AAlDD;;;GAGG;AACH,SAAS,gBAAgB,CAAC,GAA2B;IACjD,OAAO,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC;SAClB,IAAI,EAAE;SACN,MAAM,CACH,CAAC,MAAM,EAAE,GAAG,EAAE,EAAE;QACZ,MAAM,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC;QACvB,OAAO,MAAM,CAAC;IAClB,CAAC,EACD,EAA4B,CAC/B,CAAC;AACV,CAAC;AAED,iEAAiE;AACjE,SAAgB,uBAAuB,CAAC,IAAU,EAAE,GAAW,EAAE,OAAe;IAC5E,IAAI,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,EAAE,CAAC;QAC9B,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,cAAc,CAAE,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QAChE,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,UAAU,CAAgB,CAAC;QAEnD,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,CAAC;YACrB,IAAI,CAAC,YAAY,GAAG,EAAE,CAAC;QAC3B,CAAC;QAED,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,EAAE,CAAC;YAC1B,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC;YACjC,IAAI,CAAC,YAAY,GAAG,gBAAgB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC5D,CAAC;QAED,IAAI,CAAC,SAAS,CAAC,cAAc,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,kGAAkG;AAClG,SAAgB,gCAAgC,CAAC,IAAU,EAAE,IAAY;IACrE,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,EAAE,CAAC;QAC/B,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,cAAc,CAAE,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAgB,CAAC;IAE3F,IAAI,WAAW,CAAC,YAAY,IAAI,WAAW,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,CAAC;QAC7D,OAAO,WAAW,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;IAC1C,CAAC;IAED,OAAO,IAAI,CAAC;AAChB,CAAC"}
|
@@ -79,7 +79,7 @@ export declare class RdxTooltipRootDirective {
|
|
79
79
|
window: Window & typeof globalThis;
|
80
80
|
primitiveConfigs?: import("./utils/types").PrimitiveConfigs;
|
81
81
|
onDestroyCallbacks: Set<() => void>;
|
82
|
-
"__#
|
82
|
+
"__#11559@#clickDomRootEventCallbacks": Set<(event: MouseEvent) => void>;
|
83
83
|
registerPrimitive<T extends object>(primitiveInstance: T): void;
|
84
84
|
deregisterPrimitive<T extends object>(primitiveInstance: T): void;
|
85
85
|
preventPrimitiveFromCdkEvent<T extends object>(primitiveInstance: T, eventType: import("./utils/types").EventType): void;
|
@@ -90,9 +90,9 @@ export declare class RdxTooltipRootDirective {
|
|
90
90
|
primitivePreventedFromCdkEvent<T extends object>(primitiveInstance: T, eventType: import("./utils/types").EventType): boolean | undefined;
|
91
91
|
addClickDomRootEventCallback(callback: (event: MouseEvent) => void): void;
|
92
92
|
removeClickDomRootEventCallback(callback: (event: MouseEvent) => void): boolean;
|
93
|
-
"__#
|
94
|
-
"__#
|
95
|
-
"__#
|
93
|
+
"__#11559@#setPreventPrimitiveFromCdkEvent"<T extends object, R extends import("./utils/types").EventType, K extends import("./utils/types").PrimitiveConfig[`prevent${Capitalize<R>}`]>(primitiveInstance: T, eventType: R, value: K): void;
|
94
|
+
"__#11559@#registerOnDestroyCallbacks"(): void;
|
95
|
+
"__#11559@#listenToClickDomRootEvent"(): void;
|
96
96
|
} | null;
|
97
97
|
/** @ignore */
|
98
98
|
readonly destroyRef: DestroyRef;
|
package/LICENSE
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
MIT License
|
2
|
-
|
3
|
-
Copyright (c) 2024 radix-ng
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
7
|
-
in the Software without restriction, including without limitation the rights
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
10
|
-
furnished to do so, subject to the following conditions:
|
11
|
-
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
13
|
-
copies or substantial portions of the Software.
|
14
|
-
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
-
SOFTWARE.
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../packages/primitives/schematics/ng-add/schema.ts"],"names":[],"mappings":""}
|