@roadtrip/components 3.33.6 → 3.34.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/dist/cjs/road-badge_14.cjs.entry.js +22 -15
- package/dist/cjs/road-badge_14.cjs.entry.js.map +1 -1
- package/dist/cjs/road-modal.cjs.entry.js +1 -1
- package/dist/cjs/road-navbar-item-v2.cjs.entry.js +2 -2
- package/dist/cjs/road-navbar-item.cjs.entry.js +2 -2
- package/dist/cjs/road-navbar-v2.cjs.entry.js +1 -1
- package/dist/cjs/road-navbar.cjs.entry.js +1 -1
- package/dist/cjs/road-phone-number-input.cjs.entry.js +2 -2
- package/dist/cjs/road-plate-number.cjs.entry.js +2 -2
- package/dist/cjs/road-profil-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/road-progress-indicator-horizontal.cjs.entry.js +1 -1
- package/dist/cjs/road-progress-indicator-vertical-item.cjs.entry.js +1 -1
- package/dist/cjs/road-progress-indicator-vertical.cjs.entry.js +1 -1
- package/dist/cjs/road-progress-tracker-item.cjs.entry.js +1 -1
- package/dist/cjs/road-progress-tracker.cjs.entry.js +1 -1
- package/dist/cjs/road-progress.cjs.entry.js +1 -1
- package/dist/cjs/road-radio-group.cjs.entry.js +1 -1
- package/dist/cjs/road-radio.cjs.entry.js +1 -1
- package/dist/cjs/road-range.cjs.entry.js +2 -2
- package/dist/cjs/road-rating.cjs.entry.js +1 -1
- package/dist/cjs/road-segmented-button-bar.cjs.entry.js +1 -1
- package/dist/cjs/road-segmented-button.cjs.entry.js +2 -2
- package/dist/cjs/road-segmented-buttons.cjs.entry.js +1 -1
- package/dist/cjs/road-select-filter.cjs.entry.js +2 -2
- package/dist/cjs/road-select.cjs.entry.js +1 -1
- package/dist/cjs/road-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/road-spinner.cjs.entry.js +1 -1
- package/dist/cjs/road-switch.cjs.entry.js +2 -2
- package/dist/cjs/road-tab-bar.cjs.entry.js +2 -2
- package/dist/cjs/road-tab-button.cjs.entry.js +2 -2
- package/dist/cjs/road-tab.cjs.entry.js +2 -2
- package/dist/cjs/road-table.cjs.entry.js +1 -1
- package/dist/cjs/road-tabs.cjs.entry.js +1 -1
- package/dist/cjs/road-tag.cjs.entry.js +1 -1
- package/dist/cjs/road-text.cjs.entry.js +1 -1
- package/dist/cjs/road-textarea.cjs.entry.js +1 -1
- package/dist/cjs/road-toast.cjs.entry.js +1 -1
- package/dist/cjs/road-toggle.cjs.entry.js +2 -2
- package/dist/cjs/road-toolbar-title-page.cjs.entry.js +1 -1
- package/dist/cjs/road-toolbar-title.cjs.entry.js +1 -1
- package/dist/cjs/road-toolbar-v2.cjs.entry.js +1 -1
- package/dist/cjs/road-tooltip.cjs.entry.js +4 -4
- package/dist/cjs/road-tooltip.cjs.entry.js.map +1 -1
- package/dist/collection/components/input/input.css +1 -0
- package/dist/collection/components/input/input.js +11 -4
- package/dist/collection/components/input/input.js.map +1 -1
- package/dist/collection/components/input/input.stories.js +25 -9
- package/dist/collection/components/input-group/input-group.css +0 -2
- package/dist/collection/components/input-group/input-group.js +5 -5
- package/dist/collection/components/input-group/input-group.js.map +1 -1
- package/dist/collection/components/item/item.js +3 -3
- package/dist/collection/components/label/label.js +1 -1
- package/dist/collection/components/list/list.js +2 -2
- package/dist/collection/components/modal/modal.js +1 -1
- package/dist/collection/components/modal/modal.stories.js +4 -3
- package/dist/collection/components/navbar/navbar.js +1 -1
- package/dist/collection/components/navbar-item/navbar-item.js +2 -2
- package/dist/collection/components/navbar-item-v2/navbar-item-v2.js +2 -2
- package/dist/collection/components/navbar-v2/navbar-v2.js +1 -1
- package/dist/collection/components/phone-number-input/phone-number-input.js +2 -2
- package/dist/collection/components/plate-number/plate-number.js +2 -2
- package/dist/collection/components/plate-number/plate-number.stories.js +18 -12
- package/dist/collection/components/profil-dropdown/profil-dropdown.js +1 -1
- package/dist/collection/components/progress/progress.js +1 -1
- package/dist/collection/components/progress-indicator-horizontal/progress-indicator-horizontal.js +1 -1
- package/dist/collection/components/progress-indicator-vertical/progress-indicator-vertical.js +1 -1
- package/dist/collection/components/progress-indicator-vertical-item/progress-indicator-vertical-item.js +1 -1
- package/dist/collection/components/progress-tracker/progress-tracker.js +1 -1
- package/dist/collection/components/progress-tracker-item/progress-tracker-item.js +1 -1
- package/dist/collection/components/radio/radio.js +1 -1
- package/dist/collection/components/radio/radio.stories.js +12 -6
- package/dist/collection/components/radio-group/radio-group.js +1 -1
- package/dist/collection/components/range/range.js +2 -2
- package/dist/collection/components/range/range.stories.js +4 -3
- package/dist/collection/components/rating/rating.js +1 -1
- package/dist/collection/components/row/row.js +1 -1
- package/dist/collection/components/segmented-button/segmented-button.js +2 -2
- package/dist/collection/components/segmented-button-bar/segmented-button-bar.js +1 -1
- package/dist/collection/components/segmented-buttons/segmented-buttons.js +1 -1
- package/dist/collection/components/select/select.js +1 -1
- package/dist/collection/components/select/select.stories.js +12 -7
- package/dist/collection/components/select-filter/select-filter.js +2 -2
- package/dist/collection/components/select-filter/select-filter.stories.js +4 -2
- package/dist/collection/components/skeleton/skeleton.js +1 -1
- package/dist/collection/components/spinner/spinner.js +1 -1
- package/dist/collection/components/switch/switch.js +2 -2
- package/dist/collection/components/tab/tab.js +2 -2
- package/dist/collection/components/tab-bar/tab-bar.js +2 -2
- package/dist/collection/components/tab-button/tab-button.js +2 -2
- package/dist/collection/components/table/table.js +1 -1
- package/dist/collection/components/tabs/tabs.js +1 -1
- package/dist/collection/components/tag/tag.js +1 -1
- package/dist/collection/components/text/text.js +1 -1
- package/dist/collection/components/textarea/textarea.js +1 -1
- package/dist/collection/components/textarea/textarea.stories.js +18 -12
- package/dist/collection/components/toast/toast.js +1 -1
- package/dist/collection/components/toast/toast.stories.js +4 -2
- package/dist/collection/components/toggle/toggle.js +2 -2
- package/dist/collection/components/toggle/toggle.stories.js +12 -7
- package/dist/collection/components/toolbar/toolbar.js +1 -1
- package/dist/collection/components/toolbar-title/toolbar-title.js +1 -1
- package/dist/collection/components/toolbar-title-page/toolbar-title-page.js +1 -1
- package/dist/collection/components/toolbar-v2/toolbar-v2.js +1 -1
- package/dist/collection/components/tooltip/tooltip.css +31 -0
- package/dist/collection/components/tooltip/tooltip.js +5 -5
- package/dist/collection/components/tooltip/tooltip.js.map +1 -1
- package/dist/collection/components/tooltip/tooltip.stories.js +1 -1
- package/dist/esm/road-badge_14.entry.js +22 -15
- package/dist/esm/road-badge_14.entry.js.map +1 -1
- package/dist/esm/road-modal.entry.js +1 -1
- package/dist/esm/road-navbar-item-v2.entry.js +2 -2
- package/dist/esm/road-navbar-item.entry.js +2 -2
- package/dist/esm/road-navbar-v2.entry.js +1 -1
- package/dist/esm/road-navbar.entry.js +1 -1
- package/dist/esm/road-phone-number-input.entry.js +2 -2
- package/dist/esm/road-plate-number.entry.js +2 -2
- package/dist/esm/road-profil-dropdown.entry.js +1 -1
- package/dist/esm/road-progress-indicator-horizontal.entry.js +1 -1
- package/dist/esm/road-progress-indicator-vertical-item.entry.js +1 -1
- package/dist/esm/road-progress-indicator-vertical.entry.js +1 -1
- package/dist/esm/road-progress-tracker-item.entry.js +1 -1
- package/dist/esm/road-progress-tracker.entry.js +1 -1
- package/dist/esm/road-progress.entry.js +1 -1
- package/dist/esm/road-radio-group.entry.js +1 -1
- package/dist/esm/road-radio.entry.js +1 -1
- package/dist/esm/road-range.entry.js +2 -2
- package/dist/esm/road-rating.entry.js +1 -1
- package/dist/esm/road-segmented-button-bar.entry.js +1 -1
- package/dist/esm/road-segmented-button.entry.js +2 -2
- package/dist/esm/road-segmented-buttons.entry.js +1 -1
- package/dist/esm/road-select-filter.entry.js +2 -2
- package/dist/esm/road-select.entry.js +1 -1
- package/dist/esm/road-skeleton.entry.js +1 -1
- package/dist/esm/road-spinner.entry.js +1 -1
- package/dist/esm/road-switch.entry.js +2 -2
- package/dist/esm/road-tab-bar.entry.js +2 -2
- package/dist/esm/road-tab-button.entry.js +2 -2
- package/dist/esm/road-tab.entry.js +2 -2
- package/dist/esm/road-table.entry.js +1 -1
- package/dist/esm/road-tabs.entry.js +1 -1
- package/dist/esm/road-tag.entry.js +1 -1
- package/dist/esm/road-text.entry.js +1 -1
- package/dist/esm/road-textarea.entry.js +1 -1
- package/dist/esm/road-toast.entry.js +1 -1
- package/dist/esm/road-toggle.entry.js +2 -2
- package/dist/esm/road-toolbar-title-page.entry.js +1 -1
- package/dist/esm/road-toolbar-title.entry.js +1 -1
- package/dist/esm/road-toolbar-v2.entry.js +1 -1
- package/dist/esm/road-tooltip.entry.js +4 -4
- package/dist/esm/road-tooltip.entry.js.map +1 -1
- package/dist/html.html-data.json +13 -1
- package/dist/roadtrip/p-061f6889.entry.js +2 -0
- package/dist/roadtrip/{p-6d3d947e.entry.js.map → p-061f6889.entry.js.map} +1 -1
- package/dist/roadtrip/{p-03656f9a.entry.js → p-0a6c9571.entry.js} +2 -2
- package/dist/roadtrip/{p-e0421465.entry.js → p-0d7b6e32.entry.js} +2 -2
- package/dist/roadtrip/{p-6ff3b37c.entry.js → p-0de7b85d.entry.js} +2 -2
- package/dist/roadtrip/p-16726940.entry.js +2 -0
- package/dist/roadtrip/{p-06fbd2ea.entry.js → p-2f89b651.entry.js} +2 -2
- package/dist/roadtrip/{p-60bd73ad.entry.js → p-327d424c.entry.js} +2 -2
- package/dist/roadtrip/{p-e75ec60f.entry.js → p-38fd91b3.entry.js} +2 -2
- package/dist/roadtrip/p-3aa617b1.entry.js +2 -0
- package/dist/roadtrip/{p-449affa6.entry.js → p-41bab704.entry.js} +2 -2
- package/dist/roadtrip/p-4329a5ff.entry.js +2 -0
- package/dist/roadtrip/{p-42c0e1a9.entry.js → p-4765c524.entry.js} +3 -3
- package/dist/roadtrip/p-4765c524.entry.js.map +1 -0
- package/dist/roadtrip/p-50d9ed52.entry.js +2 -0
- package/dist/roadtrip/{p-db77c354.entry.js.map → p-50d9ed52.entry.js.map} +1 -1
- package/dist/roadtrip/{p-c28e7add.entry.js → p-5ed9e829.entry.js} +2 -2
- package/dist/roadtrip/{p-d80e7563.entry.js → p-6fb0f8b8.entry.js} +2 -2
- package/dist/roadtrip/{p-6c617506.entry.js → p-78e6204e.entry.js} +2 -2
- package/dist/roadtrip/{p-99a6faae.entry.js → p-7a7b1fb6.entry.js} +2 -2
- package/dist/roadtrip/{p-b5fa8c5a.entry.js → p-7d693464.entry.js} +2 -2
- package/dist/roadtrip/{p-3dcaa947.entry.js → p-7e1e110f.entry.js} +2 -2
- package/dist/roadtrip/{p-517aeeca.entry.js → p-7ea16bfa.entry.js} +2 -2
- package/dist/roadtrip/p-8c6ad79a.entry.js +2 -0
- package/dist/roadtrip/{p-b8c5d292.entry.js → p-93272a9d.entry.js} +2 -2
- package/dist/roadtrip/p-97245610.entry.js +2 -0
- package/dist/roadtrip/{p-a254df6d.entry.js → p-a0c91322.entry.js} +2 -2
- package/dist/roadtrip/{p-c465f551.entry.js → p-a406a342.entry.js} +2 -2
- package/dist/roadtrip/{p-e6e9882b.entry.js → p-a5c363f2.entry.js} +2 -2
- package/dist/roadtrip/{p-fe40ab3d.entry.js → p-ab550b59.entry.js} +2 -2
- package/dist/roadtrip/{p-5fea6a74.entry.js → p-ad9055c1.entry.js} +2 -2
- package/dist/roadtrip/{p-2e049c8e.entry.js → p-c4d3dda1.entry.js} +2 -2
- package/dist/roadtrip/{p-3f5dff96.entry.js → p-cb8924ee.entry.js} +2 -2
- package/dist/roadtrip/p-ce386f80.entry.js +2 -0
- package/dist/roadtrip/p-dc9509b1.entry.js +2 -0
- package/dist/roadtrip/p-dc9509b1.entry.js.map +1 -0
- package/dist/roadtrip/{p-c6824205.entry.js → p-df897815.entry.js} +2 -2
- package/dist/roadtrip/{p-eac313e4.entry.js → p-e82c8ca0.entry.js} +2 -2
- package/dist/roadtrip/{p-ea1a175d.entry.js → p-e8bcf7a0.entry.js} +2 -2
- package/dist/roadtrip/{p-37430583.entry.js → p-ebada9f6.entry.js} +2 -2
- package/dist/roadtrip/{p-950b8a43.entry.js → p-f1ef265d.entry.js} +2 -2
- package/dist/roadtrip/{p-167cd2fc.entry.js → p-f5bcb8d6.entry.js} +2 -2
- package/dist/roadtrip/{p-fd3c58b6.entry.js → p-f9ba8499.entry.js} +2 -2
- package/dist/roadtrip/{p-c47ccbf2.entry.js → p-fafcecb2.entry.js} +2 -2
- package/dist/roadtrip/{p-f1b53143.entry.js → p-ff430279.entry.js} +2 -2
- package/dist/roadtrip/roadtrip.esm.js +1 -1
- package/dist/types/components/input/input.d.ts +2 -2
- package/dist/types/components/tooltip/tooltip.d.ts +1 -1
- package/dist/types/components.d.ts +12 -4
- package/hydrate/index.js +77 -70
- package/hydrate/index.mjs +77 -70
- package/package.json +1 -1
- package/dist/roadtrip/p-215afdbd.entry.js +0 -2
- package/dist/roadtrip/p-42c0e1a9.entry.js.map +0 -1
- package/dist/roadtrip/p-4675ea6d.entry.js +0 -2
- package/dist/roadtrip/p-65f9bd9c.entry.js +0 -2
- package/dist/roadtrip/p-6d3d947e.entry.js +0 -2
- package/dist/roadtrip/p-85b1e505.entry.js +0 -2
- package/dist/roadtrip/p-8b04fc62.entry.js +0 -2
- package/dist/roadtrip/p-cfd2919e.entry.js +0 -2
- package/dist/roadtrip/p-db77c354.entry.js +0 -2
- package/dist/roadtrip/p-e6c4c576.entry.js +0 -2
- package/dist/roadtrip/p-e6c4c576.entry.js.map +0 -1
- /package/dist/roadtrip/{p-03656f9a.entry.js.map → p-0a6c9571.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-e0421465.entry.js.map → p-0d7b6e32.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-6ff3b37c.entry.js.map → p-0de7b85d.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-65f9bd9c.entry.js.map → p-16726940.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-06fbd2ea.entry.js.map → p-2f89b651.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-60bd73ad.entry.js.map → p-327d424c.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-e75ec60f.entry.js.map → p-38fd91b3.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-85b1e505.entry.js.map → p-3aa617b1.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-449affa6.entry.js.map → p-41bab704.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-215afdbd.entry.js.map → p-4329a5ff.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-c28e7add.entry.js.map → p-5ed9e829.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-d80e7563.entry.js.map → p-6fb0f8b8.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-6c617506.entry.js.map → p-78e6204e.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-99a6faae.entry.js.map → p-7a7b1fb6.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-b5fa8c5a.entry.js.map → p-7d693464.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-3dcaa947.entry.js.map → p-7e1e110f.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-517aeeca.entry.js.map → p-7ea16bfa.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-4675ea6d.entry.js.map → p-8c6ad79a.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-b8c5d292.entry.js.map → p-93272a9d.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-8b04fc62.entry.js.map → p-97245610.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-a254df6d.entry.js.map → p-a0c91322.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-c465f551.entry.js.map → p-a406a342.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-e6e9882b.entry.js.map → p-a5c363f2.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-fe40ab3d.entry.js.map → p-ab550b59.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-5fea6a74.entry.js.map → p-ad9055c1.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-2e049c8e.entry.js.map → p-c4d3dda1.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-3f5dff96.entry.js.map → p-cb8924ee.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-cfd2919e.entry.js.map → p-ce386f80.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-c6824205.entry.js.map → p-df897815.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-eac313e4.entry.js.map → p-e82c8ca0.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-ea1a175d.entry.js.map → p-e8bcf7a0.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-37430583.entry.js.map → p-ebada9f6.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-950b8a43.entry.js.map → p-f1ef265d.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-167cd2fc.entry.js.map → p-f5bcb8d6.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-fd3c58b6.entry.js.map → p-f9ba8499.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-c47ccbf2.entry.js.map → p-fafcecb2.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-f1b53143.entry.js.map → p-ff430279.entry.js.map} +0 -0
|
@@ -37,9 +37,11 @@ export default {
|
|
|
37
37
|
},
|
|
38
38
|
close: {
|
|
39
39
|
description: "Indicate when closing the toast",
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
table: {
|
|
41
|
+
category: 'Events',
|
|
42
|
+
type: { summary: 'CustomEvent' },
|
|
42
43
|
},
|
|
44
|
+
control: { type: null }, // Désactive l'affichage du contrôle dans Storybook
|
|
43
45
|
},
|
|
44
46
|
progress: {
|
|
45
47
|
description: "the progress bar in the toast.\ncolor=\"info\" for Info\ncolor=\"success\" for success\ncolor=\"warning\" for warning\ncolor=\"danger\" for danger",
|
|
@@ -66,11 +66,11 @@ export class toggle {
|
|
|
66
66
|
}
|
|
67
67
|
render() {
|
|
68
68
|
const labelId = this.toggleId + '-label';
|
|
69
|
-
const textLabel = h("label", { key: '
|
|
69
|
+
const textLabel = h("label", { key: 'fc640d3b84b175679ffbd7be8b6e56ae0298b07c', class: "form-toggle-label", id: labelId, htmlFor: this.toggleId }, this.label);
|
|
70
70
|
const isSpacedClass = this.isSpaced && 'form-toggle-spaced';
|
|
71
71
|
const righttoggleClass = this.hasLeftLabel ? 'form-toggle-right' : '';
|
|
72
72
|
const disabledClass = this.disabled ? 'disabled' : '';
|
|
73
|
-
return (h(Host, { key: '
|
|
73
|
+
return (h(Host, { key: 'b70c71787640105ee246d1ce65dc1eed67ef2541' }, h("input", { key: 'd2921d1eb0a92347acae978122d647e390d4519a', class: "form-toggle-input", type: "checkbox", id: this.toggleId, name: this.name, checked: this.checked, disabled: this.disabled, value: this.value, "aria-checked": `${this.checked}`, "aria-disabled": this.disabled ? 'true' : null, "aria-labelledby": labelId, onClick: this.onClick, onFocus: this.onFocus, onBlur: this.onBlur }), h("label", { key: 'da00339aaf756ab5c888d1bc467ef43c9f1c7f86', class: `form-toggle-label ${isSpacedClass} ${disabledClass}`, htmlFor: this.toggleId }, this.hasLeftLabel && textLabel, h("div", { key: '82a8d49761061494d3c5d8868c3f1ed6145d7c0b', class: `form-toggle-lever ${righttoggleClass}`, "data-off": this.off, "data-on": this.on }), this.hasLeftLabel ? '' : textLabel)));
|
|
74
74
|
}
|
|
75
75
|
static get is() { return "road-toggle"; }
|
|
76
76
|
static get encapsulation() { return "scoped"; }
|
|
@@ -51,22 +51,27 @@ export default {
|
|
|
51
51
|
control: 'boolean',
|
|
52
52
|
},
|
|
53
53
|
roadblur: {
|
|
54
|
+
action: 'roadblur',
|
|
54
55
|
description: "Emitted when the toggle loses focus.",
|
|
55
|
-
|
|
56
|
-
|
|
56
|
+
table: {
|
|
57
|
+
category: 'Events',
|
|
58
|
+
type: { summary: 'CustomEvent' },
|
|
57
59
|
},
|
|
58
60
|
},
|
|
59
61
|
roadfocus: {
|
|
62
|
+
action: 'roadfocus',
|
|
60
63
|
description: "Emitted when the toggle has focus.",
|
|
61
|
-
|
|
62
|
-
|
|
64
|
+
table: {
|
|
65
|
+
category: 'Events',
|
|
66
|
+
type: { summary: 'CustomEvent' },
|
|
63
67
|
},
|
|
64
68
|
},
|
|
65
69
|
roadchange: {
|
|
66
|
-
description: "Emitted when the checked property has changed.",
|
|
67
70
|
action: 'roadchange',
|
|
68
|
-
|
|
69
|
-
|
|
71
|
+
description: "Emitted when the checked property has changed.",
|
|
72
|
+
table: {
|
|
73
|
+
category: 'Events',
|
|
74
|
+
type: { summary: 'CustomEvent' },
|
|
70
75
|
},
|
|
71
76
|
},
|
|
72
77
|
'--toggle-lever-width': {
|
|
@@ -10,7 +10,7 @@ import { Host, h } from "@stencil/core";
|
|
|
10
10
|
export class Toolbar {
|
|
11
11
|
render() {
|
|
12
12
|
const colorClass = this.color !== undefined ? `toolbar-${this.color}` : '';
|
|
13
|
-
return (h(Host, { key: '
|
|
13
|
+
return (h(Host, { key: '1666aad03b553002af15625a73060f5dbf4601b8', class: colorClass }, h("div", { key: 'e627795b3897fe397d86a9c879ea2df29ca40a30', class: "toolbar-container" }, h("slot", { key: '123ce565840045140bf2271fada84db838c1b0d6', name: "start" }), h("slot", { key: '115bb3ee9c656a81b61a601a319ec6923657894a', name: "primary" }), h("div", { key: '123ec182ca9d3dfd6bb2437c5689cce4c6e63069', class: "toolbar-content" }, h("slot", { key: '9c7a630301f524c0adef6bbc6ca6e89cabcba81a' })), h("slot", { key: 'a37d49d76f8df43da0e2969e17497f06e0eae184', name: "secondary" }), h("slot", { key: '62e6e5cbd5d9b1fdc2dead440ef9e60425796f75', name: "end" }))));
|
|
14
14
|
}
|
|
15
15
|
static get is() { return "road-toolbar"; }
|
|
16
16
|
static get encapsulation() { return "shadow"; }
|
|
@@ -4,7 +4,7 @@ import { h } from "@stencil/core";
|
|
|
4
4
|
*/
|
|
5
5
|
export class ToolbarTitle {
|
|
6
6
|
render() {
|
|
7
|
-
return (h("div", { key: '
|
|
7
|
+
return (h("div", { key: '0e4f5a9a555499bdafd072e142da81808f878091', class: "toolbar-title" }, h("slot", { key: '180b36b7360f47a0ebb168100e2fb711c8c18b78' })));
|
|
8
8
|
}
|
|
9
9
|
static get is() { return "road-toolbar-title"; }
|
|
10
10
|
static get encapsulation() { return "shadow"; }
|
|
@@ -4,7 +4,7 @@ import { h } from "@stencil/core";
|
|
|
4
4
|
*/
|
|
5
5
|
export class ToolbarAppName {
|
|
6
6
|
render() {
|
|
7
|
-
return (h("div", { key: '
|
|
7
|
+
return (h("div", { key: 'e2702e4bac40d997c95962c2197b80a3f2716da2', class: "toolbar-title-page" }, h("slot", { key: 'a5af4e9645e566f3177506394b3e7d34d738e7e5' })));
|
|
8
8
|
}
|
|
9
9
|
static get is() { return "road-toolbar-title-page"; }
|
|
10
10
|
static get encapsulation() { return "shadow"; }
|
|
@@ -9,7 +9,7 @@ import { Host, h } from "@stencil/core";
|
|
|
9
9
|
*/
|
|
10
10
|
export class ToolbarV2 {
|
|
11
11
|
render() {
|
|
12
|
-
return (h(Host, { key: '
|
|
12
|
+
return (h(Host, { key: 'aa969f064908bea9d7b1291fdc5165dc7e4ec74b', class: "toolbar" }, h("div", { key: '6e1372064ad1c1a636a151856b267ed27d683f50', class: "toolbar-container" }, h("div", { key: '950306ea6570ad3ce8347d464dd02ed242a6856d', class: "toolbar-container-content-left" }, h("slot", { key: 'ec37c637dd7d95b86971e18a638273453443bfe9', name: "start" }), h("slot", { key: '358f719af8508135698e6fdad3cebe456c53e08b', name: "primary" })), h("div", { key: '7580a7c99a3cf2cd34ac56db6eaa40ee983ed4ee', class: "toolbar-content" }, h("slot", { key: '08f8b181ccc7b913a5957f9ce444c5a87f4be090' })), h("div", { key: '8587600a63e0994d0712f85ab09e07cca4021b1f', class: "toolbar-container-content-right" }, h("slot", { key: 'e053ccd0b7650c2da116ca033ebfa0c8ab14e110', name: "secondary" }), h("slot", { key: '4d3d4436c3a07d0620e38bf3d6ae7c12c0eb7125', name: "end" })))));
|
|
13
13
|
}
|
|
14
14
|
static get is() { return "road-toolbar-v2"; }
|
|
15
15
|
static get encapsulation() { return "shadow"; }
|
|
@@ -115,6 +115,20 @@
|
|
|
115
115
|
transform: translateY(-100%);
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
+
/**
|
|
119
|
+
* Top end
|
|
120
|
+
*/
|
|
121
|
+
|
|
122
|
+
:host([data-tooltip-position="top-end"]) .tooltip {
|
|
123
|
+
left: auto;
|
|
124
|
+
right: 0%;
|
|
125
|
+
transform: translateY(-70%);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
:host([data-tooltip-position="top-end"]) .tooltip-open {
|
|
129
|
+
transform: translateY(-100%);
|
|
130
|
+
}
|
|
131
|
+
|
|
118
132
|
/**
|
|
119
133
|
* Left
|
|
120
134
|
*/
|
|
@@ -175,6 +189,23 @@
|
|
|
175
189
|
transform: translateY(-6%);
|
|
176
190
|
}
|
|
177
191
|
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* Bottom end
|
|
195
|
+
*/
|
|
196
|
+
|
|
197
|
+
:host([data-tooltip-position="bottom-end"]) .tooltip {
|
|
198
|
+
margin-top: 0.5rem;
|
|
199
|
+
left: auto;
|
|
200
|
+
top: 100%;
|
|
201
|
+
right: 0;
|
|
202
|
+
transform: translateY(-40%);
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
:host([data-tooltip-position="bottom-end"]) .tooltip-open {
|
|
206
|
+
transform: translateY(-6%);
|
|
207
|
+
}
|
|
208
|
+
|
|
178
209
|
/**
|
|
179
210
|
* Right
|
|
180
211
|
*/
|
|
@@ -95,12 +95,12 @@ export class Tooltip {
|
|
|
95
95
|
return triggers.includes(triggerType);
|
|
96
96
|
}
|
|
97
97
|
render() {
|
|
98
|
-
return (h(Host, { key: '
|
|
98
|
+
return (h(Host, { key: '172216930c32f4de48df7264149b90c95cdf299f', onMouseOver: this.onMouseOver, onMouseOut: this.onMouseOut, onClick: this.onClick, onFocus: this.onFocus, onBlur: this.onBlur, tabindex: "0" // Makes the element focusable
|
|
99
99
|
,
|
|
100
|
-
"data-tooltip-position": this.position }, h("slot", { key: '
|
|
100
|
+
"data-tooltip-position": this.position }, h("slot", { key: 'e87dd66f22d8586f1916b4fdd9839bec64d3aea4', "aria-describedby": this.tooltipId }), h("div", { key: 'b61044b9938cf4859676d05a76a6fc4e8f8fb77a', part: "tooltip", id: this.tooltipId, class: {
|
|
101
101
|
tooltip: true,
|
|
102
102
|
'tooltip-open': this.isOpen,
|
|
103
|
-
}, role: "tooltip", "aria-hidden": !this.isOpen ? 'true' : 'false' }, this.content, h("slot", { key: '
|
|
103
|
+
}, role: "tooltip", "aria-hidden": !this.isOpen ? 'true' : 'false' }, this.content, h("slot", { key: 'a7a84bbde98a3ee34b8ab8c1d397446dbd314f2e', name: "tooltip-content" }))));
|
|
104
104
|
}
|
|
105
105
|
static get is() { return "road-tooltip"; }
|
|
106
106
|
static get encapsulation() { return "shadow"; }
|
|
@@ -160,8 +160,8 @@ export class Tooltip {
|
|
|
160
160
|
"type": "string",
|
|
161
161
|
"mutable": false,
|
|
162
162
|
"complexType": {
|
|
163
|
-
"original": "| 'top'\n | 'right'\n | 'bottom'\n | 'top-left'\n | 'top-right'\n | 'bottom-left'\n | 'bottom-right'\n | 'left'",
|
|
164
|
-
"resolved": "\"bottom\" | \"bottom-left\" | \"bottom-right\" | \"left\" | \"right\" | \"top\" | \"top-left\" | \"top-right\"",
|
|
163
|
+
"original": "| 'top'\n | 'right'\n | 'bottom'\n | 'top-left'\n | 'top-right'\n | 'top-start'\n | 'top-end'\n | 'bottom-left'\n | 'bottom-right'\n | 'bottom-start'\n | 'bottom-end'\n | 'left'",
|
|
164
|
+
"resolved": "\"bottom\" | \"bottom-end\" | \"bottom-left\" | \"bottom-right\" | \"bottom-start\" | \"left\" | \"right\" | \"top\" | \"top-end\" | \"top-left\" | \"top-right\" | \"top-start\"",
|
|
165
165
|
"references": {}
|
|
166
166
|
},
|
|
167
167
|
"required": false,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.js","sourceRoot":"","sources":["../../../src/components/tooltip/tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,E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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF;AAED,IAAI,UAAU,GAAG,CAAC,CAAC","sourcesContent":["import { Component, Host, h, Prop, Method, Element } from '@stencil/core';\n\n/**\n * @slot tooltip-content - content of the tooltip, if you need to add html content, use this slot, otherwise use directly the content prop.\n *\n * @part tooltip - tooltip container\n */\n\n@Component({\n tag: 'road-tooltip',\n styleUrl: 'tooltip.css',\n shadow: true,\n})\nexport class Tooltip {\n\n @Element() el!: HTMLRoadTooltipElement;\n\n /**\n * The id of tooltip\n */\n @Prop() tooltipId: string = `road-tooltip-${++tooltipIds}`;\n\n /**\n * The tooltip's content.\n */\n @Prop() content = '';\n\n /**\n * The position of the tooltip.\n */\n @Prop() position:\n | 'top'\n | 'right'\n | 'bottom'\n | 'top-left'\n | 'top-right'\n | 'top-start'\n | 'top-end'\n | 'bottom-left'\n | 'bottom-right'\n | 'bottom-start'\n | 'bottom-end'\n | 'left' = 'top';\n\n /**\n * The content align of the tooltip.\n */\n @Prop() contentAlign:\n | 'center'\n | 'left' = 'center';\n\n /**\n * Indicates whether or not the tooltip is open. You can use this or the open/close methods.\n */\n @Prop({ mutable: true }) isOpen = false;\n\n /**\n * Controls how the tooltip is activated. Possible options include `click`, `hover`, `focus`. Multiple\n * options can be passed by separating them with a space. When manual is used, the tooltip must be activated\n * programmatically.\n */\n @Prop() trigger: string = 'hover';\n\n /**\n * Open the tooltip.\n */\n @Method()\n async open() {\n this.isOpen = true;\n }\n\n /**\n * Close the tooltip.\n */\n @Method()\n async close() {\n this.isOpen = false;\n }\n\n private onClick = () => {\n if (this.hasTrigger('click')) {\n this.isOpen ? this.close() : this.open();\n }\n };\n\n private onMouseOver = () => {\n if (this.hasTrigger('hover')) {\n this.open();\n }\n };\n\n private onMouseOut = () => {\n if (this.hasTrigger('hover')) {\n this.close();\n }\n };\n\nprivate isKeyboardNavigation = false;\n\n// Écoute les événements pour détecter le mode d'interaction\ncomponentDidMount() {\n document.addEventListener('keydown', this.handleKeyDown);\n document.addEventListener('mousedown', this.handleMouseDown);\n}\n\ncomponentDidLoad() {\n document.addEventListener('keydown', this.handleKeyDown);\n document.addEventListener('mousedown', this.handleMouseDown);\n}\n\ncomponentWillUnmount() {\n document.removeEventListener('keydown', this.handleKeyDown);\n document.removeEventListener('mousedown', this.handleMouseDown);\n}\n\n\nprivate handleKeyDown = () => {\n this.isKeyboardNavigation = true;\n};\n\nprivate handleMouseDown = () => {\n this.isKeyboardNavigation = false;\n};\n\nprivate onFocus = () => {\n if (this.isKeyboardNavigation && this.hasTrigger('hover')) {\n this.open();\n }\n};\n\n\n private onBlur = () => {\n if (this.isKeyboardNavigation && this.hasTrigger('hover')) {\n this.close();\n }\n };\n\n private hasTrigger(triggerType: string) {\n const triggers = this.trigger.split(' ');\n return triggers.includes(triggerType);\n }\n\n render() {\n return (\n <Host\n onMouseOver={this.onMouseOver}\n onMouseOut={this.onMouseOut}\n onClick={this.onClick}\n onFocus={this.onFocus}\n onBlur={this.onBlur}\n tabindex=\"0\" // Makes the element focusable\n data-tooltip-position={this.position}\n >\n <slot aria-describedby={this.tooltipId} />\n\n <div\n part=\"tooltip\"\n id={this.tooltipId}\n class={{\n tooltip: true,\n 'tooltip-open': this.isOpen,\n }}\n role=\"tooltip\"\n aria-hidden={!this.isOpen ? 'true' : 'false'}\n >\n {this.content}\n <slot name=\"tooltip-content\" />\n </div>\n </Host>\n );\n }\n}\n\nlet tooltipIds = 0;\n"]}
|
|
@@ -33,7 +33,7 @@ Playground.argTypes = {
|
|
|
33
33
|
},
|
|
34
34
|
position: {
|
|
35
35
|
description: "The position of the tooltip.",
|
|
36
|
-
options: ['top', 'left', 'bottom', 'right', 'top-left', 'top-right', 'bottom-left', 'bottom-right'],
|
|
36
|
+
options: ['top', 'left', 'bottom', 'right', 'top-left', 'top-right', 'top-start', 'top-end', 'bottom-left', 'bottom-right', 'bottom-end'],
|
|
37
37
|
control: {
|
|
38
38
|
type: 'radio',
|
|
39
39
|
},
|
|
@@ -17958,6 +17958,9 @@ const Input = class {
|
|
|
17958
17958
|
this.roadBlur.emit(value);
|
|
17959
17959
|
this.roadChange.emit({ value });
|
|
17960
17960
|
}
|
|
17961
|
+
else {
|
|
17962
|
+
this.roadBlur.emit(value);
|
|
17963
|
+
}
|
|
17961
17964
|
// Appeler enforceMinMaxValue lors de la perte de focus
|
|
17962
17965
|
this.enforceMinMaxValue();
|
|
17963
17966
|
};
|
|
@@ -18022,7 +18025,11 @@ const Input = class {
|
|
|
18022
18025
|
const hasValueClass = this.value !== '' && this.value !== null ? 'has-value' : '';
|
|
18023
18026
|
const lessLabelClass = this.label !== '' ? '' : 'less-label';
|
|
18024
18027
|
const isInvalidClass = this.error !== undefined && this.error !== '' ? 'is-invalid' : '';
|
|
18025
|
-
return (h(Host, { key: '
|
|
18028
|
+
return (h(Host, { key: '1dc5be8cca2464709ea4661a875c35feaec6d7b3', "aria-disabled": this.disabled ? 'true' : null, class: this.sizes && `input-${this.sizes}`, value: value, blockdecimal: this.blockdecimal }, h("input", { key: '57575b6d01b4bf45703e76e0ac4b7e75aa7177ae', class: `form-control ${hasValueClass} ${isInvalidClass} ${lessLabelClass}`, id: this.inputId, "aria-disabled": this.disabled ? 'true' : null, "aria-labelledby": labelId, disabled: this.disabled, autoCapitalize: this.autocapitalize, autoComplete: this.autocomplete, autoCorrect: this.autocorrect, enterKeyHint: this.enterkeyhint, autoFocus: this.autofocus, inputMode: this.inputmode, min: this.min, max: this.max, minLength: this.minlength, maxLength: this.maxlength, name: this.name, pattern: this.pattern, placeholder: this.placeholder, readOnly: this.readonly, required: this.required, spellcheck: this.spellcheck, step: this.step, size: this.size, type: this.type, value: value, onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus, onKeyDown: this.type === 'number' ? (event) => this.handleKeyDown(event) : undefined, "data-cy": 'road-input' }), h("label", { key: '90ab2cc491c203f18e37654e361a03bf31f6e908', class: "form-label", id: labelId, htmlFor: this.inputId }, this.label), this.error && this.error !== '' && (Array.isArray(this.error)
|
|
18029
|
+
? // Si error est un tableau, on itère et génère un <p> pour chaque élément
|
|
18030
|
+
this.error.map((err, index) => (h("p", { key: index, class: "invalid-feedback" }, h("road-icon", { slot: "start", name: "alert-error-solid", "aria-hidden": "true", size: "sm" }), err.trim(), " ")))
|
|
18031
|
+
: // Si error est une chaîne, on la divise avec split et génère un <p> pour chaque élément
|
|
18032
|
+
this.error.split(',').map((err, index) => (h("p", { key: index, class: "invalid-feedback" }, h("road-icon", { slot: "start", name: "alert-error-solid", "aria-hidden": "true", size: "sm" }), err.trim(), " ")))), this.helper && this.helper !== '' && h("p", { key: 'ac10569a3eacf0e85142238d18139bb4b95c24e3', class: "helper" }, this.helper), this.type && this.type == 'password' && h("slot", { key: '17e2a2ea624850955a29167e0475cff88960cc49', name: "checklistPassword" })));
|
|
18026
18033
|
}
|
|
18027
18034
|
static get watchers() { return {
|
|
18028
18035
|
"debounce": ["debounceChanged"],
|
|
@@ -18032,7 +18039,7 @@ const Input = class {
|
|
|
18032
18039
|
let inputIds = 0;
|
|
18033
18040
|
Input.style = RoadInputStyle0;
|
|
18034
18041
|
|
|
18035
|
-
const inputGroupCss = ":host{display:block}.input-group{position:relative;display:flex;flex-wrap:wrap;align-items:stretch;width:100%;font-family:var(--road-font, sans-serif)}::slotted(road-input),::slotted(input),::slotted(textarea),::slotted(road-select){position:relative;flex:1 1 auto;width:1%;margin-bottom:0}::slotted([slot=\"prepend\"]){margin-right:-3px;border-right-color:transparent;border-color:var(--road-input-outline);border-top-right-radius:0;border-bottom-right-radius:0;position:absolute;left:0;top:0;bottom:0}::slotted([slot=\"append\"]){margin-left:-0.25rem;border-color:var(--road-input-outline);border-left-width:0;position:absolute;right:0;top:0;bottom:0}@media (hover: hover){.input-group:not(.is-disabled):hover ::slotted([slot=\"prepend\"]){border-
|
|
18042
|
+
const inputGroupCss = ":host{display:block}.input-group{position:relative;display:flex;flex-wrap:wrap;align-items:stretch;width:100%;font-family:var(--road-font, sans-serif)}::slotted(road-input),::slotted(input),::slotted(textarea),::slotted(road-select){position:relative;flex:1 1 auto;width:1%;margin-bottom:0}::slotted([slot=\"prepend\"]){margin-right:-3px;border-right-color:transparent;border-color:var(--road-input-outline);border-top-right-radius:0;border-bottom-right-radius:0;position:absolute;left:0;top:0;bottom:0}::slotted([slot=\"append\"]){margin-left:-0.25rem;border-color:var(--road-input-outline);border-left-width:0;position:absolute;right:0;top:0;bottom:0}@media (hover: hover){.input-group:not(.is-disabled):hover ::slotted([slot=\"prepend\"]){border-right-color:transparent}.input-group:not(.is-disabled):hover ::slotted([slot=\"append\"]){border-left-color:transparent}:host(.phone-number-group) .input-group:not(.is-disabled):hover ::slotted([slot=\"prepend\"]){border-color:var(--road-input-outline-variant)}}.input-group:focus-within ::slotted([slot=\"prepend\"]),:host(.phone-number-group) .input-group:focus-within ::slotted([slot=\"prepend\"]){border-color:var(--road-grey-0);border-width:2px;border-right-color:transparent;outline:none;}.input-group:focus-within ::slotted([slot=\"append\"]){border-color:var(--road-grey-0);border-width:2px;border-left-color:transparent;outline:none;}.input-group:focus-within ::slotted(road-input):focus-visible{border-color:var(--road-grey-0);border-width:2px;outline:none;}.input-group-prepend,.input-group-append{display:flex;height:3rem}::slotted(road-button){--padding-start:0.5rem;--padding-end:0.5rem;position:relative;z-index:2;min-width:3rem;margin:0;font-size:var(--road-font-size-14)}::slotted(road-button):hover{background-color:var(--road-button-ghost-variant)}.input-group-prepend{z-index:1;order:-1;position:relative}.input-group-prepend~.form-label{left:calc(3rem + 1px)}.input-group-append{position:relative;z-index:1;border-radius:0 0.25rem 0.25rem 0}::slotted(label){display:flex;align-items:center;padding:0 0.5rem;margin-bottom:0;color:var(--road-on-surface);text-align:center;white-space:nowrap;cursor:text;border-radius:0.25rem;-webkit-tap-highlight-color:rgba(0, 0, 0, 0)}::slotted(road-label){display:flex;align-items:center;padding:0 0.5rem;margin-bottom:0;color:var(--road-on-surface);text-align:center;white-space:nowrap;cursor:text;background:var(--road-surface);border:1px solid var(--road-input-outline);border-radius:0.25rem;-webkit-tap-highlight-color:rgba(0, 0, 0, 0)}::slotted(road-input:not(:first-child)),::slotted(road-select:not(:first-child)){border-radius:0}.input-group-append ::slotted([slot=\"append\"]){border-left:0;border-top-left-radius:0;border-bottom-left-radius:0}.input-group-prepend ::slotted([slot=\"prepend\"]){border-right:0;border-top-right-radius:0;border-bottom-right-radius:0}:host(.phone-number-group) .input-group-prepend ::slotted([slot=\"prepend\"]){border-right:1px solid var(--road-input-outline);border-top-right-radius:0;border-bottom-right-radius:0}.input-group-prepend ::slotted(label){margin-right:calc(-1rem + 1px)}.input-group-append:hover ::slotted(road-button){background-color:var(--road-button-ghost-variant)}.size-xl .input-group-prepend,.size-xl .input-group-append{height:3.5rem}.size-xl ::slotted(road-button){height:3.5rem}.input-group.is-invalid ::slotted([slot=\"append\"]),.input-group.is-invalid ::slotted([slot=\"prepend\"]){border-color:var(--road-danger-outline)}:host(.phone-number-group) .input-group.is-invalid ::slotted([slot=\"prepend\"]){border-color:var(--road-danger-outline)}:host([disabled]){cursor:not-allowed}:host([disabled]) .input-group{pointer-events:none;}:host([disabled]) ::slotted([slot=\"append\"]),:host([disabled]) ::slotted([slot=\"prepend\"]){color:var(--road-on-surface-disabled);cursor:not-allowed;background:#e4e5e9}:host([disabled]) ::slotted([slot=\"append\"] road-icon),:host([disabled]) ::slotted([slot=\"prepend\"] road-icon){color:var(--road-on-surface-disabled)}:host([disabled]) road-icon{color:var(--road-on-surface-disabled)}";
|
|
18036
18043
|
const RoadInputGroupStyle0 = inputGroupCss;
|
|
18037
18044
|
|
|
18038
18045
|
const InputGroup = class {
|
|
@@ -18065,16 +18072,16 @@ const InputGroup = class {
|
|
|
18065
18072
|
const formSelect = this.el.querySelector('.form-select');
|
|
18066
18073
|
const formSelectLabel = this.el.querySelector('.form-select-label');
|
|
18067
18074
|
if (formControl) {
|
|
18068
|
-
formControl.style.textIndent = hasPrepend ? '
|
|
18075
|
+
formControl.style.textIndent = hasPrepend ? '2.1rem' : '';
|
|
18069
18076
|
}
|
|
18070
18077
|
if (formSelect) {
|
|
18071
|
-
formSelect.style.textIndent = hasPrepend ? '
|
|
18078
|
+
formSelect.style.textIndent = hasPrepend ? '2.1rem' : '';
|
|
18072
18079
|
}
|
|
18073
18080
|
if (formLabel) {
|
|
18074
|
-
formLabel.style.textIndent = hasPrepend ? '2.
|
|
18081
|
+
formLabel.style.textIndent = hasPrepend ? '2.8rem' : '';
|
|
18075
18082
|
}
|
|
18076
18083
|
if (formSelectLabel) {
|
|
18077
|
-
formSelectLabel.style.textIndent = hasPrepend ? '2.
|
|
18084
|
+
formSelectLabel.style.textIndent = hasPrepend ? '2.8rem' : '';
|
|
18078
18085
|
}
|
|
18079
18086
|
}
|
|
18080
18087
|
componentDidLoad() {
|
|
@@ -18090,7 +18097,7 @@ const InputGroup = class {
|
|
|
18090
18097
|
? `size-${this.el.querySelector('road-input').sizes}`
|
|
18091
18098
|
: '';
|
|
18092
18099
|
const disabledClass = this.disabled ? 'is-disabled' : '';
|
|
18093
|
-
return (h("div", { key: '
|
|
18100
|
+
return (h("div", { key: '54938b0939fc88368a47099bd3263a4eaaa273fc', class: `input-group ${errorClass} ${disabledClass} ${sizeClass}` }, h("div", { key: '3039896e2e22c633d4b298899488b16dc2d34018', class: "input-group-prepend" }, h("slot", { key: 'ad675a53558b83d6dd5b0ae044db538245da0316', name: "prepend" })), h("slot", { key: '1283ee327bbe9755e107a80cf700293c685429bf' }), h("div", { key: '677da10746507b1171498461da76d7e8e7d6056a', class: "input-group-append" }, h("slot", { key: '2bbf8d38a2343e362ee20bc8c3d54f88fd992eed', name: "append" }))));
|
|
18094
18101
|
}
|
|
18095
18102
|
get el() { return getElement(this); }
|
|
18096
18103
|
static get watchers() { return {
|
|
@@ -18153,13 +18160,13 @@ const Item = class {
|
|
|
18153
18160
|
target,
|
|
18154
18161
|
};
|
|
18155
18162
|
const showDetail = detail !== undefined && detail;
|
|
18156
|
-
return (h(Host, { key: '
|
|
18163
|
+
return (h(Host, { key: '9b71788b470f7fc686c9953868c59515607d5b01', "aria-disabled": disabled ? 'true' : null, class: {
|
|
18157
18164
|
[`item-lines-${lines}`]: lines !== undefined,
|
|
18158
|
-
} }, h(TagType, Object.assign({ key: '
|
|
18165
|
+
} }, h(TagType, Object.assign({ key: 'd05ff0c98f1a0713e935954b995e0f6476069414' }, attrs, { class: {
|
|
18159
18166
|
'item-native': true,
|
|
18160
18167
|
'item-active': this.active,
|
|
18161
18168
|
[`layout-${layout}`]: layout !== undefined,
|
|
18162
|
-
}, part: "native", disabled: disabled }), h("slot", { key: '
|
|
18169
|
+
}, part: "native", disabled: disabled }), h("slot", { key: '4287ffe1ac1fc6471bef8cc1c060637bd6889ef4', name: "start" }), h("div", { key: '70dff3ab1b88fc4e51e83280504c85cfdbef6e75', class: "item-inner" }, h("div", { key: '872a6387bceac2c8ef76d8ebd5ecc47cb6f93aa7', class: "input-wrapper" }, h("slot", { key: 'c0e117161a86fb92ed121ab1fdc71de76a9d1aae' }), h("div", { key: '23f4c082e69b0584cecadaf62c3cda21073068d6', class: "input-wrapper-info" }, h("road-label", { key: '7af0a0698d00c0681181038163b8f5c15ef82e9a', class: "input-wrapper-info-title" }, this.titleItem), h("p", { key: '87653ef8324a8e8b82270d697e657e242e9494be', class: "input-wrapper-info-text" }, this.text))), h("slot", { key: '4d58e9d7d5f808b3a7f6bc2dee4912015070a495', name: "end" }), showDetail && h("road-icon", { key: '6422e581f75db848cc4e788d7fd9f48709bd7588', icon: detailIcon, lazy: false, class: "item-detail-icon" })))));
|
|
18163
18170
|
}
|
|
18164
18171
|
get el() { return getElement(this); }
|
|
18165
18172
|
};
|
|
@@ -18173,7 +18180,7 @@ const Label = class {
|
|
|
18173
18180
|
registerInstance(this, hostRef);
|
|
18174
18181
|
}
|
|
18175
18182
|
render() {
|
|
18176
|
-
return (h("slot", { key: '
|
|
18183
|
+
return (h("slot", { key: 'e6b8246e6673eeaa1d33517a58de2df43091c4dc' }));
|
|
18177
18184
|
}
|
|
18178
18185
|
};
|
|
18179
18186
|
Label.style = RoadLabelStyle0;
|
|
@@ -18187,9 +18194,9 @@ const List = class {
|
|
|
18187
18194
|
}
|
|
18188
18195
|
render() {
|
|
18189
18196
|
const { lines } = this;
|
|
18190
|
-
return (h(Host, { key: '
|
|
18197
|
+
return (h(Host, { key: 'a830b17499a394ad9bccaaed0aa2056ae538929b', class: {
|
|
18191
18198
|
[`list-lines-${lines}`]: lines !== undefined,
|
|
18192
|
-
} }, h("slot", { key: '
|
|
18199
|
+
} }, h("slot", { key: '1010f8f4a4376db24412ea8e5f407f3951ac8333' })));
|
|
18193
18200
|
}
|
|
18194
18201
|
};
|
|
18195
18202
|
List.style = RoadListStyle0;
|
|
@@ -18202,7 +18209,7 @@ const Row = class {
|
|
|
18202
18209
|
registerInstance(this, hostRef);
|
|
18203
18210
|
}
|
|
18204
18211
|
render() {
|
|
18205
|
-
return (h(Host, { key: '
|
|
18212
|
+
return (h(Host, { key: '4d56e5a10387b76a5b9848b29b66b5d1893c1b39' }, h("slot", { key: 'ba686ef7958ff67384c6ca8d88767f1dd55e9f5a' })));
|
|
18206
18213
|
}
|
|
18207
18214
|
};
|
|
18208
18215
|
Row.style = RoadRowStyle0;
|
|
@@ -18216,7 +18223,7 @@ const Toolbar = class {
|
|
|
18216
18223
|
}
|
|
18217
18224
|
render() {
|
|
18218
18225
|
const colorClass = this.color !== undefined ? `toolbar-${this.color}` : '';
|
|
18219
|
-
return (h(Host, { key: '
|
|
18226
|
+
return (h(Host, { key: '1666aad03b553002af15625a73060f5dbf4601b8', class: colorClass }, h("div", { key: 'e627795b3897fe397d86a9c879ea2df29ca40a30', class: "toolbar-container" }, h("slot", { key: '123ce565840045140bf2271fada84db838c1b0d6', name: "start" }), h("slot", { key: '115bb3ee9c656a81b61a601a319ec6923657894a', name: "primary" }), h("div", { key: '123ec182ca9d3dfd6bb2437c5689cce4c6e63069', class: "toolbar-content" }, h("slot", { key: '9c7a630301f524c0adef6bbc6ca6e89cabcba81a' })), h("slot", { key: 'a37d49d76f8df43da0e2969e17497f06e0eae184', name: "secondary" }), h("slot", { key: '62e6e5cbd5d9b1fdc2dead440ef9e60425796f75', name: "end" }))));
|
|
18220
18227
|
}
|
|
18221
18228
|
};
|
|
18222
18229
|
Toolbar.style = RoadToolbarStyle0;
|