xv-webcomponents 0.1.21 → 0.1.22

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 (130) hide show
  1. package/package.json +1 -1
  2. package/dist/cjs/app-globals-3a1e7e63.js +0 -7
  3. package/dist/cjs/app-globals-3a1e7e63.js.map +0 -1
  4. package/dist/cjs/index-782b9733.js +0 -1535
  5. package/dist/cjs/index-782b9733.js.map +0 -1
  6. package/dist/cjs/index.cjs.js +0 -11
  7. package/dist/cjs/index.cjs.js.map +0 -1
  8. package/dist/cjs/loader.cjs.js +0 -17
  9. package/dist/cjs/loader.cjs.js.map +0 -1
  10. package/dist/cjs/utils-c7652b74.js +0 -13
  11. package/dist/cjs/utils-c7652b74.js.map +0 -1
  12. package/dist/cjs/xv-accordion-v2_14.cjs.entry.js +0 -602
  13. package/dist/cjs/xv-accordion-v2_14.cjs.entry.js.map +0 -1
  14. package/dist/cjs/xv-breadcrumbs-v2.cjs.entry.js +0 -22
  15. package/dist/cjs/xv-breadcrumbs-v2.cjs.entry.js.map +0 -1
  16. package/dist/cjs/xv-webcomponents.cjs.js +0 -27
  17. package/dist/cjs/xv-webcomponents.cjs.js.map +0 -1
  18. package/dist/collection/collection-manifest.json +0 -26
  19. package/dist/collection/components/xv-accordion/xv-accordion.css +0 -3
  20. package/dist/collection/components/xv-accordion/xv-accordion.js +0 -163
  21. package/dist/collection/components/xv-accordion/xv-accordion.js.map +0 -1
  22. package/dist/collection/components/xv-accordion-item/xv-accordion-item.css +0 -68
  23. package/dist/collection/components/xv-accordion-item/xv-accordion-item.js +0 -132
  24. package/dist/collection/components/xv-accordion-item/xv-accordion-item.js.map +0 -1
  25. package/dist/collection/components/xv-breadcrumbs/xv-breadcrumbs.css +0 -3
  26. package/dist/collection/components/xv-breadcrumbs/xv-breadcrumbs.js +0 -19
  27. package/dist/collection/components/xv-breadcrumbs/xv-breadcrumbs.js.map +0 -1
  28. package/dist/collection/components/xv-button/xv-button-v2.css +0 -153
  29. package/dist/collection/components/xv-button/xv-button.js +0 -138
  30. package/dist/collection/components/xv-button/xv-button.js.map +0 -1
  31. package/dist/collection/components/xv-card/xv-card.css +0 -63
  32. package/dist/collection/components/xv-card/xv-card.js +0 -122
  33. package/dist/collection/components/xv-card/xv-card.js.map +0 -1
  34. package/dist/collection/components/xv-checkbox/xv-checkbox.css +0 -108
  35. package/dist/collection/components/xv-checkbox/xv-checkbox.js +0 -376
  36. package/dist/collection/components/xv-checkbox/xv-checkbox.js.map +0 -1
  37. package/dist/collection/components/xv-link/xv-link.css +0 -60
  38. package/dist/collection/components/xv-link/xv-link.js +0 -132
  39. package/dist/collection/components/xv-link/xv-link.js.map +0 -1
  40. package/dist/collection/components/xv-progress-indicator/xv-progress-indicator.css +0 -7
  41. package/dist/collection/components/xv-progress-indicator/xv-progress-indicator.js +0 -70
  42. package/dist/collection/components/xv-progress-indicator/xv-progress-indicator.js.map +0 -1
  43. package/dist/collection/components/xv-progress-indicator-item/xv-progress-indicator-item.css +0 -66
  44. package/dist/collection/components/xv-progress-indicator-item/xv-progress-indicator-item.js +0 -47
  45. package/dist/collection/components/xv-progress-indicator-item/xv-progress-indicator-item.js.map +0 -1
  46. package/dist/collection/components/xv-table/defs.js +0 -14
  47. package/dist/collection/components/xv-table/defs.js.map +0 -1
  48. package/dist/collection/components/xv-table/xv-table-col/xv-table-col.css +0 -8
  49. package/dist/collection/components/xv-table/xv-table-col/xv-table-col.js +0 -19
  50. package/dist/collection/components/xv-table/xv-table-col/xv-table-col.js.map +0 -1
  51. package/dist/collection/components/xv-table/xv-table-header-row/xv-table-header-row.css +0 -21
  52. package/dist/collection/components/xv-table/xv-table-header-row/xv-table-header-row.js +0 -122
  53. package/dist/collection/components/xv-table/xv-table-header-row/xv-table-header-row.js.map +0 -1
  54. package/dist/collection/components/xv-table/xv-table-row/xv-table-row.css +0 -53
  55. package/dist/collection/components/xv-table/xv-table-row/xv-table-row.js +0 -299
  56. package/dist/collection/components/xv-table/xv-table-row/xv-table-row.js.map +0 -1
  57. package/dist/collection/components/xv-table/xv-table.css +0 -154
  58. package/dist/collection/components/xv-table/xv-table.js +0 -245
  59. package/dist/collection/components/xv-table/xv-table.js.map +0 -1
  60. package/dist/collection/components/xv-tag/xv-tag.css +0 -97
  61. package/dist/collection/components/xv-tag/xv-tag.js +0 -158
  62. package/dist/collection/components/xv-tag/xv-tag.js.map +0 -1
  63. package/dist/collection/components/xv-tooltip/xv-tooltip.css +0 -154
  64. package/dist/collection/components/xv-tooltip/xv-tooltip.js +0 -70
  65. package/dist/collection/components/xv-tooltip/xv-tooltip.js.map +0 -1
  66. package/dist/collection/index.js +0 -11
  67. package/dist/collection/index.js.map +0 -1
  68. package/dist/collection/types/enum.js +0 -9
  69. package/dist/collection/types/enum.js.map +0 -1
  70. package/dist/collection/utils/utils.js +0 -14
  71. package/dist/collection/utils/utils.js.map +0 -1
  72. package/dist/esm/app-globals-0f993ce5.js +0 -5
  73. package/dist/esm/app-globals-0f993ce5.js.map +0 -1
  74. package/dist/esm/index-83ab73b7.js +0 -1506
  75. package/dist/esm/index-83ab73b7.js.map +0 -1
  76. package/dist/esm/index.js +0 -3
  77. package/dist/esm/index.js.map +0 -1
  78. package/dist/esm/loader.js +0 -13
  79. package/dist/esm/loader.js.map +0 -1
  80. package/dist/esm/utils-9bb6333b.js +0 -10
  81. package/dist/esm/utils-9bb6333b.js.map +0 -1
  82. package/dist/esm/xv-accordion-v2_14.entry.js +0 -585
  83. package/dist/esm/xv-accordion-v2_14.entry.js.map +0 -1
  84. package/dist/esm/xv-breadcrumbs-v2.entry.js +0 -18
  85. package/dist/esm/xv-breadcrumbs-v2.entry.js.map +0 -1
  86. package/dist/esm/xv-webcomponents.js +0 -22
  87. package/dist/esm/xv-webcomponents.js.map +0 -1
  88. package/dist/index.cjs.js +0 -1
  89. package/dist/index.js +0 -1
  90. package/dist/types/components/xv-accordion/xv-accordion.d.ts +0 -20
  91. package/dist/types/components/xv-accordion-item/xv-accordion-item.d.ts +0 -15
  92. package/dist/types/components/xv-breadcrumbs/xv-breadcrumbs.d.ts +0 -3
  93. package/dist/types/components/xv-button/xv-button.d.ts +0 -16
  94. package/dist/types/components/xv-card/xv-card.d.ts +0 -8
  95. package/dist/types/components/xv-checkbox/xv-checkbox.d.ts +0 -70
  96. package/dist/types/components/xv-link/xv-link.d.ts +0 -9
  97. package/dist/types/components/xv-progress-indicator/xv-progress-indicator.d.ts +0 -7
  98. package/dist/types/components/xv-progress-indicator-item/xv-progress-indicator-item.d.ts +0 -5
  99. package/dist/types/components/xv-table/defs.d.ts +0 -16
  100. package/dist/types/components/xv-table/xv-table-col/xv-table-col.d.ts +0 -3
  101. package/dist/types/components/xv-table/xv-table-header-row/xv-table-header-row.d.ts +0 -25
  102. package/dist/types/components/xv-table/xv-table-row/xv-table-row.d.ts +0 -59
  103. package/dist/types/components/xv-table/xv-table.d.ts +0 -40
  104. package/dist/types/components/xv-tag/xv-tag.d.ts +0 -11
  105. package/dist/types/components/xv-tooltip/xv-tooltip.d.ts +0 -11
  106. package/dist/types/components.d.ts +0 -679
  107. package/dist/types/index.d.ts +0 -11
  108. package/dist/types/stencil-public-runtime.d.ts +0 -1680
  109. package/dist/types/types/enum.d.ts +0 -7
  110. package/dist/types/utils/utils.d.ts +0 -9
  111. package/dist/xv-webcomponents/index.esm.js +0 -2
  112. package/dist/xv-webcomponents/index.esm.js.map +0 -1
  113. package/dist/xv-webcomponents/p-5f18d718.entry.js +0 -2
  114. package/dist/xv-webcomponents/p-5f18d718.entry.js.map +0 -1
  115. package/dist/xv-webcomponents/p-840929c5.js +0 -3
  116. package/dist/xv-webcomponents/p-840929c5.js.map +0 -1
  117. package/dist/xv-webcomponents/p-a0b74d3c.js +0 -2
  118. package/dist/xv-webcomponents/p-a0b74d3c.js.map +0 -1
  119. package/dist/xv-webcomponents/p-bfe83d1e.entry.js +0 -2
  120. package/dist/xv-webcomponents/p-bfe83d1e.entry.js.map +0 -1
  121. package/dist/xv-webcomponents/p-e1255160.js +0 -2
  122. package/dist/xv-webcomponents/p-e1255160.js.map +0 -1
  123. package/dist/xv-webcomponents/xv-webcomponents.esm.js +0 -2
  124. package/dist/xv-webcomponents/xv-webcomponents.esm.js.map +0 -1
  125. package/loader/cdn.js +0 -1
  126. package/loader/index.cjs.js +0 -1
  127. package/loader/index.d.ts +0 -24
  128. package/loader/index.es2017.js +0 -1
  129. package/loader/index.js +0 -2
  130. package/loader/package.json +0 -11
@@ -1,66 +0,0 @@
1
- :host(.xv-progress-indicator-item) {
2
- display: flex;
3
- flex: 1;
4
- flex-direction: column;
5
- align-items: center;
6
- justify-content: center;
7
- position: relative;
8
- padding: 10px 16px;
9
- }
10
- :host(.xv-progress-indicator-item):before {
11
- width: 100%;
12
- }
13
- :host(.xv-progress-indicator-item):before, :host(.xv-progress-indicator-item) .line {
14
- content: "";
15
- z-index: 1;
16
- display: inline-block;
17
- position: absolute;
18
- top: 0;
19
- left: 0;
20
- right: 0;
21
- height: 2px;
22
- color: inherit;
23
- background-color: var(--border-subtle-01, grey);
24
- }
25
- :host(.xv-progress-indicator-item) .line {
26
- width: 0;
27
- color: inherit;
28
- transition: width 250ms ease;
29
- background-color: var(--background-brand, currentColor);
30
- }
31
- :host(.xv-progress-indicator-item) .icon {
32
- display: flex;
33
- align-items: center;
34
- justify-content: center;
35
- width: 22px;
36
- height: 22px;
37
- max-width: 22px;
38
- max-height: 22px;
39
- border: 2px dashed var(--icon-primary, currentColor);
40
- border-radius: 50%;
41
- }
42
- :host(.xv-progress-indicator-item) .icon svg {
43
- opacity: 0;
44
- transition: opacity 500ms ease-in-out;
45
- }
46
- :host(.xv-progress-indicator-item) .label {
47
- color: var(--text-primary);
48
- font-size: 14px;
49
- font-style: normal;
50
- font-weight: 400;
51
- line-height: 18px;
52
- letter-spacing: 0.16px;
53
- }
54
-
55
- :host(.done) .icon {
56
- border-color: var(--background-brand, currentColor);
57
- color: var(--background-brand, inherit);
58
- border-style: solid;
59
- }
60
- :host(.done) .icon svg {
61
- opacity: 1;
62
- }
63
- :host(.done) .line {
64
- width: 100% !important;
65
- background-color: var(--background-brand, currentColor);
66
- }
@@ -1,47 +0,0 @@
1
- import { Host, h } from "@stencil/core";
2
- export class XvProgressIndicatorItem {
3
- constructor() {
4
- this.done = false;
5
- }
6
- render() {
7
- return (h(Host, { key: '601c2068aec197e02e89ca0ba1500abf1c293c7f', class: `xv-progress-indicator-item ${this.done ? 'done' : ''}` }, h("span", { key: 'e32b4d65713a001d4dffbc10335e1ea7e3f36e94', class: "line" }), h("span", { key: 'a0a87861fc4608287dff58a92ad2fd4b5447dc72', class: "icon" }, h("svg", { key: 'b14951a70651ae94e4b4e54f191b7733f45290e0', xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512", width: 14, height: 14 }, h("path", { key: 'c251fc0b0a4bf4f341ed8bbd36f7e03454d1d80d', fill: "currentColor", d: "M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z" }))), h("p", { key: 'cd0e21308a5884517fecc6d40a88b20463241228', class: "label" }, h("slot", { key: '3d5ca8fd5742a83f5aa2fc480b0efeb3ceb46bc0' }))));
8
- }
9
- static get is() { return "xv-progress-indicator-v2-item"; }
10
- static get encapsulation() { return "shadow"; }
11
- static get originalStyleUrls() {
12
- return {
13
- "$": ["xv-progress-indicator-item.scss"]
14
- };
15
- }
16
- static get styleUrls() {
17
- return {
18
- "$": ["xv-progress-indicator-item.css"]
19
- };
20
- }
21
- static get properties() {
22
- return {
23
- "done": {
24
- "type": "boolean",
25
- "mutable": false,
26
- "complexType": {
27
- "original": "boolean",
28
- "resolved": "boolean",
29
- "references": {}
30
- },
31
- "required": false,
32
- "optional": false,
33
- "docs": {
34
- "tags": [],
35
- "text": ""
36
- },
37
- "getter": false,
38
- "setter": false,
39
- "attribute": "done",
40
- "reflect": false,
41
- "defaultValue": "false"
42
- }
43
- };
44
- }
45
- static get elementRef() { return "el"; }
46
- }
47
- //# sourceMappingURL=xv-progress-indicator-item.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"xv-progress-indicator-item.js","sourceRoot":"","sources":["../../../src/components/xv-progress-indicator-item/xv-progress-indicator-item.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAOlE,MAAM,OAAO,uBAAuB;IALpC;QAO4B,SAAI,GAAY,KAAK,CAAC;KAuBjD;IArBC,MAAM;QACJ,OAAO,CACL,EAAC,IAAI,qDAAC,KAAK,EAAE,8BAA8B,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE;YAClE,6DAAM,KAAK,EAAC,MAAM,GAAE;YACpB,6DAAM,KAAK,EAAC,MAAM;gBAChB,4DACE,KAAK,EAAC,4BAA4B,EAClC,OAAO,EAAC,aAAa,EACrB,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE;oBAEN,6DACE,IAAI,EAAC,cAAc,EACnB,CAAC,EAAC,sLAAsL,GACxL,CACF,CACD;YACP,0DAAG,KAAK,EAAC,OAAO;gBAAC,8DAAO,CAAI,CACvB,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, h, Element, Prop } from '@stencil/core';\n\n@Component({\n tag: 'xv-progress-indicator-v2-item',\n styleUrl: 'xv-progress-indicator-item.scss',\n shadow: true,\n})\nexport class XvProgressIndicatorItem {\n @Element() el: HTMLElement;\n @Prop({ reflect: false }) done: boolean = false;\n\n render() {\n return (\n <Host class={`xv-progress-indicator-item ${this.done ? 'done' : ''}`}>\n <span class=\"line\"/>\n <span class=\"icon\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 448 512\"\n width={14}\n height={14}\n >\n <path\n fill=\"currentColor\"\n d=\"M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z\"\n />\n </svg>\n </span>\n <p class=\"label\"><slot/></p>\n </Host>\n );\n }\n}\n"]}
@@ -1,14 +0,0 @@
1
- export var TABLE_COLOR_SCHEMA;
2
- (function (TABLE_COLOR_SCHEMA) {
3
- TABLE_COLOR_SCHEMA["DEF"] = "";
4
- TABLE_COLOR_SCHEMA["ZEBRA"] = "zebra";
5
- })(TABLE_COLOR_SCHEMA || (TABLE_COLOR_SCHEMA = {}));
6
- export var TABLE_SIZE;
7
- (function (TABLE_SIZE) {
8
- TABLE_SIZE["EXTRA_SMALL"] = "xs";
9
- TABLE_SIZE["SMALL"] = "sm";
10
- TABLE_SIZE["MEDIUM"] = "md";
11
- TABLE_SIZE["LARGE"] = "lg";
12
- TABLE_SIZE["EXTRA_LARGE"] = "xl";
13
- })(TABLE_SIZE || (TABLE_SIZE = {}));
14
- //# sourceMappingURL=defs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"defs.js","sourceRoot":"","sources":["../../../src/components/xv-table/defs.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC5B,8BAAQ,CAAA;IACR,qCAAe,CAAA;AACjB,CAAC,EAHW,kBAAkB,KAAlB,kBAAkB,QAG7B;AAED,MAAM,CAAN,IAAY,UAMX;AAND,WAAY,UAAU;IACpB,gCAAkB,CAAA;IAClB,0BAAY,CAAA;IACZ,2BAAa,CAAA;IACb,0BAAY,CAAA;IACZ,gCAAkB,CAAA;AACpB,CAAC,EANW,UAAU,KAAV,UAAU,QAMrB","sourcesContent":["export enum TABLE_COLOR_SCHEMA {\n DEF = '',\n ZEBRA = 'zebra',\n}\n\nexport enum TABLE_SIZE {\n EXTRA_SMALL = 'xs',\n SMALL = 'sm',\n MEDIUM = 'md',\n LARGE = 'lg',\n EXTRA_LARGE = 'xl',\n}\n\nexport type TableSelectionEvent = CustomEvent<{\n name: string;\n checked: boolean;\n value?: string;\n}>;\n"]}
@@ -1,8 +0,0 @@
1
- :host {
2
- display: block;
3
- color: var(--text-primary, #333);
4
- font-family: var(--ff-body, Tahoma);
5
- font-size: 14px;
6
- line-height: 128.571%;
7
- letter-spacing: 0.16px;
8
- }
@@ -1,19 +0,0 @@
1
- import { Host, h } from "@stencil/core";
2
- export class XvTableCol {
3
- render() {
4
- return (h(Host, { key: '7b5fadd70a38fcec9fe9885b0d67531d133a9a17' }, h("slot", { key: 'fff4084ecf1148921fc5ab590c8cff21c91f8d89' })));
5
- }
6
- static get is() { return "xv-table-v2-col"; }
7
- static get encapsulation() { return "shadow"; }
8
- static get originalStyleUrls() {
9
- return {
10
- "$": ["xv-table-col.scss"]
11
- };
12
- }
13
- static get styleUrls() {
14
- return {
15
- "$": ["xv-table-col.css"]
16
- };
17
- }
18
- }
19
- //# sourceMappingURL=xv-table-col.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"xv-table-col.js","sourceRoot":"","sources":["../../../../src/components/xv-table/xv-table-col/xv-table-col.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAOnD,MAAM,OAAO,UAAU;IACrB,MAAM;QACJ,OAAO,CACL,EAAC,IAAI;YACH,8DAAa,CACR,CACR,CAAC;IACJ,CAAC;;;;;;;;;CACF","sourcesContent":["import { Component, Host, h } from '@stencil/core';\n\n@Component({\n tag: 'xv-table-v2-col',\n styleUrl: 'xv-table-col.scss',\n shadow: true,\n})\nexport class XvTableCol {\n render() {\n return (\n <Host>\n <slot></slot>\n </Host>\n );\n }\n}\n"]}
@@ -1,21 +0,0 @@
1
- :host {
2
- display: grid;
3
- padding: 16px 16px 32px;
4
- align-items: center;
5
- transition: height 0.15s cubic-bezier(0.2, 0, 0.38, 0.9), padding 0.15s ease-in-out, background-color 0.2ms ease-in-out;
6
- background: var(--layer-accent-01, #F7F7F7);
7
- color: var(--text-primary, #333);
8
- font-family: var(--ff-body, Tahoma);
9
- font-size: 14px;
10
- font-weight: 700;
11
- line-height: 128.571%;
12
- letter-spacing: 0.16px;
13
- }
14
- :host .left-container {
15
- height: 100%;
16
- display: flex;
17
- align-items: center;
18
- justify-content: flex-end;
19
- gap: 16px;
20
- padding: 0 16px;
21
- }
@@ -1,122 +0,0 @@
1
- import { Host, h } from "@stencil/core";
2
- export class XvTableHeaderRow {
3
- constructor() {
4
- /**
5
- * Checkbox row checked
6
- */
7
- this.checked = false;
8
- this.cols = 1;
9
- this.slotChangeHandle = () => {
10
- this.cols = this.el.childElementCount;
11
- };
12
- this.checkboxChange = (e) => {
13
- this.checked = e.detail;
14
- this.checkedChange.emit({
15
- name: this.selectionName,
16
- checked: e.detail
17
- });
18
- };
19
- }
20
- render() {
21
- return (h(Host, { key: '461bc3ab19dc1e01edf70f94b29cf20092a85607', cols: this.cols }, h("div", { key: '960f48a7fb5e9c23922f7dfff28877d420f3385a', class: "left-container" }, this.selectionName !== undefined && (h("xv-checkbox-v2", { key: '68308b0c6c9f45e848bca985b0382479032fbcb5', partial: true, name: this.selectionName, checked: this.checked, onEventChange: this.checkboxChange }))), h("slot", { key: '3a25f9011769f4fce43b6091de08995c5635381c', onSlotchange: this.slotChangeHandle })));
22
- }
23
- static get is() { return "xv-table-v2-header-row"; }
24
- static get encapsulation() { return "shadow"; }
25
- static get originalStyleUrls() {
26
- return {
27
- "$": ["xv-table-header-row.scss"]
28
- };
29
- }
30
- static get styleUrls() {
31
- return {
32
- "$": ["xv-table-header-row.css"]
33
- };
34
- }
35
- static get properties() {
36
- return {
37
- "selectionName": {
38
- "type": "string",
39
- "mutable": false,
40
- "complexType": {
41
- "original": "string",
42
- "resolved": "string",
43
- "references": {}
44
- },
45
- "required": false,
46
- "optional": true,
47
- "docs": {
48
- "tags": [],
49
- "text": "Checkbox row name"
50
- },
51
- "getter": false,
52
- "setter": false,
53
- "attribute": "selection-name",
54
- "reflect": true
55
- },
56
- "partial": {
57
- "type": "boolean",
58
- "mutable": false,
59
- "complexType": {
60
- "original": "boolean",
61
- "resolved": "boolean",
62
- "references": {}
63
- },
64
- "required": false,
65
- "optional": true,
66
- "docs": {
67
- "tags": [],
68
- "text": "Checkbox row selected partially"
69
- },
70
- "getter": false,
71
- "setter": false,
72
- "attribute": "partial",
73
- "reflect": true
74
- },
75
- "checked": {
76
- "type": "boolean",
77
- "mutable": true,
78
- "complexType": {
79
- "original": "boolean",
80
- "resolved": "boolean",
81
- "references": {}
82
- },
83
- "required": false,
84
- "optional": true,
85
- "docs": {
86
- "tags": [],
87
- "text": "Checkbox row checked"
88
- },
89
- "getter": false,
90
- "setter": false,
91
- "attribute": "checked",
92
- "reflect": true,
93
- "defaultValue": "false"
94
- }
95
- };
96
- }
97
- static get states() {
98
- return {
99
- "cols": {}
100
- };
101
- }
102
- static get events() {
103
- return [{
104
- "method": "checkedChange",
105
- "name": "checkedChange",
106
- "bubbles": true,
107
- "cancelable": true,
108
- "composed": true,
109
- "docs": {
110
- "tags": [],
111
- "text": ""
112
- },
113
- "complexType": {
114
- "original": "{ name: string, value?: string; checked: boolean }",
115
- "resolved": "{ name: string; value?: string; checked: boolean; }",
116
- "references": {}
117
- }
118
- }];
119
- }
120
- static get elementRef() { return "el"; }
121
- }
122
- //# sourceMappingURL=xv-table-header-row.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"xv-table-header-row.js","sourceRoot":"","sources":["../../../../src/components/xv-table/xv-table-header-row/xv-table-header-row.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAgB,MAAM,eAAe,CAAC;AAO9F,MAAM,OAAO,gBAAgB;IAL7B;QAeE;;WAEG;QACqC,YAAO,GAAa,KAAK,CAAC;QAEzD,SAAI,GAAW,CAAC,CAAC;QAIlB,qBAAgB,GAAG,GAAG,EAAE;YAC9B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,EAAE,CAAC,iBAAiB,CAAC;QACxC,CAAC,CAAA;QAEO,mBAAc,GAAG,CAAC,CAAuB,EAAE,EAAE;YACnD,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC,MAAM,CAAC;YACxB,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC;gBACtB,IAAI,EAAE,IAAI,CAAC,aAAa;gBACxB,OAAO,EAAE,CAAC,CAAC,MAAM;aAClB,CAAC,CAAC;QACL,CAAC,CAAA;KAmBF;IAjBC,MAAM;QACJ,OAAO,CACL,EAAC,IAAI,qDAAC,IAAI,EAAE,IAAI,CAAC,IAAI;YACnB,4DAAK,KAAK,EAAC,gBAAgB,IACxB,IAAI,CAAC,aAAa,KAAK,SAAS,IAAI,CACnC,uEACE,OAAO,EAAE,IAAI,EACb,IAAI,EAAE,IAAI,CAAC,aAAa,EACxB,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,aAAa,EAAE,IAAI,CAAC,cAAc,GAClC,CACH,CACG;YACN,6DAAM,YAAY,EAAE,IAAI,CAAC,gBAAgB,GAAS,CAC7C,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, h, Element, Prop, State, Event, EventEmitter } from '@stencil/core';\n\n@Component({\n tag: 'xv-table-v2-header-row',\n styleUrl: 'xv-table-header-row.scss',\n shadow: true,\n})\nexport class XvTableHeaderRow {\n @Element() el: HTMLElement;\n /**\n * Checkbox row name\n */\n @Prop({ reflect: true, attribute: 'selection-name' }) selectionName?: string;\n /**\n * Checkbox row selected partially\n */\n @Prop({ reflect: true }) partial?: boolean;\n /**\n * Checkbox row checked\n */\n @Prop({ reflect: true, mutable: true }) checked?: boolean = false;\n\n @State() cols: number = 1;\n\n @Event() checkedChange: EventEmitter<{ name: string, value?: string; checked: boolean }>;\n\n private slotChangeHandle = () => {\n this.cols = this.el.childElementCount;\n }\n\n private checkboxChange = (e: CustomEvent<boolean>) => {\n this.checked = e.detail;\n this.checkedChange.emit({\n name: this.selectionName,\n checked: e.detail\n });\n }\n\n render() {\n return (\n <Host cols={this.cols}>\n <div class=\"left-container\">\n {this.selectionName !== undefined && (\n <xv-checkbox-v2\n partial={true}\n name={this.selectionName}\n checked={this.checked}\n onEventChange={this.checkboxChange}\n />\n )}\n </div>\n <slot onSlotchange={this.slotChangeHandle}></slot>\n </Host>\n );\n }\n}\n"]}
@@ -1,53 +0,0 @@
1
- :host(xv-table-v2-row) {
2
- display: grid;
3
- padding: 16px;
4
- align-items: center;
5
- transition: height 0.15s cubic-bezier(0.2, 0, 0.38, 0.9), padding 0.15s ease-in-out, background-color 0.2ms ease-in-out;
6
- background: var(--layer-02, #FFF);
7
- box-shadow: 0 0 0 1px #E3E3E3 inset;
8
- }
9
- :host(xv-table-v2-row) .left-container {
10
- height: 100%;
11
- display: flex;
12
- align-items: center;
13
- justify-content: flex-end;
14
- gap: 16px;
15
- padding: 0 16px;
16
- }
17
- :host(xv-table-v2-row) .expand-btn {
18
- outline: none;
19
- background-color: transparent;
20
- display: block;
21
- margin: 0 auto;
22
- border: solid black;
23
- border-width: 0 2px 2px 0;
24
- padding: 5px;
25
- transform: rotate(45deg);
26
- cursor: pointer;
27
- transition: opacity 300ms ease-in-out, transform 200ms ease-in-out;
28
- }
29
- :host(xv-table-v2-row) .expand-btn:active {
30
- opacity: 0.5;
31
- }
32
- :host(xv-table-v2-row) .expand-btn.expanded {
33
- transform: rotate(225deg);
34
- }
35
-
36
- :host([expanded]) {
37
- block-size: auto;
38
- }
39
-
40
- :host([collapsed]) {
41
- block-size: 0;
42
- overflow: hidden;
43
- padding-top: 0;
44
- padding-bottom: 0;
45
- }
46
-
47
- :host([odd]) {
48
- background-color: var(--layer-selected-01, #E3E3E3);
49
- }
50
-
51
- :host([even]) {
52
- background-color: #fff;
53
- }
@@ -1,299 +0,0 @@
1
- import { Host, h } from "@stencil/core";
2
- import { uidGenerator } from "../../../utils/utils";
3
- export class XvTableRow {
4
- constructor() {
5
- /**
6
- * Is row will be expandable
7
- * If it's true then the next row will be collapsed
8
- */
9
- this.expandable = false;
10
- /**
11
- * Default state of expandable
12
- */
13
- this.expanded = false;
14
- this.prevRowExpanded = false;
15
- this.cols = 1;
16
- this.checkboxChange = (e) => {
17
- this.checked = e.detail;
18
- this.checkedChange.emit({
19
- name: this.selectionName,
20
- value: this.value,
21
- checked: e.detail
22
- });
23
- };
24
- }
25
- /**
26
- * Called from outside (From expandable row)
27
- */
28
- async setExpandRelation(id, expanded) {
29
- this.expandId = id;
30
- this.prevRowExpanded = !!expanded;
31
- return this.prevRowExpanded;
32
- }
33
- /**
34
- * Called from outside (From expandable row)
35
- * to change then expand or collapse
36
- */
37
- async toggleExpand(id, expanded) {
38
- if (this.expandId !== id)
39
- return;
40
- this.prevRowExpanded = expanded !== undefined ? expanded : !this.prevRowExpanded;
41
- }
42
- /**
43
- * Watch for expandable
44
- * When it's false needs to remove unnecessary properties
45
- */
46
- setExpandableRelationHandle() {
47
- const nextEl = this.el.nextElementSibling;
48
- if (!nextEl || nextEl.tagName !== this.el.tagName)
49
- this.expandable = false;
50
- if (!this.expandable)
51
- return;
52
- if (!this.id)
53
- this.id = this.el.id || uidGenerator();
54
- return nextEl.setExpandRelation(this.id, this.expanded);
55
- }
56
- /**
57
- * When user press on the expand button
58
- */
59
- changeExpandHandle() {
60
- const nextRow = this.el.nextElementSibling;
61
- if (!nextRow || nextRow.tagName !== this.el.tagName)
62
- return;
63
- this.expanded = !this.expanded;
64
- // Call method from new row
65
- nextRow.toggleExpand(this.id, this.expanded);
66
- }
67
- /**
68
- * Highlight the expanded row on hover
69
- */
70
- hoverHandle(active) {
71
- const prevRow = this.el.previousElementSibling;
72
- const nextRow = this.el.nextElementSibling;
73
- if ((nextRow === null || nextRow === void 0 ? void 0 : nextRow.tagName) === this.el.tagName && this.expandable) {
74
- if (active) {
75
- nextRow.setAttribute('highlighted', '');
76
- }
77
- else {
78
- nextRow.removeAttribute('highlighted');
79
- }
80
- }
81
- if ((prevRow === null || prevRow === void 0 ? void 0 : prevRow.tagName) === this.el.tagName && prevRow.hasAttribute('expandable')) {
82
- if (active) {
83
- prevRow.setAttribute('highlighted', '');
84
- }
85
- else {
86
- prevRow.removeAttribute('highlighted');
87
- }
88
- }
89
- }
90
- async componentWillLoad() {
91
- this.id = this.el.id;
92
- this.cols = this.el.childElementCount;
93
- await this.setExpandableRelationHandle();
94
- }
95
- render() {
96
- return (h(Host, { key: '88df976d496799070ad0011da60871d4984f775e', onMouseEnter: () => this.hoverHandle(true), onMouseLeave: () => this.hoverHandle(false), cols: this.cols, expanded: this.expandId && this.prevRowExpanded, collapsed: this.expandId && !this.prevRowExpanded }, h("div", { key: '2a28bfce934d640db4167ce418bec37bddd18494', class: "left-container" }, this.expandable && (h("button", { key: '0cf1d6a4472c05677e7d2edb8b2402bf7687fae8', class: `expand-btn ${this.expanded ? 'expanded' : ''}`, onClick: () => this.changeExpandHandle() })), this.selectionName && (h("xv-checkbox-v2", { key: 'ea01b82db0a990c0352c3310ceaca1cc55a7d2ca', name: this.selectionName, value: this.value, checked: this.checked, onEventChange: this.checkboxChange }))), h("slot", { key: '33be6520fe3e2f7cd352f8ce58ad7286b644d45b' })));
97
- }
98
- static get is() { return "xv-table-v2-row"; }
99
- static get encapsulation() { return "shadow"; }
100
- static get originalStyleUrls() {
101
- return {
102
- "$": ["xv-table-row.scss"]
103
- };
104
- }
105
- static get styleUrls() {
106
- return {
107
- "$": ["xv-table-row.css"]
108
- };
109
- }
110
- static get properties() {
111
- return {
112
- "expandable": {
113
- "type": "boolean",
114
- "mutable": true,
115
- "complexType": {
116
- "original": "boolean",
117
- "resolved": "boolean",
118
- "references": {}
119
- },
120
- "required": false,
121
- "optional": false,
122
- "docs": {
123
- "tags": [],
124
- "text": "Is row will be expandable\nIf it's true then the next row will be collapsed"
125
- },
126
- "getter": false,
127
- "setter": false,
128
- "attribute": "expandable",
129
- "reflect": false,
130
- "defaultValue": "false"
131
- },
132
- "expanded": {
133
- "type": "boolean",
134
- "mutable": true,
135
- "complexType": {
136
- "original": "boolean",
137
- "resolved": "boolean",
138
- "references": {}
139
- },
140
- "required": false,
141
- "optional": false,
142
- "docs": {
143
- "tags": [],
144
- "text": "Default state of expandable"
145
- },
146
- "getter": false,
147
- "setter": false,
148
- "attribute": "expanded",
149
- "reflect": true,
150
- "defaultValue": "false"
151
- },
152
- "selectionName": {
153
- "type": "string",
154
- "mutable": false,
155
- "complexType": {
156
- "original": "string",
157
- "resolved": "string",
158
- "references": {}
159
- },
160
- "required": false,
161
- "optional": true,
162
- "docs": {
163
- "tags": [],
164
- "text": "Checkbox row name"
165
- },
166
- "getter": false,
167
- "setter": false,
168
- "attribute": "selection-name",
169
- "reflect": true
170
- },
171
- "value": {
172
- "type": "string",
173
- "mutable": false,
174
- "complexType": {
175
- "original": "string",
176
- "resolved": "string",
177
- "references": {}
178
- },
179
- "required": false,
180
- "optional": true,
181
- "docs": {
182
- "tags": [],
183
- "text": "Checkbox row value"
184
- },
185
- "getter": false,
186
- "setter": false,
187
- "attribute": "value",
188
- "reflect": true
189
- },
190
- "checked": {
191
- "type": "boolean",
192
- "mutable": true,
193
- "complexType": {
194
- "original": "boolean",
195
- "resolved": "boolean",
196
- "references": {}
197
- },
198
- "required": false,
199
- "optional": true,
200
- "docs": {
201
- "tags": [],
202
- "text": "Checkbox row status"
203
- },
204
- "getter": false,
205
- "setter": false,
206
- "attribute": "checked",
207
- "reflect": true
208
- }
209
- };
210
- }
211
- static get states() {
212
- return {
213
- "prevRowExpanded": {},
214
- "expandId": {},
215
- "id": {},
216
- "cols": {}
217
- };
218
- }
219
- static get events() {
220
- return [{
221
- "method": "checkedChange",
222
- "name": "checkedChange",
223
- "bubbles": true,
224
- "cancelable": true,
225
- "composed": true,
226
- "docs": {
227
- "tags": [],
228
- "text": ""
229
- },
230
- "complexType": {
231
- "original": "{ name: string, value?: string; checked: boolean }",
232
- "resolved": "{ name: string; value?: string; checked: boolean; }",
233
- "references": {}
234
- }
235
- }];
236
- }
237
- static get methods() {
238
- return {
239
- "setExpandRelation": {
240
- "complexType": {
241
- "signature": "(id?: string, expanded?: boolean) => Promise<boolean>",
242
- "parameters": [{
243
- "name": "id",
244
- "type": "string",
245
- "docs": ""
246
- }, {
247
- "name": "expanded",
248
- "type": "boolean",
249
- "docs": ""
250
- }],
251
- "references": {
252
- "Promise": {
253
- "location": "global",
254
- "id": "global::Promise"
255
- }
256
- },
257
- "return": "Promise<boolean>"
258
- },
259
- "docs": {
260
- "text": "Called from outside (From expandable row)",
261
- "tags": []
262
- }
263
- },
264
- "toggleExpand": {
265
- "complexType": {
266
- "signature": "(id?: string, expanded?: boolean) => Promise<void>",
267
- "parameters": [{
268
- "name": "id",
269
- "type": "string",
270
- "docs": ""
271
- }, {
272
- "name": "expanded",
273
- "type": "boolean",
274
- "docs": ""
275
- }],
276
- "references": {
277
- "Promise": {
278
- "location": "global",
279
- "id": "global::Promise"
280
- }
281
- },
282
- "return": "Promise<void>"
283
- },
284
- "docs": {
285
- "text": "Called from outside (From expandable row)\nto change then expand or collapse",
286
- "tags": []
287
- }
288
- }
289
- };
290
- }
291
- static get elementRef() { return "el"; }
292
- static get watchers() {
293
- return [{
294
- "propName": "expandable",
295
- "methodName": "setExpandableRelationHandle"
296
- }];
297
- }
298
- }
299
- //# sourceMappingURL=xv-table-row.js.map