@mintplayer/ng-bootstrap 22.13.0 → 22.14.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 +3 -3
- 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
|
@@ -37,14 +37,14 @@ class BsCheckboxValueAccessor {
|
|
|
37
37
|
if (wc)
|
|
38
38
|
wc.disabled = isDisabled;
|
|
39
39
|
}
|
|
40
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
41
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.
|
|
40
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCheckboxValueAccessor, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
41
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsCheckboxValueAccessor, isStandalone: true, selector: "bs-checkbox", host: { listeners: { "change": "onChangeEvent($event)", "focusout": "onTouched?.()" } }, providers: [{
|
|
42
42
|
provide: NG_VALUE_ACCESSOR,
|
|
43
43
|
useExisting: forwardRef(() => BsCheckboxValueAccessor),
|
|
44
44
|
multi: true,
|
|
45
45
|
}], ngImport: i0 }); }
|
|
46
46
|
}
|
|
47
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
47
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCheckboxValueAccessor, decorators: [{
|
|
48
48
|
type: Directive,
|
|
49
49
|
args: [{
|
|
50
50
|
selector: 'bs-checkbox',
|
|
@@ -148,14 +148,14 @@ class BsCheckboxGroupDirective {
|
|
|
148
148
|
wc.disabled = isDisabled;
|
|
149
149
|
});
|
|
150
150
|
}
|
|
151
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
152
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "22.0.
|
|
151
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCheckboxGroupDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
152
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "22.0.8", type: BsCheckboxGroupDirective, isStandalone: true, selector: "[bsCheckboxGroup]", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "change": "onChildChange()", "focusout": "onTouched?.()" } }, providers: [{
|
|
153
153
|
provide: NG_VALUE_ACCESSOR,
|
|
154
154
|
useExisting: forwardRef(() => BsCheckboxGroupDirective),
|
|
155
155
|
multi: true,
|
|
156
156
|
}], queries: [{ propertyName: "checkboxes", predicate: i0.forwardRef(() => BsCheckboxComponent), descendants: true, isSignal: true }], exportAs: ["bsCheckboxGroup"], ngImport: i0 }); }
|
|
157
157
|
}
|
|
158
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
158
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCheckboxGroupDirective, decorators: [{
|
|
159
159
|
type: Directive,
|
|
160
160
|
args: [{
|
|
161
161
|
selector: '[bsCheckboxGroup]',
|
|
@@ -181,7 +181,8 @@ class BsCheckboxComponent {
|
|
|
181
181
|
/** Reference to the underlying `<mp-checkbox>` WC. Read by
|
|
182
182
|
* `BsCheckboxValueAccessor` and `[bsCheckboxGroup]` to write the WC's
|
|
183
183
|
* `checked` / `disabled` / `indeterminate` properties. */
|
|
184
|
-
this.checkboxRef = viewChild.required('checkbox'
|
|
184
|
+
this.checkboxRef = viewChild.required('checkbox', /* @ts-ignore */
|
|
185
|
+
...(ngDevMode ? [{ debugName: "checkboxRef" }] : /* istanbul ignore next */ []));
|
|
185
186
|
this.type = input('checkbox', /* @ts-ignore */
|
|
186
187
|
...(ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []));
|
|
187
188
|
this.isToggled = model(false, /* @ts-ignore */
|
|
@@ -223,10 +224,10 @@ class BsCheckboxComponent {
|
|
|
223
224
|
this.isToggled.set(detail.checked);
|
|
224
225
|
this.indeterminate.set(detail.indeterminate);
|
|
225
226
|
}
|
|
226
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
227
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.
|
|
227
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCheckboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
228
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.8", type: BsCheckboxComponent, isStandalone: true, selector: "bs-checkbox", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, isToggled: { classPropertyName: "isToggled", publicName: "isToggled", isSignal: true, isRequired: false, transformFunction: null }, indeterminate: { classPropertyName: "indeterminate", publicName: "indeterminate", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, group: { classPropertyName: "group", publicName: "group", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { isToggled: "isToggledChange", indeterminate: "indeterminateChange" }, host: { classAttribute: "d-inline-block" }, viewQueries: [{ propertyName: "checkboxRef", first: true, predicate: ["checkbox"], descendants: true, isSignal: true }], hostDirectives: [{ directive: BsCheckboxValueAccessor }, { directive: i2.BsControlValidityDirective, inputs: ["errorMessages", "errorMessages"] }], ngImport: i0, template: "<mp-checkbox bsForwardAria #checkbox (change)=\"onChange($event)\">\n <ng-content></ng-content>\n</mp-checkbox>\n", dependencies: [{ kind: "directive", type: BsForwardAriaDirective, selector: "[bsForwardAria]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
228
229
|
}
|
|
229
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
230
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCheckboxComponent, decorators: [{
|
|
230
231
|
type: Component,
|
|
231
232
|
args: [{ selector: 'bs-checkbox', imports: [BsForwardAriaDirective], schemas: [CUSTOM_ELEMENTS_SCHEMA], changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: [BsCheckboxValueAccessor, {
|
|
232
233
|
directive: BsControlValidityDirective,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mintplayer-ng-bootstrap-checkbox.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/checkbox/src/value-accessor/checkbox-value-accessor.ts","../../../../libs/mintplayer-ng-bootstrap/checkbox/src/directives/checkbox-group/checkbox-group.directive.ts","../../../../libs/mintplayer-ng-bootstrap/checkbox/src/component/checkbox.component.ts","../../../../libs/mintplayer-ng-bootstrap/checkbox/src/component/checkbox.component.html","../../../../libs/mintplayer-ng-bootstrap/checkbox/mintplayer-ng-bootstrap-checkbox.ts"],"sourcesContent":["import { Directive, forwardRef, inject } from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport type { CheckboxChangeEventDetail } from '@mintplayer/web-components/checkbox';\nimport { BsCheckboxComponent } from '../component/checkbox.component';\n\n/**\n * Single-mode (standalone) value accessor for `<bs-checkbox>`. Emits a\n * `boolean` reflecting the checked state. For multi-mode use, bind\n * `[formControl]` on `[bsCheckboxGroup]` instead — that directive owns\n * its own `string[]` accessor.\n */\n@Directive({\n selector: 'bs-checkbox',\n providers: [{\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => BsCheckboxValueAccessor),\n multi: true,\n }],\n host: {\n '(change)': 'onChangeEvent($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 BsCheckboxValueAccessor implements ControlValueAccessor {\n\n private host = inject(BsCheckboxComponent);\n\n onValueChange?: (value: boolean) => void;\n onTouched?: () => void;\n\n onChangeEvent(ev: Event) {\n if (!this.onValueChange) return;\n // The bubbled `change` originates from <mp-checkbox> and is a\n // CustomEvent with a `CheckboxChangeEventDetail` payload.\n const detail = (ev as CustomEvent<CheckboxChangeEventDetail>).detail;\n this.onValueChange(detail.checked);\n }\n\n registerOnChange(fn: (_: boolean) => void) {\n this.onValueChange = fn;\n }\n\n registerOnTouched(fn: () => void) {\n this.onTouched = fn;\n }\n\n writeValue(value: boolean) {\n this.host.isToggled.set(value);\n }\n\n setDisabledState(isDisabled: boolean) {\n const wc = this.host.checkboxRef()?.nativeElement;\n if (wc) wc.disabled = isDisabled;\n }\n}\n","import { contentChildren, Directive, effect, ElementRef, forwardRef, inject, input, signal } from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { BsCheckboxComponent } from '../../component/checkbox.component';\n\n/**\n * Groups N `<bs-checkbox>` children into a multi-select FormControl whose\n * value is a `string[]` of every checked child's `value()`. The group's\n * `[name]` is the form-array name; the accessor appends the `[]` suffix\n * automatically on each child's inner `<input>` for traditional-form\n * submission. Per-instance `[name]` on each child is ignored when the\n * child resolves into a group.\n *\n * Acts as its own `ControlValueAccessor` — bind `[formControl]` / `[(ngModel)]`\n * directly on the element carrying `[bsCheckboxGroup]`. Listens to bubbled\n * `change` events from the children to recompute the array on every toggle.\n */\n@Directive({\n selector: '[bsCheckboxGroup]',\n exportAs: 'bsCheckboxGroup',\n providers: [{\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => BsCheckboxGroupDirective),\n multi: true,\n }],\n host: {\n '(change)': 'onChildChange()',\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 BsCheckboxGroupDirective implements ControlValueAccessor {\n\n private readonly host = inject(ElementRef).nativeElement as HTMLElement;\n\n readonly name = input<string | null>(null);\n\n /** Accessible name for the group (written as `aria-label`). A bare\n * `role=\"group\"` is announced as nothing at all; the label is what makes\n * the grouping audible (\"Toppings, group\"). */\n readonly label = input<string | null>(null);\n // Wrap in forwardRef: BsCheckboxComponent imports this directive (for\n // `inject(BsCheckboxGroupDirective, {...})`), so the two modules form a\n // cycle. Whichever side webpack/vite evaluates first sees `undefined` for\n // the other's exports at field-initialiser time, which makes the recorded\n // query predicate null — ng-mocks' MockDirective then fails with \"the\n // query selector wasn't defined\" on consumers that mock the group.\n readonly checkboxes = contentChildren<BsCheckboxComponent>(forwardRef(() => BsCheckboxComponent), { 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 * `checkboxes()` set changes, so an initial `writeValue` that lands\n * before children register still applies once the `contentChildren`\n * query populates. */\n private readonly currentValue = signal<readonly string[]>([]);\n\n private onValueChange?: (value: string[]) => 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 // role=\"group\" so the checkboxes announce as one named cluster — but only\n // on hosts whose implicit role is generic. Structural hosts (the tbody\n // row-selection shape) have load-bearing native semantics that a group\n // role would destroy, and a consumer-set role always wins.\n const structural = ['TABLE', 'THEAD', 'TBODY', 'TFOOT', 'TR', 'UL', 'OL', 'LI'];\n if (!this.host.hasAttribute('role') && !structural.includes(this.host.tagName)) {\n this.host.setAttribute('role', 'group');\n }\n effect(() => {\n const label = this.label();\n if (label !== null) this.host.setAttribute('aria-label', label);\n });\n effect(() => {\n const arr = this.currentValue();\n this.checkboxes().forEach(cb => {\n const v = cb.value();\n const isSelected = v != null && arr.includes(v);\n cb.isToggled.set(isSelected);\n const wc = cb.checkboxRef()?.nativeElement;\n if (wc) wc.checked = isSelected;\n });\n });\n }\n\n onChildChange() {\n if (!this.onValueChange) return;\n const result = this.checkboxes()\n .filter(cb => !!cb.isToggled() && cb.value() != null)\n .map(cb => cb.value()!);\n this.onValueChange(result);\n }\n\n registerOnChange(fn: (_: string[]) => 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(Array.isArray(value) ? value : []);\n }\n\n setDisabledState(isDisabled: boolean) {\n this.checkboxes().forEach(cb => {\n const wc = cb.checkboxRef()?.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 { BsCheckboxValueAccessor } from '../value-accessor/checkbox-value-accessor';\nimport { BsCheckboxGroupDirective } from '../directives/checkbox-group/checkbox-group.directive';\nimport { BsCheckboxType } from '../types/checkbox-type';\nimport type { CheckboxChangeEventDetail, MpCheckbox } from '@mintplayer/web-components/checkbox';\n\n// Side-effect import: registers <mp-checkbox>.\nimport '@mintplayer/web-components/checkbox';\nimport { BsForwardAriaDirective, BsControlValidityDirective } from '@mintplayer/ng-bootstrap/a11y';\n\n@Component({\n selector: 'bs-checkbox',\n templateUrl: './checkbox.component.html',\n imports: [BsForwardAriaDirective],\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [BsCheckboxValueAccessor, {\n directive: BsControlValidityDirective,\n inputs: ['errorMessages'],\n }],\n host: {\n 'class': 'd-inline-block',\n },\n})\nexport class BsCheckboxComponent {\n\n private readonly parentGroup = inject(BsCheckboxGroupDirective, { optional: true, skipSelf: true });\n\n /** Reference to the underlying `<mp-checkbox>` WC. Read by\n * `BsCheckboxValueAccessor` and `[bsCheckboxGroup]` to write the WC's\n * `checked` / `disabled` / `indeterminate` properties. */\n readonly checkboxRef = viewChild.required<ElementRef<MpCheckbox>>('checkbox');\n\n type = input<BsCheckboxType>('checkbox');\n isToggled = model<boolean | null>(false);\n indeterminate = model<boolean>(false);\n name = input<string | null>(null);\n value = input<string | null>(null);\n group = input<BsCheckboxGroupDirective | null>(null);\n\n /** Explicit `[group]` input wins over the DI-injected ancestor. */\n readonly resolvedGroup = computed(() => this.group() ?? this.parentGroup ?? null);\n\n /** Single-mode → component's own `[name]`. Multi-mode → group's `[name]` + `[]`. */\n readonly nameResult = computed(() => {\n const group = this.resolvedGroup();\n if (group) {\n const groupName = group.name();\n return groupName == null ? null : `${groupName}[]`;\n }\n return this.name();\n });\n\n constructor() {\n effect(() => {\n const el = this.checkboxRef()?.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 el.indeterminate = this.indeterminate();\n });\n }\n\n onChange(ev: Event) {\n const detail = (ev as CustomEvent<CheckboxChangeEventDetail>).detail;\n this.isToggled.set(detail.checked);\n this.indeterminate.set(detail.indeterminate);\n }\n\n}\n","<mp-checkbox bsForwardAria #checkbox (change)=\"onChange($event)\">\n <ng-content></ng-content>\n</mp-checkbox>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.BsCheckboxValueAccessor"],"mappings":";;;;;;;AAKA;;;;;AAKG;MAgBU,uBAAuB,CAAA;AAfpC,IAAA,WAAA,GAAA;AAiBU,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAC,mBAAmB,CAAC;AA6B3C,IAAA;AAxBC,IAAA,aAAa,CAAC,EAAS,EAAA;QACrB,IAAI,CAAC,IAAI,CAAC,aAAa;YAAE;;;AAGzB,QAAA,MAAM,MAAM,GAAI,EAA6C,CAAC,MAAM;AACpE,QAAA,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,OAAO,CAAC;IACpC;AAEA,IAAA,gBAAgB,CAAC,EAAwB,EAAA;AACvC,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;QACvB,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,KAAK,CAAC;IAChC;AAEA,IAAA,gBAAgB,CAAC,UAAmB,EAAA;QAClC,MAAM,EAA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A,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,OAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE1C9E;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"mintplayer-ng-bootstrap-checkbox.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/checkbox/src/value-accessor/checkbox-value-accessor.ts","../../../../libs/mintplayer-ng-bootstrap/checkbox/src/directives/checkbox-group/checkbox-group.directive.ts","../../../../libs/mintplayer-ng-bootstrap/checkbox/src/component/checkbox.component.ts","../../../../libs/mintplayer-ng-bootstrap/checkbox/src/component/checkbox.component.html","../../../../libs/mintplayer-ng-bootstrap/checkbox/mintplayer-ng-bootstrap-checkbox.ts"],"sourcesContent":["import { Directive, forwardRef, inject } from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport type { CheckboxChangeEventDetail } from '@mintplayer/web-components/checkbox';\nimport { BsCheckboxComponent } from '../component/checkbox.component';\n\n/**\n * Single-mode (standalone) value accessor for `<bs-checkbox>`. Emits a\n * `boolean` reflecting the checked state. For multi-mode use, bind\n * `[formControl]` on `[bsCheckboxGroup]` instead — that directive owns\n * its own `string[]` accessor.\n */\n@Directive({\n selector: 'bs-checkbox',\n providers: [{\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => BsCheckboxValueAccessor),\n multi: true,\n }],\n host: {\n '(change)': 'onChangeEvent($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 BsCheckboxValueAccessor implements ControlValueAccessor {\n\n private host = inject(BsCheckboxComponent);\n\n onValueChange?: (value: boolean) => void;\n onTouched?: () => void;\n\n onChangeEvent(ev: Event) {\n if (!this.onValueChange) return;\n // The bubbled `change` originates from <mp-checkbox> and is a\n // CustomEvent with a `CheckboxChangeEventDetail` payload.\n const detail = (ev as CustomEvent<CheckboxChangeEventDetail>).detail;\n this.onValueChange(detail.checked);\n }\n\n registerOnChange(fn: (_: boolean) => void) {\n this.onValueChange = fn;\n }\n\n registerOnTouched(fn: () => void) {\n this.onTouched = fn;\n }\n\n writeValue(value: boolean) {\n this.host.isToggled.set(value);\n }\n\n setDisabledState(isDisabled: boolean) {\n const wc = this.host.checkboxRef()?.nativeElement;\n if (wc) wc.disabled = isDisabled;\n }\n}\n","import { contentChildren, Directive, effect, ElementRef, forwardRef, inject, input, signal } from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { BsCheckboxComponent } from '../../component/checkbox.component';\n\n/**\n * Groups N `<bs-checkbox>` children into a multi-select FormControl whose\n * value is a `string[]` of every checked child's `value()`. The group's\n * `[name]` is the form-array name; the accessor appends the `[]` suffix\n * automatically on each child's inner `<input>` for traditional-form\n * submission. Per-instance `[name]` on each child is ignored when the\n * child resolves into a group.\n *\n * Acts as its own `ControlValueAccessor` — bind `[formControl]` / `[(ngModel)]`\n * directly on the element carrying `[bsCheckboxGroup]`. Listens to bubbled\n * `change` events from the children to recompute the array on every toggle.\n */\n@Directive({\n selector: '[bsCheckboxGroup]',\n exportAs: 'bsCheckboxGroup',\n providers: [{\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => BsCheckboxGroupDirective),\n multi: true,\n }],\n host: {\n '(change)': 'onChildChange()',\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 BsCheckboxGroupDirective implements ControlValueAccessor {\n\n private readonly host = inject(ElementRef).nativeElement as HTMLElement;\n\n readonly name = input<string | null>(null);\n\n /** Accessible name for the group (written as `aria-label`). A bare\n * `role=\"group\"` is announced as nothing at all; the label is what makes\n * the grouping audible (\"Toppings, group\"). */\n readonly label = input<string | null>(null);\n // Wrap in forwardRef: BsCheckboxComponent imports this directive (for\n // `inject(BsCheckboxGroupDirective, {...})`), so the two modules form a\n // cycle. Whichever side webpack/vite evaluates first sees `undefined` for\n // the other's exports at field-initialiser time, which makes the recorded\n // query predicate null — ng-mocks' MockDirective then fails with \"the\n // query selector wasn't defined\" on consumers that mock the group.\n readonly checkboxes = contentChildren<BsCheckboxComponent>(forwardRef(() => BsCheckboxComponent), { 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 * `checkboxes()` set changes, so an initial `writeValue` that lands\n * before children register still applies once the `contentChildren`\n * query populates. */\n private readonly currentValue = signal<readonly string[]>([]);\n\n private onValueChange?: (value: string[]) => 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 // role=\"group\" so the checkboxes announce as one named cluster — but only\n // on hosts whose implicit role is generic. Structural hosts (the tbody\n // row-selection shape) have load-bearing native semantics that a group\n // role would destroy, and a consumer-set role always wins.\n const structural = ['TABLE', 'THEAD', 'TBODY', 'TFOOT', 'TR', 'UL', 'OL', 'LI'];\n if (!this.host.hasAttribute('role') && !structural.includes(this.host.tagName)) {\n this.host.setAttribute('role', 'group');\n }\n effect(() => {\n const label = this.label();\n if (label !== null) this.host.setAttribute('aria-label', label);\n });\n effect(() => {\n const arr = this.currentValue();\n this.checkboxes().forEach(cb => {\n const v = cb.value();\n const isSelected = v != null && arr.includes(v);\n cb.isToggled.set(isSelected);\n const wc = cb.checkboxRef()?.nativeElement;\n if (wc) wc.checked = isSelected;\n });\n });\n }\n\n onChildChange() {\n if (!this.onValueChange) return;\n const result = this.checkboxes()\n .filter(cb => !!cb.isToggled() && cb.value() != null)\n .map(cb => cb.value()!);\n this.onValueChange(result);\n }\n\n registerOnChange(fn: (_: string[]) => 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(Array.isArray(value) ? value : []);\n }\n\n setDisabledState(isDisabled: boolean) {\n this.checkboxes().forEach(cb => {\n const wc = cb.checkboxRef()?.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 { BsCheckboxValueAccessor } from '../value-accessor/checkbox-value-accessor';\nimport { BsCheckboxGroupDirective } from '../directives/checkbox-group/checkbox-group.directive';\nimport { BsCheckboxType } from '../types/checkbox-type';\nimport type { CheckboxChangeEventDetail, MpCheckbox } from '@mintplayer/web-components/checkbox';\n\n// Side-effect import: registers <mp-checkbox>.\nimport '@mintplayer/web-components/checkbox';\nimport { BsForwardAriaDirective, BsControlValidityDirective } from '@mintplayer/ng-bootstrap/a11y';\n\n@Component({\n selector: 'bs-checkbox',\n templateUrl: './checkbox.component.html',\n imports: [BsForwardAriaDirective],\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [BsCheckboxValueAccessor, {\n directive: BsControlValidityDirective,\n inputs: ['errorMessages'],\n }],\n host: {\n 'class': 'd-inline-block',\n },\n})\nexport class BsCheckboxComponent {\n\n private readonly parentGroup = inject(BsCheckboxGroupDirective, { optional: true, skipSelf: true });\n\n /** Reference to the underlying `<mp-checkbox>` WC. Read by\n * `BsCheckboxValueAccessor` and `[bsCheckboxGroup]` to write the WC's\n * `checked` / `disabled` / `indeterminate` properties. */\n readonly checkboxRef = viewChild.required<ElementRef<MpCheckbox>>('checkbox');\n\n type = input<BsCheckboxType>('checkbox');\n isToggled = model<boolean | null>(false);\n indeterminate = model<boolean>(false);\n name = input<string | null>(null);\n value = input<string | null>(null);\n group = input<BsCheckboxGroupDirective | null>(null);\n\n /** Explicit `[group]` input wins over the DI-injected ancestor. */\n readonly resolvedGroup = computed(() => this.group() ?? this.parentGroup ?? null);\n\n /** Single-mode → component's own `[name]`. Multi-mode → group's `[name]` + `[]`. */\n readonly nameResult = computed(() => {\n const group = this.resolvedGroup();\n if (group) {\n const groupName = group.name();\n return groupName == null ? null : `${groupName}[]`;\n }\n return this.name();\n });\n\n constructor() {\n effect(() => {\n const el = this.checkboxRef()?.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 el.indeterminate = this.indeterminate();\n });\n }\n\n onChange(ev: Event) {\n const detail = (ev as CustomEvent<CheckboxChangeEventDetail>).detail;\n this.isToggled.set(detail.checked);\n this.indeterminate.set(detail.indeterminate);\n }\n\n}\n","<mp-checkbox bsForwardAria #checkbox (change)=\"onChange($event)\">\n <ng-content></ng-content>\n</mp-checkbox>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.BsCheckboxValueAccessor"],"mappings":";;;;;;;AAKA;;;;;AAKG;MAgBU,uBAAuB,CAAA;AAfpC,IAAA,WAAA,GAAA;AAiBU,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAC,mBAAmB,CAAC;AA6B3C,IAAA;AAxBC,IAAA,aAAa,CAAC,EAAS,EAAA;QACrB,IAAI,CAAC,IAAI,CAAC,aAAa;YAAE;;;AAGzB,QAAA,MAAM,MAAM,GAAI,EAA6C,CAAC,MAAM;AACpE,QAAA,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,OAAO,CAAC;IACpC;AAEA,IAAA,gBAAgB,CAAC,EAAwB,EAAA;AACvC,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;QACvB,IAAI,CAAC,IAAI,CAAC,SAAS,C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AA,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;;AE1C9E;;AAEG;;;;"}
|
|
@@ -12,10 +12,10 @@ class BsCloseComponent {
|
|
|
12
12
|
this.click.emit();
|
|
13
13
|
ev.stopImmediatePropagation();
|
|
14
14
|
}
|
|
15
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
16
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.
|
|
15
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCloseComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
16
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsCloseComponent, isStandalone: true, selector: "bs-close", inputs: { ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { click: "click" }, ngImport: i0, template: "<button type=\"button\" (click)=\"onClose($event)\" class=\"btn-close\" [attr.aria-label]=\"ariaLabel()\"></button>", styles: [":host ::ng-deep .btn-close{--bs-btn-close-color: #000;--bs-btn-close-bg: url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414'/%3e%3c/svg%3e\");--bs-btn-close-opacity: .5;--bs-btn-close-hover-opacity: .75;--bs-btn-close-focus-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25);--bs-btn-close-focus-opacity: 1;--bs-btn-close-disabled-opacity: .25;box-sizing:content-box;width:1em;height:1em;padding:.25em;color:var(--bs-btn-close-color);background:transparent var(--bs-btn-close-bg) center/1em auto no-repeat;filter:var(--bs-btn-close-filter);border:0;border-radius:.375rem;opacity:var(--bs-btn-close-opacity)}:host ::ng-deep .btn-close:hover{color:var(--bs-btn-close-color);text-decoration:none;opacity:var(--bs-btn-close-hover-opacity)}:host ::ng-deep .btn-close:focus{outline:0;box-shadow:var(--bs-btn-close-focus-shadow);opacity:var(--bs-btn-close-focus-opacity)}:host ::ng-deep .btn-close:disabled,:host ::ng-deep .btn-close.disabled{pointer-events:none;-webkit-user-select:none;user-select:none;opacity:var(--bs-btn-close-disabled-opacity)}:host ::ng-deep .btn-close-white{--bs-btn-close-filter: invert(1) grayscale(100%) brightness(200%)}:host ::ng-deep :root,:host ::ng-deep [data-bs-theme=light]{--bs-btn-close-filter: }:host ::ng-deep [data-bs-theme=dark]{--bs-btn-close-filter: invert(1) grayscale(100%) brightness(200%)}:host-context([data-bs-theme=dark]) ::ng-deep .btn-close{filter:invert(1) grayscale(100%) brightness(200%)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
17
17
|
}
|
|
18
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
18
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCloseComponent, decorators: [{
|
|
19
19
|
type: Component,
|
|
20
20
|
args: [{ selector: 'bs-close', changeDetection: ChangeDetectionStrategy.OnPush, template: "<button type=\"button\" (click)=\"onClose($event)\" class=\"btn-close\" [attr.aria-label]=\"ariaLabel()\"></button>", styles: [":host ::ng-deep .btn-close{--bs-btn-close-color: #000;--bs-btn-close-bg: url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414'/%3e%3c/svg%3e\");--bs-btn-close-opacity: .5;--bs-btn-close-hover-opacity: .75;--bs-btn-close-focus-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25);--bs-btn-close-focus-opacity: 1;--bs-btn-close-disabled-opacity: .25;box-sizing:content-box;width:1em;height:1em;padding:.25em;color:var(--bs-btn-close-color);background:transparent var(--bs-btn-close-bg) center/1em auto no-repeat;filter:var(--bs-btn-close-filter);border:0;border-radius:.375rem;opacity:var(--bs-btn-close-opacity)}:host ::ng-deep .btn-close:hover{color:var(--bs-btn-close-color);text-decoration:none;opacity:var(--bs-btn-close-hover-opacity)}:host ::ng-deep .btn-close:focus{outline:0;box-shadow:var(--bs-btn-close-focus-shadow);opacity:var(--bs-btn-close-focus-opacity)}:host ::ng-deep .btn-close:disabled,:host ::ng-deep .btn-close.disabled{pointer-events:none;-webkit-user-select:none;user-select:none;opacity:var(--bs-btn-close-disabled-opacity)}:host ::ng-deep .btn-close-white{--bs-btn-close-filter: invert(1) grayscale(100%) brightness(200%)}:host ::ng-deep :root,:host ::ng-deep [data-bs-theme=light]{--bs-btn-close-filter: }:host ::ng-deep [data-bs-theme=dark]{--bs-btn-close-filter: invert(1) grayscale(100%) brightness(200%)}:host-context([data-bs-theme=dark]) ::ng-deep .btn-close{filter:invert(1) grayscale(100%) brightness(200%)}\n"] }]
|
|
21
21
|
}], propDecorators: { ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], click: [{ type: i0.Output, args: ["click"] }] } });
|
|
@@ -29,10 +29,10 @@ class BsCodeSnippetComponent {
|
|
|
29
29
|
const detail = event.detail;
|
|
30
30
|
this.detectedLanguage.emit(detail.language);
|
|
31
31
|
}
|
|
32
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
33
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.
|
|
32
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCodeSnippetComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
33
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsCodeSnippetComponent, isStandalone: true, selector: "bs-code-snippet", inputs: { codeToCopy: { classPropertyName: "codeToCopy", publicName: "codeToCopy", isSignal: true, isRequired: false, transformFunction: null }, language: { classPropertyName: "language", publicName: "language", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { detectedLanguage: "detectedLanguage" }, host: { classAttribute: "d-block" }, ngImport: i0, template: "<mp-code-snippet\n [code]=\"codeToCopy()\"\n [language]=\"language()\"\n (language-detected)=\"onLanguageDetected($event)\"\n></mp-code-snippet>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
34
34
|
}
|
|
35
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
35
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCodeSnippetComponent, decorators: [{
|
|
36
36
|
type: Component,
|
|
37
37
|
args: [{ selector: 'bs-code-snippet', schemas: [CUSTOM_ELEMENTS_SCHEMA], changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'd-block' }, template: "<mp-code-snippet\n [code]=\"codeToCopy()\"\n [language]=\"language()\"\n (language-detected)=\"onLanguageDetected($event)\"\n></mp-code-snippet>\n" }]
|
|
38
38
|
}], propDecorators: { codeToCopy: [{ type: i0.Input, args: [{ isSignal: true, alias: "codeToCopy", required: false }] }], language: [{ type: i0.Input, args: [{ isSignal: true, alias: "language", required: false }] }], detectedLanguage: [{ type: i0.Output, args: ["detectedLanguage"] }] } });
|
|
@@ -164,8 +164,10 @@ function hueFromRgb(r, g, b, max, d) {
|
|
|
164
164
|
|
|
165
165
|
class BsSliderComponent {
|
|
166
166
|
constructor() {
|
|
167
|
-
this.track = viewChild.required('track'
|
|
168
|
-
|
|
167
|
+
this.track = viewChild.required('track', /* @ts-ignore */
|
|
168
|
+
...(ngDevMode ? [{ debugName: "track" }] : /* istanbul ignore next */ []));
|
|
169
|
+
this.thumb = viewChild.required('thumb', /* @ts-ignore */
|
|
170
|
+
...(ngDevMode ? [{ debugName: "thumb" }] : /* istanbul ignore next */ []));
|
|
169
171
|
this.disabled = input(false, /* @ts-ignore */
|
|
170
172
|
...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
171
173
|
this.value = model(0.5, /* @ts-ignore */
|
|
@@ -251,10 +253,10 @@ class BsSliderComponent {
|
|
|
251
253
|
const percent = (clientX - rect.left) / this.track().nativeElement.clientWidth;
|
|
252
254
|
this.value.set(Math.max(0, Math.min(1, percent)));
|
|
253
255
|
}
|
|
254
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
255
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.
|
|
256
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsSliderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
257
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.8", type: BsSliderComponent, isStandalone: true, selector: "bs-slider", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, valueScale: { classPropertyName: "valueScale", publicName: "valueScale", isSignal: true, isRequired: false, transformFunction: null }, valueUnit: { classPropertyName: "valueUnit", publicName: "valueUnit", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, host: { attributes: { "role": "slider", "aria-valuemin": "0", "aria-orientation": "horizontal" }, listeners: { "document:mousemove": "onPointerMove($event)", "document:mouseup": "onPointerUp($event)", "keydown": "onKeydown($event)" }, properties: { "attr.aria-valuemax": "valueScale()", "attr.aria-valuenow": "ariaValueNow()", "attr.aria-valuetext": "ariaValueText()", "attr.aria-label": "ariaLabel()", "attr.aria-disabled": "disabled() ? \"true\" : null", "attr.tabindex": "disabled() ? -1 : 0" }, classAttribute: "d-block position-relative" }, viewQueries: [{ propertyName: "track", first: true, predicate: ["track"], descendants: true, isSignal: true }, { propertyName: "thumb", first: true, predicate: ["thumb"], descendants: true, isSignal: true }], ngImport: i0, template: "<div class=\"wrapper d-block position-relative\">\n <div #track class=\"track2\"\n (mousedown)=\"onPointerDown($event)\"\n (touchstart)=\"onPointerDown($event)\"\n (touchmove)=\"onPointerMove($event)\"\n (touchend)=\"onPointerUp($event)\">\n <ng-content select=\"[bsTrack]\"></ng-content>\n </div>\n <div #thumb\n (mousedown)=\"onPointerDown($event)\"\n (touchstart)=\"onPointerDown($event)\"\n (touchmove)=\"onPointerMove($event)\"\n (touchend)=\"onPointerUp($event)\"\n [class]=\"cursorClass()\"\n [style.left]=\"thumbLeft()\">\n <ng-content select=\"[bsThumb]\"></ng-content>\n </div>\n</div>\n", styles: [".track2{height:8px}.wrapper{padding-top:8px;padding-bottom:8px}:host ::ng-deep .track{height:8px;border-radius:8px}:host ::ng-deep .thumb{width:24px;height:24px;top:0;transform:translate(-50%);border-radius:50%;box-shadow:0 0 0 .1rem #646b7240}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
256
258
|
}
|
|
257
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
259
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsSliderComponent, decorators: [{
|
|
258
260
|
type: Component,
|
|
259
261
|
args: [{ selector: 'bs-slider', changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
260
262
|
'class': 'd-block position-relative',
|
|
@@ -273,10 +275,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImpor
|
|
|
273
275
|
}, template: "<div class=\"wrapper d-block position-relative\">\n <div #track class=\"track2\"\n (mousedown)=\"onPointerDown($event)\"\n (touchstart)=\"onPointerDown($event)\"\n (touchmove)=\"onPointerMove($event)\"\n (touchend)=\"onPointerUp($event)\">\n <ng-content select=\"[bsTrack]\"></ng-content>\n </div>\n <div #thumb\n (mousedown)=\"onPointerDown($event)\"\n (touchstart)=\"onPointerDown($event)\"\n (touchmove)=\"onPointerMove($event)\"\n (touchend)=\"onPointerUp($event)\"\n [class]=\"cursorClass()\"\n [style.left]=\"thumbLeft()\">\n <ng-content select=\"[bsThumb]\"></ng-content>\n </div>\n</div>\n", styles: [".track2{height:8px}.wrapper{padding-top:8px;padding-bottom:8px}:host ::ng-deep .track{height:8px;border-radius:8px}:host ::ng-deep .thumb{width:24px;height:24px;top:0;transform:translate(-50%);border-radius:50%;box-shadow:0 0 0 .1rem #646b7240}\n"] }]
|
|
274
276
|
}], propDecorators: { track: [{ type: i0.ViewChild, args: ['track', { isSignal: true }] }], thumb: [{ type: i0.ViewChild, args: ['thumb', { isSignal: true }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], valueScale: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueScale", required: false }] }], valueUnit: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueUnit", required: false }] }] } });
|
|
275
277
|
class BsThumbDirective {
|
|
276
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
277
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.
|
|
278
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsThumbDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
279
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsThumbDirective, isStandalone: true, selector: "[bsThumb]", host: { classAttribute: "thumb position-absolute" }, ngImport: i0 }); }
|
|
278
280
|
}
|
|
279
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
281
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsThumbDirective, decorators: [{
|
|
280
282
|
type: Directive,
|
|
281
283
|
args: [{
|
|
282
284
|
selector: '[bsThumb]',
|
|
@@ -286,10 +288,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImpor
|
|
|
286
288
|
}]
|
|
287
289
|
}] });
|
|
288
290
|
class BsTrackDirective {
|
|
289
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
290
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.
|
|
291
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTrackDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
292
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsTrackDirective, isStandalone: true, selector: "[bsTrack]", host: { classAttribute: "track" }, ngImport: i0 }); }
|
|
291
293
|
}
|
|
292
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
294
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTrackDirective, decorators: [{
|
|
293
295
|
type: Directive,
|
|
294
296
|
args: [{
|
|
295
297
|
selector: '[bsTrack]',
|
|
@@ -326,10 +328,10 @@ class BsAlphaStripComponent {
|
|
|
326
328
|
}, /* @ts-ignore */
|
|
327
329
|
...(ngDevMode ? [{ debugName: "resultBackground" }] : /* istanbul ignore next */ []));
|
|
328
330
|
}
|
|
329
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
330
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.
|
|
331
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsAlphaStripComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
332
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsAlphaStripComponent, isStandalone: true, selector: "bs-alpha-strip", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, hs: { classPropertyName: "hs", publicName: "hs", isSignal: true, isRequired: false, transformFunction: null }, brightness: { classPropertyName: "brightness", publicName: "brightness", isSignal: true, isRequired: false, transformFunction: null }, alpha: { classPropertyName: "alpha", publicName: "alpha", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { hs: "hsChange", brightness: "brightnessChange", alpha: "alphaChange" }, ngImport: i0, template: "<bs-slider [disabled]=\"disabled()\" [value]=\"alpha()\" (valueChange)=\"alpha.set($event)\" ariaLabel=\"Alpha\">\n <div bsTrack class=\"position-absolute w-100\" [style.background]=\"trackGradient()\"></div>\n <div bsThumb [style.background]=\"resultBackground()\"></div>\n</bs-slider>\n", styles: [".track{background-image:linear-gradient(45deg,#C0C0C0 25%,transparent 25%),linear-gradient(-45deg,#C0C0C0 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#C0C0C0 75%),linear-gradient(-45deg,transparent 75%,#C0C0C0 75%);background-size:10px 10px;background-position:0 0,0 5px,5px -5px,-5px 0px}\n"], dependencies: [{ kind: "component", type: BsSliderComponent, selector: "bs-slider", inputs: ["disabled", "value", "ariaLabel", "valueScale", "valueUnit"], outputs: ["valueChange"] }, { kind: "directive", type: BsThumbDirective, selector: "[bsThumb]" }, { kind: "directive", type: BsTrackDirective, selector: "[bsTrack]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
331
333
|
}
|
|
332
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
334
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsAlphaStripComponent, decorators: [{
|
|
333
335
|
type: Component,
|
|
334
336
|
args: [{ selector: 'bs-alpha-strip', imports: [BsSliderComponent, BsThumbDirective, BsTrackDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<bs-slider [disabled]=\"disabled()\" [value]=\"alpha()\" (valueChange)=\"alpha.set($event)\" ariaLabel=\"Alpha\">\n <div bsTrack class=\"position-absolute w-100\" [style.background]=\"trackGradient()\"></div>\n <div bsThumb [style.background]=\"resultBackground()\"></div>\n</bs-slider>\n", styles: [".track{background-image:linear-gradient(45deg,#C0C0C0 25%,transparent 25%),linear-gradient(-45deg,#C0C0C0 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#C0C0C0 75%),linear-gradient(-45deg,transparent 75%,#C0C0C0 75%);background-size:10px 10px;background-position:0 0,0 5px,5px -5px,-5px 0px}\n"] }]
|
|
335
337
|
}], propDecorators: { disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], hs: [{ type: i0.Input, args: [{ isSignal: true, alias: "hs", required: false }] }, { type: i0.Output, args: ["hsChange"] }], brightness: [{ type: i0.Input, args: [{ isSignal: true, alias: "brightness", required: false }] }, { type: i0.Output, args: ["brightnessChange"] }], alpha: [{ type: i0.Input, args: [{ isSignal: true, alias: "alpha", required: false }] }, { type: i0.Output, args: ["alphaChange"] }] } });
|
|
@@ -356,10 +358,10 @@ class BsBrightnessStripComponent {
|
|
|
356
358
|
}, /* @ts-ignore */
|
|
357
359
|
...(ngDevMode ? [{ debugName: "resultBackground" }] : /* istanbul ignore next */ []));
|
|
358
360
|
}
|
|
359
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
360
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.
|
|
361
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsBrightnessStripComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
362
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsBrightnessStripComponent, isStandalone: true, selector: "bs-brightness-strip", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, hs: { classPropertyName: "hs", publicName: "hs", isSignal: true, isRequired: false, transformFunction: null }, brightness: { classPropertyName: "brightness", publicName: "brightness", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { hs: "hsChange", brightness: "brightnessChange" }, ngImport: i0, template: "<bs-slider [disabled]=\"disabled()\" [value]=\"brightness()\" (valueChange)=\"brightness.set($event)\" ariaLabel=\"Brightness\">\n <div bsTrack class=\"position-absolute w-100\" [style.background]=\"trackGradient()\"></div>\n <div bsThumb [style.background]=\"resultBackground()\"></div>\n</bs-slider>\n", styles: [""], dependencies: [{ kind: "component", type: BsSliderComponent, selector: "bs-slider", inputs: ["disabled", "value", "ariaLabel", "valueScale", "valueUnit"], outputs: ["valueChange"] }, { kind: "directive", type: BsThumbDirective, selector: "[bsThumb]" }, { kind: "directive", type: BsTrackDirective, selector: "[bsTrack]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
361
363
|
}
|
|
362
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
364
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsBrightnessStripComponent, decorators: [{
|
|
363
365
|
type: Component,
|
|
364
366
|
args: [{ selector: 'bs-brightness-strip', imports: [BsSliderComponent, BsThumbDirective, BsTrackDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<bs-slider [disabled]=\"disabled()\" [value]=\"brightness()\" (valueChange)=\"brightness.set($event)\" ariaLabel=\"Brightness\">\n <div bsTrack class=\"position-absolute w-100\" [style.background]=\"trackGradient()\"></div>\n <div bsThumb [style.background]=\"resultBackground()\"></div>\n</bs-slider>\n" }]
|
|
365
367
|
}], propDecorators: { disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], hs: [{ type: i0.Input, args: [{ isSignal: true, alias: "hs", required: false }] }, { type: i0.Output, args: ["hsChange"] }], brightness: [{ type: i0.Input, args: [{ isSignal: true, alias: "brightness", required: false }] }, { type: i0.Output, args: ["brightnessChange"] }] } });
|
|
@@ -394,14 +396,14 @@ class BsColorPickerValueAccessor {
|
|
|
394
396
|
setDisabledState(isDisabled) {
|
|
395
397
|
this.host.disabled.set(isDisabled);
|
|
396
398
|
}
|
|
397
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
398
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.
|
|
399
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsColorPickerValueAccessor, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
400
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsColorPickerValueAccessor, isStandalone: true, selector: "bs-color-picker", providers: [{
|
|
399
401
|
provide: NG_VALUE_ACCESSOR,
|
|
400
402
|
useExisting: forwardRef(() => BsColorPickerValueAccessor),
|
|
401
403
|
multi: true
|
|
402
404
|
}], exportAs: ["bsColorPicker"], ngImport: i0 }); }
|
|
403
405
|
}
|
|
404
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
406
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsColorPickerValueAccessor, decorators: [{
|
|
405
407
|
type: Directive,
|
|
406
408
|
args: [{
|
|
407
409
|
selector: 'bs-color-picker',
|
|
@@ -416,7 +418,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImpor
|
|
|
416
418
|
|
|
417
419
|
class BsColorWheelComponent {
|
|
418
420
|
constructor() {
|
|
419
|
-
this.surface = viewChild.required('surface'
|
|
421
|
+
this.surface = viewChild.required('surface', /* @ts-ignore */
|
|
422
|
+
...(ngDevMode ? [{ debugName: "surface" }] : /* istanbul ignore next */ []));
|
|
420
423
|
this.width = model(150, /* @ts-ignore */
|
|
421
424
|
...(ngDevMode ? [{ debugName: "width" }] : /* istanbul ignore next */ []));
|
|
422
425
|
this.height = model(150, /* @ts-ignore */
|
|
@@ -542,10 +545,10 @@ class BsColorWheelComponent {
|
|
|
542
545
|
const hs = polar2hs(dx, dy, radius);
|
|
543
546
|
this.hs.set(hs);
|
|
544
547
|
}
|
|
545
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
546
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.
|
|
548
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsColorWheelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
549
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsColorWheelComponent, isStandalone: true, selector: "bs-color-wheel", inputs: { width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, brightness: { classPropertyName: "brightness", publicName: "brightness", isSignal: true, isRequired: false, transformFunction: null }, hs: { classPropertyName: "hs", publicName: "hs", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { width: "widthChange", height: "heightChange", brightness: "brightnessChange", hs: "hsChange" }, host: { attributes: { "role": "application" }, listeners: { "document:mousemove": "onPointerMove($event)", "document:mouseup": "onPointerUp($event)", "keydown": "onKeydown($event)" }, properties: { "attr.aria-label": "ariaLabel()", "attr.aria-valuetext": "ariaValueText()", "attr.aria-disabled": "disabled() ? \"true\" : null", "attr.tabindex": "disabled() ? -1 : 0" }, classAttribute: "position-relative" }, viewQueries: [{ propertyName: "surface", first: true, predicate: ["surface"], descendants: true, isSignal: true }], ngImport: i0, template: "<div [style.width.px]=\"width()\" [style.height.px]=\"height()\" class=\"position-relative\">\n <div class=\"wheel-surface position-absolute\"\n [style.left.px]=\"shiftX()\"\n [style.top.px]=\"shiftY()\"\n [style.width.px]=\"squareSize()\"\n [style.height.px]=\"squareSize()\"\n (mousedown)=\"onPointerDown($event)\"\n (touchstart)=\"onPointerDown($event)\"\n (touchmove)=\"onPointerMove($event)\"\n (touchend)=\"onPointerUp($event)\"\n #surface></div>\n\n <div class=\"brightness-overlay position-absolute pe-none\"\n [style.opacity]=\"overlayOpacity()\"\n [style.left.px]=\"shiftX()\"\n [style.top.px]=\"shiftY()\"\n [style.width.px]=\"squareSize()\"\n [style.height.px]=\"squareSize()\"></div>\n\n @if (markerPosition(); as markerPosition) {\n <div class=\"marker position-absolute pe-none\" [style.left.px]=\"markerPosition.x\" [style.top.px]=\"markerPosition.y\"></div>\n }\n</div>\n", styles: [".wheel-surface{border-radius:50%;background:radial-gradient(circle closest-side,#fff,transparent),conic-gradient(from 90deg,red,#ff0,#0f0,#0ff,#00f,#f0f,red);touch-action:none;cursor:crosshair}.brightness-overlay{background:#000;border-radius:50%;transition:opacity 60ms linear}.marker{width:30px;height:30px;border-radius:15px;margin-top:-15px;margin-left:-15px;box-sizing:border-box;border:2px solid var(--bs-body-bg);box-shadow:#0000001a 0 0 10px 5px;pointer-events:none}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
547
550
|
}
|
|
548
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
551
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsColorWheelComponent, decorators: [{
|
|
549
552
|
type: Component,
|
|
550
553
|
args: [{ selector: 'bs-color-wheel', changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
551
554
|
'class': 'position-relative',
|
|
@@ -589,10 +592,10 @@ class BsHueStripComponent {
|
|
|
589
592
|
onValueChange(v) {
|
|
590
593
|
this.hs.set({ ...this.hs(), hue: v * 360 });
|
|
591
594
|
}
|
|
592
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
593
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.
|
|
595
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsHueStripComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
596
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsHueStripComponent, isStandalone: true, selector: "bs-hue-strip", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, hs: { classPropertyName: "hs", publicName: "hs", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { hs: "hsChange" }, ngImport: i0, template: "<bs-slider [disabled]=\"disabled()\" [value]=\"normalizedHue()\" (valueChange)=\"onValueChange($event)\" ariaLabel=\"Hue\" [valueScale]=\"360\" valueUnit=\"\u00B0\">\n <div bsTrack class=\"position-absolute w-100\" [style.background]=\"trackGradient\"></div>\n <div bsThumb [style.background]=\"thumbBackground()\"></div>\n</bs-slider>\n", styles: [":host{display:block}\n"], dependencies: [{ kind: "component", type: BsSliderComponent, selector: "bs-slider", inputs: ["disabled", "value", "ariaLabel", "valueScale", "valueUnit"], outputs: ["valueChange"] }, { kind: "directive", type: BsThumbDirective, selector: "[bsThumb]" }, { kind: "directive", type: BsTrackDirective, selector: "[bsTrack]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
594
597
|
}
|
|
595
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
598
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsHueStripComponent, decorators: [{
|
|
596
599
|
type: Component,
|
|
597
600
|
args: [{ selector: 'bs-hue-strip', imports: [BsSliderComponent, BsThumbDirective, BsTrackDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<bs-slider [disabled]=\"disabled()\" [value]=\"normalizedHue()\" (valueChange)=\"onValueChange($event)\" ariaLabel=\"Hue\" [valueScale]=\"360\" valueUnit=\"\u00B0\">\n <div bsTrack class=\"position-absolute w-100\" [style.background]=\"trackGradient\"></div>\n <div bsThumb [style.background]=\"thumbBackground()\"></div>\n</bs-slider>\n", styles: [":host{display:block}\n"] }]
|
|
598
601
|
}], propDecorators: { disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], hs: [{ type: i0.Input, args: [{ isSignal: true, alias: "hs", required: false }] }, { type: i0.Output, args: ["hsChange"] }] } });
|
|
@@ -624,17 +627,18 @@ class BsSaturationStripComponent {
|
|
|
624
627
|
onValueChange(v) {
|
|
625
628
|
this.hs.set({ ...this.hs(), saturation: v });
|
|
626
629
|
}
|
|
627
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
628
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.
|
|
630
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsSaturationStripComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
631
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsSaturationStripComponent, isStandalone: true, selector: "bs-saturation-strip", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, hs: { classPropertyName: "hs", publicName: "hs", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { hs: "hsChange" }, ngImport: i0, template: "<bs-slider [disabled]=\"disabled()\" [value]=\"hs().saturation\" (valueChange)=\"onValueChange($event)\" ariaLabel=\"Saturation\">\n <div bsTrack class=\"position-absolute w-100\" [style.background]=\"trackGradient()\"></div>\n <div bsThumb [style.background]=\"thumbBackground()\"></div>\n</bs-slider>\n", styles: [":host{display:block}\n"], dependencies: [{ kind: "component", type: BsSliderComponent, selector: "bs-slider", inputs: ["disabled", "value", "ariaLabel", "valueScale", "valueUnit"], outputs: ["valueChange"] }, { kind: "directive", type: BsThumbDirective, selector: "[bsThumb]" }, { kind: "directive", type: BsTrackDirective, selector: "[bsTrack]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
629
632
|
}
|
|
630
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
633
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsSaturationStripComponent, decorators: [{
|
|
631
634
|
type: Component,
|
|
632
635
|
args: [{ selector: 'bs-saturation-strip', imports: [BsSliderComponent, BsThumbDirective, BsTrackDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<bs-slider [disabled]=\"disabled()\" [value]=\"hs().saturation\" (valueChange)=\"onValueChange($event)\" ariaLabel=\"Saturation\">\n <div bsTrack class=\"position-absolute w-100\" [style.background]=\"trackGradient()\"></div>\n <div bsThumb [style.background]=\"thumbBackground()\"></div>\n</bs-slider>\n", styles: [":host{display:block}\n"] }]
|
|
633
636
|
}], propDecorators: { disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], hs: [{ type: i0.Input, args: [{ isSignal: true, alias: "hs", required: false }] }, { type: i0.Output, args: ["hsChange"] }] } });
|
|
634
637
|
|
|
635
638
|
class BsColorPickerComponent {
|
|
636
639
|
constructor() {
|
|
637
|
-
this.colorWheel = viewChild.required('wheel'
|
|
640
|
+
this.colorWheel = viewChild.required('wheel', /* @ts-ignore */
|
|
641
|
+
...(ngDevMode ? [{ debugName: "colorWheel" }] : /* istanbul ignore next */ []));
|
|
638
642
|
this.size = input(150, /* @ts-ignore */
|
|
639
643
|
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
640
644
|
this.disabled = signal(false, /* @ts-ignore */
|
|
@@ -679,10 +683,10 @@ class BsColorPickerComponent {
|
|
|
679
683
|
this.alpha.set(alpha);
|
|
680
684
|
this.userChanged.next();
|
|
681
685
|
}
|
|
682
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
683
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.
|
|
686
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsColorPickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
687
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsColorPickerComponent, isStandalone: true, selector: "bs-color-picker", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, allowAlpha: { classPropertyName: "allowAlpha", publicName: "allowAlpha", isSignal: true, isRequired: false, transformFunction: null }, showAccessibilityToggle: { classPropertyName: "showAccessibilityToggle", publicName: "showAccessibilityToggle", isSignal: true, isRequired: false, transformFunction: null }, channelSlidersVisible: { classPropertyName: "channelSlidersVisible", publicName: "channelSlidersVisible", isSignal: true, isRequired: false, transformFunction: null }, alpha: { classPropertyName: "alpha", publicName: "alpha", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { channelSlidersVisible: "channelSlidersVisibleChange", alpha: "alphaChange" }, viewQueries: [{ propertyName: "colorWheel", first: true, predicate: ["wheel"], descendants: true, isSignal: true }], hostDirectives: [{ directive: BsColorPickerValueAccessor }], ngImport: i0, template: "@let letDisabled = disabled();\n@let letHS = hs();\n@let letBrightness = brightness();\n@let letAlpha = alpha();\n\n<bs-color-wheel [disabled]=\"letDisabled\" [hs]=\"letHS\" (hsChange)=\"onUserHsChange($event)\" [brightness]=\"letBrightness\" [width]=\"size()\" [height]=\"size()\" #wheel></bs-color-wheel>\n<bs-brightness-strip [disabled]=\"letDisabled\" [hs]=\"letHS\" [brightness]=\"letBrightness\" (brightnessChange)=\"onUserBrightnessChange($event)\" class=\"d-block mt-2\" [style.width.px]=\"size()\" #strip></bs-brightness-strip>\n@if (allowAlpha()) {\n <bs-alpha-strip [disabled]=\"letDisabled\" [hs]=\"letHS\" [brightness]=\"letBrightness\" [alpha]=\"letAlpha\" (alphaChange)=\"onUserAlphaChange($event)\" class=\"d-block mt-2\" [style.width.px]=\"size()\" #alphaStrip></bs-alpha-strip>\n}\n@if (showAccessibilityToggle()) {\n <bs-checkbox class=\"mt-2 d-block\" type=\"switch\" [(ngModel)]=\"channelSlidersVisible\" [style.width.px]=\"size()\">Show hue + saturation sliders</bs-checkbox>\n @if (channelSlidersVisible()) {\n <bs-hue-strip [disabled]=\"letDisabled\" [hs]=\"letHS\" (hsChange)=\"onUserHsChange($event)\" class=\"d-block mt-2\" [style.width.px]=\"size()\"></bs-hue-strip>\n <bs-saturation-strip [disabled]=\"letDisabled\" [hs]=\"letHS\" (hsChange)=\"onUserHsChange($event)\" class=\"d-block mt-2\" [style.width.px]=\"size()\"></bs-saturation-strip>\n }\n}\n", styles: [""], dependencies: [{ kind: "component", type: BsColorWheelComponent, selector: "bs-color-wheel", inputs: ["width", "height", "brightness", "hs", "disabled", "ariaLabel"], outputs: ["widthChange", "heightChange", "brightnessChange", "hsChange"] }, { kind: "component", type: BsBrightnessStripComponent, selector: "bs-brightness-strip", inputs: ["disabled", "hs", "brightness"], outputs: ["hsChange", "brightnessChange"] }, { kind: "component", type: BsAlphaStripComponent, selector: "bs-alpha-strip", inputs: ["disabled", "hs", "brightness", "alpha"], outputs: ["hsChange", "brightnessChange", "alphaChange"] }, { kind: "component", type: BsHueStripComponent, selector: "bs-hue-strip", inputs: ["disabled", "hs"], outputs: ["hsChange"] }, { kind: "component", type: BsSaturationStripComponent, selector: "bs-saturation-strip", inputs: ["disabled", "hs"], outputs: ["hsChange"] }, { kind: "component", type: BsCheckboxComponent, selector: "bs-checkbox", inputs: ["type", "isToggled", "indeterminate", "name", "value", "group"], outputs: ["isToggledChange", "indeterminateChange"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
684
688
|
}
|
|
685
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
689
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsColorPickerComponent, decorators: [{
|
|
686
690
|
type: Component,
|
|
687
691
|
args: [{ selector: 'bs-color-picker', imports: [
|
|
688
692
|
BsColorWheelComponent,
|