@exmg/exm-tooltip 1.2.8 → 1.2.9

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.
@@ -51,6 +51,6 @@ export declare class ExmTooltipBase extends ExmgElement {
51
51
  private addListeners;
52
52
  private findTarget;
53
53
  private removeListeners;
54
- protected render(): import("lit-html").TemplateResult<1>;
54
+ protected render(): import("lit").TemplateResult<1>;
55
55
  }
56
56
  export {};
@@ -0,0 +1,33 @@
1
+ import type { StoryObj } from '@storybook/web-components-vite';
2
+ import { ExmTooltip } from './exm-tooltip.js';
3
+ import { LitElement } from 'lit';
4
+ import './exm-tooltip.js';
5
+ export declare class TooltipsDemo extends LitElement {
6
+ static styles: import("lit").CSSResult[];
7
+ args: any;
8
+ constructor();
9
+ render(): import("lit").TemplateResult<1>;
10
+ }
11
+ declare const meta: {
12
+ title: string;
13
+ tags: string[];
14
+ render: (args: ExmTooltip) => import("lit").TemplateResult<1>;
15
+ argTypes: {
16
+ position: {
17
+ control: "select";
18
+ options: string[];
19
+ };
20
+ fitToVisibleBounds: {
21
+ control: "boolean";
22
+ };
23
+ xOffset: {
24
+ control: "number";
25
+ };
26
+ yOffset: {
27
+ control: "number";
28
+ };
29
+ };
30
+ };
31
+ export default meta;
32
+ type Story = StoryObj<ExmTooltip>;
33
+ export declare const Default: Story;
@@ -0,0 +1,75 @@
1
+ import { __decorate } from "tslib";
2
+ import { faker } from '@faker-js/faker';
3
+ import { css, html, LitElement } from 'lit';
4
+ import { customElement, property } from 'lit/decorators.js';
5
+ import './exm-tooltip.js';
6
+ let TooltipsDemo = class TooltipsDemo extends LitElement {
7
+ constructor() {
8
+ super();
9
+ this.args = {};
10
+ }
11
+ render() {
12
+ return html `
13
+ <div class="frame">
14
+ <div id="toolTipRelated" class="element" tabindex="0"></div>
15
+ <exm-tooltip
16
+ for="toolTipRelated"
17
+ position="${this.args.position}"
18
+ ?fitToVisibleBounds="${this.args.fitToVisibleBounds}"
19
+ xOffset="${this.args.xOffset}"
20
+ yOffset="${this.args.yOffset}"
21
+ >
22
+ ${faker.lorem.sentence(5)}
23
+ </exm-tooltip>
24
+ </div>
25
+ `;
26
+ }
27
+ };
28
+ TooltipsDemo.styles = [
29
+ css `
30
+ .frame {
31
+ display: grid;
32
+ position: relative;
33
+ height: 100px;
34
+ justify-content: center;
35
+ align-items: center;
36
+ }
37
+
38
+ .element {
39
+ width: 100px;
40
+ height: 45px;
41
+ background: gray;
42
+ }
43
+ `,
44
+ ];
45
+ __decorate([
46
+ property()
47
+ ], TooltipsDemo.prototype, "args", void 0);
48
+ TooltipsDemo = __decorate([
49
+ customElement('demo-tooltips')
50
+ ], TooltipsDemo);
51
+ export { TooltipsDemo };
52
+ const meta = {
53
+ title: 'Packages/Tooltip',
54
+ tags: ['autodocs'],
55
+ render: (args) => html `<demo-tooltips .args="${args}"></demo-tooltips>`,
56
+ argTypes: {
57
+ position: {
58
+ control: 'select',
59
+ options: ['top', 'right', 'bottom', 'left', 'top-left', 'top-right', 'bottom-right', 'bottom-left'],
60
+ },
61
+ fitToVisibleBounds: { control: 'boolean' },
62
+ xOffset: { control: 'number' },
63
+ yOffset: { control: 'number' },
64
+ },
65
+ };
66
+ export default meta;
67
+ export const Default = {
68
+ args: {
69
+ position: 'left',
70
+ fitToVisibleBounds: false,
71
+ xOffset: undefined,
72
+ yOffset: undefined,
73
+ },
74
+ };
75
+ //# sourceMappingURL=exm-tooltip.stories.js.map
@@ -51,6 +51,6 @@ export declare class ExmTooltipBase extends ExmgElement {
51
51
  private addListeners;
52
52
  private findTarget;
53
53
  private removeListeners;
54
- protected render(): import("lit-html").TemplateResult<1>;
54
+ protected render(): import("lit").TemplateResult<1>;
55
55
  }
56
56
  export {};
@@ -1,4 +1,4 @@
1
- import { __decorate } from 'tslib';
1
+ import { __decorate } from './node_modules/.bun/@rollup_plugin-typescript@12.3.0_8b7a8dd02ef2c96b/node_modules/tslib/tslib.es6.js';
2
2
  import { html } from 'lit';
3
3
  import { property } from 'lit/decorators/property.js';
4
4
  import { state } from 'lit/decorators.js';
@@ -1,4 +1,4 @@
1
- import { __decorate } from 'tslib';
1
+ import { __decorate } from './node_modules/.bun/@rollup_plugin-typescript@12.3.0_8b7a8dd02ef2c96b/node_modules/tslib/tslib.es6.js';
2
2
  import { customElement } from 'lit/decorators/custom-element.js';
3
3
  import { style } from './styles/exm-tooltip-styles-css.js';
4
4
  import { ExmTooltipBase } from './exm-tooltip-base.js';
@@ -0,0 +1,33 @@
1
+ import type { StoryObj } from '@storybook/web-components-vite';
2
+ import { ExmTooltip } from './exm-tooltip.js';
3
+ import { LitElement } from 'lit';
4
+ import './exm-tooltip.js';
5
+ export declare class TooltipsDemo extends LitElement {
6
+ static styles: import("lit").CSSResult[];
7
+ args: any;
8
+ constructor();
9
+ render(): import("lit").TemplateResult<1>;
10
+ }
11
+ declare const meta: {
12
+ title: string;
13
+ tags: string[];
14
+ render: (args: ExmTooltip) => import("lit").TemplateResult<1>;
15
+ argTypes: {
16
+ position: {
17
+ control: "select";
18
+ options: string[];
19
+ };
20
+ fitToVisibleBounds: {
21
+ control: "boolean";
22
+ };
23
+ xOffset: {
24
+ control: "number";
25
+ };
26
+ yOffset: {
27
+ control: "number";
28
+ };
29
+ };
30
+ };
31
+ export default meta;
32
+ type Story = StoryObj<ExmTooltip>;
33
+ export declare const Default: Story;
@@ -0,0 +1,31 @@
1
+ /******************************************************************************
2
+ Copyright (c) Microsoft Corporation.
3
+
4
+ Permission to use, copy, modify, and/or distribute this software for any
5
+ purpose with or without fee is hereby granted.
6
+
7
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
8
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
9
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
10
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13
+ PERFORMANCE OF THIS SOFTWARE.
14
+ ***************************************************************************** */
15
+ /* global Reflect, Promise, SuppressedError, Symbol, Iterator */
16
+
17
+
18
+ function __decorate(decorators, target, key, desc) {
19
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
20
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
21
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
22
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
23
+ }
24
+
25
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
26
+ var e = new Error(message);
27
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
28
+ };
29
+
30
+ export { __decorate };
31
+ //# sourceMappingURL=tslib.es6.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exmg/exm-tooltip",
3
- "version": "1.2.8",
3
+ "version": "1.2.9",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -36,5 +36,5 @@
36
36
  "publishConfig": {
37
37
  "access": "public"
38
38
  },
39
- "gitHead": "e1496408e91a3861a0eb532a05ebae18320ac591"
39
+ "gitHead": "c27c4ffabda0c6a509df58537017af65719d1e57"
40
40
  }