@ccrpc/webmapgl 0.18.6 → 0.18.8
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/app-globals-62694daf.js.map +1 -1
- package/dist/cjs/gl-address-search_52.cjs.entry.js +31 -30
- package/dist/cjs/gl-address-search_52.cjs.entry.js.map +1 -1
- package/dist/cjs/gl-draw-toolbar.cjs.entry.js +3 -3
- package/dist/cjs/gl-draw-toolbar.cjs.entry.js.map +1 -1
- package/dist/cjs/gl-facet_5.cjs.entry.js +1 -1
- package/dist/cjs/gl-facet_5.cjs.entry.js.map +1 -1
- package/dist/cjs/gl-like-button.cjs.entry.js +5 -5
- package/dist/cjs/gl-like-button.cjs.entry.js.map +1 -1
- package/dist/cjs/index.cjs.js +11 -0
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/collection/components/address-search/address-search.js +4 -4
- package/dist/collection/components/address-search/address-search.js.map +1 -1
- package/dist/collection/components/app/app.js +1 -1
- package/dist/collection/components/app/app.js.map +1 -1
- package/dist/collection/components/attribute-values/attribute-values.js +1 -1
- package/dist/collection/components/basemaps/basemaps.js +2 -2
- package/dist/collection/components/basemaps/basemaps.js.map +1 -1
- package/dist/collection/components/download-button/download-button.js +3 -3
- package/dist/collection/components/download-button/download-button.js.map +1 -1
- package/dist/collection/components/download-list/download-list.js +2 -1
- package/dist/collection/components/download-list/download-list.js.map +1 -1
- package/dist/collection/components/draw-toolbar/draw-toolbar.js +4 -4
- package/dist/collection/components/draw-toolbar/draw-toolbar.js.map +1 -1
- package/dist/collection/components/drawer/drawer.js +4 -4
- package/dist/collection/components/drawer/drawer.js.map +1 -1
- package/dist/collection/components/drawer-toggle/drawer-toggle.js +1 -1
- package/dist/collection/components/drawer-toggle/drawer-toggle.js.map +1 -1
- package/dist/collection/components/feature-list/feature-list.js +1 -1
- package/dist/collection/components/form-page/form-page.js +2 -2
- package/dist/collection/components/form-page/form-page.js.map +1 -1
- package/dist/collection/components/fullscreen/fullscreen.js +1 -1
- package/dist/collection/components/fullscreen/fullscreen.js.map +1 -1
- package/dist/collection/components/legend-item/legend-item.js +2 -2
- package/dist/collection/components/legend-item/legend-item.js.map +1 -1
- package/dist/collection/components/like-button/like-button.js +6 -6
- package/dist/collection/components/like-button/like-button.js.map +1 -1
- package/dist/collection/components/share/share.js +3 -3
- package/dist/collection/components/share/share.js.map +1 -1
- package/dist/collection/components/share-button/share-button.js +2 -2
- package/dist/collection/components/share-button/share-button.js.map +1 -1
- package/dist/collection/components/story-button/story-button.js +4 -4
- package/dist/collection/components/story-button/story-button.js.map +1 -1
- package/dist/collection/components/style/style.js +3 -3
- package/dist/collection/components/table-column-visibility/table-column-visibility.js +1 -1
- package/dist/collection/components/table-column-visibility/table-column-visibility.js.map +1 -1
- package/dist/collection/components/table-column-visibility-button/table-column-visibility-button.js +3 -3
- package/dist/collection/components/table-column-visibility-button/table-column-visibility-button.js.map +1 -1
- package/dist/collection/components/table-export-button/table-export-button.js +1 -1
- package/dist/collection/components/table-export-button/table-export-button.js.map +1 -1
- package/dist/collection/global/webmapgl.js +1 -0
- package/dist/collection/global/webmapgl.js.map +1 -1
- package/dist/collection/index.js +2 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/esm/app-globals-755c21e9.js.map +1 -1
- package/dist/esm/gl-address-search_52.entry.js +32 -31
- package/dist/esm/gl-address-search_52.entry.js.map +1 -1
- package/dist/esm/gl-draw-controller.entry.js +1 -1
- package/dist/esm/gl-draw-toolbar.entry.js +3 -3
- package/dist/esm/gl-draw-toolbar.entry.js.map +1 -1
- package/dist/esm/gl-facet_5.entry.js +2 -2
- package/dist/esm/gl-facet_5.entry.js.map +1 -1
- package/dist/esm/gl-feature-list.entry.js +1 -1
- package/dist/esm/gl-like-button.entry.js +6 -6
- package/dist/esm/gl-like-button.entry.js.map +1 -1
- package/dist/esm/gl-table-export-controller.entry.js +1 -1
- package/dist/esm/index.js +2 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/polyfills/core-js.js +0 -0
- package/dist/esm/polyfills/dom.js +0 -0
- package/dist/esm/polyfills/es5-html-element.js +0 -0
- package/dist/esm/polyfills/index.js +0 -0
- package/dist/esm/polyfills/system.js +0 -0
- package/dist/esm/{utils-0af5fee1.js → utils-e86257fd.js} +2 -2
- package/dist/esm/{utils-0af5fee1.js.map → utils-e86257fd.js.map} +1 -1
- package/dist/node_modules/@ionic/core/dist/collection/components/accordion/accordion.ios.css +83 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/accordion/accordion.md.css +80 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/accordion-group/accordion-group.ios.css +17 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/accordion-group/accordion-group.md.css +64 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/action-sheet/action-sheet.ios.css +319 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/action-sheet/action-sheet.md.css +259 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/alert/alert.ios.css +503 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/alert/alert.md.css +531 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/app/app.css +17 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/avatar/avatar.ios.css +22 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/avatar/avatar.md.css +22 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/back-button/back-button.ios.css +246 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/back-button/back-button.md.css +269 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/backdrop/backdrop.ios.css +26 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/backdrop/backdrop.md.css +26 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/badge/badge.ios.css +50 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/badge/badge.md.css +54 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/breadcrumb/breadcrumb.ios.css +205 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/breadcrumb/breadcrumb.md.css +200 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/breadcrumbs/breadcrumbs.ios.css +26 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/breadcrumbs/breadcrumbs.md.css +25 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/button/button.ios.css +431 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/button/button.md.css +408 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/buttons/buttons.ios.css +114 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/buttons/buttons.md.css +134 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/card/card.ios.css +93 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/card/card.md.css +88 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/card-content/card-content.ios.css +53 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/card-content/card-content.md.css +55 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/card-header/card-header.ios.css +31 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/card-header/card-header.md.css +28 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/card-subtitle/card-subtitle.ios.css +28 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/card-subtitle/card-subtitle.md.css +26 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/card-title/card-title.ios.css +27 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/card-title/card-title.md.css +27 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/checkbox/checkbox.ios.css +310 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/checkbox/checkbox.md.css +326 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/chip/chip.css +149 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/col/col.css +68 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/content/content.css +227 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/datetime/datetime.ios.css +589 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/datetime/datetime.md.css +561 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/datetime-button/datetime-button.css +44 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/fab/fab.css +98 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/fab-button/fab-button.ios.css +312 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/fab-button/fab-button.md.css +283 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/fab-list/fab-list.css +123 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/footer/footer.ios.css +36 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/footer/footer.md.css +19 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/grid/grid.css +103 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/header/header.ios.css +106 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/header/header.md.css +23 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/img/img.css +12 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/infinite-scroll/infinite-scroll.css +8 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/infinite-scroll-content/infinite-scroll-content.ios.css +46 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/infinite-scroll-content/infinite-scroll-content.md.css +46 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/input/input.ios.css +635 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/input/input.md.css +1077 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/item/item.ios.css +646 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/item/item.md.css +908 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/item-divider/item-divider.ios.css +166 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/item-divider/item-divider.md.css +232 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/item-group/item-group.ios.css +3 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/item-group/item-group.md.css +3 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/item-option/item-option.ios.css +142 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/item-option/item-option.md.css +136 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/item-options/item-options.ios.css +121 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/item-options/item-options.md.css +118 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/item-sliding/item-sliding.css +66 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/label/label.ios.css +164 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/label/label.md.css +251 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/list/list.ios.css +63 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/list/list.md.css +104 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/list-header/list-header.ios.css +107 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/list-header/list-header.md.css +88 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/loading/loading.ios.css +95 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/loading/loading.md.css +86 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/menu/menu.ios.css +167 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/menu/menu.md.css +163 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/menu-button/menu-button.ios.css +167 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/menu-button/menu-button.md.css +170 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/menu-toggle/menu-toggle.css +3 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/modal/modal.ios.css +247 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/modal/modal.md.css +162 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/nav/nav.css +10 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/note/note.ios.css +16 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/note/note.md.css +17 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/picker/picker.ios.css +257 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/picker/picker.md.css +244 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/picker-column/picker-column.ios.css +145 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/picker-column/picker-column.md.css +136 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/picker-column-internal/picker-column-internal.ios.css +75 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/picker-column-internal/picker-column-internal.md.css +78 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/picker-internal/picker-internal.ios.css +152 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/picker-internal/picker-internal.md.css +148 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/popover/popover.ios.css +250 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/popover/popover.md.css +157 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/progress-bar/progress-bar.ios.css +206 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/progress-bar/progress-bar.md.css +206 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/radio/radio.ios.css +331 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/radio/radio.md.css +354 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/range/range.ios.css +469 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/range/range.md.css +614 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/refresher/refresher.ios.css +211 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/refresher/refresher.md.css +206 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/reorder/reorder.ios.css +15 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/reorder/reorder.md.css +15 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/reorder-group/reorder-group.css +34 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/ripple-effect/ripple-effect.css +58 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/router-link/router-link.css +29 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/router-outlet/route-outlet.css +10 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/row/row.css +4 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/searchbar/searchbar.ios.css +354 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/searchbar/searchbar.md.css +339 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/segment/segment.ios.css +59 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/segment/segment.md.css +49 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/segment-button/segment-button.ios.css +410 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/segment-button/segment-button.md.css +396 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/select/select.ios.css +552 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/select/select.md.css +1025 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/select-option/select-option.css +3 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/select-popover/select-popover.ios.css +14 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/select-popover/select-popover.md.css +37 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/skeleton-text/skeleton-text.css +53 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/spinner/spinner.css +177 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/split-pane/split-pane.ios.css +92 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/split-pane/split-pane.md.css +92 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/tab/tab.css +4 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/tab-bar/tab-bar.ios.css +87 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/tab-bar/tab-bar.md.css +74 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/tab-button/tab-button.ios.css +367 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/tab-button/tab-button.md.css +391 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/tabs/tabs.css +19 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/text/text.css +3 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/textarea/textarea.ios.css +693 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/textarea/textarea.md.css +1142 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/thumbnail/thumbnail.css +21 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/title/title.ios.css +119 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/title/title.md.css +47 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/toast/toast.ios.css +284 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/toast/toast.md.css +305 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/toggle/toggle.ios.css +455 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/toggle/toggle.md.css +400 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/toolbar/toolbar.ios.css +161 -0
- package/dist/node_modules/@ionic/core/dist/collection/components/toolbar/toolbar.md.css +136 -0
- package/dist/node_modules/ionicons/dist/collection/components/icon/icon.css +101 -0
- package/dist/types/global/webmapgl.d.ts +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/webmapgl/index.esm.js +1 -1
- package/dist/webmapgl/{p-29a0ba94.entry.js → p-10ecfbc1.entry.js} +3 -3
- package/dist/webmapgl/p-10ecfbc1.entry.js.map +1 -0
- package/dist/webmapgl/{p-d8674de4.js → p-1109414b.js} +2 -2
- package/dist/webmapgl/p-41aed25d.entry.js +8 -0
- package/dist/webmapgl/p-41aed25d.entry.js.map +1 -0
- package/dist/webmapgl/{p-9a52a393.entry.js → p-4bdbedef.entry.js} +2 -2
- package/dist/webmapgl/{p-43063806.entry.js → p-60c4d25c.entry.js} +2 -2
- package/dist/webmapgl/{p-47516d22.entry.js → p-725281ca.entry.js} +2 -2
- package/dist/webmapgl/{p-8d22e12f.entry.js → p-8e93527b.entry.js} +2 -2
- package/dist/webmapgl/p-8e93527b.entry.js.map +1 -0
- package/dist/webmapgl/p-b3dc2acc.js.map +1 -1
- package/dist/webmapgl/{p-96e77bf2.entry.js → p-c61eaf23.entry.js} +2 -2
- package/dist/webmapgl/p-c61eaf23.entry.js.map +1 -0
- package/dist/webmapgl/webmapgl.css +1 -1
- package/dist/webmapgl/webmapgl.esm.js +1 -1
- package/package.json +4 -3
- package/CHANGELOG.md +0 -234
- package/dist/webmapgl/p-29a0ba94.entry.js.map +0 -1
- package/dist/webmapgl/p-8d22e12f.entry.js.map +0 -1
- package/dist/webmapgl/p-96e77bf2.entry.js.map +0 -1
- package/dist/webmapgl/p-99a83939.entry.js +0 -8
- package/dist/webmapgl/p-99a83939.entry.js.map +0 -1
- /package/dist/webmapgl/{p-d8674de4.js.map → p-1109414b.js.map} +0 -0
- /package/dist/webmapgl/{p-9a52a393.entry.js.map → p-4bdbedef.entry.js.map} +0 -0
- /package/dist/webmapgl/{p-43063806.entry.js.map → p-60c4d25c.entry.js.map} +0 -0
- /package/dist/webmapgl/{p-47516d22.entry.js.map → p-725281ca.entry.js.map} +0 -0
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: flex;
|
|
3
|
+
position: relative;
|
|
4
|
+
align-items: center;
|
|
5
|
+
justify-content: center;
|
|
6
|
+
width: 100%;
|
|
7
|
+
height: 200px;
|
|
8
|
+
/**
|
|
9
|
+
* Picker columns should display
|
|
10
|
+
* in the order in which developers
|
|
11
|
+
* added them and should ignore
|
|
12
|
+
* LTR vs RTL directions.
|
|
13
|
+
*/
|
|
14
|
+
direction: ltr;
|
|
15
|
+
/**
|
|
16
|
+
* This is required otherwise the
|
|
17
|
+
* highlight will appear behind
|
|
18
|
+
* the picker when used inline.
|
|
19
|
+
*/
|
|
20
|
+
z-index: 0;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
:host .picker-before,
|
|
24
|
+
:host .picker-after {
|
|
25
|
+
position: absolute;
|
|
26
|
+
width: 100%;
|
|
27
|
+
/**
|
|
28
|
+
* The transform and z-index
|
|
29
|
+
* are needed for WebKit otherwise
|
|
30
|
+
* the fade will appear underneath the picker.
|
|
31
|
+
*/
|
|
32
|
+
transform: translateZ(0);
|
|
33
|
+
z-index: 1;
|
|
34
|
+
pointer-events: none;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
:host .picker-before {
|
|
38
|
+
top: 0;
|
|
39
|
+
height: 83px;
|
|
40
|
+
}
|
|
41
|
+
@supports (inset-inline-start: 0) {
|
|
42
|
+
:host .picker-before {
|
|
43
|
+
inset-inline-start: 0;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
@supports not (inset-inline-start: 0) {
|
|
47
|
+
:host .picker-before {
|
|
48
|
+
left: 0;
|
|
49
|
+
}
|
|
50
|
+
:host-context([dir=rtl]) .picker-before {
|
|
51
|
+
left: unset;
|
|
52
|
+
right: unset;
|
|
53
|
+
right: 0;
|
|
54
|
+
}
|
|
55
|
+
@supports selector(:dir(rtl)) {
|
|
56
|
+
:host .picker-before:dir(rtl) {
|
|
57
|
+
left: unset;
|
|
58
|
+
right: unset;
|
|
59
|
+
right: 0;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
:host .picker-after {
|
|
65
|
+
top: 116px;
|
|
66
|
+
height: 84px;
|
|
67
|
+
}
|
|
68
|
+
@supports (inset-inline-start: 0) {
|
|
69
|
+
:host .picker-after {
|
|
70
|
+
inset-inline-start: 0;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
@supports not (inset-inline-start: 0) {
|
|
74
|
+
:host .picker-after {
|
|
75
|
+
left: 0;
|
|
76
|
+
}
|
|
77
|
+
:host-context([dir=rtl]) .picker-after {
|
|
78
|
+
left: unset;
|
|
79
|
+
right: unset;
|
|
80
|
+
right: 0;
|
|
81
|
+
}
|
|
82
|
+
@supports selector(:dir(rtl)) {
|
|
83
|
+
:host .picker-after:dir(rtl) {
|
|
84
|
+
left: unset;
|
|
85
|
+
right: unset;
|
|
86
|
+
right: 0;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
:host .picker-highlight {
|
|
92
|
+
border-radius: 8px;
|
|
93
|
+
left: 0;
|
|
94
|
+
right: 0;
|
|
95
|
+
top: 50%;
|
|
96
|
+
bottom: 0;
|
|
97
|
+
-webkit-margin-start: auto;
|
|
98
|
+
margin-inline-start: auto;
|
|
99
|
+
-webkit-margin-end: auto;
|
|
100
|
+
margin-inline-end: auto;
|
|
101
|
+
margin-top: 0;
|
|
102
|
+
margin-bottom: 0;
|
|
103
|
+
position: absolute;
|
|
104
|
+
width: calc(100% - 16px);
|
|
105
|
+
height: 34px;
|
|
106
|
+
transform: translateY(-50%);
|
|
107
|
+
background: var(--wheel-highlight-background);
|
|
108
|
+
z-index: -1;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
:host input {
|
|
112
|
+
position: absolute;
|
|
113
|
+
top: 0;
|
|
114
|
+
left: 0;
|
|
115
|
+
right: 0;
|
|
116
|
+
bottom: 0;
|
|
117
|
+
width: 100%;
|
|
118
|
+
height: 100%;
|
|
119
|
+
margin: 0;
|
|
120
|
+
padding: 0;
|
|
121
|
+
border: 0;
|
|
122
|
+
outline: 0;
|
|
123
|
+
clip: rect(0 0 0 0);
|
|
124
|
+
opacity: 0;
|
|
125
|
+
overflow: hidden;
|
|
126
|
+
-webkit-appearance: none;
|
|
127
|
+
-moz-appearance: none;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
:host ::slotted(ion-picker-column-internal:first-of-type) {
|
|
131
|
+
text-align: start;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
:host ::slotted(ion-picker-column-internal:last-of-type) {
|
|
135
|
+
text-align: end;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
:host ::slotted(ion-picker-column-internal:only-child) {
|
|
139
|
+
text-align: center;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
:host .picker-before {
|
|
143
|
+
background: linear-gradient(to bottom, rgba(var(--wheel-fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 1) 20%, rgba(var(--wheel-fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 0.8) 100%);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
:host .picker-after {
|
|
147
|
+
background: linear-gradient(to top, rgba(var(--wheel-fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 1) 20%, rgba(var(--wheel-fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 0.8) 100%);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
:host .picker-highlight {
|
|
151
|
+
background: var(--wheel-highlight-background, var(--ion-color-step-150, #eeeeef));
|
|
152
|
+
}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: flex;
|
|
3
|
+
position: relative;
|
|
4
|
+
align-items: center;
|
|
5
|
+
justify-content: center;
|
|
6
|
+
width: 100%;
|
|
7
|
+
height: 200px;
|
|
8
|
+
/**
|
|
9
|
+
* Picker columns should display
|
|
10
|
+
* in the order in which developers
|
|
11
|
+
* added them and should ignore
|
|
12
|
+
* LTR vs RTL directions.
|
|
13
|
+
*/
|
|
14
|
+
direction: ltr;
|
|
15
|
+
/**
|
|
16
|
+
* This is required otherwise the
|
|
17
|
+
* highlight will appear behind
|
|
18
|
+
* the picker when used inline.
|
|
19
|
+
*/
|
|
20
|
+
z-index: 0;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
:host .picker-before,
|
|
24
|
+
:host .picker-after {
|
|
25
|
+
position: absolute;
|
|
26
|
+
width: 100%;
|
|
27
|
+
/**
|
|
28
|
+
* The transform and z-index
|
|
29
|
+
* are needed for WebKit otherwise
|
|
30
|
+
* the fade will appear underneath the picker.
|
|
31
|
+
*/
|
|
32
|
+
transform: translateZ(0);
|
|
33
|
+
z-index: 1;
|
|
34
|
+
pointer-events: none;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
:host .picker-before {
|
|
38
|
+
top: 0;
|
|
39
|
+
height: 83px;
|
|
40
|
+
}
|
|
41
|
+
@supports (inset-inline-start: 0) {
|
|
42
|
+
:host .picker-before {
|
|
43
|
+
inset-inline-start: 0;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
@supports not (inset-inline-start: 0) {
|
|
47
|
+
:host .picker-before {
|
|
48
|
+
left: 0;
|
|
49
|
+
}
|
|
50
|
+
:host-context([dir=rtl]) .picker-before {
|
|
51
|
+
left: unset;
|
|
52
|
+
right: unset;
|
|
53
|
+
right: 0;
|
|
54
|
+
}
|
|
55
|
+
@supports selector(:dir(rtl)) {
|
|
56
|
+
:host .picker-before:dir(rtl) {
|
|
57
|
+
left: unset;
|
|
58
|
+
right: unset;
|
|
59
|
+
right: 0;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
:host .picker-after {
|
|
65
|
+
top: 116px;
|
|
66
|
+
height: 84px;
|
|
67
|
+
}
|
|
68
|
+
@supports (inset-inline-start: 0) {
|
|
69
|
+
:host .picker-after {
|
|
70
|
+
inset-inline-start: 0;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
@supports not (inset-inline-start: 0) {
|
|
74
|
+
:host .picker-after {
|
|
75
|
+
left: 0;
|
|
76
|
+
}
|
|
77
|
+
:host-context([dir=rtl]) .picker-after {
|
|
78
|
+
left: unset;
|
|
79
|
+
right: unset;
|
|
80
|
+
right: 0;
|
|
81
|
+
}
|
|
82
|
+
@supports selector(:dir(rtl)) {
|
|
83
|
+
:host .picker-after:dir(rtl) {
|
|
84
|
+
left: unset;
|
|
85
|
+
right: unset;
|
|
86
|
+
right: 0;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
:host .picker-highlight {
|
|
92
|
+
border-radius: 8px;
|
|
93
|
+
left: 0;
|
|
94
|
+
right: 0;
|
|
95
|
+
top: 50%;
|
|
96
|
+
bottom: 0;
|
|
97
|
+
-webkit-margin-start: auto;
|
|
98
|
+
margin-inline-start: auto;
|
|
99
|
+
-webkit-margin-end: auto;
|
|
100
|
+
margin-inline-end: auto;
|
|
101
|
+
margin-top: 0;
|
|
102
|
+
margin-bottom: 0;
|
|
103
|
+
position: absolute;
|
|
104
|
+
width: calc(100% - 16px);
|
|
105
|
+
height: 34px;
|
|
106
|
+
transform: translateY(-50%);
|
|
107
|
+
background: var(--wheel-highlight-background);
|
|
108
|
+
z-index: -1;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
:host input {
|
|
112
|
+
position: absolute;
|
|
113
|
+
top: 0;
|
|
114
|
+
left: 0;
|
|
115
|
+
right: 0;
|
|
116
|
+
bottom: 0;
|
|
117
|
+
width: 100%;
|
|
118
|
+
height: 100%;
|
|
119
|
+
margin: 0;
|
|
120
|
+
padding: 0;
|
|
121
|
+
border: 0;
|
|
122
|
+
outline: 0;
|
|
123
|
+
clip: rect(0 0 0 0);
|
|
124
|
+
opacity: 0;
|
|
125
|
+
overflow: hidden;
|
|
126
|
+
-webkit-appearance: none;
|
|
127
|
+
-moz-appearance: none;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
:host ::slotted(ion-picker-column-internal:first-of-type) {
|
|
131
|
+
text-align: start;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
:host ::slotted(ion-picker-column-internal:last-of-type) {
|
|
135
|
+
text-align: end;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
:host ::slotted(ion-picker-column-internal:only-child) {
|
|
139
|
+
text-align: center;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
:host .picker-before {
|
|
143
|
+
background: linear-gradient(to bottom, rgba(var(--wheel-fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 1) 20%, rgba(var(--wheel-fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 0) 90%);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
:host .picker-after {
|
|
147
|
+
background: linear-gradient(to top, rgba(var(--wheel-fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 1) 30%, rgba(var(--wheel-fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 0) 90%);
|
|
148
|
+
}
|
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
/**
|
|
3
|
+
* @prop --background: Background of the popover
|
|
4
|
+
* @prop --box-shadow: Box shadow of the popover
|
|
5
|
+
*
|
|
6
|
+
* @prop --min-width: Minimum width of the popover
|
|
7
|
+
* @prop --width: Width of the popover
|
|
8
|
+
* @prop --max-width: Maximum width of the popover
|
|
9
|
+
*
|
|
10
|
+
* @prop --min-height: Minimum height of the popover
|
|
11
|
+
* @prop --height: Height of the popover
|
|
12
|
+
* @prop --max-height: Maximum height of the popover
|
|
13
|
+
*
|
|
14
|
+
* @prop --backdrop-opacity: Opacity of the backdrop
|
|
15
|
+
*
|
|
16
|
+
* @prop --offset-x: The amount to move the popover by on the x-axis
|
|
17
|
+
* @prop --offset-y: The amount to move the popover by on the y-axis
|
|
18
|
+
*/
|
|
19
|
+
--background: var(--ion-background-color, #fff);
|
|
20
|
+
--min-width: 0;
|
|
21
|
+
--min-height: 0;
|
|
22
|
+
--max-width: auto;
|
|
23
|
+
--height: auto;
|
|
24
|
+
--offset-x: 0px;
|
|
25
|
+
--offset-y: 0px;
|
|
26
|
+
left: 0;
|
|
27
|
+
right: 0;
|
|
28
|
+
top: 0;
|
|
29
|
+
bottom: 0;
|
|
30
|
+
display: flex;
|
|
31
|
+
position: fixed;
|
|
32
|
+
align-items: center;
|
|
33
|
+
justify-content: center;
|
|
34
|
+
outline: none;
|
|
35
|
+
color: var(--ion-text-color, #000);
|
|
36
|
+
z-index: 1001;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* With nested popovers, only the popover that
|
|
41
|
+
* was first presented has a popover. This is the
|
|
42
|
+
* parent popover and allows us to easily
|
|
43
|
+
* track all nested popovers from a single backdrop.
|
|
44
|
+
* As a result, nested popovers do not have backdrops
|
|
45
|
+
* and their container should not be clickable.
|
|
46
|
+
* This ensures that users can click the parent backdrop
|
|
47
|
+
* while still interacting with the nested popover inner
|
|
48
|
+
* content.
|
|
49
|
+
*/
|
|
50
|
+
:host(.popover-nested) {
|
|
51
|
+
pointer-events: none;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
:host(.popover-nested) .popover-wrapper {
|
|
55
|
+
pointer-events: auto;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
:host(.overlay-hidden) {
|
|
59
|
+
display: none;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.popover-wrapper {
|
|
63
|
+
z-index: 10;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.popover-content {
|
|
67
|
+
display: flex;
|
|
68
|
+
position: absolute;
|
|
69
|
+
flex-direction: column;
|
|
70
|
+
width: var(--width);
|
|
71
|
+
min-width: var(--min-width);
|
|
72
|
+
max-width: var(--max-width);
|
|
73
|
+
height: var(--height);
|
|
74
|
+
min-height: var(--min-height);
|
|
75
|
+
max-height: var(--max-height);
|
|
76
|
+
background: var(--background);
|
|
77
|
+
box-shadow: var(--box-shadow);
|
|
78
|
+
overflow: auto;
|
|
79
|
+
z-index: 10;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.popover-viewport {
|
|
83
|
+
--ion-safe-area-top: 0px;
|
|
84
|
+
--ion-safe-area-right: 0px;
|
|
85
|
+
--ion-safe-area-bottom: 0px;
|
|
86
|
+
--ion-safe-area-left: 0px;
|
|
87
|
+
display: flex;
|
|
88
|
+
flex-direction: column;
|
|
89
|
+
overflow: hidden;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
:host(.popover-nested.popover-side-left) {
|
|
93
|
+
--offset-x: 5px;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
:host(.popover-nested.popover-side-right) {
|
|
97
|
+
--offset-x: -5px;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
:host(.popover-nested.popover-side-start) {
|
|
101
|
+
--offset-x: 5px;
|
|
102
|
+
}
|
|
103
|
+
:host-context([dir=rtl]):host(.popover-nested.popover-side-start), :host-context([dir=rtl]).popover-nested.popover-side-start {
|
|
104
|
+
--offset-x: -5px;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
@supports selector(:dir(rtl)) {
|
|
108
|
+
:host(.popover-nested.popover-side-start):dir(rtl) {
|
|
109
|
+
--offset-x: -5px;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
:host(.popover-nested.popover-side-end) {
|
|
114
|
+
--offset-x: -5px;
|
|
115
|
+
}
|
|
116
|
+
:host-context([dir=rtl]):host(.popover-nested.popover-side-end), :host-context([dir=rtl]).popover-nested.popover-side-end {
|
|
117
|
+
--offset-x: 5px;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
@supports selector(:dir(rtl)) {
|
|
121
|
+
:host(.popover-nested.popover-side-end):dir(rtl) {
|
|
122
|
+
--offset-x: 5px;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
:host {
|
|
127
|
+
--width: 200px;
|
|
128
|
+
--max-height: 90%;
|
|
129
|
+
--box-shadow: none;
|
|
130
|
+
--backdrop-opacity: var(--ion-backdrop-opacity, 0.08);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
:host(.popover-desktop) {
|
|
134
|
+
--box-shadow: 0px 4px 16px 0px rgba(0, 0, 0, 0.12);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.popover-content {
|
|
138
|
+
border-radius: 10px;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
:host(.popover-desktop) .popover-content {
|
|
142
|
+
border: 0.5px solid var(--ion-color-step-100, #e6e6e6);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.popover-arrow {
|
|
146
|
+
display: block;
|
|
147
|
+
position: absolute;
|
|
148
|
+
width: 20px;
|
|
149
|
+
height: 10px;
|
|
150
|
+
overflow: hidden;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.popover-arrow::after {
|
|
154
|
+
top: 3px;
|
|
155
|
+
border-radius: 3px;
|
|
156
|
+
position: absolute;
|
|
157
|
+
width: 14px;
|
|
158
|
+
height: 14px;
|
|
159
|
+
transform: rotate(45deg);
|
|
160
|
+
background: var(--background);
|
|
161
|
+
content: "";
|
|
162
|
+
z-index: 10;
|
|
163
|
+
}
|
|
164
|
+
@supports (inset-inline-start: 0) {
|
|
165
|
+
.popover-arrow::after {
|
|
166
|
+
inset-inline-start: 3px;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
@supports not (inset-inline-start: 0) {
|
|
170
|
+
.popover-arrow::after {
|
|
171
|
+
left: 3px;
|
|
172
|
+
}
|
|
173
|
+
:host-context([dir=rtl]) .popover-arrow::after {
|
|
174
|
+
left: unset;
|
|
175
|
+
right: unset;
|
|
176
|
+
right: 3px;
|
|
177
|
+
}
|
|
178
|
+
[dir=rtl] .popover-arrow::after {
|
|
179
|
+
left: unset;
|
|
180
|
+
right: unset;
|
|
181
|
+
right: 3px;
|
|
182
|
+
}
|
|
183
|
+
@supports selector(:dir(rtl)) {
|
|
184
|
+
.popover-arrow::after:dir(rtl) {
|
|
185
|
+
left: unset;
|
|
186
|
+
right: unset;
|
|
187
|
+
right: 3px;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
:host(.popover-bottom) .popover-arrow {
|
|
193
|
+
top: auto;
|
|
194
|
+
bottom: -10px;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
:host(.popover-bottom) .popover-arrow::after {
|
|
198
|
+
top: -6px;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
:host(.popover-side-left) .popover-arrow {
|
|
202
|
+
transform: rotate(90deg);
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
:host(.popover-side-right) .popover-arrow {
|
|
206
|
+
transform: rotate(-90deg);
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
:host(.popover-side-top) .popover-arrow {
|
|
210
|
+
transform: rotate(180deg);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
:host(.popover-side-start) .popover-arrow {
|
|
214
|
+
transform: rotate(90deg);
|
|
215
|
+
}
|
|
216
|
+
:host-context([dir=rtl]):host(.popover-side-start) .popover-arrow, :host-context([dir=rtl]).popover-side-start .popover-arrow {
|
|
217
|
+
transform: rotate(-90deg);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
@supports selector(:dir(rtl)) {
|
|
221
|
+
:host(.popover-side-start) .popover-arrow:dir(rtl) {
|
|
222
|
+
transform: rotate(-90deg);
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
:host(.popover-side-end) .popover-arrow {
|
|
227
|
+
transform: rotate(-90deg);
|
|
228
|
+
}
|
|
229
|
+
:host-context([dir=rtl]):host(.popover-side-end) .popover-arrow, :host-context([dir=rtl]).popover-side-end .popover-arrow {
|
|
230
|
+
transform: rotate(90deg);
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
@supports selector(:dir(rtl)) {
|
|
234
|
+
:host(.popover-side-end) .popover-arrow:dir(rtl) {
|
|
235
|
+
transform: rotate(90deg);
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.popover-arrow,
|
|
240
|
+
.popover-content {
|
|
241
|
+
opacity: 0;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
@supports (backdrop-filter: blur(0)) {
|
|
245
|
+
:host(.popover-translucent) .popover-content,
|
|
246
|
+
:host(.popover-translucent) .popover-arrow::after {
|
|
247
|
+
background: rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8);
|
|
248
|
+
backdrop-filter: saturate(180%) blur(20px);
|
|
249
|
+
}
|
|
250
|
+
}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
/**
|
|
3
|
+
* @prop --background: Background of the popover
|
|
4
|
+
* @prop --box-shadow: Box shadow of the popover
|
|
5
|
+
*
|
|
6
|
+
* @prop --min-width: Minimum width of the popover
|
|
7
|
+
* @prop --width: Width of the popover
|
|
8
|
+
* @prop --max-width: Maximum width of the popover
|
|
9
|
+
*
|
|
10
|
+
* @prop --min-height: Minimum height of the popover
|
|
11
|
+
* @prop --height: Height of the popover
|
|
12
|
+
* @prop --max-height: Maximum height of the popover
|
|
13
|
+
*
|
|
14
|
+
* @prop --backdrop-opacity: Opacity of the backdrop
|
|
15
|
+
*
|
|
16
|
+
* @prop --offset-x: The amount to move the popover by on the x-axis
|
|
17
|
+
* @prop --offset-y: The amount to move the popover by on the y-axis
|
|
18
|
+
*/
|
|
19
|
+
--background: var(--ion-background-color, #fff);
|
|
20
|
+
--min-width: 0;
|
|
21
|
+
--min-height: 0;
|
|
22
|
+
--max-width: auto;
|
|
23
|
+
--height: auto;
|
|
24
|
+
--offset-x: 0px;
|
|
25
|
+
--offset-y: 0px;
|
|
26
|
+
left: 0;
|
|
27
|
+
right: 0;
|
|
28
|
+
top: 0;
|
|
29
|
+
bottom: 0;
|
|
30
|
+
display: flex;
|
|
31
|
+
position: fixed;
|
|
32
|
+
align-items: center;
|
|
33
|
+
justify-content: center;
|
|
34
|
+
outline: none;
|
|
35
|
+
color: var(--ion-text-color, #000);
|
|
36
|
+
z-index: 1001;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* With nested popovers, only the popover that
|
|
41
|
+
* was first presented has a popover. This is the
|
|
42
|
+
* parent popover and allows us to easily
|
|
43
|
+
* track all nested popovers from a single backdrop.
|
|
44
|
+
* As a result, nested popovers do not have backdrops
|
|
45
|
+
* and their container should not be clickable.
|
|
46
|
+
* This ensures that users can click the parent backdrop
|
|
47
|
+
* while still interacting with the nested popover inner
|
|
48
|
+
* content.
|
|
49
|
+
*/
|
|
50
|
+
:host(.popover-nested) {
|
|
51
|
+
pointer-events: none;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
:host(.popover-nested) .popover-wrapper {
|
|
55
|
+
pointer-events: auto;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
:host(.overlay-hidden) {
|
|
59
|
+
display: none;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.popover-wrapper {
|
|
63
|
+
z-index: 10;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.popover-content {
|
|
67
|
+
display: flex;
|
|
68
|
+
position: absolute;
|
|
69
|
+
flex-direction: column;
|
|
70
|
+
width: var(--width);
|
|
71
|
+
min-width: var(--min-width);
|
|
72
|
+
max-width: var(--max-width);
|
|
73
|
+
height: var(--height);
|
|
74
|
+
min-height: var(--min-height);
|
|
75
|
+
max-height: var(--max-height);
|
|
76
|
+
background: var(--background);
|
|
77
|
+
box-shadow: var(--box-shadow);
|
|
78
|
+
overflow: auto;
|
|
79
|
+
z-index: 10;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.popover-viewport {
|
|
83
|
+
--ion-safe-area-top: 0px;
|
|
84
|
+
--ion-safe-area-right: 0px;
|
|
85
|
+
--ion-safe-area-bottom: 0px;
|
|
86
|
+
--ion-safe-area-left: 0px;
|
|
87
|
+
display: flex;
|
|
88
|
+
flex-direction: column;
|
|
89
|
+
overflow: hidden;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
:host(.popover-nested.popover-side-left) {
|
|
93
|
+
--offset-x: 5px;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
:host(.popover-nested.popover-side-right) {
|
|
97
|
+
--offset-x: -5px;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
:host(.popover-nested.popover-side-start) {
|
|
101
|
+
--offset-x: 5px;
|
|
102
|
+
}
|
|
103
|
+
:host-context([dir=rtl]):host(.popover-nested.popover-side-start), :host-context([dir=rtl]).popover-nested.popover-side-start {
|
|
104
|
+
--offset-x: -5px;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
@supports selector(:dir(rtl)) {
|
|
108
|
+
:host(.popover-nested.popover-side-start):dir(rtl) {
|
|
109
|
+
--offset-x: -5px;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
:host(.popover-nested.popover-side-end) {
|
|
114
|
+
--offset-x: -5px;
|
|
115
|
+
}
|
|
116
|
+
:host-context([dir=rtl]):host(.popover-nested.popover-side-end), :host-context([dir=rtl]).popover-nested.popover-side-end {
|
|
117
|
+
--offset-x: 5px;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
@supports selector(:dir(rtl)) {
|
|
121
|
+
:host(.popover-nested.popover-side-end):dir(rtl) {
|
|
122
|
+
--offset-x: 5px;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
:host {
|
|
127
|
+
--width: 250px;
|
|
128
|
+
--max-height: 90%;
|
|
129
|
+
--box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.2), 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12);
|
|
130
|
+
--backdrop-opacity: var(--ion-backdrop-opacity, 0.32);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.popover-content {
|
|
134
|
+
border-radius: 4px;
|
|
135
|
+
transform-origin: left top;
|
|
136
|
+
}
|
|
137
|
+
:host-context([dir=rtl]) .popover-content {
|
|
138
|
+
transform-origin: right top;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
[dir=rtl] .popover-content {
|
|
142
|
+
transform-origin: right top;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
@supports selector(:dir(rtl)) {
|
|
146
|
+
.popover-content:dir(rtl) {
|
|
147
|
+
transform-origin: right top;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.popover-viewport {
|
|
152
|
+
transition-delay: 100ms;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.popover-wrapper {
|
|
156
|
+
opacity: 0;
|
|
157
|
+
}
|