@mediafly/js-ui 51.5.8 → 51.6.0-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/.node-version +1 -1
- package/.release-it.json +13 -13
- package/.semaphore/promotion-deploy-docs.yml +35 -35
- package/.semaphore/scripts/notify_jira.sh +115 -115
- package/.semaphore/semaphore.yml +91 -91
- package/.stylelintignore +5 -5
- package/CHANGELOG.md +536 -536
- package/README.md +61 -61
- package/archive/old-changelog.md +1645 -1645
- package/browserslist.config.js +27 -27
- package/cypress.config.ts +26 -26
- package/lib/actionable-empty-state/actionable-empty-state.d.ts +10 -10
- package/lib/actionable-empty-state/actionable-empty-state.html +15 -15
- package/lib/actionable-empty-state/actionable-empty-state.js +53 -53
- package/lib/actionable-empty-state/index.d.ts +1 -1
- package/lib/actionable-empty-state/index.js +3 -3
- package/lib/auto-complete/auto-complete-match-renderer.component.d.ts +62 -62
- package/lib/auto-complete/auto-complete-match-renderer.component.html +20 -20
- package/lib/auto-complete/auto-complete-match-renderer.component.js +244 -244
- package/lib/auto-complete/auto-complete.component.d.ts +29 -29
- package/lib/auto-complete/auto-complete.component.html +43 -43
- package/lib/auto-complete/auto-complete.component.js +102 -102
- package/lib/auto-complete/index.d.ts +2 -2
- package/lib/auto-complete/index.js +4 -4
- package/lib/auto-focus/auto-focus.d.ts +1 -1
- package/lib/auto-focus/auto-focus.js +16 -16
- package/lib/auto-focus/auto-focus.service.d.ts +7 -7
- package/lib/auto-focus/auto-focus.service.js +40 -40
- package/lib/auto-focus/index.d.ts +2 -2
- package/lib/auto-focus/index.js +4 -4
- package/lib/badge/badge.d.ts +1 -1
- package/lib/badge/badge.html +3 -3
- package/lib/badge/badge.js +17 -17
- package/lib/badge/index.d.ts +1 -1
- package/lib/badge/index.js +3 -3
- package/lib/checkbox/checkbox.d.ts +1 -1
- package/lib/checkbox/checkbox.html +23 -23
- package/lib/checkbox/checkbox.js +30 -30
- package/lib/checkbox/index.d.ts +1 -1
- package/lib/checkbox/index.js +3 -3
- package/lib/collapse/collapse.d.ts +1 -1
- package/lib/collapse/collapse.js +73 -73
- package/lib/collapse/index.d.ts +1 -1
- package/lib/collapse/index.js +3 -3
- package/lib/color-input/color-input.d.ts +1 -1
- package/lib/color-input/color-input.html +32 -32
- package/lib/color-input/color-input.js +83 -83
- package/lib/color-input/index.d.ts +2 -2
- package/lib/color-input/index.js +4 -4
- package/lib/color-input/spectrum-color-picker.d.ts +1 -1
- package/lib/color-input/spectrum-color-picker.js +60 -60
- package/lib/color-utils/color-utils.service.d.ts +9 -9
- package/lib/color-utils/color-utils.service.js +46 -46
- package/lib/color-utils/index.d.ts +1 -1
- package/lib/color-utils/index.js +3 -3
- package/lib/constants/constants.d.ts +1 -1
- package/lib/constants/constants.js +12 -12
- package/lib/constants/index.d.ts +1 -1
- package/lib/constants/index.js +3 -3
- package/lib/date-input/date-input.d.ts +1 -1
- package/lib/date-input/date-input.html +31 -31
- package/lib/date-input/date-input.js +125 -125
- package/lib/date-input/index.d.ts +2 -2
- package/lib/date-input/index.js +4 -4
- package/lib/date-input/validate-date.d.ts +1 -1
- package/lib/date-input/validate-date.js +34 -34
- package/lib/date-time-zone-city-picker/cityPopulation.d.ts +1 -0
- package/lib/date-time-zone-city-picker/cityPopulation.js +322 -0
- package/lib/date-time-zone-city-picker/cityPopulation.js.map +1 -0
- package/lib/date-time-zone-city-picker/date-time-zone-city-picker.d.ts +23 -0
- package/lib/date-time-zone-city-picker/date-time-zone-city-picker.html +31 -0
- package/lib/date-time-zone-city-picker/date-time-zone-city-picker.js +139 -0
- package/lib/date-time-zone-city-picker/date-time-zone-city-picker.js.map +1 -0
- package/lib/date-time-zone-city-picker/index.d.ts +2 -0
- package/lib/date-time-zone-city-picker/index.js +5 -0
- package/lib/date-time-zone-city-picker/index.js.map +1 -0
- package/lib/date-time-zone-city-picker/time-zone-city-picker.d.ts +17 -0
- package/lib/date-time-zone-city-picker/time-zone-city-picker.html +21 -0
- package/lib/date-time-zone-city-picker/time-zone-city-picker.js +55 -0
- package/lib/date-time-zone-city-picker/time-zone-city-picker.js.map +1 -0
- package/lib/date-time-zone-city-picker/time-zone-city.service.d.ts +29 -0
- package/lib/date-time-zone-city-picker/time-zone-city.service.js +162 -0
- package/lib/date-time-zone-city-picker/time-zone-city.service.js.map +1 -0
- package/lib/date-time-zone-picker/date-time-zone-factory.d.ts +1 -1
- package/lib/date-time-zone-picker/date-time-zone-factory.js +123 -123
- package/lib/date-time-zone-picker/date-time-zone-picker.d.ts +1 -1
- package/lib/date-time-zone-picker/date-time-zone-picker.html +36 -36
- package/lib/date-time-zone-picker/date-time-zone-picker.js +186 -186
- package/lib/date-time-zone-picker/datepicker.d.ts +1 -1
- package/lib/date-time-zone-picker/datepicker.html +30 -30
- package/lib/date-time-zone-picker/datepicker.js +204 -204
- package/lib/date-time-zone-picker/index.d.ts +6 -6
- package/lib/date-time-zone-picker/index.js +8 -8
- package/lib/date-time-zone-picker/time-format-filter.d.ts +1 -1
- package/lib/date-time-zone-picker/time-format-filter.js +46 -46
- package/lib/date-time-zone-picker/time-zone-picker.d.ts +1 -1
- package/lib/date-time-zone-picker/time-zone-picker.html +21 -21
- package/lib/date-time-zone-picker/time-zone-picker.js +44 -44
- package/lib/date-time-zone-picker/timepicker.d.ts +1 -1
- package/lib/date-time-zone-picker/timepicker.html +31 -31
- package/lib/date-time-zone-picker/timepicker.js +99 -99
- package/lib/decorators/index.d.ts +9 -9
- package/lib/decorators/index.js +63 -63
- package/lib/dropdown/dropdown.d.ts +39 -39
- package/lib/dropdown/dropdown.html +21 -21
- package/lib/dropdown/dropdown.js +120 -120
- package/lib/dropdown/index.d.ts +1 -1
- package/lib/dropdown/index.js +3 -3
- package/lib/dropdown-menu/dropdown-menu-action.component.d.ts +22 -22
- package/lib/dropdown-menu/dropdown-menu-action.component.html +27 -27
- package/lib/dropdown-menu/dropdown-menu-action.component.js +89 -89
- package/lib/dropdown-menu/dropdown-menu-contents.d.ts +16 -16
- package/lib/dropdown-menu/dropdown-menu-contents.html +3 -3
- package/lib/dropdown-menu/dropdown-menu-contents.js +115 -115
- package/lib/dropdown-menu/dropdown-menu-header.d.ts +1 -1
- package/lib/dropdown-menu/dropdown-menu-header.html +1 -1
- package/lib/dropdown-menu/dropdown-menu-header.js +15 -15
- package/lib/dropdown-menu/dropdown-menu-item.d.ts +1 -1
- package/lib/dropdown-menu/dropdown-menu-item.html +1 -1
- package/lib/dropdown-menu/dropdown-menu-item.js +15 -15
- package/lib/dropdown-menu/dropdown-menu-note.d.ts +1 -1
- package/lib/dropdown-menu/dropdown-menu-note.html +1 -1
- package/lib/dropdown-menu/dropdown-menu-note.js +15 -15
- package/lib/dropdown-menu/dropdown-menu-separator.d.ts +1 -1
- package/lib/dropdown-menu/dropdown-menu-separator.html +1 -1
- package/lib/dropdown-menu/dropdown-menu-separator.js +14 -14
- package/lib/dropdown-menu/dropdown-menu-toggle.d.ts +1 -1
- package/lib/dropdown-menu/dropdown-menu-toggle.js +67 -67
- package/lib/dropdown-menu/dropdown-menu.d.ts +22 -22
- package/lib/dropdown-menu/dropdown-menu.html +1 -1
- package/lib/dropdown-menu/dropdown-menu.js +108 -108
- package/lib/dropdown-menu/index.d.ts +8 -8
- package/lib/dropdown-menu/index.js +10 -10
- package/lib/feedback/clipboard.service.d.ts +12 -12
- package/lib/feedback/clipboard.service.js +51 -51
- package/lib/feedback/feedback.component.d.ts +31 -31
- package/lib/feedback/feedback.component.html +32 -32
- package/lib/feedback/feedback.component.js +102 -102
- package/lib/feedback/feedback.service.d.ts +35 -35
- package/lib/feedback/feedback.service.js +67 -67
- package/lib/feedback/index.d.ts +3 -3
- package/lib/feedback/index.js +5 -5
- package/lib/first-time-motivator/first-time-motivator-transclude.html +1 -1
- package/lib/first-time-motivator/first-time-motivator.d.ts +1 -1
- package/lib/first-time-motivator/first-time-motivator.html +29 -29
- package/lib/first-time-motivator/first-time-motivator.js +282 -282
- package/lib/first-time-motivator/ftm-target-element.d.ts +1 -1
- package/lib/first-time-motivator/ftm-target-element.js +70 -70
- package/lib/first-time-motivator/index.d.ts +2 -2
- package/lib/first-time-motivator/index.js +4 -4
- package/lib/font-selector/font-selector.d.ts +62 -62
- package/lib/font-selector/font-selector.html +67 -67
- package/lib/font-selector/font-selector.js +261 -261
- package/lib/font-selector/google-webfonts-api.service.d.ts +12 -12
- package/lib/font-selector/google-webfonts-api.service.js +64 -64
- package/lib/font-selector/index.d.ts +3 -3
- package/lib/font-selector/index.js +5 -5
- package/lib/font-selector/webfont-loader.service.d.ts +4 -4
- package/lib/font-selector/webfont-loader.service.js +59 -59
- package/lib/font-weight-selector/font-weight-selector.d.ts +32 -32
- package/lib/font-weight-selector/font-weight-selector.html +29 -29
- package/lib/font-weight-selector/font-weight-selector.js +164 -164
- package/lib/font-weight-selector/index.d.ts +1 -1
- package/lib/font-weight-selector/index.js +3 -3
- package/lib/footer/footer.d.ts +1 -1
- package/lib/footer/footer.html +6 -6
- package/lib/footer/footer.js +24 -24
- package/lib/footer/index.d.ts +1 -1
- package/lib/footer/index.js +3 -3
- package/lib/form-validation-utils/form-validation-utils.d.ts +5 -5
- package/lib/form-validation-utils/form-validation-utils.js +13 -13
- package/lib/form-validation-utils/index.d.ts +1 -1
- package/lib/form-validation-utils/index.js +3 -3
- package/lib/full-screen/full-screen.service.d.ts +13 -13
- package/lib/full-screen/full-screen.service.js +68 -68
- package/lib/full-screen/index.d.ts +1 -1
- package/lib/full-screen/index.js +3 -3
- package/lib/gesture-handler/gesture-handler.d.ts +1 -1
- package/lib/gesture-handler/gesture-handler.js +97 -97
- package/lib/gesture-handler/index.d.ts +1 -1
- package/lib/gesture-handler/index.js +3 -3
- package/lib/hierarchy/hierarchy.d.ts +1 -1
- package/lib/hierarchy/hierarchy.html +38 -38
- package/lib/hierarchy/hierarchy.js +27 -27
- package/lib/hierarchy/index.d.ts +1 -1
- package/lib/hierarchy/index.js +3 -3
- package/lib/hover-tooltip/hover-tooltip.d.ts +1 -1
- package/lib/hover-tooltip/hover-tooltip.js +116 -116
- package/lib/hover-tooltip/index.d.ts +1 -1
- package/lib/hover-tooltip/index.js +3 -3
- package/lib/icon/icon.d.ts +1 -1
- package/lib/icon/icon.html +1 -1
- package/lib/icon/icon.js +30 -30
- package/lib/icon/icon.service.d.ts +4 -4
- package/lib/icon/icon.service.js +77 -77
- package/lib/icon/index.d.ts +2 -2
- package/lib/icon/index.js +4 -4
- package/lib/index.d.ts +49 -48
- package/lib/index.js +51 -50
- package/lib/index.js.map +1 -1
- package/lib/inline-text-input/index.d.ts +1 -1
- package/lib/inline-text-input/index.js +3 -3
- package/lib/inline-text-input/inline-text-input.component.d.ts +3 -3
- package/lib/inline-text-input/inline-text-input.component.html +13 -13
- package/lib/inline-text-input/inline-text-input.component.js +25 -25
- package/lib/jsui.module.css +494 -494
- package/lib/loading-indicator/index.d.ts +1 -1
- package/lib/loading-indicator/index.js +3 -3
- package/lib/loading-indicator/loading-indicator.component.d.ts +3 -3
- package/lib/loading-indicator/loading-indicator.component.html +12 -12
- package/lib/loading-indicator/loading-indicator.component.js +25 -25
- package/lib/localization/index.strings.json +59 -59
- package/lib/login-textinput/index.d.ts +1 -1
- package/lib/login-textinput/index.js +3 -3
- package/lib/login-textinput/login-textinput.d.ts +1 -1
- package/lib/login-textinput/login-textinput.html +14 -14
- package/lib/login-textinput/login-textinput.js +28 -28
- package/lib/metadata-form/index.d.ts +10 -10
- package/lib/metadata-form/index.js +13 -13
- package/lib/metadata-form/metadata-form.component.d.ts +97 -97
- package/lib/metadata-form/metadata-form.component.js +294 -294
- package/lib/metadata-form/metadata-form.html +551 -551
- package/lib/metadata-form/template-cache.run.d.ts +1 -1
- package/lib/metadata-form/template-cache.run.js +10 -10
- package/lib/metadata-form/typeahead-match.template.html +3 -3
- package/lib/modal/index.d.ts +2 -2
- package/lib/modal/index.js +4 -4
- package/lib/modal/modal.component.d.ts +44 -44
- package/lib/modal/modal.component.html +41 -41
- package/lib/modal/modal.component.js +193 -193
- package/lib/modal/modal.service.d.ts +55 -55
- package/lib/modal/modal.service.js +157 -157
- package/lib/on-media-error/index.d.ts +1 -1
- package/lib/on-media-error/index.js +3 -3
- package/lib/on-media-error/on-media-error.d.ts +1 -1
- package/lib/on-media-error/on-media-error.js +21 -21
- package/lib/page-thumbnail/index.d.ts +1 -1
- package/lib/page-thumbnail/index.js +3 -3
- package/lib/page-thumbnail/page-thumbnail.d.ts +44 -44
- package/lib/page-thumbnail/page-thumbnail.js +107 -107
- package/lib/paging/index.d.ts +4 -4
- package/lib/paging/index.js +6 -6
- package/lib/paging/pager.d.ts +1 -1
- package/lib/paging/pager.html +24 -24
- package/lib/paging/pager.js +52 -52
- package/lib/paging/paging-factory.d.ts +1 -1
- package/lib/paging/paging-factory.js +29 -29
- package/lib/paging/paging-range-bottom.d.ts +1 -1
- package/lib/paging/paging-range-bottom.html +8 -8
- package/lib/paging/paging-range-bottom.js +42 -42
- package/lib/paging/paging-range-top.d.ts +1 -1
- package/lib/paging/paging-range-top.html +34 -34
- package/lib/paging/paging-range-top.js +32 -32
- package/lib/progress-bar/index.d.ts +1 -1
- package/lib/progress-bar/index.js +3 -3
- package/lib/progress-bar/progress-bar.component.d.ts +9 -9
- package/lib/progress-bar/progress-bar.component.js +40 -40
- package/lib/progress-bar/progress-bar.html +6 -6
- package/lib/progress-circle/index.d.ts +1 -1
- package/lib/progress-circle/index.js +3 -3
- package/lib/progress-circle/progress-circle.d.ts +10 -10
- package/lib/progress-circle/progress-circle.html +15 -15
- package/lib/progress-circle/progress-circle.js +45 -45
- package/lib/response-handlers/api-success-handlers.d.ts +4 -4
- package/lib/response-handlers/api-success-handlers.js +21 -21
- package/lib/response-handlers/error-response.service.d.ts +13 -13
- package/lib/response-handlers/error-response.service.js +50 -50
- package/lib/response-handlers/feedback-error-handler.d.ts +12 -12
- package/lib/response-handlers/feedback-error-handler.js +43 -43
- package/lib/response-handlers/index.d.ts +4 -4
- package/lib/response-handlers/index.js +6 -6
- package/lib/response-handlers/log-error-handler.d.ts +9 -9
- package/lib/response-handlers/log-error-handler.js +29 -29
- package/lib/rich-text/index.d.ts +2 -2
- package/lib/rich-text/index.js +4 -4
- package/lib/rich-text/rich-text.component.d.ts +120 -120
- package/lib/rich-text/rich-text.component.html +80 -80
- package/lib/rich-text/rich-text.component.js +632 -632
- package/lib/rich-text/rich-text.service.d.ts +40 -40
- package/lib/rich-text/rich-text.service.js +294 -294
- package/lib/site-header/default-background-img.b64.d.ts +2 -2
- package/lib/site-header/default-background-img.b64.js +1 -1
- package/lib/site-header/index.d.ts +2 -2
- package/lib/site-header/index.js +4 -4
- package/lib/site-header/site-header-navbar-item.component.d.ts +10 -10
- package/lib/site-header/site-header-navbar-item.component.html +12 -12
- package/lib/site-header/site-header-navbar-item.component.js +54 -54
- package/lib/site-header/site-header.component.d.ts +12 -12
- package/lib/site-header/site-header.component.html +28 -28
- package/lib/site-header/site-header.component.js +64 -64
- package/lib/style-typings/styles.d.ts +30 -30
- package/lib/style-typings/styles.js +2 -2
- package/lib/table-blank-slate/index.d.ts +1 -1
- package/lib/table-blank-slate/index.js +3 -3
- package/lib/table-blank-slate/table-blank-slate.d.ts +1 -1
- package/lib/table-blank-slate/table-blank-slate.html +16 -16
- package/lib/table-blank-slate/table-blank-slate.js +20 -20
- package/lib/tabs/index.d.ts +4 -4
- package/lib/tabs/index.js +6 -6
- package/lib/tabs/tab-group.d.ts +21 -21
- package/lib/tabs/tab-group.html +21 -21
- package/lib/tabs/tab-group.js +151 -151
- package/lib/tabs/tab-html-title-append.d.ts +1 -1
- package/lib/tabs/tab-html-title-append.js +17 -17
- package/lib/tabs/tab-html-title.d.ts +10 -10
- package/lib/tabs/tab-html-title.js +45 -45
- package/lib/tabs/tab.d.ts +18 -18
- package/lib/tabs/tab.html +2 -2
- package/lib/tabs/tab.js +70 -70
- package/lib/tag-input/index.d.ts +1 -1
- package/lib/tag-input/index.js +3 -3
- package/lib/tag-input/tag-input.component.d.ts +37 -37
- package/lib/tag-input/tag-input.component.js +143 -143
- package/lib/tag-input/tag-input.html +66 -66
- package/lib/textarea/index.d.ts +1 -1
- package/lib/textarea/index.js +3 -3
- package/lib/textarea/textarea.d.ts +1 -1
- package/lib/textarea/textarea.html +16 -16
- package/lib/textarea/textarea.js +30 -30
- package/lib/textinput/index.d.ts +1 -1
- package/lib/textinput/index.js +3 -3
- package/lib/textinput/textinput.d.ts +1 -1
- package/lib/textinput/textinput.html +33 -33
- package/lib/textinput/textinput.js +51 -51
- package/lib/theme/index.d.ts +1 -1
- package/lib/theme/index.js +3 -3
- package/lib/theme/theme.service.d.ts +11 -11
- package/lib/theme/theme.service.js +69 -69
- package/lib/theme/theme.typings.d.ts +1 -1
- package/lib/theme/theme.typings.js +2 -2
- package/lib/time-input/index.d.ts +2 -2
- package/lib/time-input/index.js +4 -4
- package/lib/time-input/time-input.d.ts +1 -1
- package/lib/time-input/time-input.html +47 -47
- package/lib/time-input/time-input.js +136 -136
- package/lib/time-input/validate-time.d.ts +1 -1
- package/lib/time-input/validate-time.js +31 -31
- package/lib/translate/index.d.ts +1 -1
- package/lib/translate/index.js +3 -3
- package/lib/translate/translate-factory.d.ts +3 -3
- package/lib/translate/translate-factory.js +37 -37
- package/lib/tree/index.d.ts +3 -3
- package/lib/tree/index.js +5 -5
- package/lib/tree/recursion-factory.d.ts +1 -1
- package/lib/tree/recursion-factory.js +45 -45
- package/lib/tree/tree-node.d.ts +1 -1
- package/lib/tree/tree-node.html +56 -56
- package/lib/tree/tree-node.js +29 -29
- package/lib/tree/tree.d.ts +1 -1
- package/lib/tree/tree.html +27 -27
- package/lib/tree/tree.js +89 -89
- package/lib/tsconfig.deploy.tsbuildinfo +351 -282
- package/lib/type-string/index.d.ts +1 -1
- package/lib/type-string/index.js +3 -3
- package/lib/type-string/type-string.component.d.ts +11 -11
- package/lib/type-string/type-string.component.html +1 -1
- package/lib/type-string/type-string.component.js +76 -76
- package/lib/url-modification/index.d.ts +1 -1
- package/lib/url-modification/index.js +3 -3
- package/lib/url-modification/url-modification.service.d.ts +3 -3
- package/lib/url-modification/url-modification.service.js +38 -38
- package/package.json +117 -116
- package/src/components/actionable-empty-state/actionable-empty-state.html +15 -15
- package/src/components/actionable-empty-state/actionable-empty-state.less +19 -19
- package/src/components/actionable-empty-state/actionable-empty-state.ts +36 -36
- package/src/components/actionable-empty-state/index.ts +1 -1
- package/src/components/auto-complete/auto-complete-match-renderer.component.html +20 -20
- package/src/components/auto-complete/auto-complete-match-renderer.component.ts +241 -241
- package/src/components/auto-complete/auto-complete.component.html +43 -43
- package/src/components/auto-complete/auto-complete.component.less +66 -66
- package/src/components/auto-complete/auto-complete.component.ts +70 -70
- package/src/components/auto-complete/index.ts +2 -2
- package/src/components/auto-focus/auto-focus.service.ts +24 -24
- package/src/components/auto-focus/auto-focus.ts +13 -13
- package/src/components/auto-focus/index.ts +2 -2
- package/src/components/badge/badge.html +3 -3
- package/src/components/badge/badge.less +47 -47
- package/src/components/badge/badge.ts +14 -14
- package/src/components/badge/index.ts +1 -1
- package/src/components/checkbox/checkbox.html +23 -23
- package/src/components/checkbox/checkbox.js +29 -29
- package/src/components/checkbox/index.ts +1 -1
- package/src/components/collapse/collapse.js +86 -86
- package/src/components/collapse/collapse.less +17 -17
- package/src/components/collapse/index.ts +1 -1
- package/src/components/color-input/color-input.html +32 -32
- package/src/components/color-input/color-input.less +623 -623
- package/src/components/color-input/color-input.ts +95 -95
- package/src/components/color-input/index.ts +2 -2
- package/src/components/color-input/spectrum-color-picker.js +59 -59
- package/src/components/color-utils/color-utils.service.ts +34 -34
- package/src/components/color-utils/index.ts +1 -1
- package/src/components/constants/constants.js +8 -8
- package/src/components/constants/index.ts +1 -1
- package/src/components/date-input/date-input.html +31 -31
- package/src/components/date-input/date-input.js +135 -135
- package/src/components/date-input/date-input.less +20 -20
- package/src/components/date-input/index.ts +2 -2
- package/src/components/date-input/validate-date.js +36 -36
- package/src/components/date-time-zone-city-picker/cityPopulation.ts +318 -0
- package/src/components/date-time-zone-city-picker/date-time-zone-city-picker.html +31 -0
- package/src/components/date-time-zone-city-picker/date-time-zone-city-picker.less +28 -0
- package/src/components/date-time-zone-city-picker/date-time-zone-city-picker.ts +134 -0
- package/src/components/date-time-zone-city-picker/index.ts +2 -0
- package/src/components/date-time-zone-city-picker/time-zone-city-picker.html +21 -0
- package/src/components/date-time-zone-city-picker/time-zone-city-picker.ts +43 -0
- package/src/components/date-time-zone-city-picker/time-zone-city.service.ts +220 -0
- package/src/components/date-time-zone-picker/date-time-zone-factory.ts +135 -135
- package/src/components/date-time-zone-picker/date-time-zone-picker.html +36 -36
- package/src/components/date-time-zone-picker/date-time-zone-picker.less +55 -55
- package/src/components/date-time-zone-picker/date-time-zone-picker.ts +218 -218
- package/src/components/date-time-zone-picker/datepicker.html +30 -30
- package/src/components/date-time-zone-picker/datepicker.ts +230 -230
- package/src/components/date-time-zone-picker/index.ts +6 -6
- package/src/components/date-time-zone-picker/time-format-filter.ts +60 -60
- package/src/components/date-time-zone-picker/time-zone-picker.html +21 -21
- package/src/components/date-time-zone-picker/time-zone-picker.js +45 -45
- package/src/components/date-time-zone-picker/timepicker.html +31 -31
- package/src/components/date-time-zone-picker/timepicker.js +114 -114
- package/src/components/decorators/index.ts +82 -82
- package/src/components/dropdown/dropdown.html +21 -21
- package/src/components/dropdown/dropdown.less +67 -67
- package/src/components/dropdown/dropdown.ts +97 -97
- package/src/components/dropdown/index.ts +1 -1
- package/src/components/dropdown-menu/dropdown-menu-action.component.html +27 -27
- package/src/components/dropdown-menu/dropdown-menu-action.component.ts +71 -71
- package/src/components/dropdown-menu/dropdown-menu-contents.html +3 -3
- package/src/components/dropdown-menu/dropdown-menu-contents.ts +120 -120
- package/src/components/dropdown-menu/dropdown-menu-header.html +1 -1
- package/src/components/dropdown-menu/dropdown-menu-header.js +12 -12
- package/src/components/dropdown-menu/dropdown-menu-item.html +1 -1
- package/src/components/dropdown-menu/dropdown-menu-item.js +12 -12
- package/src/components/dropdown-menu/dropdown-menu-note.html +1 -1
- package/src/components/dropdown-menu/dropdown-menu-note.js +12 -12
- package/src/components/dropdown-menu/dropdown-menu-separator.html +1 -1
- package/src/components/dropdown-menu/dropdown-menu-separator.js +11 -11
- package/src/components/dropdown-menu/dropdown-menu-toggle.js +82 -82
- package/src/components/dropdown-menu/dropdown-menu.html +1 -1
- package/src/components/dropdown-menu/dropdown-menu.less +141 -141
- package/src/components/dropdown-menu/dropdown-menu.ts +85 -85
- package/src/components/dropdown-menu/index.ts +8 -8
- package/src/components/feedback/clipboard.service.ts +29 -29
- package/src/components/feedback/feedback.component.html +32 -32
- package/src/components/feedback/feedback.component.ts +110 -110
- package/src/components/feedback/feedback.less +137 -137
- package/src/components/feedback/feedback.service.ts +51 -51
- package/src/components/feedback/index.ts +3 -3
- package/src/components/first-time-motivator/first-time-motivator-transclude.html +1 -1
- package/src/components/first-time-motivator/first-time-motivator.html +29 -29
- package/src/components/first-time-motivator/first-time-motivator.less +151 -151
- package/src/components/first-time-motivator/first-time-motivator.ts +337 -337
- package/src/components/first-time-motivator/ftm-target-element.ts +98 -98
- package/src/components/first-time-motivator/index.ts +2 -2
- package/src/components/font-selector/font-selector.html +67 -67
- package/src/components/font-selector/font-selector.less +122 -122
- package/src/components/font-selector/font-selector.ts +274 -274
- package/src/components/font-selector/google-webfonts-api.backend.ts +5 -5
- package/src/components/font-selector/google-webfonts-api.service.ts +46 -46
- package/src/components/font-selector/index.ts +3 -3
- package/src/components/font-selector/webfont-loader.service.ts +54 -54
- package/src/components/font-weight-selector/font-weight-selector.html +29 -29
- package/src/components/font-weight-selector/font-weight-selector.less +52 -52
- package/src/components/font-weight-selector/font-weight-selector.ts +151 -151
- package/src/components/font-weight-selector/index.ts +1 -1
- package/src/components/footer/footer.html +6 -6
- package/src/components/footer/footer.js +21 -21
- package/src/components/footer/footer.less +9 -9
- package/src/components/footer/index.ts +1 -1
- package/src/components/form-validation-utils/form-validation-utils.ts +11 -11
- package/src/components/form-validation-utils/index.ts +1 -1
- package/src/components/full-screen/full-screen.service.ts +62 -62
- package/src/components/full-screen/index.ts +1 -1
- package/src/components/gesture-handler/gesture-handler.ts +116 -116
- package/src/components/gesture-handler/index.ts +1 -1
- package/src/components/gesture-handler/test/gesture-handler.spec.js +26 -26
- package/src/components/hierarchy/hierarchy.html +38 -38
- package/src/components/hierarchy/hierarchy.js +24 -24
- package/src/components/hierarchy/hierarchy.less +42 -42
- package/src/components/hierarchy/index.ts +1 -1
- package/src/components/hover-tooltip/hover-tooltip.less +85 -85
- package/src/components/hover-tooltip/hover-tooltip.ts +145 -145
- package/src/components/hover-tooltip/index.ts +1 -1
- package/src/components/icon/icon.html +1 -1
- package/src/components/icon/icon.service.ts +70 -70
- package/src/components/icon/icon.ts +34 -34
- package/src/components/icon/index.ts +2 -2
- package/src/components/index.less +36 -35
- package/src/components/index.ts +49 -48
- package/src/components/inline-text-input/index.ts +1 -1
- package/src/components/inline-text-input/inline-text-input.component.html +13 -13
- package/src/components/inline-text-input/inline-text-input.component.ts +10 -10
- package/src/components/inline-text-input/inline-text-input.less +17 -17
- package/src/components/legacy/mediafly-bootstrap.css +2890 -2890
- package/src/components/legacy/mediafly-utils.js +15 -15
- package/src/components/legacy/mediafly.css +2323 -2323
- package/src/components/legacy/oocss.css +77 -77
- package/src/components/less/fonts/font-awesome.less +7146 -7146
- package/src/components/less/fonts/index.less +4 -4
- package/src/components/less/fonts/mfly-webfont.less +93 -93
- package/src/components/less/fonts/poppins.less +37 -37
- package/src/components/less/fonts/roboto.less +38 -38
- package/src/components/less/mixins/vendor-prefixes.less +287 -287
- package/src/components/less/objects/buttons.less +277 -277
- package/src/components/less/objects/buttons.module.css +198 -198
- package/src/components/less/objects/containers.less +244 -244
- package/src/components/less/objects/containers.module.css +18 -18
- package/src/components/less/objects/forms.less +203 -203
- package/src/components/less/objects/grid.less +985 -985
- package/src/components/less/objects/headers.less +81 -81
- package/src/components/less/objects/headers.module.css +85 -85
- package/src/components/less/objects/index.less +11 -11
- package/src/components/less/objects/labels.less +26 -26
- package/src/components/less/objects/links.less +58 -58
- package/src/components/less/objects/links.module.css +57 -57
- package/src/components/less/objects/modals.less +40 -40
- package/src/components/less/objects/radios-checkboxes.less +234 -234
- package/src/components/less/objects/tables.less +237 -237
- package/src/components/less/objects/tabs.less +28 -28
- package/src/components/less/standalone.less +8 -8
- package/src/components/less/utilities/accessibility.less +39 -39
- package/src/components/less/utilities/animations.less +41 -41
- package/src/components/less/utilities/grid-utilities.less +115 -115
- package/src/components/less/utilities/index.less +6 -6
- package/src/components/less/utilities/normalize.less +344 -344
- package/src/components/less/utilities/reset.less +52 -52
- package/src/components/less/utilities/utilities.less +173 -173
- package/src/components/less/variables/colors.less +70 -70
- package/src/components/less/variables/effects.less +17 -17
- package/src/components/less/variables/forms.less +16 -16
- package/src/components/less/variables/index.less +6 -6
- package/src/components/less/variables/pages.less +25 -25
- package/src/components/less/variables/typography.less +19 -19
- package/src/components/less/variables/z-index.less +24 -24
- package/src/components/less/variables.module.css +132 -132
- package/src/components/less/vendor/index.less +2 -2
- package/src/components/less/vendor/pikaday.css +225 -225
- package/src/components/less/vendor/quill.snow.css +10 -10
- package/src/components/loading-indicator/index.ts +1 -1
- package/src/components/loading-indicator/loading-indicator.component.html +12 -12
- package/src/components/loading-indicator/loading-indicator.component.ts +10 -10
- package/src/components/loading-indicator/loading-indicator.less +62 -62
- package/src/components/localization/index.strings.json +59 -59
- package/src/components/login-textinput/index.ts +1 -1
- package/src/components/login-textinput/login-textinput.html +14 -14
- package/src/components/login-textinput/login-textinput.js +26 -26
- package/src/components/metadata-form/index.ts +12 -12
- package/src/components/metadata-form/metadata-form.component.ts +360 -360
- package/src/components/metadata-form/metadata-form.html +551 -551
- package/src/components/metadata-form/metadata-form.less +153 -153
- package/src/components/metadata-form/template-cache.run.ts +8 -8
- package/src/components/metadata-form/typeahead-match.template.html +3 -3
- package/src/components/modal/index.ts +2 -2
- package/src/components/modal/modal.component.html +41 -41
- package/src/components/modal/modal.component.less +136 -136
- package/src/components/modal/modal.component.module.css +126 -126
- package/src/components/modal/modal.component.ts +196 -196
- package/src/components/modal/modal.service.ts +169 -169
- package/src/components/on-media-error/index.ts +1 -1
- package/src/components/on-media-error/on-media-error.js +23 -23
- package/src/components/page-thumbnail/index.ts +1 -1
- package/src/components/page-thumbnail/page-thumbnail.ts +159 -159
- package/src/components/paging/index.ts +4 -4
- package/src/components/paging/pager.html +24 -24
- package/src/components/paging/pager.js +63 -63
- package/src/components/paging/paging-factory.js +36 -36
- package/src/components/paging/paging-range-bottom.html +8 -8
- package/src/components/paging/paging-range-bottom.js +51 -51
- package/src/components/paging/paging-range-top.html +34 -34
- package/src/components/paging/paging-range-top.js +36 -36
- package/src/components/paging/paging.less +36 -36
- package/src/components/progress-bar/index.ts +1 -1
- package/src/components/progress-bar/progress-bar.component.ts +28 -28
- package/src/components/progress-bar/progress-bar.html +6 -6
- package/src/components/progress-bar/progress-bar.less +24 -24
- package/src/components/progress-circle/index.ts +1 -1
- package/src/components/progress-circle/progress-circle.html +15 -15
- package/src/components/progress-circle/progress-circle.less +146 -146
- package/src/components/progress-circle/progress-circle.ts +30 -30
- package/src/components/response-handlers/api-success-handlers.ts +14 -14
- package/src/components/response-handlers/error-response.service.ts +40 -40
- package/src/components/response-handlers/feedback-error-handler.ts +25 -25
- package/src/components/response-handlers/index.ts +4 -4
- package/src/components/response-handlers/log-error-handler.ts +15 -15
- package/src/components/rich-text/index.ts +2 -2
- package/src/components/rich-text/rich-text.component.html +80 -80
- package/src/components/rich-text/rich-text.component.less +165 -165
- package/src/components/rich-text/rich-text.component.ts +710 -710
- package/src/components/rich-text/rich-text.service.ts +333 -333
- package/src/components/site-header/default-background-img.b64.js +1 -1
- package/src/components/site-header/index.ts +2 -2
- package/src/components/site-header/site-header-navbar-item.component.html +12 -12
- package/src/components/site-header/site-header-navbar-item.component.ts +24 -24
- package/src/components/site-header/site-header.component.html +28 -28
- package/src/components/site-header/site-header.component.ts +30 -30
- package/src/components/site-header/site-header.less +196 -196
- package/src/components/style-typings/styles.ts +37 -37
- package/src/components/table-blank-slate/index.ts +1 -1
- package/src/components/table-blank-slate/table-blank-slate.html +16 -16
- package/src/components/table-blank-slate/table-blank-slate.js +17 -17
- package/src/components/table-blank-slate/table-blank-slate.less +22 -22
- package/src/components/tabs/index.ts +4 -4
- package/src/components/tabs/tab-group.html +21 -21
- package/src/components/tabs/tab-group.ts +160 -160
- package/src/components/tabs/tab-html-title-append.ts +17 -17
- package/src/components/tabs/tab-html-title.ts +33 -33
- package/src/components/tabs/tab.html +2 -2
- package/src/components/tabs/tab.ts +56 -56
- package/src/components/tabs/tabs.less +44 -44
- package/src/components/tag-input/index.ts +1 -1
- package/src/components/tag-input/tag-input.component.ts +136 -136
- package/src/components/tag-input/tag-input.html +66 -66
- package/src/components/tag-input/tag-input.less +107 -107
- package/src/components/textarea/index.ts +1 -1
- package/src/components/textarea/textarea.html +16 -16
- package/src/components/textarea/textarea.js +30 -30
- package/src/components/textinput/index.ts +1 -1
- package/src/components/textinput/textinput.html +33 -33
- package/src/components/textinput/textinput.ts +54 -54
- package/src/components/theme/index.ts +1 -1
- package/src/components/theme/theme.service.ts +71 -71
- package/src/components/theme/theme.typings.ts +3 -3
- package/src/components/time-input/index.ts +2 -2
- package/src/components/time-input/time-input.html +47 -47
- package/src/components/time-input/time-input.js +163 -163
- package/src/components/time-input/time-input.less +25 -25
- package/src/components/time-input/validate-time.js +33 -33
- package/src/components/translate/index.ts +1 -1
- package/src/components/translate/translate-factory.ts +49 -49
- package/src/components/tree/index.ts +3 -3
- package/src/components/tree/recursion-factory.js +43 -43
- package/src/components/tree/tree-node.html +56 -56
- package/src/components/tree/tree-node.js +30 -30
- package/src/components/tree/tree.html +27 -27
- package/src/components/tree/tree.less +117 -117
- package/src/components/tree/tree.ts +108 -108
- package/src/components/type-string/index.ts +1 -1
- package/src/components/type-string/type-string.component.html +1 -1
- package/src/components/type-string/type-string.component.ts +63 -63
- package/src/components/url-modification/index.ts +1 -1
- package/src/components/url-modification/url-modification.service.ts +33 -33
- package/src/index.html +90 -90
- package/src/index.js +23 -23
- package/src/index.less +16 -16
- package/src/index.spec.js +40 -39
- package/stylelint.config.js +8 -8
- package/tsconfig.deploy.json +29 -29
- package/tsconfig.json +34 -34
- package/tslint.json +4 -4
- package/typings/index.d.ts +46 -46
- package/webpack.config.js +234 -234
|
@@ -0,0 +1,322 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.cityPopulation = void 0;
|
|
4
|
+
exports.cityPopulation = new Map([
|
|
5
|
+
[`Midway, United States Minor Outlying Islands`, 14],
|
|
6
|
+
[`Pago Pago, American Samoa`, 11500],
|
|
7
|
+
[`Alofi, Niue`, 575],
|
|
8
|
+
[`Avarua, Cook Islands`, 4798],
|
|
9
|
+
[`Adak, United States`, 151],
|
|
10
|
+
[`Honolulu, United States`, 1000000],
|
|
11
|
+
[`Faaa, French Polynesia`, 29800],
|
|
12
|
+
[`Marquesas, French Polynesia`, 8037],
|
|
13
|
+
[`Anchorage, United States`, 400000],
|
|
14
|
+
[`Gambier, French Polynesia`, 1600],
|
|
15
|
+
[`Los Angeles, United States`, 12800000],
|
|
16
|
+
[`Tijuana, Mexico`, 2333000],
|
|
17
|
+
[`Vancouver, Canada`, 2600000],
|
|
18
|
+
[`Adamstown, Pitcairn`, 40],
|
|
19
|
+
[`Hermosillo, Mexico`, 930000],
|
|
20
|
+
[`Calgary, Canada`, 1600000],
|
|
21
|
+
[`Ciudad Juárez, Mexico`, 1600000],
|
|
22
|
+
[`Denver, United States`, 3100000],
|
|
23
|
+
[`Phoenix, United States`, 5100000],
|
|
24
|
+
[`Whitehorse, Canada`, 29000],
|
|
25
|
+
[`Belize City, Belize`, 61000],
|
|
26
|
+
[`Chicago, United States`, 9100000],
|
|
27
|
+
[`Guatemala City, Guatemala`, 3000000],
|
|
28
|
+
[`Managua, Nicaragua`, 1100000],
|
|
29
|
+
[`Mexico City, Mexico`, 22000000],
|
|
30
|
+
[`Reynosa, Mexico`, 900000],
|
|
31
|
+
[`San José, Costa Rica`, 2300000],
|
|
32
|
+
[`San Salvador, El Salvador`, 2400000],
|
|
33
|
+
[`Saskatoon, Canada`, 330000],
|
|
34
|
+
[`Tegucigalpa, Honduras`, 1500000],
|
|
35
|
+
[`Winnipeg, Canada`, 850000],
|
|
36
|
+
[`Easter, Chile`, 8000],
|
|
37
|
+
[`Galapagos, Ecuador`, 33000],
|
|
38
|
+
[`Rio Branco, Brazil`, 420000],
|
|
39
|
+
[`Bogotá, Colombia`, 11000000],
|
|
40
|
+
[`Havana, Cuba`, 2100000],
|
|
41
|
+
[`Atikokan, Canada`, 2800],
|
|
42
|
+
[`Cancún, Mexico`, 880000],
|
|
43
|
+
[`George Town, Cayman Islands`, 35000],
|
|
44
|
+
[`Kingston, Jamaica`, 590000],
|
|
45
|
+
[`Nassau, Bahamas`, 280000],
|
|
46
|
+
[`New York City, United States`, 20100000],
|
|
47
|
+
[`Panamá, Panama`, 1700000],
|
|
48
|
+
[`Port-au-Prince, Haiti`, 2700000],
|
|
49
|
+
[`Providenciales, Turks and Caicos Islands`, 31000],
|
|
50
|
+
[`Toronto, Canada`, 6500000],
|
|
51
|
+
[`Quito, Ecuador`, 2800000],
|
|
52
|
+
[`Lima, Peru`, 11000000],
|
|
53
|
+
[`Manaus, Brazil`, 2300000],
|
|
54
|
+
[`Basseterre, Saint Kitts and Nevis`, 15000],
|
|
55
|
+
[`Blanc-Sablon, Canada`, 1100],
|
|
56
|
+
[`Brades, Montserrat`, 1000],
|
|
57
|
+
[`Bridgetown, Barbados`, 97000],
|
|
58
|
+
[`Chaguanas, Trinidad and Tobago`, 83000],
|
|
59
|
+
[`Fort-de-France, Martinique`, 160000],
|
|
60
|
+
[`Gros Islet, Saint Lucia`, 23000],
|
|
61
|
+
[`Gustavia, Saint Barthelemy`, 3600],
|
|
62
|
+
[`Halifax, Canada`, 480000],
|
|
63
|
+
[`Hamilton, Bermuda`, 64000],
|
|
64
|
+
[`Kingstown, Saint Vincent and the Grenadines`, 38000],
|
|
65
|
+
[`Kralendijk, Bonaire, Saint Eustatius and Saba`, 11000],
|
|
66
|
+
[`Kralendijk, Bonaire, Saint Eustatius and Saba `, 11000],
|
|
67
|
+
[`Les Abymes, Guadeloupe`, 58000],
|
|
68
|
+
[`Marigot, Saint Martin`, 6000],
|
|
69
|
+
[`Oranjestad, Aruba`, 35000],
|
|
70
|
+
[`Philipsburg, Sint Maarten`, 1800],
|
|
71
|
+
[`Road Town, British Virgin Islands`, 15000],
|
|
72
|
+
[`Roseau, Dominica`, 15000],
|
|
73
|
+
[`Saint Croix, U.S. Virgin Islands`, 51000],
|
|
74
|
+
[`Saint George's, Grenada`, 39000],
|
|
75
|
+
[`Saint John’s, Antigua and Barbuda`, 22000],
|
|
76
|
+
[`San Juan, Puerto Rico`, 2200000],
|
|
77
|
+
[`Santo Domingo, Dominican Republic`, 3100000],
|
|
78
|
+
[`The Valley, Anguilla`, 1200],
|
|
79
|
+
[`Thule, Greenland`, 600],
|
|
80
|
+
[`Willemstad, Curacao`, 150000],
|
|
81
|
+
[`La Paz, Bolivia`, 2400000],
|
|
82
|
+
[`Santiago, Chile`, 7000000],
|
|
83
|
+
[`Georgetown, Guyana`, 120000],
|
|
84
|
+
[`Caracas, Venezuela`, 3000000],
|
|
85
|
+
[`St. John's, Canada`, 210000],
|
|
86
|
+
[`Buenos Aires, Argentina`, 15000000],
|
|
87
|
+
[`São Paulo, Brazil`, 22000000],
|
|
88
|
+
[`Palmer, Antarctica`, 40],
|
|
89
|
+
[`Punta Arenas, Chile`, 130000],
|
|
90
|
+
[`Stanley, Falkland Islands`, 3000],
|
|
91
|
+
[`Cayenne, French Guiana`, 65000],
|
|
92
|
+
[`Asunción, Paraguay`, 3100000],
|
|
93
|
+
[`Saint-Pierre, Saint Pierre and Miquelon`, 5500],
|
|
94
|
+
[`Paramaribo, Suriname`, 250000],
|
|
95
|
+
[`Montevideo, Uruguay`, 1700000],
|
|
96
|
+
[`Noronha, Brazil`, 3000],
|
|
97
|
+
[`Nuuk, Greenland`, 19000],
|
|
98
|
+
[`Grytviken, South Georgia and the South Sandwich Islands`, 30],
|
|
99
|
+
[`Ponta Delgada, Portugal`, 105000],
|
|
100
|
+
[`Praia, Cabo Verde`, 160000],
|
|
101
|
+
[`Abidjan, Ivory Coast`, 5600000],
|
|
102
|
+
[`Bamako, Mali`, 2900000],
|
|
103
|
+
[`Bissau, Guinea-Bissau`, 500000],
|
|
104
|
+
[`Conakry, Guinea`, 2300000],
|
|
105
|
+
[`Dakar, Senegal`, 3700000],
|
|
106
|
+
[`Danmarkshavn, Greenland`, 8],
|
|
107
|
+
[`Douglas, Isle of Man`, 28000],
|
|
108
|
+
[`Dublin, Ireland`, 1200000],
|
|
109
|
+
[`Freetown, Sierra Leone`, 1200000],
|
|
110
|
+
[`Jamestown, Saint Helena`, 600],
|
|
111
|
+
[`Kumasi, Ghana`, 3800000],
|
|
112
|
+
[`Lomé, Togo`, 2100000],
|
|
113
|
+
[`London, United Kingdom`, 9600000],
|
|
114
|
+
[`Monrovia, Liberia`, 1600000],
|
|
115
|
+
[`Nouakchott, Mauritania`, 1200000],
|
|
116
|
+
[`Ouagadougou, Burkina Faso`, 3200000],
|
|
117
|
+
[`Reykjavík, Iceland`, 240000],
|
|
118
|
+
[`Saint Helier, Jersey`, 34000],
|
|
119
|
+
[`Saint Peter Port, Guernsey`, 19000],
|
|
120
|
+
[`Serekunda, Gambia`, 390000],
|
|
121
|
+
[`São Tomé, Sao Tome and Principe`, 72000],
|
|
122
|
+
[`Troll, Antarctica`, 40],
|
|
123
|
+
[`Casablanca, Morocco`, 4300000],
|
|
124
|
+
[`Laayoune, Western Sahara`, 220000],
|
|
125
|
+
[`Las Palmas de Gran Canaria, Spain`, 640000],
|
|
126
|
+
[`Lisbon, Portugal`, 2900000],
|
|
127
|
+
[`Tórshavn, Faroe Islands`, 23000],
|
|
128
|
+
[`Windhoek, Namibia`, 480000],
|
|
129
|
+
[`Algiers, Algeria`, 4200000],
|
|
130
|
+
[`Amsterdam, The Netherlands`, 2400000],
|
|
131
|
+
[`Andorra la Vella, Andorra`, 24000],
|
|
132
|
+
[`Belgrade, Serbia`, 1700000],
|
|
133
|
+
[`Berlin, Germany`, 6200000],
|
|
134
|
+
[`Bratislava, Slovakia`, 660000],
|
|
135
|
+
[`Brussels, Belgium`, 2200000],
|
|
136
|
+
[`Budapest, Hungary`, 3000000],
|
|
137
|
+
[`Copenhagen, Denmark`, 2000000],
|
|
138
|
+
[`Gibraltar, Gibraltar`, 34000],
|
|
139
|
+
[`Ljubljana, Slovenia`, 540000],
|
|
140
|
+
[`Longyearbyen, Svalbard and Jan Mayen`, 2400],
|
|
141
|
+
[`Luxembourg, Luxembourg`, 650000],
|
|
142
|
+
[`Madrid, Spain`, 6700000],
|
|
143
|
+
[`Monaco, Monaco`, 38000],
|
|
144
|
+
[`Oslo, Norway`, 1600000],
|
|
145
|
+
[`Paris, France`, 11000000],
|
|
146
|
+
[`Podgorica, Montenegro`, 190000],
|
|
147
|
+
[`Prague, Czechia`, 2700000],
|
|
148
|
+
[`Rome, Italy`, 4300000],
|
|
149
|
+
[`San Marino, San Marino`, 34000],
|
|
150
|
+
[`San Pawl il-Baħar, Malta`, 32000],
|
|
151
|
+
[`Sarajevo, Bosnia and Herzegovina`, 570000],
|
|
152
|
+
[`Skopje, North Macedonia`, 640000],
|
|
153
|
+
[`Stockholm, Sweden`, 2400000],
|
|
154
|
+
[`Tirana, Albania`, 760000],
|
|
155
|
+
[`Tunis, Tunisia`, 2600000],
|
|
156
|
+
[`Vaduz, Liechtenstein`, 6000],
|
|
157
|
+
[`Vatican City, Vatican`, 800],
|
|
158
|
+
[`Vienna, Austria`, 2800000],
|
|
159
|
+
[`Warsaw, Poland`, 3200000],
|
|
160
|
+
[`Zagreb, Croatia`, 1100000],
|
|
161
|
+
[`Zürich, Switzerland`, 1600000],
|
|
162
|
+
[`Bangui, Central African Republic`, 1200000],
|
|
163
|
+
[`Bata, Equatorial Guinea`, 290000],
|
|
164
|
+
[`Brazzaville, Republic of the Congo`, 2400000],
|
|
165
|
+
[`Cotonou, Benin`, 1200000],
|
|
166
|
+
[`Douala, Cameroon`, 3800000],
|
|
167
|
+
[`Kinshasa, Democratic Republic of the Congo`, 15000000],
|
|
168
|
+
[`Lagos, Nigeria`, 23000000],
|
|
169
|
+
[`Libreville, Gabon`, 860000],
|
|
170
|
+
[`Luanda, Angola`, 9000000],
|
|
171
|
+
[`N'Djamena, Chad`, 1600000],
|
|
172
|
+
[`Niamey, Niger`, 1600000],
|
|
173
|
+
[`Bujumbura, Burundi`, 1200000],
|
|
174
|
+
[`Gaborone, Botswana`, 330000],
|
|
175
|
+
[`Harare, Zimbabwe`, 1600000],
|
|
176
|
+
[`Juba, South Sudan`, 1100000],
|
|
177
|
+
[`Khartoum, Sudan`, 6000000],
|
|
178
|
+
[`Kigali, Rwanda`, 1400000],
|
|
179
|
+
[`Lilongwe, Malawi`, 1100000],
|
|
180
|
+
[`Lubumbashi, Democratic Republic of the Congo`, 2400000],
|
|
181
|
+
[`Lusaka, Zambia`, 3200000],
|
|
182
|
+
[`Maputo, Mozambique`, 3000000],
|
|
183
|
+
[`Athens, Greece`, 3400000],
|
|
184
|
+
[`Beirut, Lebanon`, 2200000],
|
|
185
|
+
[`Bucharest, Romania`, 2200000],
|
|
186
|
+
[`Cairo, Egypt`, 22000000],
|
|
187
|
+
[`Chisinau, Moldova`, 500000],
|
|
188
|
+
[`East Jerusalem, Palestinian Territory`, 950000],
|
|
189
|
+
[`Helsinki, Finland`, 1600000],
|
|
190
|
+
[`Kaliningrad, Russia`, 1000000],
|
|
191
|
+
[`Kyiv, Ukraine`, 2900000],
|
|
192
|
+
[`Mariehamn, Aland Islands`, 12000],
|
|
193
|
+
[`Nicosia, Cyprus`, 330000],
|
|
194
|
+
[`Riga, Latvia`, 600000],
|
|
195
|
+
[`Sofia, Bulgaria`, 1300000],
|
|
196
|
+
[`Tallinn, Estonia`, 450000],
|
|
197
|
+
[`Tripoli, Libya`, 1200000],
|
|
198
|
+
[`Vilnius, Lithuania`, 700000],
|
|
199
|
+
[`Jerusalem, Israel`, 1300000],
|
|
200
|
+
[`Johannesburg, South Africa`, 6000000],
|
|
201
|
+
[`Manzini, Eswatini`, 110000],
|
|
202
|
+
[`Maseru, Lesotho`, 330000],
|
|
203
|
+
[`Al Aḩmadī, Kuwait`, 500000],
|
|
204
|
+
[`Ar Rifā‘, Bahrain`, 120000],
|
|
205
|
+
[`Baghdad, Iraq`, 7000000],
|
|
206
|
+
[`Doha, Qatar`, 2800000],
|
|
207
|
+
[`Jeddah, Saudi Arabia`, 4500000],
|
|
208
|
+
[`Sanaa, Yemen`, 2700000],
|
|
209
|
+
[`Amman, Jordan`, 4300000],
|
|
210
|
+
[`Aleppo, Syria`, 2200000],
|
|
211
|
+
[`Addis Ababa, Ethiopia`, 5200000],
|
|
212
|
+
[`Antananarivo, Madagascar`, 3900000],
|
|
213
|
+
[`Asmara, Eritrea`, 960000],
|
|
214
|
+
[`Dar es Salaam, Tanzania`, 7500000],
|
|
215
|
+
[`Djibouti, Djibouti`, 600000],
|
|
216
|
+
[`Kampala, Uganda`, 3500000],
|
|
217
|
+
[`Mamoudzou, Mayotte`, 120000],
|
|
218
|
+
[`Mogadishu, Somalia`, 2600000],
|
|
219
|
+
[`Moroni, Comoros`, 60000],
|
|
220
|
+
[`Nairobi, Kenya`, 5800000],
|
|
221
|
+
[`Minsk, Belarus`, 2000000],
|
|
222
|
+
[`Moscow, Russia`, 17000000],
|
|
223
|
+
[`Sevastopol, Ukraine`, 430000],
|
|
224
|
+
[`Syowa, Antarctica`, 30],
|
|
225
|
+
[`Istanbul, Turkey`, 15500000],
|
|
226
|
+
[`Tehran, Iran`, 9100000],
|
|
227
|
+
[`Yerevan, Armenia`, 1100000],
|
|
228
|
+
[`Baku, Azerbaijan`, 2700000],
|
|
229
|
+
[`Tbilisi, Georgia`, 1100000],
|
|
230
|
+
[`Dubai, United Arab Emirates`, 3400000],
|
|
231
|
+
[`Muscat, Oman`, 1700000],
|
|
232
|
+
[`Port Louis, Mauritius`, 150000],
|
|
233
|
+
[`Saint-Denis, Reunion`, 310000],
|
|
234
|
+
[`Samara, Russia`, 1100000],
|
|
235
|
+
[`Victoria, Seychelles`, 27000],
|
|
236
|
+
[`Kabul, Afghanistan`, 4700000],
|
|
237
|
+
[`Port-aux-Français, French Southern Territories`, 45],
|
|
238
|
+
[`Almaty, Kazakhstan`, 2200000],
|
|
239
|
+
[`Male, Maldives`, 220000],
|
|
240
|
+
[`Mawson, Antarctica`, 50],
|
|
241
|
+
[`Lahore, Pakistan`, 13000000],
|
|
242
|
+
[`Dushanbe, Tajikistan`, 900000],
|
|
243
|
+
[`Ashgabat, Turkmenistan`, 1000000],
|
|
244
|
+
[`Tashkent, Uzbekistan`, 2600000],
|
|
245
|
+
[`Yekaterinburg, Russia`, 1500000],
|
|
246
|
+
[`Colombo, Sri Lanka`, 5700000],
|
|
247
|
+
[`Mumbai, India`, 22500000],
|
|
248
|
+
[`Kathmandu, Nepal`, 3100000],
|
|
249
|
+
[`Dhaka, Bangladesh`, 23000000],
|
|
250
|
+
[`Thimphu, Bhutan`, 115000],
|
|
251
|
+
[`Ürümqi, China`, 4300000],
|
|
252
|
+
[`Chagos, British Indian Ocean Territory`, 3000],
|
|
253
|
+
[`Bishkek, Kyrgyzstan`, 1100000],
|
|
254
|
+
[`Omsk, Russia`, 1200000],
|
|
255
|
+
[`West Island, Cocos Islands`, 600],
|
|
256
|
+
[`Yangon, Myanmar`, 5400000],
|
|
257
|
+
[`Flying Fish Cove, Christmas Island`, 1800],
|
|
258
|
+
[`Davis, Antarctica`, 110],
|
|
259
|
+
[`Ulaangom, Mongolia`, 31000],
|
|
260
|
+
[`Bangkok, Thailand`, 10500000],
|
|
261
|
+
[`Ho Chi Minh City, Vietnam`, 9700000],
|
|
262
|
+
[`Phnom Penh, Cambodia`, 2600000],
|
|
263
|
+
[`Vientiane, Laos`, 950000],
|
|
264
|
+
[`Novosibirsk, Russia`, 1700000],
|
|
265
|
+
[`Jakarta, Indonesia`, 34000000],
|
|
266
|
+
[`Casey, Antarctica`, 120],
|
|
267
|
+
[`Perth, Australia`, 2200000],
|
|
268
|
+
[`Bandar Seri Begawan, Brunei`, 300000],
|
|
269
|
+
[`Makassar, Indonesia`, 1600000],
|
|
270
|
+
[`Macau, Macao`, 680000],
|
|
271
|
+
[`Shanghai, China`, 31000000],
|
|
272
|
+
[`Hong Kong, Hong Kong`, 7500000],
|
|
273
|
+
[`Irkutsk, Russia`, 620000],
|
|
274
|
+
[`Kuala Lumpur, Malaysia`, 8400000],
|
|
275
|
+
[`Quezon City, Philippines`, 3000000],
|
|
276
|
+
[`Singapore, Singapore`, 5900000],
|
|
277
|
+
[`Taipei, Taiwan`, 9600000],
|
|
278
|
+
[`Ulan Bator, Mongolia`, 1700000],
|
|
279
|
+
[`Eucla, Australia`, 80],
|
|
280
|
+
[`Jayapura, Indonesia`, 350000],
|
|
281
|
+
[`Tokyo, Japan`, 37000000],
|
|
282
|
+
[`Pyongyang, North Korea`, 3000000],
|
|
283
|
+
[`Seoul, South Korea`, 24000000],
|
|
284
|
+
[`Ngerulmud, Palau`, 400],
|
|
285
|
+
[`Dili, Timor Leste`, 320000],
|
|
286
|
+
[`Chita, Russia`, 330000],
|
|
287
|
+
[`Adelaide, Australia`, 1400000],
|
|
288
|
+
[`Darwin, Australia`, 150000],
|
|
289
|
+
[`Brisbane, Australia`, 2600000],
|
|
290
|
+
[`Sydney, Australia`, 5300000],
|
|
291
|
+
[`Dededo Village, Guam`, 45000],
|
|
292
|
+
[`Saipan, Northern Mariana Islands`, 48000],
|
|
293
|
+
[`Chuuk, Micronesia`, 50000],
|
|
294
|
+
[`DumontDUrville, Antarctica`, 50],
|
|
295
|
+
[`Port Moresby, Papua New Guinea`, 450000],
|
|
296
|
+
[`Khabarovsk, Russia`, 610000],
|
|
297
|
+
[`Lord Howe, Australia`, 450],
|
|
298
|
+
[`Arawa, Papua New Guinea`, 36000],
|
|
299
|
+
[`Kosrae, Micronesia`, 6600],
|
|
300
|
+
[`Nouméa, New Caledonia`, 210000],
|
|
301
|
+
[`Kingston, Norfolk Island`, 1750],
|
|
302
|
+
[`Yuzhno-Sakhalinsk, Russia`, 180000],
|
|
303
|
+
[`Honiara, Solomon Islands`, 130000],
|
|
304
|
+
[`Port-Vila, Vanuatu`, 55000],
|
|
305
|
+
[`Nasinu, Fiji`, 92000],
|
|
306
|
+
[`Tarawa, Kiribati`, 63000],
|
|
307
|
+
[`Petropavlovsk-Kamchatsky, Russia`, 180000],
|
|
308
|
+
[`Majuro, Marshall Islands`, 31000],
|
|
309
|
+
[`Yaren, Nauru`, 12000],
|
|
310
|
+
[`Auckland, New Zealand`, 1600000],
|
|
311
|
+
[`McMurdo, Antarctica`, 1000],
|
|
312
|
+
[`Funafuti, Tuvalu`, 6000],
|
|
313
|
+
[`Wake, United States Minor Outlying Islands`, 100],
|
|
314
|
+
[`Mata-Utu, Wallis and Futuna`, 1200],
|
|
315
|
+
[`Chatham, New Zealand`, 600],
|
|
316
|
+
[`Kanton, Kiribati`, 20],
|
|
317
|
+
[`Apia, Samoa`, 38000],
|
|
318
|
+
[`Fakaofo, Tokelau`, 500],
|
|
319
|
+
[`Nuku‘alofa, Tonga`, 24000],
|
|
320
|
+
[`Kiritimati, Kiribati`, 6500],
|
|
321
|
+
]);
|
|
322
|
+
//# sourceMappingURL=cityPopulation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cityPopulation.js","sourceRoot":"","sources":["../../src/components/date-time-zone-city-picker/cityPopulation.ts"],"names":[],"mappings":";;;AAAa,QAAA,cAAc,GAAwB,IAAI,GAAG,CAAC;IAC1D,CAAC,8CAA8C,EAAE,EAAE,CAAC;IACpD,CAAC,2BAA2B,EAAE,KAAK,CAAC;IACpC,CAAC,aAAa,EAAE,GAAG,CAAC;IACpB,CAAC,sBAAsB,EAAE,IAAI,CAAC;IAC9B,CAAC,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dateTime: Date | DateTime | null;
|
|
5
|
+
timeZoneName: string | null;
|
|
6
|
+
}
|
|
7
|
+
export default class DateTimeZoneCityPickerController implements IComponentController {
|
|
8
|
+
format: string;
|
|
9
|
+
inputId: string;
|
|
10
|
+
isDisabled: boolean;
|
|
11
|
+
isRequired: boolean;
|
|
12
|
+
onOpen: () => void;
|
|
13
|
+
protected ngModelCtrl: ng.INgModelController;
|
|
14
|
+
protected dateLuxon: DateTime | null;
|
|
15
|
+
protected timeLuxon: DateTime | null;
|
|
16
|
+
protected timeZoneName: string | null;
|
|
17
|
+
$onInit(): void;
|
|
18
|
+
private initModelFromAPI;
|
|
19
|
+
protected updateDate(dateLuxon: DateTime): void;
|
|
20
|
+
protected updateTime(timeLuxon: DateTime): void;
|
|
21
|
+
protected updateTimeZone(timeZoneName: string): void;
|
|
22
|
+
private updateModel;
|
|
23
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
<div class="o-row">
|
|
2
|
+
|
|
3
|
+
<div class="o-col-xs-5">
|
|
4
|
+
<mfly:date-picker
|
|
5
|
+
format="{{ $ctrl.format }}"
|
|
6
|
+
input-id="{{ $ctrl.inputId }}"
|
|
7
|
+
is-disabled="$ctrl.isDisabled"
|
|
8
|
+
is-required="{{ $ctrl.isRequired }}"
|
|
9
|
+
date-luxon="$ctrl.dateLuxon"
|
|
10
|
+
on-open="$ctrl.onOpen()"
|
|
11
|
+
on-date-change="$ctrl.updateDate(newDate)">
|
|
12
|
+
</mfly:date-picker>
|
|
13
|
+
</div>
|
|
14
|
+
|
|
15
|
+
<div class="o-col-xs-7" ng-show="$ctrl.dateLuxon && !$ctrl.isDisabled">
|
|
16
|
+
<mfly:time-picker
|
|
17
|
+
input-id="{{ $ctrl.inputId }}Time"
|
|
18
|
+
ng-show="!$ctrl.isDisabled"
|
|
19
|
+
on-time-change="$ctrl.updateTime(newTime)"
|
|
20
|
+
time-luxon="$ctrl.timeLuxon">
|
|
21
|
+
</mfly:time-picker>
|
|
22
|
+
|
|
23
|
+
<mfly:time-zone-city-picker
|
|
24
|
+
input-id="$ctrl.inputId+'TimeZone'"
|
|
25
|
+
ng-show="!$ctrl.isDisabled"
|
|
26
|
+
on-time-zone-change="$ctrl.updateTimeZone(timeZoneName)"
|
|
27
|
+
time-zone-name="$ctrl.timeZoneName">
|
|
28
|
+
</mfly:time-zone-city-picker>
|
|
29
|
+
</div>
|
|
30
|
+
|
|
31
|
+
</div>
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
const decorators_1 = require("../decorators");
|
|
13
|
+
const luxon_1 = require("luxon");
|
|
14
|
+
const time_zone_city_service_1 = require("./time-zone-city.service");
|
|
15
|
+
let DateTimeZoneCityPickerController = class DateTimeZoneCityPickerController {
|
|
16
|
+
$onInit() {
|
|
17
|
+
// Set up formatters and parsers for ngModel
|
|
18
|
+
this.ngModelCtrl.$formatters.push((modelValue) => {
|
|
19
|
+
if (modelValue) {
|
|
20
|
+
this.initModelFromAPI(modelValue);
|
|
21
|
+
}
|
|
22
|
+
else {
|
|
23
|
+
this.dateLuxon = null;
|
|
24
|
+
this.timeLuxon = null;
|
|
25
|
+
this.timeZoneName = null;
|
|
26
|
+
}
|
|
27
|
+
return modelValue;
|
|
28
|
+
});
|
|
29
|
+
this.ngModelCtrl.$parsers.push((modelValue) => {
|
|
30
|
+
return modelValue;
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
initModelFromAPI(value) {
|
|
34
|
+
let luxon;
|
|
35
|
+
if (!(value === null || value === void 0 ? void 0 : value.dateTime)) {
|
|
36
|
+
luxon = undefined;
|
|
37
|
+
}
|
|
38
|
+
else if (value.dateTime instanceof luxon_1.DateTime) {
|
|
39
|
+
luxon = value.dateTime;
|
|
40
|
+
}
|
|
41
|
+
else if (value.dateTime instanceof Date) {
|
|
42
|
+
luxon = luxon_1.DateTime.fromJSDate(value.dateTime);
|
|
43
|
+
}
|
|
44
|
+
else if (typeof value.dateTime === 'string') {
|
|
45
|
+
luxon = luxon_1.DateTime.fromISO(value.dateTime, { setZone: true });
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
throw new Error(`Invalid value type ${typeof value} (${value})`);
|
|
49
|
+
}
|
|
50
|
+
if (!luxon) {
|
|
51
|
+
this.dateLuxon = null;
|
|
52
|
+
this.timeLuxon = luxon_1.DateTime.fromObject({
|
|
53
|
+
hour: 0,
|
|
54
|
+
minute: 0,
|
|
55
|
+
second: 0,
|
|
56
|
+
millisecond: 0
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
this.dateLuxon = luxon_1.DateTime.fromObject({
|
|
61
|
+
year: luxon.year,
|
|
62
|
+
month: luxon.month,
|
|
63
|
+
day: luxon.day
|
|
64
|
+
});
|
|
65
|
+
this.timeLuxon = luxon_1.DateTime.fromObject({
|
|
66
|
+
hour: luxon.hour,
|
|
67
|
+
minute: luxon.minute,
|
|
68
|
+
second: 0,
|
|
69
|
+
millisecond: 0
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
const bestMatchTimeZone = time_zone_city_service_1.getTimeZone(value.timeZoneName);
|
|
73
|
+
this.timeZoneName = (bestMatchTimeZone === null || bestMatchTimeZone === void 0 ? void 0 : bestMatchTimeZone.timeZoneName) || Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
74
|
+
}
|
|
75
|
+
updateDate(dateLuxon) {
|
|
76
|
+
this.dateLuxon = dateLuxon;
|
|
77
|
+
this.updateModel();
|
|
78
|
+
}
|
|
79
|
+
updateTime(timeLuxon) {
|
|
80
|
+
this.timeLuxon = timeLuxon;
|
|
81
|
+
this.updateModel();
|
|
82
|
+
}
|
|
83
|
+
updateTimeZone(timeZoneName) {
|
|
84
|
+
this.timeZoneName = timeZoneName;
|
|
85
|
+
this.updateModel();
|
|
86
|
+
}
|
|
87
|
+
updateModel() {
|
|
88
|
+
let dateTime;
|
|
89
|
+
if (this.dateLuxon && this.timeLuxon) {
|
|
90
|
+
const targetZone = this.timeZoneName || 'utc';
|
|
91
|
+
dateTime = luxon_1.DateTime.fromObject({
|
|
92
|
+
year: this.dateLuxon.year,
|
|
93
|
+
month: this.dateLuxon.month,
|
|
94
|
+
day: this.dateLuxon.day,
|
|
95
|
+
hour: this.timeLuxon.hour,
|
|
96
|
+
minute: this.timeLuxon.minute,
|
|
97
|
+
second: 0,
|
|
98
|
+
millisecond: 0,
|
|
99
|
+
}, {
|
|
100
|
+
zone: targetZone
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
this.ngModelCtrl.$setViewValue({
|
|
104
|
+
dateTime,
|
|
105
|
+
timeZoneName: this.timeZoneName
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
};
|
|
109
|
+
__decorate([
|
|
110
|
+
decorators_1.Input('@'),
|
|
111
|
+
__metadata("design:type", String)
|
|
112
|
+
], DateTimeZoneCityPickerController.prototype, "format", void 0);
|
|
113
|
+
__decorate([
|
|
114
|
+
decorators_1.Input('@'),
|
|
115
|
+
__metadata("design:type", String)
|
|
116
|
+
], DateTimeZoneCityPickerController.prototype, "inputId", void 0);
|
|
117
|
+
__decorate([
|
|
118
|
+
decorators_1.Input('='),
|
|
119
|
+
__metadata("design:type", Boolean)
|
|
120
|
+
], DateTimeZoneCityPickerController.prototype, "isDisabled", void 0);
|
|
121
|
+
__decorate([
|
|
122
|
+
decorators_1.Input('@'),
|
|
123
|
+
__metadata("design:type", Boolean)
|
|
124
|
+
], DateTimeZoneCityPickerController.prototype, "isRequired", void 0);
|
|
125
|
+
__decorate([
|
|
126
|
+
decorators_1.Output('&?'),
|
|
127
|
+
__metadata("design:type", Function)
|
|
128
|
+
], DateTimeZoneCityPickerController.prototype, "onOpen", void 0);
|
|
129
|
+
DateTimeZoneCityPickerController = __decorate([
|
|
130
|
+
decorators_1.Component({
|
|
131
|
+
selector: 'mflyDateTimeZoneCityPicker',
|
|
132
|
+
template: require('./date-time-zone-city-picker.html'),
|
|
133
|
+
require: {
|
|
134
|
+
ngModelCtrl: 'ngModel'
|
|
135
|
+
}
|
|
136
|
+
})
|
|
137
|
+
], DateTimeZoneCityPickerController);
|
|
138
|
+
exports.default = DateTimeZoneCityPickerController;
|
|
139
|
+
//# sourceMappingURL=date-time-zone-city-picker.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date-time-zone-city-picker.js","sourceRoot":"","sources":["../../src/components/date-time-zone-city-picker/date-time-zone-city-picker.ts"],"names":[],"mappings":";;;;;;;;;;;AACA,8CAAwD;AACxD,iCAAgC;AAChC,qEAAsD;AActD,IAAqB,gCAAgC,GAArD,MAAqB,gCAAgC;IAcpD,OAAO;QAEN,4CAA4C;QAC5C,IAAI,CAAC,WAAW,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,UAA4B,EAAE,EAAE;YAClE,IAAI,UAAU,EAAE;gBACf,IAAI,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAA;aACjC;iBAAM;gBACN,IAAI,CAAC,SAAS,GAAG,IAAI,CAAA;gBACrB,IAAI,CAAC,SAAS,GAAG,IAAI,CAAA;gBACrB,IAAI,CAAC,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C,GAAG;gBACvB,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI;gBACzB,MAAM,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM;gBAC7B,MAAM,EAAE,CAAC;gBACT,WAAW,EAAE,CAAC;aACd,EAAE;gBACF,IAAI,EAAE,UAAU;aAChB,CAAC,CAAA;SACF;QAED,IAAI,CAAC,WAAW,CAAC,aAAa,CAAC;YAC9B,QAAQ;YACR,YAAY,EAAE,IAAI,CAAC,YAAY;SAC/B,CAAC,CAAA;IACH,CAAC;CACD,CAAA;AAlHY;IAAX,kBAAK,CAAC,GAAG,CAAC;;gEAAe;AACd;IAAX,kBAAK,CAAC,GAAG,CAAC;;iEAAgB;AACf;IAAX,kBAAK,CAAC,GAAG,CAAC;;oEAAoB;AACnB;IAAX,kBAAK,CAAC,GAAG,CAAC;;oEAAoB;AACjB;IAAb,mBAAM,CAAC,IAAI,CAAC;;gEAAmB;AANZ,gCAAgC;IAPpD,sBAAS,CAAC;QACV,QAAQ,EAAE,4BAA4B;QACtC,QAAQ,EAAE,OAAO,CAAC,mCAAmC,CAAC;QACtD,OAAO,EAAE;YACR,WAAW,EAAE,SAAS;SACtB;KACD,CAAC;GACmB,gCAAgC,CAoHpD;kBApHoB,gCAAgC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/date-time-zone-city-picker/index.ts"],"names":[],"mappings":";;AAAA,wCAAqC;AACrC,mCAAgC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IComponentController } from 'angular';
|
|
2
|
+
import { TimeZone } from './time-zone-city.service';
|
|
3
|
+
export default class TimeZoneCityPickerController implements IComponentController {
|
|
4
|
+
inputId: string;
|
|
5
|
+
timeZoneName: string;
|
|
6
|
+
onTimeZoneChange: (param: {
|
|
7
|
+
timeZoneName: string;
|
|
8
|
+
}) => void;
|
|
9
|
+
protected timeZone: TimeZone;
|
|
10
|
+
protected timeZones: TimeZone[];
|
|
11
|
+
$onInit(): void;
|
|
12
|
+
$onChanges(changes: {
|
|
13
|
+
timeZoneName: ng.IChangesObject<string>;
|
|
14
|
+
}): void;
|
|
15
|
+
protected timeZoneChange(timeZone: TimeZone): void;
|
|
16
|
+
private setTimeZone;
|
|
17
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<ng-form name="validationForm">
|
|
2
|
+
<mfly:dropdown-menu
|
|
3
|
+
pins-to="right"
|
|
4
|
+
class="c-date-time-zone-city-picker__timezone-menu">
|
|
5
|
+
<span mfly-dropdown-menu-toggle
|
|
6
|
+
id="{{ inputId }}"
|
|
7
|
+
class="c-date-time-zone-city-picker__timezone-menu__toggle">
|
|
8
|
+
<span class="c-date-time-zone-city-picker__timezone-menu__toggle-text">{{ $ctrl.timeZone.timeZoneAbbreviation || 'time zone' }}</span>
|
|
9
|
+
<span class="far fa-angle-down"></span>
|
|
10
|
+
</span>
|
|
11
|
+
|
|
12
|
+
<mfly:dropdown-menu-contents class="c-date-time-zone-city-picker__timezone-menu__dropdown">
|
|
13
|
+
<mfly:dropdown-menu-action
|
|
14
|
+
ng-repeat="option in $ctrl.timeZones"
|
|
15
|
+
action="$ctrl.timeZoneChange(option)">
|
|
16
|
+
<span>(GMT{{ option.offset }}) {{ option.timeZoneAbbreviation }} - {{ option.cityNames }}</span>
|
|
17
|
+
</mfly:dropdown-menu-action>
|
|
18
|
+
</mfly:dropdown-menu-contents>
|
|
19
|
+
|
|
20
|
+
</mfly:dropdown-menu>
|
|
21
|
+
</ng-form>
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
const decorators_1 = require("../../components/decorators");
|
|
13
|
+
const time_zone_city_service_1 = require("./time-zone-city.service");
|
|
14
|
+
let TimeZoneCityPickerController = class TimeZoneCityPickerController {
|
|
15
|
+
constructor() {
|
|
16
|
+
this.timeZones = [];
|
|
17
|
+
}
|
|
18
|
+
$onInit() {
|
|
19
|
+
this.timeZones = time_zone_city_service_1.getTimeZones();
|
|
20
|
+
this.setTimeZone(this.timeZoneName || Intl.DateTimeFormat().resolvedOptions().timeZone);
|
|
21
|
+
}
|
|
22
|
+
$onChanges(changes) {
|
|
23
|
+
if (changes.timeZoneName) {
|
|
24
|
+
this.setTimeZone(changes.timeZoneName.currentValue);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
timeZoneChange(timeZone) {
|
|
28
|
+
this.timeZone = timeZone;
|
|
29
|
+
this.onTimeZoneChange({ timeZoneName: timeZone.timeZoneName });
|
|
30
|
+
}
|
|
31
|
+
setTimeZone(timeZoneName) {
|
|
32
|
+
var _a, _b;
|
|
33
|
+
this.timeZone = (_b = (_a = time_zone_city_service_1.getTimeZone(timeZoneName)) !== null && _a !== void 0 ? _a : time_zone_city_service_1.getTimeZone('America/Chicago')) !== null && _b !== void 0 ? _b : this.timeZones[0];
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
__decorate([
|
|
37
|
+
decorators_1.Input(),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], TimeZoneCityPickerController.prototype, "inputId", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
decorators_1.Input(),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], TimeZoneCityPickerController.prototype, "timeZoneName", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
decorators_1.Output(),
|
|
46
|
+
__metadata("design:type", Function)
|
|
47
|
+
], TimeZoneCityPickerController.prototype, "onTimeZoneChange", void 0);
|
|
48
|
+
TimeZoneCityPickerController = __decorate([
|
|
49
|
+
decorators_1.Component({
|
|
50
|
+
selector: 'mflyTimeZoneCityPicker',
|
|
51
|
+
template: require('./time-zone-city-picker.html'),
|
|
52
|
+
})
|
|
53
|
+
], TimeZoneCityPickerController);
|
|
54
|
+
exports.default = TimeZoneCityPickerController;
|
|
55
|
+
//# sourceMappingURL=time-zone-city-picker.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"time-zone-city-picker.js","sourceRoot":"","sources":["../../src/components/date-time-zone-city-picker/time-zone-city-picker.ts"],"names":[],"mappings":";;;;;;;;;;;AACA,4DAAsE;AACtE,qEAA8E;AAM9E,IAAqB,4BAA4B,GAAjD,MAAqB,4BAA4B;IAAjD;QAOW,cAAS,GAAe,EAAE,CAAA;IA2BrC,CAAC;IAzBA,OAAO;QAEN,IAAI,CAAC,SAAS,GAAG,qCAAY,EAAE,CAAA;QAC/B,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,YAAY,IAAI,IAAI,CAAC,cAAc,EAAE,CAAC,eAAe,EAAE,CAAC,QAAQ,CAAC,CAAA;IACxF,CAAC;IAED,UAAU,CAAC,OAAoD;QAE9D,IAAI,OAAO,CAAC,YAAY,EAAE;YACzB,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,YAAY,CAAC,YAAY,CAAC,CAAA;SACnD;IACF,CAAC;IAES,cAAc,CAAC,QAAkB;QAE1C,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAA;QACxB,IAAI,CAAC,gBAAgB,CAAC,EAAE,YAAY,EAAE,QAAQ,CAAC,YAAY,EAAE,CAAC,CAAA;IAC/D,CAAC;IAEO,WAAW,CAAC,YAAoB;;QAEvC,IAAI,CAAC,QAAQ,GAAG,MAAA,MAAA,oCAAW,CAAC,YAAY,CAAC,mCACrC,oCAAW,CAAC,iBAAiB,CAAC,mCAC9B,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAA;IACtB,CAAC;CACD,CAAA;AAhCS;IAAR,kBAAK,EAAE;;6DAAgB;AACf;IAAR,kBAAK,EAAE;;kEAAqB;AACnB;IAAT,mBAAM,EAAE;;sEAA4D;AAJjD,4BAA4B;IAJhD,sBAAS,CAAC;QACV,QAAQ,EAAE,wBAAwB;QAClC,QAAQ,EAAE,OAAO,CAAC,8BAA8B,CAAC;KACjD,CAAC;GACmB,4BAA4B,CAkChD;kBAlCoB,4BAA4B"}
|