cedar-embeddable-editor 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.browserslistrc +18 -0
- package/.editorconfig +16 -0
- package/README.md +302 -0
- package/angular.json +153 -0
- package/cedar-embeddable-editor-0.9.0.tgz +0 -0
- package/e2e/protractor.conf.js +36 -0
- package/e2e/src/app.e2e-spec.ts +23 -0
- package/e2e/src/app.po.ts +11 -0
- package/e2e/tsconfig.json +14 -0
- package/karma.conf.js +32 -0
- package/license.txt +26 -0
- package/package.json +61 -0
- package/src/app/app.component.dev.ts +74 -0
- package/src/app/app.component.html +5 -0
- package/src/app/app.component.prod.ts +76 -0
- package/src/app/app.component.scss +1 -0
- package/src/app/app.module.dev.ts +58 -0
- package/src/app/app.module.prod.ts +56 -0
- package/src/app/modules/input-types/components/cedar-foo-bar/cedar-foo-bar.component.html +0 -0
- package/src/app/modules/input-types/components/cedar-foo-bar/cedar-foo-bar.component.scss +0 -0
- package/src/app/modules/input-types/components/cedar-foo-bar/cedar-foo-bar.component.spec.ts +24 -0
- package/src/app/modules/input-types/components/cedar-foo-bar/cedar-foo-bar.component.ts +39 -0
- package/src/app/modules/input-types/components/cedar-input-attribute-value/cedar-input-attribute-value.component.html +25 -0
- package/src/app/modules/input-types/components/cedar-input-attribute-value/cedar-input-attribute-value.component.scss +0 -0
- package/src/app/modules/input-types/components/cedar-input-attribute-value/cedar-input-attribute-value.component.spec.ts +25 -0
- package/src/app/modules/input-types/components/cedar-input-attribute-value/cedar-input-attribute-value.component.ts +91 -0
- package/src/app/modules/input-types/components/cedar-input-checkbox/cedar-input-checkbox.component.html +8 -0
- package/src/app/modules/input-types/components/cedar-input-checkbox/cedar-input-checkbox.component.scss +0 -0
- package/src/app/modules/input-types/components/cedar-input-checkbox/cedar-input-checkbox.component.spec.ts +25 -0
- package/src/app/modules/input-types/components/cedar-input-checkbox/cedar-input-checkbox.component.ts +104 -0
- package/src/app/modules/input-types/components/cedar-input-controlled/cedar-input-controlled.component.html +22 -0
- package/src/app/modules/input-types/components/cedar-input-controlled/cedar-input-controlled.component.scss +0 -0
- package/src/app/modules/input-types/components/cedar-input-controlled/cedar-input-controlled.component.spec.ts +24 -0
- package/src/app/modules/input-types/components/cedar-input-controlled/cedar-input-controlled.component.ts +135 -0
- package/src/app/modules/input-types/components/cedar-input-datetime/cedar-input-datetime.component.html +44 -0
- package/src/app/modules/input-types/components/cedar-input-datetime/cedar-input-datetime.component.scss +0 -0
- package/src/app/modules/input-types/components/cedar-input-datetime/cedar-input-datetime.component.spec.ts +25 -0
- package/src/app/modules/input-types/components/cedar-input-datetime/cedar-input-datetime.component.ts +451 -0
- package/src/app/modules/input-types/components/cedar-input-email/cedar-input-email.component.html +16 -0
- package/src/app/modules/input-types/components/cedar-input-email/cedar-input-email.component.scss +0 -0
- package/src/app/modules/input-types/components/cedar-input-email/cedar-input-email.component.spec.ts +25 -0
- package/src/app/modules/input-types/components/cedar-input-email/cedar-input-email.component.ts +91 -0
- package/src/app/modules/input-types/components/cedar-input-link/cedar-input-link.component.html +16 -0
- package/src/app/modules/input-types/components/cedar-input-link/cedar-input-link.component.scss +0 -0
- package/src/app/modules/input-types/components/cedar-input-link/cedar-input-link.component.spec.ts +25 -0
- package/src/app/modules/input-types/components/cedar-input-link/cedar-input-link.component.ts +92 -0
- package/src/app/modules/input-types/components/cedar-input-multiple-choice/cedar-input-multiple-choice.component.html +18 -0
- package/src/app/modules/input-types/components/cedar-input-multiple-choice/cedar-input-multiple-choice.component.scss +5 -0
- package/src/app/modules/input-types/components/cedar-input-multiple-choice/cedar-input-multiple-choice.component.spec.ts +25 -0
- package/src/app/modules/input-types/components/cedar-input-multiple-choice/cedar-input-multiple-choice.component.ts +78 -0
- package/src/app/modules/input-types/components/cedar-input-numeric/cedar-input-numeric.component.html +15 -0
- package/src/app/modules/input-types/components/cedar-input-numeric/cedar-input-numeric.component.scss +0 -0
- package/src/app/modules/input-types/components/cedar-input-numeric/cedar-input-numeric.component.spec.ts +25 -0
- package/src/app/modules/input-types/components/cedar-input-numeric/cedar-input-numeric.component.ts +169 -0
- package/src/app/modules/input-types/components/cedar-input-phone/cedar-input-phone.component.html +15 -0
- package/src/app/modules/input-types/components/cedar-input-phone/cedar-input-phone.component.scss +0 -0
- package/src/app/modules/input-types/components/cedar-input-phone/cedar-input-phone.component.spec.ts +25 -0
- package/src/app/modules/input-types/components/cedar-input-phone/cedar-input-phone.component.ts +94 -0
- package/src/app/modules/input-types/components/cedar-input-select/cedar-input-select.component.html +19 -0
- package/src/app/modules/input-types/components/cedar-input-select/cedar-input-select.component.scss +0 -0
- package/src/app/modules/input-types/components/cedar-input-select/cedar-input-select.component.spec.ts +25 -0
- package/src/app/modules/input-types/components/cedar-input-select/cedar-input-select.component.ts +108 -0
- package/src/app/modules/input-types/components/cedar-input-text/cedar-input-text.component.html +25 -0
- package/src/app/modules/input-types/components/cedar-input-text/cedar-input-text.component.scss +0 -0
- package/src/app/modules/input-types/components/cedar-input-text/cedar-input-text.component.spec.ts +25 -0
- package/src/app/modules/input-types/components/cedar-input-text/cedar-input-text.component.ts +125 -0
- package/src/app/modules/input-types/components/cedar-static-image/cedar-static-image.component.html +8 -0
- package/src/app/modules/input-types/components/cedar-static-image/cedar-static-image.component.scss +0 -0
- package/src/app/modules/input-types/components/cedar-static-image/cedar-static-image.component.spec.ts +24 -0
- package/src/app/modules/input-types/components/cedar-static-image/cedar-static-image.component.ts +40 -0
- package/src/app/modules/input-types/components/cedar-static-page-break/cedar-static-page-break.component.html +20 -0
- package/src/app/modules/input-types/components/cedar-static-page-break/cedar-static-page-break.component.scss +24 -0
- package/src/app/modules/input-types/components/cedar-static-page-break/cedar-static-page-break.component.spec.ts +25 -0
- package/src/app/modules/input-types/components/cedar-static-page-break/cedar-static-page-break.component.ts +36 -0
- package/src/app/modules/input-types/components/cedar-static-rich-text/cedar-static-rich-text.component.html +2 -0
- package/src/app/modules/input-types/components/cedar-static-rich-text/cedar-static-rich-text.component.scss +0 -0
- package/src/app/modules/input-types/components/cedar-static-rich-text/cedar-static-rich-text.component.spec.ts +25 -0
- package/src/app/modules/input-types/components/cedar-static-rich-text/cedar-static-rich-text.component.ts +35 -0
- package/src/app/modules/input-types/components/cedar-static-section-break/cedar-static-section-break.component.html +8 -0
- package/src/app/modules/input-types/components/cedar-static-section-break/cedar-static-section-break.component.scss +0 -0
- package/src/app/modules/input-types/components/cedar-static-section-break/cedar-static-section-break.component.spec.ts +24 -0
- package/src/app/modules/input-types/components/cedar-static-section-break/cedar-static-section-break.component.ts +39 -0
- package/src/app/modules/input-types/components/cedar-static-youtube/cedar-static-youtube.component.html +6 -0
- package/src/app/modules/input-types/components/cedar-static-youtube/cedar-static-youtube.component.scss +0 -0
- package/src/app/modules/input-types/components/cedar-static-youtube/cedar-static-youtube.component.spec.ts +24 -0
- package/src/app/modules/input-types/components/cedar-static-youtube/cedar-static-youtube.component.ts +42 -0
- package/src/app/modules/input-types/input-types.module.ts +139 -0
- package/src/app/modules/shared/components/cedar-component-header/cedar-component-header.component.html +13 -0
- package/src/app/modules/shared/components/cedar-component-header/cedar-component-header.component.scss +12 -0
- package/src/app/modules/shared/components/cedar-component-header/cedar-component-header.component.spec.ts +25 -0
- package/src/app/modules/shared/components/cedar-component-header/cedar-component-header.component.ts +42 -0
- package/src/app/modules/shared/components/cedar-component-renderer/cedar-component-renderer.component.html +117 -0
- package/src/app/modules/shared/components/cedar-component-renderer/cedar-component-renderer.component.scss +5 -0
- package/src/app/modules/shared/components/cedar-component-renderer/cedar-component-renderer.component.spec.ts +25 -0
- package/src/app/modules/shared/components/cedar-component-renderer/cedar-component-renderer.component.ts +101 -0
- package/src/app/modules/shared/components/cedar-data-saver/cedar-data-saver.component.html +22 -0
- package/src/app/modules/shared/components/cedar-data-saver/cedar-data-saver.component.scss +23 -0
- package/src/app/modules/shared/components/cedar-data-saver/cedar-data-saver.component.spec.ts +24 -0
- package/src/app/modules/shared/components/cedar-data-saver/cedar-data-saver.component.ts +139 -0
- package/src/app/modules/shared/components/cedar-embeddable-metadata-editor/cedar-embeddable-metadata-editor.component.html +56 -0
- package/src/app/modules/shared/components/cedar-embeddable-metadata-editor/cedar-embeddable-metadata-editor.component.scss +13 -0
- package/src/app/modules/shared/components/cedar-embeddable-metadata-editor/cedar-embeddable-metadata-editor.component.spec.ts +25 -0
- package/src/app/modules/shared/components/cedar-embeddable-metadata-editor/cedar-embeddable-metadata-editor.component.ts +184 -0
- package/src/app/modules/shared/components/cedar-embeddable-metadata-editor-wrapper/cedar-embeddable-metadata-editor-wrapper.component.html +15 -0
- package/src/app/modules/shared/components/cedar-embeddable-metadata-editor-wrapper/cedar-embeddable-metadata-editor-wrapper.component.scss +2 -0
- package/src/app/modules/shared/components/cedar-embeddable-metadata-editor-wrapper/cedar-embeddable-metadata-editor-wrapper.component.spec.ts +25 -0
- package/src/app/modules/shared/components/cedar-embeddable-metadata-editor-wrapper/cedar-embeddable-metadata-editor-wrapper.component.ts +240 -0
- package/src/app/modules/shared/components/cedar-multi-pager/cedar-multi-pager.component.html +35 -0
- package/src/app/modules/shared/components/cedar-multi-pager/cedar-multi-pager.component.scss +41 -0
- package/src/app/modules/shared/components/cedar-multi-pager/cedar-multi-pager.component.spec.ts +25 -0
- package/src/app/modules/shared/components/cedar-multi-pager/cedar-multi-pager.component.ts +282 -0
- package/src/app/modules/shared/components/date-picker/date-picker.component.html +46 -0
- package/src/app/modules/shared/components/date-picker/date-picker.component.scss +7 -0
- package/src/app/modules/shared/components/date-picker/date-picker.component.spec.ts +25 -0
- package/src/app/modules/shared/components/date-picker/date-picker.component.ts +100 -0
- package/src/app/modules/shared/components/file-uploader/bytes/bytes.pipe.spec.ts +33 -0
- package/src/app/modules/shared/components/file-uploader/bytes/bytes.pipe.ts +16 -0
- package/src/app/modules/shared/components/file-uploader/file-upload-input-for/file-upload-input-for.directive.spec.ts +54 -0
- package/src/app/modules/shared/components/file-uploader/file-upload-input-for/file-upload-input-for.directive.ts +67 -0
- package/src/app/modules/shared/components/file-uploader/file-uploader.component.html +26 -0
- package/src/app/modules/shared/components/file-uploader/file-uploader.component.scss +55 -0
- package/src/app/modules/shared/components/file-uploader/file-uploader.component.spec.ts +25 -0
- package/src/app/modules/shared/components/file-uploader/file-uploader.component.ts +67 -0
- package/src/app/modules/shared/components/file-uploader/mat-file-upload/mat-file-upload.component.html +42 -0
- package/src/app/modules/shared/components/file-uploader/mat-file-upload/mat-file-upload.component.scss +31 -0
- package/src/app/modules/shared/components/file-uploader/mat-file-upload/mat-file-upload.component.spec.ts +177 -0
- package/src/app/modules/shared/components/file-uploader/mat-file-upload/mat-file-upload.component.ts +145 -0
- package/src/app/modules/shared/components/file-uploader/mat-file-upload/mat-file-upload.service.ts +21 -0
- package/src/app/modules/shared/components/file-uploader/mat-file-upload-queue/mat-file-upload-queue.component.html +1 -0
- package/src/app/modules/shared/components/file-uploader/mat-file-upload-queue/mat-file-upload-queue.component.scss +0 -0
- package/src/app/modules/shared/components/file-uploader/mat-file-upload-queue/mat-file-upload-queue.component.spec.ts +59 -0
- package/src/app/modules/shared/components/file-uploader/mat-file-upload-queue/mat-file-upload-queue.component.ts +139 -0
- package/src/app/modules/shared/components/file-uploader/mat-file-upload-queue/mat-file-upload-queue.service.spec.ts +33 -0
- package/src/app/modules/shared/components/file-uploader/mat-file-upload-queue/mat-file-upload-queue.service.ts +17 -0
- package/src/app/modules/shared/components/file-uploader/mat-file-upload.module.ts +35 -0
- package/src/app/modules/shared/components/file-uploader/mat-file-upload.type.ts +24 -0
- package/src/app/modules/shared/components/preferences-menu/preferences-menu.component.html +18 -0
- package/src/app/modules/shared/components/preferences-menu/preferences-menu.component.scss +0 -0
- package/src/app/modules/shared/components/preferences-menu/preferences-menu.component.spec.ts +23 -0
- package/src/app/modules/shared/components/preferences-menu/preferences-menu.component.ts +10 -0
- package/src/app/modules/shared/components/sample-templates/sample-template-select/sample-template-select.component.html +16 -0
- package/src/app/modules/shared/components/sample-templates/sample-template-select/sample-template-select.component.scss +0 -0
- package/src/app/modules/shared/components/sample-templates/sample-template-select/sample-template-select.component.spec.ts +25 -0
- package/src/app/modules/shared/components/sample-templates/sample-template-select/sample-template-select.component.ts +89 -0
- package/src/app/modules/shared/components/sample-templates/sample-templates.component.html +19 -0
- package/src/app/modules/shared/components/sample-templates/sample-templates.component.scss +0 -0
- package/src/app/modules/shared/components/sample-templates/sample-templates.component.spec.ts +25 -0
- package/src/app/modules/shared/components/sample-templates/sample-templates.component.ts +66 -0
- package/src/app/modules/shared/components/sample-templates/sample-templates.service.ts +175 -0
- package/src/app/modules/shared/components/source-panels/source-panels.component.html +98 -0
- package/src/app/modules/shared/components/source-panels/source-panels.component.scss +0 -0
- package/src/app/modules/shared/components/source-panels/source-panels.component.spec.ts +25 -0
- package/src/app/modules/shared/components/source-panels/source-panels.component.ts +36 -0
- package/src/app/modules/shared/components/static-footer/static-footer.component.html +17 -0
- package/src/app/modules/shared/components/static-footer/static-footer.component.scss +110 -0
- package/src/app/modules/shared/components/static-footer/static-footer.component.spec.ts +25 -0
- package/src/app/modules/shared/components/static-footer/static-footer.component.ts +16 -0
- package/src/app/modules/shared/components/static-header/static-header.component.html +10 -0
- package/src/app/modules/shared/components/static-header/static-header.component.scss +13 -0
- package/src/app/modules/shared/components/static-header/static-header.component.spec.ts +25 -0
- package/src/app/modules/shared/components/static-header/static-header.component.ts +21 -0
- package/src/app/modules/shared/components/timezone-picker/timezone-picker.component.html +16 -0
- package/src/app/modules/shared/components/timezone-picker/timezone-picker.component.scss +0 -0
- package/src/app/modules/shared/components/timezone-picker/timezone-picker.component.spec.ts +25 -0
- package/src/app/modules/shared/components/timezone-picker/timezone-picker.component.ts +251 -0
- package/src/app/modules/shared/factory/template-representation.factory.ts +323 -0
- package/src/app/modules/shared/handler/component-type.handler.ts +51 -0
- package/src/app/modules/shared/handler/data-object-builder.handler.ts +159 -0
- package/src/app/modules/shared/handler/data-object-data-value.handler.ts +270 -0
- package/src/app/modules/shared/handler/data-object-structure.handler.ts +145 -0
- package/src/app/modules/shared/handler/multi-instance-object.handler.ts +317 -0
- package/src/app/modules/shared/models/cedar-input-template.model.ts +3 -0
- package/src/app/modules/shared/models/cedar-model.model.ts +48 -0
- package/src/app/modules/shared/models/component/cedar-component.model.ts +16 -0
- package/src/app/modules/shared/models/component/component-representation.model.ts +30 -0
- package/src/app/modules/shared/models/component/element-component.model.ts +11 -0
- package/src/app/modules/shared/models/component/field-component.model.ts +23 -0
- package/src/app/modules/shared/models/component/multi-component.model.ts +10 -0
- package/src/app/modules/shared/models/component/null-component.model.ts +20 -0
- package/src/app/modules/shared/models/component/single-component.model.ts +6 -0
- package/src/app/modules/shared/models/element/abstract-element-component.model.ts +26 -0
- package/src/app/modules/shared/models/element/multi-element-component.model.ts +19 -0
- package/src/app/modules/shared/models/element/single-element-component.model.ts +16 -0
- package/src/app/modules/shared/models/enum/data-object-building-mode.model.ts +6 -0
- package/src/app/modules/shared/models/field/abstract-field-component.model.ts +28 -0
- package/src/app/modules/shared/models/field/multi-field-component.model.ts +21 -0
- package/src/app/modules/shared/models/field/single-field-component.model.ts +18 -0
- package/src/app/modules/shared/models/info/basic-info.model.ts +8 -0
- package/src/app/modules/shared/models/info/choice-info.model.ts +9 -0
- package/src/app/modules/shared/models/info/choice-option.model.ts +6 -0
- package/src/app/modules/shared/models/info/content-info.model.ts +5 -0
- package/src/app/modules/shared/models/info/controlled-info.model.ts +8 -0
- package/src/app/modules/shared/models/info/current-multi-info.model.ts +7 -0
- package/src/app/modules/shared/models/info/label-info.model.ts +7 -0
- package/src/app/modules/shared/models/info/multi-info.model.ts +10 -0
- package/src/app/modules/shared/models/info/multi-instance-info.model.ts +20 -0
- package/src/app/modules/shared/models/info/multi-instance-object-info.model.ts +30 -0
- package/src/app/modules/shared/models/info/number-info.model.ts +9 -0
- package/src/app/modules/shared/models/info/value-info.model.ts +9 -0
- package/src/app/modules/shared/models/input-type.model.ts +21 -0
- package/src/app/modules/shared/models/instance-extract-data.model.ts +3 -0
- package/src/app/modules/shared/models/instance-full-data.model.ts +5 -0
- package/src/app/modules/shared/models/javascript-types.model.ts +7 -0
- package/src/app/modules/shared/models/json-schema.model.ts +39 -0
- package/src/app/modules/shared/models/numbers.model.ts +10 -0
- package/src/app/modules/shared/models/rest/integrated-search/integrated-search-request-parameter-object.ts +8 -0
- package/src/app/modules/shared/models/rest/integrated-search/integrated-search-request-value-constraints.ts +8 -0
- package/src/app/modules/shared/models/rest/integrated-search/integrated-search-request.ts +9 -0
- package/src/app/modules/shared/models/rest/integrated-search/integrated-search-response-item.ts +10 -0
- package/src/app/modules/shared/models/rest/integrated-search/integrated-search-response.ts +13 -0
- package/src/app/modules/shared/models/static/static-field-component.model.ts +24 -0
- package/src/app/modules/shared/models/template/cedar-template.model.ts +24 -0
- package/src/app/modules/shared/models/template/empty-template.model.ts +5 -0
- package/src/app/modules/shared/models/template/null-template.model.ts +23 -0
- package/src/app/modules/shared/models/template/template-component.model.ts +12 -0
- package/src/app/modules/shared/models/temporal.model.ts +13 -0
- package/src/app/modules/shared/models/ui/cedar-ui-component.model.ts +17 -0
- package/src/app/modules/shared/models/xsd.model.ts +11 -0
- package/src/app/modules/shared/pipe/keep-html.pipe.ts +13 -0
- package/src/app/modules/shared/pipe/rdf.pipe.ts +10 -0
- package/src/app/modules/shared/service/active-component-registry.service.ts +134 -0
- package/src/app/modules/shared/service/component-data.service.ts +25 -0
- package/src/app/modules/shared/service/controlled-field-data.service.ts +37 -0
- package/src/app/modules/shared/service/date-time/custom-date-adapter.ts +19 -0
- package/src/app/modules/shared/service/date-time/date-time.service.ts +30 -0
- package/src/app/modules/shared/service/local-settings.service.ts +22 -0
- package/src/app/modules/shared/service/message-handler.service.ts +35 -0
- package/src/app/modules/shared/service/page-break-paginator.service.ts +78 -0
- package/src/app/modules/shared/shared.module.ts +97 -0
- package/src/app/modules/shared/util/data-context.ts +42 -0
- package/src/app/modules/shared/util/data-object-util.ts +102 -0
- package/src/app/modules/shared/util/handler-context.ts +81 -0
- package/src/app/modules/shared/util/template-object-util.ts +21 -0
- package/src/assets/.gitkeep +0 -0
- package/src/assets/fonts/MaterialIcons-Regular.eot +0 -0
- package/src/assets/fonts/MaterialIcons-Regular.ttf +0 -0
- package/src/assets/fonts/MaterialIcons-Regular.woff +0 -0
- package/src/assets/fonts/MaterialIcons-Regular.woff2 +0 -0
- package/src/assets/i18n-cee/en.json +86 -0
- package/src/assets/i18n-cee/hu.json +86 -0
- package/src/assets/images/bmir-logo.png +0 -0
- package/src/assets/images/cedar-logo-80x80.png +0 -0
- package/src/environments/environment.prod.ts +5 -0
- package/src/environments/environment.ts +18 -0
- package/src/favicon.ico +0 -0
- package/src/index.html +16 -0
- package/src/main.ts +28 -0
- package/src/polyfills.ts +65 -0
- package/src/styles-own.scss +352 -0
- package/src/styles.scss +116 -0
- package/src/test.ts +25 -0
- package/tsconfig.app.json +16 -0
- package/tsconfig.base.json +20 -0
- package/tsconfig.json +20 -0
- package/tsconfig.spec.json +18 -0
- package/tslint.json +152 -0
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
.main__footer {
|
|
2
|
+
margin: 30px auto 0px auto;
|
|
3
|
+
max-width: 80%;
|
|
4
|
+
padding-top:20px;
|
|
5
|
+
|
|
6
|
+
@media only screen and (max-width: 300px) {
|
|
7
|
+
max-width: 100%;
|
|
8
|
+
padding: 0 10px;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@media only screen and (min-width: 301px) and (max-width: 600px) {
|
|
12
|
+
max-width: calc(100% - 4em);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@media only screen and (min-width: 601px) and (max-width: 700px) {
|
|
16
|
+
max-width: 580px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@media only screen and (min-width: 701px) and (max-width: 1000px) {
|
|
20
|
+
max-width: calc(80% - 4em);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@media only screen and (min-width: 1001px) {
|
|
24
|
+
max-width: calc(1000px - 4em);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.flex {
|
|
28
|
+
display: flex;
|
|
29
|
+
justify-content: center;
|
|
30
|
+
flex-wrap: wrap;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.footer-title {
|
|
35
|
+
font-weight: lighter;
|
|
36
|
+
font-family: CrimsonText, serif;
|
|
37
|
+
font-size: 34px;
|
|
38
|
+
width: 100%;
|
|
39
|
+
white-space: nowrap;
|
|
40
|
+
text-overflow: ellipsis;
|
|
41
|
+
margin-bottom: 0;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.paragraph__section {
|
|
45
|
+
padding: 0;
|
|
46
|
+
font-size: 1.2em;
|
|
47
|
+
line-height: 1.2em;
|
|
48
|
+
font-weight: lighter;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.form__section {
|
|
52
|
+
position: relative;
|
|
53
|
+
padding: 3em;
|
|
54
|
+
display: flex;
|
|
55
|
+
flex-direction: row;
|
|
56
|
+
justify-content: center;
|
|
57
|
+
flex-wrap: wrap;
|
|
58
|
+
|
|
59
|
+
.disclaimer {
|
|
60
|
+
color: rgba(0, 0, 0, 0.54);
|
|
61
|
+
padding: 10px;
|
|
62
|
+
font-size: .8em;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.subscribe {
|
|
66
|
+
display: flex;
|
|
67
|
+
justify-content: center;
|
|
68
|
+
width: 25em;
|
|
69
|
+
border: 1px solid rgba(0, 0, 0, 0.1);
|
|
70
|
+
-webkit-box-shadow: 0 8px 6px -6px rgba(0, 0, 0, 0.1);
|
|
71
|
+
-moz-box-shadow: 0 8px 6px -6px rgba(0, 0, 0, 0.1);
|
|
72
|
+
box-shadow: 0 8px 6px -6px rgba(0, 0, 0, 0.1);
|
|
73
|
+
box-sizing: content-box;
|
|
74
|
+
border-radius: 4px;
|
|
75
|
+
vertical-align: middle;
|
|
76
|
+
|
|
77
|
+
input, input:active {
|
|
78
|
+
width: 14em;
|
|
79
|
+
border-width: 0px;
|
|
80
|
+
padding: 20px;
|
|
81
|
+
margin: 4px;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
button {
|
|
85
|
+
margin: 5px;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.copyright__text {
|
|
91
|
+
letter-spacing: 0.1rem;
|
|
92
|
+
color: white;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.wide-container {
|
|
96
|
+
background: #e8e8e8;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
img.bmir-logo {
|
|
100
|
+
float: right;
|
|
101
|
+
margin-bottom: 20px;
|
|
102
|
+
width: 120px;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
a {
|
|
106
|
+
text-decoration: none;
|
|
107
|
+
&:hover {
|
|
108
|
+
text-decoration: underline;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { StaticFooterComponent } from './static-footer.component';
|
|
4
|
+
|
|
5
|
+
describe('StaticFooterComponent', () => {
|
|
6
|
+
let component: StaticFooterComponent;
|
|
7
|
+
let fixture: ComponentFixture<StaticFooterComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
declarations: [ StaticFooterComponent ]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
beforeEach(() => {
|
|
17
|
+
fixture = TestBed.createComponent(StaticFooterComponent);
|
|
18
|
+
component = fixture.componentInstance;
|
|
19
|
+
fixture.detectChanges();
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
it('should create', () => {
|
|
23
|
+
expect(component).toBeTruthy();
|
|
24
|
+
});
|
|
25
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import {Component, OnInit, ViewEncapsulation} from '@angular/core';
|
|
2
|
+
|
|
3
|
+
@Component({
|
|
4
|
+
selector: 'app-static-footer',
|
|
5
|
+
templateUrl: './static-footer.component.html',
|
|
6
|
+
styleUrls: ['./static-footer.component.scss'],
|
|
7
|
+
encapsulation: ViewEncapsulation.None
|
|
8
|
+
})
|
|
9
|
+
export class StaticFooterComponent implements OnInit {
|
|
10
|
+
|
|
11
|
+
constructor() { }
|
|
12
|
+
|
|
13
|
+
ngOnInit(): void {
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<mat-toolbar color="primary" style="height:75px;">
|
|
2
|
+
<span class="cedar-logo"></span>
|
|
3
|
+
<span style="margin-left:5px;">{{'App.Title' | translate}}</span>
|
|
4
|
+
<span class="toolbar-spacer"></span>
|
|
5
|
+
<span class="sample-templates-flex" *ngIf="showSampleTemplateLinks">
|
|
6
|
+
<app-sample-template-select
|
|
7
|
+
[callbackOwnerObject]="callbackOwnerObject"
|
|
8
|
+
></app-sample-template-select>
|
|
9
|
+
</span>
|
|
10
|
+
</mat-toolbar>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { StaticHeaderComponent } from './static-header.component';
|
|
4
|
+
|
|
5
|
+
describe('StaticHeaderComponent', () => {
|
|
6
|
+
let component: StaticHeaderComponent;
|
|
7
|
+
let fixture: ComponentFixture<StaticHeaderComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
declarations: [ StaticHeaderComponent ]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
beforeEach(() => {
|
|
17
|
+
fixture = TestBed.createComponent(StaticHeaderComponent);
|
|
18
|
+
component = fixture.componentInstance;
|
|
19
|
+
fixture.detectChanges();
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
it('should create', () => {
|
|
23
|
+
expect(component).toBeTruthy();
|
|
24
|
+
});
|
|
25
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import {Component, Input, OnInit, ViewEncapsulation} from '@angular/core';
|
|
2
|
+
|
|
3
|
+
@Component({
|
|
4
|
+
selector: 'app-static-header',
|
|
5
|
+
templateUrl: './static-header.component.html',
|
|
6
|
+
styleUrls: ['./static-header.component.scss'],
|
|
7
|
+
encapsulation: ViewEncapsulation.None
|
|
8
|
+
})
|
|
9
|
+
export class StaticHeaderComponent implements OnInit {
|
|
10
|
+
|
|
11
|
+
@Input() callbackOwnerObject: any = null;
|
|
12
|
+
@Input() showSampleTemplateLinks: boolean = null;
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
constructor() {
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
ngOnInit(): void {
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<div class="wrapper" [formGroup]="form">
|
|
2
|
+
<ng-select [formControlName]="'timezone'"
|
|
3
|
+
[items]="timeZones"
|
|
4
|
+
[clearable]="clearable"
|
|
5
|
+
[virtualScroll]="virtualScroll"
|
|
6
|
+
bindLabel="label"
|
|
7
|
+
[placeholder]="customPlaceholderText"
|
|
8
|
+
[notFoundText]="customNotFoundText"
|
|
9
|
+
[appearance]="config.appearance"
|
|
10
|
+
[appendTo]="config.appendTo"
|
|
11
|
+
[clearOnBackspace]="config.clearOnBackspace"
|
|
12
|
+
[closeOnSelect]="config.closeOnSelect"
|
|
13
|
+
[dropdownPosition]="config.dropdownPosition"
|
|
14
|
+
[hideSelected]="config.hideSelected">
|
|
15
|
+
</ng-select>
|
|
16
|
+
</div>
|
|
File without changes
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import {ComponentFixture, TestBed} from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import {TimezonePickerComponent} from './timezone-picker.component';
|
|
4
|
+
|
|
5
|
+
describe('TimezonePickerComponent', () => {
|
|
6
|
+
let component: TimezonePickerComponent;
|
|
7
|
+
let fixture: ComponentFixture<TimezonePickerComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
declarations: [TimezonePickerComponent]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
beforeEach(() => {
|
|
17
|
+
fixture = TestBed.createComponent(TimezonePickerComponent);
|
|
18
|
+
component = fixture.componentInstance;
|
|
19
|
+
fixture.detectChanges();
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
it('should create', () => {
|
|
23
|
+
expect(component).toBeTruthy();
|
|
24
|
+
});
|
|
25
|
+
});
|
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AfterViewInit,
|
|
3
|
+
Component,
|
|
4
|
+
forwardRef,
|
|
5
|
+
Input,
|
|
6
|
+
OnChanges,
|
|
7
|
+
OnDestroy,
|
|
8
|
+
OnInit,
|
|
9
|
+
SimpleChanges,
|
|
10
|
+
ViewEncapsulation
|
|
11
|
+
} from '@angular/core';
|
|
12
|
+
import * as momentZone from 'moment-timezone';
|
|
13
|
+
import {ControlValueAccessor, FormBuilder, FormGroup, NG_VALUE_ACCESSOR} from '@angular/forms';
|
|
14
|
+
import {Subject} from 'rxjs';
|
|
15
|
+
import {takeUntil} from 'rxjs/operators';
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
export class TZone {
|
|
19
|
+
id: string;
|
|
20
|
+
label: string;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
export interface SelectConfig {
|
|
25
|
+
appearance: 'underline' | 'outline';
|
|
26
|
+
appendTo: string;
|
|
27
|
+
clearOnBackspace: boolean;
|
|
28
|
+
closeOnSelect: boolean;
|
|
29
|
+
dropdownPosition: 'auto' | 'bottom' | 'top';
|
|
30
|
+
hideSelected: boolean;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
@Component({
|
|
35
|
+
selector: 'app-timezone-picker',
|
|
36
|
+
templateUrl: './timezone-picker.component.html',
|
|
37
|
+
styleUrls: ['./timezone-picker.component.scss'],
|
|
38
|
+
providers: [
|
|
39
|
+
{
|
|
40
|
+
provide: NG_VALUE_ACCESSOR,
|
|
41
|
+
useExisting: forwardRef(() => TimezonePickerComponent),
|
|
42
|
+
multi: true
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
encapsulation: ViewEncapsulation.None
|
|
46
|
+
})
|
|
47
|
+
export class TimezonePickerComponent implements OnInit, AfterViewInit, OnDestroy, OnChanges, ControlValueAccessor {
|
|
48
|
+
|
|
49
|
+
static readonly AVAILABLE_TIMEZONES = [
|
|
50
|
+
{id: '-12:00', label: '(GMT -12:00) Eniwetok, Kwajalein'},
|
|
51
|
+
{id: '-11:00', label: '(GMT -11:00) Midway Island, Samoa'},
|
|
52
|
+
{id: '-10:00', label: '(GMT -10:00) Hawaii'},
|
|
53
|
+
{id: '-09:30', label: '(GMT -9:30) Taiohae'},
|
|
54
|
+
{id: '-09:00', label: '(GMT -9:00) Alaska'},
|
|
55
|
+
{id: '-08:00', label: '(GMT -8:00) Pacific Time (US & Canada)'},
|
|
56
|
+
{id: '-07:00', label: '(GMT -7:00) Mountain Time (US & Canada)'},
|
|
57
|
+
{id: '-06:00', label: '(GMT -6:00) Central Time (US & Canada), Mexico City'},
|
|
58
|
+
{id: '-05:00', label: '(GMT -5:00) Eastern Time (US & Canada), Bogota, Lima'},
|
|
59
|
+
{id: '-04:30', label: '(GMT -4:30) Caracas'},
|
|
60
|
+
{id: '-04:00', label: '(GMT -4:00) Atlantic Time (Canada), Caracas, La Paz'},
|
|
61
|
+
{id: '-03:30', label: '(GMT -3:30) Newfoundland'},
|
|
62
|
+
{id: '-03:00', label: '(GMT -3:00) Brazil, Buenos Aires, Georgetown'},
|
|
63
|
+
{id: '-02:00', label: '(GMT -2:00) Mid-Atlantic'},
|
|
64
|
+
{id: '-01:00', label: '(GMT -1:00) Azores, Cape Verde Islands'},
|
|
65
|
+
{id: 'Z', label: '(GMT) Western Europe Time, London, Lisbon, Casablanca'},
|
|
66
|
+
{id: '+01:00', label: '(GMT +1:00) Brussels, Copenhagen, Madrid, Paris'},
|
|
67
|
+
{id: '+02:00', label: '(GMT +2:00) Kaliningrad, South Africa'},
|
|
68
|
+
{id: '+03:00', label: '(GMT +3:00) Baghdad, Riyadh, Moscow, St. Petersburg'},
|
|
69
|
+
{id: '+03:30', label: '(GMT +3:30) Tehran'},
|
|
70
|
+
{id: '+04:00', label: '(GMT +4:00) Abu Dhabi, Muscat, Baku, Tbilisi'},
|
|
71
|
+
{id: '+04:30', label: '(GMT +4:30) Kabul'},
|
|
72
|
+
{id: '+05:00', label: '(GMT +5:00) Ekaterinburg, Islamabad, Karachi, Tashkent'},
|
|
73
|
+
{id: '+05:30', label: '(GMT +5:30) Bombay, Calcutta, Madras, New Delhi'},
|
|
74
|
+
{id: '+05:45', label: '(GMT +5:45) Kathmandu, Pokhara'},
|
|
75
|
+
{id: '+06:00', label: '(GMT +6:00) Almaty, Dhaka, Colombo'},
|
|
76
|
+
{id: '+06:30', label: '(GMT +6:30) Yangon, Mandalay'},
|
|
77
|
+
{id: '+07:00', label: '(GMT +7:00) Bangkok, Hanoi, Jakarta'},
|
|
78
|
+
{id: '+08:00', label: '(GMT +8:00) Beijing, Perth, Singapore, Hong Kong'},
|
|
79
|
+
{id: '+08:45', label: '(GMT +8:45) Eucla'},
|
|
80
|
+
{id: '+09:00', label: '(GMT +9:00) Tokyo, Seoul, Osaka, Sapporo, Yakutsk'},
|
|
81
|
+
{id: '+09:30', label: '(GMT +9:30) Adelaide, Darwin'},
|
|
82
|
+
{id: '+10:00', label: '(GMT +10:00) Eastern Australia, Guam, Vladivostok'},
|
|
83
|
+
{id: '+10:30', label: '(GMT +10:30) Lord Howe Island'},
|
|
84
|
+
{id: '+11:00', label: '(GMT +11:00) Magadan, Solomon Islands, New Caledonia'},
|
|
85
|
+
{id: '+11:30', label: '(GMT +11:30) Norfolk Island'},
|
|
86
|
+
{id: '+12:00', label: '(GMT +12:00) Auckland, Wellington, Fiji, Kamchatka'},
|
|
87
|
+
{id: '+12:45', label: '(GMT +12:45) Chatham Islands'},
|
|
88
|
+
{id: '+13:00', label: '(GMT +13:00) Apia, Nukualofa'},
|
|
89
|
+
{id: '+14:00', label: '(GMT +14:00) Line Islands, Tokelau'}
|
|
90
|
+
];
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Setup section.
|
|
95
|
+
*/
|
|
96
|
+
@Input() getUserZone = false;
|
|
97
|
+
@Input() customPlaceholderText = 'Choose...';
|
|
98
|
+
@Input() customNotFoundText = 'No zone found';
|
|
99
|
+
@Input() clearable = false;
|
|
100
|
+
@Input() virtualScroll = true;
|
|
101
|
+
@Input() disabled = false;
|
|
102
|
+
|
|
103
|
+
@Input() set config(conf: SelectConfig) {
|
|
104
|
+
this._config = conf;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
private _config: SelectConfig = {
|
|
108
|
+
hideSelected: false,
|
|
109
|
+
dropdownPosition: 'auto',
|
|
110
|
+
appearance: 'underline',
|
|
111
|
+
clearOnBackspace: true,
|
|
112
|
+
closeOnSelect: true,
|
|
113
|
+
appendTo: null
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
get config(): SelectConfig {
|
|
117
|
+
return this._config;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Internals section.
|
|
122
|
+
*/
|
|
123
|
+
timeZones: Array<any>;
|
|
124
|
+
form: FormGroup;
|
|
125
|
+
private propagateChange: (_: any) => {};
|
|
126
|
+
private destroy$ = new Subject<void>();
|
|
127
|
+
|
|
128
|
+
constructor(private fb: FormBuilder) {
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
static guessedUserZone(): TZone {
|
|
132
|
+
const guessedZone = momentZone.tz.guess(true);
|
|
133
|
+
return TimezonePickerComponent.findZone(guessedZone);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
static findZone(zone: string): TZone {
|
|
137
|
+
const allZones = JSON.parse(JSON.stringify(TimezonePickerComponent.AVAILABLE_TIMEZONES));
|
|
138
|
+
const utc: string = momentZone.tz(zone).format('Z');
|
|
139
|
+
return allZones.find(z => z.id === utc);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
ngOnInit(): void {
|
|
143
|
+
// make a copy of the list to avoid modifying the original timezones array
|
|
144
|
+
this.timeZones = JSON.parse(JSON.stringify(TimezonePickerComponent.AVAILABLE_TIMEZONES));
|
|
145
|
+
this.form = this.fb.group({
|
|
146
|
+
timezone: []
|
|
147
|
+
});
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Value change subscription.
|
|
151
|
+
*/
|
|
152
|
+
this.form.get('timezone').valueChanges
|
|
153
|
+
.pipe(takeUntil(this.destroy$))
|
|
154
|
+
.subscribe(() => this.fireChanges());
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
ngAfterViewInit(): void {
|
|
158
|
+
this.guessUserTimezone();
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
ngOnDestroy(): void {
|
|
162
|
+
this.destroy$.next();
|
|
163
|
+
this.destroy$.complete();
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
private guessUserTimezone(): void {
|
|
167
|
+
setTimeout(() => {
|
|
168
|
+
if (this.getUserZone) {
|
|
169
|
+
const guessedZone = TimezonePickerComponent.guessedUserZone();
|
|
170
|
+
this.form.get('timezone').setValue(guessedZone);
|
|
171
|
+
}
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
// /**
|
|
180
|
+
// * Make TZone object from simple string.
|
|
181
|
+
// * @link ngOnInit
|
|
182
|
+
// */
|
|
183
|
+
// formatZone(zone: string): TZone {
|
|
184
|
+
// const utc: string = momentZone.tz(zone).format('Z');
|
|
185
|
+
// return this.timeZones.find(z => z.id === utc);
|
|
186
|
+
// }
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* Propagate result to parent component.
|
|
195
|
+
*/
|
|
196
|
+
private fireChanges(): void {
|
|
197
|
+
if (this.propagateChange) {
|
|
198
|
+
this.propagateChange(this.form.get('timezone').value);
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* Clear selection.
|
|
204
|
+
*/
|
|
205
|
+
private clearZone(): void {
|
|
206
|
+
this.form.get('timezone').setValue(null);
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* Handle parent imports changes.
|
|
211
|
+
*/
|
|
212
|
+
ngOnChanges(changes: SimpleChanges): void {
|
|
213
|
+
if (changes.getUserZone && changes.getUserZone.currentValue) {
|
|
214
|
+
this.guessUserTimezone();
|
|
215
|
+
}
|
|
216
|
+
if (changes.disabled) {
|
|
217
|
+
setTimeout(() => {
|
|
218
|
+
changes.disabled.currentValue ? this.form.get('timezone').disable() : this.form.get('timezone').enable();
|
|
219
|
+
});
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
registerOnChange(fn: any): void {
|
|
224
|
+
this.propagateChange = fn;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
registerOnTouched(fn: any): void {
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* Handle parent model value changes.
|
|
232
|
+
*/
|
|
233
|
+
writeValue(zone: string | TZone): void {
|
|
234
|
+
if (zone) {
|
|
235
|
+
let _zone: TZone = null;
|
|
236
|
+
|
|
237
|
+
if (typeof zone === 'string' && zone.length > 0) {
|
|
238
|
+
_zone = this.timeZones.find(z => z.id === zone);
|
|
239
|
+
} else if (typeof zone === 'object') {
|
|
240
|
+
_zone = this.timeZones.find(z => z.id === zone.id);
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
if (_zone) {
|
|
244
|
+
this.form.get('timezone').setValue(_zone);
|
|
245
|
+
}
|
|
246
|
+
} else {
|
|
247
|
+
this.clearZone();
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
}
|