q2-tecton-elements 1.55.2 → 1.55.4
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/dist/bundle-report.json +304 -318
- package/dist/cjs/{index-f69742cf.js → index-e0aba375.js} +1 -1
- package/dist/cjs/{index-f69742cf.js.map → index-e0aba375.js.map} +1 -1
- package/dist/cjs/q2-action-group.cjs.entry.js +1 -1
- package/dist/cjs/q2-action-sheet.cjs.entry.js +1 -1
- package/dist/cjs/q2-avatar.cjs.entry.js +1 -1
- package/dist/cjs/q2-badge_7.cjs.entry.js +1 -1
- package/dist/cjs/q2-calendar.cjs.entry.js +2 -2
- package/dist/cjs/q2-carousel-pane.cjs.entry.js +2 -2
- package/dist/cjs/q2-carousel.cjs.entry.js +1 -1
- package/dist/cjs/q2-chart-area.cjs.entry.js +1 -1
- package/dist/cjs/q2-chart-bar.cjs.entry.js +1 -1
- package/dist/cjs/q2-chart-donut.cjs.entry.js +1 -1
- package/dist/cjs/q2-checkbox-group.cjs.entry.js +2 -2
- package/dist/cjs/q2-checkbox-group.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/q2-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-currency.cjs.entry.js +1 -1
- package/dist/cjs/q2-data-table.cjs.entry.js +1 -1
- package/dist/cjs/q2-detail.cjs.entry.js +1 -1
- package/dist/cjs/q2-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/q2-editable-field.cjs.entry.js +1 -1
- package/dist/cjs/q2-example.cjs.entry.js +1 -1
- package/dist/cjs/q2-form.cjs.entry.js +2 -2
- package/dist/cjs/q2-form.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-formatted-text.cjs.entry.js +1 -1
- package/dist/cjs/q2-item_3.cjs.entry.js +2 -2
- package/dist/cjs/q2-legend.cjs.entry.js +1 -1
- package/dist/cjs/q2-loc.cjs.entry.js +0 -4
- package/dist/cjs/q2-loc.cjs.entry.js.map +1 -1
- package/dist/cjs/q2-message.cjs.entry.js +1 -1
- package/dist/cjs/q2-modal.cjs.entry.js +1 -1
- package/dist/cjs/q2-month-picker.cjs.entry.js +2 -2
- package/dist/cjs/q2-optgroup.cjs.entry.js +1 -1
- package/dist/cjs/q2-option-list_2.cjs.entry.js +2 -2
- package/dist/cjs/q2-pagination.cjs.entry.js +3 -3
- package/dist/cjs/q2-pill.cjs.entry.js +1 -1
- package/dist/cjs/q2-radio-group.cjs.entry.js +1 -1
- package/dist/cjs/q2-radio.cjs.entry.js +1 -1
- package/dist/cjs/q2-relative-time.cjs.entry.js +2 -2
- package/dist/cjs/q2-resize-observer.cjs.entry.js +1 -1
- package/dist/cjs/q2-section.cjs.entry.js +2 -2
- package/dist/cjs/q2-select.cjs.entry.js +2 -2
- package/dist/cjs/q2-stepper-pane.cjs.entry.js +1 -1
- package/dist/cjs/q2-stepper.cjs.entry.js +1 -1
- package/dist/cjs/q2-textarea.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +6 -6
- package/dist/collection/components/q2-action-group/q2-action-group.js +1 -1
- package/dist/collection/components/q2-action-sheet/q2-action-sheet.js +1 -1
- package/dist/collection/components/q2-avatar/q2-avatar.js +1 -1
- package/dist/collection/components/q2-calendar/q2-calendar.js +1 -1
- package/dist/collection/components/q2-calendar/q2-month-picker.js +2 -2
- package/dist/collection/components/q2-carousel/q2-carousel.js +1 -1
- package/dist/collection/components/q2-carousel-pane/q2-carousel-pane.js +2 -2
- package/dist/collection/components/q2-chart-area/q2-chart-area.js +1 -1
- package/dist/collection/components/q2-chart-bar/q2-chart-bar.js +1 -1
- package/dist/collection/components/q2-chart-donut/q2-chart-donut.js +1 -1
- package/dist/collection/components/q2-checkbox/q2-checkbox.css +1 -1
- package/dist/collection/components/q2-checkbox/q2-checkbox.js +1 -1
- package/dist/collection/components/q2-checkbox-group/q2-checkbox-group.css +0 -5
- package/dist/collection/components/q2-checkbox-group/q2-checkbox-group.js +1 -1
- package/dist/collection/components/q2-currency/q2-currency.js +1 -1
- package/dist/collection/components/q2-data-table/q2-data-table.js +8 -8
- package/dist/collection/components/q2-detail/q2-detail.js +1 -1
- package/dist/collection/components/q2-dropdown/q2-dropdown.js +1 -1
- package/dist/collection/components/q2-editable-field/q2-editable-field.js +1 -1
- package/dist/collection/components/q2-example/q2-example.js +1 -1
- package/dist/collection/components/q2-file-picker/q2-file-picker.js +5 -5
- package/dist/collection/components/q2-form/q2-form.css +0 -1
- package/dist/collection/components/q2-form/q2-form.js +1 -1
- package/dist/collection/components/q2-form/test/q2-form-test.e2e.js +24 -4
- package/dist/collection/components/q2-form/test/q2-form-test.e2e.js.map +1 -1
- package/dist/collection/components/q2-formatted-text/q2-formatted-text.js +1 -1
- package/dist/collection/components/q2-input/q2-input.js +2 -2
- package/dist/collection/components/q2-item/q2-item.js +1 -1
- package/dist/collection/components/q2-legend/q2-legend.js +1 -1
- package/dist/collection/components/q2-list/q2-list.js +1 -1
- package/dist/collection/components/q2-loc/q2-loc.js +0 -10
- package/dist/collection/components/q2-loc/q2-loc.js.map +1 -1
- package/dist/collection/components/q2-message/q2-message.js +1 -1
- package/dist/collection/components/q2-modal/q2-modal.js +1 -1
- package/dist/collection/components/q2-optgroup/q2-optgroup.js +1 -1
- package/dist/collection/components/q2-option-list/q2-option-list.js +7 -7
- package/dist/collection/components/q2-pagination/q2-pagination.js +3 -3
- package/dist/collection/components/q2-pill/q2-pill.js +1 -1
- package/dist/collection/components/q2-popover/q2-popover.js +1 -1
- package/dist/collection/components/q2-radio/q2-radio.js +1 -1
- package/dist/collection/components/q2-radio-group/q2-radio-group.js +1 -1
- package/dist/collection/components/q2-relative-time/q2-relative-time.js +1 -1
- package/dist/collection/components/q2-resize-observer/q2-resize-observer.js +1 -1
- package/dist/collection/components/q2-section/q2-section.js +2 -2
- package/dist/collection/components/q2-select/q2-select.js +2 -2
- package/dist/collection/components/q2-stepper/q2-stepper.js +1 -1
- package/dist/collection/components/q2-stepper-pane/q2-stepper-pane.js +3 -3
- package/dist/collection/components/q2-textarea/q2-textarea.js +1 -1
- package/dist/components/q2-action-group2.js +1 -1
- package/dist/components/q2-action-sheet.js +1 -1
- package/dist/components/q2-avatar2.js +1 -1
- package/dist/components/q2-calendar.js +1 -1
- package/dist/components/q2-carousel-pane.js +2 -2
- package/dist/components/q2-carousel.js +1 -1
- package/dist/components/q2-chart-area.js +1 -1
- package/dist/components/q2-chart-bar.js +1 -1
- package/dist/components/q2-chart-donut.js +1 -1
- package/dist/components/q2-checkbox-group.js +2 -2
- package/dist/components/q2-checkbox-group.js.map +1 -1
- package/dist/components/q2-checkbox2.js +2 -2
- package/dist/components/q2-checkbox2.js.map +1 -1
- package/dist/components/q2-currency.js +1 -1
- package/dist/components/q2-data-table.js +1 -1
- package/dist/components/q2-detail.js +1 -1
- package/dist/components/q2-dropdown.js +1 -1
- package/dist/components/q2-editable-field.js +1 -1
- package/dist/components/q2-example.js +1 -1
- package/dist/components/q2-form.js +2 -2
- package/dist/components/q2-form.js.map +1 -1
- package/dist/components/q2-formatted-text.js +1 -1
- package/dist/components/q2-input2.js +1 -1
- package/dist/components/q2-item2.js +1 -1
- package/dist/components/q2-legend2.js +1 -1
- package/dist/components/q2-list2.js +1 -1
- package/dist/components/q2-loc.js +0 -4
- package/dist/components/q2-loc.js.map +1 -1
- package/dist/components/q2-message2.js +1 -1
- package/dist/components/q2-modal.js +1 -1
- package/dist/components/q2-month-picker.js +2 -2
- package/dist/components/q2-optgroup2.js +1 -1
- package/dist/components/q2-option-list2.js +1 -1
- package/dist/components/q2-pagination.js +3 -3
- package/dist/components/q2-pill.js +1 -1
- package/dist/components/q2-popover2.js +1 -1
- package/dist/components/q2-radio-group.js +1 -1
- package/dist/components/q2-radio.js +1 -1
- package/dist/components/q2-relative-time.js +1 -1
- package/dist/components/q2-resize-observer2.js +1 -1
- package/dist/components/q2-section.js +2 -2
- package/dist/components/q2-select2.js +2 -2
- package/dist/components/q2-stepper-pane.js +1 -1
- package/dist/components/q2-stepper.js +1 -1
- package/dist/components/q2-textarea.js +1 -1
- package/dist/esm/{index-3184c760.js → index-3bb7a785.js} +1 -1
- package/dist/esm/{index-3184c760.js.map → index-3bb7a785.js.map} +1 -1
- package/dist/esm/q2-action-group.entry.js +1 -1
- package/dist/esm/q2-action-sheet.entry.js +1 -1
- package/dist/esm/q2-avatar.entry.js +1 -1
- package/dist/esm/q2-badge_7.entry.js +1 -1
- package/dist/esm/q2-calendar.entry.js +2 -2
- package/dist/esm/q2-carousel-pane.entry.js +2 -2
- package/dist/esm/q2-carousel.entry.js +1 -1
- package/dist/esm/q2-chart-area.entry.js +1 -1
- package/dist/esm/q2-chart-bar.entry.js +1 -1
- package/dist/esm/q2-chart-donut.entry.js +1 -1
- package/dist/esm/q2-checkbox-group.entry.js +2 -2
- package/dist/esm/q2-checkbox-group.entry.js.map +1 -1
- package/dist/esm/q2-checkbox.entry.js +2 -2
- package/dist/esm/q2-checkbox.entry.js.map +1 -1
- package/dist/esm/q2-currency.entry.js +1 -1
- package/dist/esm/q2-data-table.entry.js +1 -1
- package/dist/esm/q2-detail.entry.js +1 -1
- package/dist/esm/q2-dropdown.entry.js +1 -1
- package/dist/esm/q2-editable-field.entry.js +1 -1
- package/dist/esm/q2-example.entry.js +1 -1
- package/dist/esm/q2-form.entry.js +2 -2
- package/dist/esm/q2-form.entry.js.map +1 -1
- package/dist/esm/q2-formatted-text.entry.js +1 -1
- package/dist/esm/q2-item_3.entry.js +2 -2
- package/dist/esm/q2-legend.entry.js +1 -1
- package/dist/esm/q2-loc.entry.js +0 -4
- package/dist/esm/q2-loc.entry.js.map +1 -1
- package/dist/esm/q2-message.entry.js +1 -1
- package/dist/esm/q2-modal.entry.js +1 -1
- package/dist/esm/q2-month-picker.entry.js +2 -2
- package/dist/esm/q2-optgroup.entry.js +1 -1
- package/dist/esm/q2-option-list_2.entry.js +2 -2
- package/dist/esm/q2-pagination.entry.js +3 -3
- package/dist/esm/q2-pill.entry.js +1 -1
- package/dist/esm/q2-radio-group.entry.js +1 -1
- package/dist/esm/q2-radio.entry.js +1 -1
- package/dist/esm/q2-relative-time.entry.js +2 -2
- package/dist/esm/q2-resize-observer.entry.js +1 -1
- package/dist/esm/q2-section.entry.js +2 -2
- package/dist/esm/q2-select.entry.js +2 -2
- package/dist/esm/q2-stepper-pane.entry.js +1 -1
- package/dist/esm/q2-stepper.entry.js +1 -1
- package/dist/esm/q2-textarea.entry.js +1 -1
- package/dist/q2-tecton-elements/{index-3184c760.js → index-3bb7a785.js} +1 -1
- package/dist/q2-tecton-elements/q2-action-group.entry.js +3 -3
- package/dist/q2-tecton-elements/q2-action-sheet.entry.js +62 -62
- package/dist/q2-tecton-elements/q2-avatar.entry.js +6 -6
- package/dist/q2-tecton-elements/q2-badge_7.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-calendar.entry.js +3 -3
- package/dist/q2-tecton-elements/q2-carousel-pane.entry.js +3 -3
- package/dist/q2-tecton-elements/q2-carousel.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-chart-area.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-chart-bar.entry.js +79 -79
- package/dist/q2-tecton-elements/q2-chart-donut.entry.js +100 -100
- package/dist/q2-tecton-elements/q2-checkbox-group.entry.js +11 -11
- package/dist/q2-tecton-elements/q2-checkbox-group.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-checkbox.entry.js +8 -8
- package/dist/q2-tecton-elements/q2-checkbox.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-currency.entry.js +6 -6
- package/dist/q2-tecton-elements/q2-data-table.entry.js +3 -3
- package/dist/q2-tecton-elements/q2-detail.entry.js +3 -3
- package/dist/q2-tecton-elements/q2-dropdown.entry.js +5 -5
- package/dist/q2-tecton-elements/q2-editable-field.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-example.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-form.entry.js +10 -10
- package/dist/q2-tecton-elements/q2-form.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-formatted-text.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-item_3.entry.js +21 -21
- package/dist/q2-tecton-elements/q2-legend.entry.js +5 -5
- package/dist/q2-tecton-elements/q2-loc.entry.js +8 -14
- package/dist/q2-tecton-elements/q2-loc.entry.js.map +1 -1
- package/dist/q2-tecton-elements/q2-message.entry.js +5 -5
- package/dist/q2-tecton-elements/q2-modal.entry.js +17 -17
- package/dist/q2-tecton-elements/q2-month-picker.entry.js +30 -30
- package/dist/q2-tecton-elements/q2-optgroup.entry.js +4 -4
- package/dist/q2-tecton-elements/q2-option-list_2.entry.js +7 -7
- package/dist/q2-tecton-elements/q2-pagination.entry.js +33 -33
- package/dist/q2-tecton-elements/q2-pill.entry.js +13 -13
- package/dist/q2-tecton-elements/q2-radio-group.entry.js +33 -33
- package/dist/q2-tecton-elements/q2-radio.entry.js +8 -8
- package/dist/q2-tecton-elements/q2-relative-time.entry.js +2 -2
- package/dist/q2-tecton-elements/q2-resize-observer.entry.js +1 -1
- package/dist/q2-tecton-elements/q2-section.entry.js +11 -11
- package/dist/q2-tecton-elements/q2-select.entry.js +5 -5
- package/dist/q2-tecton-elements/q2-stepper-pane.entry.js +11 -11
- package/dist/q2-tecton-elements/q2-stepper.entry.js +20 -20
- package/dist/q2-tecton-elements/q2-textarea.entry.js +2 -2
- package/dist/types/components/q2-action-group/q2-action-group.d.ts +0 -1
- package/dist/types/components/q2-loading/skeleton/shapes.d.ts +0 -1
- package/dist/types/components/q2-optgroup/q2-optgroup.d.ts +1 -1
- package/dist/types/components/q2-tab-container/q2-tab-container.d.ts +2 -2
- package/package.json +3 -4
- package/dist/collection/components/q2-loc/q2-loc.css +0 -70
- package/dist/types/components/q2-action-sheet/q2-action-sheet.d.ts +0 -60
- package/dist/types/components/q2-calendar/q2-calendar.d.ts +0 -327
- package/dist/types/components/q2-carousel/q2-carousel.d.ts +0 -95
- package/dist/types/components/q2-data-table/q2-data-table.d.ts +0 -261
- package/dist/types/components/q2-dropdown/q2-dropdown.d.ts +0 -181
- package/dist/types/components/q2-editable-field/q2-editable-field.d.ts +0 -140
- package/dist/types/components/q2-option-list/q2-option-list.d.ts +0 -100
- package/dist/types/components/q2-pagination/q2-pagination.d.ts +0 -117
- package/dist/types/components/q2-pill/q2-pill.d.ts +0 -143
- package/dist/types/components/q2-select/q2-select.d.ts +0 -238
- package/dist/types/components/q2-stepper/q2-stepper.d.ts +0 -61
- package/dist/types/components/q2-stepper-vertical/q2-stepper-vertical.d.ts +0 -68
- package/dist/types/components/q2-tag/q2-tag.d.ts +0 -91
- package/dist/types/utils/action-sheet.d.ts +0 -12
- /package/dist/q2-tecton-elements/{index-3184c760.js.map → index-3bb7a785.js.map} +0 -0
- /package/dist/types/{builds/q2e/development/tecton/tecton → Users/kvanhouten/Documents/Work/tecton_extra}/packages/q2-tecton-elements/.stencil/jest.setup.d.ts +0 -0
|
@@ -338,7 +338,7 @@ export class Q2Carousel {
|
|
|
338
338
|
let paginationWrapperClasses = ['q2-carousel-pagination-navigation-wrapper'];
|
|
339
339
|
if (showNavigationArrows)
|
|
340
340
|
paginationWrapperClasses = [...paginationWrapperClasses, 'evenly-space'];
|
|
341
|
-
return (h(Host, { key: '
|
|
341
|
+
return (h(Host, { key: '6a99de530270464ec3eac1a5648ca89f486a1462', id: `q2-carousel-${this.guid}`, class: "q2-carousel-instance" }, insufficientPanes ? (this.renderInsufficientPanesDisplay()) : (h(Fragment, null, paneCount > 1 && (h("div", { class: paginationWrapperClasses.join(' ') }, showNavigationArrows && this.renderPrevNavBtn(), h("div", { class: "q2-carousel-control-center-tray" }, !hidePagination && this.renderPaginationArea(), autoPlay && this.renderAutoPlayBtn()), showNavigationArrows && this.renderNextNavBtn())), h("section", { class: carouselContainerClasses.join(' '), ref: el => (this.carouselWrapper = el), "aria-roledescription": "carousel", "aria-label": loc(label) }, h("div", { class: "q2-carousel-swiper-wrapper swiper-wrapper", ref: el => (this.carouselPaneWrapperElement = el), "aria-live": ariaLiveValue, onKeyDown: this.keydownHandler }, h("slot", null)))))));
|
|
342
342
|
}
|
|
343
343
|
static get is() { return "q2-carousel"; }
|
|
344
344
|
static get originalStyleUrls() {
|
|
@@ -92,12 +92,12 @@ export class Q2CarouselPane {
|
|
|
92
92
|
// #region Render Methods
|
|
93
93
|
render() {
|
|
94
94
|
const { label } = this;
|
|
95
|
-
return (h(Host, { key: '
|
|
95
|
+
return (h(Host, { key: 'd7aec99a66061fe4b10e7a27b776fd2217f99a59', class: this.generatePaneClass(this.currentPaneIndex), tabIndex: this.isActivePane ? 0 : -1, role: "group", "aria-roledescription": "slide", "aria-hidden": this.isActivePane ? undefined : 'true', "aria-label": label
|
|
96
96
|
? loc(label)
|
|
97
97
|
: loc('tecton.element.carousel.itemDescription', [
|
|
98
98
|
(this.currentPaneIndex + 1).toString(),
|
|
99
99
|
(this.siblingCount || 0).toString(),
|
|
100
|
-
]), onClick: this.paneClicked }, h("article", { key: '
|
|
100
|
+
]), onClick: this.paneClicked }, h("article", { key: 'a86077038f620f9a04dbd2f588ad58d696229271', class: "q2-carousel-pane-main-content" }, h("slot", { key: '12f82035ff518babb548e5a3c3421c1d7dd95006' }))));
|
|
101
101
|
}
|
|
102
102
|
static get is() { return "q2-carousel-pane"; }
|
|
103
103
|
static get originalStyleUrls() {
|
|
@@ -220,7 +220,7 @@ export class Q2ChartArea {
|
|
|
220
220
|
// #endregion
|
|
221
221
|
// #region Render Methods
|
|
222
222
|
render() {
|
|
223
|
-
return (h("div", { key: '
|
|
223
|
+
return (h("div", { key: '74826328108685d56456624ee97ebcfb2b76a2c7', class: "container" }, h("div", { key: '303b2046ca5b453257276c2e8e23f36aa0123a7c', ref: el => (this.chartContainer = el), class: "chart-container", role: "img", "test-id": "areaChartContainer" })));
|
|
224
224
|
}
|
|
225
225
|
static get is() { return "q2-chart-area"; }
|
|
226
226
|
static get encapsulation() { return "shadow"; }
|
|
@@ -156,7 +156,7 @@ export class Q2ChartBar {
|
|
|
156
156
|
// #endregion
|
|
157
157
|
// #region Render Methods
|
|
158
158
|
render() {
|
|
159
|
-
return (h("div", { key: '
|
|
159
|
+
return (h("div", { key: '3369c851ab7176a66a12694c94306780d621d764', class: "container" }, h("div", { key: 'e5a7f8e937704c9bdbc631c2151f0bd7a685155c', ref: el => (this.chartContainer = el), class: "chart-container", role: "img", "test-id": "barChartContainer" })));
|
|
160
160
|
}
|
|
161
161
|
static get is() { return "q2-chart-bar"; }
|
|
162
162
|
static get encapsulation() { return "shadow"; }
|
|
@@ -474,7 +474,7 @@ export class Q2ChartDonut {
|
|
|
474
474
|
} })), !!name && h("div", { class: "name" }, name), !isNaN(value) && h("div", { class: "value" }, displayValue))));
|
|
475
475
|
}
|
|
476
476
|
render() {
|
|
477
|
-
return (h("click-elsewhere", { key: '
|
|
477
|
+
return (h("click-elsewhere", { key: '709c089a4d95f95c640c3ebf29332c0715240150', onChange: this.onClickElsewhere }, h("figure", { key: '7ed5b5f40d05cb432d92be4864de399a90639934' }, h("div", { key: '8ee828d53be204a1af25475f50c8d8ba602d5b9d', class: "container" }, h("div", { key: '28a8fd99895c1d8dfbfb5921b38f895118a5e9fa', ref: el => (this.chartContainer = el), "aria-describedby": !this.isClickable ? 'center-card-description' : undefined, class: "chart-container", role: "img", "test-id": "chartContainer", onClick: this.onContainerClick, tabIndex: !this.isClickable ? 0 : undefined, onKeyDown: !this.isClickable ? this.onButtonKeyDown : undefined }), this.renderCenterBlock()), this.showLegend && (h("figcaption", { key: 'fd8aa14f4143013f0f0c21a843a39445477327b7' }, h("q2-legend", { key: '29b3b167b600b73034660e52c07a3582ffb50d4e', class: "legend", data: this.legendData, format: this.format, hoveredItemId: this.legendHoveredId, onClick: this.onLegendClick, onMouseleave: this.onLegendMouseleave, onMouseenter: this.onLegendMouseenter, selectedItemId: this.selectedId }))))));
|
|
478
478
|
}
|
|
479
479
|
static get is() { return "q2-chart-donut"; }
|
|
480
480
|
static get encapsulation() { return "shadow"; }
|
|
@@ -70,7 +70,7 @@ button {
|
|
|
70
70
|
display: block;
|
|
71
71
|
position: relative;
|
|
72
72
|
padding: var(--comp-checkbox-padding);
|
|
73
|
-
--comp-default-checkbox-margin: var(--tct-checkbox-margin-top, var(--t-checkbox-margin-top,
|
|
73
|
+
--comp-default-checkbox-margin: var(--tct-checkbox-margin-top, var(--t-checkbox-margin-top, 0px)) 0 var(--tct-checkbox-margin-bottom, var(--t-checkbox-margin-bottom, 0px));
|
|
74
74
|
margin: var(--tct-checkbox-margin, var(--comp-default-checkbox-margin));
|
|
75
75
|
}
|
|
76
76
|
|
|
@@ -97,7 +97,7 @@ export class Q2Checkbox {
|
|
|
97
97
|
const textLabelClasses = ['label-text'];
|
|
98
98
|
if (this.hideLabel)
|
|
99
99
|
textLabelClasses.push('sr');
|
|
100
|
-
return (h("div", { key: '
|
|
100
|
+
return (h("div", { key: '579eccd325b8fb5b2336adb011aea200f8217b86', class: "container" }, h("input", { key: '1c87398cb9da8136dec2b0103941f848b3e9ef5e', ref: el => (this.inputElement = el), "aria-describedby": this.description ? 'description' : undefined, "aria-invalid": this.hasError === undefined ? undefined : `${this.hasError}`, checked: this.indeterminate || this.checked || false, class: "sr", disabled: !!this.disabled || !!this.groupDisabled, id: this._id, name: this.name || this._id, onClick: this.onInputClick, "test-id": "q2CheckboxInnerCheckBox", type: "checkbox", value: this.value }), h("label", { key: 'c24b63f7f594fa7601c0c3b9a942bb4e85186cfb', htmlFor: this._id, class: "label-control", "test-id": "checkboxButton" }, this.renderCheckboxSVG()), h("div", { key: 'b3d173fb63c8b7075769b42fa641fd4bc0bda63c', class: textLabelClasses.join(' ') }, h("label", { key: '6ab46bdd8f6e858a6066fbf11b410509d04f1d00', "test-id": "checkboxLabel", htmlFor: this._id }, loc(this.label), h("slot", { key: '4f812dbe26b6148955d34763c62938427b6a0a70' }))), this.description && (h("div", { key: '0ebd507482912f71edad0042a30a7582b040444e', class: "description-text", "test-id": "checkboxDescription", id: "description" }, loc(this.description)))));
|
|
101
101
|
}
|
|
102
102
|
static get is() { return "q2-checkbox"; }
|
|
103
103
|
static get encapsulation() { return "shadow"; }
|
|
@@ -71,11 +71,6 @@ button {
|
|
|
71
71
|
margin: var(--tct-checkbox-group-margin, var(--comp-default-checkbox-group-margin));
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
::slotted(q2-checkbox) {
|
|
75
|
-
--tct-checkbox-margin: var(--tct-checkbox-group-checkbox-margin, var(--app-scale-0x, 0));
|
|
76
|
-
--tct-checkbox-padding: var(--tct-checkbox-group-checkbox-padding, var(--app-scale-2x, 10px));
|
|
77
|
-
}
|
|
78
|
-
|
|
79
74
|
fieldset {
|
|
80
75
|
padding: var(--tct-checkbox-group-fieldset-padding, 0);
|
|
81
76
|
margin: 0;
|
|
@@ -116,7 +116,7 @@ export class Q2CheckboxGroup {
|
|
|
116
116
|
render() {
|
|
117
117
|
const showLabel = this.label || this.optional || this.readonly;
|
|
118
118
|
const showLabelRow = (showLabel && !this.hideLabel) || this.hasError;
|
|
119
|
-
return (h(Fragment, { key: '
|
|
119
|
+
return (h(Fragment, { key: '00973c7d6eeb78790062adc0829cb6c460ecd1cb' }, showLabelRow && (h("div", { key: '5f93745ca8658ce5b582f617030b1ba4e4297ffa', class: "label-row" }, showLabel && !this.hideLabel && h("div", { key: '2310f38bfbb04b56182e94e1d475b148fbc9ce93', class: "group-legend" }, renderLabel(this)), this.hasError && (h("q2-icon", { key: 'b226ad6a97bf3443fd871614cf4995397c128f7f', type: "error", "test-id": "iconError" })))), h("fieldset", { key: 'f51586e2b2a589e7ad15cb2d50a9cfd3dd380450', onChange: this.onInnerCheckboxChange, "aria-invalid": this.hasError ? `${this.hasError}` : undefined }, showLabel && h("legend", { key: '46fb67c964042825fefabdcff5c7fbc8deb0c2a8', class: "sr-only" }, renderLabel(this)), this.inputDom())));
|
|
120
120
|
}
|
|
121
121
|
static get is() { return "q2-checkbox-group"; }
|
|
122
122
|
static get encapsulation() { return "shadow"; }
|
|
@@ -116,7 +116,7 @@ export class Q2Currency {
|
|
|
116
116
|
// #region Render Methods
|
|
117
117
|
render() {
|
|
118
118
|
const { hasPlusMinusSign, plusMinusSign, currencyIsFront, currencySymbol, shouldSuperscriptSymbol, amountCore, fraction, shouldSuperscriptFraction, readableCurrency, currencyClasses, } = this;
|
|
119
|
-
return (h("div", { key: '
|
|
119
|
+
return (h("div", { key: '3efe0672f5e20e09261851b05679fda20b3be205', "test-id": "q2CurrencyInner", class: currencyClasses, "aria-label": readableCurrency }, hasPlusMinusSign && h("span", { key: '9d07a91d9b59f912027745546da3ee5ad0202e11' }, plusMinusSign), currencyIsFront && h("span", { key: 'be29f84ea601303e04c8c4d61b78ce5254c2063d', class: shouldSuperscriptSymbol ? 'superscript' : '' }, currencySymbol), h("span", { key: 'd070e4cfb634fd69f72ed0e65b6adf613747782a' }, amountCore), h("span", { key: 'd55e59a3bae3481985ccd6d5e62789f602aa3f65', class: shouldSuperscriptFraction ? 'superscript' : '' }, fraction), !currencyIsFront && h("span", { key: '1c8ad290f748e6cd14833b045fdf2745a03d9024', class: shouldSuperscriptSymbol ? 'superscript' : '' }, currencySymbol)));
|
|
120
120
|
}
|
|
121
121
|
static get is() { return "q2-currency"; }
|
|
122
122
|
static get encapsulation() { return "shadow"; }
|
|
@@ -321,7 +321,7 @@ export class Q2DataTable {
|
|
|
321
321
|
// #region Render Methods
|
|
322
322
|
render() {
|
|
323
323
|
const { caption } = this;
|
|
324
|
-
return (h("div", { key: '
|
|
324
|
+
return (h("div", { key: '0911fc154c13f520e6d010a772d4542c5aca33ff', class: "container" }, h("table", { key: '9b4590da3d87804d7d5a28d676322dc0d8deb643' }, caption && h("caption", { key: '00be6497e4123cdecab0dd0635b0f6212e3fe995', class: this.hideCaption ? 'sr' : undefined }, caption), this.renderTableColGroup(), this.renderTableHeader(), this.renderEmptyState(), this.renderTableRows())));
|
|
325
325
|
}
|
|
326
326
|
renderCellContent(cell) {
|
|
327
327
|
if (!cell)
|
|
@@ -569,7 +569,7 @@ export class Q2DataTable {
|
|
|
569
569
|
"references": {
|
|
570
570
|
"Q2DataTableHeader": {
|
|
571
571
|
"location": "local",
|
|
572
|
-
"path": "/
|
|
572
|
+
"path": "/Users/kvanhouten/Documents/Work/tecton_extra/packages/q2-tecton-elements/src/components/q2-data-table/q2-data-table.tsx",
|
|
573
573
|
"id": "src/components/q2-data-table/q2-data-table.tsx::Q2DataTableHeader"
|
|
574
574
|
}
|
|
575
575
|
}
|
|
@@ -647,7 +647,7 @@ export class Q2DataTable {
|
|
|
647
647
|
"references": {
|
|
648
648
|
"Q2DataTableRow": {
|
|
649
649
|
"location": "local",
|
|
650
|
-
"path": "/
|
|
650
|
+
"path": "/Users/kvanhouten/Documents/Work/tecton_extra/packages/q2-tecton-elements/src/components/q2-data-table/q2-data-table.tsx",
|
|
651
651
|
"id": "src/components/q2-data-table/q2-data-table.tsx::Q2DataTableRow"
|
|
652
652
|
}
|
|
653
653
|
}
|
|
@@ -765,7 +765,7 @@ export class Q2DataTable {
|
|
|
765
765
|
"references": {
|
|
766
766
|
"Q2DataTableSerializedRow": {
|
|
767
767
|
"location": "local",
|
|
768
|
-
"path": "/
|
|
768
|
+
"path": "/Users/kvanhouten/Documents/Work/tecton_extra/packages/q2-tecton-elements/src/components/q2-data-table/q2-data-table.tsx",
|
|
769
769
|
"id": "src/components/q2-data-table/q2-data-table.tsx::Q2DataTableSerializedRow"
|
|
770
770
|
}
|
|
771
771
|
}
|
|
@@ -786,7 +786,7 @@ export class Q2DataTable {
|
|
|
786
786
|
"references": {
|
|
787
787
|
"Q2DataTableSerializedRow": {
|
|
788
788
|
"location": "local",
|
|
789
|
-
"path": "/
|
|
789
|
+
"path": "/Users/kvanhouten/Documents/Work/tecton_extra/packages/q2-tecton-elements/src/components/q2-data-table/q2-data-table.tsx",
|
|
790
790
|
"id": "src/components/q2-data-table/q2-data-table.tsx::Q2DataTableSerializedRow"
|
|
791
791
|
}
|
|
792
792
|
}
|
|
@@ -822,7 +822,7 @@ export class Q2DataTable {
|
|
|
822
822
|
"references": {
|
|
823
823
|
"Q2DataTableHeader": {
|
|
824
824
|
"location": "local",
|
|
825
|
-
"path": "/
|
|
825
|
+
"path": "/Users/kvanhouten/Documents/Work/tecton_extra/packages/q2-tecton-elements/src/components/q2-data-table/q2-data-table.tsx",
|
|
826
826
|
"id": "src/components/q2-data-table/q2-data-table.tsx::Q2DataTableHeader"
|
|
827
827
|
}
|
|
828
828
|
}
|
|
@@ -843,7 +843,7 @@ export class Q2DataTable {
|
|
|
843
843
|
"references": {
|
|
844
844
|
"Q2DataTableSerializedRow": {
|
|
845
845
|
"location": "local",
|
|
846
|
-
"path": "/
|
|
846
|
+
"path": "/Users/kvanhouten/Documents/Work/tecton_extra/packages/q2-tecton-elements/src/components/q2-data-table/q2-data-table.tsx",
|
|
847
847
|
"id": "src/components/q2-data-table/q2-data-table.tsx::Q2DataTableSerializedRow"
|
|
848
848
|
}
|
|
849
849
|
}
|
|
@@ -923,7 +923,7 @@ export class Q2DataTable {
|
|
|
923
923
|
},
|
|
924
924
|
"Q2DataTableHeader": {
|
|
925
925
|
"location": "local",
|
|
926
|
-
"path": "/
|
|
926
|
+
"path": "/Users/kvanhouten/Documents/Work/tecton_extra/packages/q2-tecton-elements/src/components/q2-data-table/q2-data-table.tsx",
|
|
927
927
|
"id": "src/components/q2-data-table/q2-data-table.tsx::Q2DataTableHeader"
|
|
928
928
|
},
|
|
929
929
|
"HTMLQ2BtnElement": {
|
|
@@ -100,7 +100,7 @@ export class Q2Detail {
|
|
|
100
100
|
// #endregion
|
|
101
101
|
// #region Render Methods
|
|
102
102
|
render() {
|
|
103
|
-
return (h("div", { key: '
|
|
103
|
+
return (h("div", { key: '99cdf14ddfd4e5aabb5abb21d2e6b57130ccdf4d', class: this.detailClasses }, this.hasLabel && (h("div", { key: 'a4c4b1100a49ecd259b71fd60c425d093bfa60d2', class: this.labelClasses, "aria-describedby": !!this.description ? 'label-description' : undefined }, !!this.label ? loc(this.label) : this.hasLabelSlotContent ? h("slot", { name: "label" }) : '')), this.hasDescripiton && (h("div", { key: '9a7d20fd82f9f1323d711694081a41953247e3fa', id: "label-description", class: this.descriptionClasses }, !!this.description ? loc(this.description) : this.hasDefaultSlotContent ? h("slot", null) : ''))));
|
|
104
104
|
}
|
|
105
105
|
static get is() { return "q2-detail"; }
|
|
106
106
|
static get encapsulation() { return "shadow"; }
|
|
@@ -315,7 +315,7 @@ export class Q2Dropdown {
|
|
|
315
315
|
// #region Render Methods
|
|
316
316
|
render() {
|
|
317
317
|
const btnProps = this.toggleButtonProps;
|
|
318
|
-
return (h("click-elsewhere", { key: '
|
|
318
|
+
return (h("click-elsewhere", { key: 'c73d902efcfe8dbd8eb30bbc4c690791688ec7ab', class: this.open ? 'dropdown-open' : '', onChange: this.onClickElsewhere, "test-id": "dropdownContainer" }, h("q2-btn", { key: 'c38f86f4782ac7af8f8d63f653a9bbe6a2f15156', ref: el => (this.controlElement = el), class: btnProps.className, onClick: this.onToggleClick, onKeyDown: this.onToggleKeydown, fab: btnProps.fab, intent: btnProps.intent, onFocusout: this.handleFocusOut, active: btnProps.active, disabled: btnProps.disabled, ariaExpanded: `${!!btnProps.ariaExpanded}`, label: this.hideLabel && this.label ? loc(this.label) : undefined, hideLabel: this.hideLabel, ariaHasPopup: "menu", "test-id": "dropdownButton", block: this.block, description: loc('tecton.element.dropdown.itemCount', [this.determineDropdownItemCount]) }, this.hasCustomControl ? (h("div", { "test-id": "dropdownControl", class: btnProps.custom ? '' : 'hidden' }, h("slot", { name: "control" }))) : (h(Fragment, null, this.icon ? h("q2-icon", { type: this.icon }) : ' ', this.label && !this.hideLabel && (h("span", { class: "dropdown-button-text" }, loc(this.label)))))), h("q2-popover", { key: '214ed5802be23e3105372ece60be34c6b921d312', ref: el => (this.popoverElement = el), controlElement: this.controlElement, open: this.open, "max-height": this.popoverMaxHeight, onFocusout: this.handleFocusOut, minHeight: this.popoverMinHeight, direction: this.popoverDirection, align: this.popoverAlignment, mode: this.popoverMode || undefined, block: this.block }, h("q2-option-list", { key: '574775f82aa39d8ab88173dd122164e274f34be5', onPopoverState: this.onPopoverState, id: "option-list", ref: el => (this.optionList = el), type: "menu", label: loc('tecton.element.optionList.label', [this.optionListLabel]), "no-select": true }, h("slot", { key: '57a547da980d65679787f5a84654761114b9f722' })))));
|
|
319
319
|
}
|
|
320
320
|
static get is() { return "q2-dropdown"; }
|
|
321
321
|
static get encapsulation() { return "shadow"; }
|
|
@@ -206,7 +206,7 @@ export class Q2EditableField {
|
|
|
206
206
|
// #endregion
|
|
207
207
|
// #region Render Methods
|
|
208
208
|
render() {
|
|
209
|
-
return (h("div", { key: '
|
|
209
|
+
return (h("div", { key: 'e4537652284887776f863a690eef445a3bdaa3c6' }, this.generateEditStateDOM(), this.generateReadStateDOM()));
|
|
210
210
|
}
|
|
211
211
|
static get is() { return "q2-editable-field"; }
|
|
212
212
|
static get encapsulation() { return "shadow"; }
|
|
@@ -118,7 +118,7 @@ export class Q2Example {
|
|
|
118
118
|
}, onClick: () => this.tctClick.emit(), role: "menu" }, h("slot", null))));
|
|
119
119
|
}
|
|
120
120
|
render() {
|
|
121
|
-
return h(Host, { key: '
|
|
121
|
+
return h(Host, { key: 'a89b3080a47ebc5401317f5620c918ff2c34bac2', attribute: "navigation" }, this.renderMenuInner());
|
|
122
122
|
}
|
|
123
123
|
static get is() { return "q2-example"; }
|
|
124
124
|
static get encapsulation() { return "shadow"; }
|
|
@@ -327,7 +327,7 @@ export class Q2FilePicker {
|
|
|
327
327
|
"mutable": false,
|
|
328
328
|
"complexType": {
|
|
329
329
|
"original": "{ name: string; status: 'in-progress' | 'failed' | 'uploaded' }[]",
|
|
330
|
-
"resolved": "{ name: string; status: \"
|
|
330
|
+
"resolved": "{ name: string; status: \"failed\" | \"in-progress\" | \"uploaded\"; }[]",
|
|
331
331
|
"references": {}
|
|
332
332
|
},
|
|
333
333
|
"required": false,
|
|
@@ -343,11 +343,11 @@ export class Q2FilePicker {
|
|
|
343
343
|
"mutable": true,
|
|
344
344
|
"complexType": {
|
|
345
345
|
"original": "FilesObject",
|
|
346
|
-
"resolved": "{ invalidFiles: { file: File; status: \"invalid-type\" | \"over-size-limit\" | \"over-max-files-limit\" | \"in-progress\" | \"
|
|
346
|
+
"resolved": "{ invalidFiles: { file: File; status: \"failed\" | \"invalid-type\" | \"over-size-limit\" | \"over-max-files-limit\" | \"in-progress\" | \"uploaded\"; }[]; validFiles: File[]; }",
|
|
347
347
|
"references": {
|
|
348
348
|
"FilesObject": {
|
|
349
349
|
"location": "local",
|
|
350
|
-
"path": "/
|
|
350
|
+
"path": "/Users/kvanhouten/Documents/Work/tecton_extra/packages/q2-tecton-elements/src/components/q2-file-picker/q2-file-picker.tsx",
|
|
351
351
|
"id": "src/components/q2-file-picker/q2-file-picker.tsx::FilesObject"
|
|
352
352
|
}
|
|
353
353
|
}
|
|
@@ -404,11 +404,11 @@ export class Q2FilePicker {
|
|
|
404
404
|
},
|
|
405
405
|
"complexType": {
|
|
406
406
|
"original": "FilesObject",
|
|
407
|
-
"resolved": "{ invalidFiles: { file: File; status: \"invalid-type\" | \"over-size-limit\" | \"over-max-files-limit\" | \"in-progress\" | \"
|
|
407
|
+
"resolved": "{ invalidFiles: { file: File; status: \"failed\" | \"invalid-type\" | \"over-size-limit\" | \"over-max-files-limit\" | \"in-progress\" | \"uploaded\"; }[]; validFiles: File[]; }",
|
|
408
408
|
"references": {
|
|
409
409
|
"FilesObject": {
|
|
410
410
|
"location": "local",
|
|
411
|
-
"path": "/
|
|
411
|
+
"path": "/Users/kvanhouten/Documents/Work/tecton_extra/packages/q2-tecton-elements/src/components/q2-file-picker/q2-file-picker.tsx",
|
|
412
412
|
"id": "src/components/q2-file-picker/q2-file-picker.tsx::FilesObject"
|
|
413
413
|
}
|
|
414
414
|
}
|
|
@@ -71,7 +71,6 @@ button {
|
|
|
71
71
|
--tct-calendar-margin: var(--comp-spacing);
|
|
72
72
|
--tct-file-picker-margin: var(--comp-spacing);
|
|
73
73
|
--tct-textarea-margin: var(--comp-spacing);
|
|
74
|
-
--tct-checkbox-margin: var(--comp-spacing);
|
|
75
74
|
--tct-checkbox-group-margin: var(--comp-spacing);
|
|
76
75
|
--tct-radio-group-margin: var(--comp-spacing);
|
|
77
76
|
}
|
|
@@ -4,7 +4,7 @@ export class Q2Checkbox {
|
|
|
4
4
|
this.spacing = 'normal';
|
|
5
5
|
}
|
|
6
6
|
render() {
|
|
7
|
-
return (h("div", { key: '
|
|
7
|
+
return (h("div", { key: '377fbc8245a6d6734536a37f3d733384801fd00b', class: "container" }, h("slot", { key: '73d1054f5ca1af44c78a4f85b1009143989a5530' })));
|
|
8
8
|
}
|
|
9
9
|
static get is() { return "q2-form"; }
|
|
10
10
|
static get encapsulation() { return "shadow"; }
|
|
@@ -40,7 +40,12 @@ describe('q2-form', () => {
|
|
|
40
40
|
expect(allFormFields.length).toBe(7);
|
|
41
41
|
await allFormFields.forEach(async (formField) => {
|
|
42
42
|
const style = await formField.getComputedStyle();
|
|
43
|
-
|
|
43
|
+
if (formField.tagName === 'Q2-CHECKBOX') {
|
|
44
|
+
expect(style.margin).toBe('0px');
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
expect(style.margin).toBe('25px 0px');
|
|
48
|
+
}
|
|
44
49
|
});
|
|
45
50
|
});
|
|
46
51
|
it('adds no margin when "none" is provided', async () => {
|
|
@@ -62,7 +67,12 @@ describe('q2-form', () => {
|
|
|
62
67
|
expect(allFormFields.length).toBe(7);
|
|
63
68
|
await allFormFields.forEach(async (formField) => {
|
|
64
69
|
const style = await formField.getComputedStyle();
|
|
65
|
-
|
|
70
|
+
if (formField.tagName === 'Q2-CHECKBOX') {
|
|
71
|
+
expect(style.margin).toBe('0px');
|
|
72
|
+
}
|
|
73
|
+
else {
|
|
74
|
+
expect(style.margin).toBe('15px 0px');
|
|
75
|
+
}
|
|
66
76
|
});
|
|
67
77
|
});
|
|
68
78
|
it('adds normal margin when "normal" is provided', async () => {
|
|
@@ -73,7 +83,12 @@ describe('q2-form', () => {
|
|
|
73
83
|
expect(allFormFields.length).toBe(7);
|
|
74
84
|
await allFormFields.forEach(async (formField) => {
|
|
75
85
|
const style = await formField.getComputedStyle();
|
|
76
|
-
|
|
86
|
+
if (formField.tagName === 'Q2-CHECKBOX') {
|
|
87
|
+
expect(style.margin).toBe('0px');
|
|
88
|
+
}
|
|
89
|
+
else {
|
|
90
|
+
expect(style.margin).toBe('25px 0px');
|
|
91
|
+
}
|
|
77
92
|
});
|
|
78
93
|
});
|
|
79
94
|
it('adds comfortable margin when "comfortable" is provided', async () => {
|
|
@@ -84,7 +99,12 @@ describe('q2-form', () => {
|
|
|
84
99
|
expect(allFormFields.length).toBe(7);
|
|
85
100
|
await allFormFields.forEach(async (formField) => {
|
|
86
101
|
const style = await formField.getComputedStyle();
|
|
87
|
-
|
|
102
|
+
if (formField.tagName === 'Q2-CHECKBOX') {
|
|
103
|
+
expect(style.margin).toBe('0px');
|
|
104
|
+
}
|
|
105
|
+
else {
|
|
106
|
+
expect(style.margin).toBe('35px 0px');
|
|
107
|
+
}
|
|
88
108
|
});
|
|
89
109
|
});
|
|
90
110
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"q2-form-test.e2e.js","sourceRoot":"","sources":["../../../../../src/components/q2-form/test/q2-form-test.e2e.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAExC,QAAQ,CAAC,SAAS,EAAE,GAAG,EAAE;IACrB,MAAM,WAAW,GAAG;;;;;;;;;;;;;;;;;;;;KAoBnB,CAAC;IAEF,MAAM,qBAAqB,GAAG;;;;;;;;KAQ7B,CAAC;IAEF,QAAQ,CAAC,OAAO,EAAE,GAAG,EAAE;QACnB,QAAQ,CAAC,SAAS,EAAE,GAAG,EAAE;YACrB,EAAE,CAAC,0CAA0C,EAAE,KAAK,IAAI,EAAE;gBACtD,MAAM,IAAI,GAAG,MAAM,KAAK,CAAC;oBACrB,IAAI,EAAE,YAAY,WAAW,YAA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AAE,kCAAkC,WAAW,YAAY;iBAClE,CAAC,CAAC;gBACH,MAAM,aAAa,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,qBAAqB,CAAC,CAAC;gBAEhE,MAAM,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;gBACrC,MAAM,aAAa,CAAC,OAAO,CAAC,KAAK,EAAC,SAAS,EAAC,EAAE;oBAC1C,MAAM,KAAK,GAAG,MAAM,SAAS,CAAC,gBAAgB,EAAE,CAAC;oBACjD,IAAI,SAAS,CAAC,OAAO,KAAK,aAAa,EAAE,CAAC;wBACtC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;oBACrC,CAAC;yBAAM,CAAC;wBACJ,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;oBAC1C,CAAC;gBACL,CAAC,CAAC,CAAC;YACP,CAAC,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC","sourcesContent":["import { setup } from '@/utils/helpers';\n\ndescribe('q2-form', () => {\n const formContent = `\n <q2-input label=\"Input\"></q2-input>\n <q2-calendar label=\"Calendar\"></q2-calendar>\n <q2-select label=\"Select\">\n <option value=\"1\">Option 1</option>\n <option value=\"2\">Option 2</option>\n <option value=\"3\">Option 3</option>\n </q2-select>\n <q2-checkbox value=\"standalone\">Standalone Checkbox</q2-checkbox>\n <q2-checkbox-group label=\"Checkbox Group\">\n <q2-checkbox value=\"1\">Option 1</q2-checkbox>\n <q2-checkbox value=\"2\">Option 2</q2-checkbox>\n <q2-checkbox value=\"3\">Option 3</q2-checkbox>\n </q2-checkbox-group>\n <q2-radio-group label=\"Radio Group\">\n <q2-radio value=\"1\">Option 1</q2-radio>\n <q2-radio value=\"2\">Option 2</q2-radio>\n <q2-radio value=\"3\">Option 3</q2-radio>\n </q2-radio-group>\n <q2-textarea label=\"Textarea\"></q2-textarea>\n `;\n\n const allFormFieldsSelector = `\n q2-form > q2-input,\n q2-form > q2-calendar,\n q2-form > q2-select,\n q2-form > q2-checkbox,\n q2-form > q2-checkbox-group,\n q2-form > q2-radio-group,\n q2-form > q2-textarea\n `;\n\n describe('Props', () => {\n describe('spacing', () => {\n it('adds the normal margin when not provided', async () => {\n const page = await setup({\n html: `<q2-form>${formContent}</q2-card>`,\n });\n const allFormFields = await page.findAll(allFormFieldsSelector);\n\n expect(allFormFields.length).toBe(7);\n await allFormFields.forEach(async formField => {\n const style = await formField.getComputedStyle();\n if (formField.tagName === 'Q2-CHECKBOX') {\n expect(style.margin).toBe('0px');\n } else {\n expect(style.margin).toBe('25px 0px');\n }\n });\n });\n\n it('adds no margin when \"none\" is provided', async () => {\n const page = await setup({\n html: `<q2-form spacing=\"none\">${formContent}</q2-card>`,\n });\n const allFormFields = await page.findAll(allFormFieldsSelector);\n\n expect(allFormFields.length).toBe(7);\n await allFormFields.forEach(async formField => {\n const style = await formField.getComputedStyle();\n expect(style.margin).toBe('0px');\n });\n });\n\n it('adds compact margin when \"compact\" is provided', async () => {\n const page = await setup({\n html: `<q2-form spacing=\"compact\">${formContent}</q2-card>`,\n });\n const allFormFields = await page.findAll(allFormFieldsSelector);\n\n expect(allFormFields.length).toBe(7);\n await allFormFields.forEach(async formField => {\n const style = await formField.getComputedStyle();\n if (formField.tagName === 'Q2-CHECKBOX') {\n expect(style.margin).toBe('0px');\n } else {\n expect(style.margin).toBe('15px 0px');\n }\n });\n });\n\n it('adds normal margin when \"normal\" is provided', async () => {\n const page = await setup({\n html: `<q2-form spacing=\"normal\">${formContent}</q2-card>`,\n });\n const allFormFields = await page.findAll(allFormFieldsSelector);\n\n expect(allFormFields.length).toBe(7);\n await allFormFields.forEach(async formField => {\n const style = await formField.getComputedStyle();\n if (formField.tagName === 'Q2-CHECKBOX') {\n expect(style.margin).toBe('0px');\n } else {\n expect(style.margin).toBe('25px 0px');\n }\n });\n });\n\n it('adds comfortable margin when \"comfortable\" is provided', async () => {\n const page = await setup({\n html: `<q2-form spacing=\"comfortable\">${formContent}</q2-card>`,\n });\n const allFormFields = await page.findAll(allFormFieldsSelector);\n\n expect(allFormFields.length).toBe(7);\n await allFormFields.forEach(async formField => {\n const style = await formField.getComputedStyle();\n if (formField.tagName === 'Q2-CHECKBOX') {\n expect(style.margin).toBe('0px');\n } else {\n expect(style.margin).toBe('35px 0px');\n }\n });\n });\n });\n });\n});\n"]}
|
|
@@ -46,7 +46,7 @@ export class Q2FormattedText {
|
|
|
46
46
|
// #region Render Methods
|
|
47
47
|
render() {
|
|
48
48
|
const { formattedTextClasses } = this;
|
|
49
|
-
return (h("div", { key: '
|
|
49
|
+
return (h("div", { key: '29aac8ea5e737d01243d42d0a9790d18a11f768c', class: formattedTextClasses, "aria-label": this.formattedValue }, h("span", { key: '613fe3f2d365edd4a2ffefd37ac2ec4f05220978' }, this.formattedValue)));
|
|
50
50
|
}
|
|
51
51
|
static get is() { return "q2-formatted-text"; }
|
|
52
52
|
static get encapsulation() { return "shadow"; }
|
|
@@ -665,7 +665,7 @@ export class Q2Input {
|
|
|
665
665
|
return (h(Fragment, null, hasCustomDisplaySlot && (h("div", { class: "custom-display-container" }, h("slot", { name: "custom-display" }))), h("input", { ref: el => (this.inputRef = el), class: inputClasses.join(' '), id: this.inputId, type: this.computedType, size: this.formattedValueObject.prefix ? 10 : undefined, maxlength: ['date', 'currency'].includes(this.type) ? undefined : this.maxlength || undefined, max: this.max, min: this.min, step: this.step, "aria-current": this.current || undefined, "aria-describedby": this.inputDescribedBy, "aria-required": `${!this.optional}`, "aria-invalid": `${this.hasError}`, "aria-owns": ariaOwns, "aria-haspopup": ariaHaspopup, "aria-expanded": ariaExpanded, "aria-activedescendant": ariaActivedescendant, autocomplete: this.computedAutocomplete, autocapitalize: this.autocapitalize, autocorrect: this.autocorrect === 'on' ? 'on' : 'off', autofocus: this.autofocus, placeholder: (this.placeholder && loc(this.placeholder)) || undefined, role: this._role, "test-id": "inputField", readonly: this.readonly || this._preventEntry, disabled: !!this.disabled, onFocus: this.onInputFocus, onBlur: this.onInputBlur, onClick: this.onInputClick, onKeyDown: this.onInputKeydown, onInput: this.onInputInput, onPaste: this.onInputPaste, inputmode: this.inputMode, pattern: this.pattern || undefined })));
|
|
666
666
|
}
|
|
667
667
|
render() {
|
|
668
|
-
return (h("div", { key: '
|
|
668
|
+
return (h("div", { key: 'fbf148503e4dbf8fb9b033fecf698e4021fd763f', class: this.wrapperClasses }, h("div", { key: 'b8820ad0d238ba787775c793bb8757c60dcb82fd', class: "label-wrapper" }, renderLabel(this), this.renderCountDOM()), this.renderInputContainerDOM(), renderMessages(this)));
|
|
669
669
|
}
|
|
670
670
|
static get is() { return "q2-input"; }
|
|
671
671
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1408,7 +1408,7 @@ export class Q2Input {
|
|
|
1408
1408
|
"references": {
|
|
1409
1409
|
"InputType": {
|
|
1410
1410
|
"location": "local",
|
|
1411
|
-
"path": "/
|
|
1411
|
+
"path": "/Users/kvanhouten/Documents/Work/tecton_extra/packages/q2-tecton-elements/src/components/q2-input/q2-input.tsx",
|
|
1412
1412
|
"id": "src/components/q2-input/q2-input.tsx::InputType"
|
|
1413
1413
|
}
|
|
1414
1414
|
}
|
|
@@ -100,7 +100,7 @@ export class Q2Item {
|
|
|
100
100
|
// #region Render Methods
|
|
101
101
|
render() {
|
|
102
102
|
const { clickable } = this;
|
|
103
|
-
return (h("div", { key: '
|
|
103
|
+
return (h("div", { key: '4afba65f3586f010f5e6f6faa72ab04d6ec79fb8', "test-id": "itemContainer", class: this.itemClasses, ref: el => (this.itemElement = el), role: clickable ? 'button' : undefined, tabIndex: clickable ? 0 : undefined }, this.hasBulletSlotContent && (h("div", { key: '778ec58acfdc9a57662cb070028c5efbaced8056', class: this.bulletClasses }, h("slot", { key: '6429ec996adb7b400f7dbc37e66196394b2e4c5d', name: "bullet" }))), h("div", { key: '2a81129ad24d95857183c72813d60eb785ee1b2d', class: this.mainClasses }, this.hasHeaderSlotContent && (h("div", { key: '53315a1d62bc8ffc6f2f910e881659d61c670fbf', class: "header" }, h("slot", { key: 'a11063eda67cd353a7742397a4701c7939193d09', name: "header" }))), this.hasBodySlotContent && (h("div", { key: '903998a8a296b11c60ce105b6bb181badee3580c', class: "body" }, h("slot", { key: 'c47b8387918feea518d56b25d2f4770a1cae9c00', name: "body" })))), this.hasActionSlotContent && (h("div", { key: '7b44a3c72b6d8cca1b409b9a37764a317ba8acb7', class: this.actionClasses }, h("slot", { key: 'ea50fb238aeae9c96276cf53234cfe2bdea55b42', name: "action" }))), this.hasFooterSlotContent && (h("div", { key: '636e87198073af605443840a79ef2640ad7d4552', class: this.footerClasses }, h("slot", { key: '9b9112e049d8e6f2d5983ad499ad27ee6ec08b14', name: "footer" })))));
|
|
104
104
|
}
|
|
105
105
|
static get is() { return "q2-item"; }
|
|
106
106
|
static get encapsulation() { return "shadow"; }
|
|
@@ -94,7 +94,7 @@ export class Q2Legend {
|
|
|
94
94
|
// #endregion
|
|
95
95
|
// #region Render Methods
|
|
96
96
|
render() {
|
|
97
|
-
return (h("click-elsewhere", { key: '
|
|
97
|
+
return (h("click-elsewhere", { key: '1253e1dba3334134aa16432ef4dd7e71a87d1420', onChange: () => this.onClickElsewhere(this) }, h("ul", { key: 'd9252af5543da55989ec69b18b4438624c39a90e' }, this.dataWithClasses.map(item => (h("li", { class: "item" }, h("button", { "test-id": "item", "aria-label": `${item.name} ${this.formatValue(item.value)}`, class: item.classes, onClick: event => this.onClick(event, item), onMouseEnter: event => this.onMouseEnter(event, item), onMouseLeave: event => this.onMouseLeave(event, item) }, h("span", { "test-id": "itemColor", class: "item-color-indicator", style: { backgroundColor: item.color }, "aria-hidden": "true" }), h("span", { "test-id": "itemName", class: "item-name" }, item.name), h("span", { id: `item-${item.id}`, "test-id": "itemValue", class: "item-value" }, this.formatValue(item.value)))))))));
|
|
98
98
|
}
|
|
99
99
|
static get is() { return "q2-legend"; }
|
|
100
100
|
static get encapsulation() { return "shadow"; }
|
|
@@ -63,7 +63,7 @@ export class Q2List {
|
|
|
63
63
|
// #endregion
|
|
64
64
|
// #region Render Methods
|
|
65
65
|
render() {
|
|
66
|
-
return (h("div", { key: '
|
|
66
|
+
return (h("div", { key: '815b7bb01cdd74d76d2390a9e969484189682c6b', class: this.listClasses, ref: el => (this.listElement = el) }, (this.hasFilterSlot || this.hasLabelContent) && (h("div", { key: '3495d4aa9461d655f0c5bf5c67ce26b320324675', class: this.headerClasses }, h("div", { key: '9b5f21524fc50f41a38b7ff234cca04142e4783b', class: "label" }, this.label), this.hasFilterSlot && h("slot", { key: '4765b21b09161cad072e90f351e55d210c07a33c', name: "filter" }))), h("div", { key: '9157531d4ee7d3362fd23ae665dcc8f4ca28fd8d', role: "list" }, h("slot", { key: '6cfa2724ee61b1b2271d673b6b71113e7bfd06e7' }))));
|
|
67
67
|
}
|
|
68
68
|
static get is() { return "q2-list"; }
|
|
69
69
|
static get encapsulation() { return "shadow"; }
|
|
@@ -52,16 +52,6 @@ export class Q2Loc {
|
|
|
52
52
|
return this.translatedValue;
|
|
53
53
|
}
|
|
54
54
|
static get is() { return "q2-loc"; }
|
|
55
|
-
static get originalStyleUrls() {
|
|
56
|
-
return {
|
|
57
|
-
"$": ["q2-loc.scss"]
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
static get styleUrls() {
|
|
61
|
-
return {
|
|
62
|
-
"$": ["q2-loc.css"]
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
55
|
static get properties() {
|
|
66
56
|
return {
|
|
67
57
|
"substitutions": {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"q2-loc.js","sourceRoot":"","sources":["../../../../src/components/q2-loc/q2-loc.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,EAAE,GAAG,EA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,oBAAe,GAAG,GAAG,EAAE;YACnB,MAAM,EAAE,eAAe,EAAE,GAAG,IAAI,CAAC;YACjC,IAAI,eAAe,IAAI,IAAI,CAAC,eAAe,KAAK,eAAe,EAAE,CAAC;gBAC9D,IAAI,CAAC,WAAW,CAAC,WAAW,GAAG,IAAI,CAAC;gBACpC,IAAI,CAAC,KAAK,GAAG,eAAe,CAAC;YACjC,CAAC;QACL,CAAC,CAAC;;;;IAhDF,aAAa;IACb,qCAAqC;IAErC,oBAAoB;;QAChB,MAAA,IAAI,CAAC,gBAAgB,0CAAE,UAAU,EAAE,CAAC;QACpC,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC;IACjC,CAAC;IAED,iBAAiB;QACb,IAAI,CAAC,SAAS,EAAE,CAAC;IACrB,CAAC;IAED,gBAAgB;QACZ,IAAI,CAAC,oBAAoB,EAAE,CAAC;IAChC,CAAC;IAED,aAAa;IACb,wBAAwB;IAExB,IAAI,eAAe;QACf,OAAO,IAAI,CAAC,WAAW,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC;IAC/C,CAAC;IAED,IAAI,eAAe;QACf,OAAO,GAAG,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC;IAC/C,CAAC;IAyBD,aAAa;IACb,yBAAyB;IAEzB,MAAM;QACF,OAAO,IAAI,CAAC,eAAe,CAAC;IAChC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGJ","sourcesContent":["import { Element, Component, Prop } from '@stencil/core';\nimport { loc } from 'src/utils';\n\n@Component({ tag: 'q2-loc', shadow: false })\nexport class Q2Loc {\n // #region Own Properties\n\n mutationObserver: MutationObserver;\n\n // #endregion\n // #region Host HTML Element\n\n @Element()\n hostElement: HTMLElement;\n\n // #endregion\n // #region Public Property API\n\n /** Any substitutions you would like to pass into the localization string. */\n @Prop()\n substitutions: string[];\n\n /**\n * The reference to the localization key you would like to display the localized output of.\n * If no value is provided, any text inside the element will be used as a fallback.\n * @localizable\n */\n @Prop({ reflect: true, mutable: true })\n value: string;\n\n // #endregion\n // #region Component Lifecycle Events\n\n disconnectedCallback() {\n this.mutationObserver?.disconnect();\n this.mutationObserver = null;\n }\n\n componentWillLoad() {\n this.initValue();\n }\n\n componentDidLoad() {\n this.initMutationObserver();\n }\n\n // #endregion\n // #region Local Methods\n\n get hostTextContent(): string {\n return this.hostElement.textContent.trim();\n }\n\n get translatedValue(): string {\n return loc(this.value, this.substitutions);\n }\n\n initMutationObserver = () => {\n if (!('MutationObserver' in window)) return;\n const observer = new MutationObserver(this.mutationHandler);\n observer.observe(this.hostElement, { childList: true, subtree: true, characterData: true });\n this.mutationObserver = observer;\n };\n\n initValue = () => {\n const { hostTextContent } = this;\n this.hostElement.textContent = null;\n if (!this.value && hostTextContent) {\n this.value = hostTextContent;\n }\n };\n\n mutationHandler = () => {\n const { hostTextContent } = this;\n if (hostTextContent && this.translatedValue !== hostTextContent) {\n this.hostElement.textContent = null;\n this.value = hostTextContent;\n }\n };\n\n // #endregion\n // #region Render Methods\n\n render() {\n return this.translatedValue;\n }\n\n // #endregion\n}\n"]}
|
|
@@ -57,7 +57,7 @@ export class Q2Message {
|
|
|
57
57
|
const addDivForAriaLive = !isFirefox && this.presentToggle;
|
|
58
58
|
const { description } = this;
|
|
59
59
|
const messageLabel = loc(`tecton.element.message.type.${this.type ? this.type : 'info'}`);
|
|
60
|
-
return (h("div", { key: '
|
|
60
|
+
return (h("div", { key: 'e74bbda0808b5430f9f3533d5cfe32463c246fb7', tabindex: "-1", class: "message", role: description ? undefined : 'alert', "aria-live": description ? undefined : 'assertive', "aria-atomic": description ? undefined : 'true', "aria-relevant": description && addAriaHiddenForAriaLive ? undefined : 'all', "test-id": "messageContainer" }, this.appearance === 'standard' ? this.messageIcon(this.type) : '', addDivForAriaLive && h("div", { key: '11f8a2db8016024dc4cd51567a6e95a1eaea8e75', class: "sr" }), h("div", { key: 'e6c4f2f7aff57d19e0da9f5d6240f14ae881ddb8', class: "sr message-label" }, messageLabel), h("div", { key: 'e473b74d78048bc8c370f724356066e963b8667e', class: "message-content", "aria-hidden": addAriaHiddenForAriaLive ? 'true' : undefined }, h("slot", { key: 'adcaf51ebf8a023b8b1d5a6556c79b3c2b64d8cc' }))));
|
|
61
61
|
}
|
|
62
62
|
static get is() { return "q2-message"; }
|
|
63
63
|
static get encapsulation() { return "shadow"; }
|
|
@@ -148,7 +148,7 @@ export class Q2Modal {
|
|
|
148
148
|
render() {
|
|
149
149
|
const interiorClasses = `interior`;
|
|
150
150
|
const renderStatus = `${this.renderStatus || ''}`;
|
|
151
|
-
return (h("dialog", { key: '
|
|
151
|
+
return (h("dialog", { key: '23605420f182cf36687c22f5d9a25512fe12aa1f', ref: el => (this.dialogElement = el), class: renderStatus, onClick: this.onClick }, h("div", { key: 'e0bd45778d125c39028e9a7e999b36cdd920d471', class: interiorClasses }, this.title && (h("header", { key: '4658009b1bd010941c7d3128306ab44a1da80194' }, this.title && h("h2", { key: 'ec33e00aa837cd0033f3a5f84f292ee7fb59fb45', class: "title" }, this.title), !!this.closable && (h("q2-btn", { key: '19a02dda7a62729b20d79d7b380ac5225427a25b', class: "btn-close", "test-id": "btnClose", onClick: this.onCancel, label: "tecton.element.modal.close", "hide-label": true }, h("q2-icon", { key: '513d17ba802c6681ec399e44fc07180568695cfb', type: "close" }))))), h("div", { key: 'd291afd421f5a4f4bcccb1e7762cf633f84ffce2', class: "content", ref: el => (this.contentElement = el) }, this.icon && (h("div", { key: '3e4256c22f6b1a0c4da33c6e950ad682115c0be8', class: "icon" }, h("q2-icon", { key: '9440c8af3d66157a1f66dbdbc15490e61d086ca8', type: this.icon, style: this.iconStyle() }))), this.imageSrc && (h("div", { key: 'a6a8451fea0accc0ebf1236bce6581db59af53e8', class: "image" }, h("img", { key: 'a512e1803682e81187647ecddc8ac77d0d07240c', src: this.imageSrc }))), hasSlotContent(this.hostElement, 'content') && h("slot", { key: '128d28110b50319c978b96598f73b204a8b36c68', name: "content" }), this.description && h("p", { key: '498bc624e6187e76365d03e50ad7aeaed23c9a18', class: "description" }, this.description), this.customMarkup && (h("p", { key: '68c58bc1abbf26ed2729fd420b56db3e8b8cce10', class: "customMarkup", innerHTML: sanitizeHTMLString(this.customMarkup) }))), h("footer", { key: '090a95b0eae17b929781cea8292cc531f67f0cb7' }, h("q2-action-group", { key: 'f2b72a7b97df9771be3eeb7d09d8baca6522a2f6', "full-width": true }, h("slot", { key: 'b6eca7b862e41fecd08516ade207a6d444c08ed3', name: "action" }))))));
|
|
152
152
|
}
|
|
153
153
|
static get is() { return "q2-modal"; }
|
|
154
154
|
static get encapsulation() { return "shadow"; }
|
|
@@ -44,7 +44,7 @@ export class Q2Optgroup {
|
|
|
44
44
|
// #endregion
|
|
45
45
|
// #region Render Methods
|
|
46
46
|
render() {
|
|
47
|
-
return (h("div", { key: '
|
|
47
|
+
return (h("div", { key: 'ac0997f3f9bd1b65dced4ac274c3f51a72b41858', class: "q2-optgroup-container", hidden: this.hidden, "aria-labelledby": this.headerId, role: "group" }, h("div", { key: 'a5b2c9d4c9e506f925fad95b272994516e8a6e39', class: "q2-optgroup-header", id: this.headerId }, (this.label && loc(this.label)) || ''), h("div", { key: 'bbbb697d598f71a7cf2ced1a59fbba713c9a7986', class: "q2-optgroup-options" }, h("slot", { key: '8e7fef13eb234ce7104fa4ce8227cf7792f4f9b6' }))));
|
|
48
48
|
}
|
|
49
49
|
static get is() { return "q2-optgroup"; }
|
|
50
50
|
static get encapsulation() { return "shadow"; }
|