@roadtrip/components 3.51.3 → 3.53.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/loader.cjs.js +1 -1
- package/dist/cjs/road-badge_14.cjs.entry.js +70 -14
- package/dist/cjs/road-badge_14.cjs.entry.js.map +1 -1
- package/dist/cjs/road-card.cjs.entry.js +12 -2
- package/dist/cjs/road-card.cjs.entry.js.map +1 -1
- package/dist/cjs/road-segmented-button-bar.cjs.entry.js +1 -1
- package/dist/cjs/road-segmented-button.cjs.entry.js +4 -3
- package/dist/cjs/road-segmented-button.cjs.entry.js.map +1 -1
- package/dist/cjs/road-segmented-buttons.cjs.entry.js +1 -1
- package/dist/cjs/road-select-filter.cjs.entry.js +1 -1
- 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-status-chip.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-time-range-picker.cjs.entry.js +1 -1
- package/dist/cjs/road-toast.cjs.entry.js +1 -1
- package/dist/cjs/road-toast.cjs.entry.js.map +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 +3 -3
- package/dist/cjs/roadtrip.cjs.js +1 -1
- package/dist/collection/components/badge/badge.css +9 -1
- package/dist/collection/components/badge/badge.js +1 -1
- package/dist/collection/components/badge/badge.stories.js +1 -1
- package/dist/collection/components/card/card.css +10 -0
- package/dist/collection/components/card/card.js +31 -1
- package/dist/collection/components/card/card.js.map +1 -1
- package/dist/collection/components/card/card.stories.js +16 -0
- package/dist/collection/components/drawer/drawer.css +41 -3
- package/dist/collection/components/drawer/drawer.js +113 -12
- package/dist/collection/components/drawer/drawer.js.map +1 -1
- package/dist/collection/components/icon/icon.js +1 -1
- package/dist/collection/components/segmented-button/segmented-button.css +14 -1
- package/dist/collection/components/segmented-button/segmented-button.js +24 -4
- package/dist/collection/components/segmented-button/segmented-button.js.map +1 -1
- 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/segmented-buttons/segmented-buttons.stories.js +39 -0
- package/dist/collection/components/select/select.js +1 -1
- package/dist/collection/components/select-filter/select-filter.js +1 -1
- package/dist/collection/components/skeleton/skeleton.js +1 -1
- package/dist/collection/components/spinner/spinner.js +1 -1
- package/dist/collection/components/status-chip/status-chip.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/time-range-picker/time-range-picker.js +1 -1
- package/dist/collection/components/toast/toast.js +1 -1
- package/dist/collection/components/toast/toast.js.map +1 -1
- package/dist/collection/components/toggle/toggle.js +2 -2
- 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.js +3 -3
- package/dist/esm/loader.js +1 -1
- package/dist/esm/road-badge_14.entry.js +70 -14
- package/dist/esm/road-badge_14.entry.js.map +1 -1
- package/dist/esm/road-card.entry.js +12 -2
- package/dist/esm/road-card.entry.js.map +1 -1
- package/dist/esm/road-segmented-button-bar.entry.js +1 -1
- package/dist/esm/road-segmented-button.entry.js +4 -3
- package/dist/esm/road-segmented-button.entry.js.map +1 -1
- package/dist/esm/road-segmented-buttons.entry.js +1 -1
- package/dist/esm/road-select-filter.entry.js +1 -1
- 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-status-chip.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-time-range-picker.entry.js +1 -1
- package/dist/esm/road-toast.entry.js +1 -1
- package/dist/esm/road-toast.entry.js.map +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 +3 -3
- package/dist/esm/roadtrip.js +1 -1
- package/dist/html.html-data.json +25 -0
- package/dist/roadtrip/{p-0c6ad72e.entry.js → p-19ff95e3.entry.js} +2 -2
- package/dist/roadtrip/{p-3dfa5636.entry.js → p-22de5cde.entry.js} +2 -2
- package/dist/roadtrip/{p-ac64606d.entry.js → p-2b2749da.entry.js} +2 -2
- package/dist/roadtrip/{p-ce281723.entry.js → p-319a0ef7.entry.js} +5 -5
- package/dist/roadtrip/p-319a0ef7.entry.js.map +1 -0
- package/dist/roadtrip/{p-9b1fa6a6.entry.js → p-320b58c5.entry.js} +2 -2
- package/dist/roadtrip/p-3444d6fe.entry.js +2 -0
- package/dist/roadtrip/p-3444d6fe.entry.js.map +1 -0
- package/dist/roadtrip/{p-4374d63f.entry.js → p-3646f072.entry.js} +2 -2
- package/dist/roadtrip/{p-4374d63f.entry.js.map → p-3646f072.entry.js.map} +1 -1
- package/dist/roadtrip/{p-335498ee.entry.js → p-368b36e3.entry.js} +2 -2
- package/dist/roadtrip/p-3d30fba4.entry.js +2 -0
- package/dist/roadtrip/{p-1f1021bc.entry.js → p-41aa8071.entry.js} +2 -2
- package/dist/roadtrip/p-41dbdb75.entry.js +2 -0
- package/dist/roadtrip/p-41dbdb75.entry.js.map +1 -0
- package/dist/roadtrip/{p-456f66fc.entry.js → p-54ccd027.entry.js} +2 -2
- package/dist/roadtrip/{p-187ab5f5.entry.js → p-579fce4c.entry.js} +2 -2
- package/dist/roadtrip/p-7563a0f9.entry.js +2 -0
- package/dist/roadtrip/{p-7aceed1a.entry.js.map → p-7563a0f9.entry.js.map} +1 -1
- package/dist/roadtrip/{p-dbb675a2.entry.js → p-77578033.entry.js} +2 -2
- package/dist/roadtrip/{p-543ef281.entry.js → p-93ffbb6e.entry.js} +2 -2
- package/dist/roadtrip/{p-6311f3f0.entry.js → p-9ecf3634.entry.js} +2 -2
- package/dist/roadtrip/{p-718c6406.entry.js → p-a25cdb1f.entry.js} +2 -2
- package/dist/roadtrip/{p-83f9db8d.entry.js → p-ae250ecf.entry.js} +2 -2
- package/dist/roadtrip/{p-3d4cd373.entry.js → p-ae53bc43.entry.js} +2 -2
- package/dist/roadtrip/{p-61190b12.entry.js → p-bfc2379c.entry.js} +2 -2
- package/dist/roadtrip/{p-da0a75ff.entry.js → p-c6206416.entry.js} +2 -2
- package/dist/roadtrip/{p-85e18b2f.entry.js → p-d42b2603.entry.js} +2 -2
- package/dist/roadtrip/{p-5381957c.entry.js → p-fb7caf90.entry.js} +2 -2
- package/dist/roadtrip/{p-d1de4eb6.entry.js → p-fba1b425.entry.js} +2 -2
- package/dist/roadtrip/{p-ceb904c0.entry.js → p-fc261f58.entry.js} +2 -2
- package/dist/roadtrip/roadtrip.esm.js +1 -1
- package/dist/roadtrip/roadtrip.esm.js.map +1 -1
- package/dist/types/components/card/card.d.ts +6 -0
- package/dist/types/components/drawer/drawer.d.ts +16 -0
- package/dist/types/components/segmented-button/segmented-button.d.ts +5 -1
- package/dist/types/components.d.ts +38 -2
- package/dist/types/interface.d.ts +1 -1
- package/hydrate/index.js +124 -52
- package/hydrate/index.mjs +124 -52
- package/package.json +1 -1
- package/dist/roadtrip/p-249b8592.entry.js +0 -2
- package/dist/roadtrip/p-4bbe3312.entry.js +0 -2
- package/dist/roadtrip/p-4bbe3312.entry.js.map +0 -1
- package/dist/roadtrip/p-7aceed1a.entry.js +0 -2
- package/dist/roadtrip/p-ce281723.entry.js.map +0 -1
- package/dist/roadtrip/p-f0d930e5.entry.js +0 -2
- package/dist/roadtrip/p-f0d930e5.entry.js.map +0 -1
- /package/dist/roadtrip/{p-0c6ad72e.entry.js.map → p-19ff95e3.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-3dfa5636.entry.js.map → p-22de5cde.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-ac64606d.entry.js.map → p-2b2749da.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-9b1fa6a6.entry.js.map → p-320b58c5.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-335498ee.entry.js.map → p-368b36e3.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-249b8592.entry.js.map → p-3d30fba4.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-1f1021bc.entry.js.map → p-41aa8071.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-456f66fc.entry.js.map → p-54ccd027.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-187ab5f5.entry.js.map → p-579fce4c.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-dbb675a2.entry.js.map → p-77578033.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-543ef281.entry.js.map → p-93ffbb6e.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-6311f3f0.entry.js.map → p-9ecf3634.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-718c6406.entry.js.map → p-a25cdb1f.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-83f9db8d.entry.js.map → p-ae250ecf.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-3d4cd373.entry.js.map → p-ae53bc43.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-61190b12.entry.js.map → p-bfc2379c.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-da0a75ff.entry.js.map → p-c6206416.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-85e18b2f.entry.js.map → p-d42b2603.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-5381957c.entry.js.map → p-fb7caf90.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-d1de4eb6.entry.js.map → p-fba1b425.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-ceb904c0.entry.js.map → p-fc261f58.entry.js.map} +0 -0
package/hydrate/index.mjs
CHANGED
|
@@ -3520,7 +3520,7 @@ class Avatar {
|
|
|
3520
3520
|
}; }
|
|
3521
3521
|
}
|
|
3522
3522
|
|
|
3523
|
-
const badgeCss = ":host{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-width:1rem;min-height:1rem;padding:0 0.3125rem;font-family:var(--road-font, sans-serif);font-size:var(--road-font-size-10);font-weight:700;white-space:nowrap;border-radius:1rem}:host(.badge-bubble){min-width:0.25rem;min-height:0.25rem;padding:0}:host(.badge-primary){color:var(--road-on-primary);background-color:var(--road-primary)}:host(.badge-secondary){color:var(--road-on-secondary);background-color:var(--road-secondary)}:host(.badge-accent){color:var(--road-on-warning-surface-inverse);background-color:var(--road-warning-surface-inverse)}:host(.badge-info){color:var(--road-on-info-surface-inverse);background-color:var(--road-info-surface-inverse)}:host(.badge-success){color:var(--road-on-success-surface-inverse);background-color:var(--road-success-surface-inverse)}:host(.badge-warning){color:var(--road-on-warning-surface-inverse);background-color:var(--road-warning-surface-inverse)}:host(.badge-danger){color:var(--road-on-danger-surface-inverse);background-color:var(--road-danger-surface-inverse)}:host(.badge-inverse){color:var(--road-primary);background-color:var(--road-surface)}:host(.badge-sm){font-size:8px}:host(.badge-md){font-size:8px}:host(.badge-lg){font-size:var(--road-font-size-10)}";
|
|
3523
|
+
const badgeCss = ":host{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-width:1rem;min-height:1rem;padding:0 0.3125rem;font-family:var(--road-font, sans-serif);font-size:var(--road-font-size-10);font-weight:700;white-space:nowrap;border-radius:1rem}:host(.badge-bubble){min-width:0.25rem;min-height:0.25rem;padding:0}:host(.badge-primary){color:var(--road-on-primary);background-color:var(--road-primary)}:host(.badge-secondary){color:var(--road-on-secondary);background-color:var(--road-secondary)}:host(.badge-accent){color:var(--road-on-warning-surface-inverse);background-color:var(--road-warning-surface-inverse)}:host(.badge-info){color:var(--road-on-info-surface-inverse);background-color:var(--road-info-surface-inverse)}:host(.badge-success){color:var(--road-on-success-surface-inverse);background-color:var(--road-success-surface-inverse)}:host(.badge-warning){color:var(--road-on-warning-surface-inverse);background-color:var(--road-warning-surface-inverse)}:host(.badge-danger){color:var(--road-on-danger-surface-inverse);background-color:var(--road-danger-surface-inverse)}:host(.badge-inverse){color:var(--road-primary);background-color:var(--road-surface)}:host(.badge-neutral){color:var(--road-on-surface-weak);background-color:var(--road-surface-inverse)}:host(.badge-sm){font-size:8px}:host(.badge-md){font-size:8px}:host(.badge-lg){font-size:var(--road-font-size-10)}";
|
|
3524
3524
|
var RoadBadgeStyle0 = badgeCss;
|
|
3525
3525
|
|
|
3526
3526
|
/**
|
|
@@ -3917,7 +3917,7 @@ class ButtonBar {
|
|
|
3917
3917
|
this.selectedTabChanged();
|
|
3918
3918
|
}
|
|
3919
3919
|
render() {
|
|
3920
|
-
return (hAsync(Host, { key: '
|
|
3920
|
+
return (hAsync(Host, { key: '76466abd7a912ac1a0df83853216c3f20ac3086a', role: "tablist" }, hAsync("slot", { key: '04290019d2aea356a7fd24739b68c371455e3b70' })));
|
|
3921
3921
|
}
|
|
3922
3922
|
get el() { return getElement(this); }
|
|
3923
3923
|
static get watchers() { return {
|
|
@@ -3936,7 +3936,7 @@ class ButtonBar {
|
|
|
3936
3936
|
}; }
|
|
3937
3937
|
}
|
|
3938
3938
|
|
|
3939
|
-
const cardCss = ":host{position:relative;box-sizing:border-box;display:block;margin-bottom:var(--margin-bottom, 1rem);background:var(--road-surface);border:1px solid var(--road-outline-weak);border-radius:var(--road-spacing-02);padding:var(--road-spacing-03)}:host(.card-elevation-none){box-shadow:none}:host(.card-elevation-lowest){box-shadow:var(--road-elevation-lowest)}:host(.card-elevation-average){box-shadow:var(--road-elevation-average)}:host(.is-button){border:1px solid var(--road-outline);padding:0}:host(.is-button:hover){border:1px solid var(--road-outline-variant);outline:2px solid var(--road-button-ghost-variant)}:host(.is-button:focus-visible),:host(.is-button:focus){border:1px solid var(--road-outline);outline-offset:1px;outline:2px solid var(--road-outline-variant)}:host(.is-button.is-disabled){cursor:not-allowed;pointer-events:none;border:1px solid var(--road-surface-disabled);background:var(--road-surface-disabled)}:host(.is-button.is-disabled) .card-native,:host(.is-button.selected.is-disabled) .card-native{background:none}:host(.is-button.selected){border:2px solid var(--road-primary);outline:none}:host(.is-button.selected:hover){border:2px solid var(--road-outline-variant);outline:2px solid var(--road-button-ghost-variant)}:host(.is-button.selected:focus-visible),:host(.is-button.selected:focus){border:2px solid var(--road-outline-variant);outline-offset:1px;outline:2px solid var(--road-outline-variant)}:host(.is-button.selected.is-disabled){cursor:not-allowed;pointer-events:none;outline:none;background:var(--road-surface-disabled);border:2px solid var(--road-surface-disabled)}.card-native{box-sizing:border-box;display:block;width:100%;height:100%;padding:var(--road-spacing-06);margin:0;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;color:inherit;text-align:center;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;letter-spacing:inherit;white-space:inherit;background:var(--road-surface);border:0;border-radius:0.25rem;outline:none;-webkit-tap-highlight-color:rgba(0, 0, 0, 0)}a,button{cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-user-drag:none}::slotted(road-icon){text-align:center}";
|
|
3939
|
+
const cardCss = ":host{position:relative;box-sizing:border-box;display:block;margin-bottom:var(--margin-bottom, 1rem);background:var(--road-surface);border:1px solid var(--road-outline-weak);border-radius:var(--road-spacing-02);padding:var(--road-spacing-03)}:host(.card-elevation-none){box-shadow:none}:host(.card-elevation-lowest){box-shadow:var(--road-elevation-lowest)}:host(.card-elevation-average){box-shadow:var(--road-elevation-average)}:host(.is-button){border:1px solid var(--road-outline);padding:0}:host(.is-button:hover){border:1px solid var(--road-outline-variant);outline:2px solid var(--road-button-ghost-variant)}:host(.is-button:focus-visible),:host(.is-button:focus){border:1px solid var(--road-outline);outline-offset:1px;outline:2px solid var(--road-outline-variant)}:host(.is-button.is-disabled){cursor:not-allowed;pointer-events:none;border:1px solid var(--road-surface-disabled);background:var(--road-surface-disabled)}:host(.is-button.is-disabled) .card-native,:host(.is-button.selected.is-disabled) .card-native{background:none}:host(.is-button.selected){border:2px solid var(--road-primary);outline:none}:host(.is-button.selected:hover){border:2px solid var(--road-outline-variant);outline:2px solid var(--road-button-ghost-variant)}:host(.is-button.selected:hover){border:2px solid var(--road-outline-variant);outline:2px solid var(--road-button-ghost-variant)}:host(.is-button.selected.is-single:hover){border:2px solid var(--road-primary);outline:2px solid var(--road-button-ghost-variant)}:host(.is-button.selected:focus-visible),:host(.is-button.selected:focus){border:2px solid var(--road-outline-variant);outline-offset:1px;outline:2px solid var(--road-outline-variant)}:host(.is-button.selected.is-single:focus){border:2px solid var(--road-primary);outline:2px solid var(--road-outline-variant)}:host(.is-button.selected.is-disabled){cursor:not-allowed;pointer-events:none;outline:none;background:var(--road-surface-disabled);border:2px solid var(--road-surface-disabled)}.card-native{box-sizing:border-box;display:block;width:100%;height:100%;padding:var(--road-spacing-06);margin:0;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;color:inherit;text-align:center;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;letter-spacing:inherit;white-space:inherit;background:var(--road-surface);border:0;border-radius:0.25rem;outline:none;-webkit-tap-highlight-color:rgba(0, 0, 0, 0)}a,button{cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-user-drag:none}::slotted(road-icon){text-align:center}";
|
|
3940
3940
|
var RoadCardStyle0 = cardCss;
|
|
3941
3941
|
|
|
3942
3942
|
/**
|
|
@@ -3967,6 +3967,12 @@ class Card {
|
|
|
3967
3967
|
* Only applies when in button mode (button=true and no href).
|
|
3968
3968
|
*/
|
|
3969
3969
|
this.disabled = false;
|
|
3970
|
+
/**
|
|
3971
|
+
* Defines the selection mode.
|
|
3972
|
+
* - `"single"`: only one card can be selected at a time (focus outline disabled).
|
|
3973
|
+
* - `"multiple"`: multiple cards can be selected simultaneously.
|
|
3974
|
+
*/
|
|
3975
|
+
this.selectionMode = "multiple";
|
|
3970
3976
|
/**
|
|
3971
3977
|
* The type of the button. Only used when an `onclick` or `button` property is present.
|
|
3972
3978
|
*/
|
|
@@ -3982,6 +3988,9 @@ class Card {
|
|
|
3982
3988
|
}
|
|
3983
3989
|
// Toggle selected state on click for clickable cards
|
|
3984
3990
|
this.selected = !this.selected;
|
|
3991
|
+
if (this.selectionMode === "single") {
|
|
3992
|
+
e.currentTarget.blur();
|
|
3993
|
+
}
|
|
3985
3994
|
if (this.value !== undefined) {
|
|
3986
3995
|
this.roadcardclick.emit({
|
|
3987
3996
|
value: this.value,
|
|
@@ -4030,7 +4039,8 @@ class Card {
|
|
|
4030
4039
|
const selectedClass = this.selected ? "selected" : "";
|
|
4031
4040
|
const isButtonClass = isButtonMode ? "is-button" : "";
|
|
4032
4041
|
const disabledClass = isButtonMode && this.disabled ? "is-disabled" : "";
|
|
4033
|
-
|
|
4042
|
+
const singleClass = isButtonMode && this.selectionMode === "single" ? "is-single" : "";
|
|
4043
|
+
return (hAsync(Host, { key: 'fc2636b92be59ddf232b162574c3cdd3a7042a50', class: `${elevationClass} ${selectedClass} ${isButtonClass} ${disabledClass} ${singleClass}` }, this.renderCard()));
|
|
4034
4044
|
}
|
|
4035
4045
|
get el() { return getElement(this); }
|
|
4036
4046
|
static get style() { return RoadCardStyle0; }
|
|
@@ -4043,6 +4053,7 @@ class Card {
|
|
|
4043
4053
|
"value": [1],
|
|
4044
4054
|
"selected": [516],
|
|
4045
4055
|
"disabled": [516],
|
|
4056
|
+
"selectionMode": [513, "selection-mode"],
|
|
4046
4057
|
"type": [1],
|
|
4047
4058
|
"download": [1],
|
|
4048
4059
|
"href": [1],
|
|
@@ -4051,7 +4062,7 @@ class Card {
|
|
|
4051
4062
|
},
|
|
4052
4063
|
"$listeners$": undefined,
|
|
4053
4064
|
"$lazyBundleId$": "-",
|
|
4054
|
-
"$attrsToReflect$": [["selected", "selected"], ["disabled", "disabled"]]
|
|
4065
|
+
"$attrsToReflect$": [["selected", "selected"], ["disabled", "disabled"], ["selectionMode", "selection-mode"]]
|
|
4055
4066
|
}; }
|
|
4056
4067
|
}
|
|
4057
4068
|
|
|
@@ -13017,7 +13028,7 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
13017
13028
|
return trap;
|
|
13018
13029
|
};
|
|
13019
13030
|
|
|
13020
|
-
const drawerCss = ":host{--background:var(--road-surface);--color:var(--road-on-surface);--header-icon:var(--road-on-surface);--header-color:var(--road-on-surface);--header-background:var(--road-surface);--header-delimiter:0;--back-chevron-color:var(--road-icon);--max-height:auto;--z-index:10;position:fixed;top:0;left:0;z-index:var(--z-index);display:flex;justify-content:flex-start;width:100%;height:100%;overflow:hidden;font-family:var(--road-font, sans-serif);line-height:1.5;color:var(--color);visibility:hidden !important;
|
|
13031
|
+
const drawerCss = ":host{--background:var(--road-surface);--color:var(--road-on-surface);--header-icon:var(--road-on-surface);--header-color:var(--road-on-surface);--header-background:var(--road-surface);--header-delimiter:0;--back-chevron-color:var(--road-icon);--max-height:auto;--z-index:10;position:fixed;top:0;left:0;z-index:var(--z-index);display:flex;justify-content:flex-start;width:100%;height:100%;overflow:hidden;font-family:var(--road-font, sans-serif);line-height:1.5;color:var(--color);visibility:hidden !important;transition:visibility 0s linear 0.3s}.drawer-overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:block;touch-action:none;cursor:pointer;background:var(--road-overlay);opacity:0}.road-drawer-wrapper{width:100%}.road-drawer-wrapper .drawer-dialog{position:absolute;right:0;width:100%;pointer-events:none;transition:transform 0.3s ease-out;opacity:0;transform:translateX(-100%)}:host(.drawer-right){justify-content:flex-end}:host(.drawer-right) .road-drawer-wrapper .drawer-dialog{transform:translateX(100%)}:host(.drawer-left) .road-drawer-wrapper .drawer-dialog{left:0}:host(.drawer-bottom){align-items:flex-end}:host(.drawer-bottom) .road-drawer-wrapper .drawer-dialog{width:100%;max-height:var(--max-height);transform:translateY(100%)}:host(.drawer-bottom) .drawer-content{height:auto}.drawer-content{position:relative;display:flex;flex-direction:column;width:100%;height:100vh;height:100dvh;max-height:100vh;max-height:100dvh;pointer-events:auto;background-color:var(--background);background-clip:padding-box;box-shadow:var(--road-elevation-hight)}.drawer-header{display:flex;flex-shrink:0;align-items:center;justify-content:flex-end;color:var(--header-color);background:var(--header-background);border-color:var(--road-grey-300);border-style:solid;border-width:var(--header-delimiter)}.drawer-header road-icon{flex-shrink:0;color:var(--header-icon)}.drawer-footer{padding:var(--road-spacing-05);background-color:var(--road-surface)}.drawer-footer.remove-padding{padding:0}.drawer-header-inverse{--header-icon:var(--road-on-primary);--header-color:var(--road-on-primary);--header-background:var(--road-primary-variant);margin-bottom:2.5rem}.drawer-action,.drawer-close{display:flex;align-items:center;justify-content:center;padding:0.5rem;font-family:inherit;font-size:0.875rem;color:inherit;cursor:pointer;background:transparent;border:0;appearance:none;-webkit-tap-highlight-color:rgba(0, 0, 0, 0)}.drawer-header:not(.drawer-header-inverse) .drawer-action road-icon{color:var(--back-chevron-color)}.drawer-action~.drawer-title,.drawer-close~.drawer-title{padding-left:0}.drawer-action-left,.drawer-close-left{margin-right:auto}.drawer-title{display:flex;flex-grow:1;align-items:center;justify-content:center;padding-left:3.5rem;margin:0;font-size:var(--road-body-medium)}.drawer-body{overflow-y:auto;padding:0 var(--road-spacing-05) var(--road-spacing-05)}.drawer-body.remove-padding{padding:0}:host(.drawer-right) .drawer-body,:host(.drawer-left) .drawer-body{height:calc(100vh - 3.5rem)}.drawer-inner{padding:0 1rem 2.5rem}@media (min-width: 768px){.drawer-inner{padding:0 2rem 2.5rem}.drawer-body{padding:0 var(--road-spacing-08) var(--road-spacing-05)}.drawer-body.remove-padding{padding:0}.drawer-footer{padding:var(--road-spacing-05) var(--road-spacing-08)}.drawer-footer.remove-padding{padding:0}}:host(.drawer-open){visibility:visible !important;transition:visibility 0s linear 0s}:host(.drawer-open) .drawer-overlay,:host(.drawer-open) .drawer-dialog{opacity:1}:host(.drawer-open) .road-drawer-wrapper .drawer-dialog{transform:none}@media (prefers-reduced-motion: no-preference){:host(.drawer-open) .drawer-overlay,:host(.drawer-open) .drawer-dialog{animation:road-drawer-fade-in 0.3s ease-out both}.drawer-overlay,.drawer-dialog{animation:road-drawer-fade-out 0.3s ease-out both}@keyframes road-drawer-fade-in{from{opacity:0}to{opacity:1}}@keyframes road-drawer-fade-out{from{opacity:1}to{opacity:0}}}";
|
|
13021
13032
|
var RoadDrawerStyle0 = drawerCss;
|
|
13022
13033
|
|
|
13023
13034
|
/**
|
|
@@ -13067,10 +13078,19 @@ class Drawer {
|
|
|
13067
13078
|
* Override focus trap
|
|
13068
13079
|
*/
|
|
13069
13080
|
this.enabledFocusTrap = true;
|
|
13081
|
+
/**
|
|
13082
|
+
* whitelisted selectors
|
|
13083
|
+
*/
|
|
13084
|
+
this.whitelistSelectors = [];
|
|
13070
13085
|
/**
|
|
13071
13086
|
* Footer Content state
|
|
13072
13087
|
*/
|
|
13073
13088
|
this.hasFooterContent = false;
|
|
13089
|
+
/**
|
|
13090
|
+
* Used to ensure open transitions run when the drawer
|
|
13091
|
+
* is initially mounted with `isOpen=true`.
|
|
13092
|
+
*/
|
|
13093
|
+
this.hasMounted = false;
|
|
13074
13094
|
this.onFooterSlotChange = (event) => {
|
|
13075
13095
|
const slot = event.target;
|
|
13076
13096
|
this.hasFooterContent = slot.assignedElements().length > 0;
|
|
@@ -13123,6 +13143,35 @@ class Drawer {
|
|
|
13123
13143
|
async back() {
|
|
13124
13144
|
this.onBack.emit();
|
|
13125
13145
|
}
|
|
13146
|
+
/**
|
|
13147
|
+
* Update the whitelist selectors at runtime and recreate the focus trap.
|
|
13148
|
+
* Use this instead of updating the prop directly to ensure the change is detected,
|
|
13149
|
+
* since Stencil compares arrays by reference.
|
|
13150
|
+
*/
|
|
13151
|
+
async updateWhitelistSelectors(selectors) {
|
|
13152
|
+
var _a;
|
|
13153
|
+
this.whitelistSelectors = selectors;
|
|
13154
|
+
const containers = [];
|
|
13155
|
+
this.whitelistSelectors.forEach(selector => {
|
|
13156
|
+
const el = document.querySelector(selector);
|
|
13157
|
+
if (el)
|
|
13158
|
+
containers.push(el);
|
|
13159
|
+
});
|
|
13160
|
+
const drawerContent = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(".road-drawer-wrapper");
|
|
13161
|
+
if (drawerContent)
|
|
13162
|
+
containers.push(drawerContent);
|
|
13163
|
+
this.resetFocusTrap(containers);
|
|
13164
|
+
}
|
|
13165
|
+
resetFocusTrap(elements) {
|
|
13166
|
+
if (this.focusTrap) {
|
|
13167
|
+
const isActive = this.focusTrap.active;
|
|
13168
|
+
this.focusTrap.deactivate();
|
|
13169
|
+
this.focusTrap = undefined;
|
|
13170
|
+
if (isActive) {
|
|
13171
|
+
this.getOrCreateFocusTrap(elements).activate();
|
|
13172
|
+
}
|
|
13173
|
+
}
|
|
13174
|
+
}
|
|
13126
13175
|
/**
|
|
13127
13176
|
* Enable/disable focus trap so it can be overrided by the client in case of something appearing over the drawer like a modal for example
|
|
13128
13177
|
*/
|
|
@@ -13138,18 +13187,19 @@ class Drawer {
|
|
|
13138
13187
|
}, 100); // Timeout is used to ensure the drawer has been rendered when client wants to update the property at the same time
|
|
13139
13188
|
}
|
|
13140
13189
|
handleOpen(openValue) {
|
|
13141
|
-
var _a;
|
|
13190
|
+
var _a, _b;
|
|
13191
|
+
const dialog = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.drawer-dialog');
|
|
13142
13192
|
if (openValue === true) {
|
|
13143
13193
|
this.onOpen.emit();
|
|
13144
|
-
|
|
13194
|
+
dialog === null || dialog === void 0 ? void 0 : dialog.addEventListener("transitionend", () => {
|
|
13145
13195
|
if (this.enabledFocusTrap) {
|
|
13146
13196
|
this.getOrCreateFocusTrap().activate();
|
|
13147
13197
|
}
|
|
13148
13198
|
}, { once: true });
|
|
13149
13199
|
}
|
|
13150
13200
|
else {
|
|
13151
|
-
(
|
|
13152
|
-
|
|
13201
|
+
(_b = this.focusTrap) === null || _b === void 0 ? void 0 : _b.deactivate();
|
|
13202
|
+
dialog === null || dialog === void 0 ? void 0 : dialog.addEventListener("transitionend", () => {
|
|
13153
13203
|
this.onClose.emit();
|
|
13154
13204
|
this.el.shadowRoot &&
|
|
13155
13205
|
(this.el.shadowRoot.querySelector(".drawer-body").scrollTop = 0);
|
|
@@ -13168,20 +13218,36 @@ class Drawer {
|
|
|
13168
13218
|
this.el.querySelectorAll('[data-dismiss="modal"]').forEach((item) => {
|
|
13169
13219
|
item.addEventListener("click", () => this.close());
|
|
13170
13220
|
});
|
|
13171
|
-
|
|
13172
|
-
|
|
13173
|
-
|
|
13221
|
+
// Wait for the first paint so the "closed" transform can be applied,
|
|
13222
|
+
// then open on the next frame to allow CSS transitions to run.
|
|
13223
|
+
requestAnimationFrame(() => {
|
|
13224
|
+
this.hasMounted = true;
|
|
13225
|
+
if (this.isOpen) {
|
|
13226
|
+
this.handleOpen(true);
|
|
13227
|
+
}
|
|
13228
|
+
});
|
|
13174
13229
|
}
|
|
13175
|
-
getOrCreateFocusTrap() {
|
|
13230
|
+
getOrCreateFocusTrap(elements) {
|
|
13176
13231
|
var _a;
|
|
13177
13232
|
if (!this.focusTrap) {
|
|
13178
13233
|
const drawerContent = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(".road-drawer-wrapper");
|
|
13179
|
-
|
|
13234
|
+
const elmt = (elements === null || elements === void 0 ? void 0 : elements.length) ? elements : [drawerContent];
|
|
13235
|
+
this.focusTrap = createFocusTrap(elmt, {
|
|
13236
|
+
initialFocus: () => {
|
|
13237
|
+
if (!elmt.length)
|
|
13238
|
+
return undefined;
|
|
13239
|
+
const allTabbables = tabbable(elmt[0], { getShadowRoot: true });
|
|
13240
|
+
return allTabbables[0];
|
|
13241
|
+
},
|
|
13180
13242
|
onActivate: () => drawerContent === null || drawerContent === void 0 ? void 0 : drawerContent.classList.add("focus-trapped"),
|
|
13181
13243
|
onDeactivate: () => drawerContent === null || drawerContent === void 0 ? void 0 : drawerContent.classList.remove("focus-trapped"),
|
|
13244
|
+
allowOutsideClick: (event) => {
|
|
13245
|
+
return this.whitelistSelectors.some(s => event.target.closest(s));
|
|
13246
|
+
},
|
|
13182
13247
|
tabbableOptions: {
|
|
13183
13248
|
getShadowRoot: true,
|
|
13184
13249
|
},
|
|
13250
|
+
fallbackFocus: this.el,
|
|
13185
13251
|
preventScroll: true,
|
|
13186
13252
|
});
|
|
13187
13253
|
}
|
|
@@ -13189,7 +13255,8 @@ class Drawer {
|
|
|
13189
13255
|
}
|
|
13190
13256
|
render() {
|
|
13191
13257
|
var _a, _b, _c;
|
|
13192
|
-
const
|
|
13258
|
+
const isEffectivelyOpen = this.isOpen && this.hasMounted;
|
|
13259
|
+
const drawerIsOpenClass = isEffectivelyOpen ? "drawer-open" : "";
|
|
13193
13260
|
const removePaddingClass = this.removePadding ? "remove-padding" : "";
|
|
13194
13261
|
const inverseHeaderClass = this.hasInverseHeader
|
|
13195
13262
|
? "drawer-header-inverse"
|
|
@@ -13201,7 +13268,7 @@ class Drawer {
|
|
|
13201
13268
|
const backIconElement = this.hasBackIcon ? (hAsync("button", { type: "button", class: "drawer-action", "aria-label": ariaLabelBack, onClick: this.onClickBack }, hAsync("road-icon", { icon: navigationChevron, rotate: "180" }), this.backText)) : null;
|
|
13202
13269
|
const closeIconElement = this.hasCloseIcon ? (hAsync("button", { type: "button", class: "drawer-close", onClick: this.onClick, "aria-label": ariaLabelClose }, hAsync("road-icon", { icon: navigationClose, "aria-hidden": "true" }))) : null;
|
|
13203
13270
|
const drawerWidthValue = this.position === "bottom" ? "100%" : `${this.drawerWidth}px`;
|
|
13204
|
-
return (hAsync(Host, { key: '
|
|
13271
|
+
return (hAsync(Host, { key: 'ecd747ab4372bed7cefb4647dfaf9404c7206b53', class: `${drawerIsOpenClass} drawer-${this.position}`, tabindex: "0", role: "dialog", "aria-label": ariaLabel }, hAsync("div", { key: '1d5760b82a095696e30867669f607d5c3608c308', class: "road-drawer-wrapper" }, hAsync("div", { key: '4d519361b71dd228e7a35a1ee20f741911e0752f', class: "drawer-overlay", onClick: this.onClick, tabindex: "-1" }), hAsync("div", { key: '36dc3dac85b6784b66f5a12476be608d2b43c40c', class: "drawer-dialog", style: { maxWidth: drawerWidthValue }, role: "document" }, hAsync("div", { key: '74a7d03928a6919fa6cd95c6a66a61c9bf225e20', class: "drawer-content" }, hAsync("header", { key: 'f4c543d1ea08ee62ea3a9f93e34499a7f5c81fa5', class: `drawer-header ${inverseHeaderClass} ${drawerDelimiterClass}` }, backIconElement, this.drawerTitle ? (hAsync("h2", { class: "drawer-title" }, this.drawerTitle)) : (hAsync("div", { class: "drawer-title" }, hAsync("slot", { name: "title" }))), closeIconElement), hAsync("div", { key: '796030c5a5cf6661aa4c1f4c10cc039e0e550d4c', class: `drawer-body ${removePaddingClass}` }, hAsync("slot", { key: '8c0bdfa660ace789ea5a01ada7ce3cd9c5cc3d4a' })), hAsync("footer", { key: 'a52a747ea4c5de885fc440ac4f8247f5c9ab88b0', class: `drawer-footer ${removePaddingClass}`, hidden: !this.hasFooterContent }, hAsync("slot", { key: '0bef80d08a9e6078f025768eb88f93df86517fb9', name: "footer", onSlotchange: this.onFooterSlotChange })))))));
|
|
13205
13272
|
}
|
|
13206
13273
|
get el() { return getElement(this); }
|
|
13207
13274
|
static get watchers() { return {
|
|
@@ -13226,11 +13293,14 @@ class Drawer {
|
|
|
13226
13293
|
"ariaLabelClose": [1, "aria-label-close"],
|
|
13227
13294
|
"hasCloseIcon": [4, "has-close-icon"],
|
|
13228
13295
|
"enabledFocusTrap": [4, "enabled-focus-trap"],
|
|
13296
|
+
"whitelistSelectors": [1040],
|
|
13229
13297
|
"focusTrap": [32],
|
|
13230
13298
|
"hasFooterContent": [32],
|
|
13299
|
+
"hasMounted": [32],
|
|
13231
13300
|
"open": [64],
|
|
13232
13301
|
"close": [64],
|
|
13233
|
-
"back": [64]
|
|
13302
|
+
"back": [64],
|
|
13303
|
+
"updateWhitelistSelectors": [64]
|
|
13234
13304
|
},
|
|
13235
13305
|
"$listeners$": [[4, "keyup", "onEscape"]],
|
|
13236
13306
|
"$lazyBundleId$": "-",
|
|
@@ -34564,7 +34634,7 @@ class RoadTimeRangePicker {
|
|
|
34564
34634
|
return { start: this.start, end: this.end };
|
|
34565
34635
|
}
|
|
34566
34636
|
render() {
|
|
34567
|
-
return (hAsync(Host, { key: '
|
|
34637
|
+
return (hAsync(Host, { key: '4c05c2fcbbe5c0f7df1c3e9750873faad0fa7b5c', class: `time-range-picker input-${this.sizes}` }, this.label && (hAsync("p", { key: '2c963e240ae199d1eee6ba76d85013eac8ccfdb8', class: "label m-0" }, this.label, this.required && hAsync("span", { key: 'd8232329248063a4b3dc7b4ba746cb31d4e9f56e', class: "required-indicator" }, " *"))), hAsync("div", { key: 'a848889d0465791fb95ce1c8264212d681e60ae9', class: "time-range-picker-content d-flex align-items-center my-4" }, hAsync("slot", { key: 'a4ded18bd9a179c34616e5a176c4c96189a99de8', name: "start" }), hAsync("span", { key: 'abd5e370b9ae64e5ce7f236017c0bf02a15ef8de', class: "separator mx-12" }, this.separator), hAsync("slot", { key: 'a8445f25548d8580c6275860d330e189f64d1d4c', name: "end" })), hAsync("div", { key: '26723daafbce66f009a0b3d2708a0fa47531947d', class: "messages mt-1" }, this.errorMessages.map((msg, index) => (hAsync("p", { key: index, class: "invalid-feedback m-0" }, hAsync("road-icon", { slot: "start", name: "alert-error-solid", "aria-hidden": "true", size: "sm" }), msg.trim())))), this.helper && hAsync("p", { key: '751b03bef9d11b330916ca30d431185034d65294', class: "helper mt-1" }, this.helper)));
|
|
34568
34638
|
}
|
|
34569
34639
|
get hostEl() { return getElement(this); }
|
|
34570
34640
|
static get style() { return RoadTimeRangePickerStyle0; }
|
|
@@ -34613,7 +34683,7 @@ class Row {
|
|
|
34613
34683
|
}; }
|
|
34614
34684
|
}
|
|
34615
34685
|
|
|
34616
|
-
const segmentedButtonCss = ":host{--border-radius:0.25rem;--font-size:var(--road-button-medium);--margin-bottom:1rem;--padding-start:1.5rem;--padding-end:1.5rem;box-sizing:border-box;flex:1;align-items:center;justify-content:center;max-height:
|
|
34686
|
+
const segmentedButtonCss = ":host{--border-radius:0.25rem;--font-size:var(--road-button-medium);--margin-bottom:1rem;--padding-start:1.5rem;--padding-end:1.5rem;box-sizing:border-box;flex:1;align-items:center;justify-content:center;max-height:3rem;font-size:var(--road-button-medium);font-weight:700;color:var(--road-on-surface-weak);text-decoration:none;white-space:nowrap;vertical-align:middle;background-color:var(--road-surface);border-radius:8px;transition:background 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;margin-right:var(--road-spacing-02);overflow:hidden}:host(:last-child){margin-right:0}:host(.btn-sm){height:2.5rem}:host(.btn-md){height:2.75rem}:host(.btn-lg){height:3rem}:host(.tab-selected){color:var(--road-button-primary);fill:var(--road-button-primary);background-color:var(--road-button-tertiary-variant)}:host(.tab-selected:hover){color:var(--road-button-primary);background-color:var(--road-button-tertiary-variant)}:host(:hover){color:var(--road-on-surface);background-color:var(--road-surface-inverse)}:host(.focus-visible){outline:auto}.button-native{position:relative;box-sizing:border-box;display:flex;flex-direction:inherit;align-items:inherit;justify-content:inherit;width:100%;height:100%;padding:0.75rem var(--padding-end, 1.5rem) 0.75rem var(--padding-start, 1.5rem);margin:0;overflow:hidden;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;color:inherit;text-align:inherit;text-decoration:none;text-indent:inherit;text-overflow:inherit;text-transform:inherit;letter-spacing:inherit;white-space:inherit;cursor:pointer;background:transparent;-webkit-user-drag:none;border-color:initial;border-style:initial;border-width:0;border-radius:inherit;border-image:initial;outline:none;-webkit-tap-highlight-color:rgba(0, 0, 0, 0)}:host ::slotted(road-icon){margin:-0.2rem var(--road-spacing-03) -0.2rem 0;float:left}.button-content{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;display:flex;align-items:center}.button-content-badge{margin-left:var(--road-spacing-03)}";
|
|
34617
34687
|
var RoadSegmentedButtonStyle0 = segmentedButtonCss;
|
|
34618
34688
|
|
|
34619
34689
|
/**
|
|
@@ -34672,10 +34742,11 @@ class SegmentedButton {
|
|
|
34672
34742
|
render() {
|
|
34673
34743
|
const { tabIndex, selected, tab } = this;
|
|
34674
34744
|
const sizeClass = this.size !== undefined ? `btn-${this.size}` : '';
|
|
34675
|
-
return (hAsync(Host, { key: '
|
|
34745
|
+
return (hAsync(Host, { key: 'c32084087edad1374074d06d73fe718361396247', onClick: this.onClick, onKeyup: this.onKeyUp, role: "tab", tabindex: tabIndex, "aria-selected": selected ? 'true' : null, id: tab !== undefined ? `tab-button-${tab}` : null, class: {
|
|
34676
34746
|
'tab-selected': selected,
|
|
34677
34747
|
[`${sizeClass}`]: true,
|
|
34678
|
-
} }, hAsync("span", { key: '
|
|
34748
|
+
} }, hAsync("span", { key: '55c39f3b6508f33537a0d0e243bc61a700d5c533', tabIndex: -1, class: "button-native", part: "native", "aria-hidden": "true" }, hAsync("span", { key: 'fa599539a08ff52bbfe0c479e809926aecabc85a', class: "button-content" }, hAsync("slot", { key: '044b41c9a2217d62aa30f4221d4a5670105e7bd5' }), this.badge &&
|
|
34749
|
+
hAsync("road-badge", { key: '35a10d98aa0149976dcb21c4f7cb546753ed933f', color: this.selected ? 'primary' : 'neutral', class: "button-content-badge" }, this.badge)))));
|
|
34679
34750
|
}
|
|
34680
34751
|
get el() { return getElement(this); }
|
|
34681
34752
|
static get style() { return RoadSegmentedButtonStyle0; }
|
|
@@ -34685,7 +34756,8 @@ class SegmentedButton {
|
|
|
34685
34756
|
"$members$": {
|
|
34686
34757
|
"size": [1],
|
|
34687
34758
|
"selected": [1028],
|
|
34688
|
-
"tab": [1]
|
|
34759
|
+
"tab": [1],
|
|
34760
|
+
"badge": [1]
|
|
34689
34761
|
},
|
|
34690
34762
|
"$listeners$": [[8, "roadSegmentedButtonBarChanged", "onButtonBarChanged"], [8, "roadSegmentedButtonbarchanged", "onButtonBarChanged"]],
|
|
34691
34763
|
"$lazyBundleId$": "-",
|
|
@@ -34796,7 +34868,7 @@ class Select {
|
|
|
34796
34868
|
const labelId = this.selectId + '-label';
|
|
34797
34869
|
const hasValueClass = this.value && this.value !== '' ? 'has-value' : '';
|
|
34798
34870
|
const isInvalidClass = this.error !== undefined && this.error !== '' ? 'is-invalid' : '';
|
|
34799
|
-
return (hAsync(Host, { key: '
|
|
34871
|
+
return (hAsync(Host, { key: '5bb29d6c8e7ed03e244ec3fdd239589bab5cabe0', class: this.sizes && `select-${this.sizes}` }, hAsync("select", { key: '2493089b1bb3c57c3af43ebbb5daff18ae4744e0', class: `form-select ${hasValueClass} ${isInvalidClass}`, id: this.selectId, "aria-disabled": this.disabled ? 'true' : null, autoFocus: this.autofocus, disabled: this.disabled, name: this.name, required: this.required, size: this.size, onChange: this.onChange, onFocus: this.onFocus, onBlur: this.onBlur }, hAsync("option", { key: 'e2bf03909eac53047f830ce9a655a643690f918e', selected: !this.value, disabled: true, hidden: true, style: { display: 'none' }, value: "" }), this.options && this.options.map(option => (hAsync("option", { value: option.value, selected: this.value !== null && option.value == this.value }, option.label)))), hAsync("label", { key: '8a8ad20b057bec306e122587b24f5ffbcb79a3de', class: "form-select-label", id: labelId, htmlFor: this.selectId }, this.label), this.error && this.error !== '' && hAsync("p", { key: '1d5648a6e2fb46921900ff639b17ac5cc536350e', class: "invalid-feedback" }, this.error), this.helper && this.helper !== '' && hAsync("p", { key: '88a14e5d848bda00fea2088013037f37559387f0', class: "helper" }, this.helper)));
|
|
34800
34872
|
}
|
|
34801
34873
|
static get watchers() { return {
|
|
34802
34874
|
"value": ["valueChanged"]
|
|
@@ -36790,7 +36862,7 @@ class SelectFilter {
|
|
|
36790
36862
|
const options = this.filteredOptions;
|
|
36791
36863
|
const isActive = this.isActive ? 'true' : 'false';
|
|
36792
36864
|
const notActive = this.isActive ? '' : 'not-active';
|
|
36793
|
-
return (hAsync(Host, { key: '
|
|
36865
|
+
return (hAsync(Host, { key: '7fdfb3dadc614f4e851891dceb20e19f33074443', "is-active": isActive }, hAsync("slot", { key: 'e2be686790e0ad87e002c8f393cee0ac0864d532' }), this.isOpen && (hAsync("div", { key: '155ccb2711eaa3f8e92f25a3d3b7b9dfa34d4021', class: `${notActive} select-filter-list`, role: "listbox", onMouseLeave: this.handleMouseLeave }, options.length === 0 ? (hAsync("div", { class: "select-filter-empty" }, "Aucune option")) : (hAsync("ul", { class: "pl-0" }, options.map((option, idx) => (hAsync("li", { class: `select-filter-item ${this.activeIndex === idx ? 'active' : ''}`, role: "option", "aria-selected": this.activeIndex === idx ? 'true' : 'false', onClick: (e) => this.handleOptionClick(option.item.value, option.item.label.replace(/(<([^>]+)>)/gi, ''), e), onMouseOver: () => this.handleOptionMouseOver(idx), innerHTML: option.item.label, tabindex: this.activeIndex === idx ? 0 : -1 })))))))));
|
|
36794
36866
|
}
|
|
36795
36867
|
get el() { return getElement(this); }
|
|
36796
36868
|
static get watchers() { return {
|
|
@@ -36826,7 +36898,7 @@ class Skeleton {
|
|
|
36826
36898
|
registerInstance(this, hostRef);
|
|
36827
36899
|
}
|
|
36828
36900
|
render() {
|
|
36829
|
-
return (hAsync("span", { key: '
|
|
36901
|
+
return (hAsync("span", { key: 'eecb6ba03a976649272ec4df632022afa71b4a1e' }, "\u00A0"));
|
|
36830
36902
|
}
|
|
36831
36903
|
static get style() { return RoadSkeletonStyle0; }
|
|
36832
36904
|
static get cmpMeta() { return {
|
|
@@ -36857,7 +36929,7 @@ class Spinner {
|
|
|
36857
36929
|
render() {
|
|
36858
36930
|
const sizeClass = this.size !== undefined ? `spinner spinner--${this.size}` : 'spinner';
|
|
36859
36931
|
const colorClass = this.size !== undefined ? `spinner-circle spinner-circle--${this.color}` : 'spinner-circle';
|
|
36860
|
-
return (hAsync("svg", { key: '
|
|
36932
|
+
return (hAsync("svg", { key: 'eb559d1ad35ed62c6c4cb1e7280faf29e52fe2f6', class: `${sizeClass}`, viewBox: "25 25 50 50" }, hAsync("circle", { key: '8faa4a39732b5b882a2c76abed424d95846c3083', class: `${colorClass}`, cx: "50", cy: "50", r: "20" })));
|
|
36861
36933
|
}
|
|
36862
36934
|
static get style() { return RoadSpinnerStyle0; }
|
|
36863
36935
|
static get cmpMeta() { return {
|
|
@@ -36898,7 +36970,7 @@ class StatusChip {
|
|
|
36898
36970
|
};
|
|
36899
36971
|
}
|
|
36900
36972
|
render() {
|
|
36901
|
-
return (hAsync(Host, { key: '
|
|
36973
|
+
return (hAsync(Host, { key: 'f261ddcd3afd748b815d63d973724d0898b48cd7', class: `chip-${this.size}`, tabindex: "0", role: "button", onClick: this.onActivate, onKeyDown: this.onKeyDown }, hAsync("div", { key: '1a6fdaf843be1db93ee850456d662c98c6ab182b', class: "chip-description" }, hAsync("road-icon", { key: '169dc92bb2d1ef16083019799ba80573731464f4', class: "chip-icon", color: "info", icon: alertInfoSolid }), hAsync("slot", { key: '4e24bd7b4a140a532970959e5c2140a54910feb6' }))));
|
|
36902
36974
|
}
|
|
36903
36975
|
static get style() { return RoadStatusChipStyle0; }
|
|
36904
36976
|
static get cmpMeta() { return {
|
|
@@ -37049,11 +37121,11 @@ class Switch {
|
|
|
37049
37121
|
}
|
|
37050
37122
|
render() {
|
|
37051
37123
|
const labelId = this.switchId + '-label';
|
|
37052
|
-
const textLabel = hAsync("label", { key: '
|
|
37124
|
+
const textLabel = hAsync("label", { key: 'c232e4f3505aa5d27a54077cf9883fef864efc4d', class: "form-switch-label", id: labelId, htmlFor: this.switchId }, this.label);
|
|
37053
37125
|
const colorClass = this.color !== undefined ? 'form-switch-' + this.color : '';
|
|
37054
37126
|
const isSpacedClass = this.isSpaced && 'form-switch-spaced';
|
|
37055
37127
|
const rightSwitchClass = this.hasLeftLabel ? 'form-switch-right' : '';
|
|
37056
|
-
return (hAsync(Host, { key: '
|
|
37128
|
+
return (hAsync(Host, { key: '3d93be9bb557c13028dabaef2e82a1e53b814c56' }, hAsync("input", { key: '9682f18c59fa23c8bdaeb30c27ea0aea4c37b2e2', class: "form-switch-input", type: "checkbox", id: this.switchId, 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 }), hAsync("label", { key: '30340789f9d2d0182d478f7e840d705afcb4cf13', class: `form-switch-label ${isSpacedClass} ${colorClass}`, htmlFor: this.switchId }, this.hasLeftLabel && textLabel, hAsync("div", { key: '7dd93e85e3a444f92dbfb524e5ba401e1f5ecb7d', class: `form-switch-lever ${rightSwitchClass}`, "data-off": this.off, "data-on": this.on }), this.hasLeftLabel ? '' : textLabel)));
|
|
37057
37129
|
}
|
|
37058
37130
|
static get watchers() { return {
|
|
37059
37131
|
"checked": ["checkedChanged"]
|
|
@@ -37108,9 +37180,9 @@ class Tab {
|
|
|
37108
37180
|
}
|
|
37109
37181
|
render() {
|
|
37110
37182
|
const { tab, active } = this;
|
|
37111
|
-
return (hAsync(Host, { key: '
|
|
37183
|
+
return (hAsync(Host, { key: 'e5f32c9c796b1a798eca2d24a7a660d808d060f8', role: "tabpanel", "aria-hidden": !active ? 'true' : null, "aria-labelledby": `tab-button-${tab}`, class: {
|
|
37112
37184
|
'tab-hidden': !active,
|
|
37113
|
-
} }, hAsync("slot", { key: '
|
|
37185
|
+
} }, hAsync("slot", { key: '018740decce73c280c77ba78216623ac0f842e9d' })));
|
|
37114
37186
|
}
|
|
37115
37187
|
get el() { return getElement(this); }
|
|
37116
37188
|
static get style() { return RoadTabStyle0; }
|
|
@@ -37170,11 +37242,11 @@ class TabBar {
|
|
|
37170
37242
|
}
|
|
37171
37243
|
render() {
|
|
37172
37244
|
const { expand, center, secondary } = this;
|
|
37173
|
-
return (hAsync(Host, { key: '
|
|
37245
|
+
return (hAsync(Host, { key: '598640b2a0d7bfc657df37e30deff1a0aee2698c', role: "tablist", class: {
|
|
37174
37246
|
'tab-expand': expand,
|
|
37175
37247
|
'tab-center': center,
|
|
37176
37248
|
'tab-secondary': secondary,
|
|
37177
|
-
} }, hAsync("slot", { key: '
|
|
37249
|
+
} }, hAsync("slot", { key: '2f8c35375effb72f15d0b37d80ff3dd3a2779b22' })));
|
|
37178
37250
|
}
|
|
37179
37251
|
get el() { return getElement(this); }
|
|
37180
37252
|
static get watchers() { return {
|
|
@@ -37274,7 +37346,7 @@ class TabButton {
|
|
|
37274
37346
|
rel,
|
|
37275
37347
|
target,
|
|
37276
37348
|
};
|
|
37277
|
-
return (hAsync(Host, { key: '
|
|
37349
|
+
return (hAsync(Host, { key: 'd0232d92d13b395713e9537e4e985b9b1aef4be8', onClick: (ev) => !disabled && this.onClick(ev), onKeyup: (ev) => !disabled && this.onKeyUp(ev), role: "tab", tabindex: disabled ? -1 : tabIndex, "aria-selected": selected ? 'true' : 'false', "aria-disabled": disabled ? 'true' : null, id: tab !== undefined ? `tab-button-${tab}` : null, class: {
|
|
37278
37350
|
'tab-selected': selected,
|
|
37279
37351
|
'tab-has-label': hasLabel,
|
|
37280
37352
|
'tab-has-icon': hasIcon,
|
|
@@ -37282,7 +37354,7 @@ class TabButton {
|
|
|
37282
37354
|
'tab-has-icon-only': hasIcon && !hasLabel,
|
|
37283
37355
|
[`tab-layout-${layout}`]: true,
|
|
37284
37356
|
'tab-disabled': disabled, // Classe CSS pour les styles désactivés
|
|
37285
|
-
} }, hAsync("a", Object.assign({ key: '
|
|
37357
|
+
} }, hAsync("a", Object.assign({ key: '3cfffe4aef2432b2a23eb2ff6c86c5da125f0e04' }, attrs, { tabIndex: -1, class: "button-native", part: "native" }), hAsync("span", { key: '36f97b5e282bf7870228ca6651629b766d614512', class: "button-inner" }, hAsync("slot", { key: '4f963acbe1cc57893b19c0f86af05b8e754c96c1' })))));
|
|
37286
37358
|
}
|
|
37287
37359
|
get el() { return getElement(this); }
|
|
37288
37360
|
static get style() { return RoadTabButtonStyle0; }
|
|
@@ -37316,7 +37388,7 @@ class Table {
|
|
|
37316
37388
|
registerInstance(this, hostRef);
|
|
37317
37389
|
}
|
|
37318
37390
|
render() {
|
|
37319
|
-
return (hAsync("slot", { key: '
|
|
37391
|
+
return (hAsync("slot", { key: '81dd5f1f536cbc1362baa3027bb76b8fa5a6022b' }));
|
|
37320
37392
|
}
|
|
37321
37393
|
static get style() { return RoadTableStyle0; }
|
|
37322
37394
|
static get cmpMeta() { return {
|
|
@@ -37424,7 +37496,7 @@ class Tabs$1 {
|
|
|
37424
37496
|
return Array.from(this.el.querySelectorAll('road-tab'));
|
|
37425
37497
|
}
|
|
37426
37498
|
render() {
|
|
37427
|
-
return (hAsync(Host, { key: '
|
|
37499
|
+
return (hAsync(Host, { key: '74762d3d2e76c9926a2344182debdd17dbf3c011', onRoadSegmentedButtonClick: this.onTabClicked }, hAsync("slot", { key: 'f4d5f461a7fe74ebc76c181b185932759ceb0f34', name: "top" }), hAsync("slot", { key: '6b99ef4524d2aa3f55b95b33b7028097abb03712' })));
|
|
37428
37500
|
}
|
|
37429
37501
|
get el() { return getElement(this); }
|
|
37430
37502
|
static get style() { return RoadSegmentedButtonsStyle0; }
|
|
@@ -37560,7 +37632,7 @@ class Tabs {
|
|
|
37560
37632
|
return Array.from(this.el.querySelectorAll('road-tab'));
|
|
37561
37633
|
}
|
|
37562
37634
|
render() {
|
|
37563
|
-
return (hAsync(Host, { key: '
|
|
37635
|
+
return (hAsync(Host, { key: '0e0850a766229851fb10751a2c598517ea6ab666', onRoadTabButtonClick: this.onTabClicked }, hAsync("slot", { key: '449935aea69a4bb19f26ffefa9427af73dea2400', name: "top" }), hAsync("div", { key: 'cca0b8a935a1e8df7fc9ce46fab95371910e7676', class: "tabs-inner" }, hAsync("slot", { key: '649c2c4cec7a0cd43dfc668eab513ce80207ac9a' }))));
|
|
37564
37636
|
}
|
|
37565
37637
|
get el() { return getElement(this); }
|
|
37566
37638
|
static get style() { return RoadTabsStyle0; }
|
|
@@ -37608,7 +37680,7 @@ class Tag {
|
|
|
37608
37680
|
}
|
|
37609
37681
|
render() {
|
|
37610
37682
|
const contrastClass = this.contrast ? `tag-${this.color} tag-${this.color}-contrast` : `tag-${this.color}`;
|
|
37611
|
-
return (hAsync(Host, { key: '
|
|
37683
|
+
return (hAsync(Host, { key: 'c17a38527980d6d453ba3846f9a3b2d57f31c071', class: `${contrastClass}` }, hAsync("slot", { key: '77293988ddc60d4defb5e1600db3340c95335cb3' })));
|
|
37612
37684
|
}
|
|
37613
37685
|
static get style() { return RoadTagStyle0; }
|
|
37614
37686
|
static get cmpMeta() { return {
|
|
@@ -37640,7 +37712,7 @@ class Text {
|
|
|
37640
37712
|
}
|
|
37641
37713
|
render() {
|
|
37642
37714
|
const colorClass = this.color !== undefined ? `text-${this.color}` : '';
|
|
37643
|
-
return (hAsync(Host, { key: '
|
|
37715
|
+
return (hAsync(Host, { key: '727ee50da083fe2504862c80ed7aa5e5392e0226', class: `${colorClass}` }, hAsync("slot", { key: '6e5322eed782d23164f11060a5be01a140182d5d' })));
|
|
37644
37716
|
}
|
|
37645
37717
|
static get style() { return RoadTextStyle0; }
|
|
37646
37718
|
static get cmpMeta() { return {
|
|
@@ -37771,7 +37843,7 @@ class Textarea {
|
|
|
37771
37843
|
const hasValueClass = this.value !== '' ? 'has-value' : '';
|
|
37772
37844
|
const noResizeClass = this.resize == false ? 'no-resize' : '';
|
|
37773
37845
|
const isInvalidClass = this.error !== undefined && this.error !== '' ? 'is-invalid' : '';
|
|
37774
|
-
return (hAsync(Host, { key: '
|
|
37846
|
+
return (hAsync(Host, { key: 'b11f3ddbd35f2d9b093d5a1ea8a7aadc9d22e52d', "aria-disabled": this.disabled ? 'true' : null, class: this.sizes && `input-${this.sizes}` }, hAsync("textarea", { key: '9bd42480182ef1a6804c84bcec4cbcdfaf2208ba', class: `form-control textarea-control ${hasValueClass} ${noResizeClass} ${isInvalidClass}`, id: this.textareaId, "aria-disabled": this.disabled ? 'true' : null, "aria-labelledby": labelId, disabled: this.disabled, autoCapitalize: this.autocapitalize, autoFocus: this.autofocus, enterKeyHint: this.enterkeyhint, inputMode: this.inputmode, maxLength: this.maxlength, minLength: this.minlength, name: this.name, placeholder: this.placeholder, readOnly: this.readonly, required: this.required, value: value, spellcheck: this.spellcheck, cols: this.cols, rows: this.rows, wrap: this.wrap, onInput: this.onInput, onCompositionstart: this.onCompositionStart, onCompositionupdate: this.onCompositionUpdate, onCompositionend: this.onCompositionEnd, onBlur: this.onBlur, onFocus: this.onFocus, ref: el => (this.textareaEl = el) }), hAsync("label", { key: 'a46e0ff32396e011cb0bca6d65794e5e080ec633', class: "form-label", id: labelId, htmlFor: this.textareaId }, this.label), this.error && this.error !== '' && hAsync("p", { key: '703184751f1e79b0b925b1146a8a226f10d47be9', class: "invalid-feedback" }, this.error), this.helper && this.helper !== '' && hAsync("p", { key: '5537817fa2cf67f3b4be1e5606c2c5eec556d5b5', class: "helper" }, this.helper)));
|
|
37775
37847
|
}
|
|
37776
37848
|
static get watchers() { return {
|
|
37777
37849
|
"value": ["valueChanged"]
|
|
@@ -37902,7 +37974,7 @@ class Toast {
|
|
|
37902
37974
|
if (this.color == 'danger') {
|
|
37903
37975
|
this.timeout = 0;
|
|
37904
37976
|
}
|
|
37905
|
-
return (hAsync(Host, { key: '
|
|
37977
|
+
return (hAsync(Host, { key: '5c3caac868d79f97699af08fb0b96c1ff35ad9cc', class: `${toastIsOpenClass}`, role: "alert" }, hAsync("div", { key: 'b20177ba76a147f157605497de541dd53070a7b1', class: `toast toast-${this.color}` }, hAsync("road-icon", { key: 'f75466515c805ee5460577e9694b374b1a30ac62', class: "toast-icon", icon: icon, "aria-hidden": "true" }), hAsync("p", { key: 'a2e984002c90fbcc7f0eb8f912835c46f1f5effd', class: "toast-label" }, this.label), hAsync("button", { key: '37b9009541e949ee9ffe2350abd189a2d5bcf014', type: "button", class: "toast-close", "aria-label": "Close", onClick: this.onClick }, hAsync("road-icon", { key: '5c0cd9dbae939e8c52cb2150861b3c0f68d5518b', icon: navigationClose, size: "md" })), hAsync("slot", { key: '48469490e404f7db80d5c77aa3e08c02d769dd4f', name: "progress" }))));
|
|
37906
37978
|
}
|
|
37907
37979
|
static get watchers() { return {
|
|
37908
37980
|
"isOpen": ["isOpenChanged"]
|
|
@@ -37942,7 +38014,7 @@ class Toolbar {
|
|
|
37942
38014
|
}
|
|
37943
38015
|
render() {
|
|
37944
38016
|
const colorClass = this.color !== undefined ? `toolbar-${this.color}` : '';
|
|
37945
|
-
return (hAsync(Host, { key: '
|
|
38017
|
+
return (hAsync(Host, { key: '3dc7d078c8a2beddccd06b419074422f3aafbe3a', class: colorClass }, hAsync("div", { key: 'a7565dead37f8ef28f41e26cbc2b5b9a77be3827', class: "toolbar-container" }, hAsync("slot", { key: 'ecd46478a6eb7349171ea061233c1068f19eb78a', name: "start" }), hAsync("slot", { key: '7153d8935a1f361394acdd0c1d64e43a6f9ec93f', name: "primary" }), hAsync("div", { key: 'f205b0d511fd331b78c7fe4a567b7f420ece72d6', class: "toolbar-content" }, hAsync("slot", { key: '1a2671f07e4e9d098b854f783c8f6e892450a05e' })), hAsync("slot", { key: '2fd00ff4d71fc3b7e90ba3076f18665b30e63697', name: "secondary" }), hAsync("slot", { key: '83bbe556f1a94feb42faa9e3789b2515c8f85a03', name: "end" }))));
|
|
37946
38018
|
}
|
|
37947
38019
|
static get style() { return RoadToolbarStyle0; }
|
|
37948
38020
|
static get cmpMeta() { return {
|
|
@@ -37968,7 +38040,7 @@ class ToolbarAppName {
|
|
|
37968
38040
|
registerInstance(this, hostRef);
|
|
37969
38041
|
}
|
|
37970
38042
|
render() {
|
|
37971
|
-
return (hAsync("div", { key: '
|
|
38043
|
+
return (hAsync("div", { key: '6523ca97a8377f6af5fd0800aa5543cbc316f13f', class: "toolbar-title-page" }, hAsync("slot", { key: 'c5d3422ec09f1d54d24fb28cb2be7a84dd700703' })));
|
|
37972
38044
|
}
|
|
37973
38045
|
static get style() { return RoadToolbarTitlePageStyle0; }
|
|
37974
38046
|
static get cmpMeta() { return {
|
|
@@ -37992,7 +38064,7 @@ class ToolbarTitle {
|
|
|
37992
38064
|
registerInstance(this, hostRef);
|
|
37993
38065
|
}
|
|
37994
38066
|
render() {
|
|
37995
|
-
return (hAsync("div", { key: '
|
|
38067
|
+
return (hAsync("div", { key: '9ed296ef2918332630e1b5a7b7026b2edeb91b21', class: "toolbar-title" }, hAsync("slot", { key: 'a39fdb646a9bcb5aea4641575161229610d75878' })));
|
|
37996
38068
|
}
|
|
37997
38069
|
static get style() { return RoadToolbarTitleStyle0; }
|
|
37998
38070
|
static get cmpMeta() { return {
|
|
@@ -38021,7 +38093,7 @@ class ToolbarV2 {
|
|
|
38021
38093
|
registerInstance(this, hostRef);
|
|
38022
38094
|
}
|
|
38023
38095
|
render() {
|
|
38024
|
-
return (hAsync(Host, { key: '
|
|
38096
|
+
return (hAsync(Host, { key: '36c585d9dec920f5b72e37733e74c4134ee67185', class: "toolbar" }, hAsync("div", { key: '947c33c46e0bbc26b75d5bab2ed2c89ab228e808', class: "toolbar-container" }, hAsync("div", { key: '83d61111f17d1022ba7b54089e203277955e0a68', class: "toolbar-container-content-left" }, hAsync("slot", { key: '7ac57443795d0347afb7e5ce1070d42ac7f91017', name: "start" }), hAsync("slot", { key: 'a6089fd013186ea231d8d88d5af878239acf92f8', name: "primary" })), hAsync("div", { key: '441aaee506f1cf8a99921cf0a932303a9bdf18aa', class: "toolbar-content" }, hAsync("slot", { key: 'b72650e9913e3f0d08fbe2d2f8eed7219e132837' })), hAsync("div", { key: '48a7f37607c0ebd5a88620cd2ebac74bc12708ed', class: "toolbar-container-content-right" }, hAsync("slot", { key: '137e2d29e96b188194c0e9f82b6081a35119c371', name: "secondary" }), hAsync("slot", { key: '777d8774c10c9e4a784b193139ff10085166a103', name: "end" })))));
|
|
38025
38097
|
}
|
|
38026
38098
|
static get style() { return RoadToolbarV2Style0; }
|
|
38027
38099
|
static get cmpMeta() { return {
|
|
@@ -38148,12 +38220,12 @@ class Tooltip {
|
|
|
38148
38220
|
return triggers.includes(triggerType);
|
|
38149
38221
|
}
|
|
38150
38222
|
render() {
|
|
38151
|
-
return (hAsync(Host, { key: '
|
|
38223
|
+
return (hAsync(Host, { key: 'dbe023bc59f5d6637f901291cdd2c1a5d9b27450', onMouseOver: this.onMouseOver, onMouseOut: this.onMouseOut, onClick: this.onClick, onFocus: this.onFocus, onBlur: this.onBlur, tabindex: "0" // Makes the element focusable
|
|
38152
38224
|
,
|
|
38153
|
-
"data-tooltip-position": this.position }, hAsync("slot", { key: '
|
|
38225
|
+
"data-tooltip-position": this.position }, hAsync("slot", { key: 'ba01929185c87ed190275aafa8326bbbbd70ebca', "aria-describedby": this.tooltipId }), hAsync("div", { key: 'df67e1ec087033b72259fae58fc5447ed0d20a01', part: "tooltip", id: this.tooltipId, class: {
|
|
38154
38226
|
tooltip: true,
|
|
38155
38227
|
"tooltip-open": this.isOpen,
|
|
38156
|
-
}, role: "tooltip", "aria-hidden": !this.isOpen ? "true" : "false" }, this.content, hAsync("slot", { key: '
|
|
38228
|
+
}, role: "tooltip", "aria-hidden": !this.isOpen ? "true" : "false" }, this.content, hAsync("slot", { key: '8fc2ca39b71812dabd43af2a8fb3d0b2ef223a28', name: "tooltip-content" }))));
|
|
38157
38229
|
}
|
|
38158
38230
|
get el() { return getElement(this); }
|
|
38159
38231
|
static get style() { return RoadTooltipStyle0; }
|
|
@@ -38245,11 +38317,11 @@ class toggle {
|
|
|
38245
38317
|
}
|
|
38246
38318
|
render() {
|
|
38247
38319
|
const labelId = this.toggleId + '-label';
|
|
38248
|
-
const textLabel = hAsync("label", { key: '
|
|
38320
|
+
const textLabel = hAsync("label", { key: '688af16c9f4a539dd13c5bb98c0f2a731b492c06', class: "form-toggle-label", id: labelId, htmlFor: this.toggleId }, this.label);
|
|
38249
38321
|
const isSpacedClass = this.isSpaced && 'form-toggle-spaced';
|
|
38250
38322
|
const righttoggleClass = this.hasLeftLabel ? 'form-toggle-right' : '';
|
|
38251
38323
|
const disabledClass = this.disabled ? 'disabled' : '';
|
|
38252
|
-
return (hAsync(Host, { key: '
|
|
38324
|
+
return (hAsync(Host, { key: '530c7052c4b2d783599f0e997954a368bc49be45' }, hAsync("input", { key: '669fb27728139752f1e63319b86e804e7cf91da5', 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 }), hAsync("label", { key: '0f186f04ecd674c4c91458a1f6ef7aca63ee60cf', class: `form-toggle-label ${isSpacedClass} ${disabledClass}`, htmlFor: this.toggleId }, this.hasLeftLabel && textLabel, hAsync("div", { key: 'b0df7532dea735dfbd25da5307ba27d77fb7b6cc', class: `form-toggle-lever ${righttoggleClass}` }, this.checked ? (hAsync("road-icon", { name: "check-small-solid", class: "form-toggle-lever-check", size: "md" })) : (hAsync("road-icon", { name: "navigation-close-solid", class: "form-toggle-lever-close", size: "md" }))), this.hasLeftLabel ? '' : textLabel)));
|
|
38253
38325
|
}
|
|
38254
38326
|
static get watchers() { return {
|
|
38255
38327
|
"checked": ["checkedChanged"]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@roadtrip/components",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.53.0",
|
|
4
4
|
"description": "Web Component library for Roadtrip Design System",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://gitlab.com/mobivia/driverservices/experience-platform/roadtrip/components",
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as t,h as a,H as s,a as e}from"./p-d7aae05d.js";const d=":host{display:block}:host(.tab-hidden){display:none}";const i=d;const n=class{constructor(a){t(this,a);this.active=false}async componentWillLoad(){if(this.active){await this.setActive()}}onTabBarChanged(t){this.active=this.tab===t.detail.tab}async setActive(){this.active=true}render(){const{tab:t,active:e}=this;return a(s,{key:"1f2746fc33e9b879bc8558f18685bdf2f243fdf1",role:"tabpanel","aria-hidden":!e?"true":null,"aria-labelledby":`tab-button-${t}`,class:{"tab-hidden":!e}},a("slot",{key:"38d4df4049aa57b8160855d33990f1b2db21d259"}))}get el(){return e(this)}};n.style=i;export{n as road_tab};
|
|
2
|
-
//# sourceMappingURL=p-249b8592.entry.js.map
|