@mintplayer/ng-bootstrap 22.31.0 → 22.32.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (148) hide show
  1. package/README.md +12 -11
  2. package/_bootstrap.scss +2 -4
  3. package/a11y/forms/package.json +4 -0
  4. package/fesm2022/mintplayer-ng-bootstrap-a11y-forms.mjs +120 -0
  5. package/fesm2022/mintplayer-ng-bootstrap-a11y-forms.mjs.map +1 -0
  6. package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs +2 -109
  7. package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs.map +1 -1
  8. package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs +3 -1
  9. package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs.map +1 -1
  10. package/fesm2022/mintplayer-ng-bootstrap-alert.mjs +7 -3
  11. package/fesm2022/mintplayer-ng-bootstrap-alert.mjs.map +1 -1
  12. package/fesm2022/mintplayer-ng-bootstrap-badge.mjs +7 -3
  13. package/fesm2022/mintplayer-ng-bootstrap-badge.mjs.map +1 -1
  14. package/fesm2022/mintplayer-ng-bootstrap-breadcrumb.mjs +12 -5
  15. package/fesm2022/mintplayer-ng-bootstrap-breadcrumb.mjs.map +1 -1
  16. package/fesm2022/mintplayer-ng-bootstrap-button-group.mjs +7 -3
  17. package/fesm2022/mintplayer-ng-bootstrap-button-group.mjs.map +1 -1
  18. package/fesm2022/mintplayer-ng-bootstrap-card.mjs +74 -83
  19. package/fesm2022/mintplayer-ng-bootstrap-card.mjs.map +1 -1
  20. package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs +3 -0
  21. package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs.map +1 -1
  22. package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs +9 -5
  23. package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs.map +1 -1
  24. package/fesm2022/mintplayer-ng-bootstrap-close.mjs +7 -3
  25. package/fesm2022/mintplayer-ng-bootstrap-close.mjs.map +1 -1
  26. package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs +4 -0
  27. package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs.map +1 -1
  28. package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs +4 -2
  29. package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs.map +1 -1
  30. package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs +4 -2
  31. package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs.map +1 -1
  32. package/fesm2022/mintplayer-ng-bootstrap-dropdown-divider.mjs +9 -2
  33. package/fesm2022/mintplayer-ng-bootstrap-dropdown-divider.mjs.map +1 -1
  34. package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs +12 -4
  35. package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs.map +1 -1
  36. package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs +2 -0
  37. package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs.map +1 -1
  38. package/fesm2022/mintplayer-ng-bootstrap-file-upload.mjs +1 -1
  39. package/fesm2022/mintplayer-ng-bootstrap-file-upload.mjs.map +1 -1
  40. package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs +6 -2
  41. package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs.map +1 -1
  42. package/fesm2022/mintplayer-ng-bootstrap-for.mjs +8 -4
  43. package/fesm2022/mintplayer-ng-bootstrap-for.mjs.map +1 -1
  44. package/fesm2022/mintplayer-ng-bootstrap-form.mjs +7 -2
  45. package/fesm2022/mintplayer-ng-bootstrap-form.mjs.map +1 -1
  46. package/fesm2022/mintplayer-ng-bootstrap-grid.mjs +40 -12
  47. package/fesm2022/mintplayer-ng-bootstrap-grid.mjs.map +1 -1
  48. package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs +3 -1
  49. package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs.map +1 -1
  50. package/fesm2022/mintplayer-ng-bootstrap-list-group.mjs +23 -6
  51. package/fesm2022/mintplayer-ng-bootstrap-list-group.mjs.map +1 -1
  52. package/fesm2022/mintplayer-ng-bootstrap-machine.mjs +16 -4
  53. package/fesm2022/mintplayer-ng-bootstrap-machine.mjs.map +1 -1
  54. package/fesm2022/mintplayer-ng-bootstrap-modal.mjs +23 -7
  55. package/fesm2022/mintplayer-ng-bootstrap-modal.mjs.map +1 -1
  56. package/fesm2022/mintplayer-ng-bootstrap-nav.mjs +93 -0
  57. package/fesm2022/mintplayer-ng-bootstrap-nav.mjs.map +1 -0
  58. package/fesm2022/mintplayer-ng-bootstrap-navbar-toggler.mjs +7 -3
  59. package/fesm2022/mintplayer-ng-bootstrap-navbar-toggler.mjs.map +1 -1
  60. package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs +43 -1
  61. package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs.map +1 -1
  62. package/fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs +15 -6
  63. package/fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs.map +1 -1
  64. package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs +4 -2
  65. package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs.map +1 -1
  66. package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs +7 -4
  67. package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs.map +1 -1
  68. package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs +4 -2
  69. package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs.map +1 -1
  70. package/fesm2022/mintplayer-ng-bootstrap-placeholder.mjs +22 -16
  71. package/fesm2022/mintplayer-ng-bootstrap-placeholder.mjs.map +1 -1
  72. package/fesm2022/mintplayer-ng-bootstrap-popover.mjs +22 -7
  73. package/fesm2022/mintplayer-ng-bootstrap-popover.mjs.map +1 -1
  74. package/fesm2022/mintplayer-ng-bootstrap-progress-bar.mjs +13 -6
  75. package/fesm2022/mintplayer-ng-bootstrap-progress-bar.mjs.map +1 -1
  76. package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs +4 -0
  77. package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs.map +1 -1
  78. package/fesm2022/mintplayer-ng-bootstrap-radio.mjs +9 -5
  79. package/fesm2022/mintplayer-ng-bootstrap-radio.mjs.map +1 -1
  80. package/fesm2022/mintplayer-ng-bootstrap-range.mjs +7 -3
  81. package/fesm2022/mintplayer-ng-bootstrap-range.mjs.map +1 -1
  82. package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs +2 -0
  83. package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs.map +1 -1
  84. package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs +19 -9
  85. package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs.map +1 -1
  86. package/fesm2022/mintplayer-ng-bootstrap-select.mjs +4 -2
  87. package/fesm2022/mintplayer-ng-bootstrap-select.mjs.map +1 -1
  88. package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs +4 -2
  89. package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs.map +1 -1
  90. package/fesm2022/mintplayer-ng-bootstrap-spinner.mjs +25 -11
  91. package/fesm2022/mintplayer-ng-bootstrap-spinner.mjs.map +1 -1
  92. package/fesm2022/mintplayer-ng-bootstrap-sticky-footer.mjs +14 -4
  93. package/fesm2022/mintplayer-ng-bootstrap-sticky-footer.mjs.map +1 -1
  94. package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs +3 -1
  95. package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs.map +1 -1
  96. package/fesm2022/mintplayer-ng-bootstrap-table.mjs +9 -14
  97. package/fesm2022/mintplayer-ng-bootstrap-table.mjs.map +1 -1
  98. package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs +5 -2
  99. package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs.map +1 -1
  100. package/fesm2022/mintplayer-ng-bootstrap-toast.mjs +23 -8
  101. package/fesm2022/mintplayer-ng-bootstrap-toast.mjs.map +1 -1
  102. package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs +7 -3
  103. package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs.map +1 -1
  104. package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs +4 -1
  105. package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs.map +1 -1
  106. package/nav/package.json +4 -0
  107. package/package.json +11 -8
  108. package/types/mintplayer-ng-bootstrap-a11y-forms.d.ts +64 -0
  109. package/types/mintplayer-ng-bootstrap-a11y.d.ts +2 -62
  110. package/types/mintplayer-ng-bootstrap-alert.d.ts +1 -0
  111. package/types/mintplayer-ng-bootstrap-badge.d.ts +1 -0
  112. package/types/mintplayer-ng-bootstrap-breadcrumb.d.ts +2 -0
  113. package/types/mintplayer-ng-bootstrap-button-group.d.ts +1 -0
  114. package/types/mintplayer-ng-bootstrap-card.d.ts +14 -3
  115. package/types/mintplayer-ng-bootstrap-checkbox.d.ts +1 -1
  116. package/types/mintplayer-ng-bootstrap-close.d.ts +1 -0
  117. package/types/mintplayer-ng-bootstrap-datepicker.d.ts +1 -1
  118. package/types/mintplayer-ng-bootstrap-datetime-picker.d.ts +1 -1
  119. package/types/mintplayer-ng-bootstrap-dropdown-divider.d.ts +1 -0
  120. package/types/mintplayer-ng-bootstrap-for.d.ts +5 -5
  121. package/types/mintplayer-ng-bootstrap-form.d.ts +1 -0
  122. package/types/mintplayer-ng-bootstrap-grid.d.ts +14 -0
  123. package/types/mintplayer-ng-bootstrap-list-group.d.ts +15 -8
  124. package/types/mintplayer-ng-bootstrap-machine.d.ts +13 -2
  125. package/types/mintplayer-ng-bootstrap-modal.d.ts +2 -0
  126. package/types/mintplayer-ng-bootstrap-nav.d.ts +52 -0
  127. package/types/mintplayer-ng-bootstrap-navbar-toggler.d.ts +1 -0
  128. package/types/mintplayer-ng-bootstrap-navbar.d.ts +17 -1
  129. package/types/mintplayer-ng-bootstrap-otp-input.d.ts +1 -1
  130. package/types/mintplayer-ng-bootstrap-pagination.d.ts +1 -0
  131. package/types/mintplayer-ng-bootstrap-phone-input.d.ts +1 -1
  132. package/types/mintplayer-ng-bootstrap-placeholder.d.ts +10 -10
  133. package/types/mintplayer-ng-bootstrap-popover.d.ts +3 -0
  134. package/types/mintplayer-ng-bootstrap-progress-bar.d.ts +2 -0
  135. package/types/mintplayer-ng-bootstrap-radio.d.ts +1 -1
  136. package/types/mintplayer-ng-bootstrap-range.d.ts +1 -0
  137. package/types/mintplayer-ng-bootstrap-scrollspy.d.ts +1 -0
  138. package/types/mintplayer-ng-bootstrap-select.d.ts +1 -1
  139. package/types/mintplayer-ng-bootstrap-signature-pad.d.ts +1 -1
  140. package/types/mintplayer-ng-bootstrap-spinner.d.ts +14 -7
  141. package/types/mintplayer-ng-bootstrap-sticky-footer.d.ts +7 -1
  142. package/types/mintplayer-ng-bootstrap-table.d.ts +2 -6
  143. package/types/mintplayer-ng-bootstrap-timepicker.d.ts +1 -1
  144. package/types/mintplayer-ng-bootstrap-toast.d.ts +2 -0
  145. package/container/package.json +0 -4
  146. package/fesm2022/mintplayer-ng-bootstrap-container.mjs +0 -18
  147. package/fesm2022/mintplayer-ng-bootstrap-container.mjs.map +0 -1
  148. package/types/mintplayer-ng-bootstrap-container.d.ts +0 -8
@@ -1 +1 @@
1
- {"version":3,"file":"mintplayer-ng-bootstrap-signature-pad.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/signature-pad/src/value-accessor/signature-pad-value-accessor.ts","../../../../libs/mintplayer-ng-bootstrap/signature-pad/src/signature-pad.angular.ts","../../../../libs/mintplayer-ng-bootstrap/signature-pad/src/generated/signature-pad.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/signature-pad/src/generated/signature-pad.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/signature-pad/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/signature-pad/mintplayer-ng-bootstrap-signature-pad.ts"],"sourcesContent":["import { DestroyRef, Directive, Injector, OnInit, forwardRef, inject, signal } from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { emptySignature, type Signature } from '@mintplayer/ui-core/signature-pad';\nimport { BsSignaturePadComponent } from '../generated';\n\n/**\n * The `ControlValueAccessor` of `bs-signature-pad` (a host directive of the\n * generated component, see `signature-pad.angular.ts`), so `ngModel`,\n * `formControl` and `formControlName` work without an extra import. A bound\n * form control drives the signature through `viewValue`; what the user draws\n * or types reaches the form through the component's `signature` model, which a\n * form write never echoes.\n */\n@Directive({\n providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => BsSignaturePadValueAccessor), multi: true }],\n host: {\n '(focusout)': 'onTouched()',\n },\n})\nexport class BsSignaturePadValueAccessor implements ControlValueAccessor, OnInit {\n private readonly injector = inject(Injector);\n private readonly destroyRef = inject(DestroyRef);\n\n /** A form control drives the signature: its `viewValue` wins over the `signature` input. */\n readonly bound = signal(false);\n readonly viewValue = signal<Signature>(emptySignature());\n readonly disabled = signal(false);\n\n private onChange: (value: Signature) => void = () => undefined;\n onTouched: () => void = () => undefined;\n\n ngOnInit(): void {\n // The component is created after its host directives, so it is looked up here.\n const component = this.injector.get(BsSignaturePadComponent);\n const sub = component.signaturechange.subscribe((value) => {\n if (!this.bound() || value === this.viewValue()) return;\n this.viewValue.set(value);\n this.onChange(value);\n });\n this.destroyRef.onDestroy(() => sub.unsubscribe());\n }\n\n registerOnChange(fn: (value: Signature) => void): void {\n this.bound.set(true);\n this.onChange = fn;\n }\n\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn;\n }\n\n writeValue(value: Signature | null | undefined): void {\n this.viewValue.set(value ?? emptySignature());\n }\n\n setDisabledState(isDisabled: boolean): void {\n this.disabled.set(isDisabled);\n }\n}\n","import { computed, inject } from '@angular/core';\nimport { BsControlValidityDirective } from '@mintplayer/ng-bootstrap/a11y';\nimport type { SignaturePadInputs } from '@mintplayer/ui-core/signature-pad';\nimport { BsSignaturePadValueAccessor } from './value-accessor/signature-pad-value-accessor';\n\n/*\n * The Angular extension of the generated `bs-signature-pad` (PRD #437 D10\n * escape hatch): Angular forms. A bound form control drives the signature and\n * the disabled state, and its validity reaches the typed field's ARIA and the\n * message under the pad.\n */\n\nexport const hostDirectives = [\n BsSignaturePadValueAccessor,\n { directive: BsControlValidityDirective, inputs: ['errorMessages'] },\n];\n\nexport function extendInputs(inputs: () => SignaturePadInputs): () => SignaturePadInputs {\n const accessor = inject(BsSignaturePadValueAccessor, { self: true });\n const validity = inject(BsControlValidityDirective, { self: true });\n return computed<SignaturePadInputs>(() => {\n const value = inputs();\n return {\n ...value,\n signature: accessor.bound() ? accessor.viewValue() : value.signature,\n disabled: value.disabled || accessor.disabled(),\n invalid: value.invalid || validity.invalid(),\n required: value.required || validity.required(),\n errorText: value.errorText ?? validity.errorText(),\n };\n });\n}\n","// GENERATED from the signature-pad manifest (signature-pad) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, booleanAttribute, inject, input, model, numberAttribute, output } from '@angular/core';\nimport { MpPropsDirective, useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { type Signature, signaturePadCore, type SignaturePadInputs, type SignaturePadMethods, signaturePadScopedStyles } from '@mintplayer/ui-core/signature-pad';\nimport { hostDirectives as ext_hostDirectives, extendInputs as ext_extendInputs } from '../signature-pad.angular';\n\n/**\n * Freehand signature capture with a typed alternative (#437).\n *\n * Drawing is pointer-only; the typed field under the canvas is the keyboard path, painted onto\n * the canvas in a script font and stored on `Signature.text`. With JavaScript off the pad renders\n * inert: the canvas cannot draw, so the field and the buttons are disabled until it hydrates.\n */\n@Component({\n selector: 'bs-signature-pad',\n templateUrl: './signature-pad.view.generated.html',\n imports: [MpPropsDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: ext_hostDirectives,\n})\nexport class BsSignaturePadComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly signature = model<SignaturePadInputs['signature']>({ strokes: [] });\n readonly width = input<SignaturePadInputs['width'], unknown>(500, { transform: (v: unknown) => numberAttribute(v) as SignaturePadInputs['width'] });\n readonly height = input<SignaturePadInputs['height'], unknown>(300, { transform: (v: unknown) => numberAttribute(v) as SignaturePadInputs['height'] });\n readonly showAccessibilityToggle = input<SignaturePadInputs['showAccessibilityToggle'], unknown>(true, { transform: booleanAttribute });\n readonly disabled = input<SignaturePadInputs['disabled'], unknown>(false, { transform: booleanAttribute });\n readonly required = input<SignaturePadInputs['required'], unknown>(false, { transform: booleanAttribute });\n readonly invalid = input<SignaturePadInputs['invalid'], unknown>(false, { transform: booleanAttribute });\n readonly errorText = input<SignaturePadInputs['errorText']>(null);\n readonly inputLabel = input<SignaturePadInputs['inputLabel']>(null);\n readonly labels = input<SignaturePadInputs['labels']>(null);\n /** Every stroke point, typed character, undo and clear: the current signature. */\n readonly signaturechange = output<Signature>();\n\n readonly #core = useCore(signaturePadCore, { inputs: ext_extendInputs(() => ({ signature: this.signature(), width: this.width(), height: this.height(), showAccessibilityToggle: this.showAccessibilityToggle(), disabled: this.disabled(), required: this.required(), invalid: this.invalid(), errorText: this.errorText(), inputLabel: this.inputLabel(), labels: this.labels() })), idPrefix: 'bs-signature-pad', outputs: { signatureChange: this.signaturechange }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'signature-pad' }), models: { signature: this.signature } });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles('signature-pad', signaturePadScopedStyles);\n }\n\n /** Remove the most recent stroke (ignored when disabled). */\n undo(...args: Parameters<SignaturePadMethods['undo']>): ReturnType<SignaturePadMethods['undo']> {\n return this.#core.call('undo', args) as ReturnType<SignaturePadMethods['undo']>;\n }\n\n /** Wipe the strokes and the typed text (ignored when disabled). */\n clear(...args: Parameters<SignaturePadMethods['clear']>): ReturnType<SignaturePadMethods['clear']> {\n return this.#core.call('clear', args) as ReturnType<SignaturePadMethods['clear']>;\n }\n\n /** Move focus to the typed field. */\n focusInput(...args: Parameters<SignaturePadMethods['focusInput']>): ReturnType<SignaturePadMethods['focusInput']> {\n return this.#core.call('focusInput', args) as ReturnType<SignaturePadMethods['focusInput']>;\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/signature-pad/src/templates/signature-pad.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<canvas data-mps=\"signature-pad\" [mpProps]=\"p_view.canvas\"></canvas>\n<div data-mps=\"signature-pad\" [mpProps]=\"p_view.controls\">\n @if (p_view.typed) {\n <input data-mps=\"signature-pad\" [mpProps]=\"p_view.typed\">\n }\n <button data-mps=\"signature-pad\" [mpProps]=\"p_view.undo\">\n {{ p_view.undoText }}\n </button>\n <button data-mps=\"signature-pad\" [mpProps]=\"p_view.clear\">\n {{ p_view.clearText }}\n </button>\n</div>\n@if (p_view.showFeedback) {\n <div data-mps=\"signature-pad\" [mpProps]=\"p_view.feedback.attrs\">\n {{ p_view.feedback.text }}\n </div>\n}\n","// GENERATED from the signature-pad manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsSignaturePadComponent } from './signature-pad.component.generated';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["ext_extendInputs","i1.BsSignaturePadValueAccessor","ext_hostDirectives"],"mappings":";;;;;;;;AAKA;;;;;;;AAOG;MAOU,2BAA2B,CAAA;AANxC,IAAA,WAAA,GAAA;AAOmB,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;AAC3B,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;;QAGvC,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,KAAK;kFAAC;AACrB,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAY,cAAc,EAAE;sFAAC;QAC/C,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,KAAK;qFAAC;AAEzB,QAAA,IAAA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;kBAPnC,SAAS;+BACE,kBAAkB,EAAA,OAAA,EAEnB,CAAC,gBAAgB,CAAC,mBACV,uBAAuB,CAAC,MAAM,EAAA,cAAA,EAC/BC,cAAkB,EAAA,QAAA,EAAA,8wBAAA,EAAA;;;AElBpC;;ACAA;;AAEG;;;;"}
1
+ {"version":3,"file":"mintplayer-ng-bootstrap-signature-pad.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/signature-pad/src/value-accessor/signature-pad-value-accessor.ts","../../../../libs/mintplayer-ng-bootstrap/signature-pad/src/signature-pad.angular.ts","../../../../libs/mintplayer-ng-bootstrap/signature-pad/src/generated/signature-pad.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/signature-pad/src/generated/signature-pad.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/signature-pad/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/signature-pad/mintplayer-ng-bootstrap-signature-pad.ts"],"sourcesContent":["import { DestroyRef, Directive, Injector, OnInit, forwardRef, inject, signal } from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { emptySignature, type Signature } from '@mintplayer/ui-core/signature-pad';\nimport { BsSignaturePadComponent } from '../generated';\n\n/**\n * The `ControlValueAccessor` of `bs-signature-pad` (a host directive of the\n * generated component, see `signature-pad.angular.ts`), so `ngModel`,\n * `formControl` and `formControlName` work without an extra import. A bound\n * form control drives the signature through `viewValue`; what the user draws\n * or types reaches the form through the component's `signature` model, which a\n * form write never echoes.\n */\n@Directive({\n providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => BsSignaturePadValueAccessor), multi: true }],\n host: {\n '(focusout)': 'onTouched()',\n },\n})\nexport class BsSignaturePadValueAccessor implements ControlValueAccessor, OnInit {\n private readonly injector = inject(Injector);\n private readonly destroyRef = inject(DestroyRef);\n\n /** A form control drives the signature: its `viewValue` wins over the `signature` input. */\n readonly bound = signal(false);\n readonly viewValue = signal<Signature>(emptySignature());\n readonly disabled = signal(false);\n\n private onChange: (value: Signature) => void = () => undefined;\n onTouched: () => void = () => undefined;\n\n ngOnInit(): void {\n // The component is created after its host directives, so it is looked up here.\n const component = this.injector.get(BsSignaturePadComponent);\n const sub = component.signaturechange.subscribe((value) => {\n if (!this.bound() || value === this.viewValue()) return;\n this.viewValue.set(value);\n this.onChange(value);\n });\n this.destroyRef.onDestroy(() => sub.unsubscribe());\n }\n\n registerOnChange(fn: (value: Signature) => void): void {\n this.bound.set(true);\n this.onChange = fn;\n }\n\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn;\n }\n\n writeValue(value: Signature | null | undefined): void {\n this.viewValue.set(value ?? emptySignature());\n }\n\n setDisabledState(isDisabled: boolean): void {\n this.disabled.set(isDisabled);\n }\n}\n","import { computed, inject } from '@angular/core';\nimport { BsControlValidityDirective } from '@mintplayer/ng-bootstrap/a11y/forms';\nimport type { SignaturePadInputs } from '@mintplayer/ui-core/signature-pad';\nimport { BsSignaturePadValueAccessor } from './value-accessor/signature-pad-value-accessor';\n\n/*\n * The Angular extension of the generated `bs-signature-pad` (PRD #437 D10\n * escape hatch): Angular forms. A bound form control drives the signature and\n * the disabled state, and its validity reaches the typed field's ARIA and the\n * message under the pad.\n */\n\nexport const hostDirectives = [\n BsSignaturePadValueAccessor,\n { directive: BsControlValidityDirective, inputs: ['errorMessages'] },\n];\n\nexport function extendInputs(inputs: () => SignaturePadInputs): () => SignaturePadInputs {\n const accessor = inject(BsSignaturePadValueAccessor, { self: true });\n const validity = inject(BsControlValidityDirective, { self: true });\n return computed<SignaturePadInputs>(() => {\n const value = inputs();\n return {\n ...value,\n signature: accessor.bound() ? accessor.viewValue() : value.signature,\n disabled: value.disabled || accessor.disabled(),\n invalid: value.invalid || validity.invalid(),\n required: value.required || validity.required(),\n errorText: value.errorText ?? validity.errorText(),\n };\n });\n}\n","// GENERATED from the signature-pad manifest (signature-pad) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, booleanAttribute, inject, input, model, numberAttribute, output } from '@angular/core';\nimport { MpPropsDirective, useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { type Signature, signaturePadCore, type SignaturePadInputs, type SignaturePadMethods, signaturePadScopedStyles } from '@mintplayer/ui-core/signature-pad';\nimport { bootstrapForms } from '@mintplayer/ui-core/bootstrap/forms';\nimport { hostDirectives as ext_hostDirectives, extendInputs as ext_extendInputs } from '../signature-pad.angular';\n\n/**\n * Freehand signature capture with a typed alternative (#437).\n *\n * Drawing is pointer-only; the typed field under the canvas is the keyboard path, painted onto\n * the canvas in a script font and stored on `Signature.text`. With JavaScript off the pad renders\n * inert: the canvas cannot draw, so the field and the buttons are disabled until it hydrates.\n */\n@Component({\n selector: 'bs-signature-pad',\n templateUrl: './signature-pad.view.generated.html',\n imports: [MpPropsDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: ext_hostDirectives,\n})\nexport class BsSignaturePadComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly signature = model<SignaturePadInputs['signature']>({ strokes: [] });\n readonly width = input<SignaturePadInputs['width'], unknown>(500, { transform: (v: unknown) => numberAttribute(v) as SignaturePadInputs['width'] });\n readonly height = input<SignaturePadInputs['height'], unknown>(300, { transform: (v: unknown) => numberAttribute(v) as SignaturePadInputs['height'] });\n readonly showAccessibilityToggle = input<SignaturePadInputs['showAccessibilityToggle'], unknown>(true, { transform: booleanAttribute });\n readonly disabled = input<SignaturePadInputs['disabled'], unknown>(false, { transform: booleanAttribute });\n readonly required = input<SignaturePadInputs['required'], unknown>(false, { transform: booleanAttribute });\n readonly invalid = input<SignaturePadInputs['invalid'], unknown>(false, { transform: booleanAttribute });\n readonly errorText = input<SignaturePadInputs['errorText']>(null);\n readonly inputLabel = input<SignaturePadInputs['inputLabel']>(null);\n readonly labels = input<SignaturePadInputs['labels']>(null);\n /** Every stroke point, typed character, undo and clear: the current signature. */\n readonly signaturechange = output<Signature>();\n\n readonly #core = useCore(signaturePadCore, { inputs: ext_extendInputs(() => ({ signature: this.signature(), width: this.width(), height: this.height(), showAccessibilityToggle: this.showAccessibilityToggle(), disabled: this.disabled(), required: this.required(), invalid: this.invalid(), errorText: this.errorText(), inputLabel: this.inputLabel(), labels: this.labels() })), idPrefix: 'bs-signature-pad', outputs: { signatureChange: this.signaturechange }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'signature-pad' }), models: { signature: this.signature } });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles(bootstrapForms.key, bootstrapForms.css, { order: bootstrapForms.order }); useScopedStyles('signature-pad', signaturePadScopedStyles);\n }\n\n /** Remove the most recent stroke (ignored when disabled). */\n undo(...args: Parameters<SignaturePadMethods['undo']>): ReturnType<SignaturePadMethods['undo']> {\n return this.#core.call('undo', args) as ReturnType<SignaturePadMethods['undo']>;\n }\n\n /** Wipe the strokes and the typed text (ignored when disabled). */\n clear(...args: Parameters<SignaturePadMethods['clear']>): ReturnType<SignaturePadMethods['clear']> {\n return this.#core.call('clear', args) as ReturnType<SignaturePadMethods['clear']>;\n }\n\n /** Move focus to the typed field. */\n focusInput(...args: Parameters<SignaturePadMethods['focusInput']>): ReturnType<SignaturePadMethods['focusInput']> {\n return this.#core.call('focusInput', args) as ReturnType<SignaturePadMethods['focusInput']>;\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/signature-pad/src/templates/signature-pad.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<canvas data-mps=\"signature-pad\" [mpProps]=\"p_view.canvas\"></canvas>\n<div data-mps=\"signature-pad\" [mpProps]=\"p_view.controls\">\n @if (p_view.typed) {\n <input data-mps=\"signature-pad\" [mpProps]=\"p_view.typed\">\n }\n <button data-mps=\"signature-pad\" [mpProps]=\"p_view.undo\">\n {{ p_view.undoText }}\n </button>\n <button data-mps=\"signature-pad\" [mpProps]=\"p_view.clear\">\n {{ p_view.clearText }}\n </button>\n</div>\n@if (p_view.showFeedback) {\n <div data-mps=\"signature-pad\" [mpProps]=\"p_view.feedback.attrs\">\n {{ p_view.feedback.text }}\n </div>\n}\n","// GENERATED from the signature-pad manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsSignaturePadComponent } from './signature-pad.component.generated';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["ext_extendInputs","i1.BsSignaturePadValueAccessor","ext_hostDirectives"],"mappings":";;;;;;;;;AAKA;;;;;;;AAOG;MAOU,2BAA2B,CAAA;AANxC,IAAA,WAAA,GAAA;AAOmB,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;AAC3B,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;;QAGvC,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,KAAK;kFAAC;AACrB,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAY,cAAc,EAAE;sFAAC;QAC/C,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,KAAK;qFAAC;AAEzB,QAAA,IAAA,CAAA,QAAQ,GAA+B,MAAM,SAAS;AAC9D,QAAA,IAAA,CAAA,SAAS,GAAe,MAAM,SAAS;AA6BxC,IAAA;IA3BC,QAAQ,GAAA;;QAEN,MAAM,SAAS,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,uBAAuB,CAAC;QAC5D,MAAM,GAAG,GAAG,SAAS,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC,KAAK,KAAI;YACxD,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,KAAK,KAAK,IAAI,CAAC,SAAS,EAAE;gBAAE;AACjD,YAAA,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,KAAK,CAAC;AACzB,YAAA,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC;AACtB,QAAA,CAAC,CAAC;AACF,QAAA,IAAI,CAAC,UAAU,CAAC,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iBAAA,EAAA,YAAA,EAAA,UAAA,EAAA,YAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,MAAA,EAAA,EAAA,iBAAA,EAAA,QAAA,EAAA,UAAA,EAAA,QAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,OAAA,EAAA,EAAA,SAAA,EAAA,iBAAA,EAAA,eAAA,EAAA,iBAAA,EAAA,EAAA,cAAA,EAAA,CAAA,EAAA,SAAA,EAAAC,2BAAA,EAAA,EAAA,EAAA,SAAA,EAAA,EAAA,CAAA,0BAAA,EAAA,MAAA,EAAA,CAAA,eAAA,EAAA,eAAA,CAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECrBpC,8wBAmBA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDFY,gBAAgB,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,CAAA,SAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAIf,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAPnC,SAAS;+BACE,kBAAkB,EAAA,OAAA,EAEnB,CAAC,gBAAgB,CAAC,mBACV,uBAAuB,CAAC,MAAM,EAAA,cAAA,EAC/BC,cAAkB,EAAA,QAAA,EAAA,8wBAAA,EAAA;;;AEnBpC;;ACAA;;AAEG;;;;"}
@@ -1,26 +1,40 @@
1
1
  import * as i0 from '@angular/core';
2
- import { input, computed, ChangeDetectionStrategy, Component } from '@angular/core';
3
- import { Color } from '@mintplayer/ng-bootstrap';
2
+ import { inject, ElementRef, input, booleanAttribute, ChangeDetectionStrategy, Component } from '@angular/core';
3
+ import { useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';
4
+ import { spinnerCore, spinnerScopedStyles } from '@mintplayer/ui-core/spinner';
5
+ import { bootstrapSpinners } from '@mintplayer/ui-core/bootstrap/spinners';
4
6
 
7
+ // GENERATED from the spinner manifest (spinner) by @mintplayer/nx-component-compiler. Do not edit.
8
+ /** Bootstrap's spinner: a `role="status"` loading indicator whose visually hidden `label` a screen reader announces (#452). */
5
9
  class BsSpinnerComponent {
10
+ #core;
6
11
  constructor() {
7
- this.colors = Color;
12
+ /** The host element. */
13
+ this.elementRef = inject(ElementRef);
8
14
  this.type = input('border', /* @ts-ignore */
9
15
  ...(ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []));
10
- this.color = input(Color.dark, /* @ts-ignore */
16
+ this.color = input(null, /* @ts-ignore */
11
17
  ...(ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []));
12
- this.spinnerClass = computed(() => `spinner-${this.type()}`, /* @ts-ignore */
13
- ...(ngDevMode ? [{ debugName: "spinnerClass" }] : /* istanbul ignore next */ []));
14
- this.colorClass = computed(() => `text-${this.colors[this.color()]}`, /* @ts-ignore */
15
- ...(ngDevMode ? [{ debugName: "colorClass" }] : /* istanbul ignore next */ []));
18
+ this.small = input(false, { ...(ngDevMode ? { debugName: "small" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
19
+ this.label = input('Loading…', /* @ts-ignore */
20
+ ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
21
+ this.#core = useCore(spinnerCore, { inputs: () => ({ type: this.type(), color: this.color(), small: this.small(), label: this.label() }), idPrefix: 'bs-spinner', hostBag: (props) => ({ ...props.root, 'data-mps': 'spinner' }) });
22
+ /** The template's props. */
23
+ this.props = this.#core.props;
24
+ useScopedStyles(bootstrapSpinners.key, bootstrapSpinners.css, { order: bootstrapSpinners.order });
25
+ useScopedStyles('spinner', spinnerScopedStyles);
16
26
  }
17
27
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsSpinnerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
18
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsSpinnerComponent, isStandalone: true, selector: "bs-spinner", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div [class]=\"[spinnerClass(), colorClass()]\" role=\"status\">\n <span class=\"visually-hidden\">Loading...</span>\n</div>\n", styles: [":host ::ng-deep .spinner-grow,:host ::ng-deep .spinner-border{display:inline-block;flex-shrink:0;width:var(--bs-spinner-width);height:var(--bs-spinner-height);vertical-align:var(--bs-spinner-vertical-align);border-radius:50%;animation:var(--bs-spinner-animation-speed) linear infinite var(--bs-spinner-animation-name)}@keyframes spinner-border{to{transform:rotate(360deg)}}:host ::ng-deep .spinner-border{--bs-spinner-width: 2rem;--bs-spinner-height: 2rem;--bs-spinner-vertical-align: -.125em;--bs-spinner-border-width: .25em;--bs-spinner-animation-speed: .75s;--bs-spinner-animation-name: spinner-border;border:var(--bs-spinner-border-width) solid currentcolor;border-right-color:transparent}:host ::ng-deep .spinner-border-sm{--bs-spinner-width: 1rem;--bs-spinner-height: 1rem;--bs-spinner-border-width: .2em}@keyframes spinner-grow{0%{transform:scale(0)}50%{opacity:1;transform:none}}:host ::ng-deep .spinner-grow{--bs-spinner-width: 2rem;--bs-spinner-height: 2rem;--bs-spinner-vertical-align: -.125em;--bs-spinner-animation-speed: .75s;--bs-spinner-animation-name: spinner-grow;background-color:currentcolor;opacity:0}:host ::ng-deep .spinner-grow-sm{--bs-spinner-width: 1rem;--bs-spinner-height: 1rem}@media(prefers-reduced-motion:reduce){:host ::ng-deep .spinner-border,:host ::ng-deep .spinner-grow{--bs-spinner-animation-speed: 1.5s}}:host ::ng-deep .spinner-border{animation:.75s linear infinite spinner-border}:host ::ng-deep .spinner-grow{animation:.75s linear infinite spinner-grow}@media(prefers-reduced-motion:reduce){:host ::ng-deep .spinner-border,:host ::ng-deep .spinner-grow{animation-duration:1.5s}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
28
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsSpinnerComponent, isStandalone: true, selector: "bs-spinner", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, small: { classPropertyName: "small", publicName: "small", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/spinner/src/templates/spinner.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_label = props().label;\n<span data-mps=\"spinner\" class=\"visually-hidden\">\n {{ p_label }}\n</span>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
19
29
  }
20
30
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsSpinnerComponent, decorators: [{
21
31
  type: Component,
22
- args: [{ selector: 'bs-spinner', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div [class]=\"[spinnerClass(), colorClass()]\" role=\"status\">\n <span class=\"visually-hidden\">Loading...</span>\n</div>\n", styles: [":host ::ng-deep .spinner-grow,:host ::ng-deep .spinner-border{display:inline-block;flex-shrink:0;width:var(--bs-spinner-width);height:var(--bs-spinner-height);vertical-align:var(--bs-spinner-vertical-align);border-radius:50%;animation:var(--bs-spinner-animation-speed) linear infinite var(--bs-spinner-animation-name)}@keyframes spinner-border{to{transform:rotate(360deg)}}:host ::ng-deep .spinner-border{--bs-spinner-width: 2rem;--bs-spinner-height: 2rem;--bs-spinner-vertical-align: -.125em;--bs-spinner-border-width: .25em;--bs-spinner-animation-speed: .75s;--bs-spinner-animation-name: spinner-border;border:var(--bs-spinner-border-width) solid currentcolor;border-right-color:transparent}:host ::ng-deep .spinner-border-sm{--bs-spinner-width: 1rem;--bs-spinner-height: 1rem;--bs-spinner-border-width: .2em}@keyframes spinner-grow{0%{transform:scale(0)}50%{opacity:1;transform:none}}:host ::ng-deep .spinner-grow{--bs-spinner-width: 2rem;--bs-spinner-height: 2rem;--bs-spinner-vertical-align: -.125em;--bs-spinner-animation-speed: .75s;--bs-spinner-animation-name: spinner-grow;background-color:currentcolor;opacity:0}:host ::ng-deep .spinner-grow-sm{--bs-spinner-width: 1rem;--bs-spinner-height: 1rem}@media(prefers-reduced-motion:reduce){:host ::ng-deep .spinner-border,:host ::ng-deep .spinner-grow{--bs-spinner-animation-speed: 1.5s}}:host ::ng-deep .spinner-border{animation:.75s linear infinite spinner-border}:host ::ng-deep .spinner-grow{animation:.75s linear infinite spinner-grow}@media(prefers-reduced-motion:reduce){:host ::ng-deep .spinner-border,:host ::ng-deep .spinner-grow{animation-duration:1.5s}}\n"] }]
23
- }], propDecorators: { type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }] } });
32
+ args: [{ selector: 'bs-spinner', imports: [], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/spinner/src/templates/spinner.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_label = props().label;\n<span data-mps=\"spinner\" class=\"visually-hidden\">\n {{ p_label }}\n</span>\n" }]
33
+ }], ctorParameters: () => [], propDecorators: { type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], small: [{ type: i0.Input, args: [{ isSignal: true, alias: "small", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }] } });
34
+
35
+ // GENERATED from the spinner manifest by @mintplayer/nx-component-compiler. Do not edit.
36
+
37
+ // Generated from @mintplayer/ui-core/spinner (PRD #437 D10).
24
38
 
25
39
  /**
26
40
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"mintplayer-ng-bootstrap-spinner.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/spinner/src/spinner.component.ts","../../../../libs/mintplayer-ng-bootstrap/spinner/src/spinner.component.html","../../../../libs/mintplayer-ng-bootstrap/spinner/mintplayer-ng-bootstrap-spinner.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport { Color } from '@mintplayer/ng-bootstrap';\n\n@Component({\n selector: 'bs-spinner',\n templateUrl: './spinner.component.html',\n styleUrls: ['./spinner.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsSpinnerComponent {\n readonly colors = Color;\n\n type = input<'border' | 'grow'>('border');\n color = input<Color>(Color.dark);\n\n spinnerClass = computed(() => `spinner-${this.type()}`);\n colorClass = computed(() => `text-${this.colors[this.color()]}`);\n}\n","<div [class]=\"[spinnerClass(), colorClass()]\" role=\"status\">\n <span class=\"visually-hidden\">Loading...</span>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MASa,kBAAkB,CAAA;AAN/B,IAAA,WAAA,GAAA;QAOW,IAAA,CAAA,MAAM,GAAG,KAAK;QAEvB,IAAA,CAAA,IAAI,GAAG,KAAK,CAAoB,QAAQ;iFAAC;AACzC,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK,CAAQ,KAAK,CAAC,IAAI;kFAAC;QAEhC,IAAA,CAAA,YAAY,GAAG,QAAQ,CAAC,MAAM,CAAA,QAAA,EAAW,IAAI,CAAC,IAAI,EAAE,CAAA,CAAE;yFAAC;AACvD,QAAA,IAAA,CAAA,UAAU,GAAG,QAAQ,CAAC,MAAM,CAAA,KAAA,EAAQ,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,CAAA,CAAE;uFAAC;AACjE,IAAA;8GARY,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAlB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,kBAAkB,+TCT/B,mIAGA,EAAA,MAAA,EAAA,CAAA,ulDAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FDMa,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAN9B,SAAS;+BACE,YAAY,EAAA,eAAA,EAGL,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,mIAAA,EAAA,MAAA,EAAA,CAAA,ulDAAA,CAAA,EAAA;;;AEPjD;;AAEG;;;;"}
1
+ {"version":3,"file":"mintplayer-ng-bootstrap-spinner.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/spinner/src/generated/spinner.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/spinner/src/generated/spinner.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/spinner/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/spinner/src/index.ts","../../../../libs/mintplayer-ng-bootstrap/spinner/mintplayer-ng-bootstrap-spinner.ts"],"sourcesContent":["// GENERATED from the spinner manifest (spinner) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, booleanAttribute, inject, input } from '@angular/core';\nimport { useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { spinnerCore, type SpinnerInputs, spinnerScopedStyles } from '@mintplayer/ui-core/spinner';\nimport { bootstrapSpinners } from '@mintplayer/ui-core/bootstrap/spinners';\n\n/** Bootstrap's spinner: a `role=\"status\"` loading indicator whose visually hidden `label` a screen reader announces (#452). */\n@Component({\n selector: 'bs-spinner',\n templateUrl: './spinner.view.generated.html',\n imports: [],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsSpinnerComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly type = input<SpinnerInputs['type']>('border');\n readonly color = input<SpinnerInputs['color']>(null);\n readonly small = input<SpinnerInputs['small'], unknown>(false, { transform: booleanAttribute });\n readonly label = input<SpinnerInputs['label']>('Loading…');\n\n readonly #core = useCore(spinnerCore, { inputs: () => ({ type: this.type(), color: this.color(), small: this.small(), label: this.label() }), idPrefix: 'bs-spinner', hostBag: (props) => ({ ...props.root, 'data-mps': 'spinner' }) });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles(bootstrapSpinners.key, bootstrapSpinners.css, { order: bootstrapSpinners.order }); useScopedStyles('spinner', spinnerScopedStyles);\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/spinner/src/templates/spinner.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_label = props().label;\n<span data-mps=\"spinner\" class=\"visually-hidden\">\n {{ p_label }}\n</span>\n","// GENERATED from the spinner manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsSpinnerComponent } from './spinner.component.generated';\n","// Generated from @mintplayer/ui-core/spinner (PRD #437 D10).\nexport * from './generated';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAAA;AAMA;MAOa,kBAAkB,CAAA;AASpB,IAAA,KAAK;AAId,IAAA,WAAA,GAAA;;AAXS,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAA0B,UAAU,CAAC;QAExD,IAAA,CAAA,IAAI,GAAG,KAAK,CAAwB,QAAQ;iFAAC;QAC7C,IAAA,CAAA,KAAK,GAAG,KAAK,CAAyB,IAAI;kFAAC;QAC3C,IAAA,CAAA,KAAK,GAAG,KAAK,CAAkC,KAAK,6EAAI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,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,6PAAA,EAAA;;;AEXjD;;ACAA;;ACAA;;AAEG;;;;"}
@@ -1,17 +1,27 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Directive, viewChild, effect, ChangeDetectionStrategy, Component } from '@angular/core';
2
+ import { signal, Directive, viewChild, effect, ChangeDetectionStrategy, Component } from '@angular/core';
3
3
  import { BsObserveSizeDirective } from '@mintplayer/ng-bootstrap/observe-size';
4
4
 
5
+ /**
6
+ * Reserves room for the `bs-sticky-footer` inside it: a bottom margin as tall as
7
+ * the footer, kept current by the footer's size observer. A signal, so the host
8
+ * binding re-renders when the footer writes it (zoneless: a plain field write
9
+ * schedules nothing, and the margin never appeared).
10
+ */
5
11
  class BsStickyFooterParentDirective {
12
+ constructor() {
13
+ this.marginBottom = signal(undefined, /* @ts-ignore */
14
+ ...(ngDevMode ? [{ debugName: "marginBottom" }] : /* istanbul ignore next */ []));
15
+ }
6
16
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsStickyFooterParentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
7
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsStickyFooterParentDirective, isStandalone: true, selector: "[bsStickyFooterParent]", host: { properties: { "style.margin-bottom.px": "marginBottom" } }, ngImport: i0 }); }
17
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsStickyFooterParentDirective, isStandalone: true, selector: "[bsStickyFooterParent]", host: { properties: { "style.margin-bottom.px": "marginBottom()" } }, ngImport: i0 }); }
8
18
  }
9
19
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsStickyFooterParentDirective, decorators: [{
10
20
  type: Directive,
11
21
  args: [{
12
22
  selector: '[bsStickyFooterParent]',
13
23
  host: {
14
- '[style.margin-bottom.px]': 'marginBottom',
24
+ '[style.margin-bottom.px]': 'marginBottom()',
15
25
  },
16
26
  }]
17
27
  }] });
@@ -27,7 +37,7 @@ class BsStickyFooterComponent {
27
37
  effect(() => {
28
38
  const height = this.sizeObserver().height();
29
39
  if (height !== undefined) {
30
- this.parent.marginBottom = height;
40
+ this.parent.marginBottom.set(height);
31
41
  }
32
42
  }, { injector: this.injector });
33
43
  }
@@ -1 +1 @@
1
- {"version":3,"file":"mintplayer-ng-bootstrap-sticky-footer.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/sticky-footer/src/sticky-footer-parent/sticky-footer-parent.directive.ts","../../../../libs/mintplayer-ng-bootstrap/sticky-footer/src/sticky-footer/sticky-footer.component.ts","../../../../libs/mintplayer-ng-bootstrap/sticky-footer/src/sticky-footer/sticky-footer.component.html","../../../../libs/mintplayer-ng-bootstrap/sticky-footer/mintplayer-ng-bootstrap-sticky-footer.ts"],"sourcesContent":["import { Directive } from '@angular/core';\n\n@Directive({\n selector: '[bsStickyFooterParent]',\n host: {\n '[style.margin-bottom.px]': 'marginBottom',\n },\n})\nexport class BsStickyFooterParentDirective {\n marginBottom?: number;\n}\n","import { AfterViewInit, Component, effect, Injector, viewChild, ChangeDetectionStrategy} from '@angular/core';\nimport { BsStickyFooterParentDirective } from '../sticky-footer-parent/sticky-footer-parent.directive';\nimport { BsObserveSizeDirective } from '@mintplayer/ng-bootstrap/observe-size';\n\n@Component({\n selector: 'bs-sticky-footer',\n templateUrl: './sticky-footer.component.html',\n styleUrls: ['./sticky-footer.component.scss'],\n imports: [BsObserveSizeDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsStickyFooterComponent implements AfterViewInit {\n constructor(\n private parent: BsStickyFooterParentDirective,\n private injector: Injector\n ) {}\n\n ngAfterViewInit() {\n effect(() => {\n const height = this.sizeObserver().height();\n if (height !== undefined) {\n this.parent.marginBottom = height;\n }\n }, { injector: this.injector });\n }\n\n readonly sizeObserver = viewChild.required<BsObserveSizeDirective>('sizeObserver');\n}\n","<footer bsObserveSize #sizeObserver=\"bsObserveSize\" class=\"footer position-absolute\">\n <ng-content></ng-content>\n</footer>","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.BsStickyFooterParentDirective"],"mappings":";;;;MAQa,6BAA6B,CAAA;8GAA7B,6BAA6B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAA7B,6BAA6B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,wBAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,wBAAA,EAAA,cAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAA7B,6BAA6B,EAAA,UAAA,EAAA,CAAA;kBANzC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,wBAAwB;AAClC,oBAAA,IAAI,EAAE;AACJ,wBAAA,0BAA0B,EAAE,cAAc;AAC3C,qBAAA;AACF,iBAAA;;;MCIY,uBAAuB,CAAA;IAClC,WAAA,CACU,MAAqC,EACrC,QAAkB,EAAA;QADlB,IAAA,CAAA,MAAM,GAAN,MAAM;QACN,IAAA,CAAA,QAAQ,GAAR,QAAQ;AAYT,QAAA,IAAA,CAAA,YAAY,GAAG,SAAS,CAAC,QAAQ,CAAyB,cAAc;yFAAC;IAX/E;IAEH,eAAe,GAAA;QACb,MAAM,CAAC,MAAK;YACV,MAAM,MAAM,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC,MAAM,EAAE;AAC3C,YAAA,IAAI,MAAM,KAAK,SAAS,EAAE;AACxB,gBAAA,IAAI,CAAC,MAAM,CAAC,YAAY,GAAG,MAAM;YACnC;QACF,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC;IACjC;8GAbW,uBAAuB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAAA,6BAAA,EAAA,EAAA,EAAA,KAAA,EAAA,EAAA,CAAA,QAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAvB,uBAAuB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,kBAAA,EAAA,WAAA,EAAA,CAAA,EAAA,YAAA,EAAA,cAAA,EAAA,KAAA,EAAA,IAAA,EAAA,SAAA,EAAA,CAAA,cAAA,CAAA,EAAA,WAAA,EAAA,IAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECXpC,qIAES,EAAA,MAAA,EAAA,CAAA,qFAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDMG,sBAAsB,EAAA,QAAA,EAAA,iBAAA,EAAA,QAAA,EAAA,CAAA,eAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAGrB,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAPnC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,kBAAkB,WAGnB,CAAC,sBAAsB,CAAC,EAAA,eAAA,EAChB,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,qIAAA,EAAA,MAAA,EAAA,CAAA,qFAAA,CAAA,EAAA;kKAiBoB,cAAc,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE1BnF;;AAEG;;;;"}
1
+ {"version":3,"file":"mintplayer-ng-bootstrap-sticky-footer.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/sticky-footer/src/sticky-footer-parent/sticky-footer-parent.directive.ts","../../../../libs/mintplayer-ng-bootstrap/sticky-footer/src/sticky-footer/sticky-footer.component.ts","../../../../libs/mintplayer-ng-bootstrap/sticky-footer/src/sticky-footer/sticky-footer.component.html","../../../../libs/mintplayer-ng-bootstrap/sticky-footer/mintplayer-ng-bootstrap-sticky-footer.ts"],"sourcesContent":["import { Directive, signal } from '@angular/core';\n\n/**\n * Reserves room for the `bs-sticky-footer` inside it: a bottom margin as tall as\n * the footer, kept current by the footer's size observer. A signal, so the host\n * binding re-renders when the footer writes it (zoneless: a plain field write\n * schedules nothing, and the margin never appeared).\n */\n@Directive({\n selector: '[bsStickyFooterParent]',\n host: {\n '[style.margin-bottom.px]': 'marginBottom()',\n },\n})\nexport class BsStickyFooterParentDirective {\n readonly marginBottom = signal<number | undefined>(undefined);\n}\n","import { AfterViewInit, Component, effect, Injector, viewChild, ChangeDetectionStrategy} from '@angular/core';\nimport { BsStickyFooterParentDirective } from '../sticky-footer-parent/sticky-footer-parent.directive';\nimport { BsObserveSizeDirective } from '@mintplayer/ng-bootstrap/observe-size';\n\n@Component({\n selector: 'bs-sticky-footer',\n templateUrl: './sticky-footer.component.html',\n styleUrls: ['./sticky-footer.component.scss'],\n imports: [BsObserveSizeDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsStickyFooterComponent implements AfterViewInit {\n constructor(\n private parent: BsStickyFooterParentDirective,\n private injector: Injector\n ) {}\n\n ngAfterViewInit() {\n effect(() => {\n const height = this.sizeObserver().height();\n if (height !== undefined) {\n this.parent.marginBottom.set(height);\n }\n }, { injector: this.injector });\n }\n\n readonly sizeObserver = viewChild.required<BsObserveSizeDirective>('sizeObserver');\n}\n","<footer bsObserveSize #sizeObserver=\"bsObserveSize\" class=\"footer position-absolute\">\n <ng-content></ng-content>\n</footer>","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.BsStickyFooterParentDirective"],"mappings":";;;;AAEA;;;;;AAKG;MAOU,6BAA6B,CAAA;AAN1C,IAAA,WAAA,GAAA;QAOW,IAAA,CAAA,YAAY,GAAG,MAAM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AA,CAAA;kGAAvB,uBAAuB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,kBAAA,EAAA,WAAA,EAAA,CAAA,EAAA,YAAA,EAAA,cAAA,EAAA,KAAA,EAAA,IAAA,EAAA,SAAA,EAAA,CAAA,cAAA,CAAA,EAAA,WAAA,EAAA,IAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECXpC,qIAES,EAAA,MAAA,EAAA,CAAA,qFAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDMG,sBAAsB,EAAA,QAAA,EAAA,iBAAA,EAAA,QAAA,EAAA,CAAA,eAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAGrB,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAPnC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,kBAAkB,WAGnB,CAAC,sBAAsB,CAAC,EAAA,eAAA,EAChB,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,qIAAA,EAAA,MAAA,EAAA,CAAA,qFAAA,CAAA,EAAA;kKAiBoB,cAAc,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE1BnF;;AAEG;;;;"}
@@ -1,8 +1,9 @@
1
+ import { bootstrapNav } from '@mintplayer/ui-core/bootstrap/nav';
1
2
  import { NgTemplateOutlet } from '@angular/common';
2
3
  import * as i0 from '@angular/core';
3
4
  import { inject, TemplateRef, Directive, input, contentChild, viewChild, ChangeDetectionStrategy, Component, contentChildren, forwardRef, signal, ElementRef, computed, afterNextRender } from '@angular/core';
4
5
  import { BsIdService } from '@mintplayer/ng-bootstrap/a11y';
5
- import { useScopedStyles, MpPropsDirective } from '@mintplayer/ng-bootstrap/machine';
6
+ import { useBootstrap, useScopedStyles, MpPropsDirective } from '@mintplayer/ng-bootstrap/machine';
6
7
  import { resolveActiveTab, connectTabControl, TAB_CONTROL_SCOPE, tabControlScopedStyles, tabControlTabClick, tabControlKeydown, tabControlChanged } from '@mintplayer/ui-core/tab-control';
7
8
 
8
9
  class BsTabPageHeaderDirective {
@@ -99,6 +100,7 @@ class BsTabControlComponent {
99
100
  ...(ngDevMode ? [{ debugName: "bottomTabs" }] : /* istanbul ignore next */ []));
100
101
  this.view = computed(() => connectTabControl({ id: this.id, tabsPosition: this.tabsPosition(), border: this.border(), enhanced: this.enhanced() }, this.states(), this.activeIndex()), /* @ts-ignore */
101
102
  ...(ngDevMode ? [{ debugName: "view" }] : /* istanbul ignore next */ []));
103
+ useBootstrap(bootstrapNav);
102
104
  useScopedStyles(TAB_CONTROL_SCOPE, tabControlScopedStyles);
103
105
  afterNextRender(() => this.enhanced.set(true));
104
106
  }
@@ -1 +1 @@
1
- {"version":3,"file":"mintplayer-ng-bootstrap-tab-control.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/tab-control/src/tab-page-header/tab-page-header.directive.ts","../../../../libs/mintplayer-ng-bootstrap/tab-control/src/tab-page/tab-page.component.ts","../../../../libs/mintplayer-ng-bootstrap/tab-control/src/tab-control/tab-control.component.ts","../../../../libs/mintplayer-ng-bootstrap/tab-control/src/tab-control/tab-control.component.html","../../../../libs/mintplayer-ng-bootstrap/tab-control/mintplayer-ng-bootstrap-tab-control.ts"],"sourcesContent":["import { Directive, inject, TemplateRef } from '@angular/core';\n\n@Directive({\n selector: '[bsTabPageHeader]',\n})\nexport class BsTabPageHeaderDirective {\n template = inject(TemplateRef);\n}\n","import { ChangeDetectionStrategy, Component, contentChild, input, TemplateRef, viewChild } from '@angular/core';\nimport { BsTabPageHeaderDirective } from '../tab-page-header/tab-page-header.directive';\n\n/**\n * One page of a `<bs-tab-control>`. Renders nothing itself: the control\n * renders every radio, tab and pane as siblings (the CSS pairs the n-th radio\n * with the n-th pane), so the page hands over its header and body templates.\n */\n@Component({\n selector: 'bs-tab-page',\n template: '<ng-template #body><ng-content /></ng-template>',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { hidden: '' },\n})\nexport class BsTabPageComponent {\n readonly disabled = input(false);\n readonly headerTemplate = contentChild(BsTabPageHeaderDirective);\n readonly body = viewChild<TemplateRef<unknown>>('body');\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n afterNextRender,\n ChangeDetectionStrategy,\n Component,\n computed,\n contentChildren,\n ElementRef,\n forwardRef,\n inject,\n input,\n signal,\n} from '@angular/core';\nimport { BsIdService } from '@mintplayer/ng-bootstrap/a11y';\nimport { MpPropsDirective, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport {\n connectTabControl,\n resolveActiveTab,\n TAB_CONTROL_SCOPE,\n tabControlChanged,\n tabControlKeydown,\n tabControlScopedStyles,\n tabControlTabClick,\n} from '@mintplayer/ui-core/tab-control';\nimport { BsTabPageComponent } from '../tab-page/tab-page.component';\nimport { BsTabsPosition } from '../tabs-position';\n\n/**\n * `<bs-tab-control>` — Bootstrap nav-tabs over one native radio per tab (#437).\n *\n * <bs-tab-control [border]=\"true\" tabsPosition=\"top\">\n * <bs-tab-page [disabled]=\"false\">\n * <ng-container *bsTabPageHeader>Profile</ng-container>\n * Page content\n * </bs-tab-page>\n * </bs-tab-control>\n *\n * Renders the markup of `@mintplayer/ui-core/tab-control` in its own\n * template, so the server-rendered page is a working tab control: the\n * checked radio shows its pane through CSS with JavaScript off. Once the\n * client has rendered, the labels become APG tabs (roving tabindex,\n * automatic activation) and the radios leave the tab order. The host is the\n * `.tab-control` root; each page hands over its header and body as templates.\n */\n@Component({\n selector: 'bs-tab-control',\n templateUrl: './tab-control.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [MpPropsDirective, NgTemplateOutlet],\n host: {\n '[attr.data-mps]': 'view().root[\"data-mps\"]',\n '[class.tab-control]': 'true',\n '[attr.data-tabs-position]': 'view().root[\"data-tabs-position\"]',\n '(change)': 'onChange($event)',\n },\n})\nexport class BsTabControlComponent {\n /** Draw the outline around the active pane. */\n readonly border = input(true);\n /** Show the first enabled page while none is active. */\n readonly selectFirstTab = input(true);\n readonly tabsPosition = input<BsTabsPosition>('top');\n\n readonly tabPages = contentChildren<BsTabPageComponent>(forwardRef(() => BsTabPageComponent));\n /** The page the user picked; `checkedTab` is the one that is shown. */\n readonly activeTab = signal<BsTabPageComponent | null>(null);\n\n private readonly host = inject(ElementRef).nativeElement as HTMLElement;\n private readonly id = inject(BsIdService).next('bs-tab-control');\n /** The client has rendered: switch from the radio tier to the tab tier. */\n private readonly enhanced = signal(false);\n\n private readonly states = computed(() => this.tabPages().map((tab) => ({ disabled: tab.disabled() })));\n protected readonly activeIndex = computed(() => {\n const active = this.activeTab();\n return resolveActiveTab(this.states(), active ? this.tabPages().indexOf(active) : null, this.selectFirstTab());\n });\n readonly checkedTab = computed(() => {\n const index = this.activeIndex();\n return index === null ? null : this.tabPages()[index];\n });\n protected readonly bottomTabs = computed(() => this.tabsPosition() === 'bottom');\n protected readonly view = computed(() =>\n connectTabControl(\n { id: this.id, tabsPosition: this.tabsPosition(), border: this.border(), enhanced: this.enhanced() },\n this.states(),\n this.activeIndex(),\n ),\n );\n\n constructor() {\n useScopedStyles(TAB_CONTROL_SCOPE, tabControlScopedStyles);\n afterNextRender(() => this.enhanced.set(true));\n }\n\n setActiveTab(tab: BsTabPageComponent): void {\n if (!tab.disabled()) this.activeTab.set(tab);\n }\n\n protected onTabClick(event: Event, tab: BsTabPageComponent): void {\n // Before enhancement the label forwards to its radio and `change` selects.\n if (!this.enhanced()) return;\n if (tabControlTabClick(event, tab.disabled())) this.activeTab.set(tab);\n }\n\n protected onTabKeydown(event: KeyboardEvent, index: number): void {\n const target = tabControlKeydown(this.host, event, index, this.states());\n if (target !== null) this.activeTab.set(this.tabPages()[target]);\n }\n\n protected onChange(event: Event): void {\n const index = tabControlChanged(this.host, event);\n if (index !== null) this.activeTab.set(this.tabPages()[index]);\n }\n}\n","@let v = view();\n@for (tab of tabPages(); track tab; let i = $index) {\n <input [mpProps]=\"v.tabs[i].radio\" [checked]=\"i === activeIndex()\" [attr.checked]=\"i === activeIndex() ? '' : null\">\n}\n@if (!bottomTabs()) {\n <ng-container [ngTemplateOutlet]=\"strip\" />\n}\n<div [mpProps]=\"v.content\">\n @for (tab of tabPages(); track tab; let i = $index) {\n <div [mpProps]=\"v.tabs[i].pane\"><ng-container [ngTemplateOutlet]=\"tab.body() ?? null\" /></div>\n }\n</div>\n@if (bottomTabs()) {\n <ng-container [ngTemplateOutlet]=\"strip\" />\n}\n<ng-content />\n\n<ng-template #strip>\n <div [mpProps]=\"v.strip\">\n <ul [mpProps]=\"v.list\">\n @for (tab of tabPages(); track tab; let i = $index) {\n <li [mpProps]=\"v.item\">\n <label [mpProps]=\"v.tabs[i].tab\" (click)=\"onTabClick($event, tab)\" (keydown)=\"onTabKeydown($event, i)\">\n <ng-container [ngTemplateOutlet]=\"tab.headerTemplate()?.template ?? null\" />\n </label>\n </li>\n }\n </ul>\n </div>\n</ng-template>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MAKa,wBAAwB,CAAA;AAHrC,IAAA,WAAA,GAAA;AAIE,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,WAAW,CAAC;AAC/B,IAAA;8GAFY,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAxB,wBAAwB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,mBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAAxB,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBAHpC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,mBAAmB;AAC9B,iBAAA;;;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AA,EAAA,KAAA,EAAA,cAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,QAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,eAAA,EAAA,IAAA,EAAA,CAAA,UAAU,CAAC,MAAM,kBAAkB,CAAC,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE/D9F;;AAEG;;;;"}
1
+ {"version":3,"file":"mintplayer-ng-bootstrap-tab-control.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/tab-control/src/tab-page-header/tab-page-header.directive.ts","../../../../libs/mintplayer-ng-bootstrap/tab-control/src/tab-page/tab-page.component.ts","../../../../libs/mintplayer-ng-bootstrap/tab-control/src/tab-control/tab-control.component.ts","../../../../libs/mintplayer-ng-bootstrap/tab-control/src/tab-control/tab-control.component.html","../../../../libs/mintplayer-ng-bootstrap/tab-control/mintplayer-ng-bootstrap-tab-control.ts"],"sourcesContent":["import { Directive, inject, TemplateRef } from '@angular/core';\n\n@Directive({\n selector: '[bsTabPageHeader]',\n})\nexport class BsTabPageHeaderDirective {\n template = inject(TemplateRef);\n}\n","import { ChangeDetectionStrategy, Component, contentChild, input, TemplateRef, viewChild } from '@angular/core';\nimport { BsTabPageHeaderDirective } from '../tab-page-header/tab-page-header.directive';\n\n/**\n * One page of a `<bs-tab-control>`. Renders nothing itself: the control\n * renders every radio, tab and pane as siblings (the CSS pairs the n-th radio\n * with the n-th pane), so the page hands over its header and body templates.\n */\n@Component({\n selector: 'bs-tab-page',\n template: '<ng-template #body><ng-content /></ng-template>',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { hidden: '' },\n})\nexport class BsTabPageComponent {\n readonly disabled = input(false);\n readonly headerTemplate = contentChild(BsTabPageHeaderDirective);\n readonly body = viewChild<TemplateRef<unknown>>('body');\n}\n","import { bootstrapNav } from '@mintplayer/ui-core/bootstrap/nav';\nimport { NgTemplateOutlet } from '@angular/common';\nimport {\n afterNextRender,\n ChangeDetectionStrategy,\n Component,\n computed,\n contentChildren,\n ElementRef,\n forwardRef,\n inject,\n input,\n signal,\n} from '@angular/core';\nimport { BsIdService } from '@mintplayer/ng-bootstrap/a11y';\nimport { MpPropsDirective, useBootstrap, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport {\n connectTabControl,\n resolveActiveTab,\n TAB_CONTROL_SCOPE,\n tabControlChanged,\n tabControlKeydown,\n tabControlScopedStyles,\n tabControlTabClick,\n} from '@mintplayer/ui-core/tab-control';\nimport { BsTabPageComponent } from '../tab-page/tab-page.component';\nimport { BsTabsPosition } from '../tabs-position';\n\n/**\n * `<bs-tab-control>` — Bootstrap nav-tabs over one native radio per tab (#437).\n *\n * <bs-tab-control [border]=\"true\" tabsPosition=\"top\">\n * <bs-tab-page [disabled]=\"false\">\n * <ng-container *bsTabPageHeader>Profile</ng-container>\n * Page content\n * </bs-tab-page>\n * </bs-tab-control>\n *\n * Renders the markup of `@mintplayer/ui-core/tab-control` in its own\n * template, so the server-rendered page is a working tab control: the\n * checked radio shows its pane through CSS with JavaScript off. Once the\n * client has rendered, the labels become APG tabs (roving tabindex,\n * automatic activation) and the radios leave the tab order. The host is the\n * `.tab-control` root; each page hands over its header and body as templates.\n */\n@Component({\n selector: 'bs-tab-control',\n templateUrl: './tab-control.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [MpPropsDirective, NgTemplateOutlet],\n host: {\n '[attr.data-mps]': 'view().root[\"data-mps\"]',\n '[class.tab-control]': 'true',\n '[attr.data-tabs-position]': 'view().root[\"data-tabs-position\"]',\n '(change)': 'onChange($event)',\n },\n})\nexport class BsTabControlComponent {\n /** Draw the outline around the active pane. */\n readonly border = input(true);\n /** Show the first enabled page while none is active. */\n readonly selectFirstTab = input(true);\n readonly tabsPosition = input<BsTabsPosition>('top');\n\n readonly tabPages = contentChildren<BsTabPageComponent>(forwardRef(() => BsTabPageComponent));\n /** The page the user picked; `checkedTab` is the one that is shown. */\n readonly activeTab = signal<BsTabPageComponent | null>(null);\n\n private readonly host = inject(ElementRef).nativeElement as HTMLElement;\n private readonly id = inject(BsIdService).next('bs-tab-control');\n /** The client has rendered: switch from the radio tier to the tab tier. */\n private readonly enhanced = signal(false);\n\n private readonly states = computed(() => this.tabPages().map((tab) => ({ disabled: tab.disabled() })));\n protected readonly activeIndex = computed(() => {\n const active = this.activeTab();\n return resolveActiveTab(this.states(), active ? this.tabPages().indexOf(active) : null, this.selectFirstTab());\n });\n readonly checkedTab = computed(() => {\n const index = this.activeIndex();\n return index === null ? null : this.tabPages()[index];\n });\n protected readonly bottomTabs = computed(() => this.tabsPosition() === 'bottom');\n protected readonly view = computed(() =>\n connectTabControl(\n { id: this.id, tabsPosition: this.tabsPosition(), border: this.border(), enhanced: this.enhanced() },\n this.states(),\n this.activeIndex(),\n ),\n );\n\n constructor() {\n useBootstrap(bootstrapNav);\n useScopedStyles(TAB_CONTROL_SCOPE, tabControlScopedStyles);\n afterNextRender(() => this.enhanced.set(true));\n }\n\n setActiveTab(tab: BsTabPageComponent): void {\n if (!tab.disabled()) this.activeTab.set(tab);\n }\n\n protected onTabClick(event: Event, tab: BsTabPageComponent): void {\n // Before enhancement the label forwards to its radio and `change` selects.\n if (!this.enhanced()) return;\n if (tabControlTabClick(event, tab.disabled())) this.activeTab.set(tab);\n }\n\n protected onTabKeydown(event: KeyboardEvent, index: number): void {\n const target = tabControlKeydown(this.host, event, index, this.states());\n if (target !== null) this.activeTab.set(this.tabPages()[target]);\n }\n\n protected onChange(event: Event): void {\n const index = tabControlChanged(this.host, event);\n if (index !== null) this.activeTab.set(this.tabPages()[index]);\n }\n}\n","@let v = view();\n@for (tab of tabPages(); track tab; let i = $index) {\n <input [mpProps]=\"v.tabs[i].radio\" [checked]=\"i === activeIndex()\" [attr.checked]=\"i === activeIndex() ? '' : null\">\n}\n@if (!bottomTabs()) {\n <ng-container [ngTemplateOutlet]=\"strip\" />\n}\n<div [mpProps]=\"v.content\">\n @for (tab of tabPages(); track tab; let i = $index) {\n <div [mpProps]=\"v.tabs[i].pane\"><ng-container [ngTemplateOutlet]=\"tab.body() ?? null\" /></div>\n }\n</div>\n@if (bottomTabs()) {\n <ng-container [ngTemplateOutlet]=\"strip\" />\n}\n<ng-content />\n\n<ng-template #strip>\n <div [mpProps]=\"v.strip\">\n <ul [mpProps]=\"v.list\">\n @for (tab of tabPages(); track tab; let i = $index) {\n <li [mpProps]=\"v.item\">\n <label [mpProps]=\"v.tabs[i].tab\" (click)=\"onTabClick($event, tab)\" (keydown)=\"onTabKeydown($event, i)\">\n <ng-container [ngTemplateOutlet]=\"tab.headerTemplate()?.template ?? null\" />\n </label>\n </li>\n }\n </ul>\n </div>\n</ng-template>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;MAKa,wBAAwB,CAAA;AAHrC,IAAA,WAAA,GAAA;AAIE,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,WAAW,CAAC;AAC/B,IAAA;8GAFY,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAxB,wBAAwB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,mBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAAxB,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBAHpC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,mBAAmB;AAC9B,iBAAA;;;ACDD;;;;AAIG;MAOU,kBAAkB,CAAA;AAN/B,IAAA,WAAA,GAAA;QAOW,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAC,KAAK;qFAAC;QACvB,IAAA,CAAA,cAAc,GAAG,YAAY,CAAC,wBAAwB;2FAAC;QACvD,IAAA,CAAA,IAAI,GAAG,SAAS,CAAuB,MAAM;iF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,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEhE9F;;AAEG;;;;"}
@@ -1,14 +1,7 @@
1
1
  import * as i0 from '@angular/core';
2
- import { ChangeDetectionStrategy, Component, input } from '@angular/core';
3
-
4
- class BsTableStylesComponent {
5
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTableStylesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
6
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.8", type: BsTableStylesComponent, isStandalone: true, selector: "bs-table-styles", ngImport: i0, template: '<ng-content></ng-content>', isInline: true, styles: [":host{display:contents}:host ::ng-deep *,:host ::ng-deep *:before,:host ::ng-deep *:after{box-sizing:border-box}@media(prefers-reduced-motion:no-preference){:host ::ng-deep :root{scroll-behavior:smooth}}:host ::ng-deep body{margin:0;font-family:var(--bs-body-font-family);font-size:var(--bs-body-font-size);font-weight:var(--bs-body-font-weight);line-height:var(--bs-body-line-height);color:var(--bs-body-color);text-align:var(--bs-body-text-align);background-color:var(--bs-body-bg);-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0)}:host ::ng-deep hr{margin:1rem 0;color:inherit;border:0;border-top:var(--bs-border-width) solid;opacity:.25}:host ::ng-deep h6,:host ::ng-deep h5,:host ::ng-deep h4,:host ::ng-deep h3,:host ::ng-deep h2,:host ::ng-deep h1{margin-top:0;margin-bottom:.5rem;font-weight:500;line-height:1.2;color:var(--bs-heading-color)}:host ::ng-deep h1{font-size:calc(1.375rem + 1.5vw)}@media(min-width:1200px){:host ::ng-deep h1{font-size:2.5rem}}:host ::ng-deep h2{font-size:calc(1.325rem + .9vw)}@media(min-width:1200px){:host ::ng-deep h2{font-size:2rem}}:host ::ng-deep h3{font-size:calc(1.3rem + .6vw)}@media(min-width:1200px){:host ::ng-deep h3{font-size:1.75rem}}:host ::ng-deep h4{font-size:calc(1.275rem + .3vw)}@media(min-width:1200px){:host ::ng-deep h4{font-size:1.5rem}}:host ::ng-deep h5{font-size:1.25rem}:host ::ng-deep h6{font-size:1rem}:host ::ng-deep p{margin-top:0;margin-bottom:1rem}:host ::ng-deep abbr[title]{text-decoration:underline dotted;cursor:help;text-decoration-skip-ink:none}:host ::ng-deep address{margin-bottom:1rem;font-style:normal;line-height:inherit}:host ::ng-deep ol,:host ::ng-deep ul{padding-left:2rem}:host ::ng-deep ol,:host ::ng-deep ul,:host ::ng-deep dl{margin-top:0;margin-bottom:1rem}:host ::ng-deep ol ol,:host ::ng-deep ul ul,:host ::ng-deep ol ul,:host ::ng-deep ul ol{margin-bottom:0}:host ::ng-deep dt{font-weight:700}:host ::ng-deep dd{margin-bottom:.5rem;margin-left:0}:host ::ng-deep blockquote{margin:0 0 1rem}:host ::ng-deep b,:host ::ng-deep strong{font-weight:bolder}:host ::ng-deep small{font-size:.875em}:host ::ng-deep mark{padding:.1875em;color:var(--bs-highlight-color);background-color:var(--bs-highlight-bg)}:host ::ng-deep sub,:host ::ng-deep sup{position:relative;font-size:.75em;line-height:0;vertical-align:baseline}:host ::ng-deep sub{bottom:-.25em}:host ::ng-deep sup{top:-.5em}:host ::ng-deep a{color:rgba(var(--bs-link-color-rgb),var(--bs-link-opacity, 1));text-decoration:underline}:host ::ng-deep a:hover{--bs-link-color-rgb: var(--bs-link-hover-color-rgb)}:host ::ng-deep a:not([href]):not([class]),:host ::ng-deep a:not([href]):not([class]):hover{color:inherit;text-decoration:none}:host ::ng-deep pre,:host ::ng-deep code,:host ::ng-deep kbd,:host ::ng-deep samp{font-family:var(--bs-font-monospace);font-size:1em}:host ::ng-deep pre{display:block;margin-top:0;margin-bottom:1rem;overflow:auto;font-size:.875em}:host ::ng-deep pre code{font-size:inherit;color:inherit;word-break:normal}:host ::ng-deep code{font-size:.875em;color:var(--bs-code-color);word-wrap:break-word}a>:host ::ng-deep code{color:inherit}:host ::ng-deep kbd{padding:.1875rem .375rem;font-size:.875em;color:var(--bs-body-bg);background-color:var(--bs-body-color);border-radius:.25rem}:host ::ng-deep kbd kbd{padding:0;font-size:1em}:host ::ng-deep figure{margin:0 0 1rem}:host ::ng-deep img,:host ::ng-deep svg{vertical-align:middle}:host ::ng-deep table{caption-side:bottom;border-collapse:collapse}:host ::ng-deep caption{padding-top:.5rem;padding-bottom:.5rem;color:var(--bs-secondary-color);text-align:left}:host ::ng-deep th{text-align:inherit;text-align:-webkit-match-parent}:host ::ng-deep thead,:host ::ng-deep tbody,:host ::ng-deep tfoot,:host ::ng-deep tr,:host ::ng-deep td,:host ::ng-deep th{border-color:inherit;border-style:solid;border-width:0}:host ::ng-deep label{display:inline-block}:host ::ng-deep button{border-radius:0}:host ::ng-deep button:focus:not(:focus-visible){outline:0}:host ::ng-deep input,:host ::ng-deep button,:host ::ng-deep select,:host ::ng-deep optgroup,:host ::ng-deep textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}:host ::ng-deep button,:host ::ng-deep select{text-transform:none}:host ::ng-deep [role=button]{cursor:pointer}:host ::ng-deep select{word-wrap:normal}:host ::ng-deep select:disabled{opacity:1}:host ::ng-deep [list]:not([type=date]):not([type=datetime-local]):not([type=month]):not([type=week]):not([type=time])::-webkit-calendar-picker-indicator{display:none!important}:host ::ng-deep button,:host ::ng-deep [type=button],:host ::ng-deep [type=reset],:host ::ng-deep [type=submit]{-webkit-appearance:button}:host ::ng-deep button:not(:disabled),:host ::ng-deep [type=button]:not(:disabled),:host ::ng-deep [type=reset]:not(:disabled),:host ::ng-deep [type=submit]:not(:disabled){cursor:pointer}:host ::ng-deep ::-moz-focus-inner{padding:0;border-style:none}:host ::ng-deep textarea{resize:vertical}:host ::ng-deep fieldset{min-width:0;padding:0;margin:0;border:0}:host ::ng-deep legend{float:left;width:100%;padding:0;margin-bottom:.5rem;line-height:inherit;font-size:calc(1.275rem + .3vw)}@media(min-width:1200px){:host ::ng-deep legend{font-size:1.5rem}}:host ::ng-deep legend+*{clear:left}:host ::ng-deep ::-webkit-datetime-edit-fields-wrapper,:host ::ng-deep ::-webkit-datetime-edit-text,:host ::ng-deep ::-webkit-datetime-edit-minute,:host ::ng-deep ::-webkit-datetime-edit-hour-field,:host ::ng-deep ::-webkit-datetime-edit-day-field,:host ::ng-deep ::-webkit-datetime-edit-month-field,:host ::ng-deep ::-webkit-datetime-edit-year-field{padding:0}:host ::ng-deep ::-webkit-inner-spin-button{height:auto}:host ::ng-deep [type=search]{-webkit-appearance:textfield;outline-offset:-2px}:host ::ng-deep [type=search]::-webkit-search-cancel-button{cursor:pointer;filter:grayscale(1)}:host ::ng-deep ::-webkit-search-decoration{-webkit-appearance:none}:host ::ng-deep ::-webkit-color-swatch-wrapper{padding:0}:host ::ng-deep ::file-selector-button{font:inherit;-webkit-appearance:button}:host ::ng-deep output{display:inline-block}:host ::ng-deep iframe{border:0}:host ::ng-deep summary{display:list-item;cursor:pointer}:host ::ng-deep progress{vertical-align:baseline}:host ::ng-deep [hidden]{display:none!important}:host ::ng-deep .table{--bs-table-color-type: initial;--bs-table-bg-type: initial;--bs-table-color-state: initial;--bs-table-bg-state: initial;--bs-table-color: var(--bs-emphasis-color);--bs-table-bg: var(--bs-body-bg);--bs-table-border-color: var(--bs-border-color);--bs-table-accent-bg: transparent;--bs-table-striped-color: var(--bs-emphasis-color);--bs-table-striped-bg: rgba(var(--bs-emphasis-color-rgb), .05);--bs-table-active-color: var(--bs-emphasis-color);--bs-table-active-bg: rgba(var(--bs-emphasis-color-rgb), .1);--bs-table-hover-color: var(--bs-emphasis-color);--bs-table-hover-bg: rgba(var(--bs-emphasis-color-rgb), .075);width:100%;margin-bottom:1rem;vertical-align:top;border-color:var(--bs-table-border-color)}:host ::ng-deep .table>:not(caption)>*>*{padding:.5rem;color:var(--bs-table-color-state, var(--bs-table-color-type, var(--bs-table-color)));background-color:var(--bs-table-bg);border-bottom-width:var(--bs-border-width);box-shadow:inset 0 0 0 9999px var(--bs-table-bg-state, var(--bs-table-bg-type, var(--bs-table-accent-bg)))}:host ::ng-deep .table>tbody{vertical-align:inherit}:host ::ng-deep .table>thead{vertical-align:bottom}:host ::ng-deep .table-group-divider{border-top:calc(var(--bs-border-width) * 2) solid currentcolor}:host ::ng-deep .caption-top{caption-side:top}:host ::ng-deep .table-sm>:not(caption)>*>*{padding:.25rem}:host ::ng-deep .table-bordered>:not(caption)>*{border-width:var(--bs-border-width) 0}:host ::ng-deep .table-bordered>:not(caption)>*>*{border-width:0 var(--bs-border-width)}:host ::ng-deep .table-borderless>:not(caption)>*>*{border-bottom-width:0}:host ::ng-deep .table-borderless>:not(:first-child){border-top-width:0}:host ::ng-deep .table-striped>tbody>tr:nth-of-type(odd)>*{--bs-table-color-type: var(--bs-table-striped-color);--bs-table-bg-type: var(--bs-table-striped-bg)}:host ::ng-deep .table-striped-columns>:not(caption)>tr>:nth-child(2n){--bs-table-color-type: var(--bs-table-striped-color);--bs-table-bg-type: var(--bs-table-striped-bg)}:host ::ng-deep .table-active{--bs-table-color-state: var(--bs-table-active-color);--bs-table-bg-state: var(--bs-table-active-bg)}:host ::ng-deep .table-hover>tbody>tr:hover>*{--bs-table-color-state: var(--bs-table-hover-color);--bs-table-bg-state: var(--bs-table-hover-bg)}:host ::ng-deep .table-primary{--bs-table-color: #000;--bs-table-bg: rgb(81.0196078431%, 88.6274509804%, 99.8431372549%);--bs-table-border-color: rgb(64.8156862745%, 70.9019607843%, 79.8745098039%);--bs-table-striped-bg: rgb(76.968627451%, 84.1960784314%, 94.8509803922%);--bs-table-striped-color: #000;--bs-table-active-bg: rgb(72.9176470588%, 79.7647058824%, 89.8588235294%);--bs-table-active-color: #000;--bs-table-hover-bg: rgb(74.9431372549%, 81.9803921569%, 92.3549019608%);--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}:host ::ng-deep .table-secondary{--bs-table-color: #000;--bs-table-bg: rgb(88.4705882353%, 89.1764705882%, 89.8039215686%);--bs-table-border-color: rgb(70.7764705882%, 71.3411764706%, 71.8431372549%);--bs-table-striped-bg: rgb(84.0470588235%, 84.7176470588%, 85.3137254902%);--bs-table-striped-color: #000;--bs-table-active-bg: rgb(79.6235294118%, 80.2588235294%, 80.8235294118%);--bs-table-active-color: #000;--bs-table-hover-bg: rgb(81.8352941176%, 82.4882352941%, 83.068627451%);--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}:host ::ng-deep .table-success{--bs-table-color: #000;--bs-table-bg: rgb(81.9607843137%, 90.5882352941%, 86.5882352941%);--bs-table-border-color: rgb(65.568627451%, 72.4705882353%, 69.2705882353%);--bs-table-striped-bg: rgb(77.862745098%, 86.0588235294%, 82.2588235294%);--bs-table-striped-color: #000;--bs-table-active-bg: rgb(73.7647058824%, 81.5294117647%, 77.9294117647%);--bs-table-active-color: #000;--bs-table-hover-bg: rgb(75.8137254902%, 83.7941176471%, 80.0941176471%);--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}:host ::ng-deep .table-info{--bs-table-color: #000;--bs-table-bg: rgb(81.0196078431%, 95.8431372549%, 98.8235294118%);--bs-table-border-color: rgb(64.8156862745%, 76.6745098039%, 79.0588235294%);--bs-table-striped-bg: rgb(76.968627451%, 91.0509803922%, 93.8823529412%);--bs-table-striped-color: #000;--bs-table-active-bg: rgb(72.9176470588%, 86.2588235294%, 88.9411764706%);--bs-table-active-color: #000;--bs-table-hover-bg: rgb(74.9431372549%, 88.6549019608%, 91.4117647059%);--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}:host ::ng-deep .table-warning{--bs-table-color: #000;--bs-table-bg: rgb(100%, 95.137254902%, 80.5490196078%);--bs-table-border-color: rgb(80%, 76.1098039216%, 64.4392156863%);--bs-table-striped-bg: rgb(95%, 90.3803921569%, 76.5215686275%);--bs-table-striped-color: #000;--bs-table-active-bg: rgb(90%, 85.6235294118%, 72.4941176471%);--bs-table-active-color: #000;--bs-table-hover-bg: rgb(92.5%, 88.0019607843%, 74.5078431373%);--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}:host ::ng-deep .table-danger{--bs-table-color: #000;--bs-table-bg: rgb(97.2549019608%, 84.1568627451%, 85.4117647059%);--bs-table-border-color: rgb(77.8039215686%, 67.3254901961%, 68.3294117647%);--bs-table-striped-bg: rgb(92.3921568627%, 79.9490196078%, 81.1411764706%);--bs-table-striped-color: #000;--bs-table-active-bg: rgb(87.5294117647%, 75.7411764706%, 76.8705882353%);--bs-table-active-color: #000;--bs-table-hover-bg: rgb(89.9607843137%, 77.8450980392%, 79.0058823529%);--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}:host ::ng-deep .table-light{--bs-table-color: #000;--bs-table-bg: #f8f9fa;--bs-table-border-color: rgb(77.8039215686%, 78.1176470588%, 78.431372549%);--bs-table-striped-bg: rgb(92.3921568627%, 92.7647058824%, 93.137254902%);--bs-table-striped-color: #000;--bs-table-active-bg: rgb(87.5294117647%, 87.8823529412%, 88.2352941176%);--bs-table-active-color: #000;--bs-table-hover-bg: rgb(89.9607843137%, 90.3235294118%, 90.6862745098%);--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}:host ::ng-deep .table-dark{--bs-table-color: #fff;--bs-table-bg: #212529;--bs-table-border-color: rgb(30.3529411765%, 31.6078431373%, 32.862745098%);--bs-table-striped-bg: rgb(17.2941176471%, 18.7843137255%, 20.2745098039%);--bs-table-striped-color: #fff;--bs-table-active-bg: rgb(21.6470588235%, 23.0588235294%, 24.4705882353%);--bs-table-active-color: #fff;--bs-table-hover-bg: rgb(19.4705882353%, 20.9215686275%, 22.3725490196%);--bs-table-hover-color: #fff;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}:host ::ng-deep .table-responsive{overflow-x:auto;-webkit-overflow-scrolling:touch}@media(max-width:575.98px){:host ::ng-deep .table-responsive-sm{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media(max-width:767.98px){:host ::ng-deep .table-responsive-md{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media(max-width:991.98px){:host ::ng-deep .table-responsive-lg{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media(max-width:1199.98px){:host ::ng-deep .table-responsive-xl{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media(max-width:1399.98px){:host ::ng-deep .table-responsive-xxl{overflow-x:auto;-webkit-overflow-scrolling:touch}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
7
- }
8
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTableStylesComponent, decorators: [{
9
- type: Component,
10
- args: [{ selector: 'bs-table-styles', template: '<ng-content></ng-content>', changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:contents}:host ::ng-deep *,:host ::ng-deep *:before,:host ::ng-deep *:after{box-sizing:border-box}@media(prefers-reduced-motion:no-preference){:host ::ng-deep :root{scroll-behavior:smooth}}:host ::ng-deep body{margin:0;font-family:var(--bs-body-font-family);font-size:var(--bs-body-font-size);font-weight:var(--bs-body-font-weight);line-height:var(--bs-body-line-height);color:var(--bs-body-color);text-align:var(--bs-body-text-align);background-color:var(--bs-body-bg);-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0)}:host ::ng-deep hr{margin:1rem 0;color:inherit;border:0;border-top:var(--bs-border-width) solid;opacity:.25}:host ::ng-deep h6,:host ::ng-deep h5,:host ::ng-deep h4,:host ::ng-deep h3,:host ::ng-deep h2,:host ::ng-deep h1{margin-top:0;margin-bottom:.5rem;font-weight:500;line-height:1.2;color:var(--bs-heading-color)}:host ::ng-deep h1{font-size:calc(1.375rem + 1.5vw)}@media(min-width:1200px){:host ::ng-deep h1{font-size:2.5rem}}:host ::ng-deep h2{font-size:calc(1.325rem + .9vw)}@media(min-width:1200px){:host ::ng-deep h2{font-size:2rem}}:host ::ng-deep h3{font-size:calc(1.3rem + .6vw)}@media(min-width:1200px){:host ::ng-deep h3{font-size:1.75rem}}:host ::ng-deep h4{font-size:calc(1.275rem + .3vw)}@media(min-width:1200px){:host ::ng-deep h4{font-size:1.5rem}}:host ::ng-deep h5{font-size:1.25rem}:host ::ng-deep h6{font-size:1rem}:host ::ng-deep p{margin-top:0;margin-bottom:1rem}:host ::ng-deep abbr[title]{text-decoration:underline dotted;cursor:help;text-decoration-skip-ink:none}:host ::ng-deep address{margin-bottom:1rem;font-style:normal;line-height:inherit}:host ::ng-deep ol,:host ::ng-deep ul{padding-left:2rem}:host ::ng-deep ol,:host ::ng-deep ul,:host ::ng-deep dl{margin-top:0;margin-bottom:1rem}:host ::ng-deep ol ol,:host ::ng-deep ul ul,:host ::ng-deep ol ul,:host ::ng-deep ul ol{margin-bottom:0}:host ::ng-deep dt{font-weight:700}:host ::ng-deep dd{margin-bottom:.5rem;margin-left:0}:host ::ng-deep blockquote{margin:0 0 1rem}:host ::ng-deep b,:host ::ng-deep strong{font-weight:bolder}:host ::ng-deep small{font-size:.875em}:host ::ng-deep mark{padding:.1875em;color:var(--bs-highlight-color);background-color:var(--bs-highlight-bg)}:host ::ng-deep sub,:host ::ng-deep sup{position:relative;font-size:.75em;line-height:0;vertical-align:baseline}:host ::ng-deep sub{bottom:-.25em}:host ::ng-deep sup{top:-.5em}:host ::ng-deep a{color:rgba(var(--bs-link-color-rgb),var(--bs-link-opacity, 1));text-decoration:underline}:host ::ng-deep a:hover{--bs-link-color-rgb: var(--bs-link-hover-color-rgb)}:host ::ng-deep a:not([href]):not([class]),:host ::ng-deep a:not([href]):not([class]):hover{color:inherit;text-decoration:none}:host ::ng-deep pre,:host ::ng-deep code,:host ::ng-deep kbd,:host ::ng-deep samp{font-family:var(--bs-font-monospace);font-size:1em}:host ::ng-deep pre{display:block;margin-top:0;margin-bottom:1rem;overflow:auto;font-size:.875em}:host ::ng-deep pre code{font-size:inherit;color:inherit;word-break:normal}:host ::ng-deep code{font-size:.875em;color:var(--bs-code-color);word-wrap:break-word}a>:host ::ng-deep code{color:inherit}:host ::ng-deep kbd{padding:.1875rem .375rem;font-size:.875em;color:var(--bs-body-bg);background-color:var(--bs-body-color);border-radius:.25rem}:host ::ng-deep kbd kbd{padding:0;font-size:1em}:host ::ng-deep figure{margin:0 0 1rem}:host ::ng-deep img,:host ::ng-deep svg{vertical-align:middle}:host ::ng-deep table{caption-side:bottom;border-collapse:collapse}:host ::ng-deep caption{padding-top:.5rem;padding-bottom:.5rem;color:var(--bs-secondary-color);text-align:left}:host ::ng-deep th{text-align:inherit;text-align:-webkit-match-parent}:host ::ng-deep thead,:host ::ng-deep tbody,:host ::ng-deep tfoot,:host ::ng-deep tr,:host ::ng-deep td,:host ::ng-deep th{border-color:inherit;border-style:solid;border-width:0}:host ::ng-deep label{display:inline-block}:host ::ng-deep button{border-radius:0}:host ::ng-deep button:focus:not(:focus-visible){outline:0}:host ::ng-deep input,:host ::ng-deep button,:host ::ng-deep select,:host ::ng-deep optgroup,:host ::ng-deep textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}:host ::ng-deep button,:host ::ng-deep select{text-transform:none}:host ::ng-deep [role=button]{cursor:pointer}:host ::ng-deep select{word-wrap:normal}:host ::ng-deep select:disabled{opacity:1}:host ::ng-deep [list]:not([type=date]):not([type=datetime-local]):not([type=month]):not([type=week]):not([type=time])::-webkit-calendar-picker-indicator{display:none!important}:host ::ng-deep button,:host ::ng-deep [type=button],:host ::ng-deep [type=reset],:host ::ng-deep [type=submit]{-webkit-appearance:button}:host ::ng-deep button:not(:disabled),:host ::ng-deep [type=button]:not(:disabled),:host ::ng-deep [type=reset]:not(:disabled),:host ::ng-deep [type=submit]:not(:disabled){cursor:pointer}:host ::ng-deep ::-moz-focus-inner{padding:0;border-style:none}:host ::ng-deep textarea{resize:vertical}:host ::ng-deep fieldset{min-width:0;padding:0;margin:0;border:0}:host ::ng-deep legend{float:left;width:100%;padding:0;margin-bottom:.5rem;line-height:inherit;font-size:calc(1.275rem + .3vw)}@media(min-width:1200px){:host ::ng-deep legend{font-size:1.5rem}}:host ::ng-deep legend+*{clear:left}:host ::ng-deep ::-webkit-datetime-edit-fields-wrapper,:host ::ng-deep ::-webkit-datetime-edit-text,:host ::ng-deep ::-webkit-datetime-edit-minute,:host ::ng-deep ::-webkit-datetime-edit-hour-field,:host ::ng-deep ::-webkit-datetime-edit-day-field,:host ::ng-deep ::-webkit-datetime-edit-month-field,:host ::ng-deep ::-webkit-datetime-edit-year-field{padding:0}:host ::ng-deep ::-webkit-inner-spin-button{height:auto}:host ::ng-deep [type=search]{-webkit-appearance:textfield;outline-offset:-2px}:host ::ng-deep [type=search]::-webkit-search-cancel-button{cursor:pointer;filter:grayscale(1)}:host ::ng-deep ::-webkit-search-decoration{-webkit-appearance:none}:host ::ng-deep ::-webkit-color-swatch-wrapper{padding:0}:host ::ng-deep ::file-selector-button{font:inherit;-webkit-appearance:button}:host ::ng-deep output{display:inline-block}:host ::ng-deep iframe{border:0}:host ::ng-deep summary{display:list-item;cursor:pointer}:host ::ng-deep progress{vertical-align:baseline}:host ::ng-deep [hidden]{display:none!important}:host ::ng-deep .table{--bs-table-color-type: initial;--bs-table-bg-type: initial;--bs-table-color-state: initial;--bs-table-bg-state: initial;--bs-table-color: var(--bs-emphasis-color);--bs-table-bg: var(--bs-body-bg);--bs-table-border-color: var(--bs-border-color);--bs-table-accent-bg: transparent;--bs-table-striped-color: var(--bs-emphasis-color);--bs-table-striped-bg: rgba(var(--bs-emphasis-color-rgb), .05);--bs-table-active-color: var(--bs-emphasis-color);--bs-table-active-bg: rgba(var(--bs-emphasis-color-rgb), .1);--bs-table-hover-color: var(--bs-emphasis-color);--bs-table-hover-bg: rgba(var(--bs-emphasis-color-rgb), .075);width:100%;margin-bottom:1rem;vertical-align:top;border-color:var(--bs-table-border-color)}:host ::ng-deep .table>:not(caption)>*>*{padding:.5rem;color:var(--bs-table-color-state, var(--bs-table-color-type, var(--bs-table-color)));background-color:var(--bs-table-bg);border-bottom-width:var(--bs-border-width);box-shadow:inset 0 0 0 9999px var(--bs-table-bg-state, var(--bs-table-bg-type, var(--bs-table-accent-bg)))}:host ::ng-deep .table>tbody{vertical-align:inherit}:host ::ng-deep .table>thead{vertical-align:bottom}:host ::ng-deep .table-group-divider{border-top:calc(var(--bs-border-width) * 2) solid currentcolor}:host ::ng-deep .caption-top{caption-side:top}:host ::ng-deep .table-sm>:not(caption)>*>*{padding:.25rem}:host ::ng-deep .table-bordered>:not(caption)>*{border-width:var(--bs-border-width) 0}:host ::ng-deep .table-bordered>:not(caption)>*>*{border-width:0 var(--bs-border-width)}:host ::ng-deep .table-borderless>:not(caption)>*>*{border-bottom-width:0}:host ::ng-deep .table-borderless>:not(:first-child){border-top-width:0}:host ::ng-deep .table-striped>tbody>tr:nth-of-type(odd)>*{--bs-table-color-type: var(--bs-table-striped-color);--bs-table-bg-type: var(--bs-table-striped-bg)}:host ::ng-deep .table-striped-columns>:not(caption)>tr>:nth-child(2n){--bs-table-color-type: var(--bs-table-striped-color);--bs-table-bg-type: var(--bs-table-striped-bg)}:host ::ng-deep .table-active{--bs-table-color-state: var(--bs-table-active-color);--bs-table-bg-state: var(--bs-table-active-bg)}:host ::ng-deep .table-hover>tbody>tr:hover>*{--bs-table-color-state: var(--bs-table-hover-color);--bs-table-bg-state: var(--bs-table-hover-bg)}:host ::ng-deep .table-primary{--bs-table-color: #000;--bs-table-bg: rgb(81.0196078431%, 88.6274509804%, 99.8431372549%);--bs-table-border-color: rgb(64.8156862745%, 70.9019607843%, 79.8745098039%);--bs-table-striped-bg: rgb(76.968627451%, 84.1960784314%, 94.8509803922%);--bs-table-striped-color: #000;--bs-table-active-bg: rgb(72.9176470588%, 79.7647058824%, 89.8588235294%);--bs-table-active-color: #000;--bs-table-hover-bg: rgb(74.9431372549%, 81.9803921569%, 92.3549019608%);--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}:host ::ng-deep .table-secondary{--bs-table-color: #000;--bs-table-bg: rgb(88.4705882353%, 89.1764705882%, 89.8039215686%);--bs-table-border-color: rgb(70.7764705882%, 71.3411764706%, 71.8431372549%);--bs-table-striped-bg: rgb(84.0470588235%, 84.7176470588%, 85.3137254902%);--bs-table-striped-color: #000;--bs-table-active-bg: rgb(79.6235294118%, 80.2588235294%, 80.8235294118%);--bs-table-active-color: #000;--bs-table-hover-bg: rgb(81.8352941176%, 82.4882352941%, 83.068627451%);--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}:host ::ng-deep .table-success{--bs-table-color: #000;--bs-table-bg: rgb(81.9607843137%, 90.5882352941%, 86.5882352941%);--bs-table-border-color: rgb(65.568627451%, 72.4705882353%, 69.2705882353%);--bs-table-striped-bg: rgb(77.862745098%, 86.0588235294%, 82.2588235294%);--bs-table-striped-color: #000;--bs-table-active-bg: rgb(73.7647058824%, 81.5294117647%, 77.9294117647%);--bs-table-active-color: #000;--bs-table-hover-bg: rgb(75.8137254902%, 83.7941176471%, 80.0941176471%);--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}:host ::ng-deep .table-info{--bs-table-color: #000;--bs-table-bg: rgb(81.0196078431%, 95.8431372549%, 98.8235294118%);--bs-table-border-color: rgb(64.8156862745%, 76.6745098039%, 79.0588235294%);--bs-table-striped-bg: rgb(76.968627451%, 91.0509803922%, 93.8823529412%);--bs-table-striped-color: #000;--bs-table-active-bg: rgb(72.9176470588%, 86.2588235294%, 88.9411764706%);--bs-table-active-color: #000;--bs-table-hover-bg: rgb(74.9431372549%, 88.6549019608%, 91.4117647059%);--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}:host ::ng-deep .table-warning{--bs-table-color: #000;--bs-table-bg: rgb(100%, 95.137254902%, 80.5490196078%);--bs-table-border-color: rgb(80%, 76.1098039216%, 64.4392156863%);--bs-table-striped-bg: rgb(95%, 90.3803921569%, 76.5215686275%);--bs-table-striped-color: #000;--bs-table-active-bg: rgb(90%, 85.6235294118%, 72.4941176471%);--bs-table-active-color: #000;--bs-table-hover-bg: rgb(92.5%, 88.0019607843%, 74.5078431373%);--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}:host ::ng-deep .table-danger{--bs-table-color: #000;--bs-table-bg: rgb(97.2549019608%, 84.1568627451%, 85.4117647059%);--bs-table-border-color: rgb(77.8039215686%, 67.3254901961%, 68.3294117647%);--bs-table-striped-bg: rgb(92.3921568627%, 79.9490196078%, 81.1411764706%);--bs-table-striped-color: #000;--bs-table-active-bg: rgb(87.5294117647%, 75.7411764706%, 76.8705882353%);--bs-table-active-color: #000;--bs-table-hover-bg: rgb(89.9607843137%, 77.8450980392%, 79.0058823529%);--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}:host ::ng-deep .table-light{--bs-table-color: #000;--bs-table-bg: #f8f9fa;--bs-table-border-color: rgb(77.8039215686%, 78.1176470588%, 78.431372549%);--bs-table-striped-bg: rgb(92.3921568627%, 92.7647058824%, 93.137254902%);--bs-table-striped-color: #000;--bs-table-active-bg: rgb(87.5294117647%, 87.8823529412%, 88.2352941176%);--bs-table-active-color: #000;--bs-table-hover-bg: rgb(89.9607843137%, 90.3235294118%, 90.6862745098%);--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}:host ::ng-deep .table-dark{--bs-table-color: #fff;--bs-table-bg: #212529;--bs-table-border-color: rgb(30.3529411765%, 31.6078431373%, 32.862745098%);--bs-table-striped-bg: rgb(17.2941176471%, 18.7843137255%, 20.2745098039%);--bs-table-striped-color: #fff;--bs-table-active-bg: rgb(21.6470588235%, 23.0588235294%, 24.4705882353%);--bs-table-active-color: #fff;--bs-table-hover-bg: rgb(19.4705882353%, 20.9215686275%, 22.3725490196%);--bs-table-hover-color: #fff;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}:host ::ng-deep .table-responsive{overflow-x:auto;-webkit-overflow-scrolling:touch}@media(max-width:575.98px){:host ::ng-deep .table-responsive-sm{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media(max-width:767.98px){:host ::ng-deep .table-responsive-md{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media(max-width:991.98px){:host ::ng-deep .table-responsive-lg{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media(max-width:1199.98px){:host ::ng-deep .table-responsive-xl{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media(max-width:1399.98px){:host ::ng-deep .table-responsive-xxl{overflow-x:auto;-webkit-overflow-scrolling:touch}}\n"] }]
11
- }] });
2
+ import { input, ChangeDetectionStrategy, Component } from '@angular/core';
3
+ import { useBootstrap } from '@mintplayer/ng-bootstrap/machine';
4
+ import { bootstrapTables } from '@mintplayer/ui-core/bootstrap/tables';
12
5
 
13
6
  class BsTableComponent {
14
7
  constructor() {
@@ -28,18 +21,20 @@ class BsTableComponent {
28
21
  */
29
22
  this.ariaRowCount = input(null, /* @ts-ignore */
30
23
  ...(ngDevMode ? [{ debugName: "ariaRowCount" }] : /* istanbul ignore next */ []));
24
+ // #452: the tables partial ships with the table, scoped to its stamped <table>.
25
+ useBootstrap(bootstrapTables);
31
26
  }
32
27
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
33
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsTableComponent, isStandalone: true, selector: "bs-table", inputs: { isResponsive: { classPropertyName: "isResponsive", publicName: "isResponsive", isSignal: true, isRequired: false, transformFunction: null }, striped: { classPropertyName: "striped", publicName: "striped", isSignal: true, isRequired: false, transformFunction: null }, hover: { classPropertyName: "hover", publicName: "hover", isSignal: true, isRequired: false, transformFunction: null }, border: { classPropertyName: "border", publicName: "border", isSignal: true, isRequired: false, transformFunction: null }, ariaRowCount: { classPropertyName: "ariaRowCount", publicName: "ariaRowCount", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<bs-table-styles>\n <div class=\"d-block\" [class.table-responsive]=\"isResponsive()\" [class.nowrap]=\"isResponsive()\">\n <table class=\"table\" cellspacing=\"0\"\n [class.mb-0]=\"isResponsive()\"\n [class.table-striped]=\"striped()\"\n [class.table-hover]=\"hover()\"\n [class.border]=\"border()\"\n [attr.aria-rowcount]=\"ariaRowCount()\">\n\n <ng-content></ng-content>\n\n </table>\n </div>\n</bs-table-styles>\n", styles: [":host ::ng-deep .nowrap th,:host ::ng-deep td{white-space:nowrap}\n"], dependencies: [{ kind: "component", type: BsTableStylesComponent, selector: "bs-table-styles" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
28
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsTableComponent, isStandalone: true, selector: "bs-table", inputs: { isResponsive: { classPropertyName: "isResponsive", publicName: "isResponsive", isSignal: true, isRequired: false, transformFunction: null }, striped: { classPropertyName: "striped", publicName: "striped", isSignal: true, isRequired: false, transformFunction: null }, hover: { classPropertyName: "hover", publicName: "hover", isSignal: true, isRequired: false, transformFunction: null }, border: { classPropertyName: "border", publicName: "border", isSignal: true, isRequired: false, transformFunction: null }, ariaRowCount: { classPropertyName: "ariaRowCount", publicName: "ariaRowCount", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div class=\"d-block\" data-mps=\"table\" [class.table-responsive]=\"isResponsive()\" [class.nowrap]=\"isResponsive()\">\n <table class=\"table\" data-mps=\"table\" cellspacing=\"0\"\n [class.mb-0]=\"isResponsive()\"\n [class.table-striped]=\"striped()\"\n [class.table-hover]=\"hover()\"\n [class.border]=\"border()\"\n [attr.aria-rowcount]=\"ariaRowCount()\">\n\n <ng-content></ng-content>\n\n </table>\n</div>\n", styles: [":host ::ng-deep .table-responsive.nowrap :is(th,td){white-space:nowrap}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
34
29
  }
35
30
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTableComponent, decorators: [{
36
31
  type: Component,
37
- args: [{ selector: 'bs-table', imports: [BsTableStylesComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<bs-table-styles>\n <div class=\"d-block\" [class.table-responsive]=\"isResponsive()\" [class.nowrap]=\"isResponsive()\">\n <table class=\"table\" cellspacing=\"0\"\n [class.mb-0]=\"isResponsive()\"\n [class.table-striped]=\"striped()\"\n [class.table-hover]=\"hover()\"\n [class.border]=\"border()\"\n [attr.aria-rowcount]=\"ariaRowCount()\">\n\n <ng-content></ng-content>\n\n </table>\n </div>\n</bs-table-styles>\n", styles: [":host ::ng-deep .nowrap th,:host ::ng-deep td{white-space:nowrap}\n"] }]
38
- }], propDecorators: { isResponsive: [{ type: i0.Input, args: [{ isSignal: true, alias: "isResponsive", required: false }] }], striped: [{ type: i0.Input, args: [{ isSignal: true, alias: "striped", required: false }] }], hover: [{ type: i0.Input, args: [{ isSignal: true, alias: "hover", required: false }] }], border: [{ type: i0.Input, args: [{ isSignal: true, alias: "border", required: false }] }], ariaRowCount: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaRowCount", required: false }] }] } });
32
+ args: [{ selector: 'bs-table', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"d-block\" data-mps=\"table\" [class.table-responsive]=\"isResponsive()\" [class.nowrap]=\"isResponsive()\">\n <table class=\"table\" data-mps=\"table\" cellspacing=\"0\"\n [class.mb-0]=\"isResponsive()\"\n [class.table-striped]=\"striped()\"\n [class.table-hover]=\"hover()\"\n [class.border]=\"border()\"\n [attr.aria-rowcount]=\"ariaRowCount()\">\n\n <ng-content></ng-content>\n\n </table>\n</div>\n", styles: [":host ::ng-deep .table-responsive.nowrap :is(th,td){white-space:nowrap}\n"] }]
33
+ }], ctorParameters: () => [], propDecorators: { isResponsive: [{ type: i0.Input, args: [{ isSignal: true, alias: "isResponsive", required: false }] }], striped: [{ type: i0.Input, args: [{ isSignal: true, alias: "striped", required: false }] }], hover: [{ type: i0.Input, args: [{ isSignal: true, alias: "hover", required: false }] }], border: [{ type: i0.Input, args: [{ isSignal: true, alias: "border", required: false }] }], ariaRowCount: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaRowCount", required: false }] }] } });
39
34
 
40
35
  /**
41
36
  * Generated bundle index. Do not edit.
42
37
  */
43
38
 
44
- export { BsTableComponent, BsTableStylesComponent };
39
+ export { BsTableComponent };
45
40
  //# sourceMappingURL=mintplayer-ng-bootstrap-table.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"mintplayer-ng-bootstrap-table.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/table/src/table-styles/table-styles.component.ts","../../../../libs/mintplayer-ng-bootstrap/table/src/component/table.component.ts","../../../../libs/mintplayer-ng-bootstrap/table/src/component/table.component.html","../../../../libs/mintplayer-ng-bootstrap/table/mintplayer-ng-bootstrap-table.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component } from '@angular/core';\n\n@Component({\n selector: 'bs-table-styles',\n template: '<ng-content></ng-content>',\n styleUrls: ['./table-styles.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsTableStylesComponent {}\n","import { ChangeDetectionStrategy, Component, input } from '@angular/core';\nimport { BsTableStylesComponent } from '../table-styles/table-styles.component';\n\n@Component({\n selector: 'bs-table',\n templateUrl: './table.component.html',\n styleUrls: ['./table.component.scss'],\n imports: [BsTableStylesComponent],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsTableComponent {\n isResponsive = input(false);\n striped = input(false);\n hover = input(false);\n border = input(false);\n /**\n * Forwards `aria-rowcount` onto the wrapped `<table>` element. Used by\n * virtualised consumers that need SR users to hear \"row N of Y\" with Y matching the full\n * record set, not the DOM slice. `null` (default) leaves the attribute\n * off entirely.\n */\n ariaRowCount = input<number | null>(null);\n}\n","<bs-table-styles>\n <div class=\"d-block\" [class.table-responsive]=\"isResponsive()\" [class.nowrap]=\"isResponsive()\">\n <table class=\"table\" cellspacing=\"0\"\n [class.mb-0]=\"isResponsive()\"\n [class.table-striped]=\"striped()\"\n [class.table-hover]=\"hover()\"\n [class.border]=\"border()\"\n [attr.aria-rowcount]=\"ariaRowCount()\">\n\n <ng-content></ng-content>\n\n </table>\n </div>\n</bs-table-styles>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAQa,sBAAsB,CAAA;8GAAtB,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAtB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,sBAAsB,2EAJvB,2BAA2B,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,25aAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAI1B,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBANlC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,iBAAiB,EAAA,QAAA,EACjB,2BAA2B,EAAA,eAAA,EAEpB,uBAAuB,CAAC,MAAM,EAAA,MAAA,EAAA,CAAA,25aAAA,CAAA,EAAA;;;MCIpC,gBAAgB,CAAA;AAP7B,IAAA,WAAA,GAAA;QAQE,IAAA,CAAA,YAAY,GAAG,KAAK,CAAC,KAAK;yFAAC;QAC3B,IAAA,CAAA,OAAO,GAAG,KAAK,CAAC,KAAK;oFAAC;QACtB,IAAA,CAAA,KAAK,GAAG,KAAK,CAAC,KAAK;kFAAC;QACpB,IAAA,CAAA,MAAM,GAAG,KAAK,CAAC,KAAK;mFAAC;AACrB;;;;;AAKG;QACH,IAAA,CAAA,YAAY,GAAG,KAAK,CAAgB,IAAI;yFAAC;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,UAAA,EAAA,CAAA;kBAP5B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,UAAU,WAGX,CAAC,sBAAsB,CAAC,EAAA,eAAA,EAChB,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,yfAAA,EAAA,MAAA,EAAA,CAAA,qEAAA,CAAA,EAAA;;;AERjD;;AAEG;;;;"}
1
+ {"version":3,"file":"mintplayer-ng-bootstrap-table.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/table/src/component/table.component.ts","../../../../libs/mintplayer-ng-bootstrap/table/src/component/table.component.html","../../../../libs/mintplayer-ng-bootstrap/table/mintplayer-ng-bootstrap-table.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, input } from '@angular/core';\nimport { useBootstrap } from '@mintplayer/ng-bootstrap/machine';\nimport { bootstrapTables } from '@mintplayer/ui-core/bootstrap/tables';\n\n@Component({\n selector: 'bs-table',\n templateUrl: './table.component.html',\n styleUrls: ['./table.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsTableComponent {\n constructor() {\n // #452: the tables partial ships with the table, scoped to its stamped <table>.\n useBootstrap(bootstrapTables);\n }\n\n isResponsive = input(false);\n striped = input(false);\n hover = input(false);\n border = input(false);\n /**\n * Forwards `aria-rowcount` onto the wrapped `<table>` element. Used by\n * virtualised consumers that need SR users to hear \"row N of Y\" with Y matching the full\n * record set, not the DOM slice. `null` (default) leaves the attribute\n * off entirely.\n */\n ariaRowCount = input<number | null>(null);\n}\n","<div class=\"d-block\" data-mps=\"table\" [class.table-responsive]=\"isResponsive()\" [class.nowrap]=\"isResponsive()\">\n <table class=\"table\" data-mps=\"table\" cellspacing=\"0\"\n [class.mb-0]=\"isResponsive()\"\n [class.table-striped]=\"striped()\"\n [class.table-hover]=\"hover()\"\n [class.border]=\"border()\"\n [attr.aria-rowcount]=\"ariaRowCount()\">\n\n <ng-content></ng-content>\n\n </table>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAUa,gBAAgB,CAAA;AAC3B,IAAA,WAAA,GAAA;QAKA,IAAA,CAAA,YAAY,GAAG,KAAK,CAAC,KAAK;yFAAC;QAC3B,IAAA,CAAA,OAAO,GAAG,KAAK,CAAC,KAAK;oFAAC;QACtB,IAAA,CAAA,KAAK,GAAG,KAAK,CAAC,KAAK;kFAAC;QACpB,IAAA,CAAA,MAAM,GAAG,KAAK,CAAC,KAAK;mFAAC;AACrB;;;;;AAKG;QACH,IAAA,CAAA,YAAY,GAAG,KAAK,CAAgB,IAAI;yFAAC;;QAbvC,YAAY,CAAC,eAAe,CAAC;IAC/B;8GAJW,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAhB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,gBAAgB,2tBCV7B,gdAYA,EAAA,MAAA,EAAA,CAAA,2EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FDFa,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAN5B,SAAS;+BACE,UAAU,EAAA,eAAA,EAGH,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,gdAAA,EAAA,MAAA,EAAA,CAAA,2EAAA,CAAA,EAAA;;;AERjD;;AAEG;;;;"}
@@ -2,8 +2,9 @@ import * as i0 from '@angular/core';
2
2
  import { inject, ElementRef, model, input, numberAttribute, output, ChangeDetectionStrategy, Component, Injector, DestroyRef, signal, effect, untracked, forwardRef, Directive, computed, booleanAttribute } from '@angular/core';
3
3
  import { useCore, useScopedStyles, MpPropsDirective } from '@mintplayer/ng-bootstrap/machine';
4
4
  import { timeListCore, timepickerScopedStyles, minutesOfDay, timepickerCore } from '@mintplayer/ui-core/timepicker';
5
- import * as i2 from '@mintplayer/ng-bootstrap/a11y';
6
- import { BsControlValidityDirective } from '@mintplayer/ng-bootstrap/a11y';
5
+ import { bootstrapForms } from '@mintplayer/ui-core/bootstrap/forms';
6
+ import * as i2 from '@mintplayer/ng-bootstrap/a11y/forms';
7
+ import { BsControlValidityDirective } from '@mintplayer/ng-bootstrap/a11y/forms';
7
8
  import { NG_VALUE_ACCESSOR, NG_VALIDATORS } from '@angular/forms';
8
9
 
9
10
  // GENERATED from the timepicker manifest (time-list) by @mintplayer/nx-component-compiler. Do not edit.
@@ -33,6 +34,7 @@ class BsTimeListComponent {
33
34
  this.#core = useCore(timeListCore, { inputs: () => ({ selectedTime: this.selectedTime(), step: this.step(), minMinutes: this.minMinutes(), maxMinutes: this.maxMinutes(), hour12: this.hour12(), locale: this.locale(), labels: this.labels() }), idPrefix: 'bs-time-list', outputs: { selectedTimeChange: this.selectedtimechange }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'timepicker' }), models: { selectedTime: this.selectedTime } });
34
35
  /** The template's props. */
35
36
  this.props = this.#core.props;
37
+ useScopedStyles(bootstrapForms.key, bootstrapForms.css, { order: bootstrapForms.order });
36
38
  useScopedStyles('timepicker', timepickerScopedStyles);
37
39
  }
38
40
  /** Focus the roving slot. */
@@ -208,6 +210,7 @@ class BsTimepickerComponent {
208
210
  this.#core = useCore(timepickerCore, { inputs: extendInputs(() => ({ selectedTime: this.selectedTime(), step: this.step(), min: this.min(), max: this.max(), hour12: this.hour12(), locale: this.locale(), disabled: this.disabled(), placeholder: this.placeholder(), required: this.required(), invalid: this.invalid(), errorText: this.errorText(), inputLabel: this.inputLabel(), name: this.name(), labels: this.labels() })), idPrefix: 'bs-timepicker', outputs: { selectedTimeChange: this.selectedtimechange, openChange: this.openchange }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'timepicker' }), models: { selectedTime: this.selectedTime } });
209
211
  /** The template's props. */
210
212
  this.props = this.#core.props;
213
+ useScopedStyles(bootstrapForms.key, bootstrapForms.css, { order: bootstrapForms.order });
211
214
  useScopedStyles('timepicker', timepickerScopedStyles);
212
215
  }
213
216
  /** Open the list (ignored when disabled). */