@eui/mobile-core 16.8.0-snapshot-1710761952573 → 17.0.0-next.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/docs/classes/EuimStepperChangeEvent.html +58 -0
- package/docs/components/EuiMUserProfileActionComponent.html +58 -0
- package/docs/components/EuiMUserProfileAvatarComponent.html +58 -0
- package/docs/components/EuiMUserProfileInfosComponent.html +58 -0
- package/docs/components/EuiMUserProfileInfosItemComponent.html +58 -0
- package/docs/components/EuimAlertMessageComponent.html +58 -0
- package/docs/components/EuimAppComponent.html +58 -0
- package/docs/components/EuimAppSidebarComponent.html +58 -0
- package/docs/components/EuimAppSidebarFooterComponent.html +58 -0
- package/docs/components/EuimAppSidebarHeaderComponent.html +58 -0
- package/docs/components/EuimAppSidebarMenuComponent.html +58 -0
- package/docs/components/EuimAvatarComponent.html +58 -0
- package/docs/components/EuimAvatarIconComponent.html +58 -0
- package/docs/components/EuimBadgeComponent.html +58 -0
- package/docs/components/EuimChipSelectorComponent.html +59 -142
- package/docs/components/EuimControlFeedbackComponent.html +58 -0
- package/docs/components/EuimDataSummaryColComponent.html +58 -0
- package/docs/components/EuimDataSummaryComponent.html +58 -0
- package/docs/components/EuimEmptyListPlaceholderComponent.html +58 -0
- package/docs/components/EuimFieldSetComponent.html +58 -0
- package/docs/components/EuimFieldsetActionsComponent.html +58 -0
- package/docs/components/EuimFieldsetLegendComponent.html +58 -0
- package/docs/components/EuimHeaderDetailsComponent.html +58 -0
- package/docs/components/EuimInfoScreenComponent.html +58 -0
- package/docs/components/EuimLabelComponent.html +58 -0
- package/docs/components/EuimLanguageListComponent.html +72 -14
- package/docs/components/EuimLanguageSelectorComponent.html +63 -69
- package/docs/components/EuimMediaHeaderComponent.html +58 -0
- package/docs/components/EuimMenuComponent.html +58 -0
- package/docs/components/EuimMessageComponent.html +58 -0
- package/docs/components/EuimMessageTitleComponent.html +58 -0
- package/docs/components/EuimMultiselectComponent.html +58 -0
- package/docs/components/EuimMultiselectFilterComponent.html +58 -34
- package/docs/components/EuimMultiselectInfoComponent.html +58 -0
- package/docs/components/EuimMultiselectListComponent.html +58 -0
- package/docs/components/EuimMultiselectToolbarComponent.html +58 -0
- package/docs/components/EuimNotificationItemComponent.html +58 -0
- package/docs/components/EuimScrollerXComponent.html +58 -0
- package/docs/components/EuimSidebarComponent.html +58 -0
- package/docs/components/EuimSidebarContentComponent.html +58 -0
- package/docs/components/EuimSkeletonListComponent.html +58 -0
- package/docs/components/EuimSkeletonListItemComponent.html +58 -0
- package/docs/components/EuimSlideComponent.html +58 -0
- package/docs/components/EuimSlideInfoScreenComponent.html +58 -0
- package/docs/components/EuimSliderComponent.html +58 -0
- package/docs/components/EuimSliderInfoScreenComponent.html +58 -0
- package/docs/components/EuimSpinnerComponent.html +58 -0
- package/docs/components/EuimSpinnerDescriptionComponent.html +58 -0
- package/docs/components/EuimSpinnerMessageComponent.html +58 -0
- package/docs/components/EuimStepperComponent.html +58 -0
- package/docs/components/EuimToolbarActionItemsComponent.html +58 -0
- package/docs/components/EuimToolbarComponent.html +58 -0
- package/docs/components/EuimToolbarTitleComponent.html +58 -0
- package/docs/components/EuimUserProfileComponent.html +58 -0
- package/docs/dependencies.html +60 -2
- package/docs/directives/BaseStatesDirective.html +58 -0
- package/docs/directives/EuimAvatarMainIconDirective.html +58 -0
- package/docs/directives/EuimAvatarSubIconDirective.html +58 -0
- package/docs/directives/EuimChipSelectorItemDirective.html +58 -0
- package/docs/directives/EuimDataSummaryColLabelDirective.html +58 -0
- package/docs/directives/EuimDataSummaryColValueDirective.html +58 -0
- package/docs/directives/EuimDividerDirective.html +58 -0
- package/docs/directives/EuimHeaderDetailsIconDirective.html +58 -0
- package/docs/directives/EuimHeaderDetailsMetaDirective.html +58 -0
- package/docs/directives/EuimHeaderDetailsTitleDirective.html +58 -0
- package/docs/directives/EuimInfoScreenContentDirective.html +58 -0
- package/docs/directives/EuimInfoScreenSubTitleDirective.html +58 -0
- package/docs/directives/EuimInfoScreenTitleDirective.html +58 -0
- package/docs/directives/EuimItemDividerDirective.html +58 -0
- package/docs/directives/EuimListHeaderDirective.html +58 -0
- package/docs/directives/EuimMediaHeaderImageDirective.html +58 -0
- package/docs/directives/EuimMediaHeaderSubTitleDirective.html +58 -0
- package/docs/directives/EuimMediaHeaderTitleDirective.html +58 -0
- package/docs/directives/EuimMultiselectAllDirective.html +58 -0
- package/docs/directives/EuimMultiselectSelectFieldDirective.html +58 -0
- package/docs/directives/EuimSkeletonTextAvatarDirective.html +58 -0
- package/docs/directives/EuimSliderInfoScreenContentDirective.html +58 -0
- package/docs/directives/EuimSliderInfoScreenSubTitleDirective.html +58 -0
- package/docs/directives/EuimSliderInfoScreenTitleDirective.html +58 -0
- package/docs/index.html +58 -0
- package/docs/injectables/EuimAppService.html +58 -0
- package/docs/interfaces/ActionBtnNames.html +58 -0
- package/docs/interfaces/ActionBtnsNames.html +58 -0
- package/docs/interfaces/Badge.html +58 -0
- package/docs/interfaces/EuimMenuItem.html +58 -0
- package/docs/interfaces/EuimMenuSection.html +58 -0
- package/docs/interfaces/FilteredData.html +58 -0
- package/docs/interfaces/Notification.html +58 -0
- package/docs/interfaces/UIState.html +58 -0
- package/docs/js/libs/bootstrap-native.js +2 -1
- package/docs/js/libs/es6-shim.min.js +11 -10
- package/docs/js/libs/tablesort.min.js +3 -3
- package/docs/js/libs/tablesort.number.min.js +2 -2
- package/docs/js/libs/vis.min.js +1 -1
- package/docs/js/menu.js +0 -55
- package/docs/js/search/search_index.js +2 -2
- package/docs/license.html +58 -0
- package/docs/miscellaneous/typealiases.html +58 -0
- package/docs/miscellaneous/variables.html +58 -0
- package/docs/modules/EuimAlertMessageModule.html +58 -0
- package/docs/modules/EuimAllModule.html +58 -0
- package/docs/modules/EuimAppModule.html +58 -0
- package/docs/modules/EuimAppSidebarModule.html +58 -0
- package/docs/modules/EuimAvatarIconModule.html +58 -0
- package/docs/modules/EuimAvatarModule.html +58 -0
- package/docs/modules/EuimBadgeModule.html +58 -0
- package/docs/modules/EuimChipSelectorComponentModule.html +58 -0
- package/docs/modules/EuimControlFeedbackModule.html +58 -0
- package/docs/modules/EuimDataSummaryModule.html +58 -0
- package/docs/modules/EuimDividerModule.html +58 -0
- package/docs/modules/EuimEmptyListPlaceholderModule.html +58 -0
- package/docs/modules/EuimFieldsetModule.html +58 -0
- package/docs/modules/EuimHeaderDetailsModule.html +58 -0
- package/docs/modules/EuimInfoScreenModule.html +58 -0
- package/docs/modules/EuimItemDividerModule.html +58 -0
- package/docs/modules/EuimLabelModule.html +58 -0
- package/docs/modules/EuimLanguageSelectorModule.html +58 -0
- package/docs/modules/EuimListHeaderModule.html +58 -0
- package/docs/modules/EuimMediaHeaderModule.html +58 -0
- package/docs/modules/EuimMenuModule.html +58 -0
- package/docs/modules/EuimMessageModule.html +58 -0
- package/docs/modules/EuimMultiselectModule.html +58 -0
- package/docs/modules/EuimNotificationItemModule.html +58 -0
- package/docs/modules/EuimScrollerXComponentModule.html +58 -0
- package/docs/modules/EuimSidebarModule.html +58 -0
- package/docs/modules/EuimSkeletonListItemModule.html +58 -0
- package/docs/modules/EuimSkeletonListModule.html +58 -0
- package/docs/modules/EuimSkeletonTextAvatarModule.html +58 -0
- package/docs/modules/EuimSliderInfoScreenModule.html +58 -0
- package/docs/modules/EuimSliderModule.html +58 -0
- package/docs/modules/EuimSpinnerComponentModule.html +58 -0
- package/docs/modules/EuimStepperComponentModule.html +58 -0
- package/docs/modules/EuimToolbarComponentModule.html +58 -0
- package/docs/modules/EuimUserProfileModule.html +58 -0
- package/docs/modules.html +58 -0
- package/docs/properties.html +58 -0
- package/esm2022/lib/components/atoms/euim-control-feedback/euim-control-feedback.component.mjs +5 -5
- package/esm2022/lib/components/atoms/euim-control-feedback/euim-control-feedback.module.mjs +5 -5
- package/esm2022/lib/components/atoms/euim-label/euim-label.component.mjs +5 -5
- package/esm2022/lib/components/atoms/euim-label/euim-label.module.mjs +5 -5
- package/esm2022/lib/components/atoms/euim-notification-item/euim-notification-item.component.mjs +5 -5
- package/esm2022/lib/components/atoms/euim-notification-item/euim-notification-item.module.mjs +5 -5
- package/esm2022/lib/components/base-states.directive.mjs +4 -4
- package/esm2022/lib/components/directives/euim-divider/euim-divider.directive.mjs +4 -4
- package/esm2022/lib/components/directives/euim-divider/euim-divider.module.mjs +5 -5
- package/esm2022/lib/components/directives/euim-item-divider/euim-item-divider.directive.mjs +4 -4
- package/esm2022/lib/components/directives/euim-item-divider/euim-item-divider.module.mjs +5 -5
- package/esm2022/lib/components/directives/euim-list-header/euim-list-header.directive.mjs +4 -4
- package/esm2022/lib/components/directives/euim-list-header/euim-list-header.module.mjs +5 -5
- package/esm2022/lib/components/directives/euim-skeleton-text-avatar/euim-skeleton-text-avatar.directive.mjs +4 -4
- package/esm2022/lib/components/directives/euim-skeleton-text-avatar/euim-skeleton-text-avatar.module.mjs +5 -5
- package/esm2022/lib/components/euim-alert-message/euim-alert-message.module.mjs +5 -5
- package/esm2022/lib/components/euim-alert-message/euim-alert-messsage.component.mjs +5 -5
- package/esm2022/lib/components/euim-avatar/euim-avatar-main-icon/euim-avatar-main-icon.directive.mjs +4 -4
- package/esm2022/lib/components/euim-avatar/euim-avatar-sub-icon/euim-avatar-sub-icon.directive.mjs +4 -4
- package/esm2022/lib/components/euim-avatar/euim-avatar.component.mjs +4 -4
- package/esm2022/lib/components/euim-avatar/euim-avatar.module.mjs +5 -5
- package/esm2022/lib/components/euim-avatar-icon/euim-avatar-icon.component.mjs +4 -4
- package/esm2022/lib/components/euim-avatar-icon/euim-avatar-icon.module.mjs +5 -5
- package/esm2022/lib/components/euim-badge/euim-badge.component.mjs +5 -5
- package/esm2022/lib/components/euim-badge/euim-badge.module.mjs +5 -5
- package/esm2022/lib/components/euim-chip-selector/euim-chip-selector-item/euim-chip-selector-item.directive.mjs +5 -5
- package/esm2022/lib/components/euim-chip-selector/euim-chip-selector.component.mjs +6 -36
- package/esm2022/lib/components/euim-chip-selector/euim-chip-selector.module.mjs +5 -5
- package/esm2022/lib/components/euim-data-summary/euim-data-summary-col/euim-data-summary-col.component.mjs +4 -4
- package/esm2022/lib/components/euim-data-summary/euim-data-summary-col-label/euim-data-summary-col-label.directive.mjs +5 -5
- package/esm2022/lib/components/euim-data-summary/euim-data-summary-col-value/euim-data-summary-col-value.directive.mjs +5 -5
- package/esm2022/lib/components/euim-data-summary/euim-data-summary.component.mjs +5 -5
- package/esm2022/lib/components/euim-data-summary/euim-data-summary.module.mjs +5 -5
- package/esm2022/lib/components/euim-empty-list-placeholder/euim-empty-list-placeholder.component.mjs +4 -4
- package/esm2022/lib/components/euim-empty-list-placeholder/euim-empty-list-placeholder.module.mjs +5 -5
- package/esm2022/lib/components/euim-fieldset/euim-fieldset-actions/euim-fieldset-actions.component.mjs +4 -4
- package/esm2022/lib/components/euim-fieldset/euim-fieldset-legend/euim-fieldset-legend.component.mjs +4 -4
- package/esm2022/lib/components/euim-fieldset/euim-fieldset.component.mjs +5 -5
- package/esm2022/lib/components/euim-fieldset/euim-fieldset.module.mjs +5 -5
- package/esm2022/lib/components/euim-media-header/euim-media-header-image/euim-media-header-image.directive.mjs +4 -4
- package/esm2022/lib/components/euim-media-header/euim-media-header-sub-title/euim-media-header-sub-title.directive.mjs +4 -4
- package/esm2022/lib/components/euim-media-header/euim-media-header-title/euim-media-header-title.directive.mjs +4 -4
- package/esm2022/lib/components/euim-media-header/euim-media-header.component.mjs +6 -6
- package/esm2022/lib/components/euim-media-header/euim-media-header.module.mjs +5 -5
- package/esm2022/lib/components/euim-menu/euim-menu.component.mjs +5 -5
- package/esm2022/lib/components/euim-menu/euim-menu.module.mjs +5 -5
- package/esm2022/lib/components/euim-message/euim-message-title/euim-message-title.component.mjs +4 -4
- package/esm2022/lib/components/euim-message/euim-message.component.mjs +5 -5
- package/esm2022/lib/components/euim-message/euim-message.module.mjs +5 -5
- package/esm2022/lib/components/euim-multiselect/euim-multiselect-all/euim-multiselect-all.directive.mjs +11 -5
- package/esm2022/lib/components/euim-multiselect/euim-multiselect-filter/euim-multiselect-filter.component.mjs +5 -25
- package/esm2022/lib/components/euim-multiselect/euim-multiselect-info/euim-multiselect-info.component.mjs +5 -5
- package/esm2022/lib/components/euim-multiselect/euim-multiselect-list/euim-multiselect-list.component.mjs +5 -5
- package/esm2022/lib/components/euim-multiselect/euim-multiselect-select-field/euim-multiselect-select-field.directive.mjs +5 -5
- package/esm2022/lib/components/euim-multiselect/euim-multiselect-toolbar/euim-multiselect-toolbar.component.mjs +5 -5
- package/esm2022/lib/components/euim-multiselect/euim-multiselect.component.mjs +5 -5
- package/esm2022/lib/components/euim-multiselect/euim-multiselect.module.mjs +5 -5
- package/esm2022/lib/components/euim-scroller-x/euim-scroller-x.component.mjs +4 -4
- package/esm2022/lib/components/euim-scroller-x/euim-scroller-x.module.mjs +5 -5
- package/esm2022/lib/components/euim-skeleton-list/euim-skeleton-list.component.mjs +4 -4
- package/esm2022/lib/components/euim-skeleton-list/euim-skeleton-list.module.mjs +5 -5
- package/esm2022/lib/components/euim-skeleton-list-item/euim-skeleton-list-item.component.mjs +5 -5
- package/esm2022/lib/components/euim-skeleton-list-item/euim-skeleton-list-item.module.mjs +5 -5
- package/esm2022/lib/components/euim-slider/euim-slide/euim-slide.component.mjs +4 -4
- package/esm2022/lib/components/euim-slider/euim-slider.component.mjs +5 -5
- package/esm2022/lib/components/euim-slider/euim-slider.module.mjs +5 -5
- package/esm2022/lib/components/euim-slider-info-screen/euim-slide-info-screen/euim-slide-info-screen.component.mjs +4 -4
- package/esm2022/lib/components/euim-slider-info-screen/euim-slider-info-screen-content/euim-slider-info-screen-content.directive.mjs +4 -4
- package/esm2022/lib/components/euim-slider-info-screen/euim-slider-info-screen-sub-title/euim-slider-info-screen-sub-title.directive.mjs +4 -4
- package/esm2022/lib/components/euim-slider-info-screen/euim-slider-info-screen-title/euim-slider-info-screen-title.directive.mjs +4 -4
- package/esm2022/lib/components/euim-slider-info-screen/euim-slider-info-screen.component.mjs +6 -6
- package/esm2022/lib/components/euim-slider-info-screen/euim-slider-info-screen.module.mjs +5 -5
- package/esm2022/lib/components/euim-spinner/euim-spinner-description/euim-spinner-description.component.mjs +4 -4
- package/esm2022/lib/components/euim-spinner/euim-spinner-message/euim-spinner-message.component.mjs +4 -4
- package/esm2022/lib/components/euim-spinner/euim-spinner.component.mjs +4 -4
- package/esm2022/lib/components/euim-spinner/euim-spinner.module.mjs +5 -5
- package/esm2022/lib/components/euim-stepper/euim-steper.module.mjs +5 -5
- package/esm2022/lib/components/euim-stepper/euim-stepper.component.mjs +4 -4
- package/esm2022/lib/components/layout/euim-app/euim-app-sidebar/sidebar-footer/sidebar-footer.component.mjs +4 -4
- package/esm2022/lib/components/layout/euim-app/euim-app-sidebar/sidebar-header/sidebar-header.component.mjs +4 -4
- package/esm2022/lib/components/layout/euim-app/euim-app-sidebar/sidebar-menu/sidebar-menu.component.mjs +4 -4
- package/esm2022/lib/components/layout/euim-app/euim-app-sidebar/sidebar.component.mjs +4 -4
- package/esm2022/lib/components/layout/euim-app/euim-app-sidebar/sidebar.module.mjs +5 -5
- package/esm2022/lib/components/layout/euim-app/euim-app.component.mjs +5 -5
- package/esm2022/lib/components/layout/euim-app/euim-app.module.mjs +5 -5
- package/esm2022/lib/components/layout/euim-header-details/euim-header-details-icon/euim-header-details-icon.directive.mjs +4 -4
- package/esm2022/lib/components/layout/euim-header-details/euim-header-details-meta/euim-header-details-meta.directive.mjs +4 -4
- package/esm2022/lib/components/layout/euim-header-details/euim-header-details-title/euim-header-details-title.directive.mjs +4 -4
- package/esm2022/lib/components/layout/euim-header-details/euim-header-details.component.mjs +5 -5
- package/esm2022/lib/components/layout/euim-header-details/euim-header-details.module.mjs +5 -5
- package/esm2022/lib/components/layout/euim-info-screen/euim-info-screen-content/euim-info-screen-content.directive.mjs +4 -4
- package/esm2022/lib/components/layout/euim-info-screen/euim-info-screen-sub-title/euim-info-screen-sub-title.directive.mjs +4 -4
- package/esm2022/lib/components/layout/euim-info-screen/euim-info-screen-title/euim-info-screen-title.directive.mjs +4 -4
- package/esm2022/lib/components/layout/euim-info-screen/euim-info-screen.component.mjs +5 -5
- package/esm2022/lib/components/layout/euim-info-screen/euim-info-screen.module.mjs +5 -5
- package/esm2022/lib/components/layout/euim-language-selector/euim-language-list.component.mjs +10 -10
- package/esm2022/lib/components/layout/euim-language-selector/euim-language-selector.component.mjs +8 -15
- package/esm2022/lib/components/layout/euim-language-selector/euim-language-selector.module.mjs +5 -5
- package/esm2022/lib/components/layout/euim-sidebar/euim-sidebar-content/euim-sidebar-content.component.mjs +4 -4
- package/esm2022/lib/components/layout/euim-sidebar/euim-sidebar.component.mjs +5 -5
- package/esm2022/lib/components/layout/euim-sidebar/euim-sidebar.module.mjs +5 -5
- package/esm2022/lib/components/layout/euim-toolbar/euim-toolbar-action-items/euim-toolbar-action-items.component.mjs +4 -4
- package/esm2022/lib/components/layout/euim-toolbar/euim-toolbar-title/euim-toolbar-title.component.mjs +5 -5
- package/esm2022/lib/components/layout/euim-toolbar/euim-toolbar.component.mjs +4 -4
- package/esm2022/lib/components/layout/euim-toolbar/euim-toolbar.module.mjs +5 -5
- package/esm2022/lib/components/layout/euim-user-profile/euim-user-profile-action/euim-user-profile-action.component.mjs +4 -4
- package/esm2022/lib/components/layout/euim-user-profile/euim-user-profile-avatar/euim-user-profile-avatar.component.mjs +4 -4
- package/esm2022/lib/components/layout/euim-user-profile/euim-user-profile-infos/euim-user-profile-infos.component.mjs +4 -4
- package/esm2022/lib/components/layout/euim-user-profile/euim-user-profile-infos-item/euim-user-profile-infos-item.component.mjs +4 -4
- package/esm2022/lib/components/layout/euim-user-profile/euim-user-profile.component.mjs +4 -4
- package/esm2022/lib/components/layout/euim-user-profile/euim-user-profile.module.mjs +5 -5
- package/esm2022/lib/euim-all.module.mjs +5 -5
- package/esm2022/lib/services/euim-app.service.mjs +5 -5
- package/fesm2022/eui-mobile-core.mjs +421 -470
- package/fesm2022/eui-mobile-core.mjs.map +1 -1
- package/lib/components/euim-chip-selector/euim-chip-selector.component.d.ts +1 -5
- package/lib/components/euim-chip-selector/euim-chip-selector.component.d.ts.map +1 -1
- package/lib/components/euim-multiselect/euim-multiselect-all/euim-multiselect-all.directive.d.ts.map +1 -1
- package/lib/components/euim-multiselect/euim-multiselect-filter/euim-multiselect-filter.component.d.ts +0 -1
- package/lib/components/euim-multiselect/euim-multiselect-filter/euim-multiselect-filter.component.d.ts.map +1 -1
- package/lib/components/layout/euim-language-selector/euim-language-list.component.d.ts +13 -13
- package/lib/components/layout/euim-language-selector/euim-language-list.component.d.ts.map +1 -1
- package/lib/components/layout/euim-language-selector/euim-language-selector.component.d.ts +5 -7
- package/lib/components/layout/euim-language-selector/euim-language-selector.component.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -13,6 +13,64 @@
|
|
|
13
13
|
<link rel="stylesheet" href="../styles/material.css">
|
|
14
14
|
</head>
|
|
15
15
|
<body>
|
|
16
|
+
<script>
|
|
17
|
+
// Blocking script to avaoid flickering dark mode
|
|
18
|
+
// Dark mode toggle button
|
|
19
|
+
var useDark = window.matchMedia('(prefers-color-scheme: dark)');
|
|
20
|
+
var darkModeState = useDark.matches;
|
|
21
|
+
var $darkModeToggleSwitchers = document.querySelectorAll('.dark-mode-switch input');
|
|
22
|
+
var $darkModeToggles = document.querySelectorAll('.dark-mode-switch');
|
|
23
|
+
var darkModeStateLocal = localStorage.getItem('compodoc_darkmode-state');
|
|
24
|
+
|
|
25
|
+
function checkToggle(check) {
|
|
26
|
+
for (var i = 0; i < $darkModeToggleSwitchers.length; i++) {
|
|
27
|
+
$darkModeToggleSwitchers[i].checked = check;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function toggleDarkMode(state) {
|
|
32
|
+
if (window.localStorage) {
|
|
33
|
+
localStorage.setItem('compodoc_darkmode-state', state);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
checkToggle(state);
|
|
37
|
+
|
|
38
|
+
const hasClass = document.body.classList.contains('dark');
|
|
39
|
+
|
|
40
|
+
if (state) {
|
|
41
|
+
for (var i = 0; i < $darkModeToggles.length; i++) {
|
|
42
|
+
$darkModeToggles[i].classList.add('dark');
|
|
43
|
+
}
|
|
44
|
+
if (!hasClass) {
|
|
45
|
+
document.body.classList.add('dark');
|
|
46
|
+
}
|
|
47
|
+
} else {
|
|
48
|
+
for (var i = 0; i < $darkModeToggles.length; i++) {
|
|
49
|
+
$darkModeToggles[i].classList.remove('dark');
|
|
50
|
+
}
|
|
51
|
+
if (hasClass) {
|
|
52
|
+
document.body.classList.remove('dark');
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
useDark.addEventListener('change', function (evt) {
|
|
58
|
+
toggleDarkMode(evt.matches);
|
|
59
|
+
});
|
|
60
|
+
if (darkModeStateLocal) {
|
|
61
|
+
darkModeState = darkModeStateLocal === 'true';
|
|
62
|
+
}
|
|
63
|
+
toggleDarkMode(darkModeState);
|
|
64
|
+
|
|
65
|
+
if ($darkModeToggles.length > 0) {
|
|
66
|
+
for (var i = 0; i < $darkModeToggleSwitchers.length; i++) {
|
|
67
|
+
$darkModeToggleSwitchers[i].addEventListener('change', function (event) {
|
|
68
|
+
darkModeState = !darkModeState;
|
|
69
|
+
toggleDarkMode(darkModeState);
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
</script>
|
|
16
74
|
|
|
17
75
|
<div class="navbar navbar-default navbar-fixed-top d-block d-sm-none">
|
|
18
76
|
<a href="../" class="navbar-brand">csdr documentation</a>
|
|
@@ -204,7 +262,7 @@
|
|
|
204
262
|
<tbody>
|
|
205
263
|
<tr>
|
|
206
264
|
<td class="col-md-4">
|
|
207
|
-
<code>constructor(cd: ChangeDetectorRef, translateService: TranslateService, appShellService:
|
|
265
|
+
<code>constructor(cd: ChangeDetectorRef, translateService: TranslateService, appShellService: EuiAppShellService, appService: <a href="../injectables/EuimAppService.html" target="_self">EuimAppService</a>, modalCtrl: ModalController, platform: Platform)</code>
|
|
208
266
|
</td>
|
|
209
267
|
</tr>
|
|
210
268
|
|
|
@@ -249,7 +307,7 @@
|
|
|
249
307
|
<td>appShellService</td>
|
|
250
308
|
|
|
251
309
|
<td>
|
|
252
|
-
<code>
|
|
310
|
+
<code>EuiAppShellService</code>
|
|
253
311
|
</td>
|
|
254
312
|
|
|
255
313
|
<td>
|
|
@@ -355,7 +413,7 @@
|
|
|
355
413
|
</tr>
|
|
356
414
|
<tr>
|
|
357
415
|
<td class="col-md-4">
|
|
358
|
-
<code>onLanguageSelected(language:
|
|
416
|
+
<code>onLanguageSelected(language: EuiLanguage)</code>
|
|
359
417
|
</td>
|
|
360
418
|
</tr>
|
|
361
419
|
|
|
@@ -380,7 +438,7 @@
|
|
|
380
438
|
<tr>
|
|
381
439
|
<td>language</td>
|
|
382
440
|
<td>
|
|
383
|
-
<code>
|
|
441
|
+
<code>EuiLanguage</code>
|
|
384
442
|
</td>
|
|
385
443
|
|
|
386
444
|
<td>
|
|
@@ -445,7 +503,7 @@
|
|
|
445
503
|
</tr>
|
|
446
504
|
<tr>
|
|
447
505
|
<td class="col-md-4">
|
|
448
|
-
<i>Type : </i> <code>
|
|
506
|
+
<i>Type : </i> <code>EuiAppShellService</code>
|
|
449
507
|
|
|
450
508
|
</td>
|
|
451
509
|
</tr>
|
|
@@ -466,7 +524,7 @@
|
|
|
466
524
|
</tr>
|
|
467
525
|
<tr>
|
|
468
526
|
<td class="col-md-4">
|
|
469
|
-
<i>Type : </i> <code>
|
|
527
|
+
<i>Type : </i> <code>EuiLanguage[]</code>
|
|
470
528
|
|
|
471
529
|
</td>
|
|
472
530
|
</tr>
|
|
@@ -487,7 +545,7 @@
|
|
|
487
545
|
</tr>
|
|
488
546
|
<tr>
|
|
489
547
|
<td class="col-md-4">
|
|
490
|
-
<i>Type : </i> <code>
|
|
548
|
+
<i>Type : </i> <code>EuiLanguage</code>
|
|
491
549
|
|
|
492
550
|
</td>
|
|
493
551
|
</tr>
|
|
@@ -508,7 +566,7 @@
|
|
|
508
566
|
</tr>
|
|
509
567
|
<tr>
|
|
510
568
|
<td class="col-md-4">
|
|
511
|
-
<i>Type : </i> <code>
|
|
569
|
+
<i>Type : </i> <code>EuiLanguage</code>
|
|
512
570
|
|
|
513
571
|
</td>
|
|
514
572
|
</tr>
|
|
@@ -550,7 +608,7 @@
|
|
|
550
608
|
</tr>
|
|
551
609
|
<tr>
|
|
552
610
|
<td class="col-md-4">
|
|
553
|
-
<i>Type : </i> <code>
|
|
611
|
+
<i>Type : </i> <code>EuiLanguage[]</code>
|
|
554
612
|
|
|
555
613
|
</td>
|
|
556
614
|
</tr>
|
|
@@ -571,7 +629,7 @@
|
|
|
571
629
|
</tr>
|
|
572
630
|
<tr>
|
|
573
631
|
<td class="col-md-4">
|
|
574
|
-
<i>Type : </i> <code>
|
|
632
|
+
<i>Type : </i> <code>EuiLanguage[]</code>
|
|
575
633
|
|
|
576
634
|
</td>
|
|
577
635
|
</tr>
|
|
@@ -592,7 +650,7 @@
|
|
|
592
650
|
</tr>
|
|
593
651
|
<tr>
|
|
594
652
|
<td class="col-md-4">
|
|
595
|
-
<i>Type : </i> <code>
|
|
653
|
+
<i>Type : </i> <code>EuiLanguage</code>
|
|
596
654
|
|
|
597
655
|
</td>
|
|
598
656
|
</tr>
|
|
@@ -634,7 +692,7 @@
|
|
|
634
692
|
</tr>
|
|
635
693
|
<tr>
|
|
636
694
|
<td class="col-md-4">
|
|
637
|
-
<i>Type : </i> <code>
|
|
695
|
+
<i>Type : </i> <code>EuiLanguage[]</code>
|
|
638
696
|
|
|
639
697
|
</td>
|
|
640
698
|
</tr>
|
|
@@ -655,7 +713,7 @@
|
|
|
655
713
|
</tr>
|
|
656
714
|
<tr>
|
|
657
715
|
<td class="col-md-4">
|
|
658
|
-
<i>Type : </i> <code>
|
|
716
|
+
<i>Type : </i> <code>EuiLanguage[]</code>
|
|
659
717
|
|
|
660
718
|
</td>
|
|
661
719
|
</tr>
|
|
@@ -676,7 +734,7 @@
|
|
|
676
734
|
</tr>
|
|
677
735
|
<tr>
|
|
678
736
|
<td class="col-md-4">
|
|
679
|
-
<i>Type : </i> <code>
|
|
737
|
+
<i>Type : </i> <code>EuiLanguage</code>
|
|
680
738
|
|
|
681
739
|
</td>
|
|
682
740
|
</tr>
|
|
@@ -13,6 +13,64 @@
|
|
|
13
13
|
<link rel="stylesheet" href="../styles/material.css">
|
|
14
14
|
</head>
|
|
15
15
|
<body>
|
|
16
|
+
<script>
|
|
17
|
+
// Blocking script to avaoid flickering dark mode
|
|
18
|
+
// Dark mode toggle button
|
|
19
|
+
var useDark = window.matchMedia('(prefers-color-scheme: dark)');
|
|
20
|
+
var darkModeState = useDark.matches;
|
|
21
|
+
var $darkModeToggleSwitchers = document.querySelectorAll('.dark-mode-switch input');
|
|
22
|
+
var $darkModeToggles = document.querySelectorAll('.dark-mode-switch');
|
|
23
|
+
var darkModeStateLocal = localStorage.getItem('compodoc_darkmode-state');
|
|
24
|
+
|
|
25
|
+
function checkToggle(check) {
|
|
26
|
+
for (var i = 0; i < $darkModeToggleSwitchers.length; i++) {
|
|
27
|
+
$darkModeToggleSwitchers[i].checked = check;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function toggleDarkMode(state) {
|
|
32
|
+
if (window.localStorage) {
|
|
33
|
+
localStorage.setItem('compodoc_darkmode-state', state);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
checkToggle(state);
|
|
37
|
+
|
|
38
|
+
const hasClass = document.body.classList.contains('dark');
|
|
39
|
+
|
|
40
|
+
if (state) {
|
|
41
|
+
for (var i = 0; i < $darkModeToggles.length; i++) {
|
|
42
|
+
$darkModeToggles[i].classList.add('dark');
|
|
43
|
+
}
|
|
44
|
+
if (!hasClass) {
|
|
45
|
+
document.body.classList.add('dark');
|
|
46
|
+
}
|
|
47
|
+
} else {
|
|
48
|
+
for (var i = 0; i < $darkModeToggles.length; i++) {
|
|
49
|
+
$darkModeToggles[i].classList.remove('dark');
|
|
50
|
+
}
|
|
51
|
+
if (hasClass) {
|
|
52
|
+
document.body.classList.remove('dark');
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
useDark.addEventListener('change', function (evt) {
|
|
58
|
+
toggleDarkMode(evt.matches);
|
|
59
|
+
});
|
|
60
|
+
if (darkModeStateLocal) {
|
|
61
|
+
darkModeState = darkModeStateLocal === 'true';
|
|
62
|
+
}
|
|
63
|
+
toggleDarkMode(darkModeState);
|
|
64
|
+
|
|
65
|
+
if ($darkModeToggles.length > 0) {
|
|
66
|
+
for (var i = 0; i < $darkModeToggleSwitchers.length; i++) {
|
|
67
|
+
$darkModeToggleSwitchers[i].addEventListener('change', function (event) {
|
|
68
|
+
darkModeState = !darkModeState;
|
|
69
|
+
toggleDarkMode(darkModeState);
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
</script>
|
|
16
74
|
|
|
17
75
|
<div class="navbar navbar-default navbar-fixed-top d-block d-sm-none">
|
|
18
76
|
<a href="../" class="navbar-brand">csdr documentation</a>
|
|
@@ -176,9 +234,6 @@
|
|
|
176
234
|
<tr>
|
|
177
235
|
<td class="col-md-4">
|
|
178
236
|
<ul class="index-list">
|
|
179
|
-
<li>
|
|
180
|
-
<a href="#onLanguageSelected" >onLanguageSelected</a>
|
|
181
|
-
</li>
|
|
182
237
|
<li>
|
|
183
238
|
<span class="modifier">Async</span>
|
|
184
239
|
<a href="#onShowLanguageList" >onShowLanguageList</a>
|
|
@@ -229,7 +284,7 @@
|
|
|
229
284
|
<tbody>
|
|
230
285
|
<tr>
|
|
231
286
|
<td class="col-md-4">
|
|
232
|
-
<code>constructor(cd: ChangeDetectorRef, translateService: TranslateService, appShellService:
|
|
287
|
+
<code>constructor(cd: ChangeDetectorRef, translateService: TranslateService, appShellService: EuiAppShellService, appService: <a href="../injectables/EuimAppService.html" target="_self">EuimAppService</a>, modalCtrl: ModalController, baseStatesDirective: <a href="../directives/BaseStatesDirective.html" target="_self">BaseStatesDirective</a>)</code>
|
|
233
288
|
</td>
|
|
234
289
|
</tr>
|
|
235
290
|
|
|
@@ -274,7 +329,7 @@
|
|
|
274
329
|
<td>appShellService</td>
|
|
275
330
|
|
|
276
331
|
<td>
|
|
277
|
-
<code>
|
|
332
|
+
<code>EuiAppShellService</code>
|
|
278
333
|
</td>
|
|
279
334
|
|
|
280
335
|
<td>
|
|
@@ -359,67 +414,6 @@
|
|
|
359
414
|
<h3 id="methods">
|
|
360
415
|
Methods
|
|
361
416
|
</h3>
|
|
362
|
-
<table class="table table-sm table-bordered">
|
|
363
|
-
<tbody>
|
|
364
|
-
<tr>
|
|
365
|
-
<td class="col-md-4">
|
|
366
|
-
<a name="onLanguageSelected"></a>
|
|
367
|
-
<span class="name">
|
|
368
|
-
<span ><b>onLanguageSelected</b></span>
|
|
369
|
-
<a href="#onLanguageSelected"><span class="icon ion-ios-link"></span></a>
|
|
370
|
-
</span>
|
|
371
|
-
</td>
|
|
372
|
-
</tr>
|
|
373
|
-
<tr>
|
|
374
|
-
<td class="col-md-4">
|
|
375
|
-
<code>onLanguageSelected(evt: EclLanguageListLanguageSelectedEvent)</code>
|
|
376
|
-
</td>
|
|
377
|
-
</tr>
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
<tr>
|
|
383
|
-
<td class="col-md-4">
|
|
384
|
-
|
|
385
|
-
<div class="io-description">
|
|
386
|
-
<b>Parameters :</b>
|
|
387
|
-
|
|
388
|
-
<table class="params">
|
|
389
|
-
<thead>
|
|
390
|
-
<tr>
|
|
391
|
-
<td>Name</td>
|
|
392
|
-
<td>Type</td>
|
|
393
|
-
<td>Optional</td>
|
|
394
|
-
</tr>
|
|
395
|
-
</thead>
|
|
396
|
-
<tbody>
|
|
397
|
-
<tr>
|
|
398
|
-
<td>evt</td>
|
|
399
|
-
<td>
|
|
400
|
-
<code>EclLanguageListLanguageSelectedEvent</code>
|
|
401
|
-
</td>
|
|
402
|
-
|
|
403
|
-
<td>
|
|
404
|
-
No
|
|
405
|
-
</td>
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
</tr>
|
|
409
|
-
</tbody>
|
|
410
|
-
</table>
|
|
411
|
-
</div>
|
|
412
|
-
<div class="io-description">
|
|
413
|
-
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
|
|
414
|
-
|
|
415
|
-
</div>
|
|
416
|
-
<div class="io-description">
|
|
417
|
-
|
|
418
|
-
</div>
|
|
419
|
-
</td>
|
|
420
|
-
</tr>
|
|
421
|
-
</tbody>
|
|
422
|
-
</table>
|
|
423
417
|
<table class="table table-sm table-bordered">
|
|
424
418
|
<tbody>
|
|
425
419
|
<tr>
|
|
@@ -515,7 +509,7 @@
|
|
|
515
509
|
</tr>
|
|
516
510
|
<tr>
|
|
517
511
|
<td class="col-md-4">
|
|
518
|
-
<i>Type : </i> <code>
|
|
512
|
+
<i>Type : </i> <code>EuiAppShellService</code>
|
|
519
513
|
|
|
520
514
|
</td>
|
|
521
515
|
</tr>
|
|
@@ -558,7 +552,7 @@
|
|
|
558
552
|
</tr>
|
|
559
553
|
<tr>
|
|
560
554
|
<td class="col-md-4">
|
|
561
|
-
<i>Type : </i> <code>
|
|
555
|
+
<i>Type : </i> <code>EuiLanguage[]</code>
|
|
562
556
|
|
|
563
557
|
</td>
|
|
564
558
|
</tr>
|
|
@@ -579,7 +573,7 @@
|
|
|
579
573
|
</tr>
|
|
580
574
|
<tr>
|
|
581
575
|
<td class="col-md-4">
|
|
582
|
-
<i>Type : </i> <code>
|
|
576
|
+
<i>Type : </i> <code>EuiLanguage</code>
|
|
583
577
|
|
|
584
578
|
</td>
|
|
585
579
|
</tr>
|
|
@@ -13,6 +13,64 @@
|
|
|
13
13
|
<link rel="stylesheet" href="../styles/material.css">
|
|
14
14
|
</head>
|
|
15
15
|
<body>
|
|
16
|
+
<script>
|
|
17
|
+
// Blocking script to avaoid flickering dark mode
|
|
18
|
+
// Dark mode toggle button
|
|
19
|
+
var useDark = window.matchMedia('(prefers-color-scheme: dark)');
|
|
20
|
+
var darkModeState = useDark.matches;
|
|
21
|
+
var $darkModeToggleSwitchers = document.querySelectorAll('.dark-mode-switch input');
|
|
22
|
+
var $darkModeToggles = document.querySelectorAll('.dark-mode-switch');
|
|
23
|
+
var darkModeStateLocal = localStorage.getItem('compodoc_darkmode-state');
|
|
24
|
+
|
|
25
|
+
function checkToggle(check) {
|
|
26
|
+
for (var i = 0; i < $darkModeToggleSwitchers.length; i++) {
|
|
27
|
+
$darkModeToggleSwitchers[i].checked = check;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function toggleDarkMode(state) {
|
|
32
|
+
if (window.localStorage) {
|
|
33
|
+
localStorage.setItem('compodoc_darkmode-state', state);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
checkToggle(state);
|
|
37
|
+
|
|
38
|
+
const hasClass = document.body.classList.contains('dark');
|
|
39
|
+
|
|
40
|
+
if (state) {
|
|
41
|
+
for (var i = 0; i < $darkModeToggles.length; i++) {
|
|
42
|
+
$darkModeToggles[i].classList.add('dark');
|
|
43
|
+
}
|
|
44
|
+
if (!hasClass) {
|
|
45
|
+
document.body.classList.add('dark');
|
|
46
|
+
}
|
|
47
|
+
} else {
|
|
48
|
+
for (var i = 0; i < $darkModeToggles.length; i++) {
|
|
49
|
+
$darkModeToggles[i].classList.remove('dark');
|
|
50
|
+
}
|
|
51
|
+
if (hasClass) {
|
|
52
|
+
document.body.classList.remove('dark');
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
useDark.addEventListener('change', function (evt) {
|
|
58
|
+
toggleDarkMode(evt.matches);
|
|
59
|
+
});
|
|
60
|
+
if (darkModeStateLocal) {
|
|
61
|
+
darkModeState = darkModeStateLocal === 'true';
|
|
62
|
+
}
|
|
63
|
+
toggleDarkMode(darkModeState);
|
|
64
|
+
|
|
65
|
+
if ($darkModeToggles.length > 0) {
|
|
66
|
+
for (var i = 0; i < $darkModeToggleSwitchers.length; i++) {
|
|
67
|
+
$darkModeToggleSwitchers[i].addEventListener('change', function (event) {
|
|
68
|
+
darkModeState = !darkModeState;
|
|
69
|
+
toggleDarkMode(darkModeState);
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
</script>
|
|
16
74
|
|
|
17
75
|
<div class="navbar navbar-default navbar-fixed-top d-block d-sm-none">
|
|
18
76
|
<a href="../" class="navbar-brand">csdr documentation</a>
|
|
@@ -13,6 +13,64 @@
|
|
|
13
13
|
<link rel="stylesheet" href="../styles/material.css">
|
|
14
14
|
</head>
|
|
15
15
|
<body>
|
|
16
|
+
<script>
|
|
17
|
+
// Blocking script to avaoid flickering dark mode
|
|
18
|
+
// Dark mode toggle button
|
|
19
|
+
var useDark = window.matchMedia('(prefers-color-scheme: dark)');
|
|
20
|
+
var darkModeState = useDark.matches;
|
|
21
|
+
var $darkModeToggleSwitchers = document.querySelectorAll('.dark-mode-switch input');
|
|
22
|
+
var $darkModeToggles = document.querySelectorAll('.dark-mode-switch');
|
|
23
|
+
var darkModeStateLocal = localStorage.getItem('compodoc_darkmode-state');
|
|
24
|
+
|
|
25
|
+
function checkToggle(check) {
|
|
26
|
+
for (var i = 0; i < $darkModeToggleSwitchers.length; i++) {
|
|
27
|
+
$darkModeToggleSwitchers[i].checked = check;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function toggleDarkMode(state) {
|
|
32
|
+
if (window.localStorage) {
|
|
33
|
+
localStorage.setItem('compodoc_darkmode-state', state);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
checkToggle(state);
|
|
37
|
+
|
|
38
|
+
const hasClass = document.body.classList.contains('dark');
|
|
39
|
+
|
|
40
|
+
if (state) {
|
|
41
|
+
for (var i = 0; i < $darkModeToggles.length; i++) {
|
|
42
|
+
$darkModeToggles[i].classList.add('dark');
|
|
43
|
+
}
|
|
44
|
+
if (!hasClass) {
|
|
45
|
+
document.body.classList.add('dark');
|
|
46
|
+
}
|
|
47
|
+
} else {
|
|
48
|
+
for (var i = 0; i < $darkModeToggles.length; i++) {
|
|
49
|
+
$darkModeToggles[i].classList.remove('dark');
|
|
50
|
+
}
|
|
51
|
+
if (hasClass) {
|
|
52
|
+
document.body.classList.remove('dark');
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
useDark.addEventListener('change', function (evt) {
|
|
58
|
+
toggleDarkMode(evt.matches);
|
|
59
|
+
});
|
|
60
|
+
if (darkModeStateLocal) {
|
|
61
|
+
darkModeState = darkModeStateLocal === 'true';
|
|
62
|
+
}
|
|
63
|
+
toggleDarkMode(darkModeState);
|
|
64
|
+
|
|
65
|
+
if ($darkModeToggles.length > 0) {
|
|
66
|
+
for (var i = 0; i < $darkModeToggleSwitchers.length; i++) {
|
|
67
|
+
$darkModeToggleSwitchers[i].addEventListener('change', function (event) {
|
|
68
|
+
darkModeState = !darkModeState;
|
|
69
|
+
toggleDarkMode(darkModeState);
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
</script>
|
|
16
74
|
|
|
17
75
|
<div class="navbar navbar-default navbar-fixed-top d-block d-sm-none">
|
|
18
76
|
<a href="../" class="navbar-brand">csdr documentation</a>
|
|
@@ -13,6 +13,64 @@
|
|
|
13
13
|
<link rel="stylesheet" href="../styles/material.css">
|
|
14
14
|
</head>
|
|
15
15
|
<body>
|
|
16
|
+
<script>
|
|
17
|
+
// Blocking script to avaoid flickering dark mode
|
|
18
|
+
// Dark mode toggle button
|
|
19
|
+
var useDark = window.matchMedia('(prefers-color-scheme: dark)');
|
|
20
|
+
var darkModeState = useDark.matches;
|
|
21
|
+
var $darkModeToggleSwitchers = document.querySelectorAll('.dark-mode-switch input');
|
|
22
|
+
var $darkModeToggles = document.querySelectorAll('.dark-mode-switch');
|
|
23
|
+
var darkModeStateLocal = localStorage.getItem('compodoc_darkmode-state');
|
|
24
|
+
|
|
25
|
+
function checkToggle(check) {
|
|
26
|
+
for (var i = 0; i < $darkModeToggleSwitchers.length; i++) {
|
|
27
|
+
$darkModeToggleSwitchers[i].checked = check;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function toggleDarkMode(state) {
|
|
32
|
+
if (window.localStorage) {
|
|
33
|
+
localStorage.setItem('compodoc_darkmode-state', state);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
checkToggle(state);
|
|
37
|
+
|
|
38
|
+
const hasClass = document.body.classList.contains('dark');
|
|
39
|
+
|
|
40
|
+
if (state) {
|
|
41
|
+
for (var i = 0; i < $darkModeToggles.length; i++) {
|
|
42
|
+
$darkModeToggles[i].classList.add('dark');
|
|
43
|
+
}
|
|
44
|
+
if (!hasClass) {
|
|
45
|
+
document.body.classList.add('dark');
|
|
46
|
+
}
|
|
47
|
+
} else {
|
|
48
|
+
for (var i = 0; i < $darkModeToggles.length; i++) {
|
|
49
|
+
$darkModeToggles[i].classList.remove('dark');
|
|
50
|
+
}
|
|
51
|
+
if (hasClass) {
|
|
52
|
+
document.body.classList.remove('dark');
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
useDark.addEventListener('change', function (evt) {
|
|
58
|
+
toggleDarkMode(evt.matches);
|
|
59
|
+
});
|
|
60
|
+
if (darkModeStateLocal) {
|
|
61
|
+
darkModeState = darkModeStateLocal === 'true';
|
|
62
|
+
}
|
|
63
|
+
toggleDarkMode(darkModeState);
|
|
64
|
+
|
|
65
|
+
if ($darkModeToggles.length > 0) {
|
|
66
|
+
for (var i = 0; i < $darkModeToggleSwitchers.length; i++) {
|
|
67
|
+
$darkModeToggleSwitchers[i].addEventListener('change', function (event) {
|
|
68
|
+
darkModeState = !darkModeState;
|
|
69
|
+
toggleDarkMode(darkModeState);
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
</script>
|
|
16
74
|
|
|
17
75
|
<div class="navbar navbar-default navbar-fixed-top d-block d-sm-none">
|
|
18
76
|
<a href="../" class="navbar-brand">csdr documentation</a>
|
|
@@ -13,6 +13,64 @@
|
|
|
13
13
|
<link rel="stylesheet" href="../styles/material.css">
|
|
14
14
|
</head>
|
|
15
15
|
<body>
|
|
16
|
+
<script>
|
|
17
|
+
// Blocking script to avaoid flickering dark mode
|
|
18
|
+
// Dark mode toggle button
|
|
19
|
+
var useDark = window.matchMedia('(prefers-color-scheme: dark)');
|
|
20
|
+
var darkModeState = useDark.matches;
|
|
21
|
+
var $darkModeToggleSwitchers = document.querySelectorAll('.dark-mode-switch input');
|
|
22
|
+
var $darkModeToggles = document.querySelectorAll('.dark-mode-switch');
|
|
23
|
+
var darkModeStateLocal = localStorage.getItem('compodoc_darkmode-state');
|
|
24
|
+
|
|
25
|
+
function checkToggle(check) {
|
|
26
|
+
for (var i = 0; i < $darkModeToggleSwitchers.length; i++) {
|
|
27
|
+
$darkModeToggleSwitchers[i].checked = check;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function toggleDarkMode(state) {
|
|
32
|
+
if (window.localStorage) {
|
|
33
|
+
localStorage.setItem('compodoc_darkmode-state', state);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
checkToggle(state);
|
|
37
|
+
|
|
38
|
+
const hasClass = document.body.classList.contains('dark');
|
|
39
|
+
|
|
40
|
+
if (state) {
|
|
41
|
+
for (var i = 0; i < $darkModeToggles.length; i++) {
|
|
42
|
+
$darkModeToggles[i].classList.add('dark');
|
|
43
|
+
}
|
|
44
|
+
if (!hasClass) {
|
|
45
|
+
document.body.classList.add('dark');
|
|
46
|
+
}
|
|
47
|
+
} else {
|
|
48
|
+
for (var i = 0; i < $darkModeToggles.length; i++) {
|
|
49
|
+
$darkModeToggles[i].classList.remove('dark');
|
|
50
|
+
}
|
|
51
|
+
if (hasClass) {
|
|
52
|
+
document.body.classList.remove('dark');
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
useDark.addEventListener('change', function (evt) {
|
|
58
|
+
toggleDarkMode(evt.matches);
|
|
59
|
+
});
|
|
60
|
+
if (darkModeStateLocal) {
|
|
61
|
+
darkModeState = darkModeStateLocal === 'true';
|
|
62
|
+
}
|
|
63
|
+
toggleDarkMode(darkModeState);
|
|
64
|
+
|
|
65
|
+
if ($darkModeToggles.length > 0) {
|
|
66
|
+
for (var i = 0; i < $darkModeToggleSwitchers.length; i++) {
|
|
67
|
+
$darkModeToggleSwitchers[i].addEventListener('change', function (event) {
|
|
68
|
+
darkModeState = !darkModeState;
|
|
69
|
+
toggleDarkMode(darkModeState);
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
</script>
|
|
16
74
|
|
|
17
75
|
<div class="navbar navbar-default navbar-fixed-top d-block d-sm-none">
|
|
18
76
|
<a href="../" class="navbar-brand">csdr documentation</a>
|