@rxdi/ui-kit 0.7.128 → 0.7.131

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.
Files changed (40) hide show
  1. package/accordion/style.js +0 -19
  2. package/accordion/style.js.map +1 -1
  3. package/accordion-item/accordion-item.component.d.ts +1 -1
  4. package/component/index.d.ts +0 -8
  5. package/dropdown/dropdown.component.d.ts +1 -1
  6. package/graph/render.component.d.ts +1 -1
  7. package/graph/render.component.js +1 -3
  8. package/graph/render.component.js.map +1 -1
  9. package/image/image.component.d.ts +3 -8
  10. package/image/image.component.js +19 -21
  11. package/image/image.component.js.map +1 -1
  12. package/images/circle.svg.d.ts +1 -0
  13. package/images/circle.svg.js +9 -0
  14. package/images/circle.svg.js.map +1 -0
  15. package/images/close.svg.d.ts +1 -0
  16. package/images/close.svg.js +11 -0
  17. package/images/close.svg.js.map +1 -0
  18. package/images/glyph.svg.d.ts +1 -0
  19. package/images/glyph.svg.js +17 -0
  20. package/images/glyph.svg.js.map +1 -0
  21. package/images/minus.svg.d.ts +1 -0
  22. package/images/minus.svg.js +10 -0
  23. package/images/minus.svg.js.map +1 -0
  24. package/images/plus.svg.d.ts +1 -0
  25. package/images/plus.svg.js +11 -0
  26. package/images/plus.svg.js.map +1 -0
  27. package/package.json +8 -8
  28. package/spinner/spinner.svg.d.ts +1 -1
  29. package/styles/chunks/images.js +4 -7
  30. package/styles/chunks/images.js.map +1 -1
  31. package/typings.d.ts +5 -9
  32. package/vesica/index.d.ts +2 -0
  33. package/vesica/index.js +15 -0
  34. package/vesica/index.js.map +1 -0
  35. package/vesica/vesica.component.d.ts +4 -0
  36. package/vesica/vesica.component.js +32 -0
  37. package/vesica/vesica.component.js.map +1 -0
  38. package/vesica/vesica.service.d.ts +23 -0
  39. package/vesica/vesica.service.js +171 -0
  40. package/vesica/vesica.service.js.map +1 -0
@@ -1,14 +1,9 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.style = void 0;
7
4
  const lit_html_1 = require("@rxdi/lit-html");
8
5
  const styles_1 = require("../styles");
9
6
  const transitions_1 = require("../styles/transitions");
10
- const minus_svg_1 = __importDefault(require("../images/minus.svg"));
11
- const plus_svg_1 = __importDefault(require("../images/plus.svg"));
12
7
  exports.style = (0, lit_html_1.css) `
13
8
  ${styles_1.MAIN_CSS}
14
9
  ${transitions_1.TRANSITIONS}
@@ -30,20 +25,6 @@ exports.style = (0, lit_html_1.css) `
30
25
  margin-top: 20px;
31
26
  margin-bottom: 20px;
32
27
  }
33
- .title::before {
34
- content: '';
35
- width: 1.4em;
36
- height: 1.4em;
37
- margin-left: 10px;
38
- float: right;
39
- color: black;
40
- background-image: url(${(0, lit_html_1.unsafeCSS)(plus_svg_1.default)});
41
- background-repeat: no-repeat;
42
- background-position: 50% 50%;
43
- }
44
- .title.collapsed::before {
45
- background-image: url(${(0, lit_html_1.unsafeCSS)(minus_svg_1.default)});
46
- }
47
28
  .content {
48
29
  color: #666;
49
30
  font-size: 15px;
@@ -1 +1 @@
1
- {"version":3,"file":"style.js","sourceRoot":"","sources":["../../src/accordion/style.ts"],"names":[],"mappings":";;;;;;AAAA,6CAAgD;AAChD,sCAAqC;AACrC,uDAAoD;AAEpD,oEAAwC;AACxC,kEAAsC;AAEzB,QAAA,KAAK,GAAG,IAAA,cAAG,EAAA;IACpB,iBAAQ;IACR,yBAAW;;;;;;;;;;;;;;;;;;;;;;;;;;4BA0Ba,IAAA,oBAAS,EAAC,kBAAI,CAAC;;;;;4BAKf,IAAA,oBAAS,EAAC,mBAAK,CAAC;;;;;;CAM3C,CAAC"}
1
+ {"version":3,"file":"style.js","sourceRoot":"","sources":["../../src/accordion/style.ts"],"names":[],"mappings":";;;AAAA,6CAAqC;AACrC,sCAAqC;AACrC,uDAAoD;AAEvC,QAAA,KAAK,GAAG,IAAA,cAAG,EAAA;IACpB,iBAAQ;IACR,yBAAW;;;;;;;;;;;;;;;;;;;;;;;CAuBd,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { LitElement } from '@rxdi/lit-html';
2
- export declare const FaqArrow: import("lit-html").TemplateResult<2>;
2
+ export declare const FaqArrow: import("@rxdi/lit-html").TemplateResult<2>;
3
3
  /**
4
4
  * @customElement rx-accordion-item
5
5
  *
@@ -25,11 +25,7 @@ export declare const Compose: <S, D = [], K extends LitElement = LitElement>(opt
25
25
  firstUpdated(): void;
26
26
  };
27
27
  styles: import("@rxdi/lit-html").CSSResult[];
28
- subscriptions: Map<any, any>;
29
- collectGarbage(): void;
30
- mapToSubscriptions(): void;
31
28
  is(): string;
32
- setElement: (document: import("@rxdi/lit-html").RXDIElement) => K_1;
33
29
  } & K_1;
34
30
  export declare const Monad: <S, D = unknown, K extends LitElement = LitElement>([options, deps, state, render,]: [Options, D, StateToRender<S, D, K>, RenderResult<S, D, K>]) => <K_1 extends new (...args: any[]) => {}>(Base: K_1) => {
35
31
  new (...args: any[]): {
@@ -42,11 +38,7 @@ export declare const Monad: <S, D = unknown, K extends LitElement = LitElement>(
42
38
  firstUpdated(): void;
43
39
  };
44
40
  styles: import("@rxdi/lit-html").CSSResult[];
45
- subscriptions: Map<any, any>;
46
- collectGarbage(): void;
47
- mapToSubscriptions(): void;
48
41
  is(): string;
49
- setElement: (document: import("@rxdi/lit-html").RXDIElement) => K_1;
50
42
  } & K_1;
51
43
  export declare const Settings: (o: Options) => Options;
52
44
  export declare const Providers: <S, D, K>(o: D) => D;
@@ -8,7 +8,7 @@ export declare class DropdownComponent extends LitElement {
8
8
  palette: PalettesUnion;
9
9
  marginLeft: string;
10
10
  menuItems: any[];
11
- defaultTemplate: import("lit-html").TemplateResult<1>;
11
+ defaultTemplate: import("@rxdi/lit-html").TemplateResult<1>;
12
12
  private entered;
13
13
  private clickEvent;
14
14
  OnInit(): void;
@@ -3,5 +3,5 @@ import { LitElement, TemplateResult } from '@rxdi/lit-html';
3
3
  * @customElement rx-render
4
4
  */
5
5
  export declare class RenderComponent extends LitElement {
6
- state: <T>(state: T, setState?: (res: T) => void, shadowRoot?: ShadowRoot) => TemplateResult;
6
+ state: <T>(state: T, setState?: (res: T) => void, shadowRoot?: ShadowRoot) => TemplateResult<1 | 2>;
7
7
  }
@@ -23,9 +23,7 @@ __decorate([
23
23
  RenderComponent = __decorate([
24
24
  (0, lit_html_1.Component)({
25
25
  selector: 'rx-render',
26
- template: () => (0, lit_html_1.html) `
27
- <slot></slot>
28
- `
26
+ template: () => (0, lit_html_1.html) ` <slot></slot> `,
29
27
  })
30
28
  ], RenderComponent);
31
29
  exports.RenderComponent = RenderComponent;
@@ -1 +1 @@
1
- {"version":3,"file":"render.component.js","sourceRoot":"","sources":["../../src/graph/render.component.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAMwB;AAExB;;GAEG;AAOH,IAAa,eAAe,GAA5B,MAAa,eAAgB,SAAQ,qBAAU;CAM9C,CAAA;AAL6B;IAA3B,IAAA,mBAAQ,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;8CAIP;AALT,eAAe;IAN3B,IAAA,oBAAS,EAAC;QACT,QAAQ,EAAE,WAAW;QACrB,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAA,eAAI,EAAA;;GAEnB;KACF,CAAC;GACW,eAAe,CAM3B;AANY,0CAAe"}
1
+ {"version":3,"file":"render.component.js","sourceRoot":"","sources":["../../src/graph/render.component.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAMwB;AAExB;;GAEG;AAKH,IAAa,eAAe,GAA5B,MAAa,eAAgB,SAAQ,qBAAU;CAM9C,CAAA;AAL6B;IAA3B,IAAA,mBAAQ,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;8CAIA;AALhB,eAAe;IAJ3B,IAAA,oBAAS,EAAC;QACT,QAAQ,EAAE,WAAW;QACrB,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAA,eAAI,EAAA,iBAAiB;KACtC,CAAC;GACW,eAAe,CAM3B;AANY,0CAAe"}
@@ -1,15 +1,10 @@
1
- import { LitElement } from '@rxdi/lit-html';
1
+ import { LitElement, TemplateResult } from '@rxdi/lit-html';
2
2
  /**
3
3
  * @customElement rx-image
4
4
  */
5
5
  export declare class RxImageComponent extends LitElement {
6
- image: string;
6
+ image: string | TemplateResult<1> | TemplateResult<2>;
7
7
  width: string;
8
8
  height: string;
9
- private element;
10
- private onLoadSubscription;
11
- private onErrorSubscription;
12
- OnUpdateFirst(): void;
13
- createSubscription(type: 'error' | 'load'): import("rxjs").Observable<boolean>;
14
- OnDestroy(): void;
9
+ dispatch(type: 'error' | 'load'): (detail: Event) => void;
15
10
  }
@@ -11,8 +11,6 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.RxImageComponent = void 0;
13
13
  const lit_html_1 = require("@rxdi/lit-html");
14
- const rxjs_1 = require("rxjs");
15
- const operators_1 = require("rxjs/operators");
16
14
  /**
17
15
  * @customElement rx-image
18
16
  */
@@ -22,21 +20,17 @@ let RxImageComponent = class RxImageComponent extends lit_html_1.LitElement {
22
20
  this.width = '80px';
23
21
  this.height = '80px';
24
22
  }
25
- OnUpdateFirst() {
26
- this.onLoadSubscription = this.createSubscription('load').subscribe();
27
- this.onErrorSubscription = this.createSubscription('error').subscribe();
28
- }
29
- createSubscription(type) {
30
- return (0, rxjs_1.fromEvent)(this.element, type).pipe((0, operators_1.map)(detail => this.dispatchEvent(new CustomEvent(type === 'error' ? 'onError' : 'onLoad', { detail }))));
31
- }
32
- OnDestroy() {
33
- this.onErrorSubscription.unsubscribe();
34
- this.onLoadSubscription.unsubscribe();
23
+ dispatch(type) {
24
+ return (detail) => {
25
+ this.dispatchEvent(new CustomEvent(type === 'error' ? 'onError' : 'onLoad', {
26
+ detail,
27
+ }));
28
+ };
35
29
  }
36
30
  };
37
31
  __decorate([
38
- (0, lit_html_1.property)({ type: String }),
39
- __metadata("design:type", String)
32
+ (0, lit_html_1.property)(),
33
+ __metadata("design:type", Object)
40
34
  ], RxImageComponent.prototype, "image", void 0);
41
35
  __decorate([
42
36
  (0, lit_html_1.property)({ type: String }),
@@ -46,14 +40,11 @@ __decorate([
46
40
  (0, lit_html_1.property)({ type: String }),
47
41
  __metadata("design:type", Object)
48
42
  ], RxImageComponent.prototype, "height", void 0);
49
- __decorate([
50
- (0, lit_html_1.query)('img'),
51
- __metadata("design:type", HTMLImageElement)
52
- ], RxImageComponent.prototype, "element", void 0);
53
43
  RxImageComponent = __decorate([
54
44
  (0, lit_html_1.Component)({
55
45
  selector: 'rx-image',
56
46
  template() {
47
+ var _a;
57
48
  return (0, lit_html_1.html) `
58
49
  <style>
59
50
  :host {
@@ -68,7 +59,14 @@ RxImageComponent = __decorate([
68
59
  height: 1px;
69
60
  }
70
61
  </style>
71
- <img src=${this.image} />
62
+ ${((_a = this.image) === null || _a === void 0 ? void 0 : _a['_$litType$'])
63
+ ? (0, lit_html_1.html) `<img />${this.image}`
64
+ : (0, lit_html_1.html) `<img
65
+ @load=${this.dispatch('load')}
66
+ @error=${this.dispatch('error')}
67
+ src=${this.image}
68
+ />`}
69
+
72
70
  <span
73
71
  style=${(0, lit_html_1.styleMap)({
74
72
  display: 'block',
@@ -76,11 +74,11 @@ RxImageComponent = __decorate([
76
74
  height: '100%',
77
75
  'background-image': `url(${this.image})`,
78
76
  'background-repeat': 'no-repeat',
79
- 'background-size': 'contain'
77
+ 'background-size': 'contain',
80
78
  })}
81
79
  ></span>
82
80
  `;
83
- }
81
+ },
84
82
  })
85
83
  ], RxImageComponent);
86
84
  exports.RxImageComponent = RxImageComponent;
@@ -1 +1 @@
1
- {"version":3,"file":"image.component.js","sourceRoot":"","sources":["../../src/image/image.component.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAOwB;AACxB,+BAA+C;AAC/C,8CAAqC;AAErC;;GAEG;AAgCH,IAAa,gBA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CAAA,MAAA,IAAI,CAAC,KAAK,0CAAG,YAAY,CAAC;gBAC1B,CAAC,CAAC,IAAA,eAAI,EAAA,UAAU,IAAI,CAAC,KAAK,EAAE;gBAC5B,CAAC,CAAC,IAAA,eAAI,EAAA;oBACM,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC;qBACpB,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC;kBACzB,IAAI,CAAC,KAAK;aACf;;;gBAGG,IAAA,mBAAQ,EAAC;gBACf,OAAO,EAAE,OAAO;gBAChB,KAAK,EAAE,MAAM;gBACb,MAAM,EAAE,MAAM;gBACd,kBAAkB,EAAE,OAAO,IAAI,CAAC,KAAK,GAAG;gBACxC,mBAAmB,EAAE,WAAW;gBAChC,iBAAiB,EAAE,SAAS;aAC7B,CAAC;;KAEL,CAAC;QACJ,CAAC;KACF,CAAC;GACW,gBAAgB,CAmB5B;AAnBY,4CAAgB"}
@@ -0,0 +1 @@
1
+ export declare const CircleSVG: import("@rxdi/lit-html").TemplateResult<2>;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CircleSVG = void 0;
4
+ const lit_html_1 = require("@rxdi/lit-html");
5
+ exports.CircleSVG = (0, lit_html_1.svg) `<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
6
+ <circle fill="none" stroke="#e5e5e5" stroke-width="2" cx="10" cy="10" r="7" />
7
+ </svg>
8
+ `;
9
+ //# sourceMappingURL=circle.svg.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"circle.svg.js","sourceRoot":"","sources":["../../src/images/circle.svg.ts"],"names":[],"mappings":";;;AAAA,6CAAqC;AAExB,QAAA,SAAS,GAAG,IAAA,cAAG,EAAA;;;CAG3B,CAAC"}
@@ -0,0 +1 @@
1
+ export declare const CloseSVG: import("@rxdi/lit-html").TemplateResult<2>;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CloseSVG = void 0;
4
+ const lit_html_1 = require("@rxdi/lit-html");
5
+ exports.CloseSVG = (0, lit_html_1.svg) `
6
+ <svg width="14" height="14" viewBox="0 0 14 14">
7
+ <line fill="none" stroke="#666" stroke-width="1.1" x1="1" y1="1" x2="13" y2="13"></line>
8
+ <line fill="none" stroke="#666" stroke-width="1.1" x1="13" y1="1" x2="1" y2="13"></line>
9
+ </svg>
10
+ `;
11
+ //# sourceMappingURL=close.svg.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"close.svg.js","sourceRoot":"","sources":["../../src/images/close.svg.ts"],"names":[],"mappings":";;;AAAA,6CAAqC;AAExB,QAAA,QAAQ,GAAG,IAAA,cAAG,EAAA;;;;;CAK1B,CAAC"}
@@ -0,0 +1 @@
1
+ export declare const GlyphSVG: (width?: string, height?: string) => import("@rxdi/lit-html").TemplateResult<2>;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GlyphSVG = void 0;
4
+ const lit_html_1 = require("@rxdi/lit-html");
5
+ const GlyphSVG = (width = '256px', height = '256px') => (0, lit_html_1.svg) `
6
+ <svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" height=${height} width=${width}
7
+ viewBox="0 0 581.176 581.176" style="enable-background:new 0 0 581.176 581.176;" xml:space="preserve">
8
+ <g>
9
+ <path d="M581.176,290.588C581.176,130.087,451.09,0,290.588,0S0,130.087,0,290.588s130.087,290.588,290.588,290.588
10
+ c67.901,0,130.208-23.465,179.68-62.476L254.265,302.696h326.306C580.716,298.652,581.176,294.681,581.176,290.588z
11
+ M447.99,217.941c-26.758,0-48.431-21.697-48.431-48.431s21.673-48.431,48.431-48.431c26.758,0,48.431,21.697,48.431,48.431
12
+ S474.749,217.941,447.99,217.941z"/>
13
+ </g>
14
+ </svg>
15
+ `;
16
+ exports.GlyphSVG = GlyphSVG;
17
+ //# sourceMappingURL=glyph.svg.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"glyph.svg.js","sourceRoot":"","sources":["../../src/images/glyph.svg.ts"],"names":[],"mappings":";;;AAAA,6CAAqC;AAE9B,MAAM,QAAQ,GAAG,CACtB,QAAgB,OAAO,EACvB,SAAiB,OAAO,EACxB,EAAE,CAAC,IAAA,cAAG,EAAA;sIAC8H,MAAM,UAAU,KAAK;;;;;;;;;CAS1J,CAAC;AAbW,QAAA,QAAQ,YAanB"}
@@ -0,0 +1 @@
1
+ export declare const MinusSVG: import("@rxdi/lit-html").TemplateResult<2>;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MinusSVG = void 0;
4
+ const lit_html_1 = require("@rxdi/lit-html");
5
+ exports.MinusSVG = (0, lit_html_1.svg) `
6
+ <svg width="13" height="13" viewBox="0 0 13 13" xmlns="http://www.w3.org/2000/svg">
7
+ <rect fill="#666" width="13" height="1" x="0" y="6" />
8
+ </svg>
9
+ `;
10
+ //# sourceMappingURL=minus.svg.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"minus.svg.js","sourceRoot":"","sources":["../../src/images/minus.svg.ts"],"names":[],"mappings":";;;AAAA,6CAAqC;AAExB,QAAA,QAAQ,GAAG,IAAA,cAAG,EAAA;;;;CAI1B,CAAC"}
@@ -0,0 +1 @@
1
+ export declare const PlusSVG: import("@rxdi/lit-html").TemplateResult<2>;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PlusSVG = void 0;
4
+ const lit_html_1 = require("@rxdi/lit-html");
5
+ exports.PlusSVG = (0, lit_html_1.svg) `
6
+ <svg width="13" height="13" viewBox="0 0 13 13" xmlns="http://www.w3.org/2000/svg">
7
+ <rect fill="#666" width="13" height="1" x="0" y="6" />
8
+ <rect fill="#666" width="1" height="13" x="6" y="0" />
9
+ </svg>
10
+ `;
11
+ //# sourceMappingURL=plus.svg.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plus.svg.js","sourceRoot":"","sources":["../../src/images/plus.svg.ts"],"names":[],"mappings":";;;AAAA,6CAAqC;AAExB,QAAA,OAAO,GAAG,IAAA,cAAG,EAAA;;;;;CAKzB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rxdi/ui-kit",
3
- "version": "0.7.128",
3
+ "version": "0.7.131",
4
4
  "description": "UI Components for building graphql-server website",
5
5
  "bolt": {
6
6
  "workspaces": [
@@ -14,6 +14,7 @@
14
14
  "build-all": "npm run build && rm -rf ./docs && cp -r ./dist/* ./src && bolt ws exec -- npm run build && cp -r ./docs/index.html ./docs/404.html",
15
15
  "patch": "rm -rf dist && tsc && cp -r ./dist/* . && npm version patch && npm publish --update-readme --access public && npm run clean && bolt",
16
16
  "clean": "git clean -dxf",
17
+ "clean-build": "rm -rf package-lock.json node_modules/ .cache/ build/",
17
18
  "build": "rm -rf dist && tsc && cp -r ./dist/* ."
18
19
  },
19
20
  "repository": {
@@ -29,10 +30,9 @@
29
30
  "author": "Kristiyan Tachev",
30
31
  "license": "MIT",
31
32
  "devDependencies": {
32
- "@rxdi/firelink": "^0.7.52",
33
- "@rxdi/forms": "^0.7.92",
34
- "@rxdi/lit-html": "^0.7.119",
35
- "@rxdi/router": "^0.7.92",
33
+ "@rxdi/forms": "^0.7.133",
34
+ "@rxdi/lit-html": "^0.7.133",
35
+ "@rxdi/router": "^0.7.133",
36
36
  "@types/animejs": "^3.1.0",
37
37
  "@types/js-yaml": "^3.12.1",
38
38
  "@types/marked": "^0.7.0",
@@ -41,7 +41,7 @@
41
41
  "cssnano": "^4.1.10",
42
42
  "graphql": "^14.5.8",
43
43
  "husky": "^3.0.9",
44
- "typescript": "^3.5.3"
44
+ "typescript": "^3.9.3"
45
45
  },
46
46
  "browserslist": [
47
47
  "last 1 chrome versions"
@@ -50,8 +50,8 @@
50
50
  "module": "./index.js",
51
51
  "typings": "./index.d.ts",
52
52
  "dependencies": {
53
- "@rxdi/core": "^0.7.92",
54
- "@rxdi/graphql-client": "^0.7.92",
53
+ "@rxdi/core": "^0.7.133",
54
+ "@rxdi/graphql-client": "^0.7.133",
55
55
  "animejs": "^3.1.0",
56
56
  "graphql-tag": "^2.10.1",
57
57
  "infinite-carousel-wc": "^0.5.3",
@@ -1 +1 @@
1
- export declare const Spinner: (width: number, height: number) => import("lit-html").TemplateResult<2>;
1
+ export declare const Spinner: (width: number, height: number) => import("@rxdi/lit-html").TemplateResult<2>;
@@ -1,23 +1,20 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.IMAGES = void 0;
7
4
  const lit_html_1 = require("@rxdi/lit-html");
8
- const minus_svg_1 = __importDefault(require("../images/minus.svg"));
9
- const plus_svg_1 = __importDefault(require("../images/plus.svg"));
5
+ const plus_svg_1 = require("../../images/plus.svg");
6
+ const minus_svg_1 = require("../../images/minus.svg");
10
7
  exports.IMAGES = (0, lit_html_1.css) `
11
8
  .plus {
12
9
  width: 30px;
13
10
  height: 30px;
14
- background-image: url(${(0, lit_html_1.unsafeCSS)(plus_svg_1.default)});
11
+ background-image: url('data:image/svg+xml;utf8,${(0, lit_html_1.unsafeCSS)(plus_svg_1.PlusSVG)}');
15
12
  background-repeat: no-repeat;
16
13
  }
17
14
  .minus {
18
15
  width: 30px;
19
16
  height: 30px;
20
- background-image: url(${(0, lit_html_1.unsafeCSS)(minus_svg_1.default)});
17
+ background-image: url('data:image/svg+xml;utf8,${(0, lit_html_1.unsafeCSS)(minus_svg_1.MinusSVG)}');
21
18
  background-repeat: no-repeat;
22
19
  }
23
20
  `;
@@ -1 +1 @@
1
- {"version":3,"file":"images.js","sourceRoot":"","sources":["../../../src/styles/chunks/images.ts"],"names":[],"mappings":";;;;;;AAAA,6CAAgD;AAChD,oEAAwC;AACxC,kEAAsC;AAEzB,QAAA,MAAM,GAAG,IAAA,cAAG,EAAA;;;;4BAIG,IAAA,oBAAS,EAAC,kBAAI,CAAC;;;;;;4BAMf,IAAA,oBAAS,EAAC,mBAAK,CAAC;;;CAG3C,CAAC"}
1
+ {"version":3,"file":"images.js","sourceRoot":"","sources":["../../../src/styles/chunks/images.ts"],"names":[],"mappings":";;;AAAA,6CAAgD;AAChD,oDAAgD;AAChD,sDAAkD;AAErC,QAAA,MAAM,GAAG,IAAA,cAAG,EAAA;;;;qDAI4B,IAAA,oBAAS,EAAC,kBAAO,CAAC;;;;;;qDAMlB,IAAA,oBAAS,EAAC,oBAAQ,CAAC;;;CAGvE,CAAC"}
package/typings.d.ts CHANGED
@@ -8,9 +8,7 @@ declare module '*.css' {
8
8
  export default value;
9
9
  }
10
10
 
11
- declare module '*.html' {
12
-
13
- }
11
+ declare module '*.html' {}
14
12
  declare module '*.json' {
15
13
  const value: any;
16
14
  export default value;
@@ -31,18 +29,16 @@ declare module '*.jpg' {
31
29
  export default value;
32
30
  }
33
31
 
34
- declare module '*.svg' {
35
- const value: string;
36
- export default value;
37
- }
38
-
32
+ // declare module '*.svg' {
33
+ // const value: string;
34
+ // export default value;
35
+ // }
39
36
 
40
37
  declare module '*.graphql' {
41
38
  const value: string;
42
39
  export default value;
43
40
  }
44
41
 
45
-
46
42
  declare module '@rxdi/ui-kit/images/glyph.svg' {
47
43
  const value: string;
48
44
  export default value;
@@ -0,0 +1,2 @@
1
+ export * from './vesica.component';
2
+ export * from './vesica.service';
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
+ };
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ __exportStar(require("./vesica.component"), exports);
14
+ __exportStar(require("./vesica.service"), exports);
15
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/vesica/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmC;AACnC,mDAAiC"}
@@ -0,0 +1,4 @@
1
+ import { LitElement } from '@rxdi/lit-html';
2
+ export declare class VesicaComponent extends LitElement {
3
+ drawCircle(): SVGElement;
4
+ }
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ 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;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.VesicaComponent = void 0;
10
+ const lit_html_1 = require("@rxdi/lit-html");
11
+ const vesica_service_1 = require("./vesica.service");
12
+ let VesicaComponent = class VesicaComponent extends lit_html_1.LitElement {
13
+ drawCircle() {
14
+ const strokeWidth = Math.floor(Math.random() * vesica_service_1.VesicaService.width + 1) / vesica_service_1.VesicaService.wres;
15
+ const styles = vesica_service_1.VesicaService.style(vesica_service_1.VesicaService.color, "none", strokeWidth);
16
+ return vesica_service_1.VesicaService.circle(100, styles);
17
+ }
18
+ };
19
+ VesicaComponent = __decorate([
20
+ (0, lit_html_1.Component)({
21
+ selector: 'rx-vesica',
22
+ template() {
23
+ return (0, lit_html_1.svg) `
24
+ <svg viewBox="-110 -110 220 220" xmlns="http://www.w3.org/2000/svg">
25
+ ${this.drawCircle()}
26
+ ${vesica_service_1.VesicaService.generate()}
27
+ </svg>`;
28
+ },
29
+ })
30
+ ], VesicaComponent);
31
+ exports.VesicaComponent = VesicaComponent;
32
+ //# sourceMappingURL=vesica.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vesica.component.js","sourceRoot":"","sources":["../../src/vesica/vesica.component.ts"],"names":[],"mappings":";;;;;;;;;AAAA,6CAA4D;AAC5D,qDAAiD;AAYjD,IAAa,eAAe,GAA5B,MAAa,eAAgB,SAAQ,qBAAU;IAC7C,UAAU;QACR,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,8BAAa,CAAC,KAAK,GAAG,CAAC,CAAC,GAAG,8BAAa,CAAC,IAAI,CAAC;QAC7F,MAAM,MAAM,GAAG,8BAAa,CAAC,KAAK,CAAC,8BAAa,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,CAAC,CAAC;QAC7E,OAAO,8BAAa,CAAC,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;IAC3C,CAAC;CACF,CAAA;AANY,eAAe;IAV3B,IAAA,oBAAS,EAAC;QACT,QAAQ,EAAE,WAAW;QACrB,QAAQ;YACN,OAAO,IAAA,cAAG,EAAA;;QAEN,IAAI,CAAC,UAAU,EAAE;QACjB,8BAAa,CAAC,QAAQ,EAAE;WACrB,CAAA;QACT,CAAC;KACF,CAAC;GACW,eAAe,CAM3B;AANY,0CAAe"}
@@ -0,0 +1,23 @@
1
+ interface Style {
2
+ stroke: string;
3
+ fill: string;
4
+ strokeWidth: string;
5
+ }
6
+ export declare class VesicaService {
7
+ static color: string;
8
+ static width: number;
9
+ static wres: number;
10
+ static generate(depth?: number, ls?: number): SVGElement;
11
+ static randomShape(size: number, style: Style): SVGElement;
12
+ static scale(x: number, y: number, child: SVGElement[]): SVGElement;
13
+ static rotate(deg: number, child?: SVGElement[]): SVGElement;
14
+ static translate(x: number, y: number, child?: Node[]): SVGElement;
15
+ static group(child?: SVGElement[]): SVGElement;
16
+ static npoly(r: number, n: number, s: number, style: Style): SVGElement;
17
+ static rect(w: number, h: number, style: Style): SVGElement;
18
+ static circle(r: number, style: Style): SVGElement;
19
+ static addChild(p: SVGElement, c: Node[]): SVGElement;
20
+ static style(stroke: string, fill: string, strokeWidth: number): Style;
21
+ static svgElm(name: string): SVGElement;
22
+ }
23
+ export {};
@@ -0,0 +1,171 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VesicaService = void 0;
4
+ class VesicaService {
5
+ static generate(depth = 0, ls = 1) {
6
+ const r = Math.random();
7
+ if (depth < 10) {
8
+ if (r > 0.7) { // simple scale in
9
+ const s = (Math.random()) * 0.2 + 0.8;
10
+ const st = this.style(this.color, "none", Math.floor(Math.random() * this.width + 1) / this.wres / ls);
11
+ // draw base circle
12
+ const base = this.scale(s, s, [this.randomShape(100, st)]);
13
+ const elm = this.generate(depth + 1, ls * s);
14
+ base.appendChild(elm);
15
+ return base;
16
+ }
17
+ else if (r > 0.6) {
18
+ const st = this.style(this.color, "none", Math.floor(Math.random() * this.width + 1) / this.wres / ls);
19
+ const elm = this.group([]);
20
+ const rspace = 5 + Math.random() * 10;
21
+ const count = Math.floor(Math.random() * 5);
22
+ // let r = 100;
23
+ const npn = 3 + Math.floor(Math.random() * 16);
24
+ const nps = 3 + Math.floor(Math.random() * 16);
25
+ const mode = Math.floor(Math.random() * 3);
26
+ for (let i = 0; i < count; i++) {
27
+ switch (mode) {
28
+ case 0:
29
+ elm.appendChild(this.circle(r, st));
30
+ break;
31
+ case 1:
32
+ elm.appendChild(this.rect(r * (Math.sqrt(2)), r * (Math.sqrt(2)), st));
33
+ break;
34
+ case 2:
35
+ elm.appendChild(this.npoly(r, npn, nps, st));
36
+ break;
37
+ }
38
+ // r = r - rspace;
39
+ }
40
+ const nscale = (100 - rspace * count) / 100;
41
+ elm.appendChild(this.scale(nscale, nscale, [this.generate(depth + 1, ls * nscale)]));
42
+ return elm;
43
+ }
44
+ else if (r > 0.5) { // simple rotate
45
+ const s = Math.floor((Math.random()) * 8) * 45;
46
+ // draw base circle
47
+ const base = this.rotate(s);
48
+ const elm = this.generate(depth, ls); // dont count depth
49
+ base.appendChild(elm);
50
+ return base;
51
+ }
52
+ else if (r > 0.4) { // twin scale in
53
+ const st = this.style(this.color, "none", Math.floor(Math.random() * this.width + 1) / this.wres / ls);
54
+ const ratio = Math.random();
55
+ const s1 = this.translate(-100 + ratio / 2 * 200, 0, [this.scale(ratio, ratio, [this.randomShape(100 * ratio, st), this.generate(depth + 1, ls * ratio)])]);
56
+ const s2 = this.translate(-100 + ((ratio + 1) / 2 * 200), 0, [this.scale(1 - ratio, 1 - ratio, [this.randomShape(100 * (1 - ratio), st), this.generate(depth + 1, ls * (1 - ratio))])]);
57
+ return this.group([s1, s2]);
58
+ }
59
+ else { // flower
60
+ const base = this.group();
61
+ const size = Math.random() * 100;
62
+ const num = (1 << (Math.random() * 4 + 1));
63
+ const shape = this.scale(size / 100, size / 100, [this.generate(depth + 7, ls * size / 100)]);
64
+ for (let i = 0; i < num; i++) {
65
+ const relm = this.rotate(360 * i / num, [this.translate(0, 100 - size, [shape.cloneNode(true)])]);
66
+ base.appendChild(relm);
67
+ }
68
+ const s = (100 - size) / 100;
69
+ const st = this.style(this.color, "none", Math.floor(Math.random() * this.width + 1) / this.wres / ls);
70
+ // draw base circle
71
+ //base.appendChild(scale(s,s,[randomShape(100, st)]));
72
+ base.appendChild(this.scale(s, s, [this.generate(depth + 1, ls * s)]));
73
+ return base;
74
+ }
75
+ }
76
+ const s = this.style(this.color, "none", Math.floor(Math.random() * this.width + 1) / this.wres / ls);
77
+ return this.randomShape(100, s);
78
+ }
79
+ static randomShape(size, style) {
80
+ const r = Math.random();
81
+ if (r > 0.4) {
82
+ return this.circle(size, style);
83
+ }
84
+ else if (r > 0.2) {
85
+ return this.rect(size * (Math.sqrt(2)), size * (Math.sqrt(2)), style);
86
+ //return group([circle(size, style), rect(size*(Math.sqrt(2)), size*(Math.sqrt(2)), style)]);
87
+ }
88
+ else {
89
+ return this.npoly(size, (3 + Math.floor(Math.random() * 16)), (3 + Math.floor(Math.random() * 16)), style);
90
+ }
91
+ }
92
+ static scale(x, y, child) {
93
+ const elm = this.svgElm("g");
94
+ elm.setAttribute("transform", "scale(" + x + "," + y + ")");
95
+ this.addChild(elm, child);
96
+ return elm;
97
+ }
98
+ static rotate(deg, child) {
99
+ const elm = this.svgElm("g");
100
+ elm.setAttribute("transform", "rotate(" + deg + ")");
101
+ this.addChild(elm, child);
102
+ return elm;
103
+ }
104
+ static translate(x, y, child) {
105
+ const elm = this.svgElm("g");
106
+ elm.setAttribute("transform", "translate(" + x + "," + y + ")");
107
+ this.addChild(elm, child);
108
+ return elm;
109
+ }
110
+ static group(child) {
111
+ const elm = this.svgElm("g");
112
+ this.addChild(elm, child);
113
+ return elm;
114
+ }
115
+ static npoly(r, n, s, style) {
116
+ const elm = this.svgElm("polygon");
117
+ const points = [];
118
+ let c = 0;
119
+ for (let i = 0; i < n; i++) {
120
+ points.push(r * Math.cos(Math.PI * 2 * c / n) + "," + r * Math.sin(Math.PI * 2 * c / n));
121
+ c += s;
122
+ }
123
+ elm.setAttribute("points", points.join(" "));
124
+ elm.setAttribute("stroke", style.stroke);
125
+ elm.setAttribute("stroke-width", style.strokeWidth);
126
+ elm.setAttribute("fill", style.fill);
127
+ return elm;
128
+ }
129
+ static rect(w, h, style) {
130
+ const elm = this.svgElm("rect");
131
+ elm.setAttribute("x", String(-w / 2));
132
+ elm.setAttribute("y", String(-h / 2));
133
+ elm.setAttribute("width", String(w));
134
+ elm.setAttribute("height", String(h));
135
+ elm.setAttribute("stroke", style.stroke);
136
+ elm.setAttribute("stroke-width", style.strokeWidth);
137
+ elm.setAttribute("fill", style.fill);
138
+ return elm;
139
+ }
140
+ static circle(r, style) {
141
+ const elm = this.svgElm("circle");
142
+ elm.setAttribute("r", String(r));
143
+ elm.setAttribute("stroke", style.stroke);
144
+ elm.setAttribute("stroke-width", style.strokeWidth);
145
+ elm.setAttribute("fill", style.fill);
146
+ return elm;
147
+ }
148
+ static addChild(p, c) {
149
+ if (Array.isArray(c)) {
150
+ c.forEach(function (i) {
151
+ p.appendChild(i);
152
+ });
153
+ }
154
+ return p;
155
+ }
156
+ static style(stroke, fill, strokeWidth) {
157
+ return {
158
+ stroke: stroke,
159
+ fill: fill,
160
+ strokeWidth: String(strokeWidth),
161
+ };
162
+ }
163
+ static svgElm(name) {
164
+ return document.createElementNS("http://www.w3.org/2000/svg", name);
165
+ }
166
+ }
167
+ exports.VesicaService = VesicaService;
168
+ VesicaService.color = "#3ba6f1";
169
+ VesicaService.width = 0.5;
170
+ VesicaService.wres = 2;
171
+ //# sourceMappingURL=vesica.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vesica.service.js","sourceRoot":"","sources":["../../src/vesica/vesica.service.ts"],"names":[],"mappings":";;;AAOA,MAAa,aAAa;IAIjB,MAAM,CAAC,QAAQ,CAAC,KAAK,GAAG,CAAC,EAAE,EAAE,GAAG,CAAC;QACtC,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;QAExB,IAAI,KAAK,GAAG,EAAE,EAAE;YACd,IAAI,CAAC,GAAG,GAAG,EAAE,EAAE,kBAAkB;gBAC/B,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC;gBACtC,MAAM,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC,IAAI,GAAG,EAAE,CAAC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