@energycap/components 0.31.5 → 0.32.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/energycap-components.min.css +2 -2
- package/energycap-email.min.css +1 -1
- package/esm2020/energycap-components.mjs +5 -0
- package/esm2020/lib/components.module.mjs +386 -0
- package/esm2020/lib/controls/banner/banner.component.mjs +106 -0
- package/esm2020/lib/controls/button/button.component.mjs +106 -0
- package/esm2020/lib/controls/button/copy-button.directive.mjs +65 -0
- package/esm2020/lib/controls/checkbox/checkbox.component.mjs +139 -0
- package/esm2020/lib/controls/collapsible-toggle/collapsible-toggle.component.mjs +38 -0
- package/esm2020/lib/controls/combobox/combobox.component.mjs +841 -0
- package/esm2020/lib/controls/dropdown/dropdown.component.mjs +237 -0
- package/esm2020/lib/controls/file-upload/file-upload.component.mjs +169 -0
- package/esm2020/lib/controls/form-control/form-control.component.mjs +86 -0
- package/esm2020/lib/controls/form-control-base.mjs +143 -0
- package/esm2020/lib/controls/form-control-label/form-control-label.component.mjs +136 -0
- package/esm2020/lib/controls/form-group/form-group.component.mjs +252 -0
- package/esm2020/lib/controls/help-popover/help-popover.component.mjs +28 -0
- package/esm2020/lib/controls/item-picker/item-picker.component.mjs +233 -0
- package/esm2020/lib/controls/link-button/link-button.component.mjs +11 -0
- package/esm2020/lib/controls/menu/menu.component.mjs +443 -0
- package/{esm2015/lib/controls/navigation/link-item.js → esm2020/lib/controls/navigation/link-item.mjs} +0 -0
- package/{esm2015/lib/controls/navigation/nav-group.js → esm2020/lib/controls/navigation/nav-group.mjs} +0 -0
- package/esm2020/lib/controls/navigation/nav-item-active.directive.mjs +92 -0
- package/{esm2015/lib/controls/navigation/nav-item.js → esm2020/lib/controls/navigation/nav-item.mjs} +0 -0
- package/esm2020/lib/controls/numericbox/numericbox.component.mjs +371 -0
- package/esm2020/lib/controls/popover/popover.component.mjs +84 -0
- package/{esm2015/lib/controls/radio-button/radio-button-option.js → esm2020/lib/controls/radio-button/radio-button-option.mjs} +0 -0
- package/esm2020/lib/controls/radio-button/radio-button.component.mjs +81 -0
- package/esm2020/lib/controls/select/select.component.mjs +87 -0
- package/esm2020/lib/controls/tabs/tabs.component.mjs +47 -0
- package/esm2020/lib/controls/textbox/textbox.component.mjs +154 -0
- package/{esm2015/lib/core/cache.service.js → esm2020/lib/core/cache.service.mjs} +9 -8
- package/{esm2015/lib/core/custom-validators.js → esm2020/lib/core/custom-validators.mjs} +0 -0
- package/{esm2015/lib/core/date-time-helper.js → esm2020/lib/core/date-time-helper.mjs} +0 -0
- package/esm2020/lib/core/error.service.mjs +57 -0
- package/esm2020/lib/core/scroll.service.mjs +89 -0
- package/esm2020/lib/core/telemetry-tracker.service.mjs +16 -0
- package/esm2020/lib/core/telemetry.service.mjs +38 -0
- package/esm2020/lib/core/validation-message.service.mjs +181 -0
- package/{esm2015/lib/core/validation-patterns.js → esm2020/lib/core/validation-patterns.mjs} +0 -0
- package/esm2020/lib/core/window.service.mjs +182 -0
- package/esm2020/lib/display/app-bar/app-bar.component.mjs +46 -0
- package/esm2020/lib/display/avatar/avatar.component.mjs +67 -0
- package/{esm2015/lib/display/avatar/avatar.service.js → esm2020/lib/display/avatar/avatar.service.mjs} +9 -7
- package/esm2020/lib/display/confirm/confirm.component.mjs +131 -0
- package/{esm2015/lib/display/dialog/dialog-content.js → esm2020/lib/display/dialog/dialog-content.mjs} +0 -0
- package/esm2020/lib/display/dialog/dialog-group/dialog-group.component.mjs +63 -0
- package/{esm2015/lib/display/dialog/dialog-types.js → esm2020/lib/display/dialog/dialog-types.mjs} +0 -0
- package/esm2020/lib/display/dialog/dialog.component.mjs +242 -0
- package/esm2020/lib/display/dialog/dialog.service.mjs +71 -0
- package/{esm2015/lib/display/help/help-types.js → esm2020/lib/display/help/help-types.mjs} +0 -0
- package/esm2020/lib/display/hierarchy/hierarchy-base.mjs +106 -0
- package/{esm2015/lib/display/hierarchy/hierarchy-mocks.spec.js → esm2020/lib/display/hierarchy/hierarchy-mocks.spec.mjs} +5 -9
- package/esm2020/lib/display/hierarchy/hierarchy-tree/hierarchy-tree.component.mjs +59 -0
- package/esm2020/lib/display/item-display/item-display.component.mjs +67 -0
- package/esm2020/lib/display/json-display/json-display.component.mjs +47 -0
- package/esm2020/lib/display/resizable/resizable-base.mjs +120 -0
- package/esm2020/lib/display/resizable/resizable.component.mjs +57 -0
- package/esm2020/lib/display/spinner/spinner.component.mjs +12 -0
- package/esm2020/lib/display/splash/splash.component.mjs +42 -0
- package/esm2020/lib/display/splash/splash.service.mjs +35 -0
- package/esm2020/lib/display/table/resizable-column.component.mjs +20 -0
- package/esm2020/lib/display/table/resizable-table.directive.mjs +227 -0
- package/esm2020/lib/display/table/searchable-table.component.mjs +338 -0
- package/esm2020/lib/display/table/table-detail-row.component.mjs +27 -0
- package/esm2020/lib/display/table/table-locked-column.component.mjs +58 -0
- package/esm2020/lib/display/table/table-master-header-row.component.mjs +11 -0
- package/esm2020/lib/display/table/table-master-row.component.mjs +150 -0
- package/esm2020/lib/display/table/table-pagination.component.mjs +150 -0
- package/esm2020/lib/display/table/table-selectable-row.component.mjs +235 -0
- package/esm2020/lib/display/table/table.component.mjs +244 -0
- package/esm2020/lib/display/tags/tag.mjs +15 -0
- package/esm2020/lib/display/tags/tags.component.mjs +77 -0
- package/esm2020/lib/display/toast/toast/toast.component.mjs +77 -0
- package/{esm2015/lib/display/toast/toast-types.js → esm2020/lib/display/toast/toast-types.mjs} +0 -0
- package/esm2020/lib/display/toast/toast.service.mjs +35 -0
- package/esm2020/lib/display/toast/toaster/toaster.component.mjs +114 -0
- package/esm2020/lib/display/tooltip/tooltip.component.mjs +25 -0
- package/esm2020/lib/display/tooltip/tooltip.service.mjs +63 -0
- package/esm2020/lib/display/tree/tree.component.mjs +125 -0
- package/esm2020/lib/display/view-overlay/view-overlay.component.mjs +58 -0
- package/esm2020/lib/shared/directives/click-area-for/click-area-for.directive.mjs +32 -0
- package/esm2020/lib/shared/directives/if-viewport-width/if-viewport-width.directive.mjs +111 -0
- package/esm2020/lib/shared/directives/popup/popup-container.directive.mjs +163 -0
- package/esm2020/lib/shared/display/pipes/date-display.pipe.mjs +50 -0
- package/esm2020/lib/shared/display/pipes/highlight-text.pipe.mjs +30 -0
- package/esm2020/lib/shared/display/pipes/relative-date.pipe.mjs +48 -0
- package/esm2020/lib/shared/display/pipes/row-count.pipe.mjs +48 -0
- package/esm2020/lib/shared/display/pipes/time-display.pipe.mjs +41 -0
- package/{esm2015/lib/shared/display.js → esm2020/lib/shared/display.mjs} +0 -0
- package/esm2020/lib/shared/form-group.helper.mjs +67 -0
- package/{esm2015/lib/shared/json-helper.js → esm2020/lib/shared/json-helper.mjs} +0 -0
- package/{esm2015/lib/shared/lodash-helper.js → esm2020/lib/shared/lodash-helper.mjs} +0 -0
- package/esm2020/lib/shared/page/page-base/page-base.component.mjs +339 -0
- package/{esm2015/lib/shared/page/page-statuses.js → esm2020/lib/shared/page/page-statuses.mjs} +0 -0
- package/esm2020/lib/shared/page/page-title/page-title.component.mjs +23 -0
- package/esm2020/lib/shared/page/page-view/page-view.component.mjs +121 -0
- package/{esm2015/lib/shared/testing/hierarchy-base-test-injector-factory.spec.js → esm2020/lib/shared/testing/hierarchy-base-test-injector-factory.spec.mjs} +0 -0
- package/esm2020/lib/shared/testing/page-base-component-test-helper.spec.mjs +30 -0
- package/{esm2015/lib/shared/testing/page-base-component-test-injector-factory.spec.js → esm2020/lib/shared/testing/page-base-component-test-injector-factory.spec.mjs} +0 -0
- package/esm2020/lib/shared/testing/public-mocks.spec.mjs +132 -0
- package/{esm2015/lib/shared/testing/spy-factory.spec.js → esm2020/lib/shared/testing/spy-factory.spec.mjs} +0 -0
- package/{esm2015/lib/shared/testing/translation-mocks.spec.js → esm2020/lib/shared/testing/translation-mocks.spec.mjs} +0 -0
- package/esm2020/lib/shared/user-preference.service.mjs +17 -0
- package/esm2020/lib/shared/wizard/wizard-base/wizard-base.component.mjs +246 -0
- package/esm2020/lib/shared/wizard/wizard-buttons/wizard-buttons.component.mjs +68 -0
- package/esm2020/lib/shared/wizard/wizard-progress/wizard-progress.component.mjs +18 -0
- package/{esm2015/public-api.js → esm2020/public-api.mjs} +0 -0
- package/fesm2015/energycap-components.mjs +10090 -0
- package/fesm2015/energycap-components.mjs.map +1 -0
- package/fesm2020/energycap-components.mjs +9999 -0
- package/fesm2020/energycap-components.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/components.module.d.ts +72 -0
- package/lib/controls/banner/banner.component.d.ts +3 -0
- package/lib/controls/button/button.component.d.ts +3 -0
- package/lib/controls/button/copy-button.directive.d.ts +3 -0
- package/lib/controls/checkbox/checkbox.component.d.ts +3 -0
- package/lib/controls/collapsible-toggle/collapsible-toggle.component.d.ts +3 -0
- package/lib/controls/combobox/combobox.component.d.ts +5 -2
- package/lib/controls/dropdown/dropdown.component.d.ts +3 -0
- package/lib/controls/file-upload/file-upload.component.d.ts +5 -2
- package/lib/controls/form-control/form-control.component.d.ts +3 -0
- package/lib/controls/form-control-base.d.ts +3 -0
- package/lib/controls/form-control-label/form-control-label.component.d.ts +3 -0
- package/lib/controls/form-group/form-group.component.d.ts +6 -3
- package/lib/controls/help-popover/help-popover.component.d.ts +3 -0
- package/lib/controls/item-picker/item-picker.component.d.ts +5 -2
- package/lib/controls/link-button/link-button.component.d.ts +3 -0
- package/lib/controls/menu/menu.component.d.ts +3 -0
- package/lib/controls/navigation/nav-item-active.directive.d.ts +3 -0
- package/lib/controls/numericbox/numericbox.component.d.ts +5 -2
- package/lib/controls/popover/popover.component.d.ts +3 -0
- package/lib/controls/radio-button/radio-button.component.d.ts +3 -0
- package/lib/controls/select/select.component.d.ts +3 -0
- package/lib/controls/tabs/tabs.component.d.ts +3 -0
- package/lib/controls/textbox/textbox.component.d.ts +3 -0
- package/lib/core/cache.service.d.ts +3 -0
- package/lib/core/error.service.d.ts +3 -0
- package/lib/core/scroll.service.d.ts +3 -0
- package/lib/core/telemetry-tracker.service.d.ts +3 -0
- package/lib/core/telemetry.service.d.ts +3 -0
- package/lib/core/validation-message.service.d.ts +3 -0
- package/lib/core/window.service.d.ts +3 -0
- package/lib/display/app-bar/app-bar.component.d.ts +3 -0
- package/lib/display/avatar/avatar.component.d.ts +3 -0
- package/lib/display/avatar/avatar.service.d.ts +3 -0
- package/lib/display/confirm/confirm.component.d.ts +5 -2
- package/lib/display/dialog/dialog-group/dialog-group.component.d.ts +3 -0
- package/lib/display/dialog/dialog.component.d.ts +3 -0
- package/lib/display/dialog/dialog.service.d.ts +3 -0
- package/lib/display/hierarchy/hierarchy-base.d.ts +3 -0
- package/lib/display/hierarchy/hierarchy-tree/hierarchy-tree.component.d.ts +3 -0
- package/lib/display/item-display/item-display.component.d.ts +3 -0
- package/lib/display/json-display/json-display.component.d.ts +5 -2
- package/lib/display/resizable/resizable-base.d.ts +3 -0
- package/lib/display/resizable/resizable.component.d.ts +3 -0
- package/lib/display/spinner/spinner.component.d.ts +3 -0
- package/lib/display/splash/splash.component.d.ts +3 -0
- package/lib/display/splash/splash.service.d.ts +3 -0
- package/lib/display/table/resizable-column.component.d.ts +3 -0
- package/lib/display/table/resizable-table.directive.d.ts +3 -0
- package/lib/display/table/searchable-table.component.d.ts +6 -3
- package/lib/display/table/table-detail-row.component.d.ts +3 -0
- package/lib/display/table/table-locked-column.component.d.ts +3 -0
- package/lib/display/table/table-master-header-row.component.d.ts +3 -0
- package/lib/display/table/table-master-row.component.d.ts +3 -0
- package/lib/display/table/table-pagination.component.d.ts +3 -0
- package/lib/display/table/table-selectable-row.component.d.ts +5 -2
- package/lib/display/table/table.component.d.ts +3 -0
- package/lib/display/tags/tags.component.d.ts +3 -0
- package/lib/display/toast/toast/toast.component.d.ts +3 -0
- package/lib/display/toast/toast.service.d.ts +3 -0
- package/lib/display/toast/toaster/toaster.component.d.ts +3 -0
- package/lib/display/tooltip/tooltip.component.d.ts +3 -0
- package/lib/display/tooltip/tooltip.service.d.ts +3 -0
- package/lib/display/tree/tree.component.d.ts +3 -0
- package/lib/display/view-overlay/view-overlay.component.d.ts +3 -0
- package/lib/shared/directives/click-area-for/click-area-for.directive.d.ts +3 -0
- package/lib/shared/directives/if-viewport-width/if-viewport-width.directive.d.ts +3 -0
- package/lib/shared/directives/popup/popup-container.directive.d.ts +3 -0
- package/lib/shared/display/pipes/date-display.pipe.d.ts +3 -0
- package/lib/shared/display/pipes/highlight-text.pipe.d.ts +3 -0
- package/lib/shared/display/pipes/relative-date.pipe.d.ts +3 -0
- package/lib/shared/display/pipes/row-count.pipe.d.ts +3 -0
- package/lib/shared/display/pipes/time-display.pipe.d.ts +3 -0
- package/lib/shared/form-group.helper.d.ts +5 -2
- package/lib/shared/page/page-base/page-base.component.d.ts +5 -2
- package/lib/shared/page/page-title/page-title.component.d.ts +3 -0
- package/lib/shared/page/page-view/page-view.component.d.ts +3 -0
- package/lib/shared/testing/public-mocks.spec.d.ts +7 -0
- package/lib/shared/user-preference.service.d.ts +3 -0
- package/lib/shared/wizard/wizard-base/wizard-base.component.d.ts +3 -0
- package/lib/shared/wizard/wizard-buttons/wizard-buttons.component.d.ts +3 -0
- package/lib/shared/wizard/wizard-progress/wizard-progress.component.d.ts +3 -0
- package/package.json +27 -15
- package/src/styles/_functions.scss +6 -4
- package/src/styles/_icons.scss +1 -1
- package/src/styles/mixins/_control-base.scss +2 -2
- package/src/styles/mixins/_form-control-base.scss +3 -1
- package/src/styles/mixins/_spinner-base.scss +3 -1
- package/bundles/energycap-components.umd.js +0 -10646
- package/bundles/energycap-components.umd.js.map +0 -1
- package/bundles/energycap-components.umd.min.js +0 -17
- package/bundles/energycap-components.umd.min.js.map +0 -1
- package/energycap-components.d.ts +0 -7
- package/energycap-components.metadata.json +0 -1
- package/esm2015/energycap-components.js +0 -8
- package/esm2015/lib/components.module.js +0 -238
- package/esm2015/lib/controls/banner/banner.component.js +0 -94
- package/esm2015/lib/controls/button/button.component.js +0 -89
- package/esm2015/lib/controls/button/copy-button.directive.js +0 -63
- package/esm2015/lib/controls/checkbox/checkbox.component.js +0 -137
- package/esm2015/lib/controls/collapsible-toggle/collapsible-toggle.component.js +0 -35
- package/esm2015/lib/controls/combobox/combobox.component.js +0 -819
- package/esm2015/lib/controls/dropdown/dropdown.component.js +0 -207
- package/esm2015/lib/controls/file-upload/file-upload.component.js +0 -172
- package/esm2015/lib/controls/form-control/form-control.component.js +0 -65
- package/esm2015/lib/controls/form-control-base.js +0 -140
- package/esm2015/lib/controls/form-control-label/form-control-label.component.js +0 -139
- package/esm2015/lib/controls/form-group/form-group.component.js +0 -254
- package/esm2015/lib/controls/help-popover/help-popover.component.js +0 -22
- package/esm2015/lib/controls/item-picker/item-picker.component.js +0 -216
- package/esm2015/lib/controls/link-button/link-button.component.js +0 -12
- package/esm2015/lib/controls/menu/menu.component.js +0 -424
- package/esm2015/lib/controls/navigation/nav-item-active.directive.js +0 -86
- package/esm2015/lib/controls/numericbox/numericbox.component.js +0 -362
- package/esm2015/lib/controls/popover/popover.component.js +0 -85
- package/esm2015/lib/controls/radio-button/radio-button.component.js +0 -78
- package/esm2015/lib/controls/select/select.component.js +0 -89
- package/esm2015/lib/controls/tabs/tabs.component.js +0 -42
- package/esm2015/lib/controls/textbox/textbox.component.js +0 -149
- package/esm2015/lib/core/error.service.js +0 -56
- package/esm2015/lib/core/scroll.service.js +0 -88
- package/esm2015/lib/core/telemetry-tracker.service.js +0 -14
- package/esm2015/lib/core/telemetry.service.js +0 -40
- package/esm2015/lib/core/validation-message.service.js +0 -185
- package/esm2015/lib/core/window.service.js +0 -191
- package/esm2015/lib/display/app-bar/app-bar.component.js +0 -42
- package/esm2015/lib/display/avatar/avatar.component.js +0 -73
- package/esm2015/lib/display/confirm/confirm.component.js +0 -127
- package/esm2015/lib/display/dialog/dialog-group/dialog-group.component.js +0 -65
- package/esm2015/lib/display/dialog/dialog.component.js +0 -229
- package/esm2015/lib/display/dialog/dialog.service.js +0 -69
- package/esm2015/lib/display/hierarchy/hierarchy-base.js +0 -106
- package/esm2015/lib/display/hierarchy/hierarchy-tree/hierarchy-tree.component.js +0 -58
- package/esm2015/lib/display/item-display/item-display.component.js +0 -57
- package/esm2015/lib/display/json-display/json-display.component.js +0 -44
- package/esm2015/lib/display/resizable/resizable-base.js +0 -119
- package/esm2015/lib/display/resizable/resizable.component.js +0 -57
- package/esm2015/lib/display/spinner/spinner.component.js +0 -12
- package/esm2015/lib/display/splash/splash.component.js +0 -45
- package/esm2015/lib/display/splash/splash.service.js +0 -34
- package/esm2015/lib/display/table/resizable-column.component.js +0 -23
- package/esm2015/lib/display/table/resizable-table.directive.js +0 -223
- package/esm2015/lib/display/table/searchable-table.component.js +0 -303
- package/esm2015/lib/display/table/table-detail-row.component.js +0 -21
- package/esm2015/lib/display/table/table-locked-column.component.js +0 -53
- package/esm2015/lib/display/table/table-master-header-row.component.js +0 -11
- package/esm2015/lib/display/table/table-master-row.component.js +0 -141
- package/esm2015/lib/display/table/table-pagination.component.js +0 -146
- package/esm2015/lib/display/table/table-selectable-row.component.js +0 -216
- package/esm2015/lib/display/table/table.component.js +0 -210
- package/esm2015/lib/display/tags/tag.js +0 -15
- package/esm2015/lib/display/tags/tags.component.js +0 -73
- package/esm2015/lib/display/toast/toast/toast.component.js +0 -70
- package/esm2015/lib/display/toast/toast.service.js +0 -34
- package/esm2015/lib/display/toast/toaster/toaster.component.js +0 -117
- package/esm2015/lib/display/tooltip/tooltip.component.js +0 -24
- package/esm2015/lib/display/tooltip/tooltip.service.js +0 -64
- package/esm2015/lib/display/tree/tree.component.js +0 -100
- package/esm2015/lib/display/view-overlay/view-overlay.component.js +0 -50
- package/esm2015/lib/shared/directives/click-area-for/click-area-for.directive.js +0 -25
- package/esm2015/lib/shared/directives/if-viewport-width/if-viewport-width.directive.js +0 -112
- package/esm2015/lib/shared/directives/popup/popup-container.directive.js +0 -160
- package/esm2015/lib/shared/display/pipes/date-display.pipe.js +0 -49
- package/esm2015/lib/shared/display/pipes/highlight-text.pipe.js +0 -26
- package/esm2015/lib/shared/display/pipes/relative-date.pipe.js +0 -49
- package/esm2015/lib/shared/display/pipes/row-count.pipe.js +0 -47
- package/esm2015/lib/shared/display/pipes/time-display.pipe.js +0 -40
- package/esm2015/lib/shared/form-group.helper.js +0 -65
- package/esm2015/lib/shared/page/page-base/page-base.component.js +0 -356
- package/esm2015/lib/shared/page/page-title/page-title.component.js +0 -19
- package/esm2015/lib/shared/page/page-view/page-view.component.js +0 -94
- package/esm2015/lib/shared/testing/page-base-component-test-helper.spec.js +0 -35
- package/esm2015/lib/shared/testing/public-mocks.spec.js +0 -126
- package/esm2015/lib/shared/user-preference.service.js +0 -15
- package/esm2015/lib/shared/wizard/wizard-base/wizard-base.component.js +0 -260
- package/esm2015/lib/shared/wizard/wizard-buttons/wizard-buttons.component.js +0 -54
- package/esm2015/lib/shared/wizard/wizard-progress/wizard-progress.component.js +0 -18
- package/fesm2015/energycap-components.js +0 -9638
- package/fesm2015/energycap-components.js.map +0 -1
|
@@ -2,6 +2,7 @@ import { PipeTransform } from '@angular/core';
|
|
|
2
2
|
import { TranslateService } from '@ngx-translate/core';
|
|
3
3
|
import { DateDisplayPipe } from './date-display.pipe';
|
|
4
4
|
import { TimeDisplayPipe } from './time-display.pipe';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
5
6
|
export declare type RelativeDateOptions = {
|
|
6
7
|
dateOnly?: boolean;
|
|
7
8
|
showTimeForToday?: boolean;
|
|
@@ -20,4 +21,6 @@ export declare class RelativeDatePipe implements PipeTransform {
|
|
|
20
21
|
* If dateOnly and timeOnly are both false, returns timeSelected formatted according to the user's date plus time preference.
|
|
21
22
|
*/
|
|
22
23
|
transform(timeSelected: string, options?: RelativeDateOptions): string;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RelativeDatePipe, never>;
|
|
25
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<RelativeDatePipe, "relativeDate", false>;
|
|
23
26
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
2
|
import { TranslateService } from '@ngx-translate/core';
|
|
3
3
|
import { PagingInfo } from '../../../display/table/table-pagination.component';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
4
5
|
export declare type RowCountInfo = {
|
|
5
6
|
totalItems: number;
|
|
6
7
|
totalItemsBeforePaging?: number;
|
|
@@ -17,4 +18,6 @@ export declare class RowCountPipe implements PipeTransform {
|
|
|
17
18
|
transform(results: RowCountInfo, objectType: string, maxItemCount?: number, pagingInfo?: PagingInfo): string;
|
|
18
19
|
private getResultsCount;
|
|
19
20
|
private getPagedResultsCount;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RowCountPipe, never>;
|
|
22
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<RowCountPipe, "rowCount", false>;
|
|
20
23
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
2
|
import { UserPreferenceService } from '../../user-preference.service';
|
|
3
3
|
import { DateDisplay } from './date-display.pipe';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
4
5
|
/**
|
|
5
6
|
* Format a time to the user's preference for display
|
|
6
7
|
*/
|
|
@@ -12,4 +13,6 @@ export declare class TimeDisplayPipe implements PipeTransform {
|
|
|
12
13
|
* Format a time for display, accounting for user's display preferences.
|
|
13
14
|
*/
|
|
14
15
|
transform(time?: DateDisplay, showSeconds?: boolean): string;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TimeDisplayPipe, never>;
|
|
17
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<TimeDisplayPipe, "timeDisplay", false>;
|
|
15
18
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UntypedFormGroup, AbstractControl, ValidatorFn } from '@angular/forms';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
2
3
|
/**
|
|
3
4
|
* Helper for Form Groups
|
|
4
5
|
*/
|
|
@@ -8,7 +9,7 @@ export declare class FormGroupHelper {
|
|
|
8
9
|
* that actually have values in updates. This method will ignore
|
|
9
10
|
* any value that is either null or undefined
|
|
10
11
|
*/
|
|
11
|
-
patchValueSafely(formGroup:
|
|
12
|
+
patchValueSafely(formGroup: UntypedFormGroup, updates: any): void;
|
|
12
13
|
/**
|
|
13
14
|
* Get an id for the form controls input
|
|
14
15
|
*/
|
|
@@ -25,4 +26,6 @@ export declare class FormGroupHelper {
|
|
|
25
26
|
* @param isZeroEmpty - If true, a numeric zero will be considered an empty value. Default is false.
|
|
26
27
|
*/
|
|
27
28
|
setRequiredFn(control: AbstractControl, keepValidators?: ValidatorFn[], isZeroEmpty?: boolean): (value?: string | number | null | undefined) => void;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormGroupHelper, never>;
|
|
30
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FormGroupHelper>;
|
|
28
31
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AfterViewInit, Injector, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { UntypedFormGroup } from '@angular/forms';
|
|
3
3
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
4
4
|
import { TranslateService } from '@ngx-translate/core';
|
|
5
5
|
import { Observable, Subject } from 'rxjs';
|
|
@@ -11,6 +11,7 @@ import { SplashService } from '../../../display/splash/splash.service';
|
|
|
11
11
|
import { Help } from '../../../display/help/help-types';
|
|
12
12
|
import { Overlay } from '../../../display/view-overlay/view-overlay.component';
|
|
13
13
|
import { PageStatus } from '../page-statuses';
|
|
14
|
+
import * as i0 from "@angular/core";
|
|
14
15
|
export declare class PageInitResult {
|
|
15
16
|
title?: string;
|
|
16
17
|
subTitle?: string;
|
|
@@ -52,7 +53,7 @@ export declare abstract class PageBaseComponent implements OnInit, AfterViewInit
|
|
|
52
53
|
/**
|
|
53
54
|
* Form group to be used if needed by the page
|
|
54
55
|
*/
|
|
55
|
-
formGroup:
|
|
56
|
+
formGroup: UntypedFormGroup;
|
|
56
57
|
/**
|
|
57
58
|
* Default invalid form message, override if a more specific message is needed
|
|
58
59
|
*/
|
|
@@ -231,4 +232,6 @@ export declare abstract class PageBaseComponent implements OnInit, AfterViewInit
|
|
|
231
232
|
* Sets up the router event subscriptions
|
|
232
233
|
*/
|
|
233
234
|
private setUpRouterSubscriptions;
|
|
235
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PageBaseComponent, never>;
|
|
236
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PageBaseComponent, never, never, {}, {}, never, never, false>;
|
|
234
237
|
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
1
2
|
export declare class PageTitleComponent {
|
|
2
3
|
title?: string;
|
|
3
4
|
titleIcon?: string;
|
|
4
5
|
subTitle?: string;
|
|
5
6
|
subTitleUrl?: string;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PageTitleComponent, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PageTitleComponent, "app-page-title", never, { "title": "title"; "titleIcon": "titleIcon"; "subTitle": "subTitle"; "subTitleUrl": "subTitleUrl"; }, {}, never, never, false>;
|
|
6
9
|
}
|
|
@@ -2,6 +2,7 @@ import { EventEmitter, TemplateRef } from '@angular/core';
|
|
|
2
2
|
import { MenuItem } from '../../../controls/menu/menu.component';
|
|
3
3
|
import { NavItem } from '../../../controls/navigation/nav-item';
|
|
4
4
|
import { Overlay } from '../../../display/view-overlay/view-overlay.component';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class PageViewComponent {
|
|
6
7
|
/**
|
|
7
8
|
* Set to true when page-view is inside a dialog to adjust styles and hide breadcrumbs.
|
|
@@ -81,4 +82,6 @@ export declare class PageViewComponent {
|
|
|
81
82
|
constructor();
|
|
82
83
|
primaryAction(event: any): void;
|
|
83
84
|
secondaryAction(event: any): void;
|
|
85
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PageViewComponent, never>;
|
|
86
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PageViewComponent, "ec-page-view", never, { "isDialog": "isDialog"; "readonly": "readonly"; "status": "status"; "showHeader": "showHeader"; "errors": "errors"; "breadcrumbs": "breadcrumbs"; "title": "title"; "titleIcon": "titleIcon"; "subTitle": "subTitle"; "subTitleUrl": "subTitleUrl"; "moreActionsLabel": "moreActionsLabel"; "moreActions": "moreActions"; "secondaryActionLabel": "secondaryActionLabel"; "hideSecondaryAction": "hideSecondaryAction"; "primaryActionLabel": "primaryActionLabel"; "hidePrimaryAction": "hidePrimaryAction"; "customTitleTemplate": "customTitleTemplate"; "customActionsTemplate": "customActionsTemplate"; "customHeaderTemplate": "customHeaderTemplate"; "footerTemplate": "footerTemplate"; "stickyFooter": "stickyFooter"; "fitContent": "fitContent"; }, { "onPrimaryAction": "onPrimaryAction"; "onSecondaryAction": "onSecondaryAction"; }, never, ["*"], false>;
|
|
84
87
|
}
|
|
@@ -8,6 +8,7 @@ import { Subject } from 'rxjs';
|
|
|
8
8
|
import { DialogResult, DialogOptions } from '../../display/dialog/dialog-types';
|
|
9
9
|
import { DialogContent } from '../../display/dialog/dialog-content';
|
|
10
10
|
import { Router } from '@angular/router';
|
|
11
|
+
import * as i0 from "@angular/core";
|
|
11
12
|
/**
|
|
12
13
|
* Mock dialog based on the content type, used to test open and close functionality
|
|
13
14
|
* @deprecated Most components that need a dialog should use `dialogService.openDialog()`, which is much easier to test
|
|
@@ -22,6 +23,8 @@ export declare class MockDialog<T> {
|
|
|
22
23
|
lastContext?: T;
|
|
23
24
|
open(component: Type<DialogContent<T>>, context?: T, options?: DialogOptions): Promise<void>;
|
|
24
25
|
close(result?: DialogResult<T>): void;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MockDialog<any>, never>;
|
|
27
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MockDialog<any>, never, never, { "size": "size"; }, { "opened": "opened"; "closed": "closed"; }, never, never, false>;
|
|
25
28
|
}
|
|
26
29
|
/**
|
|
27
30
|
* Mocked dialog content to test save and cancel
|
|
@@ -39,6 +42,8 @@ export declare class MockDialogContent<T> implements DialogContent<T> {
|
|
|
39
42
|
*/
|
|
40
43
|
export declare class MockDateDisplayPipe implements PipeTransform {
|
|
41
44
|
transform(value?: Date | string | null): string;
|
|
45
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MockDateDisplayPipe, never>;
|
|
46
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<MockDateDisplayPipe, "dateDisplay", false>;
|
|
42
47
|
}
|
|
43
48
|
/** Return a Router spy object that can be used as a mock in tests.*/
|
|
44
49
|
export declare function mockRouterFactory(): jasmine.SpyObj<Router>;
|
|
@@ -77,4 +82,6 @@ export declare class MockActivatedRoute {
|
|
|
77
82
|
paramMap: Subject<unknown>;
|
|
78
83
|
queryParamMap: Subject<unknown>;
|
|
79
84
|
routeConfig: {};
|
|
85
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MockActivatedRoute, never>;
|
|
86
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MockActivatedRoute>;
|
|
80
87
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
2
3
|
export interface DatePreferenceContainer {
|
|
3
4
|
preference: {
|
|
4
5
|
dateFormat: string | null | undefined;
|
|
@@ -7,4 +8,6 @@ export interface DatePreferenceContainer {
|
|
|
7
8
|
}
|
|
8
9
|
export declare class UserPreferenceService {
|
|
9
10
|
getPreferences(): Observable<DatePreferenceContainer>;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UserPreferenceService, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<UserPreferenceService>;
|
|
10
13
|
}
|
|
@@ -4,6 +4,7 @@ import { NavItem } from '../../../controls/navigation/nav-item';
|
|
|
4
4
|
import { TelemetryService } from '../../../core/telemetry.service';
|
|
5
5
|
import { Help } from '../../../display/help/help-types';
|
|
6
6
|
import { PageBaseComponent, PageInitResult } from '../../page/page-base/page-base.component';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
7
8
|
export interface WizardTab extends NavItem {
|
|
8
9
|
/**
|
|
9
10
|
* Path to a form group/array/control contained in the form's main form group.
|
|
@@ -128,4 +129,6 @@ export declare abstract class WizardBaseComponent extends PageBaseComponent {
|
|
|
128
129
|
* @param tab Tab to set
|
|
129
130
|
*/
|
|
130
131
|
private setCurrentTab;
|
|
132
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WizardBaseComponent, never>;
|
|
133
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<WizardBaseComponent, never, never, {}, {}, never, never, false>;
|
|
131
134
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import { DisplayStatus } from '../../display';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class WizardButtonsComponent {
|
|
4
5
|
nextLabel?: string;
|
|
5
6
|
backLabel?: string;
|
|
@@ -21,4 +22,6 @@ export declare class WizardButtonsComponent {
|
|
|
21
22
|
onSave(event: any): void;
|
|
22
23
|
onPreviousTab(): void;
|
|
23
24
|
onNextTab(): void;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WizardButtonsComponent, never>;
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WizardButtonsComponent, "ec-wizard-buttons", never, { "nextLabel": "nextLabel"; "backLabel": "backLabel"; "cancelLabel": "cancelLabel"; "saveLabel": "saveLabel"; "cancelId": "cancelId"; "saveId": "saveId"; "tabindex": "tabindex"; "status": "status"; "showBack": "showBack"; "showSave": "showSave"; "hideNextSaveButton": "hideNextSaveButton"; }, { "cancel": "cancel"; "save": "save"; "nextTab": "nextTab"; "previousTab": "previousTab"; }, never, never, false>;
|
|
24
27
|
}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { NavGroup } from '../../../controls/navigation/nav-group';
|
|
2
2
|
import { WizardTab } from '../wizard-base/wizard-base.component';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class WizardProgressComponent {
|
|
4
5
|
tabGroup?: NavGroup;
|
|
5
6
|
currentTab?: WizardTab;
|
|
6
7
|
constructor();
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WizardProgressComponent, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WizardProgressComponent, "ec-wizard-progress", never, { "tabGroup": "tabGroup"; "currentTab": "currentTab"; }, {}, never, never, false>;
|
|
7
10
|
}
|
package/package.json
CHANGED
|
@@ -1,28 +1,40 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@energycap/components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.32.0",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"tslib": "^2.0.0"
|
|
6
6
|
},
|
|
7
7
|
"peerDependencies": {
|
|
8
|
-
"@angular/common": "
|
|
9
|
-
"@angular/core": "
|
|
10
|
-
"@angular/forms": "
|
|
11
|
-
"@angular/router": "
|
|
12
|
-
"@angular/cdk": "
|
|
13
|
-
"@energycap/energycap-icons": "^
|
|
14
|
-
"@ngx-translate/core": "^
|
|
8
|
+
"@angular/common": ">=14.2.0",
|
|
9
|
+
"@angular/core": ">=14.2.0",
|
|
10
|
+
"@angular/forms": ">=14.2.0",
|
|
11
|
+
"@angular/router": ">=14.2.0",
|
|
12
|
+
"@angular/cdk": ">=14.2.0",
|
|
13
|
+
"@energycap/energycap-icons": "^4.0.0",
|
|
14
|
+
"@ngx-translate/core": "^14.0.0",
|
|
15
15
|
"popper.js": "~1.11.1",
|
|
16
16
|
"lodash": "^4.17.21",
|
|
17
17
|
"moment": "^2.29.0",
|
|
18
18
|
"ngx-clipboard": "^12.0.0"
|
|
19
19
|
},
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"fesm2015": "fesm2015/energycap-components.
|
|
25
|
-
"typings": "
|
|
26
|
-
"
|
|
20
|
+
"module": "fesm2015/energycap-components.mjs",
|
|
21
|
+
"es2020": "fesm2020/energycap-components.mjs",
|
|
22
|
+
"esm2020": "esm2020/energycap-components.mjs",
|
|
23
|
+
"fesm2020": "fesm2020/energycap-components.mjs",
|
|
24
|
+
"fesm2015": "fesm2015/energycap-components.mjs",
|
|
25
|
+
"typings": "index.d.ts",
|
|
26
|
+
"exports": {
|
|
27
|
+
"./package.json": {
|
|
28
|
+
"default": "./package.json"
|
|
29
|
+
},
|
|
30
|
+
".": {
|
|
31
|
+
"types": "./index.d.ts",
|
|
32
|
+
"esm2020": "./esm2020/energycap-components.mjs",
|
|
33
|
+
"es2020": "./fesm2020/energycap-components.mjs",
|
|
34
|
+
"es2015": "./fesm2015/energycap-components.mjs",
|
|
35
|
+
"node": "./fesm2015/energycap-components.mjs",
|
|
36
|
+
"default": "./fesm2020/energycap-components.mjs"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
27
39
|
"sideEffects": false
|
|
28
40
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
// Common functions
|
|
2
2
|
|
|
3
3
|
// Returns the measurement of an inner radius by subtracting 1px from the outer-radius given
|
|
4
|
+
@use "sass:math";
|
|
5
|
+
|
|
4
6
|
@function inner-radius($outer-radius) {
|
|
5
7
|
@return calc(#{$outer-radius} - 1px);
|
|
6
8
|
}
|
|
@@ -22,7 +24,7 @@
|
|
|
22
24
|
/// @returns {Number} The same number, sans unit.
|
|
23
25
|
/// @source https://github.com/zurb/foundation-apps/blob/master/scss/helpers/_functions.scss
|
|
24
26
|
@function strip-unit($num) {
|
|
25
|
-
@return $num
|
|
27
|
+
@return math.div($num, $num * 0 + 1);
|
|
26
28
|
}
|
|
27
29
|
|
|
28
30
|
/// Converts one or more pixel values into matching rem values.
|
|
@@ -43,7 +45,7 @@
|
|
|
43
45
|
// If the base font size is a %, then multiply it by 16px
|
|
44
46
|
// This is because 100% font size = 16px in most all browsers
|
|
45
47
|
@if unit($base) == '%' {
|
|
46
|
-
$base: ($base
|
|
48
|
+
$base: math.div($base, 100%) * 16px;
|
|
47
49
|
}
|
|
48
50
|
|
|
49
51
|
// Using rem as base allows correct scaling
|
|
@@ -83,7 +85,7 @@
|
|
|
83
85
|
|
|
84
86
|
// Calculate rem if units for $value is not rem or em
|
|
85
87
|
@if unit($value) != 'rem' {
|
|
86
|
-
$value: strip-unit($value)
|
|
88
|
+
$value: math.div(strip-unit($value), strip-unit($base)) * 1rem;
|
|
87
89
|
}
|
|
88
90
|
|
|
89
91
|
// Turn 0rem into 0
|
|
@@ -100,7 +102,7 @@
|
|
|
100
102
|
}
|
|
101
103
|
|
|
102
104
|
@function rem-to-em($value, $rem-base: 1rem) {
|
|
103
|
-
$value: strip-unit($value
|
|
105
|
+
$value: strip-unit(math.div($value, $rem-base)) * 1em;
|
|
104
106
|
@return $value;
|
|
105
107
|
}
|
|
106
108
|
|
package/src/styles/_icons.scss
CHANGED
|
@@ -59,9 +59,9 @@ $control-bg-read-only: rgba($black, .12);
|
|
|
59
59
|
@error "$line-height must be in rems in order to do calculations, was #{unit($line-height)}."
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
$padding-y: ($height - $line-height)
|
|
62
|
+
$padding-y: ($height - $line-height) * 0.5;
|
|
63
63
|
@if $borders {
|
|
64
|
-
$padding-y: (($height - $line-height)
|
|
64
|
+
$padding-y: (($height - $line-height) * 0.5) - $control-border-width;
|
|
65
65
|
}
|
|
66
66
|
padding: $padding-y $control-padding-x;
|
|
67
67
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use "sass:math";
|
|
2
|
+
|
|
1
3
|
@import 'control-base';
|
|
2
4
|
|
|
3
5
|
$form-control-icon-size: 1rem;
|
|
@@ -465,7 +467,7 @@ $checkbox-indicator-size: $form-control-icon-size;
|
|
|
465
467
|
@each $count in (3,4,5) {
|
|
466
468
|
.toggle-options-#{$count} {
|
|
467
469
|
a {
|
|
468
|
-
width: percentage(1
|
|
470
|
+
width: percentage(math.div(1, $count));
|
|
469
471
|
}
|
|
470
472
|
|
|
471
473
|
input:checked:last-of-type ~ a {
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
// Animation
|
|
2
|
+
@use "sass:math";
|
|
3
|
+
|
|
2
4
|
@keyframes sk-bouncedelay {
|
|
3
5
|
0%, 80%, 100% {
|
|
4
6
|
opacity: 0;
|
|
@@ -12,7 +14,7 @@
|
|
|
12
14
|
height: $dot-size;
|
|
13
15
|
background-color: var(--ec-color-interactive);
|
|
14
16
|
animation: sk-bouncedelay 1.7s infinite ease-in-out both;
|
|
15
|
-
margin-right: $dot-size
|
|
17
|
+
margin-right: math.div($dot-size, 3);
|
|
16
18
|
|
|
17
19
|
&:nth-child(1) {
|
|
18
20
|
animation-delay: -0.60s;
|