xv-webcomponents 0.1.17 → 0.1.19

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 (131) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +129 -129
  3. package/dist/types/components/xv-checkbox/xv-checkbox.d.ts +66 -2
  4. package/dist/types/components/xv-table/defs.d.ts +16 -0
  5. package/dist/types/components/xv-table/xv-table-col/xv-table-col.d.ts +3 -0
  6. package/dist/types/components/xv-table/xv-table-header-row/xv-table-header-row.d.ts +25 -0
  7. package/dist/types/components/xv-table/xv-table-row/xv-table-row.d.ts +59 -0
  8. package/dist/types/components/xv-table/xv-table.d.ts +40 -0
  9. package/dist/types/components.d.ts +342 -0
  10. package/dist/types/types/enum.d.ts +7 -0
  11. package/dist/types/utils/utils.d.ts +7 -0
  12. package/dist/xv-webcomponents/index-90b82796.js +3971 -0
  13. package/dist/xv-webcomponents/index-90b82796.js.map +1 -0
  14. package/dist/xv-webcomponents/index.esm.js +12 -1
  15. package/dist/xv-webcomponents/index.esm.js.map +1 -1
  16. package/dist/xv-webcomponents/utils-e6dc0550.js +17 -0
  17. package/dist/xv-webcomponents/utils-e6dc0550.js.map +1 -0
  18. package/dist/xv-webcomponents/xv-accordion-v2-item.entry.js +35 -0
  19. package/dist/xv-webcomponents/xv-accordion-v2-item.entry.js.map +1 -0
  20. package/dist/xv-webcomponents/xv-accordion-v2.entry.js +40 -0
  21. package/dist/xv-webcomponents/xv-accordion-v2.entry.js.map +1 -0
  22. package/dist/xv-webcomponents/xv-breadcrumbs-v2.entry.js +17 -0
  23. package/dist/xv-webcomponents/xv-breadcrumbs-v2.entry.js.map +1 -0
  24. package/dist/xv-webcomponents/xv-button-v2.entry.js +33 -0
  25. package/dist/xv-webcomponents/xv-button-v2.entry.js.map +1 -0
  26. package/dist/xv-webcomponents/xv-card-v2.entry.js +18 -0
  27. package/dist/xv-webcomponents/xv-card-v2.entry.js.map +1 -0
  28. package/dist/xv-webcomponents/xv-checkbox-v2.entry.js +99 -0
  29. package/dist/xv-webcomponents/xv-checkbox-v2.entry.js.map +1 -0
  30. package/dist/xv-webcomponents/xv-link-v2.entry.js +26 -0
  31. package/dist/xv-webcomponents/xv-link-v2.entry.js.map +1 -0
  32. package/dist/xv-webcomponents/xv-progress-indicator-v2-item.entry.js +19 -0
  33. package/dist/xv-webcomponents/xv-progress-indicator-v2-item.entry.js.map +1 -0
  34. package/dist/xv-webcomponents/xv-progress-indicator-v2.entry.js +39 -0
  35. package/dist/xv-webcomponents/xv-progress-indicator-v2.entry.js.map +1 -0
  36. package/dist/xv-webcomponents/xv-table-v2-col.entry.js +17 -0
  37. package/dist/xv-webcomponents/xv-table-v2-col.entry.js.map +1 -0
  38. package/dist/xv-webcomponents/xv-table-v2-header-row.entry.js +34 -0
  39. package/dist/xv-webcomponents/xv-table-v2-header-row.entry.js.map +1 -0
  40. package/dist/xv-webcomponents/xv-table-v2-row.entry.js +112 -0
  41. package/dist/xv-webcomponents/xv-table-v2-row.entry.js.map +1 -0
  42. package/dist/xv-webcomponents/xv-table-v2.entry.js +114 -0
  43. package/dist/xv-webcomponents/xv-table-v2.entry.js.map +1 -0
  44. package/dist/xv-webcomponents/xv-tag-v2.entry.js +28 -0
  45. package/dist/xv-webcomponents/xv-tag-v2.entry.js.map +1 -0
  46. package/dist/xv-webcomponents/xv-tooltip-v2.entry.js +23 -0
  47. package/dist/xv-webcomponents/xv-tooltip-v2.entry.js.map +1 -0
  48. package/dist/xv-webcomponents/xv-webcomponents.esm.js +48 -1
  49. package/dist/xv-webcomponents/xv-webcomponents.esm.js.map +1 -1
  50. package/package.json +51 -51
  51. package/dist/cjs/app-globals-3a1e7e63.js +0 -7
  52. package/dist/cjs/app-globals-3a1e7e63.js.map +0 -1
  53. package/dist/cjs/index-4d938647.js +0 -1483
  54. package/dist/cjs/index-4d938647.js.map +0 -1
  55. package/dist/cjs/index.cjs.js +0 -11
  56. package/dist/cjs/index.cjs.js.map +0 -1
  57. package/dist/cjs/loader.cjs.js +0 -17
  58. package/dist/cjs/loader.cjs.js.map +0 -1
  59. package/dist/cjs/utils-c7652b74.js +0 -13
  60. package/dist/cjs/utils-c7652b74.js.map +0 -1
  61. package/dist/cjs/xv-accordion-v2_10.cjs.entry.js +0 -265
  62. package/dist/cjs/xv-accordion-v2_10.cjs.entry.js.map +0 -1
  63. package/dist/cjs/xv-breadcrumbs-v2.cjs.entry.js +0 -22
  64. package/dist/cjs/xv-breadcrumbs-v2.cjs.entry.js.map +0 -1
  65. package/dist/cjs/xv-webcomponents.cjs.js +0 -27
  66. package/dist/cjs/xv-webcomponents.cjs.js.map +0 -1
  67. package/dist/collection/collection-manifest.json +0 -22
  68. package/dist/collection/components/xv-accordion/xv-accordion.css +0 -3
  69. package/dist/collection/components/xv-accordion/xv-accordion.js +0 -163
  70. package/dist/collection/components/xv-accordion/xv-accordion.js.map +0 -1
  71. package/dist/collection/components/xv-accordion-item/xv-accordion-item.css +0 -68
  72. package/dist/collection/components/xv-accordion-item/xv-accordion-item.js +0 -132
  73. package/dist/collection/components/xv-accordion-item/xv-accordion-item.js.map +0 -1
  74. package/dist/collection/components/xv-breadcrumbs/xv-breadcrumbs.css +0 -3
  75. package/dist/collection/components/xv-breadcrumbs/xv-breadcrumbs.js +0 -19
  76. package/dist/collection/components/xv-breadcrumbs/xv-breadcrumbs.js.map +0 -1
  77. package/dist/collection/components/xv-button/xv-button-v2.css +0 -153
  78. package/dist/collection/components/xv-button/xv-button.js +0 -138
  79. package/dist/collection/components/xv-button/xv-button.js.map +0 -1
  80. package/dist/collection/components/xv-card/xv-card.css +0 -63
  81. package/dist/collection/components/xv-card/xv-card.js +0 -122
  82. package/dist/collection/components/xv-card/xv-card.js.map +0 -1
  83. package/dist/collection/components/xv-checkbox/xv-checkbox.js +0 -22
  84. package/dist/collection/components/xv-checkbox/xv-checkbox.js.map +0 -1
  85. package/dist/collection/components/xv-link/xv-link.css +0 -60
  86. package/dist/collection/components/xv-link/xv-link.js +0 -132
  87. package/dist/collection/components/xv-link/xv-link.js.map +0 -1
  88. package/dist/collection/components/xv-progress-indicator/xv-progress-indicator.css +0 -7
  89. package/dist/collection/components/xv-progress-indicator/xv-progress-indicator.js +0 -70
  90. package/dist/collection/components/xv-progress-indicator/xv-progress-indicator.js.map +0 -1
  91. package/dist/collection/components/xv-progress-indicator-item/xv-progress-indicator-item.css +0 -66
  92. package/dist/collection/components/xv-progress-indicator-item/xv-progress-indicator-item.js +0 -47
  93. package/dist/collection/components/xv-progress-indicator-item/xv-progress-indicator-item.js.map +0 -1
  94. package/dist/collection/components/xv-tag/xv-tag.css +0 -97
  95. package/dist/collection/components/xv-tag/xv-tag.js +0 -158
  96. package/dist/collection/components/xv-tag/xv-tag.js.map +0 -1
  97. package/dist/collection/components/xv-tooltip/xv-tooltip.css +0 -154
  98. package/dist/collection/components/xv-tooltip/xv-tooltip.js +0 -70
  99. package/dist/collection/components/xv-tooltip/xv-tooltip.js.map +0 -1
  100. package/dist/collection/index.js +0 -11
  101. package/dist/collection/index.js.map +0 -1
  102. package/dist/collection/utils/utils.js +0 -7
  103. package/dist/collection/utils/utils.js.map +0 -1
  104. package/dist/esm/index-60f5a964.js +0 -1454
  105. package/dist/esm/index-60f5a964.js.map +0 -1
  106. package/dist/esm/index.js +0 -3
  107. package/dist/esm/index.js.map +0 -1
  108. package/dist/esm/loader.js +0 -13
  109. package/dist/esm/loader.js.map +0 -1
  110. package/dist/esm/utils-9bb6333b.js +0 -10
  111. package/dist/esm/utils-9bb6333b.js.map +0 -1
  112. package/dist/esm/xv-accordion-v2_10.entry.js +0 -252
  113. package/dist/esm/xv-accordion-v2_10.entry.js.map +0 -1
  114. package/dist/esm/xv-breadcrumbs-v2.entry.js +0 -18
  115. package/dist/esm/xv-breadcrumbs-v2.entry.js.map +0 -1
  116. package/dist/esm/xv-webcomponents.js +0 -22
  117. package/dist/esm/xv-webcomponents.js.map +0 -1
  118. package/dist/index.cjs.js +0 -1
  119. package/dist/index.js +0 -1
  120. package/dist/xv-webcomponents/p-08297c60.entry.js +0 -2
  121. package/dist/xv-webcomponents/p-08297c60.entry.js.map +0 -1
  122. package/dist/xv-webcomponents/p-543fe755.js +0 -3
  123. package/dist/xv-webcomponents/p-543fe755.js.map +0 -1
  124. package/dist/xv-webcomponents/p-6fe85516.entry.js +0 -2
  125. package/dist/xv-webcomponents/p-6fe85516.entry.js.map +0 -1
  126. package/dist/xv-webcomponents/p-a0b74d3c.js +0 -2
  127. package/dist/xv-webcomponents/p-a0b74d3c.js.map +0 -1
  128. package/dist/xv-webcomponents/p-e1255160.js +0 -2
  129. package/dist/xv-webcomponents/p-e1255160.js.map +0 -1
  130. /package/dist/{esm → xv-webcomponents}/app-globals-0f993ce5.js +0 -0
  131. /package/dist/{esm → xv-webcomponents}/app-globals-0f993ce5.js.map +0 -0
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2025 crossvertise
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
+ MIT License
2
+
3
+ Copyright (c) 2025 crossvertise
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.
package/README.md CHANGED
@@ -1,129 +1,129 @@
1
- # @xv/webcomponents
2
-
3
- **Reusable Web Components for XV Applications**
4
- This repository contains Web Components built with Stencil.js to provide a modular and reusable UI across multiple applications.
5
-
6
- ---
7
-
8
- ## Features
9
-
10
- **Reusable Web Components** – Designed for multiple XV applications
11
- **Stencil.js Powered** – Built using modern Web Component standards
12
- **Shadow DOM Support** – Encapsulated styles and functionality
13
- **Brand-Specific Theming** – Automatically detects and applies brand styles
14
- **Framework Agnostic** – Works with Angular, React, Vue, and plain HTML
15
-
16
- ---
17
-
18
- ## Folder Structure
19
-
20
- ```
21
- xv-webcomponents/
22
- │── src/
23
- │ ├── components/ # Web Component source files
24
- │ │ ├── button/
25
- │ │ │ ├── xv-button.tsx
26
- │ │ │ ├── xv-button.css
27
- │ │ │ ├── xv-button.e2e.ts
28
- │ │ │ ├── xv-button.spec.ts
29
- │ │ ├── checkbox/
30
- │ │ │ ├── xv-checkbox.tsx
31
- │ │ │ ├── xv-checkbox.css
32
- │ │ │ ├── xv-checkbox.e2e.ts
33
- │ │ │ ├── xv-checkbox.spec.ts
34
- │ ├── utils/ # Utility functions for components
35
- │── dist/ # Compiled distribution files
36
- │── loader/ # Loader scripts for consuming Web Components
37
- │── package.json
38
- │── README.md
39
- │── stencil.config.ts # Stencil.js configuration
40
- ```
41
-
42
- ---
43
-
44
- ## Installation
45
-
46
- To install the package from npm:
47
- ```bash
48
- npm install xv-webcomponents
49
- ```
50
-
51
- ---
52
-
53
- ## Usage
54
-
55
- ### **Using in an HTML Page**
56
- Simply include the Web Component in your HTML:
57
- ```html
58
- <script type="module" src="https://cdn.yourcompany.com/xv-webcomponents/xv-webcomponents.esm.js"></script>
59
- <xv-button-v2 label="Click Me" variant="accent"></xv-button-v2>
60
- ```
61
-
62
- ### **Using in an Angular Project**
63
- First, import `CUSTOM_ELEMENTS_SCHEMA` in your module:
64
- ```typescript
65
- import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
66
- import { BrowserModule } from '@angular/platform-browser';
67
-
68
- @NgModule({
69
- declarations: [],
70
- imports: [BrowserModule],
71
- schemas: [CUSTOM_ELEMENTS_SCHEMA]
72
- })
73
- export class AppModule {}
74
- ```
75
- Now, use the Web Component in your Angular templates:
76
- ```html
77
- <xv-button-v2 label="Click Me" variant="primary"></xv-button-v2>
78
- ```
79
-
80
- ### **Using in a C# Razor Page (MVC)**
81
- ```html
82
- <xv-button-v2 label="Submit" variant="secondary"></xv-button-v2>
83
- ```
84
-
85
- ### **Using in Sitefinity CMS**
86
- Embed the Web Component inside a content block:
87
- ```html
88
- <xv-button-v2 label="Learn More" variant="ghost"></xv-button-v2>
89
- ```
90
-
91
- ---
92
-
93
- ## 🛠 Development & Building
94
-
95
- ### **1️⃣ Build the Components**
96
- To build all components:
97
- ```bash
98
- npm run build
99
- ```
100
- This generates compiled components inside the `dist/` folder.
101
-
102
- ### **2️⃣ Run Local Development Server**
103
- To test components locally:
104
- ```bash
105
- npm start
106
- ```
107
- This starts a development server and watches for changes.
108
-
109
- ### **3️⃣ Publish to npm**
110
- To publish a new version of the package:
111
- ```bash
112
- npm version patch
113
- npm publish --access public
114
- ```
115
-
116
- ---
117
-
118
- ## Contributing
119
-
120
- ### **Adding a New Component**
121
- 1. Generate a new component:
122
- ```bash
123
- npm run generate component xv-new-component
124
- ```
125
- 2. Implement logic and styles inside `src/components/xv-new-component/`.
126
- 3. Test the component using Jest (`.spec.ts`) and e2e tests.
127
- 4. Run `npm run build` to generate the compiled version.
128
- 5. Commit changes and submit a pull request.
129
-
1
+ # @xv/webcomponents
2
+
3
+ **Reusable Web Components for XV Applications**
4
+ This repository contains Web Components built with Stencil.js to provide a modular and reusable UI across multiple applications.
5
+
6
+ ---
7
+
8
+ ## Features
9
+
10
+ **Reusable Web Components** – Designed for multiple XV applications
11
+ **Stencil.js Powered** – Built using modern Web Component standards
12
+ **Shadow DOM Support** – Encapsulated styles and functionality
13
+ **Brand-Specific Theming** – Automatically detects and applies brand styles
14
+ **Framework Agnostic** – Works with Angular, React, Vue, and plain HTML
15
+
16
+ ---
17
+
18
+ ## Folder Structure
19
+
20
+ ```
21
+ xv-webcomponents/
22
+ │── src/
23
+ │ ├── components/ # Web Component source files
24
+ │ │ ├── button/
25
+ │ │ │ ├── xv-button.tsx
26
+ │ │ │ ├── xv-button.css
27
+ │ │ │ ├── xv-button.e2e.ts
28
+ │ │ │ ├── xv-button.spec.ts
29
+ │ │ ├── checkbox/
30
+ │ │ │ ├── xv-checkbox.tsx
31
+ │ │ │ ├── xv-checkbox.css
32
+ │ │ │ ├── xv-checkbox.e2e.ts
33
+ │ │ │ ├── xv-checkbox.spec.ts
34
+ │ ├── utils/ # Utility functions for components
35
+ │── dist/ # Compiled distribution files
36
+ │── loader/ # Loader scripts for consuming Web Components
37
+ │── package.json
38
+ │── README.md
39
+ │── stencil.config.ts # Stencil.js configuration
40
+ ```
41
+
42
+ ---
43
+
44
+ ## Installation
45
+
46
+ To install the package from npm:
47
+ ```bash
48
+ npm install xv-webcomponents
49
+ ```
50
+
51
+ ---
52
+
53
+ ## Usage
54
+
55
+ ### **Using in an HTML Page**
56
+ Simply include the Web Component in your HTML:
57
+ ```html
58
+ <script type="module" src="https://cdn.yourcompany.com/xv-webcomponents/xv-webcomponents.esm.js"></script>
59
+ <xv-button-v2 label="Click Me" variant="accent"></xv-button-v2>
60
+ ```
61
+
62
+ ### **Using in an Angular Project**
63
+ First, import `CUSTOM_ELEMENTS_SCHEMA` in your module:
64
+ ```typescript
65
+ import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
66
+ import { BrowserModule } from '@angular/platform-browser';
67
+
68
+ @NgModule({
69
+ declarations: [],
70
+ imports: [BrowserModule],
71
+ schemas: [CUSTOM_ELEMENTS_SCHEMA]
72
+ })
73
+ export class AppModule {}
74
+ ```
75
+ Now, use the Web Component in your Angular templates:
76
+ ```html
77
+ <xv-button-v2 label="Click Me" variant="primary"></xv-button-v2>
78
+ ```
79
+
80
+ ### **Using in a C# Razor Page (MVC)**
81
+ ```html
82
+ <xv-button-v2 label="Submit" variant="secondary"></xv-button-v2>
83
+ ```
84
+
85
+ ### **Using in Sitefinity CMS**
86
+ Embed the Web Component inside a content block:
87
+ ```html
88
+ <xv-button-v2 label="Learn More" variant="ghost"></xv-button-v2>
89
+ ```
90
+
91
+ ---
92
+
93
+ ## 🛠 Development & Building
94
+
95
+ ### **1️⃣ Build the Components**
96
+ To build all components:
97
+ ```bash
98
+ npm run build
99
+ ```
100
+ This generates compiled components inside the `dist/` folder.
101
+
102
+ ### **2️⃣ Run Local Development Server**
103
+ To test components locally:
104
+ ```bash
105
+ npm start
106
+ ```
107
+ This starts a development server and watches for changes.
108
+
109
+ ### **3️⃣ Publish to npm**
110
+ To publish a new version of the package:
111
+ ```bash
112
+ npm version patch
113
+ npm publish --access public
114
+ ```
115
+
116
+ ---
117
+
118
+ ## Contributing
119
+
120
+ ### **Adding a New Component**
121
+ 1. Generate a new component:
122
+ ```bash
123
+ npm run generate component xv-new-component
124
+ ```
125
+ 2. Implement logic and styles inside `src/components/xv-new-component/`.
126
+ 3. Test the component using Jest (`.spec.ts`) and e2e tests.
127
+ 4. Run `npm run build` to generate the compiled version.
128
+ 5. Commit changes and submit a pull request.
129
+
@@ -1,6 +1,70 @@
1
+ import { EventEmitter } from '../../stencil-public-runtime';
2
+ import { SIZE_VAR } from '../../types/enum';
1
3
  export declare class XvCheckbox {
4
+ private inputEl;
5
+ private internals;
2
6
  el: HTMLElement;
3
- private applyGlobalStyles;
4
- componentWillLoad(): void;
7
+ /**
8
+ * Default checked status
9
+ */
10
+ checked: boolean;
11
+ /**
12
+ * Using for forms
13
+ */
14
+ indeterminate: boolean;
15
+ /**
16
+ * Disabled status
17
+ */
18
+ disabled: boolean;
19
+ /**
20
+ * Input name
21
+ */
22
+ name: string;
23
+ /**
24
+ * Input value
25
+ */
26
+ value: string;
27
+ /**
28
+ * The same like default checkbox prop
29
+ */
30
+ required: boolean;
31
+ /**
32
+ * Change checkmark icon to minus
33
+ */
34
+ partial: boolean;
35
+ /**
36
+ * Can be used like property or like slot
37
+ */
38
+ label: string;
39
+ size?: SIZE_VAR;
40
+ error?: string | boolean;
41
+ hasFocus: boolean;
42
+ /**
43
+ * event 'onEventChange'
44
+ */
45
+ changeEvent: EventEmitter<boolean>;
46
+ /**
47
+ * event 'onEventInput'
48
+ */
49
+ inputEvent: EventEmitter<boolean>;
50
+ /**
51
+ * event 'onEventFocus'
52
+ */
53
+ focusEvent: EventEmitter<void>;
54
+ /**
55
+ * event 'onEventBlur'
56
+ */
57
+ blurEvent: EventEmitter<void>;
58
+ constructor();
59
+ connectedCallback(): void;
60
+ onCheckedChange(newValue: boolean): void;
61
+ private onInput;
62
+ private onChange;
63
+ private onFocus;
64
+ private onBlur;
5
65
  render(): any;
66
+ componentDidLoad(): void;
67
+ componentDidUpdate(): void;
68
+ formResetCallback(): void;
69
+ formStateRestoreCallback(state: string): void;
6
70
  }
@@ -0,0 +1,16 @@
1
+ export declare enum TABLE_COLOR_SCHEMA {
2
+ DEF = "",
3
+ ZEBRA = "zebra"
4
+ }
5
+ export declare enum TABLE_SIZE {
6
+ EXTRA_SMALL = "xs",
7
+ SMALL = "sm",
8
+ MEDIUM = "md",
9
+ LARGE = "lg",
10
+ EXTRA_LARGE = "xl"
11
+ }
12
+ export type TableSelectionEvent = CustomEvent<{
13
+ name: string;
14
+ checked: boolean;
15
+ value?: string;
16
+ }>;
@@ -0,0 +1,3 @@
1
+ export declare class XvTableCol {
2
+ render(): any;
3
+ }
@@ -0,0 +1,25 @@
1
+ import { EventEmitter } from '../../../stencil-public-runtime';
2
+ export declare class XvTableHeaderRow {
3
+ el: HTMLElement;
4
+ /**
5
+ * Checkbox row name
6
+ */
7
+ selectionName?: string;
8
+ /**
9
+ * Checkbox row selected partially
10
+ */
11
+ partial?: boolean;
12
+ /**
13
+ * Checkbox row checked
14
+ */
15
+ checked?: boolean;
16
+ cols: number;
17
+ checkedChange: EventEmitter<{
18
+ name: string;
19
+ value?: string;
20
+ checked: boolean;
21
+ }>;
22
+ private slotChangeHandle;
23
+ private checkboxChange;
24
+ render(): any;
25
+ }
@@ -0,0 +1,59 @@
1
+ import { EventEmitter } from '../../../stencil-public-runtime';
2
+ export declare class XvTableRow {
3
+ el: HTMLElement;
4
+ /**
5
+ * Is row will be expandable
6
+ * If it's true then the next row will be collapsed
7
+ */
8
+ expandable: boolean;
9
+ /**
10
+ * Default state of expandable
11
+ */
12
+ expanded: boolean;
13
+ /**
14
+ * Checkbox row name
15
+ */
16
+ selectionName?: string;
17
+ /**
18
+ * Checkbox row value
19
+ */
20
+ value?: string;
21
+ /**
22
+ * Checkbox row status
23
+ */
24
+ checked?: boolean;
25
+ prevRowExpanded: boolean;
26
+ expandId?: string;
27
+ id?: string;
28
+ cols: number;
29
+ checkedChange: EventEmitter<{
30
+ name: string;
31
+ value?: string;
32
+ checked: boolean;
33
+ }>;
34
+ /**
35
+ * Called from outside (From expandable row)
36
+ */
37
+ setExpandRelation(id?: string, expanded?: boolean): Promise<boolean>;
38
+ /**
39
+ * Called from outside (From expandable row)
40
+ * to change then expand or collapse
41
+ */
42
+ toggleExpand(id?: string, expanded?: boolean): Promise<void>;
43
+ /**
44
+ * Watch for expandable
45
+ * When it's false needs to remove unnecessary properties
46
+ */
47
+ setExpandableRelationHandle(): Promise<any>;
48
+ /**
49
+ * When user press on the expand button
50
+ */
51
+ private changeExpandHandle;
52
+ /**
53
+ * Highlight the expanded row on hover
54
+ */
55
+ private hoverHandle;
56
+ private checkboxChange;
57
+ componentWillLoad(): Promise<void>;
58
+ render(): any;
59
+ }
@@ -0,0 +1,40 @@
1
+ import { EventEmitter } from '../../stencil-public-runtime';
2
+ import { TABLE_COLOR_SCHEMA, TABLE_SIZE } from './defs';
3
+ export declare class XvTable {
4
+ el: HTMLElement;
5
+ /**
6
+ * Table caption description
7
+ */
8
+ description: string;
9
+ /**
10
+ * Set current color schema type of enum TABLE_COLOR_SCHEMA
11
+ * Possible options 'zebra'
12
+ */
13
+ colorSchema: TABLE_COLOR_SCHEMA;
14
+ /**
15
+ * If table is expandable fields
16
+ */
17
+ expandable: boolean;
18
+ /**
19
+ * Table size
20
+ * enum TABLE_SIZE
21
+ */
22
+ size: TABLE_SIZE;
23
+ /**
24
+ * Add checkbox selection to the table
25
+ */
26
+ selectable: boolean;
27
+ selectedRows: Map<string, {
28
+ name: string;
29
+ value?: string;
30
+ }>;
31
+ changeSelection: EventEmitter<{
32
+ name: string;
33
+ value?: any;
34
+ }[]>;
35
+ setRowPropsHandler(): void;
36
+ private handleCheckedChange;
37
+ render(): any;
38
+ componentWillLoad(): void;
39
+ disconnectedCallback(): void;
40
+ }