@mintplayer/ng-bootstrap 12.0.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/README.md +7 -0
- package/bundles/mintplayer-ng-bootstrap.umd.js +1213 -0
- package/bundles/mintplayer-ng-bootstrap.umd.js.map +1 -0
- package/esm2015/index.js +3 -0
- package/esm2015/index.js.map +1 -0
- package/esm2015/lib/components/accordion/accordion/accordion.component.js +24 -0
- package/esm2015/lib/components/accordion/accordion/accordion.component.js.map +1 -0
- package/esm2015/lib/components/accordion/accordion-tab/accordion-tab.component.js +32 -0
- package/esm2015/lib/components/accordion/accordion-tab/accordion-tab.component.js.map +1 -0
- package/esm2015/lib/components/accordion/accordion-tab-header/accordion-tab-header.component.js +33 -0
- package/esm2015/lib/components/accordion/accordion-tab-header/accordion-tab-header.component.js.map +1 -0
- package/esm2015/lib/components/accordion/accordion.module.js +40 -0
- package/esm2015/lib/components/accordion/accordion.module.js.map +1 -0
- package/esm2015/lib/components/accordion/index.js +5 -0
- package/esm2015/lib/components/accordion/index.js.map +1 -0
- package/esm2015/lib/components/alert/alert/alert.component.js +25 -0
- package/esm2015/lib/components/alert/alert/alert.component.js.map +1 -0
- package/esm2015/lib/components/alert/alert-close/alert-close.component.js +19 -0
- package/esm2015/lib/components/alert/alert-close/alert-close.component.js.map +1 -0
- package/esm2015/lib/components/alert/alert.module.js +27 -0
- package/esm2015/lib/components/alert/alert.module.js.map +1 -0
- package/esm2015/lib/components/alert/index.js +4 -0
- package/esm2015/lib/components/alert/index.js.map +1 -0
- package/esm2015/lib/components/calendar/calendar.component.js +65 -0
- package/esm2015/lib/components/calendar/calendar.component.js.map +1 -0
- package/esm2015/lib/components/calendar/calendar.module.js +38 -0
- package/esm2015/lib/components/calendar/calendar.module.js.map +1 -0
- package/esm2015/lib/components/calendar/index.js +3 -0
- package/esm2015/lib/components/calendar/index.js.map +1 -0
- package/esm2015/lib/components/card/card/card.component.js +22 -0
- package/esm2015/lib/components/card/card/card.component.js.map +1 -0
- package/esm2015/lib/components/card/card-header/card-header.component.js +19 -0
- package/esm2015/lib/components/card/card-header/card-header.component.js.map +1 -0
- package/esm2015/lib/components/card/card.module.js +27 -0
- package/esm2015/lib/components/card/card.module.js.map +1 -0
- package/esm2015/lib/components/card/index.js +4 -0
- package/esm2015/lib/components/card/index.js.map +1 -0
- package/esm2015/lib/components/index.js +8 -0
- package/esm2015/lib/components/index.js.map +1 -0
- package/esm2015/lib/components/list-group/index.js +4 -0
- package/esm2015/lib/components/list-group/index.js.map +1 -0
- package/esm2015/lib/components/list-group/list-group/list-group.component.js +23 -0
- package/esm2015/lib/components/list-group/list-group/list-group.component.js.map +1 -0
- package/esm2015/lib/components/list-group/list-group-item/list-group-item.component.js +19 -0
- package/esm2015/lib/components/list-group/list-group-item/list-group-item.component.js.map +1 -0
- package/esm2015/lib/components/list-group/list-group.module.js +27 -0
- package/esm2015/lib/components/list-group/list-group.module.js.map +1 -0
- package/esm2015/lib/components/navbar/index.js +6 -0
- package/esm2015/lib/components/navbar/index.js.map +1 -0
- package/esm2015/lib/components/navbar/navbar/navbar.component.js +22 -0
- package/esm2015/lib/components/navbar/navbar/navbar.component.js.map +1 -0
- package/esm2015/lib/components/navbar/navbar-dropdown/navbar-dropdown.component.js +18 -0
- package/esm2015/lib/components/navbar/navbar-dropdown/navbar-dropdown.component.js.map +1 -0
- package/esm2015/lib/components/navbar/navbar-item/navbar-item.component.js +18 -0
- package/esm2015/lib/components/navbar/navbar-item/navbar-item.component.js.map +1 -0
- package/esm2015/lib/components/navbar/navbar-nav/navbar-nav.component.js +18 -0
- package/esm2015/lib/components/navbar/navbar-nav/navbar-nav.component.js.map +1 -0
- package/esm2015/lib/components/navbar/navbar.module.js +41 -0
- package/esm2015/lib/components/navbar/navbar.module.js.map +1 -0
- package/esm2015/lib/components/tab-control/index.js +4 -0
- package/esm2015/lib/components/tab-control/index.js.map +1 -0
- package/esm2015/lib/components/tab-control/tab-control/tab-control.component.js +31 -0
- package/esm2015/lib/components/tab-control/tab-control/tab-control.component.js.map +1 -0
- package/esm2015/lib/components/tab-control/tab-control.module.js +31 -0
- package/esm2015/lib/components/tab-control/tab-control.module.js.map +1 -0
- package/esm2015/lib/components/tab-control/tab-page/tab-page.component.js +29 -0
- package/esm2015/lib/components/tab-control/tab-page/tab-page.component.js.map +1 -0
- package/esm2015/lib/enums/color.enum.js +15 -0
- package/esm2015/lib/enums/color.enum.js.map +1 -0
- package/esm2015/lib/enums/index.js +2 -0
- package/esm2015/lib/enums/index.js.map +1 -0
- package/esm2015/lib/interfaces/date-day-of-month.js +2 -0
- package/esm2015/lib/interfaces/date-day-of-month.js.map +1 -0
- package/esm2015/lib/interfaces/first-and-last-date.js +2 -0
- package/esm2015/lib/interfaces/first-and-last-date.js.map +1 -0
- package/esm2015/lib/interfaces/week.js +2 -0
- package/esm2015/lib/interfaces/week.js.map +1 -0
- package/esm2015/lib/pipes/month-name/month-name.module.js +26 -0
- package/esm2015/lib/pipes/month-name/month-name.module.js.map +1 -0
- package/esm2015/lib/pipes/month-name/month-name.pipe.js +16 -0
- package/esm2015/lib/pipes/month-name/month-name.pipe.js.map +1 -0
- package/esm2015/lib/pipes/uc-first/uc-first.module.js +26 -0
- package/esm2015/lib/pipes/uc-first/uc-first.module.js.map +1 -0
- package/esm2015/lib/pipes/uc-first/uc-first.pipe.js +16 -0
- package/esm2015/lib/pipes/uc-first/uc-first.pipe.js.map +1 -0
- package/esm2015/lib/pipes/weekday-name/weekday-name.module.js +26 -0
- package/esm2015/lib/pipes/weekday-name/weekday-name.module.js.map +1 -0
- package/esm2015/lib/pipes/weekday-name/weekday-name.pipe.js +16 -0
- package/esm2015/lib/pipes/weekday-name/weekday-name.pipe.js.map +1 -0
- package/esm2015/lib/services/calendar-month/calendar-month.service.js +83 -0
- package/esm2015/lib/services/calendar-month/calendar-month.service.js.map +1 -0
- package/esm2015/mintplayer-ng-bootstrap.js +5 -0
- package/esm2015/mintplayer-ng-bootstrap.js.map +1 -0
- package/fesm2015/mintplayer-ng-bootstrap.js +770 -0
- package/fesm2015/mintplayer-ng-bootstrap.js.map +1 -0
- package/index.d.ts +2 -0
- package/lib/components/accordion/accordion/accordion.component.d.ts +11 -0
- package/lib/components/accordion/accordion-tab/accordion-tab.component.d.ts +11 -0
- package/lib/components/accordion/accordion-tab-header/accordion-tab-header.component.d.ts +13 -0
- package/lib/components/accordion/accordion.module.d.ts +11 -0
- package/lib/components/accordion/index.d.ts +4 -0
- package/lib/components/alert/alert/alert.component.d.ts +11 -0
- package/lib/components/alert/alert-close/alert-close.component.d.ts +8 -0
- package/lib/components/alert/alert.module.d.ts +9 -0
- package/lib/components/alert/index.d.ts +3 -0
- package/lib/components/calendar/calendar.component.d.ts +22 -0
- package/lib/components/calendar/calendar.module.d.ts +11 -0
- package/lib/components/calendar/index.d.ts +2 -0
- package/lib/components/card/card/card.component.d.ts +10 -0
- package/lib/components/card/card-header/card-header.component.d.ts +8 -0
- package/lib/components/card/card.module.d.ts +9 -0
- package/lib/components/card/index.d.ts +3 -0
- package/lib/components/index.d.ts +7 -0
- package/lib/components/list-group/index.d.ts +3 -0
- package/lib/components/list-group/list-group/list-group.component.d.ts +10 -0
- package/lib/components/list-group/list-group-item/list-group-item.component.d.ts +8 -0
- package/lib/components/list-group/list-group.module.d.ts +9 -0
- package/lib/components/navbar/index.d.ts +5 -0
- package/lib/components/navbar/navbar/navbar.component.d.ts +9 -0
- package/lib/components/navbar/navbar-dropdown/navbar-dropdown.component.d.ts +8 -0
- package/lib/components/navbar/navbar-item/navbar-item.component.d.ts +8 -0
- package/lib/components/navbar/navbar-nav/navbar-nav.component.d.ts +8 -0
- package/lib/components/navbar/navbar.module.d.ts +11 -0
- package/lib/components/tab-control/index.d.ts +3 -0
- package/lib/components/tab-control/tab-control/tab-control.component.d.ts +12 -0
- package/lib/components/tab-control/tab-control.module.d.ts +9 -0
- package/lib/components/tab-control/tab-page/tab-page.component.d.ts +12 -0
- package/lib/enums/color.enum.d.ts +13 -0
- package/lib/enums/index.d.ts +1 -0
- package/lib/interfaces/date-day-of-month.d.ts +4 -0
- package/lib/interfaces/first-and-last-date.d.ts +4 -0
- package/lib/interfaces/week.d.ts +5 -0
- package/lib/pipes/month-name/month-name.module.d.ts +8 -0
- package/lib/pipes/month-name/month-name.pipe.d.ts +7 -0
- package/lib/pipes/uc-first/uc-first.module.d.ts +8 -0
- package/lib/pipes/uc-first/uc-first.pipe.d.ts +7 -0
- package/lib/pipes/weekday-name/weekday-name.module.d.ts +8 -0
- package/lib/pipes/weekday-name/weekday-name.pipe.d.ts +7 -0
- package/lib/services/calendar-month/calendar-month.service.d.ts +17 -0
- package/mintplayer-ng-bootstrap.d.ts +5 -0
- package/package.json +28 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { MonthNamePipe } from './month-name.pipe';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export class BsMonthNamePipeModule {
|
|
6
|
+
}
|
|
7
|
+
BsMonthNamePipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsMonthNamePipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
8
|
+
BsMonthNamePipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsMonthNamePipeModule, declarations: [MonthNamePipe], imports: [CommonModule], exports: [MonthNamePipe] });
|
|
9
|
+
BsMonthNamePipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsMonthNamePipeModule, imports: [[
|
|
10
|
+
CommonModule
|
|
11
|
+
]] });
|
|
12
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsMonthNamePipeModule, decorators: [{
|
|
13
|
+
type: NgModule,
|
|
14
|
+
args: [{
|
|
15
|
+
declarations: [
|
|
16
|
+
MonthNamePipe
|
|
17
|
+
],
|
|
18
|
+
imports: [
|
|
19
|
+
CommonModule
|
|
20
|
+
],
|
|
21
|
+
exports: [
|
|
22
|
+
MonthNamePipe
|
|
23
|
+
]
|
|
24
|
+
}]
|
|
25
|
+
}] });
|
|
26
|
+
//# sourceMappingURL=month-name.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"month-name.module.js","sourceRoot":"","sources":["../../../../../../../libs/mintplayer-ng-bootstrap/src/lib/pipes/month-name/month-name.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;;AAalD,MAAM,OAAO,qBAAqB;;kHAArB,qBAAqB;mHAArB,qBAAqB,iBAT9B,aAAa,aAGb,YAAY,aAGZ,aAAa;mHAGJ,qBAAqB,YAPvB;YACP,YAAY;SACb;2FAKU,qBAAqB;kBAXjC,QAAQ;mBAAC;oBACR,YAAY,EAAE;wBACZ,aAAa;qBACd;oBACD,OAAO,EAAE;wBACP,YAAY;qBACb;oBACD,OAAO,EAAE;wBACP,aAAa;qBACd;iBACF","sourcesContent":["import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { MonthNamePipe } from './month-name.pipe';\n\n@NgModule({\n declarations: [\n MonthNamePipe\n ],\n imports: [\n CommonModule\n ],\n exports: [\n MonthNamePipe\n ]\n})\nexport class BsMonthNamePipeModule { }\n"]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Pipe } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export class MonthNamePipe {
|
|
4
|
+
transform(date, ...args) {
|
|
5
|
+
return date.toLocaleString("default", { month: 'long' });
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
MonthNamePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: MonthNamePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
9
|
+
MonthNamePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: MonthNamePipe, name: "monthName" });
|
|
10
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: MonthNamePipe, decorators: [{
|
|
11
|
+
type: Pipe,
|
|
12
|
+
args: [{
|
|
13
|
+
name: 'monthName'
|
|
14
|
+
}]
|
|
15
|
+
}] });
|
|
16
|
+
//# sourceMappingURL=month-name.pipe.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"month-name.pipe.js","sourceRoot":"","sources":["../../../../../../../libs/mintplayer-ng-bootstrap/src/lib/pipes/month-name/month-name.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAiB,MAAM,eAAe,CAAC;;AAKpD,MAAM,OAAO,aAAa;IAExB,SAAS,CAAC,IAAU,EAAE,GAAG,IAAW;QAClC,OAAO,IAAI,CAAC,cAAc,CAAC,SAAS,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC;IAC3D,CAAC;;0GAJU,aAAa;wGAAb,aAAa;2FAAb,aAAa;kBAHzB,IAAI;mBAAC;oBACJ,IAAI,EAAE,WAAW;iBAClB","sourcesContent":["import { Pipe, PipeTransform } from '@angular/core';\n\n@Pipe({\n name: 'monthName'\n})\nexport class MonthNamePipe implements PipeTransform {\n\n transform(date: Date, ...args: any[]) {\n return date.toLocaleString(\"default\", { month: 'long' });\n }\n\n}\n"]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { UcFirstPipe } from './uc-first.pipe';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export class BsUcFirstPipeModule {
|
|
6
|
+
}
|
|
7
|
+
BsUcFirstPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsUcFirstPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
8
|
+
BsUcFirstPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsUcFirstPipeModule, declarations: [UcFirstPipe], imports: [CommonModule], exports: [UcFirstPipe] });
|
|
9
|
+
BsUcFirstPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsUcFirstPipeModule, imports: [[
|
|
10
|
+
CommonModule
|
|
11
|
+
]] });
|
|
12
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsUcFirstPipeModule, decorators: [{
|
|
13
|
+
type: NgModule,
|
|
14
|
+
args: [{
|
|
15
|
+
declarations: [
|
|
16
|
+
UcFirstPipe
|
|
17
|
+
],
|
|
18
|
+
imports: [
|
|
19
|
+
CommonModule
|
|
20
|
+
],
|
|
21
|
+
exports: [
|
|
22
|
+
UcFirstPipe
|
|
23
|
+
]
|
|
24
|
+
}]
|
|
25
|
+
}] });
|
|
26
|
+
//# sourceMappingURL=uc-first.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uc-first.module.js","sourceRoot":"","sources":["../../../../../../../libs/mintplayer-ng-bootstrap/src/lib/pipes/uc-first/uc-first.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;;AAa9C,MAAM,OAAO,mBAAmB;;gHAAnB,mBAAmB;iHAAnB,mBAAmB,iBAT5B,WAAW,aAGX,YAAY,aAGZ,WAAW;iHAGF,mBAAmB,YAPrB;YACP,YAAY;SACb;2FAKU,mBAAmB;kBAX/B,QAAQ;mBAAC;oBACR,YAAY,EAAE;wBACZ,WAAW;qBACZ;oBACD,OAAO,EAAE;wBACP,YAAY;qBACb;oBACD,OAAO,EAAE;wBACP,WAAW;qBACZ;iBACF","sourcesContent":["import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { UcFirstPipe } from './uc-first.pipe';\n\n@NgModule({\n declarations: [\n UcFirstPipe\n ],\n imports: [\n CommonModule\n ],\n exports: [\n UcFirstPipe\n ]\n})\nexport class BsUcFirstPipeModule { }\n"]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Pipe } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export class UcFirstPipe {
|
|
4
|
+
transform(value, ...args) {
|
|
5
|
+
return value[0].toUpperCase() + value.slice(1);
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
UcFirstPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: UcFirstPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
9
|
+
UcFirstPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: UcFirstPipe, name: "ucFirst" });
|
|
10
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: UcFirstPipe, decorators: [{
|
|
11
|
+
type: Pipe,
|
|
12
|
+
args: [{
|
|
13
|
+
name: 'ucFirst'
|
|
14
|
+
}]
|
|
15
|
+
}] });
|
|
16
|
+
//# sourceMappingURL=uc-first.pipe.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uc-first.pipe.js","sourceRoot":"","sources":["../../../../../../../libs/mintplayer-ng-bootstrap/src/lib/pipes/uc-first/uc-first.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAiB,MAAM,eAAe,CAAC;;AAKpD,MAAM,OAAO,WAAW;IAEtB,SAAS,CAAC,KAAa,EAAE,GAAG,IAAW;QACrC,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IACjD,CAAC;;wGAJU,WAAW;sGAAX,WAAW;2FAAX,WAAW;kBAHvB,IAAI;mBAAC;oBACJ,IAAI,EAAE,SAAS;iBAChB","sourcesContent":["import { Pipe, PipeTransform } from '@angular/core';\n\n@Pipe({\n name: 'ucFirst'\n})\nexport class UcFirstPipe implements PipeTransform {\n\n transform(value: string, ...args: any[]) {\n return value[0].toUpperCase() + value.slice(1);\n }\n\n}\n"]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { WeekdayNamePipe } from './weekday-name.pipe';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export class BsWeekdayNameModule {
|
|
6
|
+
}
|
|
7
|
+
BsWeekdayNameModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsWeekdayNameModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
8
|
+
BsWeekdayNameModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsWeekdayNameModule, declarations: [WeekdayNamePipe], imports: [CommonModule], exports: [WeekdayNamePipe] });
|
|
9
|
+
BsWeekdayNameModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsWeekdayNameModule, imports: [[
|
|
10
|
+
CommonModule
|
|
11
|
+
]] });
|
|
12
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsWeekdayNameModule, decorators: [{
|
|
13
|
+
type: NgModule,
|
|
14
|
+
args: [{
|
|
15
|
+
declarations: [
|
|
16
|
+
WeekdayNamePipe
|
|
17
|
+
],
|
|
18
|
+
imports: [
|
|
19
|
+
CommonModule
|
|
20
|
+
],
|
|
21
|
+
exports: [
|
|
22
|
+
WeekdayNamePipe
|
|
23
|
+
]
|
|
24
|
+
}]
|
|
25
|
+
}] });
|
|
26
|
+
//# sourceMappingURL=weekday-name.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"weekday-name.module.js","sourceRoot":"","sources":["../../../../../../../libs/mintplayer-ng-bootstrap/src/lib/pipes/weekday-name/weekday-name.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;;AAetD,MAAM,OAAO,mBAAmB;;gHAAnB,mBAAmB;iHAAnB,mBAAmB,iBAT5B,eAAe,aAGf,YAAY,aAGZ,eAAe;iHAGN,mBAAmB,YAPrB;YACP,YAAY;SACb;2FAKU,mBAAmB;kBAX/B,QAAQ;mBAAC;oBACR,YAAY,EAAE;wBACZ,eAAe;qBAChB;oBACD,OAAO,EAAE;wBACP,YAAY;qBACb;oBACD,OAAO,EAAE;wBACP,eAAe;qBAChB;iBACF","sourcesContent":["import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { WeekdayNamePipe } from './weekday-name.pipe';\n\n\n\n@NgModule({\n declarations: [\n WeekdayNamePipe\n ],\n imports: [\n CommonModule\n ],\n exports: [\n WeekdayNamePipe\n ]\n})\nexport class BsWeekdayNameModule { }\n"]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Pipe } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export class WeekdayNamePipe {
|
|
4
|
+
transform(date, ...args) {
|
|
5
|
+
return date.toLocaleString("default", { weekday: 'short' });
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
WeekdayNamePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: WeekdayNamePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
9
|
+
WeekdayNamePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: WeekdayNamePipe, name: "weekdayName" });
|
|
10
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: WeekdayNamePipe, decorators: [{
|
|
11
|
+
type: Pipe,
|
|
12
|
+
args: [{
|
|
13
|
+
name: 'weekdayName'
|
|
14
|
+
}]
|
|
15
|
+
}] });
|
|
16
|
+
//# sourceMappingURL=weekday-name.pipe.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"weekday-name.pipe.js","sourceRoot":"","sources":["../../../../../../../libs/mintplayer-ng-bootstrap/src/lib/pipes/weekday-name/weekday-name.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAiB,MAAM,eAAe,CAAC;;AAKpD,MAAM,OAAO,eAAe;IAE1B,SAAS,CAAC,IAAU,EAAE,GAAG,IAAW;QAClC,OAAO,IAAI,CAAC,cAAc,CAAC,SAAS,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC;IAC9D,CAAC;;4GAJU,eAAe;0GAAf,eAAe;2FAAf,eAAe;kBAH3B,IAAI;mBAAC;oBACJ,IAAI,EAAE,aAAa;iBACpB","sourcesContent":["import { Pipe, PipeTransform } from '@angular/core';\n\n@Pipe({\n name: 'weekdayName'\n})\nexport class WeekdayNamePipe implements PipeTransform {\n\n transform(date: Date, ...args: any[]): unknown {\n return date.toLocaleString(\"default\", { weekday: 'short' });\n }\n\n}\n"]}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { Injectable } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export class BsCalendarMonthService {
|
|
4
|
+
constructor() {
|
|
5
|
+
}
|
|
6
|
+
getWeeks(month) {
|
|
7
|
+
let firstAndLast = this.getFirstAndLastDayOfMonth(month);
|
|
8
|
+
let days = this.dateDiff(firstAndLast.first, firstAndLast.last) + 1;
|
|
9
|
+
let allDays = [
|
|
10
|
+
...this.generateList(this.dayOfWeekMondayBased(firstAndLast.first)).map(d => null),
|
|
11
|
+
...this.generateList(days).map(d => {
|
|
12
|
+
return {
|
|
13
|
+
date: new Date(firstAndLast.first.getFullYear(), firstAndLast.first.getMonth(), firstAndLast.first.getDate() + d),
|
|
14
|
+
dayOfMonth: d + 1,
|
|
15
|
+
};
|
|
16
|
+
}),
|
|
17
|
+
...this.generateList(6 - this.dayOfWeekMondayBased(firstAndLast.last)).map(d => null),
|
|
18
|
+
];
|
|
19
|
+
let weeks = this.chunk(allDays, 7);
|
|
20
|
+
let weeksMapped = weeks.map((w, i) => {
|
|
21
|
+
var _a;
|
|
22
|
+
return {
|
|
23
|
+
number: this.weekOfYear(new Date(month.getFullYear(), month.getMonth(), (_a = w.find(d => d !== null)) === null || _a === void 0 ? void 0 : _a.dayOfMonth)),
|
|
24
|
+
week: w
|
|
25
|
+
};
|
|
26
|
+
});
|
|
27
|
+
return weeksMapped;
|
|
28
|
+
}
|
|
29
|
+
generateList(count) {
|
|
30
|
+
return [...Array(count).keys()];
|
|
31
|
+
}
|
|
32
|
+
dayOfWeekMondayBased(date) {
|
|
33
|
+
let d = date.getDay() - 1;
|
|
34
|
+
if (d < 0) {
|
|
35
|
+
return 6;
|
|
36
|
+
}
|
|
37
|
+
else {
|
|
38
|
+
return d;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
weekOfYear(date) {
|
|
42
|
+
let dateClone = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()));
|
|
43
|
+
dateClone.setUTCDate(dateClone.getUTCDate() + 4 - (dateClone.getUTCDay() || 7));
|
|
44
|
+
let yearStart = new Date(Date.UTC(dateClone.getUTCFullYear(), 0, 1));
|
|
45
|
+
let utcDiff = this.toUTC(dateClone) - this.toUTC(yearStart);
|
|
46
|
+
return Math.ceil((utcDiff / (1000 * 60 * 60 * 24) + 1) / 7);
|
|
47
|
+
}
|
|
48
|
+
getFirstAndLastDayOfMonth(date) {
|
|
49
|
+
return {
|
|
50
|
+
first: new Date(date.getFullYear(), date.getMonth(), 1),
|
|
51
|
+
last: new Date(date.getFullYear(), date.getMonth() + 1, 0)
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
dateDiff(date1, date2) {
|
|
55
|
+
const utc1 = this.toUTC(date1);
|
|
56
|
+
const utc2 = this.toUTC(date2);
|
|
57
|
+
const msPerDay = 1000 * 60 * 60 * 24;
|
|
58
|
+
return Math.floor((utc2 - utc1) / msPerDay);
|
|
59
|
+
}
|
|
60
|
+
dayOfYear(date) {
|
|
61
|
+
const start = new Date(date.getFullYear(), 0, 0);
|
|
62
|
+
return this.dateDiff(start, date);
|
|
63
|
+
}
|
|
64
|
+
toUTC(date) {
|
|
65
|
+
return Date.UTC(date.getFullYear(), date.getMonth(), date.getDate());
|
|
66
|
+
}
|
|
67
|
+
chunk(items, size) {
|
|
68
|
+
let result = [];
|
|
69
|
+
for (let i = 0; i < items.length; i += size) {
|
|
70
|
+
result.push(items.slice(i, i + size));
|
|
71
|
+
}
|
|
72
|
+
return result;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
BsCalendarMonthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsCalendarMonthService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
76
|
+
BsCalendarMonthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsCalendarMonthService, providedIn: 'root' });
|
|
77
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: BsCalendarMonthService, decorators: [{
|
|
78
|
+
type: Injectable,
|
|
79
|
+
args: [{
|
|
80
|
+
providedIn: 'root'
|
|
81
|
+
}]
|
|
82
|
+
}], ctorParameters: function () { return []; } });
|
|
83
|
+
//# sourceMappingURL=calendar-month.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calendar-month.service.js","sourceRoot":"","sources":["../../../../../../../libs/mintplayer-ng-bootstrap/src/lib/services/calendar-month/calendar-month.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;;AAQ3C,MAAM,OAAO,sBAAsB;IAEjC;IACA,CAAC;IAEM,QAAQ,CAAC,KAAW;QACzB,IAAI,YAAY,GAAG,IAAI,CAAC,yBAAyB,CAAC,KAAK,CAAC,CAAC;QACzD,IAAI,IAAI,GAAG,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,KAAK,EAAE,YAAY,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACpE,IAAI,OAAO,GAA8B;YACvC,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,oBAAoB,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC;YAClF,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE;gBACjC,OAAO;oBACL,IAAI,EAAE,IAAI,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,WAAW,EAAE,EAAE,YAAY,CAAC,KAAK,CAAC,QAAQ,EAAE,EAAE,YAAY,CAAC,KAAK,CAAC,OAAO,EAAE,GAAG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,MAAM,KAAK,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;QACjD,OAAO,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IACpC,CAAC;IAED,KAAK,CAAC,IAAU;QACd,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,IAAI,CAAC,QAAQ,EAAE,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;IAED,KAAK,CAAI,KAAU,EAAE,IAAY;QAC/B,IAAI,MAAM,GAAU,EAAE,CAAC;QACvB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,IAAI,IAAI,EAAE;YAC3C,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC;SACvC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;;mHA9EU,sBAAsB;uHAAtB,sBAAsB,cAFrB,MAAM;2FAEP,sBAAsB;kBAHlC,UAAU;mBAAC;oBACV,UAAU,EAAE,MAAM;iBACnB","sourcesContent":["import { Injectable } from '@angular/core';\nimport { DateDayOfMonth } from '../../interfaces/date-day-of-month';\nimport { FirstAndLastDate } from '../../interfaces/first-and-last-date';\nimport { Week } from '../../interfaces/week';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class BsCalendarMonthService {\n\n constructor() {\n }\n\n public getWeeks(month: Date) {\n let firstAndLast = this.getFirstAndLastDayOfMonth(month);\n let days = this.dateDiff(firstAndLast.first, firstAndLast.last) + 1;\n let allDays: (DateDayOfMonth | null)[] = [\n ...this.generateList(this.dayOfWeekMondayBased(firstAndLast.first)).map(d => null),\n ...this.generateList(days).map(d => {\n return {\n date: new Date(firstAndLast.first.getFullYear(), firstAndLast.first.getMonth(), firstAndLast.first.getDate() + d),\n dayOfMonth: d + 1,\n };\n }),\n ...this.generateList(6 - this.dayOfWeekMondayBased(firstAndLast.last)).map(d => null),\n ];\n let weeks = this.chunk(allDays, 7);\n let weeksMapped = weeks.map<Week>((w, i) => {\n return {\n number: this.weekOfYear(new Date(month.getFullYear(), month.getMonth(), w.find(d => d !== null)?.dayOfMonth)),\n week: w\n }\n });\n return weeksMapped;\n }\n \n generateList(count: number) {\n return [...Array(count).keys()];\n }\n\n dayOfWeekMondayBased(date: Date) {\n let d = date.getDay() - 1;\n if (d < 0) {\n return 6;\n } else {\n return d;\n }\n }\n\n weekOfYear(date: Date) {\n let dateClone = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()));\n dateClone.setUTCDate(dateClone.getUTCDate() + 4 - (dateClone.getUTCDay() || 7));\n let yearStart = new Date(Date.UTC(dateClone.getUTCFullYear(), 0, 1));\n let utcDiff = this.toUTC(dateClone) - this.toUTC(yearStart);\n return Math.ceil((utcDiff / (1000 * 60 * 60 * 24) + 1) / 7);\n }\n\n getFirstAndLastDayOfMonth(date: Date) {\n return <FirstAndLastDate>{\n first: new Date(date.getFullYear(), date.getMonth(), 1),\n last: new Date(date.getFullYear(), date.getMonth() + 1, 0)\n };\n }\n\n dateDiff(date1: Date, date2: Date) {\n const utc1 = this.toUTC(date1);\n const utc2 = this.toUTC(date2);\n const msPerDay = 1000 * 60 * 60 * 24;\n return Math.floor((utc2 - utc1) / msPerDay);\n }\n\n dayOfYear(date: Date) {\n const start = new Date(date.getFullYear(), 0, 0);\n return this.dateDiff(start, date);\n }\n\n toUTC(date: Date) {\n return Date.UTC(date.getFullYear(), date.getMonth(), date.getDate());\n }\n\n chunk<T>(items: T[], size: number) {\n let result: T[][] = [];\n for (let i = 0; i < items.length; i += size) {\n result.push(items.slice(i, i + size));\n }\n return result;\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mintplayer-ng-bootstrap.js","sourceRoot":"","sources":["../../../../libs/mintplayer-ng-bootstrap/src/mintplayer-ng-bootstrap.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,SAAS,CAAC","sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"]}
|