wcs-core 2.5.4 → 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +28 -0
- package/README.md +1 -1
- package/dist/cjs/component-fc28ed16.js +1074 -0
- package/dist/cjs/helpers-d9aaa8c4.js +81 -0
- package/dist/cjs/{index-e05c3e1f.js → index-3cb9d725.js} +165 -87
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/{esm/wcs-action-bar_47.entry.js → cjs/lodash-776d6f03.js} +12499 -22628
- package/dist/cjs/select-arrow-76ccf86d.js +36 -0
- package/dist/cjs/wcs-action-bar.cjs.entry.js +24 -0
- package/dist/cjs/wcs-app.cjs.entry.js +2 -2
- package/dist/cjs/wcs-badge.cjs.entry.js +27 -0
- package/dist/cjs/wcs-button.cjs.entry.js +86 -0
- package/dist/cjs/wcs-card-body.cjs.entry.js +19 -0
- package/dist/cjs/wcs-card.cjs.entry.js +20 -0
- package/dist/cjs/wcs-checkbox.cjs.entry.js +43 -0
- package/dist/cjs/wcs-com-nav-category.cjs.entry.js +63 -0
- package/dist/cjs/wcs-com-nav-submenu.cjs.entry.js +69 -0
- package/dist/cjs/wcs-com-nav.cjs.entry.js +19 -0
- package/dist/cjs/wcs-divider.cjs.entry.js +19 -0
- package/dist/cjs/wcs-dropdown-item.cjs.entry.js +23 -0
- package/dist/cjs/wcs-dropdown.cjs.entry.js +57 -0
- package/dist/cjs/wcs-editable-field.cjs.entry.js +225 -0
- package/dist/cjs/wcs-error_2.cjs.entry.js +137 -0
- package/dist/cjs/wcs-field-content.cjs.entry.js +16 -0
- package/dist/cjs/wcs-field-label.cjs.entry.js +16 -0
- package/dist/cjs/wcs-field.cjs.entry.js +19 -0
- package/dist/cjs/wcs-footer.cjs.entry.js +19 -0
- package/dist/cjs/wcs-galactic-menu.cjs.entry.js +1785 -0
- package/dist/cjs/wcs-galactic.cjs.entry.js +41 -0
- package/dist/cjs/wcs-grid-column.cjs.entry.js +73 -0
- package/dist/cjs/wcs-grid-custom-cell.cjs.entry.js +16 -0
- package/dist/cjs/wcs-grid-pagination.cjs.entry.js +4 -4
- package/dist/cjs/wcs-grid.cjs.entry.js +309 -0
- package/dist/cjs/wcs-header.cjs.entry.js +25 -0
- package/dist/cjs/wcs-hint.cjs.entry.js +20 -0
- package/dist/cjs/wcs-horizontal-stepper.cjs.entry.js +114 -0
- package/dist/cjs/wcs-icon.cjs.entry.js +2 -2
- package/dist/cjs/wcs-input.cjs.entry.js +228 -0
- package/dist/cjs/wcs-label.cjs.entry.js +20 -0
- package/dist/cjs/wcs-list-item-properties.cjs.entry.js +19 -0
- package/dist/cjs/wcs-list-item-property.cjs.entry.js +19 -0
- package/dist/cjs/wcs-list-item.cjs.entry.js +23 -0
- package/dist/cjs/wcs-mat-icon.cjs.entry.js +73 -0
- package/dist/cjs/wcs-modal.cjs.entry.js +45 -0
- package/dist/cjs/wcs-nav-item.cjs.entry.js +23 -0
- package/dist/cjs/wcs-nav.cjs.entry.js +19 -0
- package/dist/cjs/wcs-progress-bar.cjs.entry.js +47 -0
- package/dist/cjs/wcs-progress-radial.cjs.entry.js +30 -0
- package/dist/cjs/wcs-radio-group.cjs.entry.js +65 -0
- package/dist/cjs/wcs-radio.cjs.entry.js +49 -0
- package/dist/cjs/wcs-select_2.cjs.entry.js +4916 -0
- package/dist/cjs/wcs-spinner.cjs.entry.js +21 -0
- package/dist/cjs/wcs-switch.cjs.entry.js +34 -0
- package/dist/cjs/wcs-tab.cjs.entry.js +20 -0
- package/dist/cjs/wcs-tabs.cjs.entry.js +159 -0
- package/dist/cjs/wcs-textarea.cjs.entry.js +224 -0
- package/dist/cjs/wcs-tooltip.cjs.entry.js +129 -0
- package/dist/cjs/wcs.cjs.js +3 -3
- package/dist/collection/collection-manifest.json +3 -2
- package/dist/collection/components/button/button.css +79 -75
- package/dist/collection/components/button/button.js +23 -11
- package/dist/collection/components/com-nav/com-nav.css +1 -2
- package/dist/collection/components/com-nav-category/com-nav-category.css +5 -6
- package/dist/collection/components/com-nav-category/com-nav-category.js +31 -1
- package/dist/collection/components/com-nav-submenu/com-nav-submenu.css +1 -2
- package/dist/collection/components/com-nav-submenu/com-nav-submenu.js +21 -1
- package/dist/collection/components/footer/footer.css +1 -1
- package/dist/collection/components/grid/grid.js +47 -8
- package/dist/collection/components/grid-column/grid-column.css +5 -0
- package/dist/collection/components/grid-column/grid-column.js +62 -2
- package/dist/collection/components/grid-custom-cell/grid-custom-cell.js +45 -0
- package/dist/collection/components/grid-pagination/grid-pagination.js +4 -4
- package/dist/collection/components/header/header.css +1 -1
- package/dist/collection/components/input/input.js +2 -2
- package/dist/collection/components/select/select.css +81 -77
- package/dist/collection/components/select/select.js +2 -2
- package/dist/collection/components/select-option/select-option.css +79 -75
- package/dist/collection/components/select-option/select-option.js +6 -7
- package/dist/collection/components/tab/tab.js +4 -4
- package/dist/collection/components/tabs/tabs.js +1 -1
- package/dist/collection/components/textarea/textarea.js +2 -2
- package/dist/collection/components/tooltip/tooltip.js +2 -2
- package/dist/esm/component-6b4d470f.js +1072 -0
- package/dist/esm/helpers-50436c51.js +73 -0
- package/dist/esm/{index-c619b1fa.js → index-b982604a.js} +165 -88
- package/dist/esm/loader.js +3 -3
- package/dist/{cjs/wcs-action-bar_47.cjs.entry.js → esm/lodash-d6d9d079.js} +12610 -22791
- package/dist/esm/select-arrow-73ac4016.js +34 -0
- package/dist/esm/wcs-action-bar.entry.js +20 -0
- package/dist/esm/wcs-app.entry.js +2 -2
- package/dist/esm/wcs-badge.entry.js +23 -0
- package/dist/esm/wcs-button.entry.js +82 -0
- package/dist/esm/wcs-card-body.entry.js +15 -0
- package/dist/esm/wcs-card.entry.js +16 -0
- package/dist/esm/wcs-checkbox.entry.js +39 -0
- package/dist/esm/wcs-com-nav-category.entry.js +59 -0
- package/dist/esm/wcs-com-nav-submenu.entry.js +65 -0
- package/dist/esm/wcs-com-nav.entry.js +15 -0
- package/dist/esm/wcs-divider.entry.js +15 -0
- package/dist/esm/wcs-dropdown-item.entry.js +19 -0
- package/dist/esm/wcs-dropdown.entry.js +53 -0
- package/dist/esm/wcs-editable-field.entry.js +221 -0
- package/dist/esm/wcs-error_2.entry.js +132 -0
- package/dist/esm/wcs-field-content.entry.js +12 -0
- package/dist/esm/wcs-field-label.entry.js +12 -0
- package/dist/esm/wcs-field.entry.js +15 -0
- package/dist/esm/wcs-footer.entry.js +15 -0
- package/dist/esm/wcs-galactic-menu.entry.js +1781 -0
- package/dist/esm/wcs-galactic.entry.js +37 -0
- package/dist/esm/wcs-grid-column.entry.js +69 -0
- package/dist/esm/wcs-grid-custom-cell.entry.js +12 -0
- package/dist/esm/wcs-grid-pagination.entry.js +4 -4
- package/dist/esm/wcs-grid.entry.js +305 -0
- package/dist/esm/wcs-header.entry.js +21 -0
- package/dist/esm/wcs-hint.entry.js +16 -0
- package/dist/esm/wcs-horizontal-stepper.entry.js +110 -0
- package/dist/esm/wcs-icon.entry.js +2 -2
- package/dist/esm/wcs-input.entry.js +224 -0
- package/dist/esm/wcs-label.entry.js +16 -0
- package/dist/esm/wcs-list-item-properties.entry.js +15 -0
- package/dist/esm/wcs-list-item-property.entry.js +15 -0
- package/dist/esm/wcs-list-item.entry.js +19 -0
- package/dist/esm/wcs-mat-icon.entry.js +69 -0
- package/dist/esm/wcs-modal.entry.js +41 -0
- package/dist/esm/wcs-nav-item.entry.js +19 -0
- package/dist/esm/wcs-nav.entry.js +15 -0
- package/dist/esm/wcs-progress-bar.entry.js +43 -0
- package/dist/esm/wcs-progress-radial.entry.js +26 -0
- package/dist/esm/wcs-radio-group.entry.js +61 -0
- package/dist/esm/wcs-radio.entry.js +45 -0
- package/dist/esm/wcs-select_2.entry.js +4911 -0
- package/dist/esm/wcs-spinner.entry.js +17 -0
- package/dist/esm/wcs-switch.entry.js +30 -0
- package/dist/esm/wcs-tab.entry.js +16 -0
- package/dist/esm/wcs-tabs.entry.js +155 -0
- package/dist/esm/wcs-textarea.entry.js +220 -0
- package/dist/esm/wcs-tooltip.entry.js +125 -0
- package/dist/esm/wcs.js +3 -3
- package/dist/types/components/button/button.d.ts +7 -3
- package/dist/types/components/com-nav-category/com-nav-category.d.ts +7 -0
- package/dist/types/components/com-nav-submenu/com-nav-submenu.d.ts +7 -0
- package/dist/types/components/grid/grid.d.ts +7 -0
- package/dist/types/components/grid-column/grid-column.d.ts +4 -0
- package/dist/types/components/grid-custom-cell/grid-custom-cell.d.ts +12 -0
- package/dist/types/components/select-option/select-option.d.ts +2 -0
- package/dist/types/components.d.ts +43 -0
- package/dist/types/stencil-public-runtime.d.ts +183 -182
- package/dist/wcs/p-03b2e238.entry.js +1 -0
- package/dist/wcs/p-0fbe574e.entry.js +1 -0
- package/dist/wcs/p-15008e35.entry.js +1 -0
- package/dist/wcs/p-16dfbae8.js +127 -0
- package/dist/wcs/p-17c6db7f.entry.js +1 -0
- package/dist/wcs/p-1dce7e63.entry.js +1 -0
- package/dist/wcs/p-1f5aed36.entry.js +1 -0
- package/dist/wcs/p-214236db.entry.js +1 -0
- package/dist/wcs/p-26b5c0a3.entry.js +1 -0
- package/dist/wcs/p-2e6265dc.entry.js +1 -0
- package/dist/wcs/p-356a8e3b.entry.js +1 -0
- package/dist/wcs/p-3d10b02a.entry.js +15 -0
- package/dist/wcs/p-4338f140.entry.js +1 -0
- package/dist/wcs/p-474d6601.entry.js +1 -0
- package/dist/wcs/p-55fdc284.entry.js +1 -0
- package/dist/wcs/p-5b35b232.entry.js +1 -0
- package/dist/wcs/p-600a9cc0.entry.js +1 -0
- package/dist/wcs/p-60b51967.entry.js +1 -0
- package/dist/wcs/p-62f7ab6d.entry.js +1 -0
- package/dist/wcs/p-64523291.entry.js +1 -0
- package/dist/wcs/p-65c5ccc5.entry.js +1 -0
- package/dist/wcs/p-688fea65.entry.js +1 -0
- package/dist/wcs/p-716d5921.entry.js +1 -0
- package/dist/wcs/p-7219c04b.js +1 -0
- package/dist/wcs/p-8137f075.entry.js +1 -0
- package/dist/wcs/p-83f1ad32.js +1 -0
- package/dist/wcs/p-8864a491.entry.js +1 -0
- package/dist/wcs/p-8f0f9868.entry.js +1 -0
- package/dist/wcs/p-91a2de07.entry.js +1 -0
- package/dist/wcs/p-94a31f64.entry.js +1 -0
- package/dist/wcs/p-979dfd78.entry.js +1 -0
- package/dist/wcs/p-9ba52bc4.entry.js +1 -0
- package/dist/wcs/p-a1ee1551.entry.js +1 -0
- package/dist/wcs/p-a5a1b27c.entry.js +1 -0
- package/dist/wcs/p-adef7aaf.js +1 -0
- package/dist/wcs/p-af1a5e52.entry.js +1 -0
- package/dist/wcs/p-b7184d59.entry.js +1 -0
- package/dist/wcs/p-bef44630.entry.js +1 -0
- package/dist/wcs/p-d59b4495.entry.js +1 -0
- package/dist/wcs/p-db68379f.entry.js +1 -0
- package/dist/wcs/p-dbbc3f58.entry.js +1 -0
- package/dist/wcs/p-dc817204.entry.js +1 -0
- package/dist/wcs/p-dd300dea.entry.js +1 -0
- package/dist/wcs/p-e0163de8.entry.js +1 -0
- package/dist/wcs/p-e4236d32.entry.js +1 -0
- package/dist/wcs/p-e43358e4.entry.js +1 -0
- package/dist/wcs/p-e486647c.entry.js +1 -0
- package/dist/wcs/p-e9ce507c.entry.js +1 -0
- package/dist/wcs/p-ed6e8541.entry.js +1 -0
- package/dist/wcs/p-f46e6c3c.js +1 -0
- package/dist/wcs/p-f9944bde.entry.js +1 -0
- package/dist/wcs/p-fa173947.entry.js +1 -0
- package/dist/wcs/p-fb1577b5.entry.js +1 -0
- package/dist/wcs/p-febe9ccc.entry.js +1 -0
- package/dist/wcs/wcs.esm.js +1 -1
- package/loader/index.d.ts +0 -1
- package/package.json +22 -20
- package/dist/wcs/p-16dca526.entry.js +0 -1
- package/dist/wcs/p-4f228fcb.entry.js +0 -134
- package/dist/wcs/p-66520e5a.entry.js +0 -1
- package/dist/wcs/p-d31287c6.entry.js +0 -1
- package/dist/wcs/p-f73f235b.js +0 -1
- package/schematics/.gitignore +0 -18
- package/schematics/.npmignore +0 -4
- package/schematics/collection.json +0 -9
- package/schematics/src/ng-add/files/fonts/avenir-black.woff +0 -0
- package/schematics/src/ng-add/files/fonts/avenir-book.woff +0 -0
- package/schematics/src/ng-add/files/fonts/avenir-lighter.woff +0 -0
- package/schematics/src/ng-add/files/fonts/avenir-medium.woff +0 -0
- package/schematics/src/ng-add/files/sncf-logo.png +0 -0
- package/schematics/src/ng-add/index.d.ts +0 -3
- package/schematics/src/ng-add/index.js +0 -119
- package/schematics/src/ng-add/index.js.map +0 -1
- package/schematics/src/ng-add/schema.json +0 -5
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
import { Component, Event, h, Host, Prop, Element } from '@stencil/core';
|
|
1
|
+
import { Component, Event, h, Host, Prop, Element, Watch } from '@stencil/core';
|
|
2
2
|
import { GridSortArrow } from './grid-sort-arrow';
|
|
3
3
|
export class GridColumn {
|
|
4
4
|
constructor() {
|
|
5
5
|
this.sort = false;
|
|
6
6
|
this.sortOrder = 'none';
|
|
7
|
+
this.customCells = false;
|
|
8
|
+
this.hidden = false;
|
|
9
|
+
}
|
|
10
|
+
parseMyObjectProp(newValue) {
|
|
11
|
+
this.wcsHiddenChange.emit(newValue);
|
|
7
12
|
}
|
|
8
13
|
emitSortConfig() {
|
|
9
14
|
if (!this.sort)
|
|
@@ -15,7 +20,7 @@ export class GridColumn {
|
|
|
15
20
|
});
|
|
16
21
|
}
|
|
17
22
|
render() {
|
|
18
|
-
return (h(Host, { onClick: this.onSortClick.bind(this), slot: "grid-column"
|
|
23
|
+
return (h(Host, { onClick: this.onSortClick.bind(this), slot: "grid-column" },
|
|
19
24
|
h("th", { style: { width: this.width }, class: this.sort ? 'pointer' : '' },
|
|
20
25
|
h("div", { class: "grid-column-th-content" },
|
|
21
26
|
h("span", null, this.name),
|
|
@@ -165,6 +170,42 @@ export class GridColumn {
|
|
|
165
170
|
},
|
|
166
171
|
"attribute": "width",
|
|
167
172
|
"reflect": false
|
|
173
|
+
},
|
|
174
|
+
"customCells": {
|
|
175
|
+
"type": "boolean",
|
|
176
|
+
"mutable": false,
|
|
177
|
+
"complexType": {
|
|
178
|
+
"original": "boolean",
|
|
179
|
+
"resolved": "boolean",
|
|
180
|
+
"references": {}
|
|
181
|
+
},
|
|
182
|
+
"required": false,
|
|
183
|
+
"optional": false,
|
|
184
|
+
"docs": {
|
|
185
|
+
"tags": [],
|
|
186
|
+
"text": ""
|
|
187
|
+
},
|
|
188
|
+
"attribute": "custom-cells",
|
|
189
|
+
"reflect": false,
|
|
190
|
+
"defaultValue": "false"
|
|
191
|
+
},
|
|
192
|
+
"hidden": {
|
|
193
|
+
"type": "boolean",
|
|
194
|
+
"mutable": false,
|
|
195
|
+
"complexType": {
|
|
196
|
+
"original": "boolean",
|
|
197
|
+
"resolved": "boolean",
|
|
198
|
+
"references": {}
|
|
199
|
+
},
|
|
200
|
+
"required": false,
|
|
201
|
+
"optional": false,
|
|
202
|
+
"docs": {
|
|
203
|
+
"tags": [],
|
|
204
|
+
"text": ""
|
|
205
|
+
},
|
|
206
|
+
"attribute": "hidden",
|
|
207
|
+
"reflect": false,
|
|
208
|
+
"defaultValue": "false"
|
|
168
209
|
}
|
|
169
210
|
}; }
|
|
170
211
|
static get events() { return [{
|
|
@@ -187,6 +228,25 @@ export class GridColumn {
|
|
|
187
228
|
}
|
|
188
229
|
}
|
|
189
230
|
}
|
|
231
|
+
}, {
|
|
232
|
+
"method": "wcsHiddenChange",
|
|
233
|
+
"name": "wcsHiddenChange",
|
|
234
|
+
"bubbles": true,
|
|
235
|
+
"cancelable": true,
|
|
236
|
+
"composed": true,
|
|
237
|
+
"docs": {
|
|
238
|
+
"tags": [],
|
|
239
|
+
"text": ""
|
|
240
|
+
},
|
|
241
|
+
"complexType": {
|
|
242
|
+
"original": "boolean",
|
|
243
|
+
"resolved": "boolean",
|
|
244
|
+
"references": {}
|
|
245
|
+
}
|
|
190
246
|
}]; }
|
|
191
247
|
static get elementRef() { return "el"; }
|
|
248
|
+
static get watchers() { return [{
|
|
249
|
+
"propName": "hidden",
|
|
250
|
+
"methodName": "parseMyObjectProp"
|
|
251
|
+
}]; }
|
|
192
252
|
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Component, h, Host, Prop } from '@stencil/core';
|
|
2
|
+
export class GridCustomCell {
|
|
3
|
+
render() {
|
|
4
|
+
return (h(Host, { slot: this.columnId + '-' + this.rowId },
|
|
5
|
+
h("slot", null)));
|
|
6
|
+
}
|
|
7
|
+
static get is() { return "wcs-grid-custom-cell"; }
|
|
8
|
+
static get encapsulation() { return "shadow"; }
|
|
9
|
+
static get properties() { return {
|
|
10
|
+
"columnId": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"mutable": false,
|
|
13
|
+
"complexType": {
|
|
14
|
+
"original": "string",
|
|
15
|
+
"resolved": "string",
|
|
16
|
+
"references": {}
|
|
17
|
+
},
|
|
18
|
+
"required": false,
|
|
19
|
+
"optional": false,
|
|
20
|
+
"docs": {
|
|
21
|
+
"tags": [],
|
|
22
|
+
"text": "ID of the column for which to render the cell"
|
|
23
|
+
},
|
|
24
|
+
"attribute": "column-id",
|
|
25
|
+
"reflect": false
|
|
26
|
+
},
|
|
27
|
+
"rowId": {
|
|
28
|
+
"type": "any",
|
|
29
|
+
"mutable": false,
|
|
30
|
+
"complexType": {
|
|
31
|
+
"original": "any",
|
|
32
|
+
"resolved": "any",
|
|
33
|
+
"references": {}
|
|
34
|
+
},
|
|
35
|
+
"required": false,
|
|
36
|
+
"optional": false,
|
|
37
|
+
"docs": {
|
|
38
|
+
"tags": [],
|
|
39
|
+
"text": "Key value of the object rendered for the cell's row"
|
|
40
|
+
},
|
|
41
|
+
"attribute": "row-id",
|
|
42
|
+
"reflect": false
|
|
43
|
+
}
|
|
44
|
+
}; }
|
|
45
|
+
}
|
|
@@ -3,10 +3,10 @@ import { GridPaginationArrow } from './grid-pagination-arrow';
|
|
|
3
3
|
export class GridPagination {
|
|
4
4
|
constructor() {
|
|
5
5
|
this.availablePageSizes = [10, 20, 50];
|
|
6
|
-
this.currentPage =
|
|
6
|
+
this.currentPage = 0;
|
|
7
7
|
this.pageSize = this.availablePageSizes[0];
|
|
8
8
|
this.itemsCount = 0;
|
|
9
|
-
this.pageCount =
|
|
9
|
+
this.pageCount = 1;
|
|
10
10
|
}
|
|
11
11
|
lastPage() {
|
|
12
12
|
this.currentPage = this.pageCount - 1;
|
|
@@ -116,7 +116,7 @@ export class GridPagination {
|
|
|
116
116
|
},
|
|
117
117
|
"attribute": "current-page",
|
|
118
118
|
"reflect": false,
|
|
119
|
-
"defaultValue": "
|
|
119
|
+
"defaultValue": "0"
|
|
120
120
|
},
|
|
121
121
|
"pageSize": {
|
|
122
122
|
"type": "number",
|
|
@@ -170,7 +170,7 @@ export class GridPagination {
|
|
|
170
170
|
},
|
|
171
171
|
"attribute": "page-count",
|
|
172
172
|
"reflect": false,
|
|
173
|
-
"defaultValue": "
|
|
173
|
+
"defaultValue": "1"
|
|
174
174
|
}
|
|
175
175
|
}; }
|
|
176
176
|
static get events() { return [{
|
|
@@ -230,8 +230,8 @@ export class Input {
|
|
|
230
230
|
"optional": false,
|
|
231
231
|
"docs": {
|
|
232
232
|
"tags": [{
|
|
233
|
-
"
|
|
234
|
-
"
|
|
233
|
+
"name": "internal",
|
|
234
|
+
"text": undefined
|
|
235
235
|
}],
|
|
236
236
|
"text": "This is required for a WebKit bug which requires us to\nblur and focus an input to properly focus the input in\nan item with delegatesFocus. It will no longer be needed\nwith iOS 14."
|
|
237
237
|
},
|
|
@@ -25,14 +25,6 @@
|
|
|
25
25
|
opacity: 0;
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
-
.mdc-ripple-surface--test-edge-var-bug {
|
|
29
|
-
--mdc-ripple-surface-test-edge-var: 1px solid #000;
|
|
30
|
-
visibility: hidden;
|
|
31
|
-
}
|
|
32
|
-
.mdc-ripple-surface--test-edge-var-bug::before {
|
|
33
|
-
border: var(--mdc-ripple-surface-test-edge-var);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
28
|
.mdc-ripple-surface {
|
|
37
29
|
--mdc-ripple-fg-size: 0;
|
|
38
30
|
--mdc-ripple-left: 0;
|
|
@@ -46,6 +38,7 @@
|
|
|
46
38
|
outline: none;
|
|
47
39
|
overflow: hidden;
|
|
48
40
|
}
|
|
41
|
+
|
|
49
42
|
.mdc-ripple-surface::before, .mdc-ripple-surface::after {
|
|
50
43
|
position: absolute;
|
|
51
44
|
border-radius: 50%;
|
|
@@ -53,135 +46,128 @@
|
|
|
53
46
|
pointer-events: none;
|
|
54
47
|
content: "";
|
|
55
48
|
}
|
|
49
|
+
|
|
56
50
|
.mdc-ripple-surface::before {
|
|
57
51
|
transition: opacity 15ms linear, background-color 15ms linear;
|
|
58
52
|
z-index: 1;
|
|
53
|
+
/* @alternate */
|
|
54
|
+
z-index: var(--mdc-ripple-z-index, 1);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.mdc-ripple-surface::after {
|
|
58
|
+
z-index: 0;
|
|
59
|
+
/* @alternate */
|
|
60
|
+
z-index: var(--mdc-ripple-z-index, 0);
|
|
59
61
|
}
|
|
62
|
+
|
|
60
63
|
.mdc-ripple-surface.mdc-ripple-upgraded::before {
|
|
61
64
|
transform: scale(var(--mdc-ripple-fg-scale, 1));
|
|
62
65
|
}
|
|
66
|
+
|
|
63
67
|
.mdc-ripple-surface.mdc-ripple-upgraded::after {
|
|
64
68
|
top: 0;
|
|
65
69
|
/* @noflip */
|
|
70
|
+
/*rtl:ignore*/
|
|
66
71
|
left: 0;
|
|
67
72
|
transform: scale(0);
|
|
68
73
|
transform-origin: center center;
|
|
69
74
|
}
|
|
75
|
+
|
|
70
76
|
.mdc-ripple-surface.mdc-ripple-upgraded--unbounded::after {
|
|
71
77
|
top: var(--mdc-ripple-top, 0);
|
|
72
78
|
/* @noflip */
|
|
79
|
+
/*rtl:ignore*/
|
|
73
80
|
left: var(--mdc-ripple-left, 0);
|
|
74
81
|
}
|
|
82
|
+
|
|
75
83
|
.mdc-ripple-surface.mdc-ripple-upgraded--foreground-activation::after {
|
|
76
84
|
animation: mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards;
|
|
77
85
|
}
|
|
86
|
+
|
|
78
87
|
.mdc-ripple-surface.mdc-ripple-upgraded--foreground-deactivation::after {
|
|
79
88
|
animation: mdc-ripple-fg-opacity-out 150ms;
|
|
80
89
|
transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));
|
|
81
90
|
}
|
|
82
|
-
|
|
83
|
-
background-color: #000;
|
|
84
|
-
}
|
|
85
|
-
.mdc-ripple-surface:hover::before {
|
|
86
|
-
opacity: 0.04;
|
|
87
|
-
}
|
|
88
|
-
.mdc-ripple-surface:not(.mdc-ripple-upgraded):focus::before, .mdc-ripple-surface.mdc-ripple-upgraded--background-focused::before {
|
|
89
|
-
transition-duration: 75ms;
|
|
90
|
-
opacity: 0.12;
|
|
91
|
-
}
|
|
92
|
-
.mdc-ripple-surface:not(.mdc-ripple-upgraded)::after {
|
|
93
|
-
transition: opacity 150ms linear;
|
|
94
|
-
}
|
|
95
|
-
.mdc-ripple-surface:not(.mdc-ripple-upgraded):active::after {
|
|
96
|
-
transition-duration: 75ms;
|
|
97
|
-
opacity: 0.12;
|
|
98
|
-
}
|
|
99
|
-
.mdc-ripple-surface.mdc-ripple-upgraded {
|
|
100
|
-
--mdc-ripple-fg-opacity: 0.12;
|
|
101
|
-
}
|
|
91
|
+
|
|
102
92
|
.mdc-ripple-surface::before, .mdc-ripple-surface::after {
|
|
103
93
|
top: calc(50% - 100%);
|
|
104
94
|
/* @noflip */
|
|
95
|
+
/*rtl:ignore*/
|
|
105
96
|
left: calc(50% - 100%);
|
|
106
97
|
width: 200%;
|
|
107
98
|
height: 200%;
|
|
108
99
|
}
|
|
100
|
+
|
|
109
101
|
.mdc-ripple-surface.mdc-ripple-upgraded::after {
|
|
110
102
|
width: var(--mdc-ripple-fg-size, 100%);
|
|
111
103
|
height: var(--mdc-ripple-fg-size, 100%);
|
|
112
104
|
}
|
|
113
|
-
|
|
105
|
+
|
|
106
|
+
.mdc-ripple-surface[data-mdc-ripple-is-unbounded],
|
|
107
|
+
.mdc-ripple-upgraded--unbounded {
|
|
114
108
|
overflow: visible;
|
|
115
109
|
}
|
|
116
|
-
|
|
110
|
+
|
|
111
|
+
.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::before, .mdc-ripple-surface[data-mdc-ripple-is-unbounded]::after,
|
|
112
|
+
.mdc-ripple-upgraded--unbounded::before,
|
|
113
|
+
.mdc-ripple-upgraded--unbounded::after {
|
|
117
114
|
top: calc(50% - 50%);
|
|
118
115
|
/* @noflip */
|
|
116
|
+
/*rtl:ignore*/
|
|
119
117
|
left: calc(50% - 50%);
|
|
120
118
|
width: 100%;
|
|
121
119
|
height: 100%;
|
|
122
120
|
}
|
|
123
|
-
|
|
121
|
+
|
|
122
|
+
.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::before, .mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,
|
|
123
|
+
.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::before,
|
|
124
|
+
.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after {
|
|
124
125
|
top: var(--mdc-ripple-top, calc(50% - 50%));
|
|
125
126
|
/* @noflip */
|
|
127
|
+
/*rtl:ignore*/
|
|
126
128
|
left: var(--mdc-ripple-left, calc(50% - 50%));
|
|
127
129
|
width: var(--mdc-ripple-fg-size, 100%);
|
|
128
130
|
height: var(--mdc-ripple-fg-size, 100%);
|
|
129
131
|
}
|
|
130
|
-
|
|
132
|
+
|
|
133
|
+
.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,
|
|
134
|
+
.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after {
|
|
131
135
|
width: var(--mdc-ripple-fg-size, 100%);
|
|
132
136
|
height: var(--mdc-ripple-fg-size, 100%);
|
|
133
137
|
}
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
@
|
|
138
|
-
|
|
139
|
-
/* @alternate */
|
|
140
|
-
background-color: var(--mdc-theme-primary, #6200ee);
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
.mdc-ripple-surface--primary:hover::before {
|
|
144
|
-
opacity: 0.04;
|
|
145
|
-
}
|
|
146
|
-
.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded):focus::before, .mdc-ripple-surface--primary.mdc-ripple-upgraded--background-focused::before {
|
|
147
|
-
transition-duration: 75ms;
|
|
148
|
-
opacity: 0.12;
|
|
149
|
-
}
|
|
150
|
-
.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded)::after {
|
|
151
|
-
transition: opacity 150ms linear;
|
|
152
|
-
}
|
|
153
|
-
.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded):active::after {
|
|
154
|
-
transition-duration: 75ms;
|
|
155
|
-
opacity: 0.12;
|
|
156
|
-
}
|
|
157
|
-
.mdc-ripple-surface--primary.mdc-ripple-upgraded {
|
|
158
|
-
--mdc-ripple-fg-opacity: 0.12;
|
|
159
|
-
}
|
|
160
|
-
.mdc-ripple-surface--accent::before, .mdc-ripple-surface--accent::after {
|
|
161
|
-
background-color: #018786;
|
|
162
|
-
}
|
|
163
|
-
@supports not (-ms-ime-align: auto) {
|
|
164
|
-
.mdc-ripple-surface--accent::before, .mdc-ripple-surface--accent::after {
|
|
165
|
-
/* @alternate */
|
|
166
|
-
background-color: var(--mdc-theme-secondary, #018786);
|
|
167
|
-
}
|
|
138
|
+
|
|
139
|
+
.mdc-ripple-surface::before, .mdc-ripple-surface::after {
|
|
140
|
+
background-color: #000;
|
|
141
|
+
/* @alternate */
|
|
142
|
+
background-color: var(--mdc-ripple-color, #000);
|
|
168
143
|
}
|
|
169
|
-
|
|
144
|
+
|
|
145
|
+
.mdc-ripple-surface:hover::before, .mdc-ripple-surface.mdc-ripple-surface--hover::before {
|
|
170
146
|
opacity: 0.04;
|
|
147
|
+
/* @alternate */
|
|
148
|
+
opacity: var(--mdc-ripple-hover-opacity, 0.04);
|
|
171
149
|
}
|
|
172
|
-
|
|
150
|
+
|
|
151
|
+
.mdc-ripple-surface.mdc-ripple-upgraded--background-focused::before, .mdc-ripple-surface:not(.mdc-ripple-upgraded):focus::before {
|
|
173
152
|
transition-duration: 75ms;
|
|
174
153
|
opacity: 0.12;
|
|
154
|
+
/* @alternate */
|
|
155
|
+
opacity: var(--mdc-ripple-focus-opacity, 0.12);
|
|
175
156
|
}
|
|
176
|
-
|
|
157
|
+
|
|
158
|
+
.mdc-ripple-surface:not(.mdc-ripple-upgraded)::after {
|
|
177
159
|
transition: opacity 150ms linear;
|
|
178
160
|
}
|
|
179
|
-
|
|
161
|
+
|
|
162
|
+
.mdc-ripple-surface:not(.mdc-ripple-upgraded):active::after {
|
|
180
163
|
transition-duration: 75ms;
|
|
181
164
|
opacity: 0.12;
|
|
165
|
+
/* @alternate */
|
|
166
|
+
opacity: var(--mdc-ripple-press-opacity, 0.12);
|
|
182
167
|
}
|
|
183
|
-
|
|
184
|
-
|
|
168
|
+
|
|
169
|
+
.mdc-ripple-surface.mdc-ripple-upgraded {
|
|
170
|
+
--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12);
|
|
185
171
|
}
|
|
186
172
|
|
|
187
173
|
:host {
|
|
@@ -292,6 +278,13 @@ label {
|
|
|
292
278
|
.wcs-select-control::before {
|
|
293
279
|
transition: opacity 15ms linear, background-color 15ms linear;
|
|
294
280
|
z-index: 1;
|
|
281
|
+
/* @alternate */
|
|
282
|
+
z-index: var(--mdc-ripple-z-index, 1);
|
|
283
|
+
}
|
|
284
|
+
.wcs-select-control::after {
|
|
285
|
+
z-index: 0;
|
|
286
|
+
/* @alternate */
|
|
287
|
+
z-index: var(--mdc-ripple-z-index, 0);
|
|
295
288
|
}
|
|
296
289
|
.wcs-select-control.mdc-ripple-upgraded::before {
|
|
297
290
|
transform: scale(var(--mdc-ripple-fg-scale, 1));
|
|
@@ -299,6 +292,7 @@ label {
|
|
|
299
292
|
.wcs-select-control.mdc-ripple-upgraded::after {
|
|
300
293
|
top: 0;
|
|
301
294
|
/* @noflip */
|
|
295
|
+
/*rtl:ignore*/
|
|
302
296
|
left: 0;
|
|
303
297
|
transform: scale(0);
|
|
304
298
|
transform-origin: center center;
|
|
@@ -306,6 +300,7 @@ label {
|
|
|
306
300
|
.wcs-select-control.mdc-ripple-upgraded--unbounded::after {
|
|
307
301
|
top: var(--mdc-ripple-top, 0);
|
|
308
302
|
/* @noflip */
|
|
303
|
+
/*rtl:ignore*/
|
|
309
304
|
left: var(--mdc-ripple-left, 0);
|
|
310
305
|
}
|
|
311
306
|
.wcs-select-control.mdc-ripple-upgraded--foreground-activation::after {
|
|
@@ -318,6 +313,7 @@ label {
|
|
|
318
313
|
.wcs-select-control::before, .wcs-select-control::after {
|
|
319
314
|
top: calc(50% - 100%);
|
|
320
315
|
/* @noflip */
|
|
316
|
+
/*rtl:ignore*/
|
|
321
317
|
left: calc(50% - 100%);
|
|
322
318
|
width: 200%;
|
|
323
319
|
height: 200%;
|
|
@@ -328,13 +324,19 @@ label {
|
|
|
328
324
|
}
|
|
329
325
|
.wcs-select-control::before, .wcs-select-control::after {
|
|
330
326
|
background-color: #999;
|
|
327
|
+
/* @alternate */
|
|
328
|
+
background-color: var(--mdc-ripple-color, #999);
|
|
331
329
|
}
|
|
332
|
-
.wcs-select-control:hover::before {
|
|
330
|
+
.wcs-select-control:hover::before, .wcs-select-control.mdc-ripple-surface--hover::before {
|
|
333
331
|
opacity: 0.1;
|
|
332
|
+
/* @alternate */
|
|
333
|
+
opacity: var(--mdc-ripple-hover-opacity, 0.1);
|
|
334
334
|
}
|
|
335
|
-
.wcs-select-control
|
|
335
|
+
.wcs-select-control.mdc-ripple-upgraded--background-focused::before, .wcs-select-control:not(.mdc-ripple-upgraded):focus::before {
|
|
336
336
|
transition-duration: 75ms;
|
|
337
337
|
opacity: 0.2;
|
|
338
|
+
/* @alternate */
|
|
339
|
+
opacity: var(--mdc-ripple-focus-opacity, 0.2);
|
|
338
340
|
}
|
|
339
341
|
.wcs-select-control:not(.mdc-ripple-upgraded)::after {
|
|
340
342
|
transition: opacity 150ms linear;
|
|
@@ -342,9 +344,11 @@ label {
|
|
|
342
344
|
.wcs-select-control:not(.mdc-ripple-upgraded):active::after {
|
|
343
345
|
transition-duration: 75ms;
|
|
344
346
|
opacity: 0.3;
|
|
347
|
+
/* @alternate */
|
|
348
|
+
opacity: var(--mdc-ripple-press-opacity, 0.3);
|
|
345
349
|
}
|
|
346
350
|
.wcs-select-control.mdc-ripple-upgraded {
|
|
347
|
-
--mdc-ripple-fg-opacity: 0.3;
|
|
351
|
+
--mdc-ripple-fg-opacity: var(--mdc-ripple-press-opacity, 0.3);
|
|
348
352
|
}
|
|
349
353
|
|
|
350
354
|
.wcs-select-placeholder {
|
|
@@ -364,8 +368,8 @@ label {
|
|
|
364
368
|
border-radius: 0.75rem;
|
|
365
369
|
display: flex;
|
|
366
370
|
align-items: center;
|
|
367
|
-
margin: calc(var(--wcs-base-margin)/2);
|
|
368
|
-
padding: calc(
|
|
371
|
+
margin: calc(var(--wcs-base-margin) / 2);
|
|
372
|
+
padding: calc((var(--wcs-padding) - 8px) / 2) var(--wcs-padding);
|
|
369
373
|
overflow: initial;
|
|
370
374
|
}
|
|
371
375
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Component, Element, Event, h, Host, Listen, Method, Prop, State, Watch } from '@stencil/core';
|
|
2
2
|
import _ from 'lodash';
|
|
3
|
-
import * as MDCRipple from '@material/ripple';
|
|
4
3
|
import { interpret, Machine } from 'xstate';
|
|
5
4
|
import { SelectArrow } from './select-arrow';
|
|
6
5
|
import { isElement } from '../../utils/helpers';
|
|
7
6
|
import { SelectChips } from './select-chips';
|
|
7
|
+
import { MDCRipple } from '@material/ripple';
|
|
8
8
|
const SELECT_MACHINE_CONFIG = {
|
|
9
9
|
key: 'select',
|
|
10
10
|
initial: 'closed',
|
|
@@ -277,7 +277,7 @@ export class Select {
|
|
|
277
277
|
}
|
|
278
278
|
addRippleEffect() {
|
|
279
279
|
// TODO: wrap MDCRipple dependency so we can eventually write our own or at least decouple a bit.
|
|
280
|
-
const ripple = new MDCRipple
|
|
280
|
+
const ripple = new MDCRipple(this.controlEl);
|
|
281
281
|
ripple.unbounded = false;
|
|
282
282
|
}
|
|
283
283
|
get hasValue() {
|