novo-elements 13.2.0 → 13.4.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/addons/ckeditor/CKEditor.scss +8 -0
- package/elements/agenda/week/AgendaWeekView.scss +1 -1
- package/elements/breadcrumbs/Breadcrumb.scss +1 -1
- package/elements/button/styles/button-dialogue.scss +12 -0
- package/elements/button/styles/button-icon.scss +20 -0
- package/elements/button/styles/button-primary.scss +16 -1
- package/elements/button/styles/button-secondary.scss +14 -1
- package/elements/button/styles/button-standard.scss +14 -0
- package/elements/button/styles/button.scss +12 -1
- package/elements/card/Card.scss +80 -19
- package/elements/card/CardContent.scss +3 -0
- package/elements/card/CardHeader.scss +23 -0
- package/elements/card/index.d.ts +5 -3
- package/elements/category-dropdown/CategoryDropdown.scss +1 -1
- package/elements/checkbox/CheckList.scss +69 -0
- package/elements/checkbox/Checkbox.scss +104 -0
- package/elements/chips/Chip.scss +47 -1
- package/elements/chips/Chips.scss +9 -0
- package/elements/common/index.d.ts +14 -4
- package/elements/common/option/option.component.scss +11 -0
- package/elements/common/typography/text.mixins.scss +1 -1
- package/elements/data-table/data-table.component.scss +81 -3
- package/elements/data-table/pagination/data-table-pagination.component.scss +73 -0
- package/elements/date-picker/DatePicker.scss +1 -6
- package/elements/date-picker/DatePickerInput.scss +5 -0
- package/elements/date-time-picker/_DateTimePicker.scss +1 -1
- package/elements/dropdown/Dropdown.scss +17 -1
- package/elements/field/field.scss +10 -6
- package/elements/field/hint/hint.scss +6 -0
- package/elements/form/ControlGroup.scss +13 -0
- package/elements/form/Form.scss +260 -1
- package/elements/form/extras/address/Address.scss +77 -0
- package/elements/form/fieldset-header.scss +32 -0
- package/elements/form/index.d.ts +14 -4
- package/elements/header/Header.scss +45 -3
- package/elements/layout/index.d.ts +28 -4
- package/elements/list/list-item-content.scss +11 -10
- package/elements/menu/menu-content.component.scss +1 -0
- package/elements/modal/modal.component.scss +3 -13
- package/elements/modal/notification.component.scss +1 -6
- package/elements/picker/Picker.scss +26 -5
- package/elements/picker/extras/picker-results/PickerResults.scss +52 -0
- package/elements/progress/Progress.scss +8 -0
- package/elements/progress/ProgressBar.scss +4 -1
- package/elements/search/SearchBox.scss +53 -0
- package/elements/search/index.d.ts +19 -9
- package/elements/select/Select.scss +1 -1
- package/elements/simple-table/table.scss +1 -1
- package/elements/stepper/stepper.component.scss +4 -4
- package/elements/switch/Switch.scss +39 -3
- package/elements/tabbed-group-picker/TabbedGroupPicker.scss +47 -0
- package/elements/tabs/tab.scss +53 -14
- package/elements/tiles/Tiles.scss +24 -2
- package/elements/time-picker/TimePicker.scss +2 -2
- package/elements/time-picker/TimePickerInput.scss +7 -2
- package/elements/tip-well/TipWell.scss +34 -0
- package/elements/tip-well/index.d.ts +5 -1
- package/elements/toolbar/toolbar.component.scss +15 -0
- package/elements/tooltip/Tooltip.scss +19 -22
- package/elements/tooltip/index.d.ts +2 -1
- package/fesm2022/novo-elements-addons-ckeditor.mjs +2 -2
- package/fesm2022/novo-elements-addons-ckeditor.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-agenda.mjs +2 -2
- package/fesm2022/novo-elements-elements-breadcrumbs.mjs +3 -3
- package/fesm2022/novo-elements-elements-breadcrumbs.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-button.mjs +2 -2
- package/fesm2022/novo-elements-elements-button.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-card.mjs +27 -21
- package/fesm2022/novo-elements-elements-card.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-category-dropdown.mjs +2 -2
- package/fesm2022/novo-elements-elements-category-dropdown.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-checkbox.mjs +4 -4
- package/fesm2022/novo-elements-elements-checkbox.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-chips.mjs +6 -6
- package/fesm2022/novo-elements-elements-chips.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-common.mjs +52 -21
- package/fesm2022/novo-elements-elements-common.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-data-table.mjs +4 -4
- package/fesm2022/novo-elements-elements-data-table.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-date-picker.mjs +4 -4
- package/fesm2022/novo-elements-elements-date-picker.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-date-time-picker.mjs +2 -2
- package/fesm2022/novo-elements-elements-date-time-picker.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-dropdown.mjs +2 -2
- package/fesm2022/novo-elements-elements-dropdown.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-field.mjs +4 -4
- package/fesm2022/novo-elements-elements-field.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-form.mjs +135 -78
- package/fesm2022/novo-elements-elements-form.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-header.mjs +2 -2
- package/fesm2022/novo-elements-elements-header.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-layout.mjs +73 -14
- package/fesm2022/novo-elements-elements-layout.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-list.mjs +2 -2
- package/fesm2022/novo-elements-elements-list.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-menu.mjs +2 -2
- package/fesm2022/novo-elements-elements-menu.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-modal.mjs +4 -4
- package/fesm2022/novo-elements-elements-modal.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-multi-picker.mjs +2 -2
- package/fesm2022/novo-elements-elements-multi-picker.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-picker.mjs +6 -6
- package/fesm2022/novo-elements-elements-picker.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-progress.mjs +4 -4
- package/fesm2022/novo-elements-elements-progress.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-search.mjs +63 -17
- package/fesm2022/novo-elements-elements-search.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-select.mjs +2 -2
- package/fesm2022/novo-elements-elements-select.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-simple-table.mjs +4 -4
- package/fesm2022/novo-elements-elements-simple-table.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-stepper.mjs +6 -6
- package/fesm2022/novo-elements-elements-stepper.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-switch.mjs +2 -2
- package/fesm2022/novo-elements-elements-switch.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-tabbed-group-picker.mjs +2 -2
- package/fesm2022/novo-elements-elements-tabbed-group-picker.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-tabs.mjs +4 -4
- package/fesm2022/novo-elements-elements-tabs.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-tiles.mjs +2 -2
- package/fesm2022/novo-elements-elements-tiles.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-time-picker.mjs +4 -4
- package/fesm2022/novo-elements-elements-time-picker.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-tip-well.mjs +26 -6
- package/fesm2022/novo-elements-elements-tip-well.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-toolbar.mjs +2 -2
- package/fesm2022/novo-elements-elements-toolbar.mjs.map +1 -1
- package/fesm2022/novo-elements-elements-tooltip.mjs +8 -4
- package/fesm2022/novo-elements-elements-tooltip.mjs.map +1 -1
- package/fesm2022/novo-elements-utils.mjs +4822 -364
- package/fesm2022/novo-elements-utils.mjs.map +1 -1
- package/package.json +1 -1
- package/styles/content/links.scss +4 -0
- package/styles/themes/bh2026.scss +131 -53
- package/styles/typography.scss +6 -0
- package/styles/variables.scss +2 -0
- package/utils/index.d.ts +2 -2
|
@@ -276,7 +276,7 @@ class NovoTimePickerElement {
|
|
|
276
276
|
[disabled]="saveDisabled"
|
|
277
277
|
(click)="save()">{{ labels.save }}</novo-button>
|
|
278
278
|
</div>
|
|
279
|
-
`, isInline: true, styles: [":host{display:block;width:min-content;overflow:hidden;border-radius:var(--border-radius-sm);background-color:var(--background-bright);box-shadow:0 1px 3px #00000026,0 2px 7px #0000001a;z-index:1000}:host .digital{background-color:var(--selection);display:flex;justify-content:center}:host .digital.inline{background:#fff;border-bottom:1px solid #f0f0f0}:host .digital.inline.military{border-bottom:none}:host .digital.inline .digital--inner{flex:1}:host .digital.inline .digital--inner .control-block{display:flex;flex:1}:host .digital.inline .digital--inner .control-block .digital--period{color:var(--selection);cursor:pointer;font-size:1em;opacity:.6;padding:1rem;flex:1}:host .digital.inline .digital--inner .control-block .digital--period.active{opacity:1;background-color:var(--selection);color:#fff}:host .digital--inner{display:flex;text-align:center;align-items:center;justify-content:center}:host .digital--clock{color:#fff;font-size:1.8em;font-weight:500}:host .control-block{display:inline-block}:host .digital--period{display:block;color:#fff;cursor:pointer;font-size:1em;opacity:.6;text-transform:uppercase;font-weight:400}:host .digital--period.active{opacity:1;font-weight:600}:host .increments{position:relative;height:250px;width:auto;display:flex;flex-flow:row nowrap}:host .increments novo-list{overflow-y:auto;overflow-x:hidden;height:100%;flex:1;scroll-snap-type:y mandatory;-ms-overflow-style:none;scrollbar-width:none}:host .increments novo-list::-webkit-scrollbar{display:none}:host .increments .increments--hour,:host .increments .increments--minute,:host .increments .increments--meridian{padding:5px 16px;width:50px;scroll-snap-align:start}:host .increments .increments--hour ::ng-deep .list-item,:host .increments .increments--minute ::ng-deep .list-item,:host .increments .increments--meridian ::ng-deep .list-item{line-height:19px}:host .increments .increments--hour:focus,:host .increments .increments--hour:hover,:host .increments .increments--minute:focus,:host .increments .increments--minute:hover,:host .increments .increments--meridian:focus,:host .increments .increments--meridian:hover{background:var(--selection);color:var(--text-selection);filter:brightness(1.25)}:host .increments .increments--hour.active,:host .increments .increments--minute.active,:host .increments .increments--meridian.active{background:var(--selection);color:var(--text-selection);font-weight:500}:host .analog{height:250px;width:250px;position:relative;margin:10% auto}:host .analog--inner{inset:0;width:100%;position:absolute;transition:transform 125ms linear}:host .analog--face{inset:5px;position:absolute;border-radius:50%}:host .analog--hand--hours{width:240px;height:240px;display:block;position:absolute;top:0;border-radius:50%;transform:rotate(0);transition:transform .1s linear;z-index:1}:host .analog--hand--hours:before{content:\" \";width:2px;top:0;bottom:0;left:30%;margin:30%;z-index:-1;display:block;position:absolute;transform:rotate(90deg)}:host .analog--hand--hours .analog--ball{height:3rem;width:3rem;display:block;right:3.2rem;top:50%;margin-top:calc(-1 * var(--spacing-xl));border-radius:50%;position:absolute;border:3px solid var(--selection);background:var(--selection)}:host .analog--hand--hours.hour-12{transform:rotate(-90deg)}:host .analog--hand--hours.hour-1{transform:rotate(-60deg)}:host .analog--hand--hours.hour-2{transform:rotate(-30deg)}:host .analog--hand--hours.hour-3{transform:rotate(0)}:host .analog--hand--hours.hour-4{transform:rotate(30deg)}:host .analog--hand--hours.hour-5{transform:rotate(60deg)}:host .analog--hand--hours.hour-6{transform:rotate(90deg)}:host .analog--hand--hours.hour-7{transform:rotate(120deg)}:host .analog--hand--hours.hour-8{transform:rotate(150deg)}:host .analog--hand--hours.hour-9{transform:rotate(180deg)}:host .analog--hand--hours.hour-10{transform:rotate(210deg)}:host .analog--hand--hours.hour-11{transform:rotate(240deg)}:host .analog--hand--minutes{width:200px;height:200px;margin:20px;display:block;position:absolute;top:0;border-radius:50%;transform:rotate(0);transition:transform .1s linear;z-index:1}:host .analog--hand--minutes:before{left:23%;margin:33%;content:\" \";width:2px;top:0;bottom:0;z-index:-1;display:block;position:absolute;transform:rotate(90deg)}:host .analog--hand--minutes .analog--ball{display:block;top:50%;border-radius:50%;position:absolute;height:2.4rem;width:2.4rem;right:4.2rem;margin-top:-1.2rem;border:2px solid var(--selection);background:var(--selection);transition:all .16s ease-in-out}:host .analog--hand--minutes .analog--ball.between{height:1px;border-radius:2em;margin-top:0}:host .analog--hand--minutes.min-00{transform:rotate(-90deg)}:host .analog--hand--minutes.min-01{transform:rotate(-84deg)}:host .analog--hand--minutes.min-02{transform:rotate(-78deg)}:host .analog--hand--minutes.min-03{transform:rotate(-72deg)}:host .analog--hand--minutes.min-04{transform:rotate(-66deg)}:host .analog--hand--minutes.min-05{transform:rotate(-60deg)}:host .analog--hand--minutes.min-06{transform:rotate(-54deg)}:host .analog--hand--minutes.min-07{transform:rotate(-48deg)}:host .analog--hand--minutes.min-08{transform:rotate(-42deg)}:host .analog--hand--minutes.min-09{transform:rotate(-36deg)}:host .analog--hand--minutes.min-10{transform:rotate(-30deg)}:host .analog--hand--minutes.min-11{transform:rotate(-24deg)}:host .analog--hand--minutes.min-12{transform:rotate(-18deg)}:host .analog--hand--minutes.min-13{transform:rotate(-12deg)}:host .analog--hand--minutes.min-14{transform:rotate(-6deg)}:host .analog--hand--minutes.min-15{transform:rotate(0)}:host .analog--hand--minutes.min-16{transform:rotate(6deg)}:host .analog--hand--minutes.min-17{transform:rotate(12deg)}:host .analog--hand--minutes.min-18{transform:rotate(18deg)}:host .analog--hand--minutes.min-19{transform:rotate(24deg)}:host .analog--hand--minutes.min-20{transform:rotate(30deg)}:host .analog--hand--minutes.min-21{transform:rotate(36deg)}:host .analog--hand--minutes.min-22{transform:rotate(42deg)}:host .analog--hand--minutes.min-23{transform:rotate(48deg)}:host .analog--hand--minutes.min-24{transform:rotate(54deg)}:host .analog--hand--minutes.min-25{transform:rotate(60deg)}:host .analog--hand--minutes.min-26{transform:rotate(66deg)}:host .analog--hand--minutes.min-27{transform:rotate(72deg)}:host .analog--hand--minutes.min-28{transform:rotate(78deg)}:host .analog--hand--minutes.min-29{transform:rotate(84deg)}:host .analog--hand--minutes.min-30{transform:rotate(90deg)}:host .analog--hand--minutes.min-31{transform:rotate(96deg)}:host .analog--hand--minutes.min-32{transform:rotate(102deg)}:host .analog--hand--minutes.min-33{transform:rotate(108deg)}:host .analog--hand--minutes.min-34{transform:rotate(114deg)}:host .analog--hand--minutes.min-35{transform:rotate(120deg)}:host .analog--hand--minutes.min-36{transform:rotate(126deg)}:host .analog--hand--minutes.min-37{transform:rotate(132deg)}:host .analog--hand--minutes.min-38{transform:rotate(138deg)}:host .analog--hand--minutes.min-39{transform:rotate(144deg)}:host .analog--hand--minutes.min-40{transform:rotate(150deg)}:host .analog--hand--minutes.min-41{transform:rotate(156deg)}:host .analog--hand--minutes.min-42{transform:rotate(162deg)}:host .analog--hand--minutes.min-43{transform:rotate(168deg)}:host .analog--hand--minutes.min-44{transform:rotate(174deg)}:host .analog--hand--minutes.min-45{transform:rotate(180deg)}:host .analog--hand--minutes.min-46{transform:rotate(186deg)}:host .analog--hand--minutes.min-47{transform:rotate(192deg)}:host .analog--hand--minutes.min-48{transform:rotate(198deg)}:host .analog--hand--minutes.min-49{transform:rotate(204deg)}:host .analog--hand--minutes.min-50{transform:rotate(210deg)}:host .analog--hand--minutes.min-51{transform:rotate(216deg)}:host .analog--hand--minutes.min-52{transform:rotate(222deg)}:host .analog--hand--minutes.min-53{transform:rotate(228deg)}:host .analog--hand--minutes.min-54{transform:rotate(234deg)}:host .analog--hand--minutes.min-55{transform:rotate(240deg)}:host .analog--hand--minutes.min-56{transform:rotate(246deg)}:host .analog--hand--minutes.min-57{transform:rotate(252deg)}:host .analog--hand--minutes.min-58{transform:rotate(258deg)}:host .analog--hand--minutes.min-59{transform:rotate(264deg)}:host .analog--center{height:12rem;width:12rem;border-radius:50%;top:50%;left:50%;transform:translate(-50%,-50%);z-index:1;margin-top:1px;margin-left:1px;display:block;position:absolute;background-color:var(--background-main)}:host .analog--hour,:host .analog--minute{font-size:1.6rem;color:#666;left:50%;top:50%;z-index:3;text-align:center;width:40px;padding:8px 0;border-radius:50%;cursor:pointer;margin-left:-20px;margin-top:-20px;position:absolute}:host .analog--hour.active,:host .analog--minute.active{color:#fff}:host .analog--minute{font-size:var(--font-size-xs);margin-left:-20px;margin-top:-16px}:host .analog--hours,:host .analog--minutes{width:250px;height:250px;float:left;position:relative}:host .analog--minutes{position:absolute}:host .analog--hour:nth-child(1){transform:rotate(-60deg) translate(4.5em) rotate(60deg)}:host .analog--minute:nth-child(1){transform:rotate(-60deg) translate(4.5em) rotate(60deg)}:host .analog--hour:nth-child(2){transform:rotate(-30deg) translate(4.5em) rotate(30deg)}:host .analog--minute:nth-child(2){transform:rotate(-30deg) translate(4.5em) rotate(30deg)}:host .analog--hour:nth-child(3){transform:rotate(0) translate(4.5em) rotate(0)}:host .analog--minute:nth-child(3){transform:rotate(0) translate(4.5em) rotate(0)}:host .analog--hour:nth-child(4){transform:rotate(30deg) translate(4.5em) rotate(-30deg)}:host .analog--minute:nth-child(4){transform:rotate(30deg) translate(4.5em) rotate(-30deg)}:host .analog--hour:nth-child(5){transform:rotate(60deg) translate(4.5em) rotate(-60deg)}:host .analog--minute:nth-child(5){transform:rotate(60deg) translate(4.5em) rotate(-60deg)}:host .analog--hour:nth-child(6){transform:rotate(90deg) translate(4.5em) rotate(-90deg)}:host .analog--minute:nth-child(6){transform:rotate(90deg) translate(4.5em) rotate(-90deg)}:host .analog--hour:nth-child(7){transform:rotate(120deg) translate(4.5em) rotate(-120deg)}:host .analog--minute:nth-child(7){transform:rotate(120deg) translate(4.5em) rotate(-120deg)}:host .analog--hour:nth-child(8){transform:rotate(150deg) translate(4.5em) rotate(-150deg)}:host .analog--minute:nth-child(8){transform:rotate(150deg) translate(4.5em) rotate(-150deg)}:host .analog--hour:nth-child(9){transform:rotate(180deg) translate(4.5em) rotate(-180deg)}:host .analog--minute:nth-child(9){transform:rotate(180deg) translate(4.5em) rotate(-180deg)}:host .analog--hour:nth-child(10){transform:rotate(210deg) translate(4.5em) rotate(-210deg)}:host .analog--minute:nth-child(10){transform:rotate(210deg) translate(4.5em) rotate(-210deg)}:host .analog--hour:nth-child(11){transform:rotate(240deg) translate(4.5em) rotate(-240deg)}:host .analog--minute:nth-child(11){transform:rotate(240deg) translate(4.5em) rotate(-240deg)}:host .analog--hour:nth-child(12){transform:rotate(270deg) translate(4.5em) rotate(-270deg)}:host .analog--minute:nth-child(12){transform:rotate(270deg) translate(4.5em) rotate(-270deg)}:host.military .analog--hour:nth-child(1){transform:rotate(-90deg) translate(8rem) rotate(90deg)}:host.military .analog--hand--hours.hour-0{transform:rotate(-90deg)}:host.military .analog--hour:nth-child(2){transform:rotate(-75deg) translate(8rem) rotate(75deg)}:host.military .analog--hand--hours.hour-1{transform:rotate(-75deg)}:host.military .analog--hour:nth-child(3){transform:rotate(-60deg) translate(8rem) rotate(60deg)}:host.military .analog--hand--hours.hour-2{transform:rotate(-60deg)}:host.military .analog--hour:nth-child(4){transform:rotate(-45deg) translate(8rem) rotate(45deg)}:host.military .analog--hand--hours.hour-3{transform:rotate(-45deg)}:host.military .analog--hour:nth-child(5){transform:rotate(-30deg) translate(8rem) rotate(30deg)}:host.military .analog--hand--hours.hour-4{transform:rotate(-30deg)}:host.military .analog--hour:nth-child(6){transform:rotate(-15deg) translate(8rem) rotate(15deg)}:host.military .analog--hand--hours.hour-5{transform:rotate(-15deg)}:host.military .analog--hour:nth-child(7){transform:rotate(0) translate(8rem) rotate(0)}:host.military .analog--hand--hours.hour-6{transform:rotate(0)}:host.military .analog--hour:nth-child(8){transform:rotate(15deg) translate(8rem) rotate(-15deg)}:host.military .analog--hand--hours.hour-7{transform:rotate(15deg)}:host.military .analog--hour:nth-child(9){transform:rotate(30deg) translate(8rem) rotate(-30deg)}:host.military .analog--hand--hours.hour-8{transform:rotate(30deg)}:host.military .analog--hour:nth-child(10){transform:rotate(45deg) translate(8rem) rotate(-45deg)}:host.military .analog--hand--hours.hour-9{transform:rotate(45deg)}:host.military .analog--hour:nth-child(11){transform:rotate(60deg) translate(8rem) rotate(-60deg)}:host.military .analog--hand--hours.hour-10{transform:rotate(60deg)}:host.military .analog--hour:nth-child(12){transform:rotate(75deg) translate(8rem) rotate(-75deg)}:host.military .analog--hand--hours.hour-11{transform:rotate(75deg)}:host.military .analog--hour:nth-child(13){transform:rotate(90deg) translate(8rem) rotate(-90deg)}:host.military .analog--hand--hours.hour-12{transform:rotate(90deg)}:host.military .analog--hour:nth-child(14){transform:rotate(105deg) translate(8rem) rotate(-105deg)}:host.military .analog--hand--hours.hour-13{transform:rotate(105deg)}:host.military .analog--hour:nth-child(15){transform:rotate(120deg) translate(8rem) rotate(-120deg)}:host.military .analog--hand--hours.hour-14{transform:rotate(120deg)}:host.military .analog--hour:nth-child(16){transform:rotate(135deg) translate(8rem) rotate(-135deg)}:host.military .analog--hand--hours.hour-15{transform:rotate(135deg)}:host.military .analog--hour:nth-child(17){transform:rotate(150deg) translate(8rem) rotate(-150deg)}:host.military .analog--hand--hours.hour-16{transform:rotate(150deg)}:host.military .analog--hour:nth-child(18){transform:rotate(165deg) translate(8rem) rotate(-165deg)}:host.military .analog--hand--hours.hour-17{transform:rotate(165deg)}:host.military .analog--hour:nth-child(19){transform:rotate(180deg) translate(8rem) rotate(-180deg)}:host.military .analog--hand--hours.hour-18{transform:rotate(180deg)}:host.military .analog--hour:nth-child(20){transform:rotate(195deg) translate(8rem) rotate(-195deg)}:host.military .analog--hand--hours.hour-19{transform:rotate(195deg)}:host.military .analog--hour:nth-child(21){transform:rotate(210deg) translate(8rem) rotate(-210deg)}:host.military .analog--hand--hours.hour-20{transform:rotate(210deg)}:host.military .analog--hour:nth-child(22){transform:rotate(225deg) translate(8rem) rotate(-225deg)}:host.military .analog--hand--hours.hour-21{transform:rotate(225deg)}:host.military .analog--hour:nth-child(23){transform:rotate(240deg) translate(8rem) rotate(-240deg)}:host.military .analog--hand--hours.hour-22{transform:rotate(240deg)}:host.military .analog--hour:nth-child(24){transform:rotate(255deg) translate(8rem) rotate(-255deg)}:host.military .analog--hand--hours{top:-10px;left:-10px}:host.military .analog--hand--hours.hour-23{transform:rotate(255deg)}:host.military .analog--face{inset:15px}:host.military .analog--hour{font-size:.9rem;margin-left:-2rem;margin-top:-1.2rem}:host.military .analog--hand--minutes{margin:10px}:host.military .analog--hand--hours .analog--ball{height:2.8rem;width:2.8rem;right:2.7rem;margin-top:-1.4rem}:host.hasButtons{border-radius:4px 4px 0 0}:host.hasButtons.military .increments--hour,:host.hasButtons.military .increments--minute{width:auto}:host.hasButtons .save-cancel-buttons{background:var(--background-main);display:flex;align-items:center;justify-content:flex-end;padding:1rem;gap:.5rem;border-radius:0 0 4px 4px;box-shadow:0 1px 3px #00000026,0 2px 7px #0000001a}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.NovoListElement, selector: "novo-list", inputs: ["theme", "direction"] }, { kind: "component", type: i3.NovoListItemElement, selector: "novo-list-item, a[list-item], button[list-item]" }, { kind: "component", type: i3.NovoItemContentElement, selector: "item-content, novo-item-content", inputs: ["direction"] }, { kind: "component", type: i4.NovoButtonElement, selector: "novo-button,button[theme]", inputs: ["color", "side", "size", "theme", "loading", "icon", "secondIcon", "disabled"] }] }); }
|
|
279
|
+
`, isInline: true, styles: [":host{display:block;width:min-content;overflow:hidden;border-radius:var(--border-radius-sm);background-color:var(--background-bright);box-shadow:0 1px 3px #00000026,0 2px 7px #0000001a;z-index:1000}:host .digital{background-color:var(--selection);display:flex;justify-content:center}:host .digital.inline{background:#fff;border-bottom:1px solid #f0f0f0}:host .digital.inline.military{border-bottom:none}:host .digital.inline .digital--inner{flex:1}:host .digital.inline .digital--inner .control-block{display:flex;flex:1}:host .digital.inline .digital--inner .control-block .digital--period{color:var(--selection);cursor:pointer;font-size:1em;opacity:.6;padding:1rem;flex:1}:host .digital.inline .digital--inner .control-block .digital--period.active{opacity:1;background-color:var(--selection);color:#fff}:host .digital--inner{display:flex;text-align:center;align-items:center;justify-content:center}:host .digital--clock{color:#fff;font-size:1.8em;font-weight:500}:host .control-block{display:inline-block}:host .digital--period{display:block;color:#fff;cursor:pointer;font-size:1em;opacity:.6;text-transform:uppercase;font-weight:400}:host .digital--period.active{opacity:1;font-weight:600}:host .increments{position:relative;height:250px;width:auto;display:flex;flex-flow:row nowrap}:host .increments novo-list{overflow-y:auto;overflow-x:hidden;height:100%;flex:1;scroll-snap-type:y mandatory;-ms-overflow-style:none;scrollbar-width:none}:host .increments novo-list::-webkit-scrollbar{display:none}:host .increments .increments--hour,:host .increments .increments--minute,:host .increments .increments--meridian{padding:5px 16px;width:50px;scroll-snap-align:start}:host .increments .increments--hour ::ng-deep .list-item,:host .increments .increments--minute ::ng-deep .list-item,:host .increments .increments--meridian ::ng-deep .list-item{line-height:19px}:host .increments .increments--hour:focus,:host .increments .increments--hour:hover,:host .increments .increments--minute:focus,:host .increments .increments--minute:hover,:host .increments .increments--meridian:focus,:host .increments .increments--meridian:hover{background:var(--selection);color:var(--text-selection);filter:brightness(1.25)}:host .increments .increments--hour.active,:host .increments .increments--minute.active,:host .increments .increments--meridian.active{background:var(--selection);color:var(--text-selection);font-weight:500}:host .analog{height:250px;width:250px;position:relative;margin:10% auto}:host .analog--inner{inset:0;width:100%;position:absolute;transition:transform 125ms linear}:host .analog--face{inset:5px;position:absolute;border-radius:50%}:host .analog--hand--hours{width:240px;height:240px;display:block;position:absolute;top:0;border-radius:50%;transform:rotate(0);transition:transform .1s linear;z-index:1}:host .analog--hand--hours:before{content:\" \";width:2px;top:0;bottom:0;left:30%;margin:30%;z-index:-1;display:block;position:absolute;transform:rotate(90deg)}:host .analog--hand--hours .analog--ball{height:3rem;width:3rem;display:block;right:3.2rem;top:50%;margin-top:calc(-1 * var(--spacing-xl));border-radius:50%;position:absolute;border:3px solid var(--selection);background:var(--selection)}:host .analog--hand--hours.hour-12{transform:rotate(-90deg)}:host .analog--hand--hours.hour-1{transform:rotate(-60deg)}:host .analog--hand--hours.hour-2{transform:rotate(-30deg)}:host .analog--hand--hours.hour-3{transform:rotate(0)}:host .analog--hand--hours.hour-4{transform:rotate(30deg)}:host .analog--hand--hours.hour-5{transform:rotate(60deg)}:host .analog--hand--hours.hour-6{transform:rotate(90deg)}:host .analog--hand--hours.hour-7{transform:rotate(120deg)}:host .analog--hand--hours.hour-8{transform:rotate(150deg)}:host .analog--hand--hours.hour-9{transform:rotate(180deg)}:host .analog--hand--hours.hour-10{transform:rotate(210deg)}:host .analog--hand--hours.hour-11{transform:rotate(240deg)}:host .analog--hand--minutes{width:200px;height:200px;margin:20px;display:block;position:absolute;top:0;border-radius:50%;transform:rotate(0);transition:transform .1s linear;z-index:1}:host .analog--hand--minutes:before{left:23%;margin:33%;content:\" \";width:2px;top:0;bottom:0;z-index:-1;display:block;position:absolute;transform:rotate(90deg)}:host .analog--hand--minutes .analog--ball{display:block;top:50%;border-radius:50%;position:absolute;height:2.4rem;width:2.4rem;right:4.2rem;margin-top:-1.2rem;border:2px solid var(--selection);background:var(--selection);transition:all .16s ease-in-out}:host .analog--hand--minutes .analog--ball.between{height:1px;border-radius:2em;margin-top:0}:host .analog--hand--minutes.min-00{transform:rotate(-90deg)}:host .analog--hand--minutes.min-01{transform:rotate(-84deg)}:host .analog--hand--minutes.min-02{transform:rotate(-78deg)}:host .analog--hand--minutes.min-03{transform:rotate(-72deg)}:host .analog--hand--minutes.min-04{transform:rotate(-66deg)}:host .analog--hand--minutes.min-05{transform:rotate(-60deg)}:host .analog--hand--minutes.min-06{transform:rotate(-54deg)}:host .analog--hand--minutes.min-07{transform:rotate(-48deg)}:host .analog--hand--minutes.min-08{transform:rotate(-42deg)}:host .analog--hand--minutes.min-09{transform:rotate(-36deg)}:host .analog--hand--minutes.min-10{transform:rotate(-30deg)}:host .analog--hand--minutes.min-11{transform:rotate(-24deg)}:host .analog--hand--minutes.min-12{transform:rotate(-18deg)}:host .analog--hand--minutes.min-13{transform:rotate(-12deg)}:host .analog--hand--minutes.min-14{transform:rotate(-6deg)}:host .analog--hand--minutes.min-15{transform:rotate(0)}:host .analog--hand--minutes.min-16{transform:rotate(6deg)}:host .analog--hand--minutes.min-17{transform:rotate(12deg)}:host .analog--hand--minutes.min-18{transform:rotate(18deg)}:host .analog--hand--minutes.min-19{transform:rotate(24deg)}:host .analog--hand--minutes.min-20{transform:rotate(30deg)}:host .analog--hand--minutes.min-21{transform:rotate(36deg)}:host .analog--hand--minutes.min-22{transform:rotate(42deg)}:host .analog--hand--minutes.min-23{transform:rotate(48deg)}:host .analog--hand--minutes.min-24{transform:rotate(54deg)}:host .analog--hand--minutes.min-25{transform:rotate(60deg)}:host .analog--hand--minutes.min-26{transform:rotate(66deg)}:host .analog--hand--minutes.min-27{transform:rotate(72deg)}:host .analog--hand--minutes.min-28{transform:rotate(78deg)}:host .analog--hand--minutes.min-29{transform:rotate(84deg)}:host .analog--hand--minutes.min-30{transform:rotate(90deg)}:host .analog--hand--minutes.min-31{transform:rotate(96deg)}:host .analog--hand--minutes.min-32{transform:rotate(102deg)}:host .analog--hand--minutes.min-33{transform:rotate(108deg)}:host .analog--hand--minutes.min-34{transform:rotate(114deg)}:host .analog--hand--minutes.min-35{transform:rotate(120deg)}:host .analog--hand--minutes.min-36{transform:rotate(126deg)}:host .analog--hand--minutes.min-37{transform:rotate(132deg)}:host .analog--hand--minutes.min-38{transform:rotate(138deg)}:host .analog--hand--minutes.min-39{transform:rotate(144deg)}:host .analog--hand--minutes.min-40{transform:rotate(150deg)}:host .analog--hand--minutes.min-41{transform:rotate(156deg)}:host .analog--hand--minutes.min-42{transform:rotate(162deg)}:host .analog--hand--minutes.min-43{transform:rotate(168deg)}:host .analog--hand--minutes.min-44{transform:rotate(174deg)}:host .analog--hand--minutes.min-45{transform:rotate(180deg)}:host .analog--hand--minutes.min-46{transform:rotate(186deg)}:host .analog--hand--minutes.min-47{transform:rotate(192deg)}:host .analog--hand--minutes.min-48{transform:rotate(198deg)}:host .analog--hand--minutes.min-49{transform:rotate(204deg)}:host .analog--hand--minutes.min-50{transform:rotate(210deg)}:host .analog--hand--minutes.min-51{transform:rotate(216deg)}:host .analog--hand--minutes.min-52{transform:rotate(222deg)}:host .analog--hand--minutes.min-53{transform:rotate(228deg)}:host .analog--hand--minutes.min-54{transform:rotate(234deg)}:host .analog--hand--minutes.min-55{transform:rotate(240deg)}:host .analog--hand--minutes.min-56{transform:rotate(246deg)}:host .analog--hand--minutes.min-57{transform:rotate(252deg)}:host .analog--hand--minutes.min-58{transform:rotate(258deg)}:host .analog--hand--minutes.min-59{transform:rotate(264deg)}:host .analog--center{height:12rem;width:12rem;border-radius:50%;top:50%;left:50%;transform:translate(-50%,-50%);z-index:1;margin-top:1px;margin-left:1px;display:block;position:absolute;background-color:var(--background-main)}:host .analog--hour,:host .analog--minute{font-size:1.6rem;color:#666;left:50%;top:50%;z-index:3;text-align:center;width:40px;padding:8px 0;border-radius:50%;cursor:pointer;margin-left:-20px;margin-top:-20px;position:absolute}:host .analog--hour.active,:host .analog--minute.active{color:#fff}:host .analog--minute{font-size:var(--font-size-xs);margin-left:-20px;margin-top:-16px}:host .analog--hours,:host .analog--minutes{width:250px;height:250px;float:left;position:relative}:host .analog--minutes{position:absolute}:host .analog--hour:nth-child(1){transform:rotate(-60deg) translate(4.5em) rotate(60deg)}:host .analog--minute:nth-child(1){transform:rotate(-60deg) translate(4.5em) rotate(60deg)}:host .analog--hour:nth-child(2){transform:rotate(-30deg) translate(4.5em) rotate(30deg)}:host .analog--minute:nth-child(2){transform:rotate(-30deg) translate(4.5em) rotate(30deg)}:host .analog--hour:nth-child(3){transform:rotate(0) translate(4.5em) rotate(0)}:host .analog--minute:nth-child(3){transform:rotate(0) translate(4.5em) rotate(0)}:host .analog--hour:nth-child(4){transform:rotate(30deg) translate(4.5em) rotate(-30deg)}:host .analog--minute:nth-child(4){transform:rotate(30deg) translate(4.5em) rotate(-30deg)}:host .analog--hour:nth-child(5){transform:rotate(60deg) translate(4.5em) rotate(-60deg)}:host .analog--minute:nth-child(5){transform:rotate(60deg) translate(4.5em) rotate(-60deg)}:host .analog--hour:nth-child(6){transform:rotate(90deg) translate(4.5em) rotate(-90deg)}:host .analog--minute:nth-child(6){transform:rotate(90deg) translate(4.5em) rotate(-90deg)}:host .analog--hour:nth-child(7){transform:rotate(120deg) translate(4.5em) rotate(-120deg)}:host .analog--minute:nth-child(7){transform:rotate(120deg) translate(4.5em) rotate(-120deg)}:host .analog--hour:nth-child(8){transform:rotate(150deg) translate(4.5em) rotate(-150deg)}:host .analog--minute:nth-child(8){transform:rotate(150deg) translate(4.5em) rotate(-150deg)}:host .analog--hour:nth-child(9){transform:rotate(180deg) translate(4.5em) rotate(-180deg)}:host .analog--minute:nth-child(9){transform:rotate(180deg) translate(4.5em) rotate(-180deg)}:host .analog--hour:nth-child(10){transform:rotate(210deg) translate(4.5em) rotate(-210deg)}:host .analog--minute:nth-child(10){transform:rotate(210deg) translate(4.5em) rotate(-210deg)}:host .analog--hour:nth-child(11){transform:rotate(240deg) translate(4.5em) rotate(-240deg)}:host .analog--minute:nth-child(11){transform:rotate(240deg) translate(4.5em) rotate(-240deg)}:host .analog--hour:nth-child(12){transform:rotate(270deg) translate(4.5em) rotate(-270deg)}:host .analog--minute:nth-child(12){transform:rotate(270deg) translate(4.5em) rotate(-270deg)}:host.military .analog--hour:nth-child(1){transform:rotate(-90deg) translate(8rem) rotate(90deg)}:host.military .analog--hand--hours.hour-0{transform:rotate(-90deg)}:host.military .analog--hour:nth-child(2){transform:rotate(-75deg) translate(8rem) rotate(75deg)}:host.military .analog--hand--hours.hour-1{transform:rotate(-75deg)}:host.military .analog--hour:nth-child(3){transform:rotate(-60deg) translate(8rem) rotate(60deg)}:host.military .analog--hand--hours.hour-2{transform:rotate(-60deg)}:host.military .analog--hour:nth-child(4){transform:rotate(-45deg) translate(8rem) rotate(45deg)}:host.military .analog--hand--hours.hour-3{transform:rotate(-45deg)}:host.military .analog--hour:nth-child(5){transform:rotate(-30deg) translate(8rem) rotate(30deg)}:host.military .analog--hand--hours.hour-4{transform:rotate(-30deg)}:host.military .analog--hour:nth-child(6){transform:rotate(-15deg) translate(8rem) rotate(15deg)}:host.military .analog--hand--hours.hour-5{transform:rotate(-15deg)}:host.military .analog--hour:nth-child(7){transform:rotate(0) translate(8rem) rotate(0)}:host.military .analog--hand--hours.hour-6{transform:rotate(0)}:host.military .analog--hour:nth-child(8){transform:rotate(15deg) translate(8rem) rotate(-15deg)}:host.military .analog--hand--hours.hour-7{transform:rotate(15deg)}:host.military .analog--hour:nth-child(9){transform:rotate(30deg) translate(8rem) rotate(-30deg)}:host.military .analog--hand--hours.hour-8{transform:rotate(30deg)}:host.military .analog--hour:nth-child(10){transform:rotate(45deg) translate(8rem) rotate(-45deg)}:host.military .analog--hand--hours.hour-9{transform:rotate(45deg)}:host.military .analog--hour:nth-child(11){transform:rotate(60deg) translate(8rem) rotate(-60deg)}:host.military .analog--hand--hours.hour-10{transform:rotate(60deg)}:host.military .analog--hour:nth-child(12){transform:rotate(75deg) translate(8rem) rotate(-75deg)}:host.military .analog--hand--hours.hour-11{transform:rotate(75deg)}:host.military .analog--hour:nth-child(13){transform:rotate(90deg) translate(8rem) rotate(-90deg)}:host.military .analog--hand--hours.hour-12{transform:rotate(90deg)}:host.military .analog--hour:nth-child(14){transform:rotate(105deg) translate(8rem) rotate(-105deg)}:host.military .analog--hand--hours.hour-13{transform:rotate(105deg)}:host.military .analog--hour:nth-child(15){transform:rotate(120deg) translate(8rem) rotate(-120deg)}:host.military .analog--hand--hours.hour-14{transform:rotate(120deg)}:host.military .analog--hour:nth-child(16){transform:rotate(135deg) translate(8rem) rotate(-135deg)}:host.military .analog--hand--hours.hour-15{transform:rotate(135deg)}:host.military .analog--hour:nth-child(17){transform:rotate(150deg) translate(8rem) rotate(-150deg)}:host.military .analog--hand--hours.hour-16{transform:rotate(150deg)}:host.military .analog--hour:nth-child(18){transform:rotate(165deg) translate(8rem) rotate(-165deg)}:host.military .analog--hand--hours.hour-17{transform:rotate(165deg)}:host.military .analog--hour:nth-child(19){transform:rotate(180deg) translate(8rem) rotate(-180deg)}:host.military .analog--hand--hours.hour-18{transform:rotate(180deg)}:host.military .analog--hour:nth-child(20){transform:rotate(195deg) translate(8rem) rotate(-195deg)}:host.military .analog--hand--hours.hour-19{transform:rotate(195deg)}:host.military .analog--hour:nth-child(21){transform:rotate(210deg) translate(8rem) rotate(-210deg)}:host.military .analog--hand--hours.hour-20{transform:rotate(210deg)}:host.military .analog--hour:nth-child(22){transform:rotate(225deg) translate(8rem) rotate(-225deg)}:host.military .analog--hand--hours.hour-21{transform:rotate(225deg)}:host.military .analog--hour:nth-child(23){transform:rotate(240deg) translate(8rem) rotate(-240deg)}:host.military .analog--hand--hours.hour-22{transform:rotate(240deg)}:host.military .analog--hour:nth-child(24){transform:rotate(255deg) translate(8rem) rotate(-255deg)}:host.military .analog--hand--hours{top:-10px;left:-10px}:host.military .analog--hand--hours.hour-23{transform:rotate(255deg)}:host.military .analog--face{inset:15px}:host.military .analog--hour{font-size:.9rem;margin-left:-2rem;margin-top:-1.2rem}:host.military .analog--hand--minutes{margin:10px}:host.military .analog--hand--hours .analog--ball{height:2.8rem;width:2.8rem;right:2.7rem;margin-top:-1.4rem}:host.hasButtons{border-radius:var(--border-radius-sm) var(--border-radius-sm) 0 0}:host.hasButtons.military .increments--hour,:host.hasButtons.military .increments--minute{width:auto}:host.hasButtons .save-cancel-buttons{background:var(--background-main);display:flex;align-items:center;justify-content:flex-end;padding:1rem;gap:.5rem;border-radius:0 0 var(--border-radius-sm) var(--border-radius-sm);box-shadow:0 1px 3px #00000026,0 2px 7px #0000001a}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.NovoListElement, selector: "novo-list", inputs: ["theme", "direction"] }, { kind: "component", type: i3.NovoListItemElement, selector: "novo-list-item, a[list-item], button[list-item]" }, { kind: "component", type: i3.NovoItemContentElement, selector: "item-content, novo-item-content", inputs: ["direction"] }, { kind: "component", type: i4.NovoButtonElement, selector: "novo-button,button[theme]", inputs: ["color", "side", "size", "theme", "loading", "icon", "secondIcon", "disabled"] }] }); }
|
|
280
280
|
}
|
|
281
281
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: NovoTimePickerElement, decorators: [{
|
|
282
282
|
type: Component,
|
|
@@ -366,7 +366,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImpo
|
|
|
366
366
|
`, host: {
|
|
367
367
|
class: 'novo-time-picker',
|
|
368
368
|
'[class.military]': 'military',
|
|
369
|
-
}, standalone: false, styles: [":host{display:block;width:min-content;overflow:hidden;border-radius:var(--border-radius-sm);background-color:var(--background-bright);box-shadow:0 1px 3px #00000026,0 2px 7px #0000001a;z-index:1000}:host .digital{background-color:var(--selection);display:flex;justify-content:center}:host .digital.inline{background:#fff;border-bottom:1px solid #f0f0f0}:host .digital.inline.military{border-bottom:none}:host .digital.inline .digital--inner{flex:1}:host .digital.inline .digital--inner .control-block{display:flex;flex:1}:host .digital.inline .digital--inner .control-block .digital--period{color:var(--selection);cursor:pointer;font-size:1em;opacity:.6;padding:1rem;flex:1}:host .digital.inline .digital--inner .control-block .digital--period.active{opacity:1;background-color:var(--selection);color:#fff}:host .digital--inner{display:flex;text-align:center;align-items:center;justify-content:center}:host .digital--clock{color:#fff;font-size:1.8em;font-weight:500}:host .control-block{display:inline-block}:host .digital--period{display:block;color:#fff;cursor:pointer;font-size:1em;opacity:.6;text-transform:uppercase;font-weight:400}:host .digital--period.active{opacity:1;font-weight:600}:host .increments{position:relative;height:250px;width:auto;display:flex;flex-flow:row nowrap}:host .increments novo-list{overflow-y:auto;overflow-x:hidden;height:100%;flex:1;scroll-snap-type:y mandatory;-ms-overflow-style:none;scrollbar-width:none}:host .increments novo-list::-webkit-scrollbar{display:none}:host .increments .increments--hour,:host .increments .increments--minute,:host .increments .increments--meridian{padding:5px 16px;width:50px;scroll-snap-align:start}:host .increments .increments--hour ::ng-deep .list-item,:host .increments .increments--minute ::ng-deep .list-item,:host .increments .increments--meridian ::ng-deep .list-item{line-height:19px}:host .increments .increments--hour:focus,:host .increments .increments--hour:hover,:host .increments .increments--minute:focus,:host .increments .increments--minute:hover,:host .increments .increments--meridian:focus,:host .increments .increments--meridian:hover{background:var(--selection);color:var(--text-selection);filter:brightness(1.25)}:host .increments .increments--hour.active,:host .increments .increments--minute.active,:host .increments .increments--meridian.active{background:var(--selection);color:var(--text-selection);font-weight:500}:host .analog{height:250px;width:250px;position:relative;margin:10% auto}:host .analog--inner{inset:0;width:100%;position:absolute;transition:transform 125ms linear}:host .analog--face{inset:5px;position:absolute;border-radius:50%}:host .analog--hand--hours{width:240px;height:240px;display:block;position:absolute;top:0;border-radius:50%;transform:rotate(0);transition:transform .1s linear;z-index:1}:host .analog--hand--hours:before{content:\" \";width:2px;top:0;bottom:0;left:30%;margin:30%;z-index:-1;display:block;position:absolute;transform:rotate(90deg)}:host .analog--hand--hours .analog--ball{height:3rem;width:3rem;display:block;right:3.2rem;top:50%;margin-top:calc(-1 * var(--spacing-xl));border-radius:50%;position:absolute;border:3px solid var(--selection);background:var(--selection)}:host .analog--hand--hours.hour-12{transform:rotate(-90deg)}:host .analog--hand--hours.hour-1{transform:rotate(-60deg)}:host .analog--hand--hours.hour-2{transform:rotate(-30deg)}:host .analog--hand--hours.hour-3{transform:rotate(0)}:host .analog--hand--hours.hour-4{transform:rotate(30deg)}:host .analog--hand--hours.hour-5{transform:rotate(60deg)}:host .analog--hand--hours.hour-6{transform:rotate(90deg)}:host .analog--hand--hours.hour-7{transform:rotate(120deg)}:host .analog--hand--hours.hour-8{transform:rotate(150deg)}:host .analog--hand--hours.hour-9{transform:rotate(180deg)}:host .analog--hand--hours.hour-10{transform:rotate(210deg)}:host .analog--hand--hours.hour-11{transform:rotate(240deg)}:host .analog--hand--minutes{width:200px;height:200px;margin:20px;display:block;position:absolute;top:0;border-radius:50%;transform:rotate(0);transition:transform .1s linear;z-index:1}:host .analog--hand--minutes:before{left:23%;margin:33%;content:\" \";width:2px;top:0;bottom:0;z-index:-1;display:block;position:absolute;transform:rotate(90deg)}:host .analog--hand--minutes .analog--ball{display:block;top:50%;border-radius:50%;position:absolute;height:2.4rem;width:2.4rem;right:4.2rem;margin-top:-1.2rem;border:2px solid var(--selection);background:var(--selection);transition:all .16s ease-in-out}:host .analog--hand--minutes .analog--ball.between{height:1px;border-radius:2em;margin-top:0}:host .analog--hand--minutes.min-00{transform:rotate(-90deg)}:host .analog--hand--minutes.min-01{transform:rotate(-84deg)}:host .analog--hand--minutes.min-02{transform:rotate(-78deg)}:host .analog--hand--minutes.min-03{transform:rotate(-72deg)}:host .analog--hand--minutes.min-04{transform:rotate(-66deg)}:host .analog--hand--minutes.min-05{transform:rotate(-60deg)}:host .analog--hand--minutes.min-06{transform:rotate(-54deg)}:host .analog--hand--minutes.min-07{transform:rotate(-48deg)}:host .analog--hand--minutes.min-08{transform:rotate(-42deg)}:host .analog--hand--minutes.min-09{transform:rotate(-36deg)}:host .analog--hand--minutes.min-10{transform:rotate(-30deg)}:host .analog--hand--minutes.min-11{transform:rotate(-24deg)}:host .analog--hand--minutes.min-12{transform:rotate(-18deg)}:host .analog--hand--minutes.min-13{transform:rotate(-12deg)}:host .analog--hand--minutes.min-14{transform:rotate(-6deg)}:host .analog--hand--minutes.min-15{transform:rotate(0)}:host .analog--hand--minutes.min-16{transform:rotate(6deg)}:host .analog--hand--minutes.min-17{transform:rotate(12deg)}:host .analog--hand--minutes.min-18{transform:rotate(18deg)}:host .analog--hand--minutes.min-19{transform:rotate(24deg)}:host .analog--hand--minutes.min-20{transform:rotate(30deg)}:host .analog--hand--minutes.min-21{transform:rotate(36deg)}:host .analog--hand--minutes.min-22{transform:rotate(42deg)}:host .analog--hand--minutes.min-23{transform:rotate(48deg)}:host .analog--hand--minutes.min-24{transform:rotate(54deg)}:host .analog--hand--minutes.min-25{transform:rotate(60deg)}:host .analog--hand--minutes.min-26{transform:rotate(66deg)}:host .analog--hand--minutes.min-27{transform:rotate(72deg)}:host .analog--hand--minutes.min-28{transform:rotate(78deg)}:host .analog--hand--minutes.min-29{transform:rotate(84deg)}:host .analog--hand--minutes.min-30{transform:rotate(90deg)}:host .analog--hand--minutes.min-31{transform:rotate(96deg)}:host .analog--hand--minutes.min-32{transform:rotate(102deg)}:host .analog--hand--minutes.min-33{transform:rotate(108deg)}:host .analog--hand--minutes.min-34{transform:rotate(114deg)}:host .analog--hand--minutes.min-35{transform:rotate(120deg)}:host .analog--hand--minutes.min-36{transform:rotate(126deg)}:host .analog--hand--minutes.min-37{transform:rotate(132deg)}:host .analog--hand--minutes.min-38{transform:rotate(138deg)}:host .analog--hand--minutes.min-39{transform:rotate(144deg)}:host .analog--hand--minutes.min-40{transform:rotate(150deg)}:host .analog--hand--minutes.min-41{transform:rotate(156deg)}:host .analog--hand--minutes.min-42{transform:rotate(162deg)}:host .analog--hand--minutes.min-43{transform:rotate(168deg)}:host .analog--hand--minutes.min-44{transform:rotate(174deg)}:host .analog--hand--minutes.min-45{transform:rotate(180deg)}:host .analog--hand--minutes.min-46{transform:rotate(186deg)}:host .analog--hand--minutes.min-47{transform:rotate(192deg)}:host .analog--hand--minutes.min-48{transform:rotate(198deg)}:host .analog--hand--minutes.min-49{transform:rotate(204deg)}:host .analog--hand--minutes.min-50{transform:rotate(210deg)}:host .analog--hand--minutes.min-51{transform:rotate(216deg)}:host .analog--hand--minutes.min-52{transform:rotate(222deg)}:host .analog--hand--minutes.min-53{transform:rotate(228deg)}:host .analog--hand--minutes.min-54{transform:rotate(234deg)}:host .analog--hand--minutes.min-55{transform:rotate(240deg)}:host .analog--hand--minutes.min-56{transform:rotate(246deg)}:host .analog--hand--minutes.min-57{transform:rotate(252deg)}:host .analog--hand--minutes.min-58{transform:rotate(258deg)}:host .analog--hand--minutes.min-59{transform:rotate(264deg)}:host .analog--center{height:12rem;width:12rem;border-radius:50%;top:50%;left:50%;transform:translate(-50%,-50%);z-index:1;margin-top:1px;margin-left:1px;display:block;position:absolute;background-color:var(--background-main)}:host .analog--hour,:host .analog--minute{font-size:1.6rem;color:#666;left:50%;top:50%;z-index:3;text-align:center;width:40px;padding:8px 0;border-radius:50%;cursor:pointer;margin-left:-20px;margin-top:-20px;position:absolute}:host .analog--hour.active,:host .analog--minute.active{color:#fff}:host .analog--minute{font-size:var(--font-size-xs);margin-left:-20px;margin-top:-16px}:host .analog--hours,:host .analog--minutes{width:250px;height:250px;float:left;position:relative}:host .analog--minutes{position:absolute}:host .analog--hour:nth-child(1){transform:rotate(-60deg) translate(4.5em) rotate(60deg)}:host .analog--minute:nth-child(1){transform:rotate(-60deg) translate(4.5em) rotate(60deg)}:host .analog--hour:nth-child(2){transform:rotate(-30deg) translate(4.5em) rotate(30deg)}:host .analog--minute:nth-child(2){transform:rotate(-30deg) translate(4.5em) rotate(30deg)}:host .analog--hour:nth-child(3){transform:rotate(0) translate(4.5em) rotate(0)}:host .analog--minute:nth-child(3){transform:rotate(0) translate(4.5em) rotate(0)}:host .analog--hour:nth-child(4){transform:rotate(30deg) translate(4.5em) rotate(-30deg)}:host .analog--minute:nth-child(4){transform:rotate(30deg) translate(4.5em) rotate(-30deg)}:host .analog--hour:nth-child(5){transform:rotate(60deg) translate(4.5em) rotate(-60deg)}:host .analog--minute:nth-child(5){transform:rotate(60deg) translate(4.5em) rotate(-60deg)}:host .analog--hour:nth-child(6){transform:rotate(90deg) translate(4.5em) rotate(-90deg)}:host .analog--minute:nth-child(6){transform:rotate(90deg) translate(4.5em) rotate(-90deg)}:host .analog--hour:nth-child(7){transform:rotate(120deg) translate(4.5em) rotate(-120deg)}:host .analog--minute:nth-child(7){transform:rotate(120deg) translate(4.5em) rotate(-120deg)}:host .analog--hour:nth-child(8){transform:rotate(150deg) translate(4.5em) rotate(-150deg)}:host .analog--minute:nth-child(8){transform:rotate(150deg) translate(4.5em) rotate(-150deg)}:host .analog--hour:nth-child(9){transform:rotate(180deg) translate(4.5em) rotate(-180deg)}:host .analog--minute:nth-child(9){transform:rotate(180deg) translate(4.5em) rotate(-180deg)}:host .analog--hour:nth-child(10){transform:rotate(210deg) translate(4.5em) rotate(-210deg)}:host .analog--minute:nth-child(10){transform:rotate(210deg) translate(4.5em) rotate(-210deg)}:host .analog--hour:nth-child(11){transform:rotate(240deg) translate(4.5em) rotate(-240deg)}:host .analog--minute:nth-child(11){transform:rotate(240deg) translate(4.5em) rotate(-240deg)}:host .analog--hour:nth-child(12){transform:rotate(270deg) translate(4.5em) rotate(-270deg)}:host .analog--minute:nth-child(12){transform:rotate(270deg) translate(4.5em) rotate(-270deg)}:host.military .analog--hour:nth-child(1){transform:rotate(-90deg) translate(8rem) rotate(90deg)}:host.military .analog--hand--hours.hour-0{transform:rotate(-90deg)}:host.military .analog--hour:nth-child(2){transform:rotate(-75deg) translate(8rem) rotate(75deg)}:host.military .analog--hand--hours.hour-1{transform:rotate(-75deg)}:host.military .analog--hour:nth-child(3){transform:rotate(-60deg) translate(8rem) rotate(60deg)}:host.military .analog--hand--hours.hour-2{transform:rotate(-60deg)}:host.military .analog--hour:nth-child(4){transform:rotate(-45deg) translate(8rem) rotate(45deg)}:host.military .analog--hand--hours.hour-3{transform:rotate(-45deg)}:host.military .analog--hour:nth-child(5){transform:rotate(-30deg) translate(8rem) rotate(30deg)}:host.military .analog--hand--hours.hour-4{transform:rotate(-30deg)}:host.military .analog--hour:nth-child(6){transform:rotate(-15deg) translate(8rem) rotate(15deg)}:host.military .analog--hand--hours.hour-5{transform:rotate(-15deg)}:host.military .analog--hour:nth-child(7){transform:rotate(0) translate(8rem) rotate(0)}:host.military .analog--hand--hours.hour-6{transform:rotate(0)}:host.military .analog--hour:nth-child(8){transform:rotate(15deg) translate(8rem) rotate(-15deg)}:host.military .analog--hand--hours.hour-7{transform:rotate(15deg)}:host.military .analog--hour:nth-child(9){transform:rotate(30deg) translate(8rem) rotate(-30deg)}:host.military .analog--hand--hours.hour-8{transform:rotate(30deg)}:host.military .analog--hour:nth-child(10){transform:rotate(45deg) translate(8rem) rotate(-45deg)}:host.military .analog--hand--hours.hour-9{transform:rotate(45deg)}:host.military .analog--hour:nth-child(11){transform:rotate(60deg) translate(8rem) rotate(-60deg)}:host.military .analog--hand--hours.hour-10{transform:rotate(60deg)}:host.military .analog--hour:nth-child(12){transform:rotate(75deg) translate(8rem) rotate(-75deg)}:host.military .analog--hand--hours.hour-11{transform:rotate(75deg)}:host.military .analog--hour:nth-child(13){transform:rotate(90deg) translate(8rem) rotate(-90deg)}:host.military .analog--hand--hours.hour-12{transform:rotate(90deg)}:host.military .analog--hour:nth-child(14){transform:rotate(105deg) translate(8rem) rotate(-105deg)}:host.military .analog--hand--hours.hour-13{transform:rotate(105deg)}:host.military .analog--hour:nth-child(15){transform:rotate(120deg) translate(8rem) rotate(-120deg)}:host.military .analog--hand--hours.hour-14{transform:rotate(120deg)}:host.military .analog--hour:nth-child(16){transform:rotate(135deg) translate(8rem) rotate(-135deg)}:host.military .analog--hand--hours.hour-15{transform:rotate(135deg)}:host.military .analog--hour:nth-child(17){transform:rotate(150deg) translate(8rem) rotate(-150deg)}:host.military .analog--hand--hours.hour-16{transform:rotate(150deg)}:host.military .analog--hour:nth-child(18){transform:rotate(165deg) translate(8rem) rotate(-165deg)}:host.military .analog--hand--hours.hour-17{transform:rotate(165deg)}:host.military .analog--hour:nth-child(19){transform:rotate(180deg) translate(8rem) rotate(-180deg)}:host.military .analog--hand--hours.hour-18{transform:rotate(180deg)}:host.military .analog--hour:nth-child(20){transform:rotate(195deg) translate(8rem) rotate(-195deg)}:host.military .analog--hand--hours.hour-19{transform:rotate(195deg)}:host.military .analog--hour:nth-child(21){transform:rotate(210deg) translate(8rem) rotate(-210deg)}:host.military .analog--hand--hours.hour-20{transform:rotate(210deg)}:host.military .analog--hour:nth-child(22){transform:rotate(225deg) translate(8rem) rotate(-225deg)}:host.military .analog--hand--hours.hour-21{transform:rotate(225deg)}:host.military .analog--hour:nth-child(23){transform:rotate(240deg) translate(8rem) rotate(-240deg)}:host.military .analog--hand--hours.hour-22{transform:rotate(240deg)}:host.military .analog--hour:nth-child(24){transform:rotate(255deg) translate(8rem) rotate(-255deg)}:host.military .analog--hand--hours{top:-10px;left:-10px}:host.military .analog--hand--hours.hour-23{transform:rotate(255deg)}:host.military .analog--face{inset:15px}:host.military .analog--hour{font-size:.9rem;margin-left:-2rem;margin-top:-1.2rem}:host.military .analog--hand--minutes{margin:10px}:host.military .analog--hand--hours .analog--ball{height:2.8rem;width:2.8rem;right:2.7rem;margin-top:-1.4rem}:host.hasButtons{border-radius:4px 4px 0 0}:host.hasButtons.military .increments--hour,:host.hasButtons.military .increments--minute{width:auto}:host.hasButtons .save-cancel-buttons{background:var(--background-main);display:flex;align-items:center;justify-content:flex-end;padding:1rem;gap:.5rem;border-radius:0 0 4px 4px;box-shadow:0 1px 3px #00000026,0 2px 7px #0000001a}\n"] }]
|
|
369
|
+
}, standalone: false, styles: [":host{display:block;width:min-content;overflow:hidden;border-radius:var(--border-radius-sm);background-color:var(--background-bright);box-shadow:0 1px 3px #00000026,0 2px 7px #0000001a;z-index:1000}:host .digital{background-color:var(--selection);display:flex;justify-content:center}:host .digital.inline{background:#fff;border-bottom:1px solid #f0f0f0}:host .digital.inline.military{border-bottom:none}:host .digital.inline .digital--inner{flex:1}:host .digital.inline .digital--inner .control-block{display:flex;flex:1}:host .digital.inline .digital--inner .control-block .digital--period{color:var(--selection);cursor:pointer;font-size:1em;opacity:.6;padding:1rem;flex:1}:host .digital.inline .digital--inner .control-block .digital--period.active{opacity:1;background-color:var(--selection);color:#fff}:host .digital--inner{display:flex;text-align:center;align-items:center;justify-content:center}:host .digital--clock{color:#fff;font-size:1.8em;font-weight:500}:host .control-block{display:inline-block}:host .digital--period{display:block;color:#fff;cursor:pointer;font-size:1em;opacity:.6;text-transform:uppercase;font-weight:400}:host .digital--period.active{opacity:1;font-weight:600}:host .increments{position:relative;height:250px;width:auto;display:flex;flex-flow:row nowrap}:host .increments novo-list{overflow-y:auto;overflow-x:hidden;height:100%;flex:1;scroll-snap-type:y mandatory;-ms-overflow-style:none;scrollbar-width:none}:host .increments novo-list::-webkit-scrollbar{display:none}:host .increments .increments--hour,:host .increments .increments--minute,:host .increments .increments--meridian{padding:5px 16px;width:50px;scroll-snap-align:start}:host .increments .increments--hour ::ng-deep .list-item,:host .increments .increments--minute ::ng-deep .list-item,:host .increments .increments--meridian ::ng-deep .list-item{line-height:19px}:host .increments .increments--hour:focus,:host .increments .increments--hour:hover,:host .increments .increments--minute:focus,:host .increments .increments--minute:hover,:host .increments .increments--meridian:focus,:host .increments .increments--meridian:hover{background:var(--selection);color:var(--text-selection);filter:brightness(1.25)}:host .increments .increments--hour.active,:host .increments .increments--minute.active,:host .increments .increments--meridian.active{background:var(--selection);color:var(--text-selection);font-weight:500}:host .analog{height:250px;width:250px;position:relative;margin:10% auto}:host .analog--inner{inset:0;width:100%;position:absolute;transition:transform 125ms linear}:host .analog--face{inset:5px;position:absolute;border-radius:50%}:host .analog--hand--hours{width:240px;height:240px;display:block;position:absolute;top:0;border-radius:50%;transform:rotate(0);transition:transform .1s linear;z-index:1}:host .analog--hand--hours:before{content:\" \";width:2px;top:0;bottom:0;left:30%;margin:30%;z-index:-1;display:block;position:absolute;transform:rotate(90deg)}:host .analog--hand--hours .analog--ball{height:3rem;width:3rem;display:block;right:3.2rem;top:50%;margin-top:calc(-1 * var(--spacing-xl));border-radius:50%;position:absolute;border:3px solid var(--selection);background:var(--selection)}:host .analog--hand--hours.hour-12{transform:rotate(-90deg)}:host .analog--hand--hours.hour-1{transform:rotate(-60deg)}:host .analog--hand--hours.hour-2{transform:rotate(-30deg)}:host .analog--hand--hours.hour-3{transform:rotate(0)}:host .analog--hand--hours.hour-4{transform:rotate(30deg)}:host .analog--hand--hours.hour-5{transform:rotate(60deg)}:host .analog--hand--hours.hour-6{transform:rotate(90deg)}:host .analog--hand--hours.hour-7{transform:rotate(120deg)}:host .analog--hand--hours.hour-8{transform:rotate(150deg)}:host .analog--hand--hours.hour-9{transform:rotate(180deg)}:host .analog--hand--hours.hour-10{transform:rotate(210deg)}:host .analog--hand--hours.hour-11{transform:rotate(240deg)}:host .analog--hand--minutes{width:200px;height:200px;margin:20px;display:block;position:absolute;top:0;border-radius:50%;transform:rotate(0);transition:transform .1s linear;z-index:1}:host .analog--hand--minutes:before{left:23%;margin:33%;content:\" \";width:2px;top:0;bottom:0;z-index:-1;display:block;position:absolute;transform:rotate(90deg)}:host .analog--hand--minutes .analog--ball{display:block;top:50%;border-radius:50%;position:absolute;height:2.4rem;width:2.4rem;right:4.2rem;margin-top:-1.2rem;border:2px solid var(--selection);background:var(--selection);transition:all .16s ease-in-out}:host .analog--hand--minutes .analog--ball.between{height:1px;border-radius:2em;margin-top:0}:host .analog--hand--minutes.min-00{transform:rotate(-90deg)}:host .analog--hand--minutes.min-01{transform:rotate(-84deg)}:host .analog--hand--minutes.min-02{transform:rotate(-78deg)}:host .analog--hand--minutes.min-03{transform:rotate(-72deg)}:host .analog--hand--minutes.min-04{transform:rotate(-66deg)}:host .analog--hand--minutes.min-05{transform:rotate(-60deg)}:host .analog--hand--minutes.min-06{transform:rotate(-54deg)}:host .analog--hand--minutes.min-07{transform:rotate(-48deg)}:host .analog--hand--minutes.min-08{transform:rotate(-42deg)}:host .analog--hand--minutes.min-09{transform:rotate(-36deg)}:host .analog--hand--minutes.min-10{transform:rotate(-30deg)}:host .analog--hand--minutes.min-11{transform:rotate(-24deg)}:host .analog--hand--minutes.min-12{transform:rotate(-18deg)}:host .analog--hand--minutes.min-13{transform:rotate(-12deg)}:host .analog--hand--minutes.min-14{transform:rotate(-6deg)}:host .analog--hand--minutes.min-15{transform:rotate(0)}:host .analog--hand--minutes.min-16{transform:rotate(6deg)}:host .analog--hand--minutes.min-17{transform:rotate(12deg)}:host .analog--hand--minutes.min-18{transform:rotate(18deg)}:host .analog--hand--minutes.min-19{transform:rotate(24deg)}:host .analog--hand--minutes.min-20{transform:rotate(30deg)}:host .analog--hand--minutes.min-21{transform:rotate(36deg)}:host .analog--hand--minutes.min-22{transform:rotate(42deg)}:host .analog--hand--minutes.min-23{transform:rotate(48deg)}:host .analog--hand--minutes.min-24{transform:rotate(54deg)}:host .analog--hand--minutes.min-25{transform:rotate(60deg)}:host .analog--hand--minutes.min-26{transform:rotate(66deg)}:host .analog--hand--minutes.min-27{transform:rotate(72deg)}:host .analog--hand--minutes.min-28{transform:rotate(78deg)}:host .analog--hand--minutes.min-29{transform:rotate(84deg)}:host .analog--hand--minutes.min-30{transform:rotate(90deg)}:host .analog--hand--minutes.min-31{transform:rotate(96deg)}:host .analog--hand--minutes.min-32{transform:rotate(102deg)}:host .analog--hand--minutes.min-33{transform:rotate(108deg)}:host .analog--hand--minutes.min-34{transform:rotate(114deg)}:host .analog--hand--minutes.min-35{transform:rotate(120deg)}:host .analog--hand--minutes.min-36{transform:rotate(126deg)}:host .analog--hand--minutes.min-37{transform:rotate(132deg)}:host .analog--hand--minutes.min-38{transform:rotate(138deg)}:host .analog--hand--minutes.min-39{transform:rotate(144deg)}:host .analog--hand--minutes.min-40{transform:rotate(150deg)}:host .analog--hand--minutes.min-41{transform:rotate(156deg)}:host .analog--hand--minutes.min-42{transform:rotate(162deg)}:host .analog--hand--minutes.min-43{transform:rotate(168deg)}:host .analog--hand--minutes.min-44{transform:rotate(174deg)}:host .analog--hand--minutes.min-45{transform:rotate(180deg)}:host .analog--hand--minutes.min-46{transform:rotate(186deg)}:host .analog--hand--minutes.min-47{transform:rotate(192deg)}:host .analog--hand--minutes.min-48{transform:rotate(198deg)}:host .analog--hand--minutes.min-49{transform:rotate(204deg)}:host .analog--hand--minutes.min-50{transform:rotate(210deg)}:host .analog--hand--minutes.min-51{transform:rotate(216deg)}:host .analog--hand--minutes.min-52{transform:rotate(222deg)}:host .analog--hand--minutes.min-53{transform:rotate(228deg)}:host .analog--hand--minutes.min-54{transform:rotate(234deg)}:host .analog--hand--minutes.min-55{transform:rotate(240deg)}:host .analog--hand--minutes.min-56{transform:rotate(246deg)}:host .analog--hand--minutes.min-57{transform:rotate(252deg)}:host .analog--hand--minutes.min-58{transform:rotate(258deg)}:host .analog--hand--minutes.min-59{transform:rotate(264deg)}:host .analog--center{height:12rem;width:12rem;border-radius:50%;top:50%;left:50%;transform:translate(-50%,-50%);z-index:1;margin-top:1px;margin-left:1px;display:block;position:absolute;background-color:var(--background-main)}:host .analog--hour,:host .analog--minute{font-size:1.6rem;color:#666;left:50%;top:50%;z-index:3;text-align:center;width:40px;padding:8px 0;border-radius:50%;cursor:pointer;margin-left:-20px;margin-top:-20px;position:absolute}:host .analog--hour.active,:host .analog--minute.active{color:#fff}:host .analog--minute{font-size:var(--font-size-xs);margin-left:-20px;margin-top:-16px}:host .analog--hours,:host .analog--minutes{width:250px;height:250px;float:left;position:relative}:host .analog--minutes{position:absolute}:host .analog--hour:nth-child(1){transform:rotate(-60deg) translate(4.5em) rotate(60deg)}:host .analog--minute:nth-child(1){transform:rotate(-60deg) translate(4.5em) rotate(60deg)}:host .analog--hour:nth-child(2){transform:rotate(-30deg) translate(4.5em) rotate(30deg)}:host .analog--minute:nth-child(2){transform:rotate(-30deg) translate(4.5em) rotate(30deg)}:host .analog--hour:nth-child(3){transform:rotate(0) translate(4.5em) rotate(0)}:host .analog--minute:nth-child(3){transform:rotate(0) translate(4.5em) rotate(0)}:host .analog--hour:nth-child(4){transform:rotate(30deg) translate(4.5em) rotate(-30deg)}:host .analog--minute:nth-child(4){transform:rotate(30deg) translate(4.5em) rotate(-30deg)}:host .analog--hour:nth-child(5){transform:rotate(60deg) translate(4.5em) rotate(-60deg)}:host .analog--minute:nth-child(5){transform:rotate(60deg) translate(4.5em) rotate(-60deg)}:host .analog--hour:nth-child(6){transform:rotate(90deg) translate(4.5em) rotate(-90deg)}:host .analog--minute:nth-child(6){transform:rotate(90deg) translate(4.5em) rotate(-90deg)}:host .analog--hour:nth-child(7){transform:rotate(120deg) translate(4.5em) rotate(-120deg)}:host .analog--minute:nth-child(7){transform:rotate(120deg) translate(4.5em) rotate(-120deg)}:host .analog--hour:nth-child(8){transform:rotate(150deg) translate(4.5em) rotate(-150deg)}:host .analog--minute:nth-child(8){transform:rotate(150deg) translate(4.5em) rotate(-150deg)}:host .analog--hour:nth-child(9){transform:rotate(180deg) translate(4.5em) rotate(-180deg)}:host .analog--minute:nth-child(9){transform:rotate(180deg) translate(4.5em) rotate(-180deg)}:host .analog--hour:nth-child(10){transform:rotate(210deg) translate(4.5em) rotate(-210deg)}:host .analog--minute:nth-child(10){transform:rotate(210deg) translate(4.5em) rotate(-210deg)}:host .analog--hour:nth-child(11){transform:rotate(240deg) translate(4.5em) rotate(-240deg)}:host .analog--minute:nth-child(11){transform:rotate(240deg) translate(4.5em) rotate(-240deg)}:host .analog--hour:nth-child(12){transform:rotate(270deg) translate(4.5em) rotate(-270deg)}:host .analog--minute:nth-child(12){transform:rotate(270deg) translate(4.5em) rotate(-270deg)}:host.military .analog--hour:nth-child(1){transform:rotate(-90deg) translate(8rem) rotate(90deg)}:host.military .analog--hand--hours.hour-0{transform:rotate(-90deg)}:host.military .analog--hour:nth-child(2){transform:rotate(-75deg) translate(8rem) rotate(75deg)}:host.military .analog--hand--hours.hour-1{transform:rotate(-75deg)}:host.military .analog--hour:nth-child(3){transform:rotate(-60deg) translate(8rem) rotate(60deg)}:host.military .analog--hand--hours.hour-2{transform:rotate(-60deg)}:host.military .analog--hour:nth-child(4){transform:rotate(-45deg) translate(8rem) rotate(45deg)}:host.military .analog--hand--hours.hour-3{transform:rotate(-45deg)}:host.military .analog--hour:nth-child(5){transform:rotate(-30deg) translate(8rem) rotate(30deg)}:host.military .analog--hand--hours.hour-4{transform:rotate(-30deg)}:host.military .analog--hour:nth-child(6){transform:rotate(-15deg) translate(8rem) rotate(15deg)}:host.military .analog--hand--hours.hour-5{transform:rotate(-15deg)}:host.military .analog--hour:nth-child(7){transform:rotate(0) translate(8rem) rotate(0)}:host.military .analog--hand--hours.hour-6{transform:rotate(0)}:host.military .analog--hour:nth-child(8){transform:rotate(15deg) translate(8rem) rotate(-15deg)}:host.military .analog--hand--hours.hour-7{transform:rotate(15deg)}:host.military .analog--hour:nth-child(9){transform:rotate(30deg) translate(8rem) rotate(-30deg)}:host.military .analog--hand--hours.hour-8{transform:rotate(30deg)}:host.military .analog--hour:nth-child(10){transform:rotate(45deg) translate(8rem) rotate(-45deg)}:host.military .analog--hand--hours.hour-9{transform:rotate(45deg)}:host.military .analog--hour:nth-child(11){transform:rotate(60deg) translate(8rem) rotate(-60deg)}:host.military .analog--hand--hours.hour-10{transform:rotate(60deg)}:host.military .analog--hour:nth-child(12){transform:rotate(75deg) translate(8rem) rotate(-75deg)}:host.military .analog--hand--hours.hour-11{transform:rotate(75deg)}:host.military .analog--hour:nth-child(13){transform:rotate(90deg) translate(8rem) rotate(-90deg)}:host.military .analog--hand--hours.hour-12{transform:rotate(90deg)}:host.military .analog--hour:nth-child(14){transform:rotate(105deg) translate(8rem) rotate(-105deg)}:host.military .analog--hand--hours.hour-13{transform:rotate(105deg)}:host.military .analog--hour:nth-child(15){transform:rotate(120deg) translate(8rem) rotate(-120deg)}:host.military .analog--hand--hours.hour-14{transform:rotate(120deg)}:host.military .analog--hour:nth-child(16){transform:rotate(135deg) translate(8rem) rotate(-135deg)}:host.military .analog--hand--hours.hour-15{transform:rotate(135deg)}:host.military .analog--hour:nth-child(17){transform:rotate(150deg) translate(8rem) rotate(-150deg)}:host.military .analog--hand--hours.hour-16{transform:rotate(150deg)}:host.military .analog--hour:nth-child(18){transform:rotate(165deg) translate(8rem) rotate(-165deg)}:host.military .analog--hand--hours.hour-17{transform:rotate(165deg)}:host.military .analog--hour:nth-child(19){transform:rotate(180deg) translate(8rem) rotate(-180deg)}:host.military .analog--hand--hours.hour-18{transform:rotate(180deg)}:host.military .analog--hour:nth-child(20){transform:rotate(195deg) translate(8rem) rotate(-195deg)}:host.military .analog--hand--hours.hour-19{transform:rotate(195deg)}:host.military .analog--hour:nth-child(21){transform:rotate(210deg) translate(8rem) rotate(-210deg)}:host.military .analog--hand--hours.hour-20{transform:rotate(210deg)}:host.military .analog--hour:nth-child(22){transform:rotate(225deg) translate(8rem) rotate(-225deg)}:host.military .analog--hand--hours.hour-21{transform:rotate(225deg)}:host.military .analog--hour:nth-child(23){transform:rotate(240deg) translate(8rem) rotate(-240deg)}:host.military .analog--hand--hours.hour-22{transform:rotate(240deg)}:host.military .analog--hour:nth-child(24){transform:rotate(255deg) translate(8rem) rotate(-255deg)}:host.military .analog--hand--hours{top:-10px;left:-10px}:host.military .analog--hand--hours.hour-23{transform:rotate(255deg)}:host.military .analog--face{inset:15px}:host.military .analog--hour{font-size:.9rem;margin-left:-2rem;margin-top:-1.2rem}:host.military .analog--hand--minutes{margin:10px}:host.military .analog--hand--hours .analog--ball{height:2.8rem;width:2.8rem;right:2.7rem;margin-top:-1.4rem}:host.hasButtons{border-radius:var(--border-radius-sm) var(--border-radius-sm) 0 0}:host.hasButtons.military .increments--hour,:host.hasButtons.military .increments--minute{width:auto}:host.hasButtons .save-cancel-buttons{background:var(--background-main);display:flex;align-items:center;justify-content:flex-end;padding:1rem;gap:.5rem;border-radius:0 0 var(--border-radius-sm) var(--border-radius-sm);box-shadow:0 1px 3px #00000026,0 2px 7px #0000001a}\n"] }]
|
|
370
370
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i1.NovoLabelService }, { type: i0.ChangeDetectorRef }], propDecorators: { military: [{
|
|
371
371
|
type: Input
|
|
372
372
|
}], analog: [{
|
|
@@ -632,7 +632,7 @@ class NovoTimePickerInputElement {
|
|
|
632
632
|
(onSave)="save()"
|
|
633
633
|
></novo-time-picker>
|
|
634
634
|
</novo-overlay-template>
|
|
635
|
-
`, isInline: true, styles: [":host{flex:1;position:relative;display:block;max-width:130px}:host.disabled{pointer-events:none;opacity:1}:host input{font-size:1em;border:none;border-bottom:1px solid var(--border);background:transparent!important;border-radius:0;outline:none;height:2rem;width:100%;margin:0;padding:0;box-shadow:none;box-sizing:content-box;transition:all .3s;color:var(--text-main)}:host input:focus{border-bottom:1px solid var(--selection)}:host>i.bhi-clock,:host>i.bhi-search,:host>i.bhi-times,:host>i.bhi-calendar{position:absolute;right:0;top:0;font-size:var(--font-size-sm)}:host>i.bhi-times{cursor:pointer}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i4$1.IMaskDirective, selector: "[imask]", inputs: ["imask", "unmask", "imaskElement"], outputs: ["accept", "complete"], exportAs: ["imask"] }, { kind: "component", type: i5.NovoOverlayTemplateComponent, selector: "novo-overlay-template", inputs: ["position", "scrollStrategy", "width", "minWidth", "height", "closeOnSelect", "hasBackdrop", "parent"], outputs: ["select", "opening", "closing", "backDropClicked"] }, { kind: "component", type: NovoTimePickerElement, selector: "novo-time-picker", inputs: ["military", "analog", "inline", "step", "hasButtons", "saveDisabled"], outputs: ["onSelect", "onSave", "onCancel"] }] }); }
|
|
635
|
+
`, isInline: true, styles: [":host{flex:1;position:relative;display:block;max-width:130px}:host.disabled{pointer-events:none;opacity:1}:host input{font-size:1em;border:none;border-bottom:1px solid var(--border);background:transparent!important;border-radius:0;outline:none;height:2rem;width:100%;margin:0;padding:0;box-shadow:none;box-sizing:content-box;transition:all .3s;color:var(--text-main)}:host input:focus{border-bottom:1px solid var(--selection)}:host>i.bhi-clock,:host>i.bhi-search,:host>i.bhi-times,:host>i.bhi-calendar{position:absolute;right:0;top:0;font-size:var(--font-size-sm)}[data-theme=bh2026] :host>i.bhi-clock,[data-theme=bh2026] :host>i.bhi-search,[data-theme=bh2026] :host>i.bhi-times,[data-theme=bh2026] :host>i.bhi-calendar{font-size:var(--typography-body-lg-font-size);line-height:normal}:host>i.bhi-times{cursor:pointer}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i4$1.IMaskDirective, selector: "[imask]", inputs: ["imask", "unmask", "imaskElement"], outputs: ["accept", "complete"], exportAs: ["imask"] }, { kind: "component", type: i5.NovoOverlayTemplateComponent, selector: "novo-overlay-template", inputs: ["position", "scrollStrategy", "width", "minWidth", "height", "closeOnSelect", "hasBackdrop", "parent"], outputs: ["select", "opening", "closing", "backDropClicked"] }, { kind: "component", type: NovoTimePickerElement, selector: "novo-time-picker", inputs: ["military", "analog", "inline", "step", "hasButtons", "saveDisabled"], outputs: ["onSelect", "onSave", "onCancel"] }] }); }
|
|
636
636
|
}
|
|
637
637
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: NovoTimePickerInputElement, decorators: [{
|
|
638
638
|
type: Component,
|
|
@@ -668,7 +668,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImpo
|
|
|
668
668
|
(onSave)="save()"
|
|
669
669
|
></novo-time-picker>
|
|
670
670
|
</novo-overlay-template>
|
|
671
|
-
`, standalone: false, styles: [":host{flex:1;position:relative;display:block;max-width:130px}:host.disabled{pointer-events:none;opacity:1}:host input{font-size:1em;border:none;border-bottom:1px solid var(--border);background:transparent!important;border-radius:0;outline:none;height:2rem;width:100%;margin:0;padding:0;box-shadow:none;box-sizing:content-box;transition:all .3s;color:var(--text-main)}:host input:focus{border-bottom:1px solid var(--selection)}:host>i.bhi-clock,:host>i.bhi-search,:host>i.bhi-times,:host>i.bhi-calendar{position:absolute;right:0;top:0;font-size:var(--font-size-sm)}:host>i.bhi-times{cursor:pointer}\n"] }]
|
|
671
|
+
`, standalone: false, styles: [":host{flex:1;position:relative;display:block;max-width:130px}:host.disabled{pointer-events:none;opacity:1}:host input{font-size:1em;border:none;border-bottom:1px solid var(--border);background:transparent!important;border-radius:0;outline:none;height:2rem;width:100%;margin:0;padding:0;box-shadow:none;box-sizing:content-box;transition:all .3s;color:var(--text-main)}:host input:focus{border-bottom:1px solid var(--selection)}:host>i.bhi-clock,:host>i.bhi-search,:host>i.bhi-times,:host>i.bhi-calendar{position:absolute;right:0;top:0;font-size:var(--font-size-sm)}[data-theme=bh2026] :host>i.bhi-clock,[data-theme=bh2026] :host>i.bhi-search,[data-theme=bh2026] :host>i.bhi-times,[data-theme=bh2026] :host>i.bhi-calendar{font-size:var(--typography-body-lg-font-size);line-height:normal}:host>i.bhi-times{cursor:pointer}\n"] }]
|
|
672
672
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i1.NovoLabelService }, { type: i1.DateFormatService }, { type: i0.ChangeDetectorRef }], propDecorators: { name: [{
|
|
673
673
|
type: Input
|
|
674
674
|
}], placeholder: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"novo-elements-elements-time-picker.mjs","sources":["../../../projects/novo-elements/src/elements/time-picker/TimePicker.ts","../../../projects/novo-elements/src/elements/time-picker/TimePickerInput.ts","../../../projects/novo-elements/src/elements/time-picker/TimePicker.module.ts","../../../projects/novo-elements/src/elements/time-picker/novo-elements-elements-time-picker.ts"],"sourcesContent":["// NG2\nimport {\n ChangeDetectorRef,\n Component,\n ElementRef,\n EventEmitter,\n forwardRef,\n Input,\n OnChanges,\n OnInit,\n Output,\n SimpleChanges,\n} from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { isValid } from 'date-fns';\n// APP\nimport { NovoLabelService } from 'novo-elements/services';\nimport { DateUtil, Helpers } from 'novo-elements/utils';\n\n// Value accessor for the component (supports ngModel)\nconst TIME_PICKER_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => NovoTimePickerElement),\n multi: true,\n};\n\nexport enum TIME_VALUE_FORMATS {\n iso8601 = 'iso8601',\n Date = 'Date',\n}\n\n@Component({\n selector: 'novo-time-picker',\n providers: [TIME_PICKER_VALUE_ACCESSOR],\n template: `\n <div class=\"increments\" *ngIf=\"!analog\">\n <novo-list class=\"increments--hours\" direction=\"vertical\" data-automation-id=\"novo-time-picker-hours\">\n <novo-list-item\n class=\"increments--hour\"\n *ngFor=\"let increment of HOURS\"\n (click)=\"setHours($event, increment, true)\"\n [class.active]=\"increment == activeHour\"\n [attr.data-automation-id]=\"increment\"\n >\n <item-content>{{ increment }}</item-content>\n </novo-list-item>\n </novo-list>\n <novo-list class=\"increments--minutes\" direction=\"vertical\" data-automation-id=\"novo-time-picker-minutes\">\n <novo-list-item\n class=\"increments--minute\"\n *ngFor=\"let increment of MINUTES\"\n (click)=\"setMinutes($event, increment, true)\"\n [class.active]=\"increment == activeMinute\"\n [attr.data-automation-id]=\"increment\"\n >\n <item-content>{{ increment }}</item-content>\n </novo-list-item>\n </novo-list>\n <novo-list class=\"increments--meridians\" direction=\"vertical\" *ngIf=\"!military\" data-automation-id=\"novo-time-picker-meridians\">\n <novo-list-item\n class=\"increments--meridian\"\n *ngFor=\"let period of MERIDIANS\"\n (click)=\"setPeriod($event, period, true)\"\n [class.active]=\"meridian == period\"\n [attr.data-automation-id]=\"period\"\n >\n <item-content>{{ period }}</item-content>\n </novo-list-item>\n </novo-list>\n </div>\n <div class=\"analog\" *ngIf=\"analog\">\n <div class=\"analog--inner\">\n <div class=\"analog--face\">\n <span class=\"analog--center\"></span>\n <span class=\"analog--hand--hours\" [ngClass]=\"hoursClass\">\n <span class=\"analog--ball\"></span>\n </span>\n <span class=\"analog--hand--minutes\" [ngClass]=\"minutesClass\">\n <span class=\"analog--ball\" [ngClass]=\"{ between: inBetween }\"></span>\n </span>\n </div>\n <div class=\"analog--hours\">\n <span\n *ngFor=\"let hour of HOURS\"\n class=\"analog--hour\"\n [ngClass]=\"{ active: activeHour == hour }\"\n (click)=\"setHours($event, hour, true)\"\n [attr.data-automation-id]=\"hour\"\n >{{ hour }}</span\n >\n </div>\n <div class=\"analog--minutes\">\n <span\n *ngFor=\"let minute of MINUTES\"\n class=\"analog--minute\"\n [ngClass]=\"{ active: activeMinute == minute }\"\n (click)=\"setMinutes($event, minute, true)\"\n [attr.data-automation-id]=\"minute\"\n >{{ minute }}</span\n >\n </div>\n </div>\n </div>\n <div class=\"save-cancel-buttons\" *ngIf=\"hasButtons\">\n <novo-button\n class=\"cancel-button\"\n theme=\"dialogue\"\n size=\"small\"\n (click)=\"cancel()\">{{ labels.cancel }}</novo-button>\n <novo-button\n class=\"save-button\"\n theme=\"primary\"\n color=\"primary\"\n size=\"small\"\n [disabled]=\"saveDisabled\"\n (click)=\"save()\">{{ labels.save }}</novo-button>\n </div>\n `,\n styleUrls: ['./TimePicker.scss'],\n host: {\n class: 'novo-time-picker',\n '[class.military]': 'military',\n },\n standalone: false,\n})\nexport class NovoTimePickerElement implements ControlValueAccessor, OnInit, OnChanges {\n @Input()\n military: boolean = false;\n @Input()\n analog: boolean = false;\n @Input()\n inline: boolean = false;\n @Input()\n step: number = 1;\n @Input()\n hasButtons: boolean = false;\n @Input()\n saveDisabled: boolean = false;\n\n @Output()\n onSelect: EventEmitter<any> = new EventEmitter();\n @Output()\n onSave: EventEmitter<any> = new EventEmitter();\n @Output()\n onCancel: EventEmitter<any> = new EventEmitter();\n\n hours: number = 12;\n minutes: number = 0;\n value: any = null;\n meridian: string;\n inBetween: boolean;\n hoursClass: string;\n activeHour;\n minutesClass: string;\n activeMinute;\n increments: string[] = [];\n selected: string;\n MERIDIANS: Array<string> = ['am', 'pm'];\n MINUTES: Array<string> = ['05', '10', '15', '20', '25', '30', '35', '40', '45', '50', '55', '00'];\n HOURS: Array<string> = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'];\n model: any;\n _onChange: Function = () => {};\n _onTouched: Function = () => {};\n\n flatten(arr) {\n return Array.prototype.concat(...arr);\n }\n\n constructor(\n public element: ElementRef,\n public labels: NovoLabelService,\n protected cdr: ChangeDetectorRef,\n ) {}\n\n ngOnInit() {\n if (this.military) {\n this.HOURS = ['0', ...this.HOURS, '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23'];\n }\n if (!this.analog) {\n const mins = Array.from(Array(60 / this.step).keys()).map((i) => i * this.step);\n this.MINUTES = mins.map((m) => `${m}`.padStart(2, '0'));\n }\n this.ngOnChanges();\n }\n\n ngOnChanges(changes?: SimpleChanges) {\n if (this.model) {\n this.init(this.model, false);\n } else {\n this.selected = null;\n this.init(new Date(), false);\n }\n }\n\n init(value, dispatch) {\n const _value = new Date(value);\n let hours: string | number = _value.getHours();\n let minutes: string | number = _value.getMinutes();\n\n if (!this.military) {\n this.meridian = hours >= 12 ? 'pm' : 'am';\n hours = hours % 12;\n hours = hours || 12;\n }\n minutes = minutes < 10 ? `0${minutes}` : minutes;\n\n this.setHours(null, hours, dispatch);\n this.setMinutes(null, minutes, dispatch);\n this.checkBetween(minutes);\n }\n\n checkBetween(value) {\n this.inBetween = this.MINUTES.indexOf(String(value)) < 0;\n }\n\n setValue(event, value) {\n Helpers.swallowEvent(event);\n this.selected = value;\n const [time, meridian] = value.split(' ');\n const [hours, minutes] = time.split(':');\n this.hours = hours;\n this.minutes = minutes;\n this.meridian = meridian;\n\n this.dispatchChange();\n }\n\n setHours(event, hours, dispatch) {\n Helpers.swallowEvent(event);\n this.hours = hours;\n this.hoursClass = `hour-${hours}`;\n this.activeHour = hours;\n\n if (dispatch) {\n this.dispatchChange();\n }\n }\n\n setMinutes(event, minutes, dispatch) {\n Helpers.swallowEvent(event);\n this.minutes = minutes;\n this.minutesClass = `min-${minutes}`;\n this.activeMinute = minutes;\n this.checkBetween(minutes);\n\n if (dispatch) {\n this.dispatchChange();\n }\n }\n\n setPeriod(event, period, dispatch) {\n Helpers.swallowEvent(event);\n this.meridian = period;\n\n if (dispatch) {\n this.dispatchChange();\n }\n }\n\n dispatchChange() {\n let hours = Number(this.hours);\n\n if (!this.military) {\n hours = this.meridian.toLowerCase() === 'pm' ? hours + 12 : hours;\n\n // Special case for 12\n if (this.meridian.toLowerCase() === 'pm' && hours === 24) {\n hours = 12;\n } else if (this.meridian.toLowerCase() === 'am' && hours === 12) {\n hours = 0;\n }\n }\n\n const value = new Date();\n value.setHours(hours);\n value.setMinutes(this.minutes);\n value.setSeconds(0);\n this.value = `${this.hours}:${this.minutes} ${this.meridian}`;\n this.onSelect.next({\n hours,\n minutes: this.minutes,\n meridian: this.meridian,\n date: value,\n text: this.value,\n });\n this._onChange(value);\n }\n\n // ValueAccessor Functions\n writeValue(model: any): void {\n this.model = model;\n if (Helpers.isDate(model)) {\n this.init(model, false);\n }\n if (Helpers.isString(model)) {\n const time = this.military ? model : this.convertTime12to24(model);\n const date = DateUtil.parse(`${DateUtil.format(Date.now(), 'YYYY-MM-DD')}T${time}`);\n if (isValid(date)) {\n this.init(date, false);\n }\n }\n }\n\n registerOnChange(fn: Function): void {\n this._onChange = fn;\n }\n\n registerOnTouched(fn: Function): void {\n this._onTouched = fn;\n }\n\n convertTime12to24(time12h: string) {\n const pmFormat = this.labels.timeFormatPM.toUpperCase();\n\n const [time, modifier] = time12h.split(' ');\n // eslint-disable-next-line prefer-const\n let [hours, minutes] = time.split(':');\n if (hours === '12') {\n hours = '00';\n }\n if (['PM', pmFormat].includes(modifier)) {\n hours = `${parseInt(hours, 10) + 12}`.padStart(2, '0');\n }\n return `${hours}:${minutes}`;\n }\n\n save(): void {\n this.onSave.emit();\n }\n\n cancel(): void {\n this.onCancel.emit();\n }\n}\n","// NG\nimport {\n ChangeDetectorRef,\n Component,\n ElementRef,\n EventEmitter,\n forwardRef,\n HostBinding,\n Input,\n OnChanges,\n OnInit,\n Output,\n SimpleChanges,\n ViewChild,\n} from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\n// App\nimport { NovoOverlayTemplateComponent } from 'novo-elements/elements/common';\nimport { DateFormatService, NovoLabelService } from 'novo-elements/services';\nimport { Helpers, Key } from 'novo-elements/utils';\n\n// Value accessor for the component (supports ngModel)\nconst DATE_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => NovoTimePickerInputElement),\n multi: true,\n};\n\n@Component({\n selector: 'novo-time-picker-input',\n providers: [DATE_VALUE_ACCESSOR],\n template: `\n <input\n type=\"text\"\n [name]=\"name\"\n [(ngModel)]=\"value\"\n [imask]=\"maskOptions\"\n [unmask]=\"'typed'\"\n [placeholder]=\"placeholder\"\n (change)=\"_handleChange($event)\"\n (focus)=\"_handleFocus($event)\"\n (keydown)=\"_handleKeydown($event)\"\n (input)=\"_handleInput($event)\"\n (blur)=\"_handleBlur($event)\"\n #input\n data-automation-id=\"time-input\"\n [disabled]=\"disabled\"\n />\n <i *ngIf=\"!hasValue\" (click)=\"openPanel()\" class=\"bhi-clock\"></i> <i *ngIf=\"hasValue\" (click)=\"clearValue()\" class=\"bhi-times\"></i>\n <novo-overlay-template [parent]=\"overlayElement\" position=\"above-below\">\n <novo-time-picker\n [ngClass]=\"{ 'hasButtons': hasButtons }\"\n [hasButtons]=\"hasButtons\"\n inline=\"true\"\n [analog]=\"analog\"\n (onSelect)=\"setValue($event)\"\n [ngModel]=\"value\"\n [military]=\"military\"\n [saveDisabled]=\"saveDisabled\"\n (onCancel)=\"cancel()\"\n (onSave)=\"save()\"\n ></novo-time-picker>\n </novo-overlay-template>\n `,\n styleUrls: ['./TimePickerInput.scss'],\n standalone: false,\n})\nexport class NovoTimePickerInputElement implements OnInit, OnChanges, ControlValueAccessor {\n public value: any;\n\n /** View -> model callback called when value changes */\n _onChange: (value: any) => void = () => {};\n /** View -> model callback called when autocomplete has been touched */\n _onTouched = () => {};\n\n @Input()\n name: string;\n @Input()\n placeholder: string;\n @Input()\n military: boolean = false;\n @Input()\n maskOptions: any;\n @HostBinding('class.disabled')\n @Input()\n disabled: boolean = false;\n @Input()\n hasButtons: boolean = false;\n @Input()\n saveDisabled: boolean = false;\n @Input()\n overlayOnElement: ElementRef;\n\n /**\n * @deprecated don't use\n */\n @Input()\n analog: boolean = false;\n\n @Output()\n blurEvent: EventEmitter<FocusEvent> = new EventEmitter<FocusEvent>();\n @Output()\n focusEvent: EventEmitter<FocusEvent> = new EventEmitter<FocusEvent>();\n @Output()\n changeEvent: EventEmitter<FocusEvent> = new EventEmitter<FocusEvent>();\n @Output()\n onSave: EventEmitter<any> = new EventEmitter();\n @Output()\n onCancel: EventEmitter<any> = new EventEmitter();\n\n /** Element for the panel containing the autocomplete options. */\n @ViewChild(NovoOverlayTemplateComponent)\n overlay: NovoOverlayTemplateComponent;\n @ViewChild('input')\n input: HTMLInputElement;\n\n constructor(\n public element: ElementRef,\n public labels: NovoLabelService,\n public dateFormatService: DateFormatService,\n protected _changeDetectorRef: ChangeDetectorRef,\n ) {}\n\n ngOnInit(): void {\n this.initFormatOptions();\n }\n\n ngOnChanges(changes?: SimpleChanges) {\n // set icon and styling\n if (Object.keys(changes).some((key) => ['military', 'maskOptions'].includes(key))) {\n this.initFormatOptions();\n }\n }\n\n initFormatOptions() {\n this.placeholder = this.military ? this.labels.timeFormatPlaceholder24Hour : this.labels.timeFormatPlaceholderAM;\n this.maskOptions = this.dateFormatService.getTimeMask(this.military);\n }\n\n /** BEGIN: Convenient Panel Methods. */\n openPanel(): void {\n if (!this.overlay.panelOpen) {\n this.overlay.openPanel();\n const hour = new Date().getHours();\n Promise.resolve(null).then(() => this.scrollToIndex(hour * 4));\n }\n }\n\n closePanel(): void {\n this.overlay.closePanel();\n }\n\n get panelOpen(): boolean {\n return this.overlay && this.overlay.panelOpen;\n }\n\n get overlayElement(): ElementRef {\n return this.overlayOnElement || this.element;\n }\n\n /** END: Convenient Panel Methods. */\n\n _handleKeydown(event: KeyboardEvent): void {\n const input = event.target as HTMLInputElement;\n const hour: string = input.value.slice(0, 2);\n if ((event.key === Key.Escape || event.key === Key.Enter) && this.panelOpen) {\n this.closePanel();\n event.stopPropagation();\n event.stopImmediatePropagation();\n if (this.hourOneFormatRequired(hour)) {\n input.value = `01:${input.value.slice(3, input.value.length)}`;\n }\n } else if (event.key === Key.Tab && input.selectionStart <= 2 && this.hourOneFormatRequired(hour)) {\n event.preventDefault();\n event.stopPropagation();\n event.stopImmediatePropagation();\n input.value = `01:${input.value.slice(3, input.value.length)}`;\n input.setSelectionRange(3, 3);\n } else if (event.key === Key.Backspace && input.selectionStart === input.value.length) {\n input.value = `${input.value.slice(0, 5)} xx`;\n } else if (event.key === Key.Tab && this.panelOpen) {\n this.closePanel();\n event.stopPropagation();\n event.stopImmediatePropagation();\n } else if (event.key === Key.ArrowRight && input.selectionStart >= 2 && this.hourOneFormatRequired(hour)) {\n input.value = `01:${input.value.slice(3, input.value.length)}`;\n input.setSelectionRange(2, 2);\n }\n }\n\n _handleInput(event: KeyboardEvent): void {\n if (document.activeElement === event.target) {\n const text = (event.target as HTMLInputElement).value;\n const hour = text.slice(0, 2);\n this.openPanel();\n if ((this.military && Number(text[0]) > 2) || (!this.military && Number(text[0]) > 1)) {\n event.preventDefault();\n (event.target as HTMLInputElement).value = `0${text}`;\n }\n if (!this.military) {\n const test = text.substr(5, 4).replace(/x/g, '').trim().slice(0, 2);\n const timePeriod = this.maskOptions.blocks.aa.enum.find((it) => it[0] === test[0]);\n if (timePeriod) {\n (event.target as HTMLInputElement).value = `${(event.target as HTMLInputElement).value.slice(0, 5)} ${timePeriod}`;\n }\n if ((event.target as HTMLInputElement).selectionStart >= 3 && this.hourOneFormatRequired(hour)) {\n (event.target as HTMLInputElement).value = `01:${(event.target as HTMLInputElement).value.slice(\n 3,\n (event.target as HTMLInputElement).value.length,\n )}`;\n }\n }\n }\n }\n\n _handleChange(event: Event): void {\n const text = (event?.target as HTMLInputElement)?.value;\n this.formatTime(text);\n this.changeEvent.emit();\n }\n\n _handleBlur(event: FocusEvent): void {\n const text = (event.target as HTMLInputElement).value;\n const hour: string = text.slice(0, 2);\n if (!this.military) {\n const test = text.substr(5, 4).replace(/x/g, '').trim().slice(0, 2);\n const timePeriod = this.maskOptions.blocks.aa.enum.find((it) => it[0] === test[0]);\n if (this.hourOneFormatRequired(hour)) {\n (event.target as HTMLInputElement).value = `01:${text.slice(3, text.length)}`;\n }\n if (!timePeriod) {\n (event.target as HTMLInputElement).value = `${(event.target as HTMLInputElement).value.slice(0, 5)} xx`;\n }\n }\n }\n\n _handleFocus(event: FocusEvent): void {\n this.openPanel();\n this.focusEvent.emit(event);\n }\n\n writeValue(value: any): void {\n Promise.resolve(null).then(() => this._setTriggerValue(value));\n }\n\n registerOnChange(fn: (value: any) => {}): void {\n this._onChange = fn;\n }\n\n registerOnTouched(fn: () => {}) {\n this._onTouched = fn;\n }\n\n setDisabledState(disabled: boolean): void {\n this.disabled = disabled;\n }\n\n public dispatchOnChange(newValue?: any, skip: boolean = false) {\n if (newValue !== this.value) {\n this._onChange(newValue);\n this.changeEvent.emit(newValue);\n !skip && this.writeValue(newValue);\n }\n }\n\n private _setTriggerValue(value: any): void {\n if (value instanceof Date && this.value instanceof Date) {\n value = new Date(value.setFullYear(this.value.getFullYear(), this.value.getMonth(), this.value.getDate()));\n }\n this.value = value;\n this._changeDetectorRef.markForCheck();\n }\n\n public setValueAndClose(event: any | null): void {\n this.setValue(event);\n this.closePanel();\n }\n\n public setValue(event: any | null): void {\n if (event && event.date) {\n this.dispatchOnChange(event.date);\n }\n }\n\n /**\n * Clear any previous selected option and emit a selection change event for this option\n */\n public clearValue() {\n this.dispatchOnChange(null);\n }\n\n public get hasValue() {\n return !Helpers.isEmpty(this.value);\n }\n\n public scrollToIndex(index: number) {\n const element = this.overlay.overlayRef.overlayElement;\n const list = element.querySelector('.increments');\n const items = list.querySelectorAll('novo-list-item');\n const item = items[index];\n if (item) {\n list.scrollTop = (item as HTMLElement).offsetTop;\n }\n }\n\n hourOneFormatRequired(hourInput: string): boolean {\n return hourInput === 'h1' || hourInput === '1h';\n }\n\n protected formatTime(value: string) {\n try {\n const [dateTimeValue, formatted] = this.dateFormatService.parseString(value, this.military, 'time');\n if (!isNaN(dateTimeValue.getUTCDate())) {\n const dt = new Date(dateTimeValue);\n this.dispatchOnChange(dt);\n } else {\n this.dispatchOnChange(null);\n }\n } catch (err) {}\n }\n\n save(): void {\n this.onSave.emit();\n }\n\n cancel(): void {\n this.onCancel.emit();\n }\n}\n","// NG2\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n// Vendor\nimport { IMaskModule } from 'angular-imask';\n// APP\nimport { NovoOverlayModule } from 'novo-elements/elements/common';\nimport { NovoListModule } from 'novo-elements/elements/list';\nimport { NovoButtonModule } from 'novo-elements/elements/button';\nimport { NovoTimePickerElement } from './TimePicker';\nimport { NovoTimePickerInputElement } from './TimePickerInput';\n\n@NgModule({\n imports: [CommonModule, FormsModule, IMaskModule, NovoOverlayModule, NovoListModule, NovoButtonModule],\n declarations: [NovoTimePickerElement, NovoTimePickerInputElement],\n exports: [NovoTimePickerElement, NovoTimePickerInputElement],\n})\nexport class NovoTimePickerModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i3","i4","i6.NovoTimePickerElement"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAmBA;AACA,MAAM,0BAA0B,GAAG;AACjC,IAAA,OA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CAAA,EAAA,OAAA,EAAA,CAE3F,qBAAqB,EAAE,0BAA0B,CAAA,EAAA,CAAA,CAAA;gHAEhD,oBAAoB,EAAA,OAAA,EAAA,CAJrB,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,iBAAiB,EAAE,cAAc,EAAE,gBAAgB,CAAA,EAAA,CAAA,CAAA;;4FAI1F,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBALhC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,iBAAiB,EAAE,cAAc,EAAE,gBAAgB,CAAC;AACtG,oBAAA,YAAY,EAAE,CAAC,qBAAqB,EAAE,0BAA0B,CAAC;AACjE,oBAAA,OAAO,EAAE,CAAC,qBAAqB,EAAE,0BAA0B,CAAC;AAC7D,iBAAA;;;ACjBD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"novo-elements-elements-time-picker.mjs","sources":["../../../projects/novo-elements/src/elements/time-picker/TimePicker.ts","../../../projects/novo-elements/src/elements/time-picker/TimePickerInput.ts","../../../projects/novo-elements/src/elements/time-picker/TimePicker.module.ts","../../../projects/novo-elements/src/elements/time-picker/novo-elements-elements-time-picker.ts"],"sourcesContent":["// NG2\nimport {\n ChangeDetectorRef,\n Component,\n ElementRef,\n EventEmitter,\n forwardRef,\n Input,\n OnChanges,\n OnInit,\n Output,\n SimpleChanges,\n} from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { isValid } from 'date-fns';\n// APP\nimport { NovoLabelService } from 'novo-elements/services';\nimport { DateUtil, Helpers } from 'novo-elements/utils';\n\n// Value accessor for the component (supports ngModel)\nconst TIME_PICKER_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => NovoTimePickerElement),\n multi: true,\n};\n\nexport enum TIME_VALUE_FORMATS {\n iso8601 = 'iso8601',\n Date = 'Date',\n}\n\n@Component({\n selector: 'novo-time-picker',\n providers: [TIME_PICKER_VALUE_ACCESSOR],\n template: `\n <div class=\"increments\" *ngIf=\"!analog\">\n <novo-list class=\"increments--hours\" direction=\"vertical\" data-automation-id=\"novo-time-picker-hours\">\n <novo-list-item\n class=\"increments--hour\"\n *ngFor=\"let increment of HOURS\"\n (click)=\"setHours($event, increment, true)\"\n [class.active]=\"increment == activeHour\"\n [attr.data-automation-id]=\"increment\"\n >\n <item-content>{{ increment }}</item-content>\n </novo-list-item>\n </novo-list>\n <novo-list class=\"increments--minutes\" direction=\"vertical\" data-automation-id=\"novo-time-picker-minutes\">\n <novo-list-item\n class=\"increments--minute\"\n *ngFor=\"let increment of MINUTES\"\n (click)=\"setMinutes($event, increment, true)\"\n [class.active]=\"increment == activeMinute\"\n [attr.data-automation-id]=\"increment\"\n >\n <item-content>{{ increment }}</item-content>\n </novo-list-item>\n </novo-list>\n <novo-list class=\"increments--meridians\" direction=\"vertical\" *ngIf=\"!military\" data-automation-id=\"novo-time-picker-meridians\">\n <novo-list-item\n class=\"increments--meridian\"\n *ngFor=\"let period of MERIDIANS\"\n (click)=\"setPeriod($event, period, true)\"\n [class.active]=\"meridian == period\"\n [attr.data-automation-id]=\"period\"\n >\n <item-content>{{ period }}</item-content>\n </novo-list-item>\n </novo-list>\n </div>\n <div class=\"analog\" *ngIf=\"analog\">\n <div class=\"analog--inner\">\n <div class=\"analog--face\">\n <span class=\"analog--center\"></span>\n <span class=\"analog--hand--hours\" [ngClass]=\"hoursClass\">\n <span class=\"analog--ball\"></span>\n </span>\n <span class=\"analog--hand--minutes\" [ngClass]=\"minutesClass\">\n <span class=\"analog--ball\" [ngClass]=\"{ between: inBetween }\"></span>\n </span>\n </div>\n <div class=\"analog--hours\">\n <span\n *ngFor=\"let hour of HOURS\"\n class=\"analog--hour\"\n [ngClass]=\"{ active: activeHour == hour }\"\n (click)=\"setHours($event, hour, true)\"\n [attr.data-automation-id]=\"hour\"\n >{{ hour }}</span\n >\n </div>\n <div class=\"analog--minutes\">\n <span\n *ngFor=\"let minute of MINUTES\"\n class=\"analog--minute\"\n [ngClass]=\"{ active: activeMinute == minute }\"\n (click)=\"setMinutes($event, minute, true)\"\n [attr.data-automation-id]=\"minute\"\n >{{ minute }}</span\n >\n </div>\n </div>\n </div>\n <div class=\"save-cancel-buttons\" *ngIf=\"hasButtons\">\n <novo-button\n class=\"cancel-button\"\n theme=\"dialogue\"\n size=\"small\"\n (click)=\"cancel()\">{{ labels.cancel }}</novo-button>\n <novo-button\n class=\"save-button\"\n theme=\"primary\"\n color=\"primary\"\n size=\"small\"\n [disabled]=\"saveDisabled\"\n (click)=\"save()\">{{ labels.save }}</novo-button>\n </div>\n `,\n styleUrls: ['./TimePicker.scss'],\n host: {\n class: 'novo-time-picker',\n '[class.military]': 'military',\n },\n standalone: false,\n})\nexport class NovoTimePickerElement implements ControlValueAccessor, OnInit, OnChanges {\n @Input()\n military: boolean = false;\n @Input()\n analog: boolean = false;\n @Input()\n inline: boolean = false;\n @Input()\n step: number = 1;\n @Input()\n hasButtons: boolean = false;\n @Input()\n saveDisabled: boolean = false;\n\n @Output()\n onSelect: EventEmitter<any> = new EventEmitter();\n @Output()\n onSave: EventEmitter<any> = new EventEmitter();\n @Output()\n onCancel: EventEmitter<any> = new EventEmitter();\n\n hours: number = 12;\n minutes: number = 0;\n value: any = null;\n meridian: string;\n inBetween: boolean;\n hoursClass: string;\n activeHour;\n minutesClass: string;\n activeMinute;\n increments: string[] = [];\n selected: string;\n MERIDIANS: Array<string> = ['am', 'pm'];\n MINUTES: Array<string> = ['05', '10', '15', '20', '25', '30', '35', '40', '45', '50', '55', '00'];\n HOURS: Array<string> = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'];\n model: any;\n _onChange: Function = () => {};\n _onTouched: Function = () => {};\n\n flatten(arr) {\n return Array.prototype.concat(...arr);\n }\n\n constructor(\n public element: ElementRef,\n public labels: NovoLabelService,\n protected cdr: ChangeDetectorRef,\n ) {}\n\n ngOnInit() {\n if (this.military) {\n this.HOURS = ['0', ...this.HOURS, '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23'];\n }\n if (!this.analog) {\n const mins = Array.from(Array(60 / this.step).keys()).map((i) => i * this.step);\n this.MINUTES = mins.map((m) => `${m}`.padStart(2, '0'));\n }\n this.ngOnChanges();\n }\n\n ngOnChanges(changes?: SimpleChanges) {\n if (this.model) {\n this.init(this.model, false);\n } else {\n this.selected = null;\n this.init(new Date(), false);\n }\n }\n\n init(value, dispatch) {\n const _value = new Date(value);\n let hours: string | number = _value.getHours();\n let minutes: string | number = _value.getMinutes();\n\n if (!this.military) {\n this.meridian = hours >= 12 ? 'pm' : 'am';\n hours = hours % 12;\n hours = hours || 12;\n }\n minutes = minutes < 10 ? `0${minutes}` : minutes;\n\n this.setHours(null, hours, dispatch);\n this.setMinutes(null, minutes, dispatch);\n this.checkBetween(minutes);\n }\n\n checkBetween(value) {\n this.inBetween = this.MINUTES.indexOf(String(value)) < 0;\n }\n\n setValue(event, value) {\n Helpers.swallowEvent(event);\n this.selected = value;\n const [time, meridian] = value.split(' ');\n const [hours, minutes] = time.split(':');\n this.hours = hours;\n this.minutes = minutes;\n this.meridian = meridian;\n\n this.dispatchChange();\n }\n\n setHours(event, hours, dispatch) {\n Helpers.swallowEvent(event);\n this.hours = hours;\n this.hoursClass = `hour-${hours}`;\n this.activeHour = hours;\n\n if (dispatch) {\n this.dispatchChange();\n }\n }\n\n setMinutes(event, minutes, dispatch) {\n Helpers.swallowEvent(event);\n this.minutes = minutes;\n this.minutesClass = `min-${minutes}`;\n this.activeMinute = minutes;\n this.checkBetween(minutes);\n\n if (dispatch) {\n this.dispatchChange();\n }\n }\n\n setPeriod(event, period, dispatch) {\n Helpers.swallowEvent(event);\n this.meridian = period;\n\n if (dispatch) {\n this.dispatchChange();\n }\n }\n\n dispatchChange() {\n let hours = Number(this.hours);\n\n if (!this.military) {\n hours = this.meridian.toLowerCase() === 'pm' ? hours + 12 : hours;\n\n // Special case for 12\n if (this.meridian.toLowerCase() === 'pm' && hours === 24) {\n hours = 12;\n } else if (this.meridian.toLowerCase() === 'am' && hours === 12) {\n hours = 0;\n }\n }\n\n const value = new Date();\n value.setHours(hours);\n value.setMinutes(this.minutes);\n value.setSeconds(0);\n this.value = `${this.hours}:${this.minutes} ${this.meridian}`;\n this.onSelect.next({\n hours,\n minutes: this.minutes,\n meridian: this.meridian,\n date: value,\n text: this.value,\n });\n this._onChange(value);\n }\n\n // ValueAccessor Functions\n writeValue(model: any): void {\n this.model = model;\n if (Helpers.isDate(model)) {\n this.init(model, false);\n }\n if (Helpers.isString(model)) {\n const time = this.military ? model : this.convertTime12to24(model);\n const date = DateUtil.parse(`${DateUtil.format(Date.now(), 'YYYY-MM-DD')}T${time}`);\n if (isValid(date)) {\n this.init(date, false);\n }\n }\n }\n\n registerOnChange(fn: Function): void {\n this._onChange = fn;\n }\n\n registerOnTouched(fn: Function): void {\n this._onTouched = fn;\n }\n\n convertTime12to24(time12h: string) {\n const pmFormat = this.labels.timeFormatPM.toUpperCase();\n\n const [time, modifier] = time12h.split(' ');\n // eslint-disable-next-line prefer-const\n let [hours, minutes] = time.split(':');\n if (hours === '12') {\n hours = '00';\n }\n if (['PM', pmFormat].includes(modifier)) {\n hours = `${parseInt(hours, 10) + 12}`.padStart(2, '0');\n }\n return `${hours}:${minutes}`;\n }\n\n save(): void {\n this.onSave.emit();\n }\n\n cancel(): void {\n this.onCancel.emit();\n }\n}\n","// NG\nimport {\n ChangeDetectorRef,\n Component,\n ElementRef,\n EventEmitter,\n forwardRef,\n HostBinding,\n Input,\n OnChanges,\n OnInit,\n Output,\n SimpleChanges,\n ViewChild,\n} from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\n// App\nimport { NovoOverlayTemplateComponent } from 'novo-elements/elements/common';\nimport { DateFormatService, NovoLabelService } from 'novo-elements/services';\nimport { Helpers, Key } from 'novo-elements/utils';\n\n// Value accessor for the component (supports ngModel)\nconst DATE_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => NovoTimePickerInputElement),\n multi: true,\n};\n\n@Component({\n selector: 'novo-time-picker-input',\n providers: [DATE_VALUE_ACCESSOR],\n template: `\n <input\n type=\"text\"\n [name]=\"name\"\n [(ngModel)]=\"value\"\n [imask]=\"maskOptions\"\n [unmask]=\"'typed'\"\n [placeholder]=\"placeholder\"\n (change)=\"_handleChange($event)\"\n (focus)=\"_handleFocus($event)\"\n (keydown)=\"_handleKeydown($event)\"\n (input)=\"_handleInput($event)\"\n (blur)=\"_handleBlur($event)\"\n #input\n data-automation-id=\"time-input\"\n [disabled]=\"disabled\"\n />\n <i *ngIf=\"!hasValue\" (click)=\"openPanel()\" class=\"bhi-clock\"></i> <i *ngIf=\"hasValue\" (click)=\"clearValue()\" class=\"bhi-times\"></i>\n <novo-overlay-template [parent]=\"overlayElement\" position=\"above-below\">\n <novo-time-picker\n [ngClass]=\"{ 'hasButtons': hasButtons }\"\n [hasButtons]=\"hasButtons\"\n inline=\"true\"\n [analog]=\"analog\"\n (onSelect)=\"setValue($event)\"\n [ngModel]=\"value\"\n [military]=\"military\"\n [saveDisabled]=\"saveDisabled\"\n (onCancel)=\"cancel()\"\n (onSave)=\"save()\"\n ></novo-time-picker>\n </novo-overlay-template>\n `,\n styleUrls: ['./TimePickerInput.scss'],\n standalone: false,\n})\nexport class NovoTimePickerInputElement implements OnInit, OnChanges, ControlValueAccessor {\n public value: any;\n\n /** View -> model callback called when value changes */\n _onChange: (value: any) => void = () => {};\n /** View -> model callback called when autocomplete has been touched */\n _onTouched = () => {};\n\n @Input()\n name: string;\n @Input()\n placeholder: string;\n @Input()\n military: boolean = false;\n @Input()\n maskOptions: any;\n @HostBinding('class.disabled')\n @Input()\n disabled: boolean = false;\n @Input()\n hasButtons: boolean = false;\n @Input()\n saveDisabled: boolean = false;\n @Input()\n overlayOnElement: ElementRef;\n\n /**\n * @deprecated don't use\n */\n @Input()\n analog: boolean = false;\n\n @Output()\n blurEvent: EventEmitter<FocusEvent> = new EventEmitter<FocusEvent>();\n @Output()\n focusEvent: EventEmitter<FocusEvent> = new EventEmitter<FocusEvent>();\n @Output()\n changeEvent: EventEmitter<FocusEvent> = new EventEmitter<FocusEvent>();\n @Output()\n onSave: EventEmitter<any> = new EventEmitter();\n @Output()\n onCancel: EventEmitter<any> = new EventEmitter();\n\n /** Element for the panel containing the autocomplete options. */\n @ViewChild(NovoOverlayTemplateComponent)\n overlay: NovoOverlayTemplateComponent;\n @ViewChild('input')\n input: HTMLInputElement;\n\n constructor(\n public element: ElementRef,\n public labels: NovoLabelService,\n public dateFormatService: DateFormatService,\n protected _changeDetectorRef: ChangeDetectorRef,\n ) {}\n\n ngOnInit(): void {\n this.initFormatOptions();\n }\n\n ngOnChanges(changes?: SimpleChanges) {\n // set icon and styling\n if (Object.keys(changes).some((key) => ['military', 'maskOptions'].includes(key))) {\n this.initFormatOptions();\n }\n }\n\n initFormatOptions() {\n this.placeholder = this.military ? this.labels.timeFormatPlaceholder24Hour : this.labels.timeFormatPlaceholderAM;\n this.maskOptions = this.dateFormatService.getTimeMask(this.military);\n }\n\n /** BEGIN: Convenient Panel Methods. */\n openPanel(): void {\n if (!this.overlay.panelOpen) {\n this.overlay.openPanel();\n const hour = new Date().getHours();\n Promise.resolve(null).then(() => this.scrollToIndex(hour * 4));\n }\n }\n\n closePanel(): void {\n this.overlay.closePanel();\n }\n\n get panelOpen(): boolean {\n return this.overlay && this.overlay.panelOpen;\n }\n\n get overlayElement(): ElementRef {\n return this.overlayOnElement || this.element;\n }\n\n /** END: Convenient Panel Methods. */\n\n _handleKeydown(event: KeyboardEvent): void {\n const input = event.target as HTMLInputElement;\n const hour: string = input.value.slice(0, 2);\n if ((event.key === Key.Escape || event.key === Key.Enter) && this.panelOpen) {\n this.closePanel();\n event.stopPropagation();\n event.stopImmediatePropagation();\n if (this.hourOneFormatRequired(hour)) {\n input.value = `01:${input.value.slice(3, input.value.length)}`;\n }\n } else if (event.key === Key.Tab && input.selectionStart <= 2 && this.hourOneFormatRequired(hour)) {\n event.preventDefault();\n event.stopPropagation();\n event.stopImmediatePropagation();\n input.value = `01:${input.value.slice(3, input.value.length)}`;\n input.setSelectionRange(3, 3);\n } else if (event.key === Key.Backspace && input.selectionStart === input.value.length) {\n input.value = `${input.value.slice(0, 5)} xx`;\n } else if (event.key === Key.Tab && this.panelOpen) {\n this.closePanel();\n event.stopPropagation();\n event.stopImmediatePropagation();\n } else if (event.key === Key.ArrowRight && input.selectionStart >= 2 && this.hourOneFormatRequired(hour)) {\n input.value = `01:${input.value.slice(3, input.value.length)}`;\n input.setSelectionRange(2, 2);\n }\n }\n\n _handleInput(event: KeyboardEvent): void {\n if (document.activeElement === event.target) {\n const text = (event.target as HTMLInputElement).value;\n const hour = text.slice(0, 2);\n this.openPanel();\n if ((this.military && Number(text[0]) > 2) || (!this.military && Number(text[0]) > 1)) {\n event.preventDefault();\n (event.target as HTMLInputElement).value = `0${text}`;\n }\n if (!this.military) {\n const test = text.substr(5, 4).replace(/x/g, '').trim().slice(0, 2);\n const timePeriod = this.maskOptions.blocks.aa.enum.find((it) => it[0] === test[0]);\n if (timePeriod) {\n (event.target as HTMLInputElement).value = `${(event.target as HTMLInputElement).value.slice(0, 5)} ${timePeriod}`;\n }\n if ((event.target as HTMLInputElement).selectionStart >= 3 && this.hourOneFormatRequired(hour)) {\n (event.target as HTMLInputElement).value = `01:${(event.target as HTMLInputElement).value.slice(\n 3,\n (event.target as HTMLInputElement).value.length,\n )}`;\n }\n }\n }\n }\n\n _handleChange(event: Event): void {\n const text = (event?.target as HTMLInputElement)?.value;\n this.formatTime(text);\n this.changeEvent.emit();\n }\n\n _handleBlur(event: FocusEvent): void {\n const text = (event.target as HTMLInputElement).value;\n const hour: string = text.slice(0, 2);\n if (!this.military) {\n const test = text.substr(5, 4).replace(/x/g, '').trim().slice(0, 2);\n const timePeriod = this.maskOptions.blocks.aa.enum.find((it) => it[0] === test[0]);\n if (this.hourOneFormatRequired(hour)) {\n (event.target as HTMLInputElement).value = `01:${text.slice(3, text.length)}`;\n }\n if (!timePeriod) {\n (event.target as HTMLInputElement).value = `${(event.target as HTMLInputElement).value.slice(0, 5)} xx`;\n }\n }\n }\n\n _handleFocus(event: FocusEvent): void {\n this.openPanel();\n this.focusEvent.emit(event);\n }\n\n writeValue(value: any): void {\n Promise.resolve(null).then(() => this._setTriggerValue(value));\n }\n\n registerOnChange(fn: (value: any) => {}): void {\n this._onChange = fn;\n }\n\n registerOnTouched(fn: () => {}) {\n this._onTouched = fn;\n }\n\n setDisabledState(disabled: boolean): void {\n this.disabled = disabled;\n }\n\n public dispatchOnChange(newValue?: any, skip: boolean = false) {\n if (newValue !== this.value) {\n this._onChange(newValue);\n this.changeEvent.emit(newValue);\n !skip && this.writeValue(newValue);\n }\n }\n\n private _setTriggerValue(value: any): void {\n if (value instanceof Date && this.value instanceof Date) {\n value = new Date(value.setFullYear(this.value.getFullYear(), this.value.getMonth(), this.value.getDate()));\n }\n this.value = value;\n this._changeDetectorRef.markForCheck();\n }\n\n public setValueAndClose(event: any | null): void {\n this.setValue(event);\n this.closePanel();\n }\n\n public setValue(event: any | null): void {\n if (event && event.date) {\n this.dispatchOnChange(event.date);\n }\n }\n\n /**\n * Clear any previous selected option and emit a selection change event for this option\n */\n public clearValue() {\n this.dispatchOnChange(null);\n }\n\n public get hasValue() {\n return !Helpers.isEmpty(this.value);\n }\n\n public scrollToIndex(index: number) {\n const element = this.overlay.overlayRef.overlayElement;\n const list = element.querySelector('.increments');\n const items = list.querySelectorAll('novo-list-item');\n const item = items[index];\n if (item) {\n list.scrollTop = (item as HTMLElement).offsetTop;\n }\n }\n\n hourOneFormatRequired(hourInput: string): boolean {\n return hourInput === 'h1' || hourInput === '1h';\n }\n\n protected formatTime(value: string) {\n try {\n const [dateTimeValue, formatted] = this.dateFormatService.parseString(value, this.military, 'time');\n if (!isNaN(dateTimeValue.getUTCDate())) {\n const dt = new Date(dateTimeValue);\n this.dispatchOnChange(dt);\n } else {\n this.dispatchOnChange(null);\n }\n } catch (err) {}\n }\n\n save(): void {\n this.onSave.emit();\n }\n\n cancel(): void {\n this.onCancel.emit();\n }\n}\n","// NG2\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n// Vendor\nimport { IMaskModule } from 'angular-imask';\n// APP\nimport { NovoOverlayModule } from 'novo-elements/elements/common';\nimport { NovoListModule } from 'novo-elements/elements/list';\nimport { NovoButtonModule } from 'novo-elements/elements/button';\nimport { NovoTimePickerElement } from './TimePicker';\nimport { NovoTimePickerInputElement } from './TimePickerInput';\n\n@NgModule({\n imports: [CommonModule, FormsModule, IMaskModule, NovoOverlayModule, NovoListModule, NovoButtonModule],\n declarations: [NovoTimePickerElement, NovoTimePickerInputElement],\n exports: [NovoTimePickerElement, NovoTimePickerInputElement],\n})\nexport class NovoTimePickerModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i3","i4","i6.NovoTimePickerElement"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAmBA;AACA,MAAM,0BAA0B,GAAG;AACjC,IAAA,OAAO,EAAE,iBAAiB;AAC1B,IAAA,WAAW,EAAE,UAAU,CAAC,MAAM,qBAAqB,CAAC;AACpD,IAAA,KAAK,EAAE,IAAI;CACZ;IAEW;AAAZ,CAAA,UAAY,kBAAkB,EAAA;AAC5B,IAAA,kBAAA,CAAA,SAAA,CAAA,GAAA,SAAmB;AACnB,IAAA,kBAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACf,CAAC,EAHW,kBAAkB,KAAlB,kBAAkB,GAAA,EAAA,CAAA,CAAA;MAmGjB,qBAAqB,CAAA;AAuChC,IAAA,OAAO,CAAC,GAAG,EAAA;QACT,OAAO,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,GAAG,GAAG,CAAC;IACvC;AAEA,IAAA,WAAA,CACS,OA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BAAA,OAAO,EAAE,CAAC,qBAAqB,EAAE,0BAA0B,CAAC;AAC7D,iBAAA;;;ACjBD;;AAEG;;;;"}
|
|
@@ -14,6 +14,7 @@ class NovoTipWellElement {
|
|
|
14
14
|
this.sanitizer = sanitizer;
|
|
15
15
|
this.button = true;
|
|
16
16
|
this.sanitize = true;
|
|
17
|
+
this.variant = 'default';
|
|
17
18
|
this.confirmed = new EventEmitter();
|
|
18
19
|
this.isActive = true;
|
|
19
20
|
this.isActive = true;
|
|
@@ -43,9 +44,19 @@ class NovoTipWellElement {
|
|
|
43
44
|
}
|
|
44
45
|
ngOnInit() {
|
|
45
46
|
this.tip = this.tip || '';
|
|
46
|
-
this.buttonText = this.buttonText || this.labels.okGotIt;
|
|
47
47
|
this.button = typeof this.button === 'string' ? this.button === 'true' : this.button;
|
|
48
48
|
this.icon = this.icon || null;
|
|
49
|
+
// Apply variant defaults
|
|
50
|
+
if (this.variant === 'icon') {
|
|
51
|
+
this.buttonTheme = this.buttonTheme || 'icon';
|
|
52
|
+
this.buttonSize = this.buttonSize || 'small';
|
|
53
|
+
this.buttonText = this.buttonText || '';
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
this.buttonTheme = this.buttonTheme || 'dialogue';
|
|
57
|
+
this.buttonSize = this.buttonSize || 'small';
|
|
58
|
+
this.buttonText = this.buttonText || this.labels.okGotIt;
|
|
59
|
+
}
|
|
49
60
|
// Set a (semi) unique name for the tip-well
|
|
50
61
|
this.name = this.name || Math.round(Math.random() * 100);
|
|
51
62
|
this.localStorageKey = `novo-tw_${this.name}`;
|
|
@@ -63,7 +74,7 @@ class NovoTipWellElement {
|
|
|
63
74
|
this.confirmed.emit();
|
|
64
75
|
}
|
|
65
76
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: NovoTipWellElement, deps: [{ token: i1.NovoLabelService }, { token: i2.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
66
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.19", type: NovoTipWellElement, isStandalone: false, selector: "novo-tip-well", inputs: { name: "name", tip: "tip", buttonText: "buttonText", button: "button", icon: "icon", sanitize: "sanitize" }, outputs: { confirmed: "confirmed" }, host: { properties: { "class.active": "isActive" } }, ngImport: i0, template: `
|
|
77
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.19", type: NovoTipWellElement, isStandalone: false, selector: "novo-tip-well", inputs: { name: "name", tip: "tip", buttonText: "buttonText", button: "button", buttonIcon: "buttonIcon", icon: "icon", sanitize: "sanitize", variant: "variant", buttonTheme: "buttonTheme", buttonSize: "buttonSize" }, outputs: { confirmed: "confirmed" }, host: { properties: { "class.active": "isActive", "attr.data-variant": "variant" } }, ngImport: i0, template: `
|
|
67
78
|
<div *ngIf="isActive">
|
|
68
79
|
<div>
|
|
69
80
|
<i class="bhi-{{ icon }}" *ngIf="icon" [attr.data-automation-id]="'novo-tip-well-icon-' + name"></i>
|
|
@@ -72,11 +83,11 @@ class NovoTipWellElement {
|
|
|
72
83
|
<p *ngIf="!sanitize && tipWithStyles" [attr.data-automation-id]="'novo-tip-well-tip-' + name" [innerHTML]="tipWithStyles"></p>
|
|
73
84
|
<p *ngIf="(sanitize && !tip.length) || (!sanitize && !tipWithStyles)" [attr.data-automation-id]="'novo-tip-well-tip-' + name"><ng-content></ng-content></p>
|
|
74
85
|
</div>
|
|
75
|
-
<button theme="
|
|
86
|
+
<button [theme]="buttonTheme" [size]="buttonSize" [icon]="buttonIcon" (click)="hideTip()" *ngIf="button" [attr.data-automation-id]="'novo-tip-well-button-' + name">
|
|
76
87
|
{{ buttonText }}
|
|
77
88
|
</button>
|
|
78
89
|
</div>
|
|
79
|
-
`, isInline: true, styles: [":host.active{display:inline-block;margin-bottom:var(--spacing-md)}:host>div{display:inline-block;border-radius:var(--border-radius-sm);background-color:var(--background-main, #f7f7f7);color:var(--text-main, #3d464d);padding:var(--spacing-lg);text-align:right}:host>div>div{display:flex}:host>div>div>i{flex-shrink:0;text-align:center;margin-right:var(--spacing-md);color:#aaa}:host>div>div>p{display:inline;font-weight:400;color:inherit;font-size:var(--font-size-text);transition:color .2s ease-out,opacity .2s ease-out;vertical-align:middle;width:100%;padding:0;text-align:left;white-space:pre-line}:host>div>div>p.text-capitalize{text-transform:capitalize}:host>div>div>p.text-uppercase{text-transform:uppercase}:host>div>div>p.text-nowrap{white-space:nowrap}:host>div>div>p.text-ellipsis{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host>div>div>p.text-size-default{font-size:inherit}:host>div>div>p.text-size-body{font-size:var(--font-size-body)}:host>div>div>p.text-size-xs{font-size:var(--font-size-xs)}:host>div>div>p.text-size-sm{font-size:var(--font-size-sm)}:host>div>div>p.text-size-md{font-size:var(--font-size-md)}:host>div>div>p.text-size-lg{font-size:var(--font-size-lg)}:host>div>div>p.text-size-xl{font-size:var(--font-size-xl)}:host>div>div>p.text-size-2xl{font-size:var(--font-size-2xl)}:host>div>div>p.text-size-3xl{font-size:var(--font-size-3xl)}:host>div>div>p.text-size-smaller{font-size:.8em}:host>div>div>p.text-size-larger{font-size:1.2em}:host>div>div>p.text-color-black{color:var(--color-black)}:host>div>div>p.text-color-white{color:var(--color-white)}:host>div>div>p.text-color-gray{color:var(--color-gray)}:host>div>div>p.text-color-grey{color:var(--color-grey)}:host>div>div>p.text-color-offWhite{color:var(--color-off-white)}:host>div>div>p.text-color-bright{color:var(--color-bright)}:host>div>div>p.text-color-light{color:var(--color-light)}:host>div>div>p.text-color-neutral{color:var(--color-neutral)}:host>div>div>p.text-color-dark{color:var(--color-dark)}:host>div>div>p.text-color-orange{color:var(--color-orange)}:host>div>div>p.text-color-navigation{color:var(--color-navigation)}:host>div>div>p.text-color-skyBlue{color:var(--color-sky-blue)}:host>div>div>p.text-color-steel{color:var(--color-steel)}:host>div>div>p.text-color-metal{color:var(--color-metal)}:host>div>div>p.text-color-sand{color:var(--color-sand)}:host>div>div>p.text-color-silver{color:var(--color-silver)}:host>div>div>p.text-color-stone{color:var(--color-stone)}:host>div>div>p.text-color-ash{color:var(--color-ash)}:host>div>div>p.text-color-anonymous{color:var(--color-anonymous)}:host>div>div>p.text-color-slate{color:var(--color-slate)}:host>div>div>p.text-color-onyx{color:var(--color-onyx)}:host>div>div>p.text-color-charcoal{color:var(--color-charcoal)}:host>div>div>p.text-color-moonlight{color:var(--color-moonlight)}:host>div>div>p.text-color-midnight{color:var(--color-midnight)}:host>div>div>p.text-color-darkness{color:var(--color-darkness)}:host>div>div>p.text-color-navy{color:var(--color-navy)}:host>div>div>p.text-color-aqua{color:var(--color-aqua)}:host>div>div>p.text-color-ocean{color:var(--color-ocean)}:host>div>div>p.text-color-mint{color:var(--color-mint)}:host>div>div>p.text-color-grass{color:var(--color-grass)}:host>div>div>p.text-color-sunflower{color:var(--color-sunflower)}:host>div>div>p.text-color-bittersweet{color:var(--color-bittersweet)}:host>div>div>p.text-color-grapefruit{color:var(--color-grapefruit)}:host>div>div>p.text-color-carnation{color:var(--color-carnation)}:host>div>div>p.text-color-lavender{color:var(--color-lavender)}:host>div>div>p.text-color-mountain{color:var(--color-mountain)}:host>div>div>p.text-color-info{color:var(--color-info)}:host>div>div>p.text-color-positive{color:var(--color-positive)}:host>div>div>p.text-color-success{color:var(--color-success)}:host>div>div>p.text-color-negative{color:var(--color-negative)}:host>div>div>p.text-color-danger{color:var(--color-danger)}:host>div>div>p.text-color-error{color:var(--color-error)}:host>div>div>p.text-color-warning{color:var(--color-warning)}:host>div>div>p.text-color-empty{color:var(--color-empty)}:host>div>div>p.text-color-disabled{color:var(--color-disabled)}:host>div>div>p.text-color-background{color:var(--color-background)}:host>div>div>p.text-color-backgroundDark{color:var(--color-background-dark)}:host>div>div>p.text-color-border{color:var(--color-border)}:host>div>div>p.text-color-border2{color:var(--color-border2)}:host>div>div>p.text-color-text{color:var(--color-text)}:host>div>div>p.text-color-presentation{color:var(--color-presentation)}:host>div>div>p.text-color-bullhorn{color:var(--color-bullhorn)}:host>div>div>p.text-color-pulse{color:var(--color-pulse)}:host>div>div>p.text-color-fastFind{color:var(--color-fast-find)}:host>div>div>p.text-color-toast{color:var(--color-toast)}:host>div>div>p.text-color-company{color:var(--color-company)}:host>div>div>p.text-color-candidate{color:var(--color-candidate)}:host>div>div>p.text-color-lead{color:var(--color-lead)}:host>div>div>p.text-color-contact{color:var(--color-contact)}:host>div>div>p.text-color-clientcontact{color:var(--color-clientcontact)}:host>div>div>p.text-color-opportunity{color:var(--color-opportunity)}:host>div>div>p.text-color-job{color:var(--color-job)}:host>div>div>p.text-color-joborder{color:var(--color-joborder)}:host>div>div>p.text-color-submission{color:var(--color-submission)}:host>div>div>p.text-color-sendout{color:var(--color-sendout)}:host>div>div>p.text-color-placement{color:var(--color-placement)}:host>div>div>p.text-color-note{color:var(--color-note)}:host>div>div>p.text-color-contract{color:var(--color-contract)}:host>div>div>p.text-color-task{color:var(--color-task)}:host>div>div>p.text-color-jobCode{color:var(--color-job-code)}:host>div>div>p.text-color-earnCode{color:var(--color-earn-code)}:host>div>div>p.text-color-invoiceStatement{color:var(--color-invoice-statement)}:host>div>div>p.text-color-billableCharge{color:var(--color-billable-charge)}:host>div>div>p.text-color-payableCharge{color:var(--color-payable-charge)}:host>div>div>p.text-color-user{color:var(--color-user)}:host>div>div>p.text-color-corporateUser{color:var(--color-corporate-user)}:host>div>div>p.text-color-distributionList{color:var(--color-distribution-list)}:host>div>div>p.text-color-credential{color:var(--color-credential)}:host>div>div>p.text-color-person{color:var(--color-person)}:host>div>div>p.margin-before{margin-top:.4rem}:host>div>div>p.margin-after{margin-bottom:.8rem}:host>div>div>p.text-length-small{max-width:40ch}:host>div>div>p.text-length-medium{max-width:55ch}:host>div>div>p.text-length-large{max-width:70ch}:host>div>div>p.text-weight-hairline{font-weight:var(--font-weight-hairline)}:host>div>div>p.text-weight-thin{font-weight:var(--font-weight-thin)}:host>div>div>p.text-weight-light{font-weight:var(--font-weight-light)}:host>div>div>p.text-weight-normal{font-weight:var(--font-weight-normal)}:host>div>div>p.text-weight-medium{font-weight:var(--font-weight-medium)}:host>div>div>p.text-weight-semibold{font-weight:var(--font-weight-semibold)}:host>div>div>p.text-weight-bold{font-weight:var(--font-weight-bold)}:host>div>div>p.text-weight-extrabold{font-weight:var(--font-weight-extrabold)}:host>div>div>p.text-weight-heavy{font-weight:var(--font-weight-heavy)}:host>div>div>p.text-weight-lighter{font-weight:lighter}:host>div>div>p.text-weight-bolder{font-weight:bolder}\n"], dependencies: [{ kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i4.NovoButtonElement, selector: "novo-button,button[theme]", inputs: ["color", "side", "size", "theme", "loading", "icon", "secondIcon", "disabled"] }] }); }
|
|
90
|
+
`, isInline: true, styles: [":host.active{display:inline-block;margin-bottom:var(--spacing-md)}:host>div{display:inline-block;border-radius:var(--border-radius-sm);background-color:var(--background-main, #f7f7f7);color:var(--text-main, #3d464d);padding:var(--spacing-lg);text-align:right}:host>div>div{display:flex}:host>div>div>i{flex-shrink:0;text-align:center;margin-right:var(--spacing-md);color:#aaa}:host>div>div>p{display:inline;font-weight:400;color:inherit;font-size:var(--font-size-text);transition:color .2s ease-out,opacity .2s ease-out;vertical-align:middle;width:100%;padding:0;text-align:left;white-space:pre-line}:host>div>div>p.text-capitalize{text-transform:capitalize}:host>div>div>p.text-uppercase{text-transform:uppercase}:host>div>div>p.text-nowrap{white-space:nowrap}:host>div>div>p.text-ellipsis{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host>div>div>p.text-size-default{font-size:inherit}:host>div>div>p.text-size-body{font-size:var(--font-size-body)}:host>div>div>p.text-size-xs{font-size:var(--font-size-xs)}:host>div>div>p.text-size-sm{font-size:var(--font-size-sm)}:host>div>div>p.text-size-md{font-size:var(--font-size-md)}:host>div>div>p.text-size-lg{font-size:var(--font-size-lg)}:host>div>div>p.text-size-xl{font-size:var(--font-size-xl)}:host>div>div>p.text-size-2xl{font-size:var(--font-size-2xl)}:host>div>div>p.text-size-3xl{font-size:var(--font-size-3xl)}:host>div>div>p.text-size-smaller{font-size:.8em}:host>div>div>p.text-size-larger{font-size:1.2em}:host>div>div>p.text-color-black{color:var(--color-black)}:host>div>div>p.text-color-white{color:var(--color-white)}:host>div>div>p.text-color-gray{color:var(--color-gray)}:host>div>div>p.text-color-grey{color:var(--color-grey)}:host>div>div>p.text-color-offWhite{color:var(--color-off-white)}:host>div>div>p.text-color-bright{color:var(--color-bright)}:host>div>div>p.text-color-light{color:var(--color-light)}:host>div>div>p.text-color-neutral{color:var(--color-neutral)}:host>div>div>p.text-color-dark{color:var(--color-dark)}:host>div>div>p.text-color-orange{color:var(--color-orange)}:host>div>div>p.text-color-navigation{color:var(--color-navigation)}:host>div>div>p.text-color-skyBlue{color:var(--color-sky-blue)}:host>div>div>p.text-color-steel{color:var(--color-steel)}:host>div>div>p.text-color-metal{color:var(--color-metal)}:host>div>div>p.text-color-sand{color:var(--color-sand)}:host>div>div>p.text-color-silver{color:var(--color-silver)}:host>div>div>p.text-color-stone{color:var(--color-stone)}:host>div>div>p.text-color-ash{color:var(--color-ash)}:host>div>div>p.text-color-anonymous{color:var(--color-anonymous)}:host>div>div>p.text-color-slate{color:var(--color-slate)}:host>div>div>p.text-color-onyx{color:var(--color-onyx)}:host>div>div>p.text-color-charcoal{color:var(--color-charcoal)}:host>div>div>p.text-color-moonlight{color:var(--color-moonlight)}:host>div>div>p.text-color-midnight{color:var(--color-midnight)}:host>div>div>p.text-color-darkness{color:var(--color-darkness)}:host>div>div>p.text-color-navy{color:var(--color-navy)}:host>div>div>p.text-color-aqua{color:var(--color-aqua)}:host>div>div>p.text-color-ocean{color:var(--color-ocean)}:host>div>div>p.text-color-mint{color:var(--color-mint)}:host>div>div>p.text-color-grass{color:var(--color-grass)}:host>div>div>p.text-color-sunflower{color:var(--color-sunflower)}:host>div>div>p.text-color-bittersweet{color:var(--color-bittersweet)}:host>div>div>p.text-color-grapefruit{color:var(--color-grapefruit)}:host>div>div>p.text-color-carnation{color:var(--color-carnation)}:host>div>div>p.text-color-lavender{color:var(--color-lavender)}:host>div>div>p.text-color-mountain{color:var(--color-mountain)}:host>div>div>p.text-color-info{color:var(--color-info)}:host>div>div>p.text-color-positive{color:var(--color-positive)}:host>div>div>p.text-color-success{color:var(--color-success)}:host>div>div>p.text-color-negative{color:var(--color-negative)}:host>div>div>p.text-color-danger{color:var(--color-danger)}:host>div>div>p.text-color-error{color:var(--color-error)}:host>div>div>p.text-color-warning{color:var(--color-warning)}:host>div>div>p.text-color-empty{color:var(--color-empty)}:host>div>div>p.text-color-disabled{color:var(--color-disabled)}:host>div>div>p.text-color-background{color:var(--color-background)}:host>div>div>p.text-color-backgroundDark{color:var(--color-background-dark)}:host>div>div>p.text-color-border{color:var(--color-border)}:host>div>div>p.text-color-border2{color:var(--color-border2)}:host>div>div>p.text-color-text{color:var(--color-text)}:host>div>div>p.text-color-presentation{color:var(--color-presentation)}:host>div>div>p.text-color-bullhorn{color:var(--color-bullhorn)}:host>div>div>p.text-color-pulse{color:var(--color-pulse)}:host>div>div>p.text-color-fastFind{color:var(--color-fast-find)}:host>div>div>p.text-color-toast{color:var(--color-toast)}:host>div>div>p.text-color-company{color:var(--color-company)}:host>div>div>p.text-color-candidate{color:var(--color-candidate)}:host>div>div>p.text-color-lead{color:var(--color-lead)}:host>div>div>p.text-color-contact{color:var(--color-contact)}:host>div>div>p.text-color-clientcontact{color:var(--color-clientcontact)}:host>div>div>p.text-color-opportunity{color:var(--color-opportunity)}:host>div>div>p.text-color-job{color:var(--color-job)}:host>div>div>p.text-color-joborder{color:var(--color-joborder)}:host>div>div>p.text-color-submission{color:var(--color-submission)}:host>div>div>p.text-color-sendout{color:var(--color-sendout)}:host>div>div>p.text-color-placement{color:var(--color-placement)}:host>div>div>p.text-color-note{color:var(--color-note)}:host>div>div>p.text-color-contract{color:var(--color-contract)}:host>div>div>p.text-color-task{color:var(--color-task)}:host>div>div>p.text-color-jobCode{color:var(--color-job-code)}:host>div>div>p.text-color-earnCode{color:var(--color-earn-code)}:host>div>div>p.text-color-invoiceStatement{color:var(--color-invoice-statement)}:host>div>div>p.text-color-billableCharge{color:var(--color-billable-charge)}:host>div>div>p.text-color-payableCharge{color:var(--color-payable-charge)}:host>div>div>p.text-color-user{color:var(--color-user)}:host>div>div>p.text-color-corporateUser{color:var(--color-corporate-user)}:host>div>div>p.text-color-distributionList{color:var(--color-distribution-list)}:host>div>div>p.text-color-credential{color:var(--color-credential)}:host>div>div>p.text-color-person{color:var(--color-person)}:host>div>div>p.margin-before{margin-top:.4rem}:host>div>div>p.margin-after{margin-bottom:.8rem}:host>div>div>p.text-length-small{max-width:40ch}:host>div>div>p.text-length-medium{max-width:55ch}:host>div>div>p.text-length-large{max-width:70ch}:host>div>div>p.text-weight-hairline{font-weight:var(--font-weight-hairline)}:host>div>div>p.text-weight-thin{font-weight:var(--font-weight-thin)}:host>div>div>p.text-weight-light{font-weight:var(--font-weight-light)}:host>div>div>p.text-weight-normal{font-weight:var(--font-weight-normal)}:host>div>div>p.text-weight-medium{font-weight:var(--font-weight-medium)}:host>div>div>p.text-weight-semibold{font-weight:var(--font-weight-semibold)}:host>div>div>p.text-weight-bold{font-weight:var(--font-weight-bold)}:host>div>div>p.text-weight-extrabold{font-weight:var(--font-weight-extrabold)}:host>div>div>p.text-weight-heavy{font-weight:var(--font-weight-heavy)}:host>div>div>p.text-weight-lighter{font-weight:lighter}:host>div>div>p.text-weight-bolder{font-weight:bolder}:root[data-theme=bh2026] :host>div{background-color:var(--background-muted)}:host[data-variant=icon]{margin:0 auto 0 var(--spacing-lg);pointer-events:auto;cursor:default}:host[data-variant=icon]>div{display:inline-flex;align-items:center;padding:var(--spacing-sm) var(--spacing-md);border-radius:var(--border-radius-md);border:.0625rem solid var(--tip-well-icon-border-color, #0066cc);background-color:var(--tip-well-icon-background-color, #f0f4ff);text-align:center}:host[data-variant=icon]>div i{color:#282828!important;margin-right:0}:host[data-variant=icon]>div p{display:none}:host[data-variant=icon]>div button{margin-left:var(--spacing-md);color:#282828}\n"], dependencies: [{ kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i4.NovoButtonElement, selector: "novo-button,button[theme]", inputs: ["color", "side", "size", "theme", "loading", "icon", "secondIcon", "disabled"] }] }); }
|
|
80
91
|
}
|
|
81
92
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: NovoTipWellElement, decorators: [{
|
|
82
93
|
type: Component,
|
|
@@ -89,13 +100,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImpo
|
|
|
89
100
|
<p *ngIf="!sanitize && tipWithStyles" [attr.data-automation-id]="'novo-tip-well-tip-' + name" [innerHTML]="tipWithStyles"></p>
|
|
90
101
|
<p *ngIf="(sanitize && !tip.length) || (!sanitize && !tipWithStyles)" [attr.data-automation-id]="'novo-tip-well-tip-' + name"><ng-content></ng-content></p>
|
|
91
102
|
</div>
|
|
92
|
-
<button theme="
|
|
103
|
+
<button [theme]="buttonTheme" [size]="buttonSize" [icon]="buttonIcon" (click)="hideTip()" *ngIf="button" [attr.data-automation-id]="'novo-tip-well-button-' + name">
|
|
93
104
|
{{ buttonText }}
|
|
94
105
|
</button>
|
|
95
106
|
</div>
|
|
96
107
|
`, host: {
|
|
97
108
|
'[class.active]': 'isActive',
|
|
98
|
-
|
|
109
|
+
'[attr.data-variant]': 'variant',
|
|
110
|
+
}, standalone: false, styles: [":host.active{display:inline-block;margin-bottom:var(--spacing-md)}:host>div{display:inline-block;border-radius:var(--border-radius-sm);background-color:var(--background-main, #f7f7f7);color:var(--text-main, #3d464d);padding:var(--spacing-lg);text-align:right}:host>div>div{display:flex}:host>div>div>i{flex-shrink:0;text-align:center;margin-right:var(--spacing-md);color:#aaa}:host>div>div>p{display:inline;font-weight:400;color:inherit;font-size:var(--font-size-text);transition:color .2s ease-out,opacity .2s ease-out;vertical-align:middle;width:100%;padding:0;text-align:left;white-space:pre-line}:host>div>div>p.text-capitalize{text-transform:capitalize}:host>div>div>p.text-uppercase{text-transform:uppercase}:host>div>div>p.text-nowrap{white-space:nowrap}:host>div>div>p.text-ellipsis{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host>div>div>p.text-size-default{font-size:inherit}:host>div>div>p.text-size-body{font-size:var(--font-size-body)}:host>div>div>p.text-size-xs{font-size:var(--font-size-xs)}:host>div>div>p.text-size-sm{font-size:var(--font-size-sm)}:host>div>div>p.text-size-md{font-size:var(--font-size-md)}:host>div>div>p.text-size-lg{font-size:var(--font-size-lg)}:host>div>div>p.text-size-xl{font-size:var(--font-size-xl)}:host>div>div>p.text-size-2xl{font-size:var(--font-size-2xl)}:host>div>div>p.text-size-3xl{font-size:var(--font-size-3xl)}:host>div>div>p.text-size-smaller{font-size:.8em}:host>div>div>p.text-size-larger{font-size:1.2em}:host>div>div>p.text-color-black{color:var(--color-black)}:host>div>div>p.text-color-white{color:var(--color-white)}:host>div>div>p.text-color-gray{color:var(--color-gray)}:host>div>div>p.text-color-grey{color:var(--color-grey)}:host>div>div>p.text-color-offWhite{color:var(--color-off-white)}:host>div>div>p.text-color-bright{color:var(--color-bright)}:host>div>div>p.text-color-light{color:var(--color-light)}:host>div>div>p.text-color-neutral{color:var(--color-neutral)}:host>div>div>p.text-color-dark{color:var(--color-dark)}:host>div>div>p.text-color-orange{color:var(--color-orange)}:host>div>div>p.text-color-navigation{color:var(--color-navigation)}:host>div>div>p.text-color-skyBlue{color:var(--color-sky-blue)}:host>div>div>p.text-color-steel{color:var(--color-steel)}:host>div>div>p.text-color-metal{color:var(--color-metal)}:host>div>div>p.text-color-sand{color:var(--color-sand)}:host>div>div>p.text-color-silver{color:var(--color-silver)}:host>div>div>p.text-color-stone{color:var(--color-stone)}:host>div>div>p.text-color-ash{color:var(--color-ash)}:host>div>div>p.text-color-anonymous{color:var(--color-anonymous)}:host>div>div>p.text-color-slate{color:var(--color-slate)}:host>div>div>p.text-color-onyx{color:var(--color-onyx)}:host>div>div>p.text-color-charcoal{color:var(--color-charcoal)}:host>div>div>p.text-color-moonlight{color:var(--color-moonlight)}:host>div>div>p.text-color-midnight{color:var(--color-midnight)}:host>div>div>p.text-color-darkness{color:var(--color-darkness)}:host>div>div>p.text-color-navy{color:var(--color-navy)}:host>div>div>p.text-color-aqua{color:var(--color-aqua)}:host>div>div>p.text-color-ocean{color:var(--color-ocean)}:host>div>div>p.text-color-mint{color:var(--color-mint)}:host>div>div>p.text-color-grass{color:var(--color-grass)}:host>div>div>p.text-color-sunflower{color:var(--color-sunflower)}:host>div>div>p.text-color-bittersweet{color:var(--color-bittersweet)}:host>div>div>p.text-color-grapefruit{color:var(--color-grapefruit)}:host>div>div>p.text-color-carnation{color:var(--color-carnation)}:host>div>div>p.text-color-lavender{color:var(--color-lavender)}:host>div>div>p.text-color-mountain{color:var(--color-mountain)}:host>div>div>p.text-color-info{color:var(--color-info)}:host>div>div>p.text-color-positive{color:var(--color-positive)}:host>div>div>p.text-color-success{color:var(--color-success)}:host>div>div>p.text-color-negative{color:var(--color-negative)}:host>div>div>p.text-color-danger{color:var(--color-danger)}:host>div>div>p.text-color-error{color:var(--color-error)}:host>div>div>p.text-color-warning{color:var(--color-warning)}:host>div>div>p.text-color-empty{color:var(--color-empty)}:host>div>div>p.text-color-disabled{color:var(--color-disabled)}:host>div>div>p.text-color-background{color:var(--color-background)}:host>div>div>p.text-color-backgroundDark{color:var(--color-background-dark)}:host>div>div>p.text-color-border{color:var(--color-border)}:host>div>div>p.text-color-border2{color:var(--color-border2)}:host>div>div>p.text-color-text{color:var(--color-text)}:host>div>div>p.text-color-presentation{color:var(--color-presentation)}:host>div>div>p.text-color-bullhorn{color:var(--color-bullhorn)}:host>div>div>p.text-color-pulse{color:var(--color-pulse)}:host>div>div>p.text-color-fastFind{color:var(--color-fast-find)}:host>div>div>p.text-color-toast{color:var(--color-toast)}:host>div>div>p.text-color-company{color:var(--color-company)}:host>div>div>p.text-color-candidate{color:var(--color-candidate)}:host>div>div>p.text-color-lead{color:var(--color-lead)}:host>div>div>p.text-color-contact{color:var(--color-contact)}:host>div>div>p.text-color-clientcontact{color:var(--color-clientcontact)}:host>div>div>p.text-color-opportunity{color:var(--color-opportunity)}:host>div>div>p.text-color-job{color:var(--color-job)}:host>div>div>p.text-color-joborder{color:var(--color-joborder)}:host>div>div>p.text-color-submission{color:var(--color-submission)}:host>div>div>p.text-color-sendout{color:var(--color-sendout)}:host>div>div>p.text-color-placement{color:var(--color-placement)}:host>div>div>p.text-color-note{color:var(--color-note)}:host>div>div>p.text-color-contract{color:var(--color-contract)}:host>div>div>p.text-color-task{color:var(--color-task)}:host>div>div>p.text-color-jobCode{color:var(--color-job-code)}:host>div>div>p.text-color-earnCode{color:var(--color-earn-code)}:host>div>div>p.text-color-invoiceStatement{color:var(--color-invoice-statement)}:host>div>div>p.text-color-billableCharge{color:var(--color-billable-charge)}:host>div>div>p.text-color-payableCharge{color:var(--color-payable-charge)}:host>div>div>p.text-color-user{color:var(--color-user)}:host>div>div>p.text-color-corporateUser{color:var(--color-corporate-user)}:host>div>div>p.text-color-distributionList{color:var(--color-distribution-list)}:host>div>div>p.text-color-credential{color:var(--color-credential)}:host>div>div>p.text-color-person{color:var(--color-person)}:host>div>div>p.margin-before{margin-top:.4rem}:host>div>div>p.margin-after{margin-bottom:.8rem}:host>div>div>p.text-length-small{max-width:40ch}:host>div>div>p.text-length-medium{max-width:55ch}:host>div>div>p.text-length-large{max-width:70ch}:host>div>div>p.text-weight-hairline{font-weight:var(--font-weight-hairline)}:host>div>div>p.text-weight-thin{font-weight:var(--font-weight-thin)}:host>div>div>p.text-weight-light{font-weight:var(--font-weight-light)}:host>div>div>p.text-weight-normal{font-weight:var(--font-weight-normal)}:host>div>div>p.text-weight-medium{font-weight:var(--font-weight-medium)}:host>div>div>p.text-weight-semibold{font-weight:var(--font-weight-semibold)}:host>div>div>p.text-weight-bold{font-weight:var(--font-weight-bold)}:host>div>div>p.text-weight-extrabold{font-weight:var(--font-weight-extrabold)}:host>div>div>p.text-weight-heavy{font-weight:var(--font-weight-heavy)}:host>div>div>p.text-weight-lighter{font-weight:lighter}:host>div>div>p.text-weight-bolder{font-weight:bolder}:root[data-theme=bh2026] :host>div{background-color:var(--background-muted)}:host[data-variant=icon]{margin:0 auto 0 var(--spacing-lg);pointer-events:auto;cursor:default}:host[data-variant=icon]>div{display:inline-flex;align-items:center;padding:var(--spacing-sm) var(--spacing-md);border-radius:var(--border-radius-md);border:.0625rem solid var(--tip-well-icon-border-color, #0066cc);background-color:var(--tip-well-icon-background-color, #f0f4ff);text-align:center}:host[data-variant=icon]>div i{color:#282828!important;margin-right:0}:host[data-variant=icon]>div p{display:none}:host[data-variant=icon]>div button{margin-left:var(--spacing-md);color:#282828}\n"] }]
|
|
99
111
|
}], ctorParameters: () => [{ type: i1.NovoLabelService }, { type: i2.DomSanitizer }], propDecorators: { name: [{
|
|
100
112
|
type: Input
|
|
101
113
|
}], tip: [{
|
|
@@ -104,10 +116,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImpo
|
|
|
104
116
|
type: Input
|
|
105
117
|
}], button: [{
|
|
106
118
|
type: Input
|
|
119
|
+
}], buttonIcon: [{
|
|
120
|
+
type: Input
|
|
107
121
|
}], icon: [{
|
|
108
122
|
type: Input
|
|
109
123
|
}], sanitize: [{
|
|
110
124
|
type: Input
|
|
125
|
+
}], variant: [{
|
|
126
|
+
type: Input
|
|
127
|
+
}], buttonTheme: [{
|
|
128
|
+
type: Input
|
|
129
|
+
}], buttonSize: [{
|
|
130
|
+
type: Input
|
|
111
131
|
}], confirmed: [{
|
|
112
132
|
type: Output
|
|
113
133
|
}] } });
|