@mintplayer/ng-bootstrap 21.6.0 → 21.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs +34 -73
- package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-alert.mjs +10 -31
- package/fesm2022/mintplayer-ng-bootstrap-alert.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-badge.mjs +4 -4
- package/fesm2022/mintplayer-ng-bootstrap-badge.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-breadcrumb.mjs +12 -29
- package/fesm2022/mintplayer-ng-bootstrap-breadcrumb.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-button-group.mjs +5 -5
- package/fesm2022/mintplayer-ng-bootstrap-button-group.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-button-type.mjs +17 -19
- package/fesm2022/mintplayer-ng-bootstrap-button-type.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-calendar-month.mjs +9 -11
- package/fesm2022/mintplayer-ng-bootstrap-calendar-month.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs +5 -5
- package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-card.mjs +14 -41
- package/fesm2022/mintplayer-ng-bootstrap-card.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs +47 -89
- package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-close.mjs +4 -4
- package/fesm2022/mintplayer-ng-bootstrap-close.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs +10 -13
- package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs +294 -383
- package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-container.mjs +5 -5
- package/fesm2022/mintplayer-ng-bootstrap-container.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-context-menu.mjs +10 -44
- package/fesm2022/mintplayer-ng-bootstrap-context-menu.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-copy.mjs +16 -23
- package/fesm2022/mintplayer-ng-bootstrap-copy.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs +24 -74
- package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs +6 -8
- package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-dock.mjs +43 -73
- package/fesm2022/mintplayer-ng-bootstrap-dock.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-dropdown-divider.mjs +8 -12
- package/fesm2022/mintplayer-ng-bootstrap-dropdown-divider.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs +23 -60
- package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-dropdown.mjs +34 -86
- package/fesm2022/mintplayer-ng-bootstrap-dropdown.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-enhanced-paste.mjs +9 -12
- package/fesm2022/mintplayer-ng-bootstrap-enhanced-paste.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-enum.mjs +3 -3
- package/fesm2022/mintplayer-ng-bootstrap-file-upload.mjs +35 -96
- package/fesm2022/mintplayer-ng-bootstrap-file-upload.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs +9 -10
- package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-font-color.mjs +3 -4
- package/fesm2022/mintplayer-ng-bootstrap-font-color.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-for.mjs +23 -26
- package/fesm2022/mintplayer-ng-bootstrap-for.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-form.mjs +29 -54
- package/fesm2022/mintplayer-ng-bootstrap-form.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-grid.mjs +35 -67
- package/fesm2022/mintplayer-ng-bootstrap-grid.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-has-overlay.mjs +5 -5
- package/fesm2022/mintplayer-ng-bootstrap-has-overlay.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-has-property.mjs +3 -4
- package/fesm2022/mintplayer-ng-bootstrap-has-property.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-in-list.mjs +3 -4
- package/fesm2022/mintplayer-ng-bootstrap-in-list.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs +5 -5
- package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-instance-of.mjs +75 -114
- package/fesm2022/mintplayer-ng-bootstrap-instance-of.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-let.mjs +16 -15
- package/fesm2022/mintplayer-ng-bootstrap-let.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-linify.mjs +3 -4
- package/fesm2022/mintplayer-ng-bootstrap-linify.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-list-group.mjs +17 -44
- package/fesm2022/mintplayer-ng-bootstrap-list-group.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-markdown.mjs +12 -16
- package/fesm2022/mintplayer-ng-bootstrap-markdown.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-marquee.mjs +5 -5
- package/fesm2022/mintplayer-ng-bootstrap-marquee.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-modal.mjs +74 -160
- package/fesm2022/mintplayer-ng-bootstrap-modal.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-multiselect.mjs +25 -87
- package/fesm2022/mintplayer-ng-bootstrap-multiselect.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-navbar-toggler.mjs +8 -9
- package/fesm2022/mintplayer-ng-bootstrap-navbar-toggler.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs +136 -232
- package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-navigation-lock.mjs +40 -68
- package/fesm2022/mintplayer-ng-bootstrap-navigation-lock.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-no-noscript.mjs +11 -15
- package/fesm2022/mintplayer-ng-bootstrap-no-noscript.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs +70 -138
- package/fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-ordinal-number.mjs +3 -4
- package/fesm2022/mintplayer-ng-bootstrap-ordinal-number.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs +4 -4
- package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-parallax.mjs +5 -5
- package/fesm2022/mintplayer-ng-bootstrap-parallax.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-placeholder.mjs +16 -39
- package/fesm2022/mintplayer-ng-bootstrap-placeholder.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-playlist-toggler.mjs +8 -9
- package/fesm2022/mintplayer-ng-bootstrap-playlist-toggler.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-popover.mjs +40 -70
- package/fesm2022/mintplayer-ng-bootstrap-popover.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-progress-bar.mjs +28 -97
- package/fesm2022/mintplayer-ng-bootstrap-progress-bar.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-range.mjs +30 -58
- package/fesm2022/mintplayer-ng-bootstrap-range.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-rating.mjs +10 -17
- package/fesm2022/mintplayer-ng-bootstrap-rating.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-resizable.mjs +96 -153
- package/fesm2022/mintplayer-ng-bootstrap-resizable.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs +26 -41
- package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs +30 -61
- package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-searchbox.mjs +59 -108
- package/fesm2022/mintplayer-ng-bootstrap-searchbox.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-select.mjs +99 -131
- package/fesm2022/mintplayer-ng-bootstrap-select.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-select2.mjs +63 -106
- package/fesm2022/mintplayer-ng-bootstrap-select2.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-shell.mjs +15 -33
- package/fesm2022/mintplayer-ng-bootstrap-shell.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs +16 -33
- package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-slugify.mjs +3 -4
- package/fesm2022/mintplayer-ng-bootstrap-slugify.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-spinner.mjs +4 -4
- package/fesm2022/mintplayer-ng-bootstrap-spinner.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-split-string.mjs +3 -4
- package/fesm2022/mintplayer-ng-bootstrap-split-string.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-sticky-footer.mjs +16 -35
- package/fesm2022/mintplayer-ng-bootstrap-sticky-footer.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs +39 -81
- package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-table.mjs +4 -4
- package/fesm2022/mintplayer-ng-bootstrap-table.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs +13 -17
- package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-toast.mjs +80 -154
- package/fesm2022/mintplayer-ng-bootstrap-toast.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-toggle-button.mjs +116 -153
- package/fesm2022/mintplayer-ng-bootstrap-toggle-button.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs +25 -62
- package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs +16 -33
- package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-trust-html.mjs +3 -4
- package/fesm2022/mintplayer-ng-bootstrap-trust-html.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs +13 -20
- package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-uc-first.mjs +3 -4
- package/fesm2022/mintplayer-ng-bootstrap-uc-first.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-user-agent.mjs +14 -26
- package/fesm2022/mintplayer-ng-bootstrap-user-agent.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-viewport.mjs +6 -9
- package/fesm2022/mintplayer-ng-bootstrap-viewport.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-word-count.mjs +3 -4
- package/fesm2022/mintplayer-ng-bootstrap-word-count.mjs.map +1 -1
- package/package.json +4 -4
- package/types/mintplayer-ng-bootstrap-accordion.d.ts +20 -30
- package/types/mintplayer-ng-bootstrap-alert.d.ts +3 -9
- package/types/mintplayer-ng-bootstrap-breadcrumb.d.ts +3 -10
- package/types/mintplayer-ng-bootstrap-button-type.d.ts +4 -4
- package/types/mintplayer-ng-bootstrap-card.d.ts +5 -12
- package/types/mintplayer-ng-bootstrap-carousel.d.ts +6 -14
- package/types/mintplayer-ng-bootstrap-code-snippet.d.ts +3 -3
- package/types/mintplayer-ng-bootstrap-color-picker.d.ts +43 -54
- package/types/mintplayer-ng-bootstrap-context-menu.d.ts +2 -11
- package/types/mintplayer-ng-bootstrap-copy.d.ts +5 -7
- package/types/mintplayer-ng-bootstrap-datatable.d.ts +7 -18
- package/types/mintplayer-ng-bootstrap-dock.d.ts +18 -31
- package/types/mintplayer-ng-bootstrap-dropdown-divider.d.ts +0 -1
- package/types/mintplayer-ng-bootstrap-dropdown-menu.d.ts +11 -22
- package/types/mintplayer-ng-bootstrap-dropdown.d.ts +16 -28
- package/types/mintplayer-ng-bootstrap-enhanced-paste.d.ts +1 -2
- package/types/mintplayer-ng-bootstrap-file-upload.d.ts +16 -27
- package/types/mintplayer-ng-bootstrap-floating-labels.d.ts +2 -3
- package/types/mintplayer-ng-bootstrap-for.d.ts +3 -3
- package/types/mintplayer-ng-bootstrap-form.d.ts +11 -20
- package/types/mintplayer-ng-bootstrap-grid.d.ts +23 -35
- package/types/mintplayer-ng-bootstrap-instance-of.d.ts +34 -41
- package/types/mintplayer-ng-bootstrap-let.d.ts +3 -2
- package/types/mintplayer-ng-bootstrap-list-group.d.ts +4 -13
- package/types/mintplayer-ng-bootstrap-modal.d.ts +13 -29
- package/types/mintplayer-ng-bootstrap-multiselect.d.ts +8 -21
- package/types/mintplayer-ng-bootstrap-navbar.d.ts +38 -51
- package/types/mintplayer-ng-bootstrap-navigation-lock.d.ts +8 -15
- package/types/mintplayer-ng-bootstrap-no-noscript.d.ts +1 -1
- package/types/mintplayer-ng-bootstrap-offcanvas.d.ts +20 -30
- package/types/mintplayer-ng-bootstrap-placeholder.d.ts +3 -11
- package/types/mintplayer-ng-bootstrap-popover.d.ts +18 -31
- package/types/mintplayer-ng-bootstrap-progress-bar.d.ts +9 -27
- package/types/mintplayer-ng-bootstrap-range.d.ts +14 -22
- package/types/mintplayer-ng-bootstrap-rating.d.ts +0 -2
- package/types/mintplayer-ng-bootstrap-resizable.d.ts +23 -32
- package/types/mintplayer-ng-bootstrap-scheduler.d.ts +3 -9
- package/types/mintplayer-ng-bootstrap-scrollspy.d.ts +7 -16
- package/types/mintplayer-ng-bootstrap-searchbox.d.ts +20 -34
- package/types/mintplayer-ng-bootstrap-select.d.ts +24 -30
- package/types/mintplayer-ng-bootstrap-select2.d.ts +21 -33
- package/types/mintplayer-ng-bootstrap-shell.d.ts +12 -19
- package/types/mintplayer-ng-bootstrap-signature-pad.d.ts +2 -3
- package/types/mintplayer-ng-bootstrap-sticky-footer.d.ts +4 -12
- package/types/mintplayer-ng-bootstrap-tab-control.d.ts +9 -21
- package/types/mintplayer-ng-bootstrap-timepicker.d.ts +3 -3
- package/types/mintplayer-ng-bootstrap-toast.d.ts +12 -20
- package/types/mintplayer-ng-bootstrap-toggle-button.d.ts +20 -29
- package/types/mintplayer-ng-bootstrap-tooltip.d.ts +4 -24
- package/types/mintplayer-ng-bootstrap-treeview.d.ts +13 -21
- package/types/mintplayer-ng-bootstrap-typeahead.d.ts +3 -3
- package/types/mintplayer-ng-bootstrap-user-agent.d.ts +2 -3
- package/types/mintplayer-ng-bootstrap-viewport.d.ts +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mintplayer-ng-bootstrap-grid.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/grid/src/component/grid.component.ts","../../../../libs/mintplayer-ng-bootstrap/grid/src/component/grid.component.html","../../../../libs/mintplayer-ng-bootstrap/grid/src/directives/row/row.directive.ts","../../../../libs/mintplayer-ng-bootstrap/grid/src/directives/column/column.directive.ts","../../../../libs/mintplayer-ng-bootstrap/grid/src/directives/col-form-label/col-form-label.directive.ts","../../../../libs/mintplayer-ng-bootstrap/grid/src/grid.module.ts","../../../../libs/mintplayer-ng-bootstrap/grid/mintplayer-ng-bootstrap-grid.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport { Breakpoint } from '@mintplayer/ng-bootstrap';\n\n@Component({\n selector: 'bs-grid',\n templateUrl: './grid.component.html',\n styleUrls: ['./grid.component.scss'],\n standalone: false,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsGridComponent {\n\n stopFullWidthAt = input<Breakpoint | 'never'>('sm');\n\n containerClass = computed(() => {\n const stopFullWidthAt = this.stopFullWidthAt();\n switch (stopFullWidthAt) {\n case 'sm': return 'container';\n case 'never': return 'container-fluid';\n default: return `container-${stopFullWidthAt}`;\n }\n });\n}\n","<bs-container>\n <div [class]=\"containerClass()\">\n <ng-content></ng-content>\n </div>\n</bs-container>","import { Directive, HostBinding } from '@angular/core';\n\n@Directive({\n selector: '[bsRow]',\n standalone: false,\n})\nexport class BsGridRowDirective {\n @HostBinding('class.row') rowClass = true;\n}\n","import { Directive, HostBinding, Input, computed, input } from '@angular/core';\n\n@Directive({\n selector: '[xxs],[xs],[sm],[md],[lg],[xl],[xxl]',\n standalone: false,\n})\nexport class BsGridColumnDirective {\n\n xxs = input<number | undefined>(undefined);\n xs = input<number | undefined>(undefined);\n sm = input<number | undefined>(undefined);\n md = input<number | undefined>(undefined);\n lg = input<number | undefined>(undefined);\n xl = input<number | undefined>(undefined);\n xxl = input<number | undefined>(undefined);\n\n classList = computed(() => {\n const sizes = {\n xxs: this.xxs(),\n xs: this.xs(),\n sm: this.sm(),\n md: this.md(),\n lg: this.lg(),\n xl: this.xl(),\n xxl: this.xxl(),\n };\n return Object.keys(sizes)\n .map(key => ({\n key,\n value: (<any>sizes)[key],\n }))\n .filter(v => v.value)\n .map(v => {\n switch (v.key) {\n case '': return 'col';\n case 'xxs': return `col-${v.value}`;\n default: return `col-${v.key}-${v.value}`;\n }\n })\n .join(' ');\n });\n\n @HostBinding('class') get classBinding() {\n return this.classList() || null;\n }\n}\n\n@Directive({\n selector: '[col]',\n standalone: false,\n})\nexport class BsGridColDirective {\n @HostBinding('class.col') colClass = true;\n @Input() set col(value: undefined) {}\n}","import { Directive, HostBinding } from '@angular/core';\n\n@Directive({\n selector: '[bsColFormLabel]',\n standalone: false,\n})\nexport class BsColFormLabelDirective {\n @HostBinding('class.col-form-label') colFormLabelClass = true;\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { BsContainerComponent } from '@mintplayer/ng-bootstrap/container';\nimport { BsGridComponent } from './component/grid.component';\nimport { BsGridRowDirective } from './directives/row/row.directive';\nimport { BsGridColDirective, BsGridColumnDirective } from './directives/column/column.directive';\nimport { BsColFormLabelDirective } from './directives/col-form-label/col-form-label.directive';\n\n@NgModule({\n declarations: [BsGridComponent, BsGridRowDirective, BsGridColumnDirective, BsGridColDirective, BsColFormLabelDirective],\n imports: [CommonModule, BsContainerComponent],\n exports: [BsGridComponent, BsGridRowDirective, BsGridColumnDirective, BsGridColDirective, BsColFormLabelDirective],\n})\nexport class BsGridModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MAUa,eAAe,CAAA;AAP5B,IAAA,WAAA,GAAA;AASE,QAAA,IAAA,CAAA,eAAe,GAAG,KAAK,CAAuB,IAAI,2DAAC;AAEnD,QAAA,IAAA,CAAA,cAAc,GAAG,QAAQ,CAAC,MAAK;AAC7B,YAAA,MAAM,eAAe,GAAG,IAAI,CAAC,eAAe,EA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YAAY,EAAE,oBAAoB,CAAA,EAAA,OAAA,EAAA,CAClC,eAAe,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,uBAAuB,CAAA,EAAA,CAAA,CAAA;+GAEtG,YAAY,EAAA,OAAA,EAAA,CAHb,YAAY,EAAE,oBAAoB,CAAA,EAAA,CAAA,CAAA;;2FAGjC,YAAY,EAAA,UAAA,EAAA,CAAA;kBALxB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,eAAe,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,uBAAuB,CAAC;AACvH,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,oBAAoB,CAAC;oBAC7C,OAAO,EAAE,CAAC,eAAe,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,uBAAuB,CAAC;AACnH,iBAAA;;;ACZD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"mintplayer-ng-bootstrap-grid.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/grid/src/component/grid.component.ts","../../../../libs/mintplayer-ng-bootstrap/grid/src/component/grid.component.html","../../../../libs/mintplayer-ng-bootstrap/grid/src/directives/row/row.directive.ts","../../../../libs/mintplayer-ng-bootstrap/grid/src/directives/column/column.directive.ts","../../../../libs/mintplayer-ng-bootstrap/grid/src/directives/col-form-label/col-form-label.directive.ts","../../../../libs/mintplayer-ng-bootstrap/grid/mintplayer-ng-bootstrap-grid.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport { Breakpoint } from '@mintplayer/ng-bootstrap';\nimport { BsContainerComponent } from '@mintplayer/ng-bootstrap/container';\n\n@Component({\n selector: 'bs-grid',\n templateUrl: './grid.component.html',\n styleUrls: ['./grid.component.scss'],\n imports: [BsContainerComponent],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsGridComponent {\n\n stopFullWidthAt = input<Breakpoint | 'never'>('sm');\n\n containerClass = computed(() => {\n const stopFullWidthAt = this.stopFullWidthAt();\n switch (stopFullWidthAt) {\n case 'sm': return 'container';\n case 'never': return 'container-fluid';\n default: return `container-${stopFullWidthAt}`;\n }\n });\n}\n","<bs-container>\n <div [class]=\"containerClass()\">\n <ng-content></ng-content>\n </div>\n</bs-container>","import { Directive } from '@angular/core';\n\n@Directive({\n selector: '[bsRow]',\n host: {\n '[class.row]': 'true',\n },\n})\nexport class BsGridRowDirective {\n}\n","import { Directive, computed, input } from '@angular/core';\n\n@Directive({\n selector: '[xxs],[xs],[sm],[md],[lg],[xl],[xxl]',\n host: {\n '[class]': 'classList()',\n },\n})\nexport class BsGridColumnDirective {\n\n xxs = input<number | undefined>(undefined);\n xs = input<number | undefined>(undefined);\n sm = input<number | undefined>(undefined);\n md = input<number | undefined>(undefined);\n lg = input<number | undefined>(undefined);\n xl = input<number | undefined>(undefined);\n xxl = input<number | undefined>(undefined);\n\n classList = computed(() => {\n const sizes = {\n xxs: this.xxs(),\n xs: this.xs(),\n sm: this.sm(),\n md: this.md(),\n lg: this.lg(),\n xl: this.xl(),\n xxl: this.xxl(),\n };\n return Object.keys(sizes)\n .map(key => ({\n key,\n value: (<any>sizes)[key],\n }))\n .filter(v => v.value)\n .map(v => {\n switch (v.key) {\n case '': return 'col';\n case 'xxs': return `col-${v.value}`;\n default: return `col-${v.key}-${v.value}`;\n }\n })\n .join(' ') || null;\n });\n}\n\n@Directive({\n selector: '[col]',\n host: {\n '[class.col]': 'true',\n },\n})\nexport class BsGridColDirective {\n readonly col = input<undefined>(undefined);\n}\n","import { Directive } from '@angular/core';\n\n@Directive({\n selector: '[bsColFormLabel]',\n host: {\n '[class.col-form-label]': 'true',\n },\n})\nexport class BsColFormLabelDirective {\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAWa,eAAe,CAAA;AAP5B,IAAA,WAAA,GAAA;AASE,QAAA,IAAA,CAAA,eA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angular/core';
|
|
2
|
+
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
3
|
|
|
4
4
|
class BsHasOverlayComponent {
|
|
5
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
6
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.
|
|
5
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: BsHasOverlayComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
6
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.6", type: BsHasOverlayComponent, isStandalone: true, selector: "bs-has-overlay", ngImport: i0, template: "", styles: ["::ng-deep .cdk-overlay-container,::ng-deep .cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}::ng-deep .cdk-overlay-container{position:fixed;z-index:1000}::ng-deep .cdk-overlay-container:empty{display:none}::ng-deep .cdk-global-overlay-wrapper{display:flex;position:absolute;z-index:1000}::ng-deep .cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%;z-index:1000}::ng-deep .cdk-overlay-backdrop{position:absolute;inset:0;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);opacity:0;touch-action:manipulation;z-index:1000;transition:opacity .4s cubic-bezier(.25,.8,.25,1)}@media(prefers-reduced-motion){::ng-deep .cdk-overlay-backdrop{transition-duration:1ms}}::ng-deep .cdk-overlay-backdrop-showing{opacity:1}@media(forced-colors:active){::ng-deep .cdk-overlay-backdrop-showing{opacity:.6}}::ng-deep .cdk-overlay-dark-backdrop{background:#00000052}::ng-deep .cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}::ng-deep .cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing,::ng-deep .cdk-high-contrast-active .cdk-overlay-transparent-backdrop{opacity:0;visibility:visible}::ng-deep .cdk-overlay-backdrop-noop-animation{transition:none}::ng-deep .cdk-overlay-connected-position-bounding-box{position:absolute;display:flex;flex-direction:column;min-width:1px;min-height:1px;z-index:1000}::ng-deep .cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}::ng-deep .cdk-overlay-popover{background:none;border:none;padding:0;outline:0;overflow:visible;position:fixed;pointer-events:none;white-space:normal;color:inherit;text-decoration:none;width:100%;height:100%;inset:0 auto auto 0}::ng-deep .cdk-overlay-popover::backdrop{display:none}::ng-deep .cdk-overlay-popover .cdk-overlay-backdrop{position:fixed;z-index:auto}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
7
7
|
}
|
|
8
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
8
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: BsHasOverlayComponent, decorators: [{
|
|
9
9
|
type: Component,
|
|
10
|
-
args: [{ selector: 'bs-has-overlay',
|
|
10
|
+
args: [{ selector: 'bs-has-overlay', changeDetection: ChangeDetectionStrategy.OnPush, template: "", styles: ["::ng-deep .cdk-overlay-container,::ng-deep .cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}::ng-deep .cdk-overlay-container{position:fixed;z-index:1000}::ng-deep .cdk-overlay-container:empty{display:none}::ng-deep .cdk-global-overlay-wrapper{display:flex;position:absolute;z-index:1000}::ng-deep .cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%;z-index:1000}::ng-deep .cdk-overlay-backdrop{position:absolute;inset:0;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);opacity:0;touch-action:manipulation;z-index:1000;transition:opacity .4s cubic-bezier(.25,.8,.25,1)}@media(prefers-reduced-motion){::ng-deep .cdk-overlay-backdrop{transition-duration:1ms}}::ng-deep .cdk-overlay-backdrop-showing{opacity:1}@media(forced-colors:active){::ng-deep .cdk-overlay-backdrop-showing{opacity:.6}}::ng-deep .cdk-overlay-dark-backdrop{background:#00000052}::ng-deep .cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}::ng-deep .cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing,::ng-deep .cdk-high-contrast-active .cdk-overlay-transparent-backdrop{opacity:0;visibility:visible}::ng-deep .cdk-overlay-backdrop-noop-animation{transition:none}::ng-deep .cdk-overlay-connected-position-bounding-box{position:absolute;display:flex;flex-direction:column;min-width:1px;min-height:1px;z-index:1000}::ng-deep .cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}::ng-deep .cdk-overlay-popover{background:none;border:none;padding:0;outline:0;overflow:visible;position:fixed;pointer-events:none;white-space:normal;color:inherit;text-decoration:none;width:100%;height:100%;inset:0 auto auto 0}::ng-deep .cdk-overlay-popover::backdrop{display:none}::ng-deep .cdk-overlay-popover .cdk-overlay-backdrop{position:fixed;z-index:auto}\n"] }]
|
|
11
11
|
}] });
|
|
12
12
|
|
|
13
13
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mintplayer-ng-bootstrap-has-overlay.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/has-overlay/src/has-overlay/has-overlay.component.ts","../../../../libs/mintplayer-ng-bootstrap/has-overlay/src/has-overlay/has-overlay.component.html","../../../../libs/mintplayer-ng-bootstrap/has-overlay/mintplayer-ng-bootstrap-has-overlay.ts"],"sourcesContent":["import { Component } from '@angular/core';\n\n@Component({\n selector: 'bs-has-overlay',\n
|
|
1
|
+
{"version":3,"file":"mintplayer-ng-bootstrap-has-overlay.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/has-overlay/src/has-overlay/has-overlay.component.ts","../../../../libs/mintplayer-ng-bootstrap/has-overlay/src/has-overlay/has-overlay.component.html","../../../../libs/mintplayer-ng-bootstrap/has-overlay/mintplayer-ng-bootstrap-has-overlay.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy} from '@angular/core';\n\n@Component({\n selector: 'bs-has-overlay',\n templateUrl: './has-overlay.component.html',\n styleUrls: ['./has-overlay.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsHasOverlayComponent {}\n","","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAQa,qBAAqB,CAAA;8GAArB,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAArB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,qBAAqB,0ECRlC,EAAA,EAAA,MAAA,EAAA,CAAA,63DAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FDQa,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBANjC,SAAS;+BACE,gBAAgB,EAAA,eAAA,EAGT,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,EAAA,EAAA,MAAA,EAAA,CAAA,63DAAA,CAAA,EAAA;;;AENjD;;AAEG;;;;"}
|
|
@@ -5,14 +5,13 @@ class BsHasPropertyPipe {
|
|
|
5
5
|
transform(value, propName) {
|
|
6
6
|
return propName in value;
|
|
7
7
|
}
|
|
8
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
9
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.
|
|
8
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: BsHasPropertyPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
9
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.1.6", ngImport: i0, type: BsHasPropertyPipe, isStandalone: true, name: "bsHasProperty" }); }
|
|
10
10
|
}
|
|
11
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
11
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: BsHasPropertyPipe, decorators: [{
|
|
12
12
|
type: Pipe,
|
|
13
13
|
args: [{
|
|
14
14
|
name: 'bsHasProperty',
|
|
15
|
-
standalone: true,
|
|
16
15
|
}]
|
|
17
16
|
}] });
|
|
18
17
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mintplayer-ng-bootstrap-has-property.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/has-property/src/has-property.pipe.ts","../../../../libs/mintplayer-ng-bootstrap/has-property/mintplayer-ng-bootstrap-has-property.ts"],"sourcesContent":["import { Pipe, PipeTransform } from '@angular/core';\n\n@Pipe({\n name: 'bsHasProperty',\n
|
|
1
|
+
{"version":3,"file":"mintplayer-ng-bootstrap-has-property.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/has-property/src/has-property.pipe.ts","../../../../libs/mintplayer-ng-bootstrap/has-property/mintplayer-ng-bootstrap-has-property.ts"],"sourcesContent":["import { Pipe, PipeTransform } from '@angular/core';\n\n@Pipe({\n name: 'bsHasProperty',\n})\nexport class BsHasPropertyPipe implements PipeTransform {\n transform(value: Object, propName: string) {\n return propName in value;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAKa,iBAAiB,CAAA;IAC5B,SAAS,CAAC,KAAa,EAAE,QAAgB,EAAA;QACvC,OAAO,QAAQ,IAAI,KAAK;IAC1B;8GAHW,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;4GAAjB,iBAAiB,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,eAAA,EAAA,CAAA,CAAA;;2FAAjB,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAH7B,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACJ,oBAAA,IAAI,EAAE,eAAe;AACtB,iBAAA;;;ACJD;;AAEG;;;;"}
|
|
@@ -5,14 +5,13 @@ class BsInListPipe {
|
|
|
5
5
|
transform(items, parameter) {
|
|
6
6
|
return items.some(item => item.id === parameter);
|
|
7
7
|
}
|
|
8
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
9
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.
|
|
8
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: BsInListPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
9
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.1.6", ngImport: i0, type: BsInListPipe, isStandalone: true, name: "bsInList" }); }
|
|
10
10
|
}
|
|
11
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
11
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: BsInListPipe, decorators: [{
|
|
12
12
|
type: Pipe,
|
|
13
13
|
args: [{
|
|
14
14
|
name: 'bsInList',
|
|
15
|
-
standalone: true,
|
|
16
15
|
}]
|
|
17
16
|
}] });
|
|
18
17
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mintplayer-ng-bootstrap-in-list.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/in-list/src/in-list.pipe.ts","../../../../libs/mintplayer-ng-bootstrap/in-list/mintplayer-ng-bootstrap-in-list.ts"],"sourcesContent":["import { Pipe, PipeTransform } from '@angular/core';\nimport { HasId } from '@mintplayer/ng-bootstrap/has-id';\n\n@Pipe({\n name: 'bsInList',\n
|
|
1
|
+
{"version":3,"file":"mintplayer-ng-bootstrap-in-list.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/in-list/src/in-list.pipe.ts","../../../../libs/mintplayer-ng-bootstrap/in-list/mintplayer-ng-bootstrap-in-list.ts"],"sourcesContent":["import { Pipe, PipeTransform } from '@angular/core';\nimport { HasId } from '@mintplayer/ng-bootstrap/has-id';\n\n@Pipe({\n name: 'bsInList',\n})\nexport class BsInListPipe<T> implements PipeTransform {\n transform(items: HasId<T>[], parameter: T) {\n return items.some(item => item.id === parameter);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAMa,YAAY,CAAA;IACvB,SAAS,CAAC,KAAiB,EAAE,SAAY,EAAA;AACvC,QAAA,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,EAAE,KAAK,SAAS,CAAC;IAClD;8GAHW,YAAY,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;4GAAZ,YAAY,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,UAAA,EAAA,CAAA,CAAA;;2FAAZ,YAAY,EAAA,UAAA,EAAA,CAAA;kBAHxB,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACJ,oBAAA,IAAI,EAAE,UAAU;AACjB,iBAAA;;;ACLD;;AAEG;;;;"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component } from '@angular/core';
|
|
2
|
+
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
3
|
|
|
4
4
|
class BsInputGroupComponent {
|
|
5
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
6
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.
|
|
5
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: BsInputGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
6
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.6", type: BsInputGroupComponent, isStandalone: true, selector: "bs-input-group", ngImport: i0, template: "<div class=\"input-group\">\n <ng-content></ng-content>\n</div>", styles: [":host ::ng-deep .input-group{position:relative;display:flex;flex-wrap:wrap;align-items:stretch;width:100%}:host ::ng-deep .input-group>.form-control,:host ::ng-deep .input-group>.form-select,:host ::ng-deep .input-group>.form-floating{position:relative;flex:1 1 auto;width:1%;min-width:0}:host ::ng-deep .input-group>.form-control:focus,:host ::ng-deep .input-group>.form-select:focus,:host ::ng-deep .input-group>.form-floating:focus-within{z-index:5}:host ::ng-deep .input-group .btn{position:relative;z-index:2}:host ::ng-deep .input-group .btn:focus{z-index:5}:host ::ng-deep .input-group-text{display:flex;align-items:center;padding:.375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:var(--bs-body-color);text-align:center;white-space:nowrap;background-color:var(--bs-tertiary-bg);border:var(--bs-border-width) solid var(--bs-border-color);border-radius:var(--bs-border-radius)}:host ::ng-deep .input-group-lg>.form-control,:host ::ng-deep .input-group-lg>.form-select,:host ::ng-deep .input-group-lg>.input-group-text,:host ::ng-deep .input-group-lg>.btn{padding:.5rem 1rem;font-size:1.25rem;border-radius:var(--bs-border-radius-lg)}:host ::ng-deep .input-group-sm>.form-control,:host ::ng-deep .input-group-sm>.form-select,:host ::ng-deep .input-group-sm>.input-group-text,:host ::ng-deep .input-group-sm>.btn{padding:.25rem .5rem;font-size:.875rem;border-radius:var(--bs-border-radius-sm)}:host ::ng-deep .input-group-lg>.form-select,:host ::ng-deep .input-group-sm>.form-select{padding-right:3rem}:host ::ng-deep .input-group:not(.has-validation)>:not(:last-child):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating),:host ::ng-deep .input-group:not(.has-validation)>.dropdown-toggle:nth-last-child(n+3),:host ::ng-deep .input-group:not(.has-validation)>.form-floating:not(:last-child)>.form-control,:host ::ng-deep .input-group:not(.has-validation)>.form-floating:not(:last-child)>.form-select{border-top-right-radius:0;border-bottom-right-radius:0}:host ::ng-deep .input-group.has-validation>:nth-last-child(n+3):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating),:host ::ng-deep .input-group.has-validation>.dropdown-toggle:nth-last-child(n+4),:host ::ng-deep .input-group.has-validation>.form-floating:nth-last-child(n+3)>.form-control,:host ::ng-deep .input-group.has-validation>.form-floating:nth-last-child(n+3)>.form-select{border-top-right-radius:0;border-bottom-right-radius:0}:host ::ng-deep .input-group>:not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback){margin-left:calc(-1 * var(--bs-border-width));border-top-left-radius:0;border-bottom-left-radius:0}:host ::ng-deep .input-group>.form-floating:not(:first-child)>.form-control,:host ::ng-deep .input-group>.form-floating:not(:first-child)>.form-select{border-top-left-radius:0;border-bottom-left-radius:0}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
7
7
|
}
|
|
8
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
8
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: BsInputGroupComponent, decorators: [{
|
|
9
9
|
type: Component,
|
|
10
|
-
args: [{ selector: 'bs-input-group',
|
|
10
|
+
args: [{ selector: 'bs-input-group', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"input-group\">\n <ng-content></ng-content>\n</div>", styles: [":host ::ng-deep .input-group{position:relative;display:flex;flex-wrap:wrap;align-items:stretch;width:100%}:host ::ng-deep .input-group>.form-control,:host ::ng-deep .input-group>.form-select,:host ::ng-deep .input-group>.form-floating{position:relative;flex:1 1 auto;width:1%;min-width:0}:host ::ng-deep .input-group>.form-control:focus,:host ::ng-deep .input-group>.form-select:focus,:host ::ng-deep .input-group>.form-floating:focus-within{z-index:5}:host ::ng-deep .input-group .btn{position:relative;z-index:2}:host ::ng-deep .input-group .btn:focus{z-index:5}:host ::ng-deep .input-group-text{display:flex;align-items:center;padding:.375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:var(--bs-body-color);text-align:center;white-space:nowrap;background-color:var(--bs-tertiary-bg);border:var(--bs-border-width) solid var(--bs-border-color);border-radius:var(--bs-border-radius)}:host ::ng-deep .input-group-lg>.form-control,:host ::ng-deep .input-group-lg>.form-select,:host ::ng-deep .input-group-lg>.input-group-text,:host ::ng-deep .input-group-lg>.btn{padding:.5rem 1rem;font-size:1.25rem;border-radius:var(--bs-border-radius-lg)}:host ::ng-deep .input-group-sm>.form-control,:host ::ng-deep .input-group-sm>.form-select,:host ::ng-deep .input-group-sm>.input-group-text,:host ::ng-deep .input-group-sm>.btn{padding:.25rem .5rem;font-size:.875rem;border-radius:var(--bs-border-radius-sm)}:host ::ng-deep .input-group-lg>.form-select,:host ::ng-deep .input-group-sm>.form-select{padding-right:3rem}:host ::ng-deep .input-group:not(.has-validation)>:not(:last-child):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating),:host ::ng-deep .input-group:not(.has-validation)>.dropdown-toggle:nth-last-child(n+3),:host ::ng-deep .input-group:not(.has-validation)>.form-floating:not(:last-child)>.form-control,:host ::ng-deep .input-group:not(.has-validation)>.form-floating:not(:last-child)>.form-select{border-top-right-radius:0;border-bottom-right-radius:0}:host ::ng-deep .input-group.has-validation>:nth-last-child(n+3):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating),:host ::ng-deep .input-group.has-validation>.dropdown-toggle:nth-last-child(n+4),:host ::ng-deep .input-group.has-validation>.form-floating:nth-last-child(n+3)>.form-control,:host ::ng-deep .input-group.has-validation>.form-floating:nth-last-child(n+3)>.form-select{border-top-right-radius:0;border-bottom-right-radius:0}:host ::ng-deep .input-group>:not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback){margin-left:calc(-1 * var(--bs-border-width));border-top-left-radius:0;border-bottom-left-radius:0}:host ::ng-deep .input-group>.form-floating:not(:first-child)>.form-control,:host ::ng-deep .input-group>.form-floating:not(:first-child)>.form-select{border-top-left-radius:0;border-bottom-left-radius:0}\n"] }]
|
|
11
11
|
}] });
|
|
12
12
|
|
|
13
13
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mintplayer-ng-bootstrap-input-group.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/input-group/src/input-group/input-group.component.ts","../../../../libs/mintplayer-ng-bootstrap/input-group/src/input-group/input-group.component.html","../../../../libs/mintplayer-ng-bootstrap/input-group/mintplayer-ng-bootstrap-input-group.ts"],"sourcesContent":["import { Component } from '@angular/core';\n\n@Component({\n selector: 'bs-input-group',\n
|
|
1
|
+
{"version":3,"file":"mintplayer-ng-bootstrap-input-group.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/input-group/src/input-group/input-group.component.ts","../../../../libs/mintplayer-ng-bootstrap/input-group/src/input-group/input-group.component.html","../../../../libs/mintplayer-ng-bootstrap/input-group/mintplayer-ng-bootstrap-input-group.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy} from '@angular/core';\n\n@Component({\n selector: 'bs-input-group',\n templateUrl: './input-group.component.html',\n styleUrls: ['./input-group.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsInputGroupComponent {}\n","<div class=\"input-group\">\n <ng-content></ng-content>\n</div>","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAQa,qBAAqB,CAAA;8GAArB,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAArB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,qBAAqB,0ECRlC,oEAEM,EAAA,MAAA,EAAA,CAAA,+0FAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FDMO,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBANjC,SAAS;+BACE,gBAAgB,EAAA,eAAA,EAGT,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,oEAAA,EAAA,MAAA,EAAA,CAAA,+0FAAA,CAAA,EAAA;;;AENjD;;AAEG;;;;"}
|
|
@@ -1,6 +1,41 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import { input, effect, Directive, inject, ViewContainerRef, TemplateRef, Pipe } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
class BsInstanceOfContext {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.$implicit = null;
|
|
7
|
+
this.bsInstanceofCase = null;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
class SwitchView {
|
|
12
|
+
constructor(_viewContainerRef, _templateRef) {
|
|
13
|
+
this._viewContainerRef = _viewContainerRef;
|
|
14
|
+
this._templateRef = _templateRef;
|
|
15
|
+
this._created = false;
|
|
16
|
+
this._context = new BsInstanceOfContext();
|
|
17
|
+
}
|
|
18
|
+
enforceState(result) {
|
|
19
|
+
if (result && !this._created) {
|
|
20
|
+
this.create(result);
|
|
21
|
+
}
|
|
22
|
+
else if (!result && this._created) {
|
|
23
|
+
this.destroy();
|
|
24
|
+
}
|
|
25
|
+
else if (result) {
|
|
26
|
+
this._context.$implicit = this._context.bsInstanceofCase = result;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
create(result) {
|
|
30
|
+
this._created = true;
|
|
31
|
+
this._context.$implicit = this._context.bsInstanceofCase = result;
|
|
32
|
+
this._viewContainerRef.createEmbeddedView(this._templateRef, this._context);
|
|
33
|
+
}
|
|
34
|
+
destroy() {
|
|
35
|
+
this._created = false;
|
|
36
|
+
this._viewContainerRef.clear();
|
|
37
|
+
}
|
|
38
|
+
}
|
|
4
39
|
|
|
5
40
|
class BsInstanceOfDirective {
|
|
6
41
|
constructor() {
|
|
@@ -8,12 +43,13 @@ class BsInstanceOfDirective {
|
|
|
8
43
|
this._caseCount = 0;
|
|
9
44
|
this._lastCaseCheckIndex = 0;
|
|
10
45
|
this._lastCasesMatched = false;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
46
|
+
this.bsInstanceof = input(undefined, ...(ngDevMode ? [{ debugName: "bsInstanceof" }] : []));
|
|
47
|
+
effect(() => {
|
|
48
|
+
const newValue = this.bsInstanceof();
|
|
49
|
+
if (this._caseCount === 0) {
|
|
50
|
+
this._updateDefaultCases(true);
|
|
51
|
+
}
|
|
52
|
+
});
|
|
17
53
|
}
|
|
18
54
|
/** @internal */
|
|
19
55
|
_addCase() {
|
|
@@ -28,8 +64,9 @@ class BsInstanceOfDirective {
|
|
|
28
64
|
}
|
|
29
65
|
/** @internal */
|
|
30
66
|
_matchCase(type) {
|
|
31
|
-
const
|
|
32
|
-
|
|
67
|
+
const value = this.bsInstanceof();
|
|
68
|
+
const matched = value instanceof type
|
|
69
|
+
? value
|
|
33
70
|
: undefined;
|
|
34
71
|
this._lastCasesMatched = this._lastCasesMatched || !!matched;
|
|
35
72
|
this._lastCaseCheckIndex++;
|
|
@@ -50,62 +87,26 @@ class BsInstanceOfDirective {
|
|
|
50
87
|
}
|
|
51
88
|
}
|
|
52
89
|
}
|
|
53
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
54
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
90
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: BsInstanceOfDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
91
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.6", type: BsInstanceOfDirective, isStandalone: true, selector: "[bsInstanceof]", inputs: { bsInstanceof: { classPropertyName: "bsInstanceof", publicName: "bsInstanceof", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 }); }
|
|
55
92
|
}
|
|
56
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
93
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: BsInstanceOfDirective, decorators: [{
|
|
57
94
|
type: Directive,
|
|
58
95
|
args: [{
|
|
59
96
|
selector: '[bsInstanceof]',
|
|
60
|
-
standalone: false,
|
|
61
97
|
}]
|
|
62
|
-
}], propDecorators: { bsInstanceof: [{
|
|
63
|
-
type: Input
|
|
64
|
-
}] } });
|
|
65
|
-
|
|
66
|
-
class BsInstanceOfContext {
|
|
67
|
-
constructor() {
|
|
68
|
-
this.$implicit = null;
|
|
69
|
-
this.bsInstanceofCase = null;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
class SwitchView {
|
|
74
|
-
constructor(_viewContainerRef, _templateRef) {
|
|
75
|
-
this._viewContainerRef = _viewContainerRef;
|
|
76
|
-
this._templateRef = _templateRef;
|
|
77
|
-
this._created = false;
|
|
78
|
-
this._context = new BsInstanceOfContext();
|
|
79
|
-
}
|
|
80
|
-
enforceState(result) {
|
|
81
|
-
if (result && !this._created) {
|
|
82
|
-
this.create(result);
|
|
83
|
-
}
|
|
84
|
-
else if (!result && this._created) {
|
|
85
|
-
this.destroy();
|
|
86
|
-
}
|
|
87
|
-
else if (result) {
|
|
88
|
-
this._context.$implicit = this._context.bsInstanceofCase = result;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
create(result) {
|
|
92
|
-
this._created = true;
|
|
93
|
-
this._context.$implicit = this._context.bsInstanceofCase = result;
|
|
94
|
-
this._viewContainerRef.createEmbeddedView(this._templateRef, this._context);
|
|
95
|
-
}
|
|
96
|
-
destroy() {
|
|
97
|
-
this._created = false;
|
|
98
|
-
this._viewContainerRef.clear();
|
|
99
|
-
}
|
|
100
|
-
}
|
|
98
|
+
}], ctorParameters: () => [], propDecorators: { bsInstanceof: [{ type: i0.Input, args: [{ isSignal: true, alias: "bsInstanceof", required: false }] }] } });
|
|
101
99
|
|
|
102
100
|
class BsInstanceofCaseDirective {
|
|
103
|
-
constructor(
|
|
104
|
-
this.
|
|
105
|
-
|
|
101
|
+
constructor() {
|
|
102
|
+
this.bsInstanceofCase = input.required(...(ngDevMode ? [{ debugName: "bsInstanceofCase" }] : []));
|
|
103
|
+
this.bsInstanceof = inject(BsInstanceOfDirective, { optional: true, host: true });
|
|
104
|
+
const viewContainer = inject(ViewContainerRef);
|
|
105
|
+
const templateRef = inject(TemplateRef);
|
|
106
|
+
if (!this.bsInstanceof) {
|
|
106
107
|
this.throwError('bsInstanceofCase');
|
|
107
108
|
}
|
|
108
|
-
bsInstanceof._addCase();
|
|
109
|
+
this.bsInstanceof._addCase();
|
|
109
110
|
this._view = new SwitchView(viewContainer, templateRef);
|
|
110
111
|
}
|
|
111
112
|
/**
|
|
@@ -119,31 +120,27 @@ class BsInstanceofCaseDirective {
|
|
|
119
120
|
return true;
|
|
120
121
|
}
|
|
121
122
|
ngDoCheck() {
|
|
122
|
-
this._view.enforceState(this.bsInstanceof._matchCase(this.bsInstanceofCase));
|
|
123
|
+
this._view.enforceState(this.bsInstanceof._matchCase(this.bsInstanceofCase()));
|
|
123
124
|
}
|
|
124
125
|
throwError(directiveName) {
|
|
125
126
|
throw new Error(`An element with the "${directiveName}" attribute (matching the "${directiveName}" directive) must be located inside an element with the "bsInstanceof" attribute (matching "BsInstanceofDirective" directive)`);
|
|
126
127
|
}
|
|
127
128
|
;
|
|
128
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
129
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
129
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: BsInstanceofCaseDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
130
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.6", type: BsInstanceofCaseDirective, isStandalone: true, selector: "[bsInstanceofCase]", inputs: { bsInstanceofCase: { classPropertyName: "bsInstanceofCase", publicName: "bsInstanceofCase", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0 }); }
|
|
130
131
|
}
|
|
131
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
132
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: BsInstanceofCaseDirective, decorators: [{
|
|
132
133
|
type: Directive,
|
|
133
134
|
args: [{
|
|
134
135
|
selector: '[bsInstanceofCase]',
|
|
135
|
-
standalone: false,
|
|
136
136
|
}]
|
|
137
|
-
}], ctorParameters: () => [
|
|
138
|
-
type: Optional
|
|
139
|
-
}, {
|
|
140
|
-
type: Host
|
|
141
|
-
}] }], propDecorators: { bsInstanceofCase: [{
|
|
142
|
-
type: Input
|
|
143
|
-
}] } });
|
|
137
|
+
}], ctorParameters: () => [], propDecorators: { bsInstanceofCase: [{ type: i0.Input, args: [{ isSignal: true, alias: "bsInstanceofCase", required: true }] }] } });
|
|
144
138
|
|
|
145
139
|
class BsInstanceOfDefaultDirective {
|
|
146
|
-
constructor(
|
|
140
|
+
constructor() {
|
|
141
|
+
const viewContainer = inject(ViewContainerRef);
|
|
142
|
+
const templateRef = inject(TemplateRef);
|
|
143
|
+
const bsInstanceof = inject(BsInstanceOfDirective, { optional: true, host: true });
|
|
147
144
|
if (!bsInstanceof) {
|
|
148
145
|
this.throwError('bsInstanceofDefault');
|
|
149
146
|
}
|
|
@@ -153,64 +150,28 @@ class BsInstanceOfDefaultDirective {
|
|
|
153
150
|
throw new Error(`An element with the "${directiveName}" attribute (matching the "${directiveName}" directive) must be located inside an element with the "bsInstanceof" attribute (matching "BsInstanceofDirective" directive)`);
|
|
154
151
|
}
|
|
155
152
|
;
|
|
156
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
157
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.
|
|
153
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: BsInstanceOfDefaultDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
154
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.1.6", type: BsInstanceOfDefaultDirective, isStandalone: true, selector: "[bsInstanceofDefault]", ngImport: i0 }); }
|
|
158
155
|
}
|
|
159
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
156
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: BsInstanceOfDefaultDirective, decorators: [{
|
|
160
157
|
type: Directive,
|
|
161
158
|
args: [{
|
|
162
159
|
selector: '[bsInstanceofDefault]',
|
|
163
|
-
standalone: false,
|
|
164
160
|
}]
|
|
165
|
-
}], ctorParameters: () => [
|
|
166
|
-
type: Optional
|
|
167
|
-
}, {
|
|
168
|
-
type: Host
|
|
169
|
-
}] }] });
|
|
161
|
+
}], ctorParameters: () => [] });
|
|
170
162
|
|
|
171
163
|
class BsInstanceofPipe {
|
|
172
164
|
transform(value, type) {
|
|
173
165
|
return value instanceof type ? value : undefined;
|
|
174
166
|
}
|
|
175
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
176
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.
|
|
167
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: BsInstanceofPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
168
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.1.6", ngImport: i0, type: BsInstanceofPipe, isStandalone: true, name: "bsInstanceof" }); }
|
|
177
169
|
}
|
|
178
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
170
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: BsInstanceofPipe, decorators: [{
|
|
179
171
|
type: Pipe,
|
|
180
172
|
args: [{
|
|
181
173
|
name: 'bsInstanceof',
|
|
182
174
|
pure: true,
|
|
183
|
-
standalone: false,
|
|
184
|
-
}]
|
|
185
|
-
}] });
|
|
186
|
-
|
|
187
|
-
class BsInstanceOfModule {
|
|
188
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsInstanceOfModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
189
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.6", ngImport: i0, type: BsInstanceOfModule, declarations: [BsInstanceofPipe,
|
|
190
|
-
BsInstanceOfDirective,
|
|
191
|
-
BsInstanceofCaseDirective,
|
|
192
|
-
BsInstanceOfDefaultDirective], imports: [CommonModule], exports: [BsInstanceofPipe,
|
|
193
|
-
BsInstanceOfDirective,
|
|
194
|
-
BsInstanceofCaseDirective,
|
|
195
|
-
BsInstanceOfDefaultDirective] }); }
|
|
196
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsInstanceOfModule, imports: [CommonModule] }); }
|
|
197
|
-
}
|
|
198
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsInstanceOfModule, decorators: [{
|
|
199
|
-
type: NgModule,
|
|
200
|
-
args: [{
|
|
201
|
-
declarations: [
|
|
202
|
-
BsInstanceofPipe,
|
|
203
|
-
BsInstanceOfDirective,
|
|
204
|
-
BsInstanceofCaseDirective,
|
|
205
|
-
BsInstanceOfDefaultDirective
|
|
206
|
-
],
|
|
207
|
-
imports: [CommonModule],
|
|
208
|
-
exports: [
|
|
209
|
-
BsInstanceofPipe,
|
|
210
|
-
BsInstanceOfDirective,
|
|
211
|
-
BsInstanceofCaseDirective,
|
|
212
|
-
BsInstanceOfDefaultDirective
|
|
213
|
-
]
|
|
214
175
|
}]
|
|
215
176
|
}] });
|
|
216
177
|
|
|
@@ -218,5 +179,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImpor
|
|
|
218
179
|
* Generated bundle index. Do not edit.
|
|
219
180
|
*/
|
|
220
181
|
|
|
221
|
-
export { BsInstanceOfContext, BsInstanceOfDefaultDirective, BsInstanceOfDirective,
|
|
182
|
+
export { BsInstanceOfContext, BsInstanceOfDefaultDirective, BsInstanceOfDirective, BsInstanceofCaseDirective, BsInstanceofPipe, SwitchView };
|
|
222
183
|
//# sourceMappingURL=mintplayer-ng-bootstrap-instance-of.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mintplayer-ng-bootstrap-instance-of.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/instance-of/src/directives/instanceof.directive.ts","../../../../libs/mintplayer-ng-bootstrap/instance-of/src/interfaces/instance-of-context.ts","../../../../libs/mintplayer-ng-bootstrap/instance-of/src/directives/switch-view.ts","../../../../libs/mintplayer-ng-bootstrap/instance-of/src/directives/instanceof-case.directive.ts","../../../../libs/mintplayer-ng-bootstrap/instance-of/src/directives/instanceof-default.directive.ts","../../../../libs/mintplayer-ng-bootstrap/instance-of/src/pipes/instance-of.pipe.ts","../../../../libs/mintplayer-ng-bootstrap/instance-of/src/instance-of.module.ts","../../../../libs/mintplayer-ng-bootstrap/instance-of/mintplayer-ng-bootstrap-instance-of.ts"],"sourcesContent":["import { Directive, Input } from \"@angular/core\";\nimport { SwitchView } from \"./switch-view\";\nimport { AbstractType } from \"../types/abstract.type\";\n\n@Directive({\n selector: '[bsInstanceof]',\n standalone: false,\n})\nexport class BsInstanceOfDirective {\n private _defaultViews!: SwitchView[];\n private _defaultUsed = false;\n private _caseCount = 0;\n private _lastCaseCheckIndex = 0;\n private _lastCasesMatched = false;\n private _instanceof: any;\n\n @Input()\n public set bsInstanceof(newValue: any) {\n this._instanceof = newValue;\n if (this._caseCount === 0) {\n this._updateDefaultCases(true);\n }\n }\n\n /** @internal */\n public _addCase(): number {\n return this._caseCount++;\n }\n\n /** @internal */\n public _addDefault(view: SwitchView): void {\n if (!this._defaultViews) {\n this._defaultViews = [];\n }\n this._defaultViews.push(view);\n }\n\n /** @internal */\n public _matchCase<T>(type: AbstractType<T>): T | undefined {\n const matched =\n this._instanceof instanceof type\n ? this._instanceof\n : undefined;\n this._lastCasesMatched = this._lastCasesMatched || !!matched;\n this._lastCaseCheckIndex++;\n if (this._lastCaseCheckIndex === this._caseCount) {\n this._updateDefaultCases(!this._lastCasesMatched);\n this._lastCaseCheckIndex = 0;\n this._lastCasesMatched = false;\n }\n // debugger;\n return matched;\n }\n\n private _updateDefaultCases(useDefault: boolean): void {\n if (this._defaultViews && useDefault !== this._defaultUsed) {\n this._defaultUsed = useDefault;\n for (let i = 0; i < this._defaultViews.length; i++) {\n const defaultView = this._defaultViews[i];\n defaultView.enforceState(useDefault);\n }\n }\n }\n}\n","export class BsInstanceOfContext<T = unknown> {\n public $implicit: T = null!;\n public bsInstanceofCase: T = null!;\n}","import { ViewContainerRef, TemplateRef } from \"@angular/core\";\nimport { BsInstanceOfContext } from \"../interfaces/instance-of-context\";\n\nexport class SwitchView<T = unknown> {\n private _created = false;\n private _context = new BsInstanceOfContext<T>();\n \n public constructor(private _viewContainerRef: ViewContainerRef, private _templateRef: TemplateRef<BsInstanceOfContext<T>>) {}\n \n public enforceState(result?: T) {\n if (result && !this._created) {\n this.create(result);\n } else if (!result && this._created) {\n this.destroy();\n } else if (result) {\n this._context.$implicit = this._context.bsInstanceofCase = result;\n }\n }\n \n private create(result: T) {\n this._created = true;\n this._context.$implicit = this._context.bsInstanceofCase = result;\n this._viewContainerRef.createEmbeddedView(this._templateRef, this._context);\n }\n \n private destroy() {\n this._created = false;\n this._viewContainerRef.clear();\n }\n}","import { Directive, Input, DoCheck, ViewContainerRef, Optional, Host, TemplateRef } from \"@angular/core\";\nimport { SwitchView } from \"./switch-view\";\nimport { BsInstanceOfContext } from \"../interfaces/instance-of-context\";\nimport { AbstractType } from \"../types/abstract.type\";\nimport { BsInstanceOfDirective } from \"./instanceof.directive\";\n\n@Directive({\n selector: '[bsInstanceofCase]',\n standalone: false,\n})\nexport class BsInstanceofCaseDirective<T> implements DoCheck {\n @Input() public bsInstanceofCase!: AbstractType<T>;\n\n private _view: SwitchView<T>;\n\n public constructor(\n viewContainer: ViewContainerRef,\n templateRef: TemplateRef<BsInstanceOfContext<T>>,\n @Optional() @Host() private bsInstanceof: BsInstanceOfDirective\n ) {\n if (!bsInstanceof) {\n this.throwError('bsInstanceofCase');\n }\n bsInstanceof._addCase();\n this._view = new SwitchView<T>(viewContainer, templateRef);\n }\n\n /**\n * Asserts the correct type of the context for the template that `InstanceofCaseDirective` will render.\n *\n * The presence of this method is a signal to the Ivy template type-check compiler that the\n * `InstanceofCaseDirective` structural directive renders its template with a specific context type.\n * Magic happens here!\n */\n public static ngTemplateContextGuard<T>(\n dir: BsInstanceofCaseDirective<T>,\n ctx: any\n ): ctx is BsInstanceOfContext<Exclude<T, false | 0 | '' | null | undefined>> {\n return true;\n }\n\n public ngDoCheck() {\n this._view.enforceState(\n this.bsInstanceof._matchCase(this.bsInstanceofCase)\n );\n }\n\n throwError(directiveName: string) {\n throw new Error(\n `An element with the \"${directiveName}\" attribute (matching the \"${directiveName}\" directive) must be located inside an element with the \"bsInstanceof\" attribute (matching \"BsInstanceofDirective\" directive)`\n );\n };\n}\n","import { Directive, ViewContainerRef, Optional, Host, TemplateRef } from \"@angular/core\";\nimport { SwitchView } from \"./switch-view\";\nimport { BsInstanceOfContext } from \"../interfaces/instance-of-context\";\nimport { BsInstanceOfDirective } from \"./instanceof.directive\";\n\n@Directive({\n selector: '[bsInstanceofDefault]',\n standalone: false,\n})\nexport class BsInstanceOfDefaultDirective {\n public constructor(\n viewContainer: ViewContainerRef,\n templateRef: TemplateRef<BsInstanceOfContext>,\n @Optional() @Host() bsInstanceof: BsInstanceOfDirective\n ) {\n if (!bsInstanceof) {\n this.throwError('bsInstanceofDefault');\n }\n bsInstanceof._addDefault(new SwitchView(viewContainer, templateRef));\n }\n\n throwError(directiveName: string) {\n throw new Error(\n `An element with the \"${directiveName}\" attribute (matching the \"${directiveName}\" directive) must be located inside an element with the \"bsInstanceof\" attribute (matching \"BsInstanceofDirective\" directive)`\n );\n };\n}","import { Pipe } from '@angular/core';\nimport type { PipeTransform } from '@angular/core';\nimport { AbstractType } from '../types/abstract.type';\n\n@Pipe({\n name: 'bsInstanceof',\n pure: true,\n standalone: false,\n})\nexport class BsInstanceofPipe implements PipeTransform {\n public transform<V, R>(value: V, type: AbstractType<R>): R | undefined {\n return value instanceof type ? value : undefined;\n }\n}","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { BsInstanceOfDirective } from './directives/instanceof.directive';\nimport { BsInstanceofCaseDirective } from './directives/instanceof-case.directive';\nimport { BsInstanceOfDefaultDirective } from './directives/instanceof-default.directive';\nimport { BsInstanceofPipe } from './pipes/instance-of.pipe';\n\n@NgModule({\n declarations: [\n BsInstanceofPipe,\n BsInstanceOfDirective,\n BsInstanceofCaseDirective,\n BsInstanceOfDefaultDirective\n ],\n imports: [CommonModule],\n exports: [\n BsInstanceofPipe,\n BsInstanceOfDirective,\n BsInstanceofCaseDirective,\n BsInstanceOfDefaultDirective\n ]\n})\nexport class BsInstanceOfModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.BsInstanceOfDirective"],"mappings":";;;;MAQa,qBAAqB,CAAA;AAJlC,IAAA,WAAA,GAAA;QAMU,IAAA,CAAA,YAAY,GAAG,KAAK;QACpB,IAAA,CAAA,UAAU,GAAG,CAAC;QACd,IAAA,CAAA,mBAAmB,GAAG,CAAC;QACvB,IAAA,CAAA,iBAAiB,GAAG,KAAK;AAkDlC,IAAA;IA/CC,IACW,YAAY,CAAC,QAAa,EAAA;AACnC,QAAA,IAAI,CAAC,WAAW,GAAG,QAAQ;AAC3B,QAAA,IAAI,IAAI,CAAC,UAAU,KAAK,CAAC,EAAE;AACzB,YAAA,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC;QAChC;IACF;;IAGO,QAAQ,GAAA;AACb,QAAA,OAAO,IAAI,CAAC,UAAU,EAAE;IAC1B;;AAGO,IAAA,WAAW,CAAC,IAAgB,EAAA;AACjC,QAAA,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE;AACvB,YAAA,IAAI,CAAC,aAAa,GAAG,EAAE;QACzB;AACA,QAAA,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC;IAC/B;;AAGO,IAAA,UAAU,CAAI,IAAqB,EAAA;AACxC,QAAA,MAAM,OAAO,GACX,IAAI,CAAC,WAAW,YAAY;cACxB,IAAI,CAAC;cACL,SAAS;QACf,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC,iBAAiB,IAAI,CAAC,CAAC,OAAO;QAC5D,IAAI,CAAC,mBAAmB,EA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"}
|
|
1
|
+
{"version":3,"file":"mintplayer-ng-bootstrap-instance-of.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/instance-of/src/interfaces/instance-of-context.ts","../../../../libs/mintplayer-ng-bootstrap/instance-of/src/directives/switch-view.ts","../../../../libs/mintplayer-ng-bootstrap/instance-of/src/directives/instanceof.directive.ts","../../../../libs/mintplayer-ng-bootstrap/instance-of/src/directives/instanceof-case.directive.ts","../../../../libs/mintplayer-ng-bootstrap/instance-of/src/directives/instanceof-default.directive.ts","../../../../libs/mintplayer-ng-bootstrap/instance-of/src/pipes/instance-of.pipe.ts","../../../../libs/mintplayer-ng-bootstrap/instance-of/mintplayer-ng-bootstrap-instance-of.ts"],"sourcesContent":["export class BsInstanceOfContext<T = unknown> {\n public $implicit: T = null!;\n public bsInstanceofCase: T = null!;\n}","import { ViewContainerRef, TemplateRef } from \"@angular/core\";\nimport { BsInstanceOfContext } from \"../interfaces/instance-of-context\";\n\nexport class SwitchView<T = unknown> {\n private _created = false;\n private _context = new BsInstanceOfContext<T>();\n \n public constructor(private _viewContainerRef: ViewContainerRef, private _templateRef: TemplateRef<BsInstanceOfContext<T>>) {}\n \n public enforceState(result?: T) {\n if (result && !this._created) {\n this.create(result);\n } else if (!result && this._created) {\n this.destroy();\n } else if (result) {\n this._context.$implicit = this._context.bsInstanceofCase = result;\n }\n }\n \n private create(result: T) {\n this._created = true;\n this._context.$implicit = this._context.bsInstanceofCase = result;\n this._viewContainerRef.createEmbeddedView(this._templateRef, this._context);\n }\n \n private destroy() {\n this._created = false;\n this._viewContainerRef.clear();\n }\n}","import { Directive, effect, input } from \"@angular/core\";\nimport { SwitchView } from \"./switch-view\";\nimport { AbstractType } from \"../types/abstract.type\";\n\n@Directive({\n selector: '[bsInstanceof]',\n})\nexport class BsInstanceOfDirective {\n private _defaultViews!: SwitchView[];\n private _defaultUsed = false;\n private _caseCount = 0;\n private _lastCaseCheckIndex = 0;\n private _lastCasesMatched = false;\n\n readonly bsInstanceof = input<any>(undefined);\n\n constructor() {\n effect(() => {\n const newValue = this.bsInstanceof();\n if (this._caseCount === 0) {\n this._updateDefaultCases(true);\n }\n });\n }\n\n /** @internal */\n public _addCase(): number {\n return this._caseCount++;\n }\n\n /** @internal */\n public _addDefault(view: SwitchView): void {\n if (!this._defaultViews) {\n this._defaultViews = [];\n }\n this._defaultViews.push(view);\n }\n\n /** @internal */\n public _matchCase<T>(type: AbstractType<T>): T | undefined {\n const value = this.bsInstanceof();\n const matched =\n value instanceof type\n ? value\n : undefined;\n this._lastCasesMatched = this._lastCasesMatched || !!matched;\n this._lastCaseCheckIndex++;\n if (this._lastCaseCheckIndex === this._caseCount) {\n this._updateDefaultCases(!this._lastCasesMatched);\n this._lastCaseCheckIndex = 0;\n this._lastCasesMatched = false;\n }\n // debugger;\n return matched;\n }\n\n private _updateDefaultCases(useDefault: boolean): void {\n if (this._defaultViews && useDefault !== this._defaultUsed) {\n this._defaultUsed = useDefault;\n for (let i = 0; i < this._defaultViews.length; i++) {\n const defaultView = this._defaultViews[i];\n defaultView.enforceState(useDefault);\n }\n }\n }\n}\n","import { Directive, input, DoCheck, ViewContainerRef, inject, TemplateRef } from \"@angular/core\";\nimport { SwitchView } from \"./switch-view\";\nimport { BsInstanceOfContext } from \"../interfaces/instance-of-context\";\nimport { AbstractType } from \"../types/abstract.type\";\nimport { BsInstanceOfDirective } from \"./instanceof.directive\";\n\n@Directive({\n selector: '[bsInstanceofCase]',\n})\nexport class BsInstanceofCaseDirective<T> implements DoCheck {\n readonly bsInstanceofCase = input.required<AbstractType<T>>();\n\n private _view: SwitchView<T>;\n private bsInstanceof = inject(BsInstanceOfDirective, { optional: true, host: true })!;\n\n public constructor() {\n const viewContainer = inject(ViewContainerRef);\n const templateRef = inject<TemplateRef<BsInstanceOfContext<T>>>(TemplateRef);\n if (!this.bsInstanceof) {\n this.throwError('bsInstanceofCase');\n }\n this.bsInstanceof._addCase();\n this._view = new SwitchView<T>(viewContainer, templateRef);\n }\n\n /**\n * Asserts the correct type of the context for the template that `InstanceofCaseDirective` will render.\n *\n * The presence of this method is a signal to the Ivy template type-check compiler that the\n * `InstanceofCaseDirective` structural directive renders its template with a specific context type.\n * Magic happens here!\n */\n public static ngTemplateContextGuard<T>(\n dir: BsInstanceofCaseDirective<T>,\n ctx: any\n ): ctx is BsInstanceOfContext<Exclude<T, false | 0 | '' | null | undefined>> {\n return true;\n }\n\n public ngDoCheck() {\n this._view.enforceState(\n this.bsInstanceof._matchCase(this.bsInstanceofCase())\n );\n }\n\n throwError(directiveName: string) {\n throw new Error(\n `An element with the \"${directiveName}\" attribute (matching the \"${directiveName}\" directive) must be located inside an element with the \"bsInstanceof\" attribute (matching \"BsInstanceofDirective\" directive)`\n );\n };\n}\n","import { Directive, ViewContainerRef, inject, TemplateRef } from \"@angular/core\";\nimport { SwitchView } from \"./switch-view\";\nimport { BsInstanceOfContext } from \"../interfaces/instance-of-context\";\nimport { BsInstanceOfDirective } from \"./instanceof.directive\";\n\n@Directive({\n selector: '[bsInstanceofDefault]',\n})\nexport class BsInstanceOfDefaultDirective {\n public constructor() {\n const viewContainer = inject(ViewContainerRef);\n const templateRef = inject<TemplateRef<BsInstanceOfContext>>(TemplateRef);\n const bsInstanceof = inject(BsInstanceOfDirective, { optional: true, host: true });\n if (!bsInstanceof) {\n this.throwError('bsInstanceofDefault');\n }\n bsInstanceof!._addDefault(new SwitchView(viewContainer, templateRef));\n }\n\n throwError(directiveName: string) {\n throw new Error(\n `An element with the \"${directiveName}\" attribute (matching the \"${directiveName}\" directive) must be located inside an element with the \"bsInstanceof\" attribute (matching \"BsInstanceofDirective\" directive)`\n );\n };\n}","import { Pipe } from '@angular/core';\nimport type { PipeTransform } from '@angular/core';\nimport { AbstractType } from '../types/abstract.type';\n\n@Pipe({\n name: 'bsInstanceof',\n pure: true,\n})\nexport class BsInstanceofPipe implements PipeTransform {\n public transform<V, R>(value: V, type: AbstractType<R>): R | undefined {\n return value instanceof type ? value : undefined;\n }\n}","/**\n * Generated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cAAA,EAAA,CAAA,CAAA;;2FAAhB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAJ5B,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACJ,oBAAA,IAAI,EAAE,cAAc;AACpB,oBAAA,IAAI,EAAE,IAAI;AACX,iBAAA;;;ACPD;;AAEG;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject, ViewContainerRef, TemplateRef,
|
|
2
|
+
import { inject, ViewContainerRef, TemplateRef, input, effect, Directive } from '@angular/core';
|
|
3
3
|
|
|
4
4
|
class BsLetDirective {
|
|
5
5
|
constructor() {
|
|
@@ -7,13 +7,17 @@ class BsLetDirective {
|
|
|
7
7
|
this.templateRef = inject(TemplateRef);
|
|
8
8
|
this.context = { bsLet: null, $implicit: null };
|
|
9
9
|
this.hasView = false;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
10
|
+
this.bsLet = input(undefined, ...(ngDevMode ? [{ debugName: "bsLet" }] : []));
|
|
11
|
+
effect(() => {
|
|
12
|
+
const value = this.bsLet();
|
|
13
|
+
if (value !== undefined) {
|
|
14
|
+
this.context.$implicit = this.context.bsLet = value;
|
|
15
|
+
if (!this.hasView) {
|
|
16
|
+
this.hasView = true;
|
|
17
|
+
this.viewContainer.createEmbeddedView(this.templateRef, this.context);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
});
|
|
17
21
|
}
|
|
18
22
|
/**
|
|
19
23
|
* Asserts the correct type of the context for the template that `NgLet` will render.
|
|
@@ -24,18 +28,15 @@ class BsLetDirective {
|
|
|
24
28
|
static ngTemplateContextGuard(dir, ctx) {
|
|
25
29
|
return true;
|
|
26
30
|
}
|
|
27
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
28
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
31
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: BsLetDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
32
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.6", type: BsLetDirective, isStandalone: true, selector: "[bsLet]", inputs: { bsLet: { classPropertyName: "bsLet", publicName: "bsLet", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 }); }
|
|
29
33
|
}
|
|
30
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
34
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: BsLetDirective, decorators: [{
|
|
31
35
|
type: Directive,
|
|
32
36
|
args: [{
|
|
33
37
|
selector: '[bsLet]',
|
|
34
|
-
standalone: true,
|
|
35
38
|
}]
|
|
36
|
-
}], propDecorators: { bsLet: [{
|
|
37
|
-
type: Input
|
|
38
|
-
}] } });
|
|
39
|
+
}], ctorParameters: () => [], propDecorators: { bsLet: [{ type: i0.Input, args: [{ isSignal: true, alias: "bsLet", required: false }] }] } });
|
|
39
40
|
|
|
40
41
|
/**
|
|
41
42
|
* Generated bundle index. Do not edit.
|