ngx-floaty 0.0.0-stage → 0.1.0-alpha.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/README.md CHANGED
@@ -1,3 +1,64 @@
1
- # Temporary Holding Version
1
+ # NgxFloaty
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 21.2.0.
4
+
5
+ ## Code scaffolding
6
+
7
+ Angular CLI includes powerful code scaffolding tools. To generate a new component, run:
8
+
9
+ ```bash
10
+ ng generate component component-name
11
+ ```
12
+
13
+ For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run:
14
+
15
+ ```bash
16
+ ng generate --help
17
+ ```
18
+
19
+ ## Building
20
+
21
+ To build the library, run:
22
+
23
+ ```bash
24
+ ng build ngx-floaty
25
+ ```
26
+
27
+ This command will compile your project, and the build artifacts will be placed in the `dist/` directory.
28
+
29
+ ### Publishing the Library
30
+
31
+ Once the project is built, you can publish your library by following these steps:
32
+
33
+ 1. Navigate to the `dist` directory:
34
+
35
+ ```bash
36
+ cd dist/ngx-floaty
37
+ ```
38
+
39
+ 2. Run the `npm publish` command to publish your library to the npm registry:
40
+ ```bash
41
+ npm publish
42
+ ```
43
+
44
+ ## Running unit tests
45
+
46
+ To execute unit tests with the [Karma](https://karma-runner.github.io) test runner, use the following command:
47
+
48
+ ```bash
49
+ ng test
50
+ ```
51
+
52
+ ## Running end-to-end tests
53
+
54
+ For end-to-end (e2e) testing, run:
55
+
56
+ ```bash
57
+ ng e2e
58
+ ```
59
+
60
+ Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs.
61
+
62
+ ## Additional Resources
63
+
64
+ For more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page.
@@ -0,0 +1,19 @@
1
+ import { InjectionToken, makeEnvironmentProviders } from '@angular/core';
2
+
3
+ const FLOATY_CONFIG = new InjectionToken('FLOATY_CONFIG', {
4
+ factory: () => ({}),
5
+ });
6
+ function provideFloaty(config = {}) {
7
+ return makeEnvironmentProviders([{ provide: FLOATY_CONFIG, useValue: config }]);
8
+ }
9
+
10
+ /*
11
+ * Public API Surface of ngx-floaty/core
12
+ */
13
+
14
+ /**
15
+ * Generated bundle index. Do not edit.
16
+ */
17
+
18
+ export { FLOATY_CONFIG, provideFloaty };
19
+ //# sourceMappingURL=ngx-floaty-core.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ngx-floaty-core.mjs","sources":["../../../projects/ngx-floaty/core/src/config.ts","../../../projects/ngx-floaty/core/src/public-api.ts","../../../projects/ngx-floaty/core/src/ngx-floaty-core.ts"],"sourcesContent":["import { EnvironmentProviders, InjectionToken, makeEnvironmentProviders } from '@angular/core';\nimport type { Placement } from '@floating-ui/dom';\n\nexport type FloatyPlacement = Placement;\n\nexport interface FloatyConfig {\n placement?: FloatyPlacement;\n}\n\nexport const FLOATY_CONFIG = new InjectionToken<FloatyConfig>('FLOATY_CONFIG', {\n factory: () => ({}),\n});\n\nexport function provideFloaty(config: FloatyConfig = {}): EnvironmentProviders {\n return makeEnvironmentProviders([{ provide: FLOATY_CONFIG, useValue: config }]);\n}\n","/*\n * Public API Surface of ngx-floaty/core\n */\n\nexport * from './config';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;MASa,aAAa,GAAG,IAAI,cAAc,CAAe,eAAe,EAAE;AAC7E,IAAA,OAAO,EAAE,OAAO,EAAE,CAAC;AACpB,CAAA;AAEK,SAAU,aAAa,CAAC,MAAA,GAAuB,EAAE,EAAA;AACrD,IAAA,OAAO,wBAAwB,CAAC,CAAC,EAAE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,CAAC;AACjF;;ACfA;;AAEG;;ACFH;;AAEG;;"}
@@ -0,0 +1,25 @@
1
+ import * as i0 from '@angular/core';
2
+ import { input, Directive } from '@angular/core';
3
+
4
+ class FloatyPopover {
5
+ floatyPopover = input.required(...(ngDevMode ? [{ debugName: "floatyPopover" }] : /* istanbul ignore next */ []));
6
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: FloatyPopover, deps: [], target: i0.ɵɵFactoryTarget.Directive });
7
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.26", type: FloatyPopover, isStandalone: true, selector: "[floatyPopover]", inputs: { floatyPopover: { classPropertyName: "floatyPopover", publicName: "floatyPopover", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0 });
8
+ }
9
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: FloatyPopover, decorators: [{
10
+ type: Directive,
11
+ args: [{
12
+ selector: '[floatyPopover]',
13
+ }]
14
+ }], propDecorators: { floatyPopover: [{ type: i0.Input, args: [{ isSignal: true, alias: "floatyPopover", required: true }] }] } });
15
+
16
+ /*
17
+ * Public API Surface of ngx-floaty/popover
18
+ */
19
+
20
+ /**
21
+ * Generated bundle index. Do not edit.
22
+ */
23
+
24
+ export { FloatyPopover };
25
+ //# sourceMappingURL=ngx-floaty-popover.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ngx-floaty-popover.mjs","sources":["../../../projects/ngx-floaty/popover/src/popover.ts","../../../projects/ngx-floaty/popover/src/public-api.ts","../../../projects/ngx-floaty/popover/src/ngx-floaty-popover.ts"],"sourcesContent":["import { Directive, input, TemplateRef } from '@angular/core';\n\n@Directive({\n selector: '[floatyPopover]',\n})\nexport class FloatyPopover {\n readonly floatyPopover = input.required<string | TemplateRef<unknown>>();\n}\n","/*\n * Public API Surface of ngx-floaty/popover\n */\n\nexport * from './popover';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;MAKa,aAAa,CAAA;AACf,IAAA,aAAa,GAAG,KAAK,CAAC,QAAQ,mFAAiC;wGAD7D,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAAb,aAAa,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,EAAA,aAAA,EAAA,EAAA,iBAAA,EAAA,eAAA,EAAA,UAAA,EAAA,eAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;4FAAb,aAAa,EAAA,UAAA,EAAA,CAAA;kBAHzB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,iBAAiB;AAC5B,iBAAA;;;ACJD;;AAEG;;ACFH;;AAEG;;"}
@@ -0,0 +1,25 @@
1
+ import * as i0 from '@angular/core';
2
+ import { input, Directive } from '@angular/core';
3
+
4
+ class FloatyTooltip {
5
+ floatyTooltip = input.required(...(ngDevMode ? [{ debugName: "floatyTooltip" }] : /* istanbul ignore next */ []));
6
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: FloatyTooltip, deps: [], target: i0.ɵɵFactoryTarget.Directive });
7
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.26", type: FloatyTooltip, isStandalone: true, selector: "[floatyTooltip]", inputs: { floatyTooltip: { classPropertyName: "floatyTooltip", publicName: "floatyTooltip", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0 });
8
+ }
9
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: FloatyTooltip, decorators: [{
10
+ type: Directive,
11
+ args: [{
12
+ selector: '[floatyTooltip]',
13
+ }]
14
+ }], propDecorators: { floatyTooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "floatyTooltip", required: true }] }] } });
15
+
16
+ /*
17
+ * Public API Surface of ngx-floaty/tooltip
18
+ */
19
+
20
+ /**
21
+ * Generated bundle index. Do not edit.
22
+ */
23
+
24
+ export { FloatyTooltip };
25
+ //# sourceMappingURL=ngx-floaty-tooltip.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ngx-floaty-tooltip.mjs","sources":["../../../projects/ngx-floaty/tooltip/src/tooltip.ts","../../../projects/ngx-floaty/tooltip/src/public-api.ts","../../../projects/ngx-floaty/tooltip/src/ngx-floaty-tooltip.ts"],"sourcesContent":["import { Directive, input, TemplateRef } from '@angular/core';\n\n@Directive({\n selector: '[floatyTooltip]',\n})\nexport class FloatyTooltip {\n readonly floatyTooltip = input.required<string | TemplateRef<unknown>>();\n}\n","/*\n * Public API Surface of ngx-floaty/tooltip\n */\n\nexport * from './tooltip';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;MAKa,aAAa,CAAA;AACf,IAAA,aAAa,GAAG,KAAK,CAAC,QAAQ,mFAAiC;wGAD7D,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAAb,aAAa,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,EAAA,aAAA,EAAA,EAAA,iBAAA,EAAA,eAAA,EAAA,UAAA,EAAA,eAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;4FAAb,aAAa,EAAA,UAAA,EAAA,CAAA;kBAHzB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,iBAAiB;AAC5B,iBAAA;;;ACJD;;AAEG;;ACFH;;AAEG;;"}
@@ -0,0 +1,12 @@
1
+ export * from 'ngx-floaty/core';
2
+ export * from 'ngx-floaty/tooltip';
3
+ export * from 'ngx-floaty/popover';
4
+
5
+ /*
6
+ * Public API Surface of ngx-floaty
7
+ */
8
+
9
+ /**
10
+ * Generated bundle index. Do not edit.
11
+ */
12
+ //# sourceMappingURL=ngx-floaty.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ngx-floaty.mjs","sources":["../../../projects/ngx-floaty/src/public-api.ts","../../../projects/ngx-floaty/src/ngx-floaty.ts"],"sourcesContent":["/*\n * Public API Surface of ngx-floaty\n */\n\nexport * from 'ngx-floaty/core';\nexport * from 'ngx-floaty/tooltip';\nexport * from 'ngx-floaty/popover';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;AAAA;;AAEG;;ACFH;;AAEG"}
package/package.json CHANGED
@@ -1,6 +1,50 @@
1
1
  {
2
2
  "name": "ngx-floaty",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.1.0-alpha.0",
4
+ "description": "Angular tooltips and popovers powered by Floating UI and the Popover API. Successor of ngx-tippy-wrapper.",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/farengeyt451/ngx-floaty.git"
9
+ },
10
+ "keywords": [
11
+ "angular",
12
+ "tooltip",
13
+ "popover",
14
+ "floating-ui",
15
+ "popover-api"
16
+ ],
17
+ "peerDependencies": {
18
+ "@angular/common": ">=21.0.0",
19
+ "@angular/core": ">=21.0.0"
20
+ },
21
+ "dependencies": {
22
+ "@floating-ui/dom": "^1.8.0",
23
+ "tslib": "^2.3.0"
24
+ },
25
+ "sideEffects": false,
26
+ "module": "fesm2022/ngx-floaty.mjs",
27
+ "typings": "types/ngx-floaty.d.ts",
28
+ "exports": {
29
+ "./package.json": {
30
+ "default": "./package.json"
31
+ },
32
+ ".": {
33
+ "types": "./types/ngx-floaty.d.ts",
34
+ "default": "./fesm2022/ngx-floaty.mjs"
35
+ },
36
+ "./core": {
37
+ "types": "./types/ngx-floaty-core.d.ts",
38
+ "default": "./fesm2022/ngx-floaty-core.mjs"
39
+ },
40
+ "./popover": {
41
+ "types": "./types/ngx-floaty-popover.d.ts",
42
+ "default": "./fesm2022/ngx-floaty-popover.mjs"
43
+ },
44
+ "./tooltip": {
45
+ "types": "./types/ngx-floaty-tooltip.d.ts",
46
+ "default": "./fesm2022/ngx-floaty-tooltip.mjs"
47
+ }
48
+ },
49
+ "type": "module"
6
50
  }
@@ -0,0 +1,12 @@
1
+ import { InjectionToken, EnvironmentProviders } from '@angular/core';
2
+ import { Placement } from '@floating-ui/dom';
3
+
4
+ type FloatyPlacement = Placement;
5
+ interface FloatyConfig {
6
+ placement?: FloatyPlacement;
7
+ }
8
+ declare const FLOATY_CONFIG: InjectionToken<FloatyConfig>;
9
+ declare function provideFloaty(config?: FloatyConfig): EnvironmentProviders;
10
+
11
+ export { FLOATY_CONFIG, provideFloaty };
12
+ export type { FloatyConfig, FloatyPlacement };
@@ -0,0 +1,10 @@
1
+ import * as i0 from '@angular/core';
2
+ import { TemplateRef } from '@angular/core';
3
+
4
+ declare class FloatyPopover {
5
+ readonly floatyPopover: i0.InputSignal<string | TemplateRef<unknown>>;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<FloatyPopover, never>;
7
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FloatyPopover, "[floatyPopover]", never, { "floatyPopover": { "alias": "floatyPopover"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
8
+ }
9
+
10
+ export { FloatyPopover };
@@ -0,0 +1,10 @@
1
+ import * as i0 from '@angular/core';
2
+ import { TemplateRef } from '@angular/core';
3
+
4
+ declare class FloatyTooltip {
5
+ readonly floatyTooltip: i0.InputSignal<string | TemplateRef<unknown>>;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<FloatyTooltip, never>;
7
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FloatyTooltip, "[floatyTooltip]", never, { "floatyTooltip": { "alias": "floatyTooltip"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
8
+ }
9
+
10
+ export { FloatyTooltip };
@@ -0,0 +1,3 @@
1
+ export * from 'ngx-floaty/core';
2
+ export * from 'ngx-floaty/tooltip';
3
+ export * from 'ngx-floaty/popover';