@mintplayer/ng-bootstrap 22.13.0 → 22.15.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/charts/hierarchy/package.json +4 -0
- package/charts/sparkline/package.json +4 -0
- package/charts/trend/package.json +4 -0
- package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs +24 -24
- package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs +9 -9
- package/fesm2022/mintplayer-ng-bootstrap-alert.mjs +6 -6
- package/fesm2022/mintplayer-ng-bootstrap-badge.mjs +3 -3
- package/fesm2022/mintplayer-ng-bootstrap-breadcrumb.mjs +6 -6
- package/fesm2022/mintplayer-ng-bootstrap-button-group.mjs +3 -3
- package/fesm2022/mintplayer-ng-bootstrap-button-type.mjs +3 -3
- package/fesm2022/mintplayer-ng-bootstrap-calendar-month.mjs +9 -9
- package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs +3 -3
- package/fesm2022/mintplayer-ng-bootstrap-card.mjs +30 -30
- package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs +3 -3
- package/fesm2022/mintplayer-ng-bootstrap-charts-hierarchy.mjs +152 -0
- package/fesm2022/mintplayer-ng-bootstrap-charts-hierarchy.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-charts-sparkline.mjs +59 -0
- package/fesm2022/mintplayer-ng-bootstrap-charts-sparkline.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-charts-trend.mjs +79 -0
- package/fesm2022/mintplayer-ng-bootstrap-charts-trend.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs +11 -10
- package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-close.mjs +3 -3
- package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs +94 -22
- package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs +38 -34
- package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-container.mjs +3 -3
- package/fesm2022/mintplayer-ng-bootstrap-context-menu.mjs +3 -3
- package/fesm2022/mintplayer-ng-bootstrap-copy.mjs +3 -3
- package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs +9 -9
- package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs +3 -3
- package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs +3 -3
- package/fesm2022/mintplayer-ng-bootstrap-dock.mjs +8 -7
- package/fesm2022/mintplayer-ng-bootstrap-dock.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-dropdown-divider.mjs +3 -3
- package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs +12 -12
- package/fesm2022/mintplayer-ng-bootstrap-dropdown.mjs +14 -13
- package/fesm2022/mintplayer-ng-bootstrap-dropdown.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-enhanced-paste.mjs +3 -3
- package/fesm2022/mintplayer-ng-bootstrap-enum.mjs +3 -3
- package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs +3 -3
- package/fesm2022/mintplayer-ng-bootstrap-file-upload.mjs +9 -9
- package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs +3 -3
- package/fesm2022/mintplayer-ng-bootstrap-font-color.mjs +3 -3
- package/fesm2022/mintplayer-ng-bootstrap-for.mjs +3 -3
- package/fesm2022/mintplayer-ng-bootstrap-form.mjs +9 -9
- package/fesm2022/mintplayer-ng-bootstrap-grid.mjs +15 -15
- package/fesm2022/mintplayer-ng-bootstrap-has-overlay.mjs +3 -3
- package/fesm2022/mintplayer-ng-bootstrap-has-property.mjs +3 -3
- package/fesm2022/mintplayer-ng-bootstrap-in-list.mjs +3 -3
- package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs +3 -3
- package/fesm2022/mintplayer-ng-bootstrap-instance-of.mjs +12 -12
- package/fesm2022/mintplayer-ng-bootstrap-let.mjs +3 -3
- package/fesm2022/mintplayer-ng-bootstrap-linify.mjs +3 -3
- package/fesm2022/mintplayer-ng-bootstrap-list-group.mjs +6 -6
- package/fesm2022/mintplayer-ng-bootstrap-markdown.mjs +12 -12
- package/fesm2022/mintplayer-ng-bootstrap-marquee.mjs +3 -3
- package/fesm2022/mintplayer-ng-bootstrap-modal.mjs +24 -24
- package/fesm2022/mintplayer-ng-bootstrap-multi-range.mjs +8 -7
- package/fesm2022/mintplayer-ng-bootstrap-multi-range.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-navbar-toggler.mjs +3 -3
- package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs +26 -25
- package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-navigation-lock.mjs +6 -6
- package/fesm2022/mintplayer-ng-bootstrap-no-noscript.mjs +3 -3
- package/fesm2022/mintplayer-ng-bootstrap-observe-size.mjs +3 -3
- package/fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs +24 -24
- package/fesm2022/mintplayer-ng-bootstrap-ordinal-number.mjs +3 -3
- package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs +8 -7
- package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs +3 -3
- package/fesm2022/mintplayer-ng-bootstrap-parallax.mjs +3 -3
- package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs +5 -4
- package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-placeholder.mjs +6 -6
- package/fesm2022/mintplayer-ng-bootstrap-playlist-toggler.mjs +3 -3
- package/fesm2022/mintplayer-ng-bootstrap-popover.mjs +15 -15
- package/fesm2022/mintplayer-ng-bootstrap-priority-nav.mjs +6 -6
- package/fesm2022/mintplayer-ng-bootstrap-progress-bar.mjs +6 -6
- package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs +6 -6
- package/fesm2022/mintplayer-ng-bootstrap-radio.mjs +8 -7
- package/fesm2022/mintplayer-ng-bootstrap-radio.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-range.mjs +8 -7
- package/fesm2022/mintplayer-ng-bootstrap-range.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-rating.mjs +3 -3
- package/fesm2022/mintplayer-ng-bootstrap-resizable.mjs +6 -6
- package/fesm2022/mintplayer-ng-bootstrap-ribbon.mjs +56 -55
- package/fesm2022/mintplayer-ng-bootstrap-ribbon.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs +5 -4
- package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs +9 -9
- package/fesm2022/mintplayer-ng-bootstrap-select.mjs +11 -10
- package/fesm2022/mintplayer-ng-bootstrap-select.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-shell.mjs +8 -7
- package/fesm2022/mintplayer-ng-bootstrap-shell.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs +5 -4
- package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-slugify.mjs +3 -3
- package/fesm2022/mintplayer-ng-bootstrap-spinner.mjs +3 -3
- package/fesm2022/mintplayer-ng-bootstrap-split-string.mjs +3 -3
- package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs +3 -3
- package/fesm2022/mintplayer-ng-bootstrap-sticky-footer.mjs +8 -7
- package/fesm2022/mintplayer-ng-bootstrap-sticky-footer.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs +9 -9
- package/fesm2022/mintplayer-ng-bootstrap-table.mjs +7 -7
- package/fesm2022/mintplayer-ng-bootstrap-table.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-theming.mjs +3 -3
- package/fesm2022/mintplayer-ng-bootstrap-tile-manager.mjs +13 -11
- package/fesm2022/mintplayer-ng-bootstrap-tile-manager.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-timeline.mjs +21 -21
- package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs +3 -3
- package/fesm2022/mintplayer-ng-bootstrap-toast.mjs +21 -21
- package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs +6 -6
- package/fesm2022/mintplayer-ng-bootstrap-tree-select.mjs +24 -24
- package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs +6 -6
- package/fesm2022/mintplayer-ng-bootstrap-trust-html.mjs +3 -3
- package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs +5 -4
- package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-uc-first.mjs +3 -3
- package/fesm2022/mintplayer-ng-bootstrap-user-agent.mjs +3 -3
- package/fesm2022/mintplayer-ng-bootstrap-viewport.mjs +3 -3
- package/fesm2022/mintplayer-ng-bootstrap-word-count.mjs +3 -3
- package/package.json +13 -1
- package/types/mintplayer-ng-bootstrap-charts-hierarchy.d.ts +44 -0
- package/types/mintplayer-ng-bootstrap-charts-sparkline.d.ts +20 -0
- package/types/mintplayer-ng-bootstrap-charts-trend.d.ts +28 -0
- package/types/mintplayer-ng-bootstrap-code-snippet.d.ts +61 -15
- package/src/styles/ngx-highlight-themes/a11y-dark.scss +0 -107
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mintplayer-ng-bootstrap-radio.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/radio/src/directives/radio-group/radio-group.directive.ts","../../../../libs/mintplayer-ng-bootstrap/radio/src/component/radio.component.ts","../../../../libs/mintplayer-ng-bootstrap/radio/src/component/radio.component.html","../../../../libs/mintplayer-ng-bootstrap/radio/mintplayer-ng-bootstrap-radio.ts"],"sourcesContent":["import { contentChildren, Directive, effect, ElementRef, forwardRef, inject, input, signal } from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport type { MpRadio } from '@mintplayer/web-components/radio';\nimport type { RadioGroupChangeEventDetail } from '@mintplayer/web-components/radio-group';\nimport { BsRadioComponent } from '../../component/radio.component';\n\n// Side-effect: registers <mp-radio-group>, the preferred host element (below).\nimport '@mintplayer/web-components/radio-group';\n\n/**\n * Groups N `<bs-radio>` children into a single-select FormControl whose\n * value is the selected radio's `value()`. The group owns the shared\n * `[name]` (radios don't carry their own). Acts as its own\n * `ControlValueAccessor` — bind `[formControl]` / `[(ngModel)]` on the\n * element carrying `[bsRadioGroup]`.\n *\n * Host it on `<mp-radio-group>` where the markup allows: the WC supplies\n * `role=\"radiogroup\"`, the roving tab stop, arrow move-and-select and\n * exclusivity, and this directive is only the CVA bridge (it listens for\n * the WC's `group-change`, which is the ONLY signal a keyboard-driven\n * selection produces — the WC checks radios programmatically, so no\n * `change` bubbles). On any other host (a `<tbody>`, a `<bs-button-group>`)\n * the WC element cannot be used, and this directive coordinates the\n * one-of-N itself on bubbled `change` — shadow roots keep the browser's\n * native auto-uncheck from ever firing across `<mp-radio>` boundaries.\n */\n@Directive({\n selector: '[bsRadioGroup]',\n exportAs: 'bsRadioGroup',\n providers: [{\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => BsRadioGroupDirective),\n multi: true,\n }],\n host: {\n '(change)': 'onChildChange($event)',\n '(group-change)': 'onGroupChange($event)',\n // focusout is composed: the shadow input's blur reaches the host. The\n // stored onTouched was never CALLED before, which kept every\n // invalid-after-touched mirror dead (audit 4.9 prerequisite).\n '(focusout)': 'onTouched?.()',\n },\n})\nexport class BsRadioGroupDirective implements ControlValueAccessor {\n\n private readonly host = inject(ElementRef).nativeElement as HTMLElement;\n\n readonly name = input<string | null>(null);\n // Wrap in forwardRef: BsRadioComponent imports this directive (for\n // `inject(BsRadioGroupDirective, {...})`), so the two modules form a cycle.\n // Whichever side webpack/vite evaluates first sees `undefined` for the\n // other's exports at field-initialiser time, which makes the recorded query\n // predicate null — ng-mocks' MockDirective then fails with \"the query\n // selector wasn't defined\" on consumers (e.g. shell.component.spec.ts).\n readonly radios = contentChildren<BsRadioComponent>(forwardRef(() => BsRadioComponent), { descendants: true });\n\n /** Most-recently-written form value. An effect syncs each child's\n * `isToggled` (and the WC's `checked` property) whenever this OR the\n * `radios()` set changes, so an initial `writeValue` that lands before\n * children register still applies once the `contentChildren` query\n * populates. */\n private readonly currentValue = signal<string | null>(null);\n\n private onValueChange?: (value: string | null) => void;\n // protected, not private: the focusout host binding compiles outside the\n // class body under AOT and cannot reach a private member.\n protected onTouched?: () => void;\n\n constructor() {\n effect(() => {\n const value = this.currentValue();\n this.radios().forEach(r => {\n const isSelected = r.value() === value;\n r.isToggled.set(isSelected);\n const wc = r.radioRef()?.nativeElement;\n if (wc) wc.checked = isSelected;\n });\n });\n }\n\n /** Keyboard/pointer selection routed through an `<mp-radio-group>` host. */\n onGroupChange(ev: Event) {\n if (ev.target !== this.host) return;\n const value = (ev as CustomEvent<RadioGroupChangeEventDetail>).detail.value;\n this.radios().forEach(r => r.isToggled.set(r.value() === value));\n this.onValueChange?.(value);\n }\n\n onChildChange(ev: Event) {\n // An <mp-radio-group> host owns exclusivity and reports via group-change;\n // handling the bubbled change here too would double-emit into the form.\n if (this.host.tagName === 'MP-RADIO-GROUP') return;\n if (!this.onValueChange) return;\n const target = ev.target as HTMLElement;\n let selectedValue: string | null = null;\n this.radios().forEach(r => {\n const wc = r.radioRef()?.nativeElement as MpRadio | undefined;\n const isTarget = !!wc && wc === target;\n const isChecked = isTarget && wc.checked;\n // Shadow DOM blocks native one-of-N — uncheck every non-target sibling.\n if (!isTarget && wc && wc.checked) wc.checked = false;\n r.isToggled.set(isChecked);\n if (isChecked) selectedValue = r.value();\n });\n this.onValueChange(selectedValue);\n }\n\n registerOnChange(fn: (_: string | null) => void) {\n this.onValueChange = fn;\n }\n\n registerOnTouched(fn: () => void) {\n this.onTouched = fn;\n }\n\n writeValue(value: string | null) {\n this.currentValue.set(value);\n }\n\n setDisabledState(isDisabled: boolean) {\n this.radios().forEach(r => {\n const wc = r.radioRef()?.nativeElement;\n if (wc) wc.disabled = isDisabled;\n });\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n computed,\n CUSTOM_ELEMENTS_SCHEMA,\n effect,\n ElementRef,\n inject,\n input,\n model,\n viewChild,\n} from '@angular/core';\nimport { BsRadioGroupDirective } from '../directives/radio-group/radio-group.directive';\nimport { BsRadioType } from '../types/radio-type';\nimport type { MpRadio, RadioChangeEventDetail } from '@mintplayer/web-components/radio';\n\n// Side-effect import: registers <mp-radio>.\nimport '@mintplayer/web-components/radio';\nimport { BsForwardAriaDirective, BsControlValidityDirective } from '@mintplayer/ng-bootstrap/a11y';\n\n@Component({\n hostDirectives: [{\n directive: BsControlValidityDirective,\n inputs: ['errorMessages'],\n }],\n selector: 'bs-radio',\n templateUrl: './radio.component.html',\n imports: [BsForwardAriaDirective],\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n 'class': 'd-inline-block',\n },\n})\nexport class BsRadioComponent {\n\n private readonly parentGroup = inject(BsRadioGroupDirective, { optional: true, skipSelf: true });\n\n /** Reference to the underlying `<mp-radio>` WC. Read by `[bsRadioGroup]`\n * to write the WC's `checked` property — shadow DOM blocks the browser's\n * native radio one-of-N across <mp-radio> instances, so the group\n * directive must coordinate unchecking explicitly. */\n readonly radioRef = viewChild.required<ElementRef<MpRadio>>('radio');\n\n type = input<BsRadioType>('radio');\n isToggled = model<boolean>(false);\n value = input<string | null>(null);\n group = input<BsRadioGroupDirective | null>(null);\n\n /** Explicit `[group]` input wins over the DI-injected ancestor. */\n readonly resolvedGroup = computed(() => this.group() ?? this.parentGroup ?? null);\n\n /** Name comes from the resolved group; `<bs-radio>` has no `[name]` input. */\n readonly nameResult = computed(() => this.resolvedGroup()?.name() ?? null);\n\n constructor() {\n effect(() => {\n const el = this.radioRef()?.nativeElement;\n if (!el) return;\n el.type = this.type();\n el.value = this.value();\n el.name = this.nameResult();\n el.checked = this.isToggled();\n });\n }\n\n onChange(ev: Event) {\n const detail = (ev as CustomEvent<RadioChangeEventDetail>).detail;\n this.isToggled.set(detail.checked);\n }\n\n}\n","<mp-radio bsForwardAria #radio (change)=\"onChange($event)\">\n <ng-content></ng-content>\n</mp-radio>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AASA;;;;;;;;;;;;;;;;AAgBG;MAkBU,qBAAqB,CAAA;AAyBhC,IAAA,WAAA,GAAA;AAvBiB,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC,aAA4B;QAE9D,IAAA,CAAA,IAAI,GAAG,KAAK,CAAgB,IAAI;iFAAC;;;;;;;AAOjC,QAAA,IAAA,CAAA,MAAM,GAAG,eAAe,CAAmB,UAAU,CAAC,MAAM,gBAAgB,CAAC,EAAA,EAAA,IAAA,SAAA,GAAA,EAAA,SAAA,EAAA,QAAA,EAAA,8BAAA,EAAA,CAAA,EAAI,WAAW,EAAE,IAAI,GAAG;AAE9G;;;;AAIiB;QACA,IAAA,CAAA,YAAY,GAAG,MAAM,CAAgB,IAAI;yFAAC;QAQzD,MAAM,CAAC,MAAK;AACV,YAAA,MAAM,KAAK,GAAG,IAAI,CAAC,YAAY,EAAE;YACjC,IAAI,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,CAAC,IAAG;gBACxB,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,KAAK;AACtC,gBAAA,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,UAAU,CAAC;gBAC3B,MAAM,EAAE,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,aAAa;AACtC,gBAAA,IAAI,E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,CAAA,EAAA,CAAA,EAAA,IAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,MAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,SAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,WAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,iBAAA,CAAA,EAAA,CAAA,EAAA,KAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,OAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,KAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,OAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE1CrE;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"mintplayer-ng-bootstrap-radio.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/radio/src/directives/radio-group/radio-group.directive.ts","../../../../libs/mintplayer-ng-bootstrap/radio/src/component/radio.component.ts","../../../../libs/mintplayer-ng-bootstrap/radio/src/component/radio.component.html","../../../../libs/mintplayer-ng-bootstrap/radio/mintplayer-ng-bootstrap-radio.ts"],"sourcesContent":["import { contentChildren, Directive, effect, ElementRef, forwardRef, inject, input, signal } from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport type { MpRadio } from '@mintplayer/web-components/radio';\nimport type { RadioGroupChangeEventDetail } from '@mintplayer/web-components/radio-group';\nimport { BsRadioComponent } from '../../component/radio.component';\n\n// Side-effect: registers <mp-radio-group>, the preferred host element (below).\nimport '@mintplayer/web-components/radio-group';\n\n/**\n * Groups N `<bs-radio>` children into a single-select FormControl whose\n * value is the selected radio's `value()`. The group owns the shared\n * `[name]` (radios don't carry their own). Acts as its own\n * `ControlValueAccessor` — bind `[formControl]` / `[(ngModel)]` on the\n * element carrying `[bsRadioGroup]`.\n *\n * Host it on `<mp-radio-group>` where the markup allows: the WC supplies\n * `role=\"radiogroup\"`, the roving tab stop, arrow move-and-select and\n * exclusivity, and this directive is only the CVA bridge (it listens for\n * the WC's `group-change`, which is the ONLY signal a keyboard-driven\n * selection produces — the WC checks radios programmatically, so no\n * `change` bubbles). On any other host (a `<tbody>`, a `<bs-button-group>`)\n * the WC element cannot be used, and this directive coordinates the\n * one-of-N itself on bubbled `change` — shadow roots keep the browser's\n * native auto-uncheck from ever firing across `<mp-radio>` boundaries.\n */\n@Directive({\n selector: '[bsRadioGroup]',\n exportAs: 'bsRadioGroup',\n providers: [{\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => BsRadioGroupDirective),\n multi: true,\n }],\n host: {\n '(change)': 'onChildChange($event)',\n '(group-change)': 'onGroupChange($event)',\n // focusout is composed: the shadow input's blur reaches the host. The\n // stored onTouched was never CALLED before, which kept every\n // invalid-after-touched mirror dead (audit 4.9 prerequisite).\n '(focusout)': 'onTouched?.()',\n },\n})\nexport class BsRadioGroupDirective implements ControlValueAccessor {\n\n private readonly host = inject(ElementRef).nativeElement as HTMLElement;\n\n readonly name = input<string | null>(null);\n // Wrap in forwardRef: BsRadioComponent imports this directive (for\n // `inject(BsRadioGroupDirective, {...})`), so the two modules form a cycle.\n // Whichever side webpack/vite evaluates first sees `undefined` for the\n // other's exports at field-initialiser time, which makes the recorded query\n // predicate null — ng-mocks' MockDirective then fails with \"the query\n // selector wasn't defined\" on consumers (e.g. shell.component.spec.ts).\n readonly radios = contentChildren<BsRadioComponent>(forwardRef(() => BsRadioComponent), { descendants: true });\n\n /** Most-recently-written form value. An effect syncs each child's\n * `isToggled` (and the WC's `checked` property) whenever this OR the\n * `radios()` set changes, so an initial `writeValue` that lands before\n * children register still applies once the `contentChildren` query\n * populates. */\n private readonly currentValue = signal<string | null>(null);\n\n private onValueChange?: (value: string | null) => void;\n // protected, not private: the focusout host binding compiles outside the\n // class body under AOT and cannot reach a private member.\n protected onTouched?: () => void;\n\n constructor() {\n effect(() => {\n const value = this.currentValue();\n this.radios().forEach(r => {\n const isSelected = r.value() === value;\n r.isToggled.set(isSelected);\n const wc = r.radioRef()?.nativeElement;\n if (wc) wc.checked = isSelected;\n });\n });\n }\n\n /** Keyboard/pointer selection routed through an `<mp-radio-group>` host. */\n onGroupChange(ev: Event) {\n if (ev.target !== this.host) return;\n const value = (ev as CustomEvent<RadioGroupChangeEventDetail>).detail.value;\n this.radios().forEach(r => r.isToggled.set(r.value() === value));\n this.onValueChange?.(value);\n }\n\n onChildChange(ev: Event) {\n // An <mp-radio-group> host owns exclusivity and reports via group-change;\n // handling the bubbled change here too would double-emit into the form.\n if (this.host.tagName === 'MP-RADIO-GROUP') return;\n if (!this.onValueChange) return;\n const target = ev.target as HTMLElement;\n let selectedValue: string | null = null;\n this.radios().forEach(r => {\n const wc = r.radioRef()?.nativeElement as MpRadio | undefined;\n const isTarget = !!wc && wc === target;\n const isChecked = isTarget && wc.checked;\n // Shadow DOM blocks native one-of-N — uncheck every non-target sibling.\n if (!isTarget && wc && wc.checked) wc.checked = false;\n r.isToggled.set(isChecked);\n if (isChecked) selectedValue = r.value();\n });\n this.onValueChange(selectedValue);\n }\n\n registerOnChange(fn: (_: string | null) => void) {\n this.onValueChange = fn;\n }\n\n registerOnTouched(fn: () => void) {\n this.onTouched = fn;\n }\n\n writeValue(value: string | null) {\n this.currentValue.set(value);\n }\n\n setDisabledState(isDisabled: boolean) {\n this.radios().forEach(r => {\n const wc = r.radioRef()?.nativeElement;\n if (wc) wc.disabled = isDisabled;\n });\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n computed,\n CUSTOM_ELEMENTS_SCHEMA,\n effect,\n ElementRef,\n inject,\n input,\n model,\n viewChild,\n} from '@angular/core';\nimport { BsRadioGroupDirective } from '../directives/radio-group/radio-group.directive';\nimport { BsRadioType } from '../types/radio-type';\nimport type { MpRadio, RadioChangeEventDetail } from '@mintplayer/web-components/radio';\n\n// Side-effect import: registers <mp-radio>.\nimport '@mintplayer/web-components/radio';\nimport { BsForwardAriaDirective, BsControlValidityDirective } from '@mintplayer/ng-bootstrap/a11y';\n\n@Component({\n hostDirectives: [{\n directive: BsControlValidityDirective,\n inputs: ['errorMessages'],\n }],\n selector: 'bs-radio',\n templateUrl: './radio.component.html',\n imports: [BsForwardAriaDirective],\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n 'class': 'd-inline-block',\n },\n})\nexport class BsRadioComponent {\n\n private readonly parentGroup = inject(BsRadioGroupDirective, { optional: true, skipSelf: true });\n\n /** Reference to the underlying `<mp-radio>` WC. Read by `[bsRadioGroup]`\n * to write the WC's `checked` property — shadow DOM blocks the browser's\n * native radio one-of-N across <mp-radio> instances, so the group\n * directive must coordinate unchecking explicitly. */\n readonly radioRef = viewChild.required<ElementRef<MpRadio>>('radio');\n\n type = input<BsRadioType>('radio');\n isToggled = model<boolean>(false);\n value = input<string | null>(null);\n group = input<BsRadioGroupDirective | null>(null);\n\n /** Explicit `[group]` input wins over the DI-injected ancestor. */\n readonly resolvedGroup = computed(() => this.group() ?? this.parentGroup ?? null);\n\n /** Name comes from the resolved group; `<bs-radio>` has no `[name]` input. */\n readonly nameResult = computed(() => this.resolvedGroup()?.name() ?? null);\n\n constructor() {\n effect(() => {\n const el = this.radioRef()?.nativeElement;\n if (!el) return;\n el.type = this.type();\n el.value = this.value();\n el.name = this.nameResult();\n el.checked = this.isToggled();\n });\n }\n\n onChange(ev: Event) {\n const detail = (ev as CustomEvent<RadioChangeEventDetail>).detail;\n this.isToggled.set(detail.checked);\n }\n\n}\n","<mp-radio bsForwardAria #radio (change)=\"onChange($event)\">\n <ng-content></ng-content>\n</mp-radio>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AASA;;;;;;;;;;;;;;;;AAgBG;MAkBU,qBAAqB,CAAA;AAyBhC,IAAA,WAAA,GAAA;AAvBiB,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC,aAA4B;QAE9D,IAAA,CAAA,IAAI,GAAG,KAAK,CAAgB,IAAI;iFAAC;;;;;;;AAOjC,QAAA,IAAA,CAAA,MAAM,GAAG,eAAe,CAAmB,UAAU,CAAC,MAAM,gBAAgB,CAAC,EAAA,EAAA,IAAA,SAAA,GAAA,EAAA,SAAA,EAAA,QAAA,EAAA,8BAAA,EAAA,CAAA,EAAI,WAAW,EAAE,IAAI,GAAG;AAE9G;;;;AAIiB;QACA,IAAA,CAAA,YAAY,GAAG,MAAM,CAAgB,IAAI;yFAAC;QAQzD,MAAM,CAAC,MAAK;AACV,YAAA,MAAM,KAAK,GAAG,IAAI,CAAC,YAAY,EAAE;YACjC,IAAI,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,CAAC,IAAG;gBACxB,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,KAAK;AACtC,gBAAA,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,UAAU,CAAC;gBAC3B,MAAM,EAAE,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,aAAa;AACtC,gBAAA,IAAI,EAAE;AAAE,oBAAA,EAAE,CAAC,OAAO,GAAG,UAAU;AACjC,YAAA,CAAC,CAAC;AACJ,QAAA,CAAC,CAAC;IACJ;;AAGA,IAAA,aAAa,CAAC,EAAS,EAAA;A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EAAA,MAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,SAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,WAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,iBAAA,CAAA,EAAA,CAAA,EAAA,KAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,OAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,KAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,OAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE1CrE;;AAEG;;;;"}
|
|
@@ -29,14 +29,14 @@ class BsRangeValueAccessor {
|
|
|
29
29
|
this.host.slider().nativeElement.disabled = isDisabled;
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
33
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.
|
|
32
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRangeValueAccessor, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
33
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsRangeValueAccessor, isStandalone: true, selector: "bs-range", host: { listeners: { "input": "onInputEvent($event)", "focusout": "onTouched?.()" } }, providers: [{
|
|
34
34
|
provide: NG_VALUE_ACCESSOR,
|
|
35
35
|
useExisting: forwardRef(() => BsRangeValueAccessor),
|
|
36
36
|
multi: true,
|
|
37
37
|
}], ngImport: i0 }); }
|
|
38
38
|
}
|
|
39
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
39
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRangeValueAccessor, decorators: [{
|
|
40
40
|
type: Directive,
|
|
41
41
|
args: [{
|
|
42
42
|
selector: 'bs-range',
|
|
@@ -57,7 +57,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImpor
|
|
|
57
57
|
|
|
58
58
|
class BsRangeComponent {
|
|
59
59
|
constructor() {
|
|
60
|
-
this.slider = viewChild.required('slider'
|
|
60
|
+
this.slider = viewChild.required('slider', /* @ts-ignore */
|
|
61
|
+
...(ngDevMode ? [{ debugName: "slider" }] : /* istanbul ignore next */ []));
|
|
61
62
|
this.min = input(0, /* @ts-ignore */
|
|
62
63
|
...(ngDevMode ? [{ debugName: "min" }] : /* istanbul ignore next */ []));
|
|
63
64
|
this.max = input(10, /* @ts-ignore */
|
|
@@ -67,10 +68,10 @@ class BsRangeComponent {
|
|
|
67
68
|
this.ariaLabel = input(null, /* @ts-ignore */
|
|
68
69
|
...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
69
70
|
}
|
|
70
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
71
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.
|
|
71
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRangeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
72
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.8", type: BsRangeComponent, isStandalone: true, selector: "bs-range", inputs: { min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, step: { classPropertyName: "step", publicName: "step", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "slider", first: true, predicate: ["slider"], descendants: true, isSignal: true }], hostDirectives: [{ directive: BsRangeValueAccessor }], ngImport: i0, template: "<input #slider type=\"range\" [min]=\"min()\" [max]=\"max()\" [step]=\"step()\" [attr.aria-label]=\"ariaLabel()\" class=\"form-range\">\n", styles: [":host ::ng-deep .form-range{width:100%;height:1.5rem;padding:0;appearance:none;background-color:transparent}:host ::ng-deep .form-range:focus{outline:0}:host ::ng-deep .form-range:focus::-webkit-slider-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .25rem #0d6efd40}:host ::ng-deep .form-range:focus::-moz-range-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .25rem #0d6efd40}:host ::ng-deep .form-range::-moz-focus-outer{border:0}:host ::ng-deep .form-range::-webkit-slider-thumb{width:1rem;height:1rem;margin-top:-.25rem;appearance:none;background-color:#0d6efd;border:0;border-radius:1rem;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media(prefers-reduced-motion:reduce){:host ::ng-deep .form-range::-webkit-slider-thumb{transition:none}}:host ::ng-deep .form-range::-webkit-slider-thumb:active{background-color:#b6d4fe}:host ::ng-deep .form-range::-webkit-slider-runnable-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:var(--bs-secondary-bg);border-color:transparent;border-radius:1rem}:host ::ng-deep .form-range::-moz-range-thumb{width:1rem;height:1rem;appearance:none;background-color:#0d6efd;border:0;border-radius:1rem;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media(prefers-reduced-motion:reduce){:host ::ng-deep .form-range::-moz-range-thumb{transition:none}}:host ::ng-deep .form-range::-moz-range-thumb:active{background-color:#b6d4fe}:host ::ng-deep .form-range::-moz-range-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:var(--bs-secondary-bg);border-color:transparent;border-radius:1rem}:host ::ng-deep .form-range:disabled{pointer-events:none}:host ::ng-deep .form-range:disabled::-webkit-slider-thumb{background-color:var(--bs-secondary-color)}:host ::ng-deep .form-range:disabled::-moz-range-thumb{background-color:var(--bs-secondary-color)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
72
73
|
}
|
|
73
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
74
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRangeComponent, decorators: [{
|
|
74
75
|
type: Component,
|
|
75
76
|
args: [{ selector: 'bs-range', changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: [BsRangeValueAccessor], template: "<input #slider type=\"range\" [min]=\"min()\" [max]=\"max()\" [step]=\"step()\" [attr.aria-label]=\"ariaLabel()\" class=\"form-range\">\n", styles: [":host ::ng-deep .form-range{width:100%;height:1.5rem;padding:0;appearance:none;background-color:transparent}:host ::ng-deep .form-range:focus{outline:0}:host ::ng-deep .form-range:focus::-webkit-slider-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .25rem #0d6efd40}:host ::ng-deep .form-range:focus::-moz-range-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .25rem #0d6efd40}:host ::ng-deep .form-range::-moz-focus-outer{border:0}:host ::ng-deep .form-range::-webkit-slider-thumb{width:1rem;height:1rem;margin-top:-.25rem;appearance:none;background-color:#0d6efd;border:0;border-radius:1rem;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media(prefers-reduced-motion:reduce){:host ::ng-deep .form-range::-webkit-slider-thumb{transition:none}}:host ::ng-deep .form-range::-webkit-slider-thumb:active{background-color:#b6d4fe}:host ::ng-deep .form-range::-webkit-slider-runnable-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:var(--bs-secondary-bg);border-color:transparent;border-radius:1rem}:host ::ng-deep .form-range::-moz-range-thumb{width:1rem;height:1rem;appearance:none;background-color:#0d6efd;border:0;border-radius:1rem;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media(prefers-reduced-motion:reduce){:host ::ng-deep .form-range::-moz-range-thumb{transition:none}}:host ::ng-deep .form-range::-moz-range-thumb:active{background-color:#b6d4fe}:host ::ng-deep .form-range::-moz-range-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:var(--bs-secondary-bg);border-color:transparent;border-radius:1rem}:host ::ng-deep .form-range:disabled{pointer-events:none}:host ::ng-deep .form-range:disabled::-webkit-slider-thumb{background-color:var(--bs-secondary-color)}:host ::ng-deep .form-range:disabled::-moz-range-thumb{background-color:var(--bs-secondary-color)}\n"] }]
|
|
76
77
|
}], propDecorators: { slider: [{ type: i0.ViewChild, args: ['slider', { isSignal: true }] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], step: [{ type: i0.Input, args: [{ isSignal: true, alias: "step", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }] } });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mintplayer-ng-bootstrap-range.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/range/src/value-accessor/range-value-accessor.ts","../../../../libs/mintplayer-ng-bootstrap/range/src/component/range.component.ts","../../../../libs/mintplayer-ng-bootstrap/range/src/component/range.component.html","../../../../libs/mintplayer-ng-bootstrap/range/mintplayer-ng-bootstrap-range.ts"],"sourcesContent":["import { Directive, forwardRef, inject } from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { BsRangeComponent } from '../component/range.component';\n\n@Directive({\n selector: 'bs-range',\n providers: [{\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => BsRangeValueAccessor),\n multi: true,\n }],\n host: {\n '(input)': 'onInputEvent($event)',\n // focusout is composed: the shadow input's blur reaches the host. The\n // stored onTouched was never CALLED before, which kept every\n // invalid-after-touched mirror dead (audit 4.9 prerequisite).\n '(focusout)': 'onTouched?.()',\n },\n})\nexport class BsRangeValueAccessor implements ControlValueAccessor {\n private host = inject(BsRangeComponent);\n\n onValueChange?: (value: number) => void;\n onTouched?: () => void;\n\n onInputEvent(ev: Event) {\n if (this.onValueChange) {\n const val = parseFloat((<HTMLInputElement>ev.target).value);\n this.onValueChange(val);\n }\n }\n\n //#region ControlValueAccessor implementation\n registerOnChange(fn: (_: any) => void) {\n this.onValueChange = fn;\n }\n\n registerOnTouched(fn: () => void) {\n this.onTouched = fn;\n }\n\n writeValue(value?: number) {\n if (this.host.slider() && (typeof value === 'number')) {\n this.host.slider().nativeElement.value = value.toString();\n }\n }\n\n setDisabledState(isDisabled: boolean) {\n if (this.host.slider()) {\n this.host.slider().nativeElement.disabled = isDisabled;\n }\n }\n //#endregion\n\n}\n","import { Component, ElementRef, input, viewChild, ChangeDetectionStrategy} from '@angular/core';\nimport { BsRangeValueAccessor } from '../value-accessor/range-value-accessor';\n\n@Component({\n selector: 'bs-range',\n templateUrl: './range.component.html',\n styleUrls: ['./range.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [BsRangeValueAccessor],\n})\nexport class BsRangeComponent {\n readonly slider = viewChild.required<ElementRef<HTMLInputElement>>('slider');\n\n readonly min = input(0);\n readonly max = input(10);\n readonly step = input(1);\n readonly ariaLabel = input<string | null>(null);\n}\n","<input #slider type=\"range\" [min]=\"min()\" [max]=\"max()\" [step]=\"step()\" [attr.aria-label]=\"ariaLabel()\" class=\"form-range\">\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAmBa,oBAAoB,CAAA;AAfjC,IAAA,WAAA,GAAA;AAgBU,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAC,gBAAgB,CAAC;AAkCxC,IAAA;AA7BC,IAAA,YAAY,CAAC,EAAS,EAAA;AACpB,QAAA,IAAI,IAAI,CAAC,aAAa,EAAE;YACtB,MAAM,GAAG,GAAG,UAAU,CAAoB,EAAE,CAAC,MAAO,CAAC,KAAK,CAAC;AAC3D,YAAA,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC;QACzB;IACF;;AAGA,IAAA,gBAAgB,CAAC,EAAoB,EAAA;AACnC,QAAA,IAAI,CAAC,aAAa,GAAG,EAAE;IACzB;AAEA,IAAA,iBAAiB,CAAC,EAAc,EAAA;AAC9B,QAAA,IAAI,CAAC,SAAS,GAAG,EAAE;IACrB;AAEA,IAAA,UAAU,CAAC,KAAc,EAAA;AACvB,QAAA,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,KAAK,OAAO,KAAK,KAAK,QAAQ,CAAC,EAAE;AACrD,YAAA,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,aAAa,CAAC,KAAK,GAAG,KAAK,CAAC,QAAQ,EAAE;QAC3D;IACF;AAEA,IAAA,gBAAgB,CAAC,UAAmB,EAAA;AAClC,QAAA,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,EAAE;YACtB,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,aAAa,CAAC,QAAQ,GAAG,UAAU;QACxD;IACF;8GAhCW,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAApB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,oBAAoB,8IAbpB,CAAC;AACV,gBAAA,OAAO,EAAE,iBAAiB;AAC1B,gBAAA,WAAW,EAAE,UAAU,CAAC,MAAM,oBAAoB,CAAC;AACnD,gBAAA,KAAK,EAAE,IAAI;aACZ,CAAC,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FASS,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAfhC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,UAAU;AACpB,oBAAA,SAAS,EAAE,CAAC;AACV,4BAAA,OAAO,EAAE,iBAAiB;AAC1B,4BAAA,WAAW,EAAE,UAAU,CAAC,0BAA0B,CAAC;AACnD,4BAAA,KAAK,EAAE,IAAI;yBACZ,CAAC;AACF,oBAAA,IAAI,EAAE;AACJ,wBAAA,SAAS,EAAE,sBAAsB;;;;AAIjC,wBAAA,YAAY,EAAE,eAAe;AAC9B,qBAAA;AACF,iBAAA;;;MCRY,gBAAgB,CAAA;AAP7B,IAAA,WAAA,GAAA;AAQW,QAAA,IAAA,CAAA,MAAM,GAAG,SAAS,CAAC,QAAQ,CAA+B,QAAQ
|
|
1
|
+
{"version":3,"file":"mintplayer-ng-bootstrap-range.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/range/src/value-accessor/range-value-accessor.ts","../../../../libs/mintplayer-ng-bootstrap/range/src/component/range.component.ts","../../../../libs/mintplayer-ng-bootstrap/range/src/component/range.component.html","../../../../libs/mintplayer-ng-bootstrap/range/mintplayer-ng-bootstrap-range.ts"],"sourcesContent":["import { Directive, forwardRef, inject } from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { BsRangeComponent } from '../component/range.component';\n\n@Directive({\n selector: 'bs-range',\n providers: [{\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => BsRangeValueAccessor),\n multi: true,\n }],\n host: {\n '(input)': 'onInputEvent($event)',\n // focusout is composed: the shadow input's blur reaches the host. The\n // stored onTouched was never CALLED before, which kept every\n // invalid-after-touched mirror dead (audit 4.9 prerequisite).\n '(focusout)': 'onTouched?.()',\n },\n})\nexport class BsRangeValueAccessor implements ControlValueAccessor {\n private host = inject(BsRangeComponent);\n\n onValueChange?: (value: number) => void;\n onTouched?: () => void;\n\n onInputEvent(ev: Event) {\n if (this.onValueChange) {\n const val = parseFloat((<HTMLInputElement>ev.target).value);\n this.onValueChange(val);\n }\n }\n\n //#region ControlValueAccessor implementation\n registerOnChange(fn: (_: any) => void) {\n this.onValueChange = fn;\n }\n\n registerOnTouched(fn: () => void) {\n this.onTouched = fn;\n }\n\n writeValue(value?: number) {\n if (this.host.slider() && (typeof value === 'number')) {\n this.host.slider().nativeElement.value = value.toString();\n }\n }\n\n setDisabledState(isDisabled: boolean) {\n if (this.host.slider()) {\n this.host.slider().nativeElement.disabled = isDisabled;\n }\n }\n //#endregion\n\n}\n","import { Component, ElementRef, input, viewChild, ChangeDetectionStrategy} from '@angular/core';\nimport { BsRangeValueAccessor } from '../value-accessor/range-value-accessor';\n\n@Component({\n selector: 'bs-range',\n templateUrl: './range.component.html',\n styleUrls: ['./range.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [BsRangeValueAccessor],\n})\nexport class BsRangeComponent {\n readonly slider = viewChild.required<ElementRef<HTMLInputElement>>('slider');\n\n readonly min = input(0);\n readonly max = input(10);\n readonly step = input(1);\n readonly ariaLabel = input<string | null>(null);\n}\n","<input #slider type=\"range\" [min]=\"min()\" [max]=\"max()\" [step]=\"step()\" [attr.aria-label]=\"ariaLabel()\" class=\"form-range\">\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAmBa,oBAAoB,CAAA;AAfjC,IAAA,WAAA,GAAA;AAgBU,QAAA,IAAA,CAAA,IAAI,GAAG,M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|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.
|
|
95
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRatingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
96
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsRatingComponent, isStandalone: true, selector: "bs-rating", inputs: { ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, starLabel: { classPropertyName: "starLabel", publicName: "starLabel", isSignal: true, isRequired: false, transformFunction: null }, maximum: { classPropertyName: "maximum", publicName: "maximum", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", starsChange: "starsChange" }, host: { attributes: { "role": "radiogroup" }, listeners: { "mouseleave": "onMouseLeave()", "keydown": "onKeydown($event)" }, properties: { "attr.aria-label": "ariaLabel()" } }, viewQueries: [{ propertyName: "starButtons", predicate: ["star"], descendants: true, isSignal: true }], ngImport: i0, template: "@for (star of stars(); let i = $index; track i) {\n <button type=\"button\"\n #star\n class=\"cursor-pointer btn-star\"\n role=\"radio\"\n [attr.tabindex]=\"starTabIndexes()[i]\"\n (mouseenter)=\"hoverValue(i)\"\n (click)=\"selectValue(i)\"\n [attr.aria-label]=\"starLabels()[i]\"\n [attr.aria-checked]=\"value() === (i + 1)\">\n <span aria-hidden=\"true\">{{ star ? '★' : '☆' }}</span>\n </button>\n}\n", styles: [".btn-star{background:none;border:none;padding:0;font-size:inherit;color:inherit;line-height:1}.btn-star:focus{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:2px}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
97
97
|
}
|
|
98
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
98
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRatingComponent, decorators: [{
|
|
99
99
|
type: Component,
|
|
100
100
|
args: [{ selector: 'bs-rating', changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
101
101
|
'role': 'radiogroup',
|
|
@@ -286,10 +286,10 @@ class BsResizeGlyphDirective {
|
|
|
286
286
|
if (consumed)
|
|
287
287
|
event.preventDefault();
|
|
288
288
|
}
|
|
289
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
290
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.
|
|
289
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsResizeGlyphDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
290
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.8", type: BsResizeGlyphDirective, isStandalone: true, selector: "[bsResizeGlyph]", inputs: { bsResizeGlyph: { classPropertyName: "bsResizeGlyph", publicName: "bsResizeGlyph", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "mousedown": "onMouseDown($event)", "touchstart": "onTouchStart($event)", "document:mousemove": "onMouseMove($event)", "touchmove": "onTouchMove($event)", "document:mouseup": "onMouseUp($event)", "touchend": "onTouchEnd($event)", "keydown": "onKeydown($event)" }, properties: { "class": "positions()", "class.glyph": "true", "class.active": "activeClass()", "attr.role": "\"separator\"", "attr.aria-label": "ariaLabel()", "attr.aria-orientation": "ariaOrientation()", "attr.tabindex": "\"0\"" } }, ngImport: i0 }); }
|
|
291
291
|
}
|
|
292
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
292
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsResizeGlyphDirective, decorators: [{
|
|
293
293
|
type: Directive,
|
|
294
294
|
args: [{
|
|
295
295
|
selector: '[bsResizeGlyph]',
|
|
@@ -376,12 +376,12 @@ class BsResizableComponent {
|
|
|
376
376
|
}
|
|
377
377
|
});
|
|
378
378
|
}
|
|
379
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
380
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.
|
|
379
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsResizableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
380
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsResizableComponent, isStandalone: true, selector: "bs-resizable", inputs: { positioning: { classPropertyName: "positioning", publicName: "positioning", isSignal: true, isRequired: false, transformFunction: null }, horizontal: { classPropertyName: "horizontal", publicName: "horizontal", isSignal: true, isRequired: false, transformFunction: null }, vertical: { classPropertyName: "vertical", publicName: "vertical", isSignal: true, isRequired: false, transformFunction: null }, corners: { classPropertyName: "corners", publicName: "corners", isSignal: true, isRequired: false, transformFunction: null }, presetPosition: { classPropertyName: "presetPosition", publicName: "presetPosition", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "style.margin-left.px": "marginLeft()", "style.margin-right.px": "marginRight()", "style.margin-top.px": "marginTop()", "style.margin-bottom.px": "marginBottom()", "style.width.px": "width()", "style.height.px": "height()", "style.left.px": "left()", "style.top.px": "top()", "class.d-block": "true", "class.border": "true", "class": "hostPosition()" } }, providers: [
|
|
381
381
|
{ provide: RESIZABLE, useExisting: forwardRef(() => BsResizableComponent) }
|
|
382
382
|
], ngImport: i0, template: "<div [class]=\"wrapperPosition()\" class=\"h-100\">\n @if (showCorners()) {\n <div class=\"cursor-nw-resize\" [bsResizeGlyph]=\"['top', 'start']\"></div>\n <div class=\"cursor-ne-resize\" [bsResizeGlyph]=\"['top', 'end']\"></div>\n <div class=\"cursor-se-resize\" [bsResizeGlyph]=\"['bottom', 'end']\"></div>\n <div class=\"cursor-sw-resize\" [bsResizeGlyph]=\"['bottom', 'start']\"></div>\n }\n @if (vertical()) {\n <div class=\"cursor-n-resize\" [bsResizeGlyph]=\"['top']\"></div>\n <div class=\"cursor-s-resize\" [bsResizeGlyph]=\"['bottom']\"></div>\n }\n @if (horizontal()) {\n <div class=\"cursor-e-resize\" [bsResizeGlyph]=\"['end']\"></div>\n <div class=\"cursor-w-resize\" [bsResizeGlyph]=\"['start']\"></div>\n }\n <ng-content></ng-content>\n</div>", styles: [".glyph:before{content:\"\";width:8px;height:8px;display:block;border-radius:4px;transition:background-color .2s ease-in-out}.glyph{position:absolute;width:14px;height:14px;z-index:20}.glyph.top{top:-7px}.glyph.start{left:-7px}.glyph.bottom{bottom:-7px}.glyph.end{right:-7px}.glyph.start:not(.top):not(.bottom),.glyph.end:not(.top):not(.bottom){top:4px;height:calc(100% - 8px)}.glyph.start:not(.top):not(.bottom):before,.glyph.end:not(.top):not(.bottom):before{display:block;height:100%}.glyph.start:before,.glyph.end:before{margin-left:3px;margin-right:3px}.glyph.top:not(.start):not(.end),.glyph.bottom:not(.start):not(.end){left:4px;width:calc(100% - 8px)}.glyph.top:not(.start):not(.end):before,.glyph.bottom:not(.start):not(.end):before{display:block;width:100%}.glyph.top:before,.glyph.bottom:before{margin-top:3px;margin-bottom:3px}.glyph:hover:before,.glyph.active:before{background-color:var(--bs-primary)}:host{min-width:2rem;min-height:2rem}\n"], dependencies: [{ kind: "directive", type: BsResizeGlyphDirective, selector: "[bsResizeGlyph]", inputs: ["bsResizeGlyph"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
383
383
|
}
|
|
384
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
384
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsResizableComponent, decorators: [{
|
|
385
385
|
type: Component,
|
|
386
386
|
args: [{ selector: 'bs-resizable', imports: [BsResizeGlyphDirective], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
387
387
|
{ provide: RESIZABLE, useExisting: forwardRef(() => BsResizableComponent) }
|