@roadtrip/components 3.37.0 → 3.38.1
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/index-KT6nBj3z.js.map +1 -1
- package/dist/cjs/road-badge_14.cjs.entry.js +1 -1
- package/dist/cjs/road-dialog.cjs.entry.js +7 -3
- package/dist/cjs/road-dialog.cjs.entry.js.map +1 -1
- package/dist/cjs/road-dialog.entry.cjs.js.map +1 -1
- package/dist/cjs/road-segmented-button-bar.cjs.entry.js +2 -2
- package/dist/cjs/road-segmented-button-bar.cjs.entry.js.map +1 -1
- package/dist/cjs/road-segmented-button-bar.entry.cjs.js.map +1 -1
- package/dist/cjs/road-segmented-button.cjs.entry.js +2 -2
- package/dist/cjs/road-segmented-button.cjs.entry.js.map +1 -1
- package/dist/cjs/road-segmented-button.entry.cjs.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-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 +3 -3
- package/dist/collection/components/dialog/dialog.js +9 -4
- package/dist/collection/components/dialog/dialog.js.map +1 -1
- package/dist/collection/components/dialog/dialog.stories.js +3 -0
- package/dist/collection/components/icon/svg/baby-seat-outline.svg +1 -1
- package/dist/collection/components/icon/svg/flag-morocco-color.svg +1 -0
- package/dist/collection/components/icon/svg/vehicle-cover-outline.svg +1 -1
- package/dist/collection/components/segmented-button/segmented-button.css +36 -28
- package/dist/collection/components/segmented-button/segmented-button.js +1 -1
- package/dist/collection/components/segmented-button/segmented-button.js.map +1 -1
- package/dist/collection/components/segmented-button-bar/segmented-button-bar.css +5 -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/segmented-buttons/segmented-buttons.stories.js +1 -1
- 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/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/toast/toast.js +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/index-D4L9-8Jc.js.map +1 -1
- package/dist/esm/road-badge_14.entry.js +1 -1
- package/dist/esm/road-dialog.entry.js +7 -3
- package/dist/esm/road-dialog.entry.js.map +1 -1
- package/dist/esm/road-segmented-button-bar.entry.js +2 -2
- package/dist/esm/road-segmented-button-bar.entry.js.map +1 -1
- package/dist/esm/road-segmented-button.entry.js +2 -2
- 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-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 +3 -3
- package/dist/icons/icons.svg +1 -1
- package/dist/icons/index.d.ts +1 -0
- package/dist/icons/index.js +3 -2
- package/dist/roadtrip/{p-e2199c84.entry.js → p-189a516a.entry.js} +2 -2
- package/dist/roadtrip/{p-f48ccd8b.entry.js → p-271b69d8.entry.js} +2 -2
- package/dist/roadtrip/{p-1f550ee1.entry.js → p-356a2ca4.entry.js} +2 -2
- package/dist/roadtrip/p-3ce8deab.entry.js +2 -0
- package/dist/roadtrip/p-3ce8deab.entry.js.map +1 -0
- package/dist/roadtrip/{p-4fee0864.entry.js → p-413d9ee8.entry.js} +2 -2
- package/dist/roadtrip/{p-2dd7d3bf.entry.js → p-41cd3e74.entry.js} +2 -2
- package/dist/roadtrip/{p-cd4d6154.entry.js → p-4d4e1282.entry.js} +2 -2
- package/dist/roadtrip/{p-85edfef8.entry.js → p-52b20e0d.entry.js} +2 -2
- package/dist/roadtrip/p-642aaeb9.entry.js +2 -0
- package/dist/roadtrip/p-642aaeb9.entry.js.map +1 -0
- package/dist/roadtrip/{p-cf3f4b9a.entry.js → p-654e15ca.entry.js} +2 -2
- package/dist/roadtrip/{p-21e4f868.entry.js → p-6f635bb3.entry.js} +2 -2
- package/dist/roadtrip/{p-e678228c.entry.js → p-759a5979.entry.js} +2 -2
- package/dist/roadtrip/{p-92ba90f5.entry.js → p-7ba4bd92.entry.js} +2 -2
- package/dist/roadtrip/{p-3f9d1111.entry.js → p-905ed5dd.entry.js} +2 -2
- package/dist/roadtrip/{p-0f7c2bb1.entry.js → p-9e350801.entry.js} +2 -2
- package/dist/roadtrip/p-9fde410f.entry.js +2 -0
- package/dist/roadtrip/p-D4L9-8Jc.js.map +1 -1
- package/dist/roadtrip/{p-e2ddeaf4.entry.js → p-a0ecd888.entry.js} +2 -2
- package/dist/roadtrip/{p-5cb2cf87.entry.js → p-cfa2d288.entry.js} +2 -2
- package/dist/roadtrip/{p-1c0a56f8.entry.js → p-d8754409.entry.js} +2 -2
- package/dist/roadtrip/{p-c341c65d.entry.js → p-db8047f7.entry.js} +2 -2
- package/dist/roadtrip/{p-ca469434.entry.js → p-dbfad609.entry.js} +2 -2
- package/dist/roadtrip/{p-ff9c5c19.entry.js → p-e63ebfd0.entry.js} +2 -2
- package/dist/roadtrip/{p-d25ecf9b.entry.js → p-f0845e60.entry.js} +2 -2
- package/dist/roadtrip/p-f7eaf7cc.entry.js +2 -0
- package/dist/roadtrip/p-f7eaf7cc.entry.js.map +1 -0
- package/dist/roadtrip/road-dialog.entry.esm.js.map +1 -1
- package/dist/roadtrip/road-segmented-button-bar.entry.esm.js.map +1 -1
- package/dist/roadtrip/road-segmented-button.entry.esm.js.map +1 -1
- package/dist/roadtrip/roadtrip.esm.js +1 -1
- package/dist/roadtrip/svg/baby-seat-outline.svg +1 -1
- package/dist/roadtrip/svg/flag-morocco-color.svg +1 -0
- package/dist/roadtrip/svg/vehicle-cover-outline.svg +1 -1
- package/dist/types/components.d.ts +2 -0
- package/hydrate/index.js +149 -106
- package/hydrate/index.mjs +149 -106
- package/icons/icons.svg +1 -1
- package/icons/index.d.ts +1 -0
- package/icons/index.js +3 -2
- package/package.json +1 -1
- package/dist/roadtrip/p-15fc9b83.entry.js +0 -2
- package/dist/roadtrip/p-15fc9b83.entry.js.map +0 -1
- package/dist/roadtrip/p-1a38d043.entry.js +0 -2
- package/dist/roadtrip/p-1a38d043.entry.js.map +0 -1
- package/dist/roadtrip/p-3e9f11a6.entry.js +0 -2
- package/dist/roadtrip/p-93f69a61.entry.js +0 -2
- package/dist/roadtrip/p-93f69a61.entry.js.map +0 -1
- /package/dist/roadtrip/{p-e2199c84.entry.js.map → p-189a516a.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-f48ccd8b.entry.js.map → p-271b69d8.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-1f550ee1.entry.js.map → p-356a2ca4.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-4fee0864.entry.js.map → p-413d9ee8.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-2dd7d3bf.entry.js.map → p-41cd3e74.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-cd4d6154.entry.js.map → p-4d4e1282.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-85edfef8.entry.js.map → p-52b20e0d.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-cf3f4b9a.entry.js.map → p-654e15ca.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-21e4f868.entry.js.map → p-6f635bb3.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-e678228c.entry.js.map → p-759a5979.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-92ba90f5.entry.js.map → p-7ba4bd92.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-3f9d1111.entry.js.map → p-905ed5dd.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-0f7c2bb1.entry.js.map → p-9e350801.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-3e9f11a6.entry.js.map → p-9fde410f.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-e2ddeaf4.entry.js.map → p-a0ecd888.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-5cb2cf87.entry.js.map → p-cfa2d288.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-1c0a56f8.entry.js.map → p-d8754409.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-c341c65d.entry.js.map → p-db8047f7.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-ca469434.entry.js.map → p-dbfad609.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-ff9c5c19.entry.js.map → p-e63ebfd0.entry.js.map} +0 -0
- /package/dist/roadtrip/{p-d25ecf9b.entry.js.map → p-f0845e60.entry.js.map} +0 -0
|
@@ -96,12 +96,12 @@ const Tooltip = class {
|
|
|
96
96
|
return triggers.includes(triggerType);
|
|
97
97
|
}
|
|
98
98
|
render() {
|
|
99
|
-
return (index.h(index.Host, { key: '
|
|
99
|
+
return (index.h(index.Host, { key: 'ad1b13ff6747008a6039e26c77229e09c0424481', onMouseOver: this.onMouseOver, onMouseOut: this.onMouseOut, onClick: this.onClick, onFocus: this.onFocus, onBlur: this.onBlur, tabindex: "0" // Makes the element focusable
|
|
100
100
|
,
|
|
101
|
-
"data-tooltip-position": this.position }, index.h("slot", { key: '
|
|
101
|
+
"data-tooltip-position": this.position }, index.h("slot", { key: '55ab7033c6d5cbc3941c77faa0d9bab9a7a25c11', "aria-describedby": this.tooltipId }), index.h("div", { key: 'bb7b2d992d7a7a201eb6c6e70ee1d455407b7427', part: "tooltip", id: this.tooltipId, class: {
|
|
102
102
|
tooltip: true,
|
|
103
103
|
'tooltip-open': this.isOpen,
|
|
104
|
-
}, role: "tooltip", "aria-hidden": !this.isOpen ? 'true' : 'false' }, this.content, index.h("slot", { key: '
|
|
104
|
+
}, role: "tooltip", "aria-hidden": !this.isOpen ? 'true' : 'false' }, this.content, index.h("slot", { key: '6c8ea046ac67c764b0626b41ba3d6586615ef7bb', name: "tooltip-content" }))));
|
|
105
105
|
}
|
|
106
106
|
get el() { return index.getElement(this); }
|
|
107
107
|
};
|
|
@@ -15,6 +15,10 @@ export class Dialog {
|
|
|
15
15
|
* Show / hide the close icon
|
|
16
16
|
*/
|
|
17
17
|
this.hasCloseIcon = true;
|
|
18
|
+
/**
|
|
19
|
+
* Set the color of information dialog. e.g. info, success, warning, danger
|
|
20
|
+
*/
|
|
21
|
+
this.color = 'info';
|
|
18
22
|
/**
|
|
19
23
|
* Close the dialog when clicking on the cross or layer
|
|
20
24
|
*/
|
|
@@ -81,11 +85,11 @@ export class Dialog {
|
|
|
81
85
|
break;
|
|
82
86
|
}
|
|
83
87
|
}
|
|
84
|
-
return (h(Host, { key: '
|
|
88
|
+
return (h(Host, { key: '290c0636b8ef1edfd35e4273b16e9ac05bb088c7', class: `dialog ${modalIsOpenClass} ${modalhasClose}`, role: "alertdialog", "aria-modal": "true", tabindex: "-1", "aria-label": "dialogLabel" }, h("div", { key: 'e150afc757aaa616abba21261f5fc4e7a7035cdc', class: "dialog-overlay", onClick: this.hasCloseIcon === true ? this.onClick : undefined, tabindex: "-1" }), h("div", { key: '30dcf17bb1765dd295f9b5b38a18441b922ea6f2', class: "dialog-modal", role: "document", tabindex: "0" }, h("div", { key: 'a0ffb5263da02b6677f5ca4410601bed109fa524', class: "dialog-content" }, h("header", { key: 'f37da11d3b3b70fb4c7ee83bec7a289607ef4217', class: "dialog-header" }, this.hasCloseIcon
|
|
85
89
|
? h("button", { type: "button", class: "dialog-close", onClick: this.onClick, "aria-label": "Close" }, h("road-icon", { icon: navigationClose, "aria-hidden": "true" }))
|
|
86
|
-
: ''), h("div", { key: '
|
|
90
|
+
: ''), h("div", { key: '9194a50bc0595a94170864de94f1ff1716693ee5', class: "dialog-body" }, this.color !== undefined
|
|
87
91
|
? h("road-icon", { class: "dialog-icon", part: "dialog-icon", color: this.color, icon: icon, "aria-hidden": "true" })
|
|
88
|
-
: '', h("h2", { key: '
|
|
92
|
+
: '', h("h2", { key: 'cceab62ea959bd00196b3a1953c7f99495aa1d8a', class: "dialog-title" }, this.label), h("p", { key: '147c9dec3808c463a363cd30fb2ab5b26818c8d8', class: "dialog-description", id: "dialogDesc" }, this.description)), h("footer", { key: '8fc28a19c581eef87c45aae031902e27aeb9dc59', class: "dialog-footer" }, h("slot", { key: '5245e5168dcc7011f534d2c2901207ad0f08a617' }))))));
|
|
89
93
|
}
|
|
90
94
|
static get is() { return "road-dialog"; }
|
|
91
95
|
static get encapsulation() { return "shadow"; }
|
|
@@ -164,7 +168,8 @@ export class Dialog {
|
|
|
164
168
|
},
|
|
165
169
|
"getter": false,
|
|
166
170
|
"setter": false,
|
|
167
|
-
"reflect": false
|
|
171
|
+
"reflect": false,
|
|
172
|
+
"defaultValue": "'info'"
|
|
168
173
|
},
|
|
169
174
|
"icon": {
|
|
170
175
|
"type": "string",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog.js","sourceRoot":"","sources":["../../../src/components/dialog/dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAEvG,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAEjI;;;;GAIG;AAOH,MAAM,OAAO,MAAM;IALnB;QAYE;;WAEG;QACsB,WAAM,GAAY,KAAK,CAAC;QAEjD;;WAEG;QACK,iBAAY,GAAY,IAAI,CAAC;
|
|
1
|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CACF","sourcesContent":["import { Component, Element, Event, EventEmitter, Listen, Method, Prop, h, Host } from '@stencil/core';\nimport { FeedbackColors } from '../../interface';\nimport { navigationClose, alertDangerOutline, alertInfoOutline, alertSuccessOutline, alertWarningOutline } from '../../../icons';\n\n/**\n * @slot - Content of the footer dialog if it's an action dialog add action buttons here.\n *\n * @part dialog-icon - main icon of the dialog\n */\n\n@Component({\n tag: 'road-dialog',\n styleUrl: 'dialog.css',\n shadow: true,\n})\nexport class Dialog {\n\n /**\n * Current reference of the dialog\n */\n @Element() el!: HTMLRoadDialogElement;\n\n /**\n * Set isOpen property to true to open the dialog\n */\n @Prop({ mutable: true }) isOpen: boolean = false;\n\n /**\n * Show / hide the close icon\n */\n @Prop() hasCloseIcon: boolean = true;\n\n /**\n * Set the color of information dialog. e.g. info, success, warning, danger\n */\n @Prop() color?: FeedbackColors = 'info';\n\n /**\n * override default icon\n */\n @Prop() icon?: string;\n\n /**\n * Text to the top\n */\n @Prop() label?: string;\n\n /**\n * Content description of the dialog\n */\n @Prop() description?: string;\n\n /**\n * Indicate when closing the dialog\n */\n @Event({ eventName: 'close' }) onClose!: EventEmitter<void>;\n\n /**\n * Open the dialog\n */\n @Method()\n async open() {\n this.isOpen = true;\n }\n\n /**\n * Close the dialog\n */\n @Method()\n async close() {\n this.isOpen = false;\n this.el.addEventListener('transitionend', () => {\n this.onClose.emit();\n }, { once: true});\n }\n\n /**\n * Close the dialog when clicking on the cross or layer\n */\n private onClick = (ev: UIEvent) => {\n ev.stopPropagation();\n ev.preventDefault();\n\n this.close();\n };\n\n /**\n * Close the dialog when press Escape key\n */\n @Listen('keyup', { target: 'document' })\n onEscape(event: KeyboardEvent) {\n if ((event.key === 'Escape' || event.key === \"Esc\") && this.isOpen && this.hasCloseIcon) {\n this.close();\n }\n }\n\n /**\n * Call close function when clicking an element with data-dismiss=\"modal\" attribute\n */\n componentDidLoad() {\n this.el.querySelectorAll('[data-dismiss=\"modal\"]').forEach(item => {\n item.addEventListener('click', () => this.close());\n });\n }\n\n render() {\n const modalIsOpenClass = this.isOpen ? 'dialog-open' : '';\n const modalhasClose = this.hasCloseIcon ? 'dialog-has-close' : '';\n\n let icon;\n\n if(this.icon) {\n icon = this.icon;\n } else {\n switch(this.color) {\n case 'info':\n icon = alertInfoOutline;\n break;\n case 'success':\n icon = alertSuccessOutline;\n break;\n case 'warning':\n icon = alertWarningOutline;\n break;\n case 'danger':\n icon = alertDangerOutline;\n break;\n default:\n icon = alertInfoOutline;\n break;\n }\n }\n\n return (\n <Host class={`dialog ${modalIsOpenClass} ${modalhasClose}`} role=\"alertdialog\" aria-modal=\"true\" tabindex=\"-1\" aria-label=\"dialogLabel\">\n <div class=\"dialog-overlay\" onClick={this.hasCloseIcon === true ? this.onClick : undefined} tabindex=\"-1\"></div>\n <div class=\"dialog-modal\" role=\"document\" tabindex=\"0\">\n <div class=\"dialog-content\">\n <header class=\"dialog-header\">\n {this.hasCloseIcon\n ? <button type=\"button\" class=\"dialog-close\" onClick={this.onClick} aria-label=\"Close\"><road-icon icon={navigationClose} aria-hidden=\"true\"></road-icon></button>\n : ''}\n </header>\n <div class=\"dialog-body\">\n {this.color !== undefined\n ? <road-icon class=\"dialog-icon\" part=\"dialog-icon\" color={this.color} icon={icon} aria-hidden=\"true\"></road-icon>\n : ''}\n <h2 class=\"dialog-title\">{this.label}</h2>\n <p class=\"dialog-description\" id=\"dialogDesc\">{this.description}</p>\n </div>\n <footer class=\"dialog-footer\">\n <slot/>\n </footer>\n </div>\n </div>\n </Host>\n );\n }\n}"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg"><path d="m46.14 19.425.061.21c.567 2.115-.229 4.398-2.048 5.633l-.185.12a644.195 644.195 0 0 0-6.065 3.785l1.817 5.69 5.655 2.952.139.077a3.143 3.143 0 0 1 1.404 1.775l4.645 14.61-1.163.393-.743.252-.008.003-.007.002c-3.108 1.006-6.431-.398-8.005-3.301l-.001-.003-2.565-4.757-.008-.015c-.229-.44-.596-.8-1.047-1.036h-.002l-6.912-3.617-.007-.004a5.123 5.123 0 0 1-2.46-2.94l-.001-.004-2.823-8.76-.034-.124a1.25 1.25 0 0 1 2.367-.764l.045.12 2.825 8.76c.216.658.667 1.19 1.248 1.5l6.91 3.617a4.952 4.952 0 0 1 2.1 2.08l2.562 4.756c.947 1.746 2.81 2.594 4.593 2.23l-3.89-12.24-.005-.012a.64.64 0 0 0-.311-.38h-.001l-6.569-3.43-2.714-8.498.804-.52c1.33-.857 4.591-2.894 6.914-4.325l.18-.123c.874-.651 1.271-1.84.919-2.965l-.001-.003-.174-.56-10.165 3.57a1.25 1.25 0 0 1-.828-2.359l12.613-4.43.94 3.035Z"
|
|
1
|
+
<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg"><path d="m46.14 19.425.061.21c.567 2.115-.229 4.398-2.048 5.633l-.185.12a644.195 644.195 0 0 0-6.065 3.785l1.817 5.69 5.655 2.952.139.077a3.143 3.143 0 0 1 1.404 1.775l4.645 14.61-1.163.393-.743.252-.008.003-.007.002c-3.108 1.006-6.431-.398-8.005-3.301l-.001-.003-2.565-4.757-.008-.015c-.229-.44-.596-.8-1.047-1.036h-.002l-6.912-3.617-.007-.004a5.123 5.123 0 0 1-2.46-2.94l-.001-.004-2.823-8.76-.034-.124a1.25 1.25 0 0 1 2.367-.764l.045.12 2.825 8.76c.216.658.667 1.19 1.248 1.5l6.91 3.617a4.952 4.952 0 0 1 2.1 2.08l2.562 4.756c.947 1.746 2.81 2.594 4.593 2.23l-3.89-12.24-.005-.012a.64.64 0 0 0-.311-.38h-.001l-6.569-3.43-2.714-8.498.804-.52c1.33-.857 4.591-2.894 6.914-4.325l.18-.123c.874-.651 1.271-1.84.919-2.965l-.001-.003-.174-.56-10.165 3.57a1.25 1.25 0 0 1-.828-2.359l12.613-4.43.94 3.035Z"/><path d="M34.75 16.5a5.25 5.25 0 1 0-10.5 0 5.25 5.25 0 0 0 10.5 0Zm2.5 0a7.75 7.75 0 1 1-15.5 0 7.75 7.75 0 0 1 15.5 0Zm-22.555-.712a1.25 1.25 0 0 1 1.48.784l.037.123 6.262 24.88.114.43c1.23 4.372 3.943 6.745 6.473 6.745H37a1.25 1.25 0 0 1 0 2.5h-7.939c-4.17 0-7.51-3.703-8.885-8.588l-.127-.477-6.26-24.88-.026-.125a1.25 1.25 0 0 1 .932-1.392Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M24 4H0v16h24V4Z" fill="#DDDFE4"/><path d="M23 5.004H1v13.995h22V5.004Z" fill="#C1272D"/><path d="M12.944 11.056H16l-2.472 1.888.944 3.056L12 14.111 9.528 16l.944-3.056L8 11.055h3.056L12 8l.944 3.056Zm-2.656 3.843 1.371-1.047-.847-.648-.524 1.695Zm2.052-1.047 1.371 1.047-.524-1.695-.847.647Zm-1.398-1.069 1.058.809 1.058-.809-.404-1.307h-1.308l-.404 1.307Zm-.34-.26.324-1.047H9.23l1.37 1.047Zm2.796 0 1.371-1.047h-1.695l.324 1.047Zm-1.922-1.467h1.048L12 9.36l-.524 1.696Z" fill="#006233"/></svg>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg"><path d="M60.11 34.48a4.764 4.764 0 0 0-3.238-4.505c-2.805-.938-5.539-1.599-8.212-1.967-2.215-.305-4.375-1.117-6.197-2.504l-5.808-4.408-.364-.264a10.793 10.793 0 0 0-6.313-1.922l-12.628.199h.001a7.756 7.756 0 0 0-6.303 3.418l-.001.002-2.881 4.27-.136.203-.203.136-1.43.958.001.001a4.766 4.766 0 0 0-2.09 3.672v.001l-.398 7.065v3.209l56.2-.288V34.48ZM11.957 44.502a3.732 3.732 0 0 0 4.056-.02l-4.056.02Zm33.932-.173a3.732 3.732 0 0 0 4.55-.023l-4.55.023Zm16.721-.085-8.949.046a6.248 6.248 0 0 1-5.51 3.3 6.247 6.247 0 0 1-5.481-3.245l-23.287.12a6.247 6.247 0 0 1-5.413 3.125 6.246 6.246 0 0 1-5.381-3.07l-7.179.036v-5.828h.002l.4-7.099v-.003l.037-.42a7.262 7.262 0 0 1 3.153-5.183l.002-.001 1.225-.824 2.745-4.067a10.256 10.256 0 0 1 8.334-4.521h.002l12.63-.2.557.004c2.588.069 5.095.891 7.219 2.364l.449.325v.001l5.81 4.41.001.001.274.2c1.383.976 3.021 1.578 4.75 1.817l1.07.16c2.498.41 5.03 1.054 7.597 1.913l.275.099a7.265 7.265 0 0 1 4.668 6.776v9.764Z"
|
|
1
|
+
<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg"><path d="M60.11 34.48a4.764 4.764 0 0 0-3.238-4.505c-2.805-.938-5.539-1.599-8.212-1.967-2.215-.305-4.375-1.117-6.197-2.504l-5.808-4.408-.364-.264a10.793 10.793 0 0 0-6.313-1.922l-12.628.199h.001a7.756 7.756 0 0 0-6.303 3.418l-.001.002-2.881 4.27-.136.203-.203.136-1.43.958.001.001a4.766 4.766 0 0 0-2.09 3.672v.001l-.398 7.065v3.209l56.2-.288V34.48ZM11.957 44.502a3.732 3.732 0 0 0 4.056-.02l-4.056.02Zm33.932-.173a3.732 3.732 0 0 0 4.55-.023l-4.55.023Zm16.721-.085-8.949.046a6.248 6.248 0 0 1-5.51 3.3 6.247 6.247 0 0 1-5.481-3.245l-23.287.12a6.247 6.247 0 0 1-5.413 3.125 6.246 6.246 0 0 1-5.381-3.07l-7.179.036v-5.828h.002l.4-7.099v-.003l.037-.42a7.262 7.262 0 0 1 3.153-5.183l.002-.001 1.225-.824 2.745-4.067a10.256 10.256 0 0 1 8.334-4.521h.002l12.63-.2.557.004c2.588.069 5.095.891 7.219 2.364l.449.325v.001l5.81 4.41.001.001.274.2c1.383.976 3.021 1.578 4.75 1.817l1.07.16c2.498.41 5.03 1.054 7.597 1.913l.275.099a7.265 7.265 0 0 1 4.668 6.776v9.764Z"/></svg>
|
|
@@ -17,31 +17,22 @@
|
|
|
17
17
|
flex: 1;
|
|
18
18
|
align-items: center;
|
|
19
19
|
justify-content: center;
|
|
20
|
-
max-height: 2.
|
|
20
|
+
max-height: 2.75rem;
|
|
21
21
|
font-size: var(--road-button-medium);
|
|
22
22
|
font-weight: 700;
|
|
23
|
-
color: var(--road-
|
|
23
|
+
color: var(--road-on-surface-weak);
|
|
24
24
|
text-decoration: none;
|
|
25
25
|
white-space: nowrap;
|
|
26
26
|
vertical-align: middle;
|
|
27
27
|
background-color: var(--road-surface);
|
|
28
|
-
border-
|
|
29
|
-
border-bottom: 1px solid var(--road-primary);
|
|
30
|
-
border-left: 1px solid var(--road-primary);
|
|
31
|
-
border-radius: 0;
|
|
28
|
+
border-radius: 8px;
|
|
32
29
|
transition: background 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
:host(:first-child){
|
|
37
|
-
border: 1px solid var(--road-primary);
|
|
38
|
-
border-right: 0;
|
|
39
|
-
border-radius: 999em 0 0 999em;
|
|
30
|
+
margin-right: var(--road-spacing-02);
|
|
31
|
+
overflow: hidden;
|
|
40
32
|
}
|
|
41
33
|
|
|
42
34
|
:host(:last-child){
|
|
43
|
-
|
|
44
|
-
border-radius: 0 999em 999em 0;
|
|
35
|
+
margin-right: 0;
|
|
45
36
|
}
|
|
46
37
|
|
|
47
38
|
/**
|
|
@@ -49,21 +40,30 @@
|
|
|
49
40
|
*/
|
|
50
41
|
|
|
51
42
|
:host(.btn-sm) {
|
|
52
|
-
height:
|
|
53
|
-
|
|
43
|
+
height: 2.5rem;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* medium
|
|
48
|
+
*/
|
|
49
|
+
|
|
50
|
+
:host(.btn-md) {
|
|
51
|
+
height: 2.75rem;
|
|
54
52
|
}
|
|
55
53
|
|
|
56
54
|
/**
|
|
57
55
|
* Active state
|
|
58
56
|
*/
|
|
59
57
|
|
|
60
|
-
:host(.tab-selected) {
|
|
61
|
-
color: var(--road-primary
|
|
62
|
-
|
|
58
|
+
:host(.tab-selected) {
|
|
59
|
+
color: var(--road-button-primary);
|
|
60
|
+
fill: var(--road-button-primary);
|
|
61
|
+
background-color: var(--road-button-tertiary-variant);
|
|
63
62
|
}
|
|
64
63
|
|
|
65
64
|
:host(.tab-selected:hover) {
|
|
66
|
-
|
|
65
|
+
color: var(--road-button-primary);
|
|
66
|
+
background-color: var(--road-button-tertiary-variant);
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
|
|
@@ -72,7 +72,8 @@
|
|
|
72
72
|
*/
|
|
73
73
|
|
|
74
74
|
:host(:hover) {
|
|
75
|
-
|
|
75
|
+
color: var(--road-on-surface);
|
|
76
|
+
background-color: var(--road-surface-inverse);
|
|
76
77
|
}
|
|
77
78
|
|
|
78
79
|
/**
|
|
@@ -81,14 +82,9 @@
|
|
|
81
82
|
|
|
82
83
|
|
|
83
84
|
:host(.focus-visible) {
|
|
84
|
-
background: var(--road-primary-90);
|
|
85
85
|
outline: auto;
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
-
:host(.tab-selected.focus-visible){
|
|
89
|
-
background-color: var(--road-button-primary-variant);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
88
|
|
|
93
89
|
/* NATIVE
|
|
94
90
|
-------------------- */
|
|
@@ -102,7 +98,6 @@
|
|
|
102
98
|
justify-content: inherit;
|
|
103
99
|
width: 100%;
|
|
104
100
|
height: 100%;
|
|
105
|
-
max-height: 2.5rem;
|
|
106
101
|
padding: 0.75rem var(--padding-end, 1.5rem) 0.75rem var(--padding-start, 1.5rem);
|
|
107
102
|
margin: 0;
|
|
108
103
|
overflow: hidden;
|
|
@@ -130,3 +125,16 @@
|
|
|
130
125
|
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
131
126
|
}
|
|
132
127
|
|
|
128
|
+
:host ::slotted(road-icon) {
|
|
129
|
+
margin: -0.2rem var(--road-spacing-03) -0.2rem 0;
|
|
130
|
+
float: left;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
.button-content {
|
|
135
|
+
overflow: hidden;
|
|
136
|
+
text-overflow: ellipsis;
|
|
137
|
+
white-space: nowrap;
|
|
138
|
+
min-width: 0;
|
|
139
|
+
}
|
|
140
|
+
|
|
@@ -55,7 +55,7 @@ export class SegmentedButton {
|
|
|
55
55
|
return (h(Host, { key: '863bee27ee0f19d6db0382687b0e8e79bd013a98', onClick: this.onClick, onKeyup: this.onKeyUp, role: "tab", tabindex: tabIndex, "aria-selected": selected ? 'true' : null, id: tab !== undefined ? `tab-button-${tab}` : null, class: {
|
|
56
56
|
'tab-selected': selected,
|
|
57
57
|
[`${sizeClass}`]: true,
|
|
58
|
-
} }, h("span", { key: '9e16e5ad2ce62ecbf1d27c01ce0fe5fbdfae023e', tabIndex: -1, class: "button-native", part: "native", "aria-hidden": "true" }, h("slot", { key: '
|
|
58
|
+
} }, h("span", { key: '9e16e5ad2ce62ecbf1d27c01ce0fe5fbdfae023e', tabIndex: -1, class: "button-native", part: "native", "aria-hidden": "true" }, h("span", { key: '96f9bf0fac28111e1b400a3f721ad6df4d726253', class: "button-content" }, h("slot", { key: '474845bdcfbc64a70581c715efaa74e87631875a' })))));
|
|
59
59
|
}
|
|
60
60
|
static get is() { return "road-segmented-button"; }
|
|
61
61
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"segmented-button.js","sourceRoot":"","sources":["../../../src/components/segmented-button/segmented-button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAE/F;;;GAGG;AAOH,MAAM,OAAO,eAAe;IAL5B;QASE;;YAEI;QACK,SAAI,GAAiB,IAAI,CAAC;QAEnC;;WAEG;QACsB,aAAQ,GAAG,KAAK,CAAC;QAmDlC,YAAO,GAAG,CAAC,EAAiB,EAAE,EAAE;YACtC,IAAI,EAAE,CAAC,GAAG,KAAK,OAAO,IAAI,EAAE,CAAC,GAAG,KAAK,GAAG,EAAE,CAAC;gBACzC,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;YACrB,CAAC;QACH,CAAC,CAAC;QAEM,YAAO,GAAG,CAAC,EAAS,EAAE,EAAE;YAC9B,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;QACrB,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"segmented-button.js","sourceRoot":"","sources":["../../../src/components/segmented-button/segmented-button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAE/F;;;GAGG;AAOH,MAAM,OAAO,eAAe;IAL5B;QASE;;YAEI;QACK,SAAI,GAAiB,IAAI,CAAC;QAEnC;;WAEG;QACsB,aAAQ,GAAG,KAAK,CAAC;QAmDlC,YAAO,GAAG,CAAC,EAAiB,EAAE,EAAE;YACtC,IAAI,EAAE,CAAC,GAAG,KAAK,OAAO,IAAI,EAAE,CAAC,GAAG,KAAK,GAAG,EAAE,CAAC;gBACzC,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;YACrB,CAAC;QACH,CAAC,CAAC;QAEM,YAAO,GAAG,CAAC,EAAS,EAAE,EAAE;YAC9B,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;QACrB,CAAC,CAAC;KA6BH;IAvEC,kBAAkB,CAAC,EAAe;QAChC,MAAM,cAAc,GAAG,EAAE,CAAC,MAAqB,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,CAAC,EAAE,CAAC,aAA4B,CAAC;QAEpD,I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CAAC,OAAO,EACrB,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,IAAI,EAAC,KAAK,EACV,QAAQ,EAAE,QAAQ,mBACH,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,EACvC,EAAE,EAAE,GAAG,KAAK,SAAS,CAAC,CAAC,CAAC,cAAc,GAAG,EAAE,CAAC,CAAC,CAAC,IAAI,EAClD,KAAK,EAAE;gBACL,cAAc,EAAE,QAAQ;gBACxB,CAAC,GAAG,SAAS,EAAE,CAAC,EAAE,IAAI;aACvB;YAED,6DAAM,QAAQ,EAAE,CAAC,CAAC,EAAE,KAAK,EAAC,eAAe,EAAC,IAAI,EAAC,QAAQ,iBAAa,MAAM;gBACxE,6DAAM,KAAK,EAAC,gBAAgB;oBAC1B,8DAAO,CACF,CACF,CACF,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Event, EventEmitter, Host, Listen, Prop, h } from '@stencil/core';\n\n/**\n *\n * @part native - The native HTML anchor element that wraps all child elements.\n */\n\n@Component({\n tag: 'road-segmented-button',\n styleUrl: 'segmented-button.css',\n shadow: true,\n})\nexport class SegmentedButton {\n\n @Element() el!: HTMLRoadSegmentedButtonElement;\n\n /**\n * The Segmented buttons size.\n */\n @Prop() size?: 'sm' | 'md' = 'md';\n\n /**\n * The selected tab component\n */\n @Prop({ mutable: true }) selected = false;\n\n /**\n * A tab id must be provided for each `road-tab`. It's used internally to reference\n */\n @Prop() tab?: string;\n\n /**\n * Emitted when the tab bar is clicked\n * @internal\n */\n @Event() roadsegmentedbuttonclick!: EventEmitter;\n /** @internal */\n @Event() roadSegmentedButtonClick!: EventEmitter;\n\n @Listen('roadSegmentedButtonBarChanged', { target: 'window' })\n @Listen('roadSegmentedButtonbarchanged', { target: 'window' })\n onButtonBarChanged(ev: CustomEvent) {\n const dispatchedFrom = ev.target as HTMLElement;\n const parent = this.el.parentElement as EventTarget;\n\n if ((ev.composedPath && ev.composedPath().includes(parent)) || (dispatchedFrom && dispatchedFrom.contains(this.el))) {\n this.selected = this.tab === ev.detail.tab;\n }\n }\n\n private selectTab(ev: Event | KeyboardEvent) {\n if (this.tab !== undefined) {\n this.roadsegmentedbuttonclick.emit({\n tab: this.tab,\n selected: this.selected,\n });\n this.roadSegmentedButtonClick.emit({\n tab: this.tab,\n selected: this.selected,\n });\n\n ev.preventDefault();\n }\n }\n\n private get tabIndex() {\n const hasTabIndex = this.el.hasAttribute('tabindex');\n\n if (hasTabIndex) {\n return this.el.getAttribute('tabindex');\n }\n\n return 0;\n }\n\n private onKeyUp = (ev: KeyboardEvent) => {\n if (ev.key === 'Enter' || ev.key === ' ') {\n this.selectTab(ev);\n }\n };\n\n private onClick = (ev: Event) => {\n this.selectTab(ev);\n };\n\n render() {\n const { tabIndex, selected, tab } = this;\n\n const sizeClass = this.size !== undefined ? `btn-${this.size}` : '';\n\n\n return (\n <Host\n onClick={this.onClick}\n onKeyup={this.onKeyUp}\n role=\"tab\"\n tabindex={tabIndex}\n aria-selected={selected ? 'true' : null}\n id={tab !== undefined ? `tab-button-${tab}` : null}\n class={{\n 'tab-selected': selected,\n [`${sizeClass}`]: true,\n }}\n >\n <span tabIndex={-1} class=\"button-native\" part=\"native\" aria-hidden=\"true\">\n <span class=\"button-content\">\n <slot/>\n </span>\n </span>\n </Host>\n );\n }\n}"]}
|
|
@@ -18,7 +18,7 @@ export class ButtonBar {
|
|
|
18
18
|
this.selectedTabChanged();
|
|
19
19
|
}
|
|
20
20
|
render() {
|
|
21
|
-
return (h(Host, { key: '
|
|
21
|
+
return (h(Host, { key: '20a78b478a8d346e40af1065cfc57e273498d389', role: "tablist" }, h("slot", { key: 'aadc0d0830d3110041dc4e0fa7f93f0a42fdefc5' })));
|
|
22
22
|
}
|
|
23
23
|
static get is() { return "road-segmented-button-bar"; }
|
|
24
24
|
static get encapsulation() { return "shadow"; }
|
|
@@ -86,7 +86,7 @@ export class Tabs {
|
|
|
86
86
|
return Array.from(this.el.querySelectorAll('road-tab'));
|
|
87
87
|
}
|
|
88
88
|
render() {
|
|
89
|
-
return (h(Host, { key: '
|
|
89
|
+
return (h(Host, { key: '760ffd7c98659dc00187c97e3d01ce92409584a5', onRoadSegmentedButtonClick: this.onTabClicked }, h("slot", { key: 'dfd7acfd76741333868ff7dce2f88c27f2413808', name: "top" }), h("slot", { key: 'e7ed6139b95280e972025c5028e0694da0f26265' })));
|
|
90
90
|
}
|
|
91
91
|
static get is() { return "road-segmented-buttons"; }
|
|
92
92
|
static get encapsulation() { return "shadow"; }
|
|
@@ -92,7 +92,7 @@ export class Select {
|
|
|
92
92
|
const labelId = this.selectId + '-label';
|
|
93
93
|
const hasValueClass = this.value && this.value !== '' ? 'has-value' : '';
|
|
94
94
|
const isInvalidClass = this.error !== undefined && this.error !== '' ? 'is-invalid' : '';
|
|
95
|
-
return (h(Host, { key: '
|
|
95
|
+
return (h(Host, { key: '531ff3e04c4447214779844ba29b2208ded29d12', class: this.sizes && `select-${this.sizes}` }, h("select", { key: 'e5336849c3992793152ffcc2b3670f96c0c1129b', 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 }, h("option", { key: 'f9f2f7857d3ce3cdb0205b5589388ad0417d6802', selected: !this.value, disabled: true, hidden: true, style: { display: 'none' }, value: "" }), this.options && this.options.map(option => (h("option", { value: option.value, selected: this.value !== null && option.value == this.value }, option.label)))), h("label", { key: '4c2d444e030ef6168b4871ae5381550295b91e5f', class: "form-select-label", id: labelId, htmlFor: this.selectId }, this.label), this.error && this.error !== '' && h("p", { key: '40808526b05350e9d59dedd814ca620368fa6098', class: "invalid-feedback" }, this.error)));
|
|
96
96
|
}
|
|
97
97
|
static get is() { return "road-select"; }
|
|
98
98
|
static get encapsulation() { return "scoped"; }
|
|
@@ -179,7 +179,7 @@ export class SelectFilter {
|
|
|
179
179
|
const options = this.filteredOptions;
|
|
180
180
|
const isActive = this.isActive ? 'true' : 'false';
|
|
181
181
|
const notActive = this.isActive ? '' : 'not-active';
|
|
182
|
-
return (h(Host, { key: '
|
|
182
|
+
return (h(Host, { key: 'eb209aa9c9421eca958fe21a8598edc774d61406', "is-active": isActive }, h("slot", { key: '4c7bc828b789101338eafd5091cde5fe749db9a9' }), this.isOpen && (h("div", { key: '4f7f5ade504721515a8f5f5ffd6ec93178336b4d', class: `${notActive} select-filter-list`, role: "listbox", onMouseLeave: this.handleMouseLeave }, options.length === 0 ? (h("div", { class: "select-filter-empty" }, "Aucune option")) : (h("ul", { class: "pl-0" }, options.map((option, idx) => (h("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 })))))))));
|
|
183
183
|
}
|
|
184
184
|
static get is() { return "road-select-filter"; }
|
|
185
185
|
static get encapsulation() { return "scoped"; }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
export class Skeleton {
|
|
3
3
|
render() {
|
|
4
|
-
return (h("span", { key: '
|
|
4
|
+
return (h("span", { key: 'd0f6fa2c6d1346b4dbdf15e3a2d8f5776961a625' }, "\u00A0"));
|
|
5
5
|
}
|
|
6
6
|
static get is() { return "road-skeleton"; }
|
|
7
7
|
static get encapsulation() { return "shadow"; }
|
|
@@ -13,7 +13,7 @@ export class Spinner {
|
|
|
13
13
|
render() {
|
|
14
14
|
const sizeClass = this.size !== undefined ? `spinner spinner--${this.size}` : 'spinner';
|
|
15
15
|
const colorClass = this.size !== undefined ? `spinner-circle spinner-circle--${this.color}` : 'spinner-circle';
|
|
16
|
-
return (h("svg", { key: '
|
|
16
|
+
return (h("svg", { key: 'a13fe873d986f18ad6e24d03c8ed2cc08d111bfb', class: `${sizeClass}`, viewBox: "25 25 50 50" }, h("circle", { key: '2be205cfa0e2fb9898578db0205ecabc865cddf2', class: `${colorClass}`, cx: "50", cy: "50", r: "20" })));
|
|
17
17
|
}
|
|
18
18
|
static get is() { return "road-spinner"; }
|
|
19
19
|
static get encapsulation() { return "shadow"; }
|
|
@@ -70,11 +70,11 @@ export class Switch {
|
|
|
70
70
|
}
|
|
71
71
|
render() {
|
|
72
72
|
const labelId = this.switchId + '-label';
|
|
73
|
-
const textLabel = h("label", { key: '
|
|
73
|
+
const textLabel = h("label", { key: '430104d38d5703aa56ce1976a977a126468ec741', class: "form-switch-label", id: labelId, htmlFor: this.switchId }, this.label);
|
|
74
74
|
const colorClass = this.color !== undefined ? 'form-switch-' + this.color : '';
|
|
75
75
|
const isSpacedClass = this.isSpaced && 'form-switch-spaced';
|
|
76
76
|
const rightSwitchClass = this.hasLeftLabel ? 'form-switch-right' : '';
|
|
77
|
-
return (h(Host, { key: '
|
|
77
|
+
return (h(Host, { key: '2bfcb70289e7a90964e1211569ab02e1097cd12b' }, h("input", { key: '7c9e3273d965e895479da1fb4349bb35fa5efc3b', 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 }), h("label", { key: 'af4acb92308e858b7188c71bdd2cb1e5bb368e31', class: `form-switch-label ${isSpacedClass} ${colorClass}`, htmlFor: this.switchId }, this.hasLeftLabel && textLabel, h("div", { key: '0dcc70814eb2ae967bf5235bb6aac1ba7205d7b4', class: `form-switch-lever ${rightSwitchClass}`, "data-off": this.off, "data-on": this.on }), this.hasLeftLabel ? '' : textLabel)));
|
|
78
78
|
}
|
|
79
79
|
static get is() { return "road-switch"; }
|
|
80
80
|
static get encapsulation() { return "scoped"; }
|
|
@@ -21,9 +21,9 @@ export class Tab {
|
|
|
21
21
|
}
|
|
22
22
|
render() {
|
|
23
23
|
const { tab, active } = this;
|
|
24
|
-
return (h(Host, { key: '
|
|
24
|
+
return (h(Host, { key: '10d79bb43319e005cf57d629ea4f678e3f3a5ae2', role: "tabpanel", "aria-hidden": !active ? 'true' : null, "aria-labelledby": `tab-button-${tab}`, class: {
|
|
25
25
|
'tab-hidden': !active,
|
|
26
|
-
} }, h("slot", { key: '
|
|
26
|
+
} }, h("slot", { key: 'd11c7858cddf2b5da0db945ee9f69f52d02d7c16' })));
|
|
27
27
|
}
|
|
28
28
|
static get is() { return "road-tab"; }
|
|
29
29
|
static get encapsulation() { return "shadow"; }
|
|
@@ -36,11 +36,11 @@ export class TabBar {
|
|
|
36
36
|
}
|
|
37
37
|
render() {
|
|
38
38
|
const { expand, center, secondary } = this;
|
|
39
|
-
return (h(Host, { key: '
|
|
39
|
+
return (h(Host, { key: '683e4f5c99d335ec1c744830237bd3cd23db8c75', role: "tablist", class: {
|
|
40
40
|
'tab-expand': expand,
|
|
41
41
|
'tab-center': center,
|
|
42
42
|
'tab-secondary': secondary,
|
|
43
|
-
} }, h("slot", { key: '
|
|
43
|
+
} }, h("slot", { key: '0757eeb70b98263e316b408bc420fee186de03b0' })));
|
|
44
44
|
}
|
|
45
45
|
static get is() { return "road-tab-bar"; }
|
|
46
46
|
static get encapsulation() { return "shadow"; }
|
|
@@ -71,7 +71,7 @@ export class TabButton {
|
|
|
71
71
|
rel,
|
|
72
72
|
target,
|
|
73
73
|
};
|
|
74
|
-
return (h(Host, { key: '
|
|
74
|
+
return (h(Host, { key: '6fdae83a0fe22652c51b92874265e2c32787063d', 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: {
|
|
75
75
|
'tab-selected': selected,
|
|
76
76
|
'tab-has-label': hasLabel,
|
|
77
77
|
'tab-has-icon': hasIcon,
|
|
@@ -79,7 +79,7 @@ export class TabButton {
|
|
|
79
79
|
'tab-has-icon-only': hasIcon && !hasLabel,
|
|
80
80
|
[`tab-layout-${layout}`]: true,
|
|
81
81
|
'tab-disabled': disabled, // Classe CSS pour les styles désactivés
|
|
82
|
-
} }, h("a", Object.assign({ key: '
|
|
82
|
+
} }, h("a", Object.assign({ key: 'dc85019d7861a227495a165790d2e5b025f1f979' }, attrs, { tabIndex: -1, class: "button-native", part: "native" }), h("span", { key: '59d9387c00bb48a34f425d9af782e3568f566263', class: "button-inner" }, h("slot", { key: '54290ac6eee4506846c8756f5141b493e6ebcc13' })))));
|
|
83
83
|
}
|
|
84
84
|
static get is() { return "road-tab-button"; }
|
|
85
85
|
static get encapsulation() { return "shadow"; }
|
|
@@ -4,7 +4,7 @@ import { h } from "@stencil/core";
|
|
|
4
4
|
*/
|
|
5
5
|
export class Table {
|
|
6
6
|
render() {
|
|
7
|
-
return (h("slot", { key: '
|
|
7
|
+
return (h("slot", { key: 'e8b08c7f5bbb8fd61ae6d73278b61c8838bbabf4' }));
|
|
8
8
|
}
|
|
9
9
|
static get is() { return "road-table"; }
|
|
10
10
|
static get encapsulation() { return "scoped"; }
|
|
@@ -99,7 +99,7 @@ export class Tabs {
|
|
|
99
99
|
return Array.from(this.el.querySelectorAll('road-tab'));
|
|
100
100
|
}
|
|
101
101
|
render() {
|
|
102
|
-
return (h(Host, { key: '
|
|
102
|
+
return (h(Host, { key: '5ac640c40ecdf802d7d56a662d5aa107ced242ef', onRoadTabButtonClick: this.onTabClicked }, h("slot", { key: '8f50a94ef5602b121eaf7406c6d83ed93c50a7aa', name: "top" }), h("div", { key: 'fb87539786bf6f7d1e3d7a9766b191bca35ce312', class: "tabs-inner" }, h("slot", { key: '32f22aabd7e38881d289fbd0af69669d62d918cc' }))));
|
|
103
103
|
}
|
|
104
104
|
static get is() { return "road-tabs"; }
|
|
105
105
|
static get encapsulation() { return "shadow"; }
|
|
@@ -16,7 +16,7 @@ export class Tag {
|
|
|
16
16
|
}
|
|
17
17
|
render() {
|
|
18
18
|
const contrastClass = this.contrast ? `tag-${this.color} tag-${this.color}-contrast` : `tag-${this.color}`;
|
|
19
|
-
return (h(Host, { key: '
|
|
19
|
+
return (h(Host, { key: '81f24465ee40fd72b3095258f67f9d46b0f663e2', class: `${contrastClass}` }, h("slot", { key: 'baf9168e522f8f4cf682f03c40304d5052a030f2' })));
|
|
20
20
|
}
|
|
21
21
|
static get is() { return "road-tag"; }
|
|
22
22
|
static get encapsulation() { return "shadow"; }
|
|
@@ -11,7 +11,7 @@ export class Text {
|
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
13
|
const colorClass = this.color !== undefined ? `text-${this.color}` : '';
|
|
14
|
-
return (h(Host, { key: '
|
|
14
|
+
return (h(Host, { key: '8c3872a70719feac2cbf76f50b7491b838fb393b', class: `${colorClass}` }, h("slot", { key: 'b746e561a4c05d829492a023120a7d1ade1c146f' })));
|
|
15
15
|
}
|
|
16
16
|
static get is() { return "road-text"; }
|
|
17
17
|
static get encapsulation() { return "shadow"; }
|
|
@@ -82,7 +82,7 @@ export class Textarea {
|
|
|
82
82
|
const hasValueClass = this.value !== '' ? 'has-value' : '';
|
|
83
83
|
const noResizeClass = this.resize == false ? 'no-resize' : '';
|
|
84
84
|
const isInvalidClass = this.error !== undefined && this.error !== '' ? 'is-invalid' : '';
|
|
85
|
-
return (h(Host, { key: '
|
|
85
|
+
return (h(Host, { key: 'f67a9451b99f450ee2828ea5eb5dc3728795c1dd', "aria-disabled": this.disabled ? 'true' : null, class: this.sizes && `input-${this.sizes}` }, h("textarea", { key: '27f3c926911126812156ccc87172c3e71f634b7c', 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, onBlur: this.onBlur, onFocus: this.onFocus }), h("label", { key: '081afb27b83557ce88db5c78d6e90c138f69c0d4', class: "form-label", id: labelId, htmlFor: this.textareaId }, this.label), this.error && this.error !== '' && h("p", { key: '3509594cc1523c401e12a796216ed3c97813f419', class: "invalid-feedback" }, this.error), this.helper && this.helper !== '' && h("p", { key: 'ede03d506c01bf3eae5a633a534eeed696df819d', class: "helper" }, this.helper)));
|
|
86
86
|
}
|
|
87
87
|
static get is() { return "road-textarea"; }
|
|
88
88
|
static get encapsulation() { return "scoped"; }
|
|
@@ -86,7 +86,7 @@ export class Toast {
|
|
|
86
86
|
if (this.color == 'danger') {
|
|
87
87
|
this.timeout = 0;
|
|
88
88
|
}
|
|
89
|
-
return (h(Host, { key: '
|
|
89
|
+
return (h(Host, { key: '6f7087bd4eb183f58cde02e0a890e6ab18b6c5b8', class: `${toastIsOpenClass}`, role: "alert" }, h("div", { key: 'a2494ef9b74ad9fac5d8b81c810bdcfe52936fef', class: `toast toast-${this.color}` }, h("road-icon", { key: '4be95019df5ab21b94508a62afd80f0d89d42150', class: "toast-icon", icon: icon, "aria-hidden": "true" }), h("p", { key: 'ca9901aed33cf158c16eadf8587b90ae235dd933', class: "toast-label" }, this.label), h("button", { key: 'abdb172097d82844c78e608264995aa8568fdf23', type: "button", class: "toast-close", "aria-label": "Close", onClick: this.onClick }, h("road-icon", { key: 'a6c17efe9a3255210498348ced0ab1e7b5dd8b8c', icon: navigationClose, size: "md" })), h("slot", { key: 'ee1c9f42ddb4efaf69466d51edd10c256b35bd22', name: "progress" }))));
|
|
90
90
|
}
|
|
91
91
|
static get is() { return "road-toast"; }
|
|
92
92
|
static get encapsulation() { return "shadow"; }
|
|
@@ -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: '04e2ecdd74318b173c60411293ec8300c0e7d80c', 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: '5afde6ab7825eb0473b34f8ae2656c9fec8002d7' }, h("input", { key: '7350937218c795dc74192e9b6cdd191ff6bf232c', 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: '87a03339e8520b2c248f4d762d394411bd233423', class: `form-toggle-label ${isSpacedClass} ${disabledClass}`, htmlFor: this.toggleId }, this.hasLeftLabel && textLabel, h("div", { key: '3d5c0e81cda827653f545c0fd3b057f83dd793d0', 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"; }
|
|
@@ -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: 'dce34768cc5775e3819bd44b9a53a0164f0e1a2c', class: colorClass }, h("div", { key: '5c8ecc9b623feacce32288e71325b87b16abd687', class: "toolbar-container" }, h("slot", { key: '5975b6a723dc4f48ae2150c5e8a344759f548885', name: "start" }), h("slot", { key: '2ac9ee0ce36cf9b6d685a9ecf6a77036b0b57c75', name: "primary" }), h("div", { key: 'af93cd350b853d5769f795906442273a91137b1c', class: "toolbar-content" }, h("slot", { key: '4eaeff6528ac5082683478b4197f00b9c6c25331' })), h("slot", { key: '640e0d82dfb515af2c5db5dd24788467c264031e', name: "secondary" }), h("slot", { key: 'e8485cc43749e335f9d480528a2da0b4016ba0b4', 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: 'ed443e8a60fd8624ef3381200b15ba4ff31b8aa5', class: "toolbar-title" }, h("slot", { key: '1a6148e5e56141545821c5f7a70208db50238bbc' })));
|
|
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: '1c1ecd0a39d2929bca5c324fe67bdc18a18b5390', class: "toolbar-title-page" }, h("slot", { key: '0b52cf3cf5b7a6d5f41ec4c8f839731cb48315c9' })));
|
|
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: '382572569bcd4298cf5b3e0ce1996eff06d21146', class: "toolbar" }, h("div", { key: '3041348fa0bb67af14e7cf56e25e17f70aaac86c', class: "toolbar-container" }, h("div", { key: '6a0f67070976e7688b2a22a895ab3fa74d99458d', class: "toolbar-container-content-left" }, h("slot", { key: 'ef46f756ec5cb53f90c03079f18bfbc2380b92b0', name: "start" }), h("slot", { key: '6adfe95451a4f311dcc74d8f6a68f7037c24578f', name: "primary" })), h("div", { key: '00c321d7d6093073ec20d7eb50ad017fbe361127', class: "toolbar-content" }, h("slot", { key: '01894b4175c84a9fbd97802a8a2d5721e2e124b1' })), h("div", { key: '8e6e1298bbbfa5c6707af70512e2c3f696d70da5', class: "toolbar-container-content-right" }, h("slot", { key: 'b1ea849fdb52aca7bc056b6015dcb062f1226d6e', name: "secondary" }), h("slot", { key: '07d8efd5011fec01d58a399761d05a7eb2d9e59d', name: "end" })))));
|
|
13
13
|
}
|
|
14
14
|
static get is() { return "road-toolbar-v2"; }
|
|
15
15
|
static get encapsulation() { return "shadow"; }
|