@ng-atomic/common 1.5.0 → 2.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/bundles/ng-atomic-common-directives-ios-safari-scroll-buggyfill.umd.js +15 -22
- package/bundles/ng-atomic-common-directives-ios-safari-scroll-buggyfill.umd.js.map +1 -1
- package/bundles/ng-atomic-common-directives.umd.js +15 -22
- package/bundles/ng-atomic-common-directives.umd.js.map +1 -1
- package/bundles/ng-atomic-common-models.umd.js +2 -2
- package/bundles/ng-atomic-common-models.umd.js.map +1 -1
- package/bundles/ng-atomic-common-pipes.umd.js +64 -96
- package/bundles/ng-atomic-common-pipes.umd.js.map +1 -1
- package/bundles/ng-atomic-common-services.umd.js +44 -47
- package/bundles/ng-atomic-common-services.umd.js.map +1 -1
- package/bundles/ng-atomic-common-store.umd.js +5 -5
- package/bundles/ng-atomic-common-store.umd.js.map +1 -1
- package/bundles/ng-atomic-common-utils.umd.js +83 -53
- package/bundles/ng-atomic-common-utils.umd.js.map +1 -1
- package/bundles/ng-atomic-common.umd.js +2 -2
- package/bundles/ng-atomic-common.umd.js.map +1 -1
- package/directives/ios-safari-scroll-buggyfill/ios-safari-scroll-buggyfill.directive.d.ts +2 -2
- package/directives/ios-safari-scroll-buggyfill/ios-safari-scroll-buggyfill.module.d.ts +3 -3
- package/esm2015/directives/ios-safari-scroll-buggyfill/ios-safari-scroll-buggyfill.directive.js +11 -11
- package/esm2015/directives/ios-safari-scroll-buggyfill/ios-safari-scroll-buggyfill.directive.js.map +1 -1
- package/esm2015/directives/ios-safari-scroll-buggyfill/ios-safari-scroll-buggyfill.module.js +17 -18
- package/esm2015/directives/ios-safari-scroll-buggyfill/ios-safari-scroll-buggyfill.module.js.map +1 -1
- package/esm2015/pipes/domain/domain.module.js +17 -18
- package/esm2015/pipes/domain/domain.module.js.map +1 -1
- package/esm2015/pipes/domain/domain.pipe.js +14 -14
- package/esm2015/pipes/domain/domain.pipe.js.map +1 -1
- package/esm2015/pipes/smart-clamp/smart-clamp.module.js +17 -18
- package/esm2015/pipes/smart-clamp/smart-clamp.module.js.map +1 -1
- package/esm2015/pipes/smart-clamp/smart-clamp.pipe.js +14 -14
- package/esm2015/pipes/smart-clamp/smart-clamp.pipe.js.map +1 -1
- package/esm2015/pipes/smart-exp/smart-exp.module.js +10 -11
- package/esm2015/pipes/smart-exp/smart-exp.module.js.map +1 -1
- package/esm2015/pipes/smart-exp/smart-exp.pipe.js +14 -14
- package/esm2015/pipes/smart-exp/smart-exp.pipe.js.map +1 -1
- package/esm2015/pipes/smart-field/smart-field.module.js +17 -18
- package/esm2015/pipes/smart-field/smart-field.module.js.map +1 -1
- package/esm2015/pipes/smart-field/smart-field.pipe.js +14 -14
- package/esm2015/pipes/smart-field/smart-field.pipe.js.map +1 -1
- package/esm2015/pipes/smart-sort-by/smart-sort-by.module.js +17 -18
- package/esm2015/pipes/smart-sort-by/smart-sort-by.module.js.map +1 -1
- package/esm2015/pipes/smart-sort-by/smart-sort-by.pipe.js +14 -14
- package/esm2015/pipes/smart-sort-by/smart-sort-by.pipe.js.map +1 -1
- package/esm2015/pipes/yen/yen.module.js +17 -18
- package/esm2015/pipes/yen/yen.module.js.map +1 -1
- package/esm2015/pipes/yen/yen.pipe.js +8 -8
- package/esm2015/pipes/yen/yen.pipe.js.map +1 -1
- package/esm2015/services/form/form.service.js +8 -6
- package/esm2015/services/form/form.service.js.map +1 -1
- package/esm2015/services/loading/loading.service.js +8 -8
- package/esm2015/services/loading/loading.service.js.map +1 -1
- package/esm2015/services/query-resolver/query-resolver.service.js +18 -15
- package/esm2015/services/query-resolver/query-resolver.service.js.map +1 -1
- package/esm2015/services/snack-bar/snack-bar.module.js +14 -15
- package/esm2015/services/snack-bar/snack-bar.module.js.map +1 -1
- package/esm2015/services/snack-bar/snack-bar.service.js +8 -8
- package/esm2015/services/snack-bar/snack-bar.service.js.map +1 -1
- package/esm2015/utils/date-utils/date-utils.js +1 -1
- package/esm2015/utils/date-utils/date-utils.js.map +1 -1
- package/esm2015/utils/mat-dayjs-date/dayjs-date.adapter.js +9 -7
- package/esm2015/utils/mat-dayjs-date/dayjs-date.adapter.js.map +1 -1
- package/esm2015/utils/mat-dayjs-date/dayjs-date.module.js +25 -26
- package/esm2015/utils/mat-dayjs-date/dayjs-date.module.js.map +1 -1
- package/esm2015/utils/mat-dayjs-date/dayjs-jp-providers.js +1 -1
- package/esm2015/utils/mat-dayjs-date/dayjs-jp-providers.js.map +1 -1
- package/esm2015/utils/query/query.resolver.js +37 -4
- package/esm2015/utils/query/query.resolver.js.map +1 -1
- package/esm2015/utils/smart-exp-transformer/smart-exp-transformer.js +1 -1
- package/esm2015/utils/smart-exp-transformer/smart-exp-transformer.js.map +1 -1
- package/fesm2015/ng-atomic-common-directives-ios-safari-scroll-buggyfill.js +29 -30
- package/fesm2015/ng-atomic-common-directives-ios-safari-scroll-buggyfill.js.map +1 -1
- package/fesm2015/ng-atomic-common-directives.js +29 -30
- package/fesm2015/ng-atomic-common-directives.js.map +1 -1
- package/fesm2015/ng-atomic-common-models.js.map +1 -1
- package/fesm2015/ng-atomic-common-pipes.js +174 -180
- package/fesm2015/ng-atomic-common-pipes.js.map +1 -1
- package/fesm2015/ng-atomic-common-services.js +63 -57
- package/fesm2015/ng-atomic-common-services.js.map +1 -1
- package/fesm2015/ng-atomic-common-store.js.map +1 -1
- package/fesm2015/ng-atomic-common-utils.js +79 -46
- package/fesm2015/ng-atomic-common-utils.js.map +1 -1
- package/fesm2015/ng-atomic-common.js.map +1 -1
- package/package.json +3 -6
- package/pipes/domain/domain.module.d.ts +3 -3
- package/pipes/domain/domain.pipe.d.ts +3 -3
- package/pipes/smart-clamp/smart-clamp.module.d.ts +3 -3
- package/pipes/smart-clamp/smart-clamp.pipe.d.ts +2 -2
- package/pipes/smart-exp/smart-exp.module.d.ts +3 -3
- package/pipes/smart-exp/smart-exp.pipe.d.ts +3 -3
- package/pipes/smart-field/smart-field.module.d.ts +3 -3
- package/pipes/smart-field/smart-field.pipe.d.ts +3 -3
- package/pipes/smart-sort-by/smart-sort-by.module.d.ts +3 -3
- package/pipes/smart-sort-by/smart-sort-by.pipe.d.ts +2 -2
- package/pipes/yen/yen.module.d.ts +3 -3
- package/pipes/yen/yen.pipe.d.ts +2 -2
- package/services/loading/loading.service.d.ts +3 -3
- package/services/query-resolver/query-resolver.service.d.ts +2 -2
- package/services/snack-bar/snack-bar.module.d.ts +3 -3
- package/services/snack-bar/snack-bar.service.d.ts +2 -2
- package/store/entity.page.store.d.ts +1 -1
- package/utils/date-utils/date-utils.d.ts +1 -1
- package/utils/mat-dayjs-date/dayjs-date.module.d.ts +6 -6
- package/utils/smart-exp-transformer/smart-exp-transformer.d.ts +1 -1
- package/bundles/ng-atomic-common-directives-ios-safari-scroll-buggyfill.umd.min.js +0 -2
- package/bundles/ng-atomic-common-directives-ios-safari-scroll-buggyfill.umd.min.js.map +0 -1
- package/bundles/ng-atomic-common-directives.umd.min.js +0 -2
- package/bundles/ng-atomic-common-directives.umd.min.js.map +0 -1
- package/bundles/ng-atomic-common-models.umd.min.js +0 -2
- package/bundles/ng-atomic-common-models.umd.min.js.map +0 -1
- package/bundles/ng-atomic-common-pipes.umd.min.js +0 -2
- package/bundles/ng-atomic-common-pipes.umd.min.js.map +0 -1
- package/bundles/ng-atomic-common-services.umd.min.js +0 -16
- package/bundles/ng-atomic-common-services.umd.min.js.map +0 -1
- package/bundles/ng-atomic-common-store.umd.min.js +0 -16
- package/bundles/ng-atomic-common-store.umd.min.js.map +0 -1
- package/bundles/ng-atomic-common-utils.umd.min.js +0 -17
- package/bundles/ng-atomic-common-utils.umd.min.js.map +0 -1
- package/bundles/ng-atomic-common.umd.min.js +0 -2
- package/bundles/ng-atomic-common.umd.min.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ng-atomic-common-utils.js","sources":["../../../../libs/common/utils/comma/comma.ts","../../../../libs/common/utils/compare-by-id/compare-by-id.ts","../../../../libs/common/utils/date-utils/date-utils.ts","../../../../libs/common/utils/mat-dayjs-date/dayjs-date.adapter.ts","../../../../libs/common/utils/mat-dayjs-date/dayjs-date.formats.ts","../../../../libs/common/utils/mat-dayjs-date/dayjs-jp-providers.ts","../../../../libs/common/utils/mat-dayjs-date/dayjs-date.module.ts","../../../../libs/common/utils/smart-exp-transformer/smart-exp-transformer.ts","../../../../libs/common/utils/to-object/to-object.ts","../../../../libs/common/utils/query/query.resolver.ts","../../../../libs/common/utils/index.ts","../../../../libs/common/utils/ng-atomic-common-utils.ts"],"sourcesContent":["export const comma = (n: number | null): string => n === null ? '0' : n.toLocaleString();\nexport const commaStr = (n: number, unit: string = '円') => n < 0 ? `-${comma(abs(n))}${unit}` : `${comma(n)}${unit}`;\nexport const abs = (n: number) => Math.abs(n);","export type HasId = { id: string };\nexport const compareById = (a: HasId, b: HasId) => parseInt(a.id, 10) - parseInt(b.id, 10);\n","import * as dayjs from 'dayjs';\n\nexport const removeComma = (str: string) => str.replace(/\\,/g, '');\n\nexport const DATE_FORMAT = 'YYYY-MM-DDTHH:mm:ss';\nconst DATE_REGEX = /^[0-9]{4}\\/(0[1-9]|1[0-2])\\/(0[1-9]|[12][0-9]|3[01])$/;\nconst DATETIME_REGEX = /^\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d:[0-5]\\d\\+([+-][0-2]\\d:[0-5]\\d)$/;\nexport const isDateStr = (str: string | null): str is string => str && !!str.match(DATE_REGEX);\nexport const isDateTimeStr = (str: string | null): str is string => str && !!str.match(DATE_REGEX);\n\nconst ISO_REGEX = /\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d:[0-5]\\d\\.\\d+([+-][0-2]\\d:[0-5]\\d|Z)/;\nexport const isIsoString = (str: string | null): str is string => str && !!str.match(ISO_REGEX);\n\n\nexport interface Timestamp {\n toDate: () => Date;\n}\n\nexport function timestampToDayjs(timestamp: Timestamp | null): dayjs.Dayjs | null {\n return timestamp ? dayjs(timestamp.toDate()) : null;\n}","\nimport { Optional, Inject, InjectionToken } from '@angular/core';\nimport { DateAdapter, MAT_DATE_LOCALE } from '@angular/material/core';\nimport * as dayjs from 'dayjs';\nimport { Dayjs } from 'dayjs';\nimport * as utc from 'dayjs/plugin/utc';\nimport * as localeData from 'dayjs/plugin/localeData';\nimport * as LocalizedFormat from 'dayjs/plugin/localizedFormat';\nimport * as customParseFormat from 'dayjs/plugin/customParseFormat';\n\n\nexport interface DayJsDateAdapterOptions {\n /**\n * Turns the use of utc dates on or off.\n * Changing this will change how Angular Material components like DatePicker output dates.\n * {@default false}\n */\n useUtc?: boolean;\n}\n\n/** InjectionToken for Dayjs date adapter to configure options. */\nexport const MAT_DAYJS_DATE_ADAPTER_OPTIONS = new InjectionToken<DayJsDateAdapterOptions>(\n 'MAT_DAYJS_DATE_ADAPTER_OPTIONS', {\n providedIn: 'root',\n factory: MAT_DAYJS_DATE_ADAPTER_OPTIONS_FACTORY\n});\n\nexport function MAT_DAYJS_DATE_ADAPTER_OPTIONS_FACTORY(): DayJsDateAdapterOptions {\n return {\n useUtc: false\n };\n}\n\n/** Creates an array and fills it with values. */\nfunction range<T>(length: number, valueFunction: (index: number) => T): T[] {\n const valuesArray = Array(length);\n for (let i = 0; i < length; i++) {\n valuesArray[i] = valueFunction(i);\n }\n return valuesArray;\n}\n\n/** Adapts Dayjs Dates for use with Angular Material. */\nexport class DayjsDateAdapter extends DateAdapter<Dayjs> {\n private localeData!: {\n firstDayOfWeek: number,\n longMonths: string[],\n shortMonths: string[],\n dates: string[],\n longDaysOfWeek: string[],\n shortDaysOfWeek: string[],\n narrowDaysOfWeek: string[]\n };\n\n constructor(\n @Optional() @Inject(MAT_DATE_LOCALE) public dateLocale: string,\n @Optional() @Inject(MAT_DAYJS_DATE_ADAPTER_OPTIONS) private options?: DayJsDateAdapterOptions\n ) {\n super();\n this.initializeParser(dateLocale);\n }\n\n // TODO: Implement\n setLocale(locale: string) {\n super.setLocale(locale);\n\n const dayJsLocaleData = this.dayJs().localeData();\n this.localeData = {\n firstDayOfWeek: dayJsLocaleData.firstDayOfWeek(),\n longMonths: dayJsLocaleData.months(),\n shortMonths: dayJsLocaleData.monthsShort(),\n dates: range(31, (i) => this.createDate(2017, 0, i + 1).format('D')),\n longDaysOfWeek: range(7, (i) => this.dayJs().set('day', i).format('dddd')),\n shortDaysOfWeek: dayJsLocaleData.weekdaysShort(),\n narrowDaysOfWeek: dayJsLocaleData.weekdaysMin(),\n };\n }\n\n getYear(date: Dayjs): number {\n return this.dayJs(date).year();\n }\n\n getMonth(date: Dayjs): number {\n return this.dayJs(date).month();\n }\n\n getDate(date: Dayjs): number {\n return this.dayJs(date).date();\n }\n\n getDayOfWeek(date: Dayjs): number {\n return this.dayJs(date).day();\n }\n\n getMonthNames(style: 'long' | 'short' | 'narrow'): string[] {\n return style === 'long' ? this.localeData.longMonths : this.localeData.shortMonths;\n }\n\n getDateNames(): string[] {\n return this.localeData.dates;\n }\n\n getDayOfWeekNames(style: 'long' | 'short' | 'narrow'): string[] {\n if (style === 'long') {\n return this.localeData.longDaysOfWeek;\n }\n if (style === 'short') {\n return this.localeData.shortDaysOfWeek;\n }\n return this.localeData.narrowDaysOfWeek;\n }\n\n getYearName(date: Dayjs): string {\n return this.dayJs(date).format('YYYY');\n }\n\n getFirstDayOfWeek(): number {\n return this.localeData.firstDayOfWeek;\n }\n\n getNumDaysInMonth(date: Dayjs): number {\n return this.dayJs(date).daysInMonth();\n }\n\n clone(date: Dayjs): Dayjs {\n return date.clone();\n }\n\n createDate(year: number, month: number, date: number): Dayjs {\n const returnDayjs = this.dayJs()\n .set('year', year)\n .set('month', month)\n .set('date', date);\n return returnDayjs;\n }\n\n today(): Dayjs {\n return this.dayJs();\n }\n\n parse(value: any, parseFormat: string): Dayjs | null {\n if (value && typeof value === 'string') {\n return this.dayJs(value, dayjs().localeData().longDateFormat(parseFormat), this.locale);\n }\n return value ? this.dayJs(value).locale(this.locale) : null;\n }\n\n format(date: Dayjs, displayFormat: string): string {\n if (!this.isValid(date)) {\n throw Error('DayjsDateAdapter: Cannot format invalid date.');\n }\n return date.locale(this.locale).format(displayFormat);\n }\n\n addCalendarYears(date: Dayjs, years: number): Dayjs {\n return date.add(years, 'year');\n }\n\n addCalendarMonths(date: Dayjs, months: number): Dayjs {\n return date.add(months, 'month');\n }\n\n addCalendarDays(date: Dayjs, days: number): Dayjs {\n return date.add(days, 'day');\n }\n\n toIso8601(date: Dayjs): string {\n return date.toISOString();\n }\n\n /**\n * Attempts to deserialize a value to a valid date object. This is different from parsing in that\n * deserialize should only accept non-ambiguous, locale-independent formats (e.g. a ISO 8601\n * string). The default implementation does not allow any deserialization, it simply checks that\n * the given value is already a valid date object or null. The `<mat-datepicker>` will call this\n * method on all of it's `@Input()` properties that accept dates. It is therefore possible to\n * support passing values from your backend directly to these properties by overriding this method\n * to also deserialize the format used by your backend.\n * @param value The value to be deserialized into a date object.\n * @returns The deserialized date object, either a valid date, null if the value can be\n * deserialized into a null date (e.g. the empty string), or an invalid date.\n */\n deserialize(value: any): Dayjs | null {\n let date;\n if (value instanceof Date) {\n date = this.dayJs(value);\n } else if (this.isDateInstance(value)) {\n // NOTE: assumes that cloning also sets the correct locale.\n return this.clone(value);\n }\n if (typeof value === 'string') {\n if (!value) {\n return null;\n }\n date = this.dayJs(value).toISOString();\n }\n if (date && this.isValid(date as Dayjs)) {\n return this.dayJs(date); // NOTE: Is this necessary since Dayjs is immutable and Moment was not?\n }\n return super.deserialize(value);\n }\n\n isDateInstance(obj: any): boolean {\n return dayjs.isDayjs(obj);\n }\n\n isValid(date: Dayjs): boolean {\n return this.dayJs(date).isValid();\n }\n\n invalid(): Dayjs {\n return this.dayJs(null);\n }\n\n private dayJs(input?: any, format?: string, locale?: string): Dayjs {\n if (!this.shouldUseUtc) {\n return dayjs(input, { format, locale }, locale);\n }\n return dayjs(input, { format, locale, utc: this.shouldUseUtc }, locale).utc();\n }\n\n private get shouldUseUtc(): boolean {\n const { useUtc }: DayJsDateAdapterOptions = this.options || {};\n return !!useUtc;\n }\n\n private initializeParser(dateLocale: string) {\n if (this.shouldUseUtc) {\n dayjs.extend(utc);\n }\n\n dayjs.extend(LocalizedFormat);\n dayjs.extend(customParseFormat);\n dayjs.extend(localeData);\n\n this.setLocale(dateLocale);\n }\n}","import { MatDateFormats } from '@angular/material/core';\n\n/**\n * Custom Date-Formats and Adapter (using https://github.com/iamkun/dayjs)\n */\nexport const MAT_DAYJS_DATE_FORMATS: MatDateFormats = {\n parse: {\n dateInput: 'MM/DD/YYYY',\n },\n display: {\n dateInput: 'MM/DD/YYYY',\n monthYearLabel: 'MMM YYYY',\n dateA11yLabel: 'LL',\n monthYearA11yLabel: 'MMMM YYYY',\n }\n};","import { MatDateFormats, MAT_DATE_FORMATS, MAT_DATE_LOCALE } from '@angular/material/core';\nimport * as dayjs from 'dayjs';\nimport 'dayjs/locale/ja'\ndayjs.locale('ja');\n\nexport const MAT_DAYJS_DATE_FORMATS_FOR_JP: MatDateFormats = {\n parse: {\n dateInput: 'YYYY/MM/DD',\n },\n display: {\n dateInput: 'YYYY/MM/DD',\n monthYearLabel: 'MMM YYYY',\n dateA11yLabel: 'LL',\n monthYearA11yLabel: 'MMMM YYYY',\n }\n};\n\nexport const MAT_DAYJS_JP_PROVIDERS = [\n { provide: MAT_DATE_LOCALE, useValue: 'ja' },\n { provide: MAT_DATE_FORMATS, useValue: MAT_DAYJS_DATE_FORMATS_FOR_JP },\n];\n","import { NgModule } from '@angular/core';\nimport { DateAdapter, MAT_DATE_FORMATS, MAT_DATE_LOCALE } from '@angular/material/core';\nimport { DayjsDateAdapter, MAT_DAYJS_DATE_ADAPTER_OPTIONS } from './dayjs-date.adapter';\nimport { MAT_DAYJS_DATE_FORMATS } from './dayjs-date.formats';\n\n@NgModule({\n providers: [\n {\n provide: DateAdapter,\n useClass: DayjsDateAdapter,\n deps: [MAT_DATE_LOCALE, MAT_DAYJS_DATE_ADAPTER_OPTIONS]\n },\n ],\n})\nexport class DayjsDateModule { }\n\n@NgModule({\n imports: [DayjsDateModule],\n providers: [{ provide: MAT_DATE_FORMATS, useValue: MAT_DAYJS_DATE_FORMATS }],\n})\nexport class MatDayjsDateModule { }","import { InjectionToken } from '@angular/core';\nimport * as dayjs from 'dayjs';\nimport { comma } from '../comma';\n\nexport const SMART_EXP_TRANSFORMER = new InjectionToken<SmartExpTransformer>('[@ng-atomic/common] Smart Transformer');\n\nexport type SmartExpTransformer = (input: string | number | dayjs.Dayjs | any, key?: string) => string;\n\n// export const yenTransform = (value: number, _unit?: string): string => {\n// return value < 1 ? `${comma(value * 100)}%` : `${comma(value)}円`;\n// }\n\nexport const yenTransform = (value: number, _unit?: string): string => {\n return `${comma(value)}円`;\n}\n\nexport const smartExpTransformer: SmartExpTransformer = input => dayjs.isDayjs(input)\n ? input.format('YY/MM/DD')\n : Array.isArray(input) \n ? `${input.length}個のアイテム`\n : typeof input === 'number'\n ? yenTransform(input)\n : input;","const getAllProps = (obj: object, keys: string[] = Object.keys(obj)): string[] => {\n const proto = Object.getPrototypeOf(obj);\n keys = Object.getOwnPropertyNames(proto)\n .filter(v => v !== '__proto__')\n .filter(v => Object.getOwnPropertyDescriptor(proto, v)!.get instanceof Function)\n .concat(keys);\n\n return proto.constructor.name === 'Object' ? keys : getAllProps(proto, keys);\n}\n\nexport const toObject = (obj: object): object => getAllProps(obj).reduce((p, k) => ({...p, [k]: obj[k]}), {});\n","import { flatten } from 'flat';\nimport { smartExpTransformer, SmartExpTransformer } from '../smart-exp-transformer';\nimport { toObject } from '../to-object';\n\nexport const filterByQuery = <T>(\n items: T[], \n queryString: string, \n dlm: Record<string, string> = {},\n transformer: SmartExpTransformer = smartExpTransformer,\n): T[] => {\n return new QueryResolver(dlm, transformer).resolve(items, queryString);\n}\n\ntype QueryResolveFunc<T> = (items: T[], query: string) => T[];\n\nclass QueryResolver<T extends object = any> {\n REVERSED_MAP: Record<string, string>;\n\n constructor(\n map: Record<string, string>,\n private transformer: SmartExpTransformer,\n ) {\n this.REVERSED_MAP = Object.entries(map).reduce((p, [k, v]) => ({\n ...p, [v]: k\n }), {} as Record<string, string>);\n }\n\n resolve(items: T[], queryString: string): T[] {\n return this.resolveQueries(items, queryString.split(' ').filter(q => q.length));\n }\n\n resolveQueries(items: T[], queries: string[]): T[] {\n return queries.reduce((_items, query: string) => {\n if (query.includes(':')) return this.inQueryByKey(_items, query);\n if (query.includes('=')) return this.inQueryByKey(_items, query);\n if (query.includes('>')) return this.gtQueryByKey(_items, query);\n if (query.includes('<')) return this.inQueryByKey(_items, query);\n return this.inQuery(_items, query);\n }, items);\n }\n\n private parseQuery(query: string): [boolean, string, string] {\n const [_key, value] = query.split(':');\n return [_key.startsWith('-'), _key.startsWith('-') ? _key.slice(1) : _key, value];\n }\n\n private inQueryByKey: QueryResolveFunc<T> = (items, query) => {\n const [not, _key, value] = this.parseQuery(query);\n const key = this.REVERSED_MAP?.[_key] ?? _key;\n return items.filter(item => _not(this.in(key, flatten(toObject(item as any))?.[key], value), not));\n }\n\n private gtQueryByKey: QueryResolveFunc<T> = (items, query) => {\n const [_key, value] = query.split('>');\n const key = this.REVERSED_MAP?.[_key] ?? _key;\n return items.filter(item => this.gt(key, flatten(toObject(item as any))?.[key], value));\n }\n\n private inQuery: QueryResolveFunc<T> = (items, q) => {\n return items.filter(item => Object.entries(flatten(toObject(item as T))).some(([k, v]) => this.in(k, v, q)));\n }\n\n private in(k: string, v: any, q: string) {\n return _in(this.transformer(v, k), q);\n }\n\n private gt(k: string, v: any, q: string) {\n return _gt(this.transformer(v, k), q);\n }\n}\n\nconst _not = (bool: boolean, not: boolean): boolean => {\n return not ? !bool : bool;\n}\n\nconst _in = (value: any, query: string): boolean => {\n return typeof value === 'string' ? value?.includes(query) : false;\n}\n\nconst _gt = (value: any, query: string): boolean => {\n return typeof value === 'string' \n ? parseFloat(value) > parseFloat(query) \n : typeof value === 'number'\n ? value > parseFloat(query)\n : false;\n}","export * from './comma';\nexport * from './compare-by-id';\nexport * from './date-utils';\nexport * from './mat-dayjs-date';\nexport * from './smart-exp-transformer';\nexport * from './to-object';\nexport * from './query';\n// export * from './define-element';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["dayjs.isDayjs","dayjs.extend","dayjs.locale"],"mappings":";;;;;;;;;;;;MAAa,KAAK,GAAG,CAAC,CAAgB,KAAa,CAAC,KAAK,IAAI,GAAG,GAAG,GAAG,CAAC,CAAC,cAAc,GAAG;MAC5E,QAAQ,GAAG,CAAC,CAAS,EAAE,OAAe,GAAG,KAAK,CAAC,GAAG,CAAC,GAAG,IAAI,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,EAAE,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG;MACxG,GAAG,GAAG,CAAC,CAAS,KAAK,IAAI,CAAC,GAAG,CAAC,CAAC;;MCD/B,WAAW,GAAG,CAAC,CAAQ,EAAE,CAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE;;MCC5E,WAAW,GAAG,CAAC,GAAW,KAAK,GAAG,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,EAAE;MAEtD,WAAW,GAAG,sBAAsB;AACjD,MAAM,UAAU,GAAG,uDAAuD,CAAC;AAC3E,MAAM,cAAc,GAAG,uEAAuE,CAAC;MAClF,SAAS,GAAG,CAAC,GAAkB,KAAoB,GAAG,IAAI,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,UAAU,EAAE;MAClF,aAAa,GAAG,CAAC,GAAkB,KAAoB,GAAG,IAAI,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,UAAU,EAAE;AAEnG,MAAM,SAAS,GAAG,0EAA0E,CAAC;MAChF,WAAW,GAAG,CAAC,GAAkB,KAAoB,GAAG,IAAI,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,SAAS,EAAE;SA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AC,CAAC;QACvC,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC,CAAC;KACnF;IAkBO,EAAE,CAAC,CAAS,EAAE,CAAM,EAAE,CAAS;QACrC,OAAO,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;KACvC;IAEO,EAAE,CAAC,CAAS,EAAE,CAAM,EAAE,CAAS;QACrC,OAAO,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;KACvC;CACF;AAED,MAAM,IAAI,GAAG,CAAC,IAAa,EAAE,GAAY;IACvC,OAAO,GAAG,GAAG,CAAC,IAAI,GAAG,IAAI,CAAC;AAC5B,CAAC,CAAA;AAED,MAAM,GAAG,GAAG,CAAC,KAAU,EAAE,KAAa;IACpC,OAAO,OAAO,KAAK,KAAK,QAAQ,GAAG,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,QAAQ,CAAC,KAAK,IAAI,KAAK,CAAC;AACpE,CAAC,CAAA;AAED,MAAM,GAAG,GAAG,CAAC,KAAU,EAAE,KAAa;IACpC,OAAO,OAAO,KAAK,KAAK,QAAQ;UAC5B,UAAU,CAAC,KAAK,CAAC,GAAG,UAAU,CAAC,KAAK,CAAC;UACrC,OAAO,KAAK,KAAK,QAAQ;cACzB,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC;cACzB,KAAK,CAAC;AACZ,CAAC;;AC9ED;;ACPA;;;;;;"}
|
|
1
|
+
{"version":3,"file":"ng-atomic-common-utils.js","sources":["../../../../libs/common/utils/comma/comma.ts","../../../../libs/common/utils/compare-by-id/compare-by-id.ts","../../../../libs/common/utils/date-utils/date-utils.ts","../../../../libs/common/utils/mat-dayjs-date/dayjs-date.adapter.ts","../../../../libs/common/utils/mat-dayjs-date/dayjs-date.formats.ts","../../../../libs/common/utils/mat-dayjs-date/dayjs-jp-providers.ts","../../../../libs/common/utils/mat-dayjs-date/dayjs-date.module.ts","../../../../libs/common/utils/smart-exp-transformer/smart-exp-transformer.ts","../../../../libs/common/utils/to-object/to-object.ts","../../../../libs/common/utils/query/query.resolver.ts","../../../../libs/common/utils/index.ts","../../../../libs/common/utils/ng-atomic-common-utils.ts"],"sourcesContent":["export const comma = (n: number | null): string => n === null ? '0' : n.toLocaleString();\nexport const commaStr = (n: number, unit: string = '円') => n < 0 ? `-${comma(abs(n))}${unit}` : `${comma(n)}${unit}`;\nexport const abs = (n: number) => Math.abs(n);","export type HasId = { id: string };\nexport const compareById = (a: HasId, b: HasId) => parseInt(a.id, 10) - parseInt(b.id, 10);\n","import dayjs from 'dayjs';\n\nexport const removeComma = (str: string) => str.replace(/\\,/g, '');\n\nexport const DATE_FORMAT = 'YYYY-MM-DDTHH:mm:ss';\nconst DATE_REGEX = /^[0-9]{4}\\/(0[1-9]|1[0-2])\\/(0[1-9]|[12][0-9]|3[01])$/;\nconst DATETIME_REGEX = /^\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d:[0-5]\\d\\+([+-][0-2]\\d:[0-5]\\d)$/;\nexport const isDateStr = (str: string | null): str is string => str && !!str.match(DATE_REGEX);\nexport const isDateTimeStr = (str: string | null): str is string => str && !!str.match(DATE_REGEX);\n\nconst ISO_REGEX = /\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d:[0-5]\\d\\.\\d+([+-][0-2]\\d:[0-5]\\d|Z)/;\nexport const isIsoString = (str: string | null): str is string => str && !!str.match(ISO_REGEX);\n\n\nexport interface Timestamp {\n toDate: () => Date;\n}\n\nexport function timestampToDayjs(timestamp: Timestamp | null): dayjs.Dayjs | null {\n return timestamp ? dayjs(timestamp.toDate()) : null;\n}","\nimport { Optional, Inject, InjectionToken } from '@angular/core';\nimport { DateAdapter, MAT_DATE_LOCALE } from '@angular/material/core';\nimport dayjs from 'dayjs';\nimport { Dayjs } from 'dayjs';\nimport utc from 'dayjs/plugin/utc';\nimport localeData from 'dayjs/plugin/localeData';\nimport LocalizedFormat from 'dayjs/plugin/localizedFormat';\nimport customParseFormat from 'dayjs/plugin/customParseFormat';\n\n\nexport interface DayJsDateAdapterOptions {\n /**\n * Turns the use of utc dates on or off.\n * Changing this will change how Angular Material components like DatePicker output dates.\n * {@default false}\n */\n useUtc?: boolean;\n}\n\n/** InjectionToken for Dayjs date adapter to configure options. */\nexport const MAT_DAYJS_DATE_ADAPTER_OPTIONS = new InjectionToken<DayJsDateAdapterOptions>(\n 'MAT_DAYJS_DATE_ADAPTER_OPTIONS', {\n providedIn: 'root',\n factory: MAT_DAYJS_DATE_ADAPTER_OPTIONS_FACTORY\n});\n\nexport function MAT_DAYJS_DATE_ADAPTER_OPTIONS_FACTORY(): DayJsDateAdapterOptions {\n return {\n useUtc: false\n };\n}\n\n/** Creates an array and fills it with values. */\nfunction range<T>(length: number, valueFunction: (index: number) => T): T[] {\n const valuesArray = Array(length);\n for (let i = 0; i < length; i++) {\n valuesArray[i] = valueFunction(i);\n }\n return valuesArray;\n}\n\n/** Adapts Dayjs Dates for use with Angular Material. */\nexport class DayjsDateAdapter extends DateAdapter<Dayjs> {\n private localeData!: {\n firstDayOfWeek: number,\n longMonths: string[],\n shortMonths: string[],\n dates: string[],\n longDaysOfWeek: string[],\n shortDaysOfWeek: string[],\n narrowDaysOfWeek: string[]\n };\n\n constructor(\n @Optional() @Inject(MAT_DATE_LOCALE) public dateLocale: string,\n @Optional() @Inject(MAT_DAYJS_DATE_ADAPTER_OPTIONS) private options?: DayJsDateAdapterOptions\n ) {\n super();\n this.initializeParser(dateLocale);\n }\n\n // TODO: Implement\n setLocale(locale: string) {\n super.setLocale(locale);\n\n const dayJsLocaleData = this.dayJs().localeData();\n this.localeData = {\n firstDayOfWeek: dayJsLocaleData.firstDayOfWeek(),\n longMonths: dayJsLocaleData.months(),\n shortMonths: dayJsLocaleData.monthsShort(),\n dates: range(31, (i) => this.createDate(2017, 0, i + 1).format('D')),\n longDaysOfWeek: range(7, (i) => this.dayJs().set('day', i).format('dddd')),\n shortDaysOfWeek: dayJsLocaleData.weekdaysShort(),\n narrowDaysOfWeek: dayJsLocaleData.weekdaysMin(),\n };\n }\n\n getYear(date: Dayjs): number {\n return this.dayJs(date).year();\n }\n\n getMonth(date: Dayjs): number {\n return this.dayJs(date).month();\n }\n\n getDate(date: Dayjs): number {\n return this.dayJs(date).date();\n }\n\n getDayOfWeek(date: Dayjs): number {\n return this.dayJs(date).day();\n }\n\n getMonthNames(style: 'long' | 'short' | 'narrow'): string[] {\n return style === 'long' ? this.localeData.longMonths : this.localeData.shortMonths;\n }\n\n getDateNames(): string[] {\n return this.localeData.dates;\n }\n\n getDayOfWeekNames(style: 'long' | 'short' | 'narrow'): string[] {\n if (style === 'long') {\n return this.localeData.longDaysOfWeek;\n }\n if (style === 'short') {\n return this.localeData.shortDaysOfWeek;\n }\n return this.localeData.narrowDaysOfWeek;\n }\n\n getYearName(date: Dayjs): string {\n return this.dayJs(date).format('YYYY');\n }\n\n getFirstDayOfWeek(): number {\n return this.localeData.firstDayOfWeek;\n }\n\n getNumDaysInMonth(date: Dayjs): number {\n return this.dayJs(date).daysInMonth();\n }\n\n clone(date: Dayjs): Dayjs {\n return date.clone();\n }\n\n createDate(year: number, month: number, date: number): Dayjs {\n const returnDayjs = this.dayJs()\n .set('year', year)\n .set('month', month)\n .set('date', date);\n return returnDayjs;\n }\n\n today(): Dayjs {\n return this.dayJs();\n }\n\n parse(value: any, parseFormat: string): Dayjs | null {\n if (value && typeof value === 'string') {\n return this.dayJs(value, dayjs().localeData().longDateFormat(parseFormat), this.locale);\n }\n return value ? this.dayJs(value).locale(this.locale) : null;\n }\n\n format(date: Dayjs, displayFormat: string): string {\n if (!this.isValid(date)) {\n throw Error('DayjsDateAdapter: Cannot format invalid date.');\n }\n return date.locale(this.locale).format(displayFormat);\n }\n\n addCalendarYears(date: Dayjs, years: number): Dayjs {\n return date.add(years, 'year');\n }\n\n addCalendarMonths(date: Dayjs, months: number): Dayjs {\n return date.add(months, 'month');\n }\n\n addCalendarDays(date: Dayjs, days: number): Dayjs {\n return date.add(days, 'day');\n }\n\n toIso8601(date: Dayjs): string {\n return date.toISOString();\n }\n\n /**\n * Attempts to deserialize a value to a valid date object. This is different from parsing in that\n * deserialize should only accept non-ambiguous, locale-independent formats (e.g. a ISO 8601\n * string). The default implementation does not allow any deserialization, it simply checks that\n * the given value is already a valid date object or null. The `<mat-datepicker>` will call this\n * method on all of it's `@Input()` properties that accept dates. It is therefore possible to\n * support passing values from your backend directly to these properties by overriding this method\n * to also deserialize the format used by your backend.\n * @param value The value to be deserialized into a date object.\n * @returns The deserialized date object, either a valid date, null if the value can be\n * deserialized into a null date (e.g. the empty string), or an invalid date.\n */\n deserialize(value: any): Dayjs | null {\n let date;\n if (value instanceof Date) {\n date = this.dayJs(value);\n } else if (this.isDateInstance(value)) {\n // NOTE: assumes that cloning also sets the correct locale.\n return this.clone(value);\n }\n if (typeof value === 'string') {\n if (!value) {\n return null;\n }\n date = this.dayJs(value).toISOString();\n }\n if (date && this.isValid(date as Dayjs)) {\n return this.dayJs(date); // NOTE: Is this necessary since Dayjs is immutable and Moment was not?\n }\n return super.deserialize(value);\n }\n\n isDateInstance(obj: any): boolean {\n return dayjs.isDayjs(obj);\n }\n\n isValid(date: Dayjs): boolean {\n return this.dayJs(date).isValid();\n }\n\n invalid(): Dayjs {\n return this.dayJs(null);\n }\n\n private dayJs(input?: any, format?: string, locale?: string): Dayjs {\n if (!this.shouldUseUtc) {\n return dayjs(input, { format, locale }, locale);\n }\n return dayjs(input, { format, locale, utc: this.shouldUseUtc }, locale).utc();\n }\n\n private get shouldUseUtc(): boolean {\n const { useUtc }: DayJsDateAdapterOptions = this.options || {};\n return !!useUtc;\n }\n\n private initializeParser(dateLocale: string) {\n if (this.shouldUseUtc) {\n dayjs.extend(utc);\n }\n\n dayjs.extend(LocalizedFormat);\n dayjs.extend(customParseFormat);\n dayjs.extend(localeData);\n\n this.setLocale(dateLocale);\n }\n}","import { MatDateFormats } from '@angular/material/core';\n\n/**\n * Custom Date-Formats and Adapter (using https://github.com/iamkun/dayjs)\n */\nexport const MAT_DAYJS_DATE_FORMATS: MatDateFormats = {\n parse: {\n dateInput: 'MM/DD/YYYY',\n },\n display: {\n dateInput: 'MM/DD/YYYY',\n monthYearLabel: 'MMM YYYY',\n dateA11yLabel: 'LL',\n monthYearA11yLabel: 'MMMM YYYY',\n }\n};","import { MatDateFormats, MAT_DATE_FORMATS, MAT_DATE_LOCALE } from '@angular/material/core';\nimport dayjs from 'dayjs';\nimport 'dayjs/locale/ja'\ndayjs.locale('ja');\n\nexport const MAT_DAYJS_DATE_FORMATS_FOR_JP: MatDateFormats = {\n parse: {\n dateInput: 'YYYY/MM/DD',\n },\n display: {\n dateInput: 'YYYY/MM/DD',\n monthYearLabel: 'MMM YYYY',\n dateA11yLabel: 'LL',\n monthYearA11yLabel: 'MMMM YYYY',\n }\n};\n\nexport const MAT_DAYJS_JP_PROVIDERS = [\n { provide: MAT_DATE_LOCALE, useValue: 'ja' },\n { provide: MAT_DATE_FORMATS, useValue: MAT_DAYJS_DATE_FORMATS_FOR_JP },\n];\n","import { NgModule } from '@angular/core';\nimport { DateAdapter, MAT_DATE_FORMATS, MAT_DATE_LOCALE } from '@angular/material/core';\nimport { DayjsDateAdapter, MAT_DAYJS_DATE_ADAPTER_OPTIONS } from './dayjs-date.adapter';\nimport { MAT_DAYJS_DATE_FORMATS } from './dayjs-date.formats';\n\n@NgModule({\n providers: [\n {\n provide: DateAdapter,\n useClass: DayjsDateAdapter,\n deps: [MAT_DATE_LOCALE, MAT_DAYJS_DATE_ADAPTER_OPTIONS]\n },\n ],\n})\nexport class DayjsDateModule { }\n\n@NgModule({\n imports: [DayjsDateModule],\n providers: [{ provide: MAT_DATE_FORMATS, useValue: MAT_DAYJS_DATE_FORMATS }],\n})\nexport class MatDayjsDateModule { }","import { InjectionToken } from '@angular/core';\nimport dayjs from 'dayjs';\nimport { comma } from '../comma';\n\nexport const SMART_EXP_TRANSFORMER = new InjectionToken<SmartExpTransformer>('[@ng-atomic/common] Smart Transformer');\n\nexport type SmartExpTransformer = (input: string | number | dayjs.Dayjs | any, key?: string) => string;\n\n// export const yenTransform = (value: number, _unit?: string): string => {\n// return value < 1 ? `${comma(value * 100)}%` : `${comma(value)}円`;\n// }\n\nexport const yenTransform = (value: number, _unit?: string): string => {\n return `${comma(value)}円`;\n}\n\nexport const smartExpTransformer: SmartExpTransformer = input => dayjs.isDayjs(input)\n ? input.format('YY/MM/DD')\n : Array.isArray(input) \n ? `${input.length}個のアイテム`\n : typeof input === 'number'\n ? yenTransform(input)\n : input;","const getAllProps = (obj: object, keys: string[] = Object.keys(obj)): string[] => {\n const proto = Object.getPrototypeOf(obj);\n keys = Object.getOwnPropertyNames(proto)\n .filter(v => v !== '__proto__')\n .filter(v => Object.getOwnPropertyDescriptor(proto, v)!.get instanceof Function)\n .concat(keys);\n\n return proto.constructor.name === 'Object' ? keys : getAllProps(proto, keys);\n}\n\nexport const toObject = (obj: object): object => getAllProps(obj).reduce((p, k) => ({...p, [k]: obj[k]}), {});\n","import { flatten } from 'flat';\nimport { smartExpTransformer, SmartExpTransformer } from '../smart-exp-transformer';\nimport { toObject } from '../to-object';\nimport dayjs from 'dayjs';\n\nexport const filterByQuery = <T>(\n items: T[], \n queryString: string, \n dlm: Record<string, string> = {},\n transformer: SmartExpTransformer = smartExpTransformer,\n): T[] => {\n return new QueryResolver(dlm, transformer).resolve(items, queryString);\n}\n\ntype QueryResolveFunc<T> = (items: T[], query: string) => T[];\n\nclass QueryResolver<T extends object = any> {\n REVERSED_MAP: Record<string, string>;\n\n constructor(\n map: Record<string, string>,\n private transformer: SmartExpTransformer,\n ) {\n this.REVERSED_MAP = Object.entries(map).reduce((p, [k, v]) => ({\n ...p, [v]: k\n }), {} as Record<string, string>);\n }\n\n resolve(items: T[], queryString: string): T[] {\n return this.resolveQueries(items, queryString.split(' ').filter(q => q.length));\n }\n\n resolveQueries(items: T[], queries: string[]): T[] {\n return queries.reduce((_items, query: string) => {\n if (query.includes(':')) return this.inQueryByKey(_items, query);\n if (query.includes('=')) return this.inQueryByKey(_items, query);\n if (query.includes('>')) return this.gtQueryByKey(_items, query);\n if (query.includes('<')) return this.ltQueryByKey(_items, query);\n return this.inQuery(_items, query);\n }, items);\n }\n\n private parseQuery(query: string): [boolean, string, string] {\n const [_key, value] = query.split(':');\n return [_key.startsWith('-'), _key.startsWith('-') ? _key.slice(1) : _key, value];\n }\n\n private inQueryByKey: QueryResolveFunc<T> = (items, query) => {\n const [not, _key, value] = this.parseQuery(query);\n const key = this.REVERSED_MAP?.[_key] ?? _key;\n return items.filter(item => _not(this.in(key, flatten(toObject(item as any))?.[key], value), not));\n }\n\n private gtQueryByKey: QueryResolveFunc<T> = (items, query) => {\n const [_key, value] = query.split('>');\n const key = this.REVERSED_MAP?.[_key] ?? _key;\n return items.filter(item => {\n // TODO(nontangent): flattenしたときにdayjsが壊れる\n const v = flatten(toObject(item as any))?.[key] ?? toObject(item as any)?.[key];\n return this.gt(key, v, value)\n });\n }\n\n private ltQueryByKey: QueryResolveFunc<T> = (items, query) => {\n const [_key, value] = query.split('<');\n const key = this.REVERSED_MAP?.[_key] ?? _key;\n return items.filter(item => {\n // TODO(nontangent): flattenしたときにdayjsが壊れる\n const v = flatten(toObject(item as any))?.[key] ?? toObject(item as any)?.[key];\n return this.lt(key, v, value)\n });\n }\n\n private inQuery: QueryResolveFunc<T> = (items, q) => {\n return items.filter(item => Object.entries(flatten(toObject(item as T))).some(([k, v]) => this.in(k, v, q)));\n }\n\n private in(k: string, v: any, q: string) {\n return _in(this.transformer(v, k), q);\n }\n\n private gt(k: string, v: any, q: string) {\n // const value = dayjs.isDayjs(v) ? v : this.transformer(v, k);\n return _gt(v, q);\n }\n\n private lt(k: string, v: any, q: string) {\n // const value = dayjs.isDayjs(v) ? v : this.transformer(v, k);\n return _lt(v, q);\n }\n}\n\nconst _not = (bool: boolean, not: boolean): boolean => {\n return not ? !bool : bool;\n}\n\nconst _in = (value: any, query: string): boolean => {\n return typeof value === 'string' ? value?.includes(query) : false;\n}\n\nconst _gt = (value: any, query: string): boolean => {\n return typeof value === 'string' \n ? parseFloat(value) > parseFloat(query) \n : typeof value === 'number'\n ? value > parseFloat(query)\n : dayjs.isDayjs(value)\n ? dayjs(query).isBefore(value)\n : false;\n}\n\nconst _lt = (value: any, query: string): boolean => {\n return typeof value === 'string' \n ? parseFloat(value) < parseFloat(query) \n : typeof value === 'number'\n ? value < parseFloat(query)\n : dayjs.isDayjs(value)\n ? dayjs(query).isAfter(value)\n : false;\n}","export * from './comma';\nexport * from './compare-by-id';\nexport * from './date-utils';\nexport * from './mat-dayjs-date';\nexport * from './smart-exp-transformer';\nexport * from './to-object';\nexport * from './query';\n// export * from './define-element';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;MAAa,KAAK,GAAG,CAAC,CAAgB,KAAa,CAAC,KAAK,IAAI,GAAG,GAAG,GAAG,CAAC,CAAC,cAAc,GAAG;AAC5E,MAAA,QAAQ,GAAG,CAAC,CAAS,EAAE,IAAe,GAAA,GAAG,KAAK,CAAC,GAAG,CAAC,GAAG,CAAI,CAAA,EAAA,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAG,EAAA,IAAI,EAAE,GAAG,CAAA,EAAG,KAAK,CAAC,CAAC,CAAC,CAAG,EAAA,IAAI,GAAG;AAC9G,MAAM,GAAG,GAAG,CAAC,CAAS,KAAK,IAAI,CAAC,GAAG,CAAC,CAAC;;ACDrC,MAAM,WAAW,GAAG,CAAC,CAAQ,EAAE,CAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,GAAG,QAAQ,CAA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,UAAU,CAAC,KAAK,CAAC;AACvC,UAAE,OAAO,KAAK,KAAK,QAAQ;AAC3B,cAAE,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC;AAC3B,cAAE,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;kBACpB,KAAK,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC;kBAC3B,KAAK,CAAC;AACZ,CAAC;;AC/GD;;ACPA;;AAEG;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ng-atomic-common.js","sources":["../../../../libs/common/ng-atomic-common.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAA;;"}
|
|
1
|
+
{"version":3,"file":"ng-atomic-common.js","sources":["../../../../libs/common/ng-atomic-common.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAA;;AAEG"}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ng-atomic/common",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^11.2.14",
|
|
6
6
|
"@angular/core": "^11.2.14",
|
|
7
7
|
"flat": "^5.0.2",
|
|
8
8
|
"rxjs": "~6.6.3",
|
|
9
|
-
"@ngrx/component-store": "
|
|
9
|
+
"@ngrx/component-store": "12.4.0"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"tslib": "^2.0.0"
|
|
@@ -17,8 +17,5 @@
|
|
|
17
17
|
"esm2015": "esm2015/ng-atomic-common.js",
|
|
18
18
|
"fesm2015": "fesm2015/ng-atomic-common.js",
|
|
19
19
|
"typings": "ng-atomic-common.d.ts",
|
|
20
|
-
"sideEffects": false
|
|
21
|
-
"scripts": {
|
|
22
|
-
"prepublishOnly": "node --eval \"console.error('ERROR: Trying to publish a package that has been compiled by Ivy. This is not allowed.\\nPlease delete and rebuild the package, without compiling with Ivy, before attempting to publish.\\n')\" && exit 1"
|
|
23
|
-
}
|
|
20
|
+
"sideEffects": false
|
|
24
21
|
}
|
|
@@ -2,7 +2,7 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
import * as i1 from "./domain.pipe";
|
|
3
3
|
import * as i2 from "@angular/common";
|
|
4
4
|
export declare class DomainModule {
|
|
5
|
-
static ɵfac: i0.ɵɵ
|
|
6
|
-
static ɵmod: i0.ɵɵ
|
|
7
|
-
static ɵinj: i0.ɵɵ
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DomainModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DomainModule, [typeof i1.DomainPipe], [typeof i2.CommonModule], [typeof i1.DomainPipe]>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DomainModule>;
|
|
8
8
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { InjectionToken } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare type DomainLangMap = Record<string, string>;
|
|
4
|
-
export declare const DOMAIN_LANG_MAP: InjectionToken<
|
|
4
|
+
export declare const DOMAIN_LANG_MAP: InjectionToken<DomainLangMap>;
|
|
5
5
|
export declare class DomainPipe {
|
|
6
6
|
private map;
|
|
7
7
|
constructor(map: DomainLangMap);
|
|
8
8
|
transform(input: string): string;
|
|
9
|
-
static ɵfac: i0.ɵɵ
|
|
10
|
-
static ɵpipe: i0.ɵɵ
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DomainPipe, [{ optional: true; }]>;
|
|
10
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<DomainPipe, "D">;
|
|
11
11
|
}
|
|
@@ -2,7 +2,7 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
import * as i1 from "./smart-clamp.pipe";
|
|
3
3
|
import * as i2 from "@angular/common";
|
|
4
4
|
export declare class SmartClampModule {
|
|
5
|
-
static ɵfac: i0.ɵɵ
|
|
6
|
-
static ɵmod: i0.ɵɵ
|
|
7
|
-
static ɵinj: i0.ɵɵ
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SmartClampModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SmartClampModule, [typeof i1.SmartClampPipe], [typeof i2.CommonModule], [typeof i1.SmartClampPipe]>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SmartClampModule>;
|
|
8
8
|
}
|
|
@@ -9,6 +9,6 @@ export declare class SmartClampPipe implements PipeTransform {
|
|
|
9
9
|
private _output;
|
|
10
10
|
constructor(transformer?: SmartSortByTransformer);
|
|
11
11
|
transform<T>(items: T[], store: EntitiesPageStore<any, any>): T[];
|
|
12
|
-
static ɵfac: i0.ɵɵ
|
|
13
|
-
static ɵpipe: i0.ɵɵ
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SmartClampPipe, [{ optional: true; }]>;
|
|
13
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<SmartClampPipe, "smartClamp">;
|
|
14
14
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./smart-exp.pipe";
|
|
3
3
|
export declare class SmartExpModule {
|
|
4
|
-
static ɵfac: i0.ɵɵ
|
|
5
|
-
static ɵmod: i0.ɵɵ
|
|
6
|
-
static ɵinj: i0.ɵɵ
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SmartExpModule, never>;
|
|
5
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SmartExpModule, [typeof i1.SmartExpPipe], never, [typeof i1.SmartExpPipe]>;
|
|
6
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SmartExpModule>;
|
|
7
7
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import dayjs from 'dayjs';
|
|
2
2
|
import { SmartExpTransformer } from '@ng-atomic/common/utils';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class SmartExpPipe {
|
|
5
5
|
private transformer;
|
|
6
6
|
constructor(transformer: SmartExpTransformer);
|
|
7
7
|
transform(input: string | number | dayjs.Dayjs | any, key?: string): string;
|
|
8
|
-
static ɵfac: i0.ɵɵ
|
|
9
|
-
static ɵpipe: i0.ɵɵ
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SmartExpPipe, [{ optional: true; }]>;
|
|
9
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<SmartExpPipe, "smartExp">;
|
|
10
10
|
}
|
|
@@ -2,7 +2,7 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
import * as i1 from "./smart-field.pipe";
|
|
3
3
|
import * as i2 from "@angular/common";
|
|
4
4
|
export declare class SmartFieldModule {
|
|
5
|
-
static ɵfac: i0.ɵɵ
|
|
6
|
-
static ɵmod: i0.ɵɵ
|
|
7
|
-
static ɵinj: i0.ɵɵ
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SmartFieldModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SmartFieldModule, [typeof i1.SmartFieldPipe], [typeof i2.CommonModule], [typeof i1.SmartFieldPipe]>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SmartFieldModule>;
|
|
8
8
|
}
|
|
@@ -20,12 +20,12 @@ interface MultiSelectField<T> {
|
|
|
20
20
|
}
|
|
21
21
|
declare type FormField<V> = InputField | DateInputField | SelectField<V> | MultiSelectField<V>;
|
|
22
22
|
export declare type FormFieldMap = Record<string, FormField<any>>;
|
|
23
|
-
export declare const FORM_FIELD_MAP: InjectionToken<
|
|
23
|
+
export declare const FORM_FIELD_MAP: InjectionToken<FormFieldMap>;
|
|
24
24
|
export declare class SmartFieldPipe implements PipeTransform {
|
|
25
25
|
private map;
|
|
26
26
|
constructor(map: Record<string, FormField<any>>);
|
|
27
27
|
transform(key: string): FormField<any>;
|
|
28
|
-
static ɵfac: i0.ɵɵ
|
|
29
|
-
static ɵpipe: i0.ɵɵ
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SmartFieldPipe, [{ optional: true; }]>;
|
|
29
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<SmartFieldPipe, "smartField">;
|
|
30
30
|
}
|
|
31
31
|
export {};
|
|
@@ -2,7 +2,7 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
import * as i1 from "./smart-sort-by.pipe";
|
|
3
3
|
import * as i2 from "@angular/common";
|
|
4
4
|
export declare class SmartSortByModule {
|
|
5
|
-
static ɵfac: i0.ɵɵ
|
|
6
|
-
static ɵmod: i0.ɵɵ
|
|
7
|
-
static ɵinj: i0.ɵɵ
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SmartSortByModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SmartSortByModule, [typeof i1.SmartSortByPipe], [typeof i2.CommonModule], [typeof i1.SmartSortByPipe]>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SmartSortByModule>;
|
|
8
8
|
}
|
|
@@ -7,6 +7,6 @@ export declare class SmartSortByPipe implements PipeTransform {
|
|
|
7
7
|
private transformer?;
|
|
8
8
|
constructor(transformer?: SmartSortByTransformer);
|
|
9
9
|
transform<T>(items: T[], key: string, order?: 'asc' | 'desc'): T[];
|
|
10
|
-
static ɵfac: i0.ɵɵ
|
|
11
|
-
static ɵpipe: i0.ɵɵ
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SmartSortByPipe, [{ optional: true; }]>;
|
|
11
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<SmartSortByPipe, "smartSortBy">;
|
|
12
12
|
}
|
|
@@ -2,7 +2,7 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
import * as i1 from "./yen.pipe";
|
|
3
3
|
import * as i2 from "@angular/common";
|
|
4
4
|
export declare class YenModule {
|
|
5
|
-
static ɵfac: i0.ɵɵ
|
|
6
|
-
static ɵmod: i0.ɵɵ
|
|
7
|
-
static ɵinj: i0.ɵɵ
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<YenModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<YenModule, [typeof i1.YenPipe], [typeof i2.CommonModule], [typeof i1.YenPipe]>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<YenModule>;
|
|
8
8
|
}
|
package/pipes/yen/yen.pipe.d.ts
CHANGED
|
@@ -2,6 +2,6 @@ import { PipeTransform } from '@angular/core';
|
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class YenPipe implements PipeTransform {
|
|
4
4
|
transform(value: number, _unit?: string): string;
|
|
5
|
-
static ɵfac: i0.ɵɵ
|
|
6
|
-
static ɵpipe: i0.ɵɵ
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<YenPipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<YenPipe, "yen">;
|
|
7
7
|
}
|
|
@@ -3,12 +3,12 @@ declare type LoadingMap = Record<string, boolean>;
|
|
|
3
3
|
export declare class LoadingService {
|
|
4
4
|
private loadingEntries$;
|
|
5
5
|
loadingMap: LoadingMap;
|
|
6
|
-
loadingMap$: import("rxjs").Observable<
|
|
6
|
+
loadingMap$: import("rxjs").Observable<LoadingMap>;
|
|
7
7
|
isLoading$: import("rxjs").Observable<boolean>;
|
|
8
8
|
constructor();
|
|
9
9
|
setKey(key: string): void;
|
|
10
10
|
removeKey(key: string): void;
|
|
11
|
-
static ɵfac: i0.ɵɵ
|
|
12
|
-
static ɵprov: i0.ɵɵ
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LoadingService, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<LoadingService>;
|
|
13
13
|
}
|
|
14
14
|
export {};
|
|
@@ -4,6 +4,6 @@ export declare class QueryResolverService {
|
|
|
4
4
|
private transformer?;
|
|
5
5
|
constructor(transformer?: SmartExpTransformer);
|
|
6
6
|
resolve<T>(items: T[], queryString: string, dlm?: Record<string, string>): T[];
|
|
7
|
-
static ɵfac: i0.ɵɵ
|
|
8
|
-
static ɵprov: i0.ɵɵ
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<QueryResolverService, [{ optional: true; }]>;
|
|
8
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<QueryResolverService>;
|
|
9
9
|
}
|
|
@@ -2,7 +2,7 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
import * as i1 from "@angular/common";
|
|
3
3
|
import * as i2 from "@angular/material/snack-bar";
|
|
4
4
|
export declare class SnackBarModule {
|
|
5
|
-
static ɵfac: i0.ɵɵ
|
|
6
|
-
static ɵmod: i0.ɵɵ
|
|
7
|
-
static ɵinj: i0.ɵɵ
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SnackBarModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SnackBarModule, never, [typeof i1.CommonModule, typeof i2.MatSnackBarModule], never>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SnackBarModule>;
|
|
8
8
|
}
|
|
@@ -4,6 +4,6 @@ export declare class SnackBarService {
|
|
|
4
4
|
private snackBar;
|
|
5
5
|
constructor(snackBar: MatSnackBar);
|
|
6
6
|
openSnackBar(message: string, action?: string): void;
|
|
7
|
-
static ɵfac: i0.ɵɵ
|
|
8
|
-
static ɵprov: i0.ɵɵ
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SnackBarService, never>;
|
|
8
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SnackBarService>;
|
|
9
9
|
}
|
|
@@ -13,7 +13,7 @@ export declare abstract class EntityPageStore<S extends EntityPageState<Entity>,
|
|
|
13
13
|
mode$: Observable<Mode>;
|
|
14
14
|
entityId$: Observable<string>;
|
|
15
15
|
entity$: Observable<Entity>;
|
|
16
|
-
setMode: (observableOrValue:
|
|
16
|
+
setMode: (observableOrValue: Mode | Observable<Mode>) => import("rxjs").Subscription;
|
|
17
17
|
setEntityId: (observableOrValue: string | Observable<string>) => import("rxjs").Subscription;
|
|
18
18
|
setEntity: Entity extends void ? () => void : (observableOrValue: Entity | Observable<Entity>) => import("rxjs").Subscription;
|
|
19
19
|
constructor(initialState?: S);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
export declare class DayjsDateModule {
|
|
3
|
-
static ɵfac: i0.ɵɵ
|
|
4
|
-
static ɵmod: i0.ɵɵ
|
|
5
|
-
static ɵinj: i0.ɵɵ
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DayjsDateModule, never>;
|
|
4
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DayjsDateModule, never, never, never>;
|
|
5
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DayjsDateModule>;
|
|
6
6
|
}
|
|
7
7
|
export declare class MatDayjsDateModule {
|
|
8
|
-
static ɵfac: i0.ɵɵ
|
|
9
|
-
static ɵmod: i0.ɵɵ
|
|
10
|
-
static ɵinj: i0.ɵɵ
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatDayjsDateModule, never>;
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatDayjsDateModule, never, [typeof DayjsDateModule], never>;
|
|
10
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MatDayjsDateModule>;
|
|
11
11
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import
|
|
2
|
+
import dayjs from 'dayjs';
|
|
3
3
|
export declare const SMART_EXP_TRANSFORMER: InjectionToken<SmartExpTransformer>;
|
|
4
4
|
export declare type SmartExpTransformer = (input: string | number | dayjs.Dayjs | any, key?: string) => string;
|
|
5
5
|
export declare const yenTransform: (value: number, _unit?: string) => string;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports,require("@angular/core"),require("@angular/common")):"function"==typeof define&&define.amd?define("@ng-atomic/common/directives/ios-safari-scroll-buggyfill",["exports","@angular/core","@angular/common"],o):o(((e="undefined"!=typeof globalThis?globalThis:e||self)["ng-atomic"]=e["ng-atomic"]||{},e["ng-atomic"].common=e["ng-atomic"].common||{},e["ng-atomic"].common.directives=e["ng-atomic"].common.directives||{},e["ng-atomic"].common.directives["ios-safari-scroll-buggyfill"]={}),e.ng.core,e.ng.common)}(this,(function(e,o,n){"use strict";function t(e){if(e&&e.__esModule)return e;var o=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var t=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(o,n,t.get?t:{enumerable:!0,get:function(){return e[n]}})}})),o.default=e,Object.freeze(o)}var i=t(o),r=function(){function e(){}return e.prototype.ngAfterViewInit=function(){},e.prototype.onTouchmove=function(e){e.preventDefault()},e}();r.ɵfac=function(e){return new(e||r)},r.ɵdir=o.ɵɵngDeclareDirective({version:"11.2.14",type:r,selector:"[iosSafariScrollBuggyfill]",host:{listeners:{touchmove:"onTouchmove($event)"}},ngImport:i}),("undefined"==typeof ngDevMode||ngDevMode)&&o.ɵsetClassMetadata(r,[{type:o.Directive,args:[{selector:"[iosSafariScrollBuggyfill]"}]}],null,{onTouchmove:[{type:o.HostListener,args:["touchmove",["$event"]]}]});var c=function(){};c.ɵfac=function(e){return new(e||c)},c.ɵmod=o.ɵɵdefineNgModule({type:c}),c.ɵinj=o.ɵɵdefineInjector({imports:[[n.CommonModule]]}),("undefined"==typeof ngJitMode||ngJitMode)&&o.ɵɵsetNgModuleScope(c,{declarations:[r],imports:[n.CommonModule],exports:[r]}),("undefined"==typeof ngDevMode||ngDevMode)&&o.ɵsetClassMetadata(c,[{type:o.NgModule,args:[{declarations:[r],imports:[n.CommonModule],exports:[r]}]}],null,null),e.IosSafariScrollBuggyfillDirective=r,e.IosSafariScrollBuggyfillModule=c,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
2
|
-
//# sourceMappingURL=ng-atomic-common-directives-ios-safari-scroll-buggyfill.umd.min.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../libs/common/directives/ios-safari-scroll-buggyfill/ios-safari-scroll-buggyfill.directive.ts","../../../../libs/common/directives/ios-safari-scroll-buggyfill/ios-safari-scroll-buggyfill.module.ts"],"names":["IosSafariScrollBuggyfillDirective","prototype","ngAfterViewInit","onTouchmove","event","preventDefault","selector","host","listeners","touchmove","ngImport","i0__namespace","Directive","HostListener","IosSafariScrollBuggyfillModule","CommonModule","declarations","imports","exports","NgModule"],"mappings":"i6BAKA,SAAAA,YAEEA,EAAAC,UAAAC,gBAAA,aAOAF,EAAAC,UAAAE,YAAA,SAAYC,GACVA,EAAMC,wDAVGL,0DAAAA,EAAiCM,SAAA,6BAAAC,KAAA,CAAAC,UAAA,CAAAC,UAAA,wBAAAC,SAAAC,oEAAjCX,EAAiC,CAAA,MAH7CY,EAAAA,gBAAU,CACTN,SAAU,uCAWVH,YAAW,CAAA,MADVU,EAAAA,mBAAa,YAAa,CAAC,qBCI9B,8CAAaC,oCAAAA,wCAPF,CACPC,EAAAA,kFAMSD,EAA8B,CAAAE,aAAA,CATvChB,GAAiCiB,QAAA,CAGjCF,EAAAA,cAAYG,QAAA,CAGZlB,qEAGSc,EAA8B,CAAA,MAX1CK,EAAAA,eAAS,CACRH,aAAc,CACZhB,GAEFiB,QAAS,CACPF,EAAAA,cAEFG,QAAS,CACPlB","sourcesContent":["import { AfterViewInit, Directive, HostListener } from '@angular/core';\n\n@Directive({\n selector: '[iosSafariScrollBuggyfill]'\n})\nexport class IosSafariScrollBuggyfillDirective implements AfterViewInit {\n\n ngAfterViewInit(): void {\n // this.el.nativeElement.addEventListener('touchmove', (e: Event) => {\n // e.preventDefault();\n // }, {passive: false});\n }\n\n @HostListener('touchmove', ['$event'])\n onTouchmove(event: Event) {\n event.preventDefault();\n }\n\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { IosSafariScrollBuggyfillDirective } from './ios-safari-scroll-buggyfill.directive';\n\n\n\n@NgModule({\n declarations: [\n IosSafariScrollBuggyfillDirective,\n ],\n imports: [\n CommonModule,\n ],\n exports: [\n IosSafariScrollBuggyfillDirective,\n ]\n})\nexport class IosSafariScrollBuggyfillModule { }\n"]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports,require("@angular/core"),require("@angular/common")):"function"==typeof define&&define.amd?define("@ng-atomic/common/directives",["exports","@angular/core","@angular/common"],o):o(((e="undefined"!=typeof globalThis?globalThis:e||self)["ng-atomic"]=e["ng-atomic"]||{},e["ng-atomic"].common=e["ng-atomic"].common||{},e["ng-atomic"].common.directives={}),e.ng.core,e.ng.common)}(this,(function(e,o,n){"use strict";function t(e){if(e&&e.__esModule)return e;var o=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var t=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(o,n,t.get?t:{enumerable:!0,get:function(){return e[n]}})}})),o.default=e,Object.freeze(o)}var r=t(o),i=function(){function e(){}return e.prototype.ngAfterViewInit=function(){},e.prototype.onTouchmove=function(e){e.preventDefault()},e}();i.ɵfac=function(e){return new(e||i)},i.ɵdir=o.ɵɵngDeclareDirective({version:"11.2.14",type:i,selector:"[iosSafariScrollBuggyfill]",host:{listeners:{touchmove:"onTouchmove($event)"}},ngImport:r}),("undefined"==typeof ngDevMode||ngDevMode)&&o.ɵsetClassMetadata(i,[{type:o.Directive,args:[{selector:"[iosSafariScrollBuggyfill]"}]}],null,{onTouchmove:[{type:o.HostListener,args:["touchmove",["$event"]]}]});var c=function(){};c.ɵfac=function(e){return new(e||c)},c.ɵmod=o.ɵɵdefineNgModule({type:c}),c.ɵinj=o.ɵɵdefineInjector({imports:[[n.CommonModule]]}),("undefined"==typeof ngJitMode||ngJitMode)&&o.ɵɵsetNgModuleScope(c,{declarations:[i],imports:[n.CommonModule],exports:[i]}),("undefined"==typeof ngDevMode||ngDevMode)&&o.ɵsetClassMetadata(c,[{type:o.NgModule,args:[{declarations:[i],imports:[n.CommonModule],exports:[i]}]}],null,null),e.IosSafariScrollBuggyfillDirective=i,e.IosSafariScrollBuggyfillModule=c,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
2
|
-
//# sourceMappingURL=ng-atomic-common-directives.umd.min.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../libs/common/directives/ios-safari-scroll-buggyfill/ios-safari-scroll-buggyfill.directive.ts","../../../../libs/common/directives/ios-safari-scroll-buggyfill/ios-safari-scroll-buggyfill.module.ts"],"names":["IosSafariScrollBuggyfillDirective","prototype","ngAfterViewInit","onTouchmove","event","preventDefault","selector","host","listeners","touchmove","ngImport","i0__namespace","Directive","HostListener","IosSafariScrollBuggyfillModule","CommonModule","declarations","imports","exports","NgModule"],"mappings":"gyBAKA,SAAAA,YAEEA,EAAAC,UAAAC,gBAAA,aAOAF,EAAAC,UAAAE,YAAA,SAAYC,GACVA,EAAMC,wDAVGL,0DAAAA,EAAiCM,SAAA,6BAAAC,KAAA,CAAAC,UAAA,CAAAC,UAAA,wBAAAC,SAAAC,oEAAjCX,EAAiC,CAAA,MAH7CY,EAAAA,gBAAU,CACTN,SAAU,uCAWVH,YAAW,CAAA,MADVU,EAAAA,mBAAa,YAAa,CAAC,qBCI9B,8CAAaC,oCAAAA,wCAPF,CACPC,EAAAA,kFAMSD,EAA8B,CAAAE,aAAA,CATvChB,GAAiCiB,QAAA,CAGjCF,EAAAA,cAAYG,QAAA,CAGZlB,qEAGSc,EAA8B,CAAA,MAX1CK,EAAAA,eAAS,CACRH,aAAc,CACZhB,GAEFiB,QAAS,CACPF,EAAAA,cAEFG,QAAS,CACPlB","sourcesContent":["import { AfterViewInit, Directive, HostListener } from '@angular/core';\n\n@Directive({\n selector: '[iosSafariScrollBuggyfill]'\n})\nexport class IosSafariScrollBuggyfillDirective implements AfterViewInit {\n\n ngAfterViewInit(): void {\n // this.el.nativeElement.addEventListener('touchmove', (e: Event) => {\n // e.preventDefault();\n // }, {passive: false});\n }\n\n @HostListener('touchmove', ['$event'])\n onTouchmove(event: Event) {\n event.preventDefault();\n }\n\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { IosSafariScrollBuggyfillDirective } from './ios-safari-scroll-buggyfill.directive';\n\n\n\n@NgModule({\n declarations: [\n IosSafariScrollBuggyfillDirective,\n ],\n imports: [\n CommonModule,\n ],\n exports: [\n IosSafariScrollBuggyfillDirective,\n ]\n})\nexport class IosSafariScrollBuggyfillModule { }\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common"),require("lodash"),require("@ng-atomic/common/utils")):"function"==typeof define&&define.amd?define("@ng-atomic/common/pipes",["exports","@angular/core","@angular/common","lodash","@ng-atomic/common/utils"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self)["ng-atomic"]=e["ng-atomic"]||{},e["ng-atomic"].common=e["ng-atomic"].common||{},e["ng-atomic"].common.pipes={}),e.ng.core,e.ng.common,e.lodash,e["ng-atomic"].common.utils)}(this,(function(e,t,n,o,r){"use strict";function i(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var a=i(t),d=new t.InjectionToken("domain lang map"),s=function(){function e(e){var t;this.map=e,null!==(t=this.map)&&void 0!==t||(this.map={})}return e.prototype.transform=function(e){var t,n;return null!==(n=null===(t=this.map)||void 0===t?void 0:t[e])&&void 0!==n?n:e},e}();s.ɵfac=function(e){return new(e||s)(t.ɵɵdirectiveInject(d,8))},s.ɵpipe=t.ɵɵngDeclarePipe({version:"11.2.14",ngImport:a,type:s,name:"D"}),("undefined"==typeof ngDevMode||ngDevMode)&&t.ɵsetClassMetadata(s,[{type:t.Pipe,args:[{name:"D",pure:!0}]}],(function(){return[{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[d]}]}]}),null);var u=function(){};u.ɵfac=function(e){return new(e||u)},u.ɵmod=t.ɵɵdefineNgModule({type:u}),u.ɵinj=t.ɵɵdefineInjector({imports:[[n.CommonModule]]}),("undefined"==typeof ngJitMode||ngJitMode)&&t.ɵɵsetNgModuleScope(u,{declarations:[s],imports:[n.CommonModule],exports:[s]}),("undefined"==typeof ngDevMode||ngDevMode)&&t.ɵsetClassMetadata(u,[{type:t.NgModule,args:[{declarations:[s],imports:[n.CommonModule],exports:[s]}]}],null,null);var p=new t.InjectionToken("[@ng-atomic/common] Smart Sort By Transformer"),l=function(e,t,n){return"asc"===n?o.sortBy(e,t):o.sortBy(e,t).reverse()},m=function(){function e(e){var t;this.transformer=e,null!==(t=this.transformer)&&void 0!==t||(this.transformer=l)}return e.prototype.transform=function(e,t,n){return void 0===n&&(n="asc"),this.transformer(e,t,n)},e}();m.ɵfac=function(e){return new(e||m)(t.ɵɵdirectiveInject(p,8))},m.ɵpipe=t.ɵɵngDeclarePipe({version:"11.2.14",ngImport:a,type:m,name:"smartSortBy"}),("undefined"==typeof ngDevMode||ngDevMode)&&t.ɵsetClassMetadata(m,[{type:t.Pipe,args:[{name:"smartSortBy",pure:!0}]}],(function(){return[{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[p]}]}]}),null);var c=function(){};c.ɵfac=function(e){return new(e||c)},c.ɵmod=t.ɵɵdefineNgModule({type:c}),c.ɵinj=t.ɵɵdefineInjector({imports:[[n.CommonModule]]}),("undefined"==typeof ngJitMode||ngJitMode)&&t.ɵɵsetNgModuleScope(c,{declarations:[m],imports:[n.CommonModule],exports:[m]}),("undefined"==typeof ngDevMode||ngDevMode)&&t.ɵsetClassMetadata(c,[{type:t.NgModule,args:[{declarations:[m],imports:[n.CommonModule],exports:[m]}]}],null,null);var f=function(){function e(e){var t;this.transformer=e,this.slicePipe=new n.SlicePipe,this._input=null,this._output=[],null!==(t=this.transformer)&&void 0!==t||(this.transformer=l)}return e.prototype.transform=function(e,t){var n={items:e,sortKey:t.sortKey,sortOrder:t.sortOrder,start:t.page.start,end:t.page.end};return JSON.stringify(n)===JSON.stringify(this._input)?this._output:(this._input=n,e=this.transformer(e,null==t?void 0:t.sortKey,null==t?void 0:t.sortOrder),e=this.slicePipe.transform(e,t.page.start,t.page.end),this._output=e)},e}();f.ɵfac=function(e){return new(e||f)(t.ɵɵdirectiveInject(p,8))},f.ɵpipe=t.ɵɵngDeclarePipe({version:"11.2.14",ngImport:a,type:f,name:"smartClamp",pure:!1}),("undefined"==typeof ngDevMode||ngDevMode)&&t.ɵsetClassMetadata(f,[{type:t.Pipe,args:[{name:"smartClamp",pure:!1}]}],(function(){return[{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[p]}]}]}),null);var g=function(){};g.ɵfac=function(e){return new(e||g)},g.ɵmod=t.ɵɵdefineNgModule({type:g}),g.ɵinj=t.ɵɵdefineInjector({imports:[[n.CommonModule]]}),("undefined"==typeof ngJitMode||ngJitMode)&&t.ɵɵsetNgModuleScope(g,{declarations:[f],imports:[n.CommonModule],exports:[f]}),("undefined"==typeof ngDevMode||ngDevMode)&&t.ɵsetClassMetadata(g,[{type:t.NgModule,args:[{declarations:[f],imports:[n.CommonModule],exports:[f]}]}],null,null);var M=function(){function e(e){var t;this.transformer=e,null!==(t=this.transformer)&&void 0!==t||(this.transformer=r.smartExpTransformer)}return e.prototype.transform=function(e,t){return this.transformer(e,t)},e}();M.ɵfac=function(e){return new(e||M)(t.ɵɵdirectiveInject(r.SMART_EXP_TRANSFORMER,8))},M.ɵpipe=t.ɵɵngDeclarePipe({version:"11.2.14",ngImport:a,type:M,name:"smartExp"}),("undefined"==typeof ngDevMode||ngDevMode)&&t.ɵsetClassMetadata(M,[{type:t.Pipe,args:[{name:"smartExp",pure:!0}]}],(function(){return[{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[r.SMART_EXP_TRANSFORMER]}]}]}),null);var y=function(){};y.ɵfac=function(e){return new(e||y)},y.ɵmod=t.ɵɵdefineNgModule({type:y}),y.ɵinj=t.ɵɵdefineInjector({}),("undefined"==typeof ngJitMode||ngJitMode)&&t.ɵɵsetNgModuleScope(y,{declarations:[M],exports:[M]}),("undefined"==typeof ngDevMode||ngDevMode)&&t.ɵsetClassMetadata(y,[{type:t.NgModule,args:[{declarations:[M],exports:[M]}]}],null,null);var v=new t.InjectionToken("[@ng-atomic] Smart Form Field"),D=function(){function e(e){var t;this.map=e,null!==(t=this.map)&&void 0!==t||(this.map={createdAt:{type:"date"},updatedAt:{type:"date"},deletedAt:{type:"date"}})}return e.prototype.transform=function(e){var t;return null!==(t=this.map[e])&&void 0!==t?t:{type:"input"}},e}();D.ɵfac=function(e){return new(e||D)(t.ɵɵdirectiveInject(v,8))},D.ɵpipe=t.ɵɵngDeclarePipe({version:"11.2.14",ngImport:a,type:D,name:"smartField"}),("undefined"==typeof ngDevMode||ngDevMode)&&t.ɵsetClassMetadata(D,[{type:t.Pipe,args:[{name:"smartField",pure:!0}]}],(function(){return[{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[v]}]}]}),null);var h=function(){};h.ɵfac=function(e){return new(e||h)},h.ɵmod=t.ɵɵdefineNgModule({type:h}),h.ɵinj=t.ɵɵdefineInjector({imports:[[n.CommonModule]]}),("undefined"==typeof ngJitMode||ngJitMode)&&t.ɵɵsetNgModuleScope(h,{declarations:[D],imports:[n.CommonModule],exports:[D]}),("undefined"==typeof ngDevMode||ngDevMode)&&t.ɵsetClassMetadata(h,[{type:t.NgModule,args:[{declarations:[D],imports:[n.CommonModule],exports:[D]}]}],null,null);var j=function(){function e(){}return e.prototype.transform=function(e,t){return r.yenTransform(e,t)},e}();j.ɵfac=function(e){return new(e||j)},j.ɵpipe=t.ɵɵngDeclarePipe({version:"11.2.14",ngImport:a,type:j,name:"yen"}),("undefined"==typeof ngDevMode||ngDevMode)&&t.ɵsetClassMetadata(j,[{type:t.Pipe,args:[{name:"yen"}]}],null,null);var S=function(){};S.ɵfac=function(e){return new(e||S)},S.ɵmod=t.ɵɵdefineNgModule({type:S}),S.ɵinj=t.ɵɵdefineInjector({imports:[[n.CommonModule]]}),("undefined"==typeof ngJitMode||ngJitMode)&&t.ɵɵsetNgModuleScope(S,{declarations:[j],imports:[n.CommonModule],exports:[j]}),("undefined"==typeof ngDevMode||ngDevMode)&&t.ɵsetClassMetadata(S,[{type:t.NgModule,args:[{declarations:[j],imports:[n.CommonModule],exports:[j]}]}],null,null),e.DOMAIN_LANG_MAP=d,e.DomainModule=u,e.DomainPipe=s,e.FORM_FIELD_MAP=v,e.SMART_SORT_BY_TRANSFORMER=p,e.SmartClampModule=g,e.SmartClampPipe=f,e.SmartExpModule=y,e.SmartExpPipe=M,e.SmartFieldModule=h,e.SmartFieldPipe=D,e.SmartSortByModule=c,e.SmartSortByPipe=m,e.YenModule=S,e.YenPipe=j,e.smartSortByTransformer=l,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
2
|
-
//# sourceMappingURL=ng-atomic-common-pipes.umd.min.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../libs/common/pipes/domain/domain.pipe.ts","../../../../libs/common/pipes/domain/domain.module.ts","../../../../libs/common/pipes/smart-sort-by/smart-sort-by.pipe.ts","../../../../libs/common/pipes/smart-sort-by/smart-sort-by.module.ts","../../../../libs/common/pipes/smart-clamp/smart-clamp.pipe.ts","../../../../libs/common/pipes/smart-clamp/smart-clamp.module.ts","../../../../libs/common/pipes/smart-exp/smart-exp.pipe.ts","../../../../libs/common/pipes/smart-exp/smart-exp.module.ts","../../../../libs/common/pipes/smart-field/smart-field.pipe.ts","../../../../libs/common/pipes/smart-field/smart-field.module.ts","../../../../libs/common/pipes/yen/yen.pipe.ts","../../../../libs/common/pipes/yen/yen.module.ts"],"names":["DOMAIN_LANG_MAP","InjectionToken","DomainPipe","map","this","_a","prototype","transform","input","_b","i0","ɵɵdirectiveInject","name","Pipe","pure","Optional","Inject","DomainModule","CommonModule","declarations","imports","exports","NgModule","SMART_SORT_BY_TRANSFORMER","smartSortByTransformer","items","key","order","sortBy","reverse","SmartSortByPipe","transformer","SmartSortByModule","SmartClampPipe","slicePipe","SlicePipe","_input","_output","store","sortKey","sortOrder","start","page","end","JSON","stringify","SmartClampModule","SmartExpPipe","smartExpTransformer","SMART_EXP_TRANSFORMER","SmartExpModule","FORM_FIELD_MAP","SmartFieldPipe","createdAt","type","updatedAt","deletedAt","SmartFieldModule","YenPipe","value","_unit","yenTransform","YenModule"],"mappings":"04BAGaA,EAAkB,IAAIC,EAAAA,eAA8B,gCAO/D,SAAAC,EAAyDC,SAAAC,KAAAD,IAAAA,EAC/C,QAARE,EAAAD,KAAKD,WAAG,IAAAE,IAARD,KAAKD,IAAQ,WAGfD,EAAAI,UAAAC,UAAA,SAAUC,WACR,OAAuB,QAAvBC,EAAe,QAAfJ,EAAOD,KAAKD,WAAG,IAAAE,OAAA,EAAAA,EAAGG,UAAK,IAAAC,EAAAA,EAAKD,yCANnBN,GAAUQ,EAAAC,kBACWX,EAAe,kEADpCE,EAAUU,KAAA,sEAAVV,EAAU,CAAA,MAJtBW,EAAAA,WAAK,CACJD,KAAM,IACNE,MAAM,wDAGOC,EAAAA,gBAAYC,EAAAA,aAAOhB,qBCOlC,8CAAaiB,oCAAAA,wCAPF,CACPC,EAAAA,kFAMSD,EAAY,CAAAE,aAAA,C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AAA3C,aAAA,CATlBuC,GAAOtC,QAAA,CAGPF,EAAAA,cAAYG,QAAA,CAGZqC,qEAGSI,EAAS,CAAA,MAXrBxC,EAAAA,eAAS,CACRH,aAAc,CACZuC,GAEFtC,QAAS,CACPF,EAAAA,cAEFG,QAAS,CACPqC","sourcesContent":["import { Inject, InjectionToken, Optional, Pipe } from '@angular/core';\n\nexport type DomainLangMap = Record<string, string>;\nexport const DOMAIN_LANG_MAP = new InjectionToken<DomainLangMap>('domain lang map');\n\n@Pipe({\n name: 'D',\n pure: true,\n})\nexport class DomainPipe {\n constructor(@Optional() @Inject(DOMAIN_LANG_MAP) private map: DomainLangMap) {\n this.map ??= {};\n }\n\n transform(input: string) {\n return this.map?.[input] ?? input;\n }\n}\n\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { DomainPipe } from './domain.pipe';\n\n\n\n@NgModule({\n declarations: [\n DomainPipe\n ],\n imports: [\n CommonModule\n ],\n exports: [\n DomainPipe\n ]\n})\nexport class DomainModule { }\n","import { Inject, InjectionToken, Optional, Pipe, PipeTransform } from '@angular/core';\nimport { sortBy } from 'lodash';\n\nexport const SMART_SORT_BY_TRANSFORMER = new InjectionToken('[@ng-atomic/common] Smart Sort By Transformer');\nexport type SmartSortByTransformer = <T>(items: T[], key: string, order: 'asc' | 'desc') => T[];\nexport const smartSortByTransformer: SmartSortByTransformer = (items, key, order) => {\n return order === 'asc' ? sortBy(items, key) : sortBy(items, key).reverse();\n}\n\n@Pipe({\n name: 'smartSortBy',\n pure: true,\n})\nexport class SmartSortByPipe implements PipeTransform {\n\n constructor(\n @Optional()\n @Inject(SMART_SORT_BY_TRANSFORMER)\n private transformer?: SmartSortByTransformer,\n ) {\n this.transformer ??= smartSortByTransformer;\n }\n\n transform<T>(items: T[], key: string, order: 'asc' | 'desc' = 'asc'): T[] {\n return this.transformer(items, key, order);\n }\n\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { SmartSortByPipe } from './smart-sort-by.pipe';\n\n\n\n@NgModule({\n declarations: [\n SmartSortByPipe\n ],\n imports: [\n CommonModule\n ],\n exports: [\n SmartSortByPipe\n ]\n})\nexport class SmartSortByModule { }\n","import { SlicePipe } from '@angular/common';\nimport { Inject, Optional, Pipe, PipeTransform } from '@angular/core';\nimport { EntitiesPageStore } from '@ng-atomic/common/store';\nimport { smartSortByTransformer, SmartSortByTransformer, SMART_SORT_BY_TRANSFORMER } from '../smart-sort-by';\n\n@Pipe({\n name: 'smartClamp',\n pure: false,\n})\nexport class SmartClampPipe implements PipeTransform {\n private slicePipe = new SlicePipe();\n private _input = null;\n private _output = [];\n\n constructor(\n @Optional()\n @Inject(SMART_SORT_BY_TRANSFORMER)\n private transformer?: SmartSortByTransformer,\n ) {\n this.transformer ??= smartSortByTransformer;\n }\n\n transform<T>(items: T[], store: EntitiesPageStore<any, any>): T[] {\n const input = {\n items, \n sortKey: store.sortKey, \n sortOrder: store.sortOrder, \n start: store.page.start,\n end: store.page.end,\n };\n \n if (JSON.stringify(input) === JSON.stringify(this._input)) {\n return this._output;\n }\n\n this._input = input;\n items = this.transformer(items, store?.sortKey, store?.sortOrder as 'asc' | 'desc');\n items = this.slicePipe.transform(items, store.page.start, store.page.end);\n return this._output = items;\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { SmartClampPipe } from './smart-clamp.pipe';\n\n\n\n@NgModule({\n declarations: [\n SmartClampPipe\n ],\n imports: [\n CommonModule,\n ],\n exports: [\n SmartClampPipe\n ]\n})\nexport class SmartClampModule { }\n","import { Inject, Optional, Pipe } from '@angular/core';\nimport * as dayjs from 'dayjs';\nimport { SMART_EXP_TRANSFORMER, smartExpTransformer, SmartExpTransformer } from '@ng-atomic/common/utils';\n\n@Pipe({\n name: 'smartExp',\n pure: true,\n})\nexport class SmartExpPipe {\n constructor(\n @Optional() @Inject(SMART_EXP_TRANSFORMER) private transformer: SmartExpTransformer\n ) {\n this.transformer ??= smartExpTransformer;\n }\n\n transform(input: string | number | dayjs.Dayjs | any, key?: string): string {\n return this.transformer(input, key);\n }\n}","import { NgModule } from \"@angular/core\";\nimport { SmartExpPipe } from \"./smart-exp.pipe\";\n\n@NgModule({\n declarations: [SmartExpPipe],\n exports: [SmartExpPipe]\n})\nexport class SmartExpModule { }","import { Inject, InjectionToken, Optional, Pipe, PipeTransform } from '@angular/core';\n\ninterface Option<T> {\n name: string;\n value: T;\n}\n\ninterface InputField {\n type: 'input';\n}\n\ninterface DateInputField {\n type: 'date';\n}\n\ninterface SelectField<T> {\n type: 'select';\n options: Option<T>[];\n}\n\ninterface MultiSelectField<T> {\n type: 'multi-select';\n options: Option<T>[];\n}\n\ntype FormField<V> = InputField\n | DateInputField\n | SelectField<V>\n | MultiSelectField<V>;\n\nexport type FormFieldMap = Record<string, FormField<any>>;\n\nexport const FORM_FIELD_MAP = new InjectionToken<FormFieldMap>('[@ng-atomic] Smart Form Field');\n\n@Pipe({\n name: 'smartField',\n pure: true,\n})\nexport class SmartFieldPipe implements PipeTransform {\n\n constructor(\n @Optional() @Inject(FORM_FIELD_MAP) private map: Record<string, FormField<any>>\n ) {\n this.map ??= {\n createdAt: { type: 'date' },\n updatedAt: { type: 'date' },\n deletedAt: { type: 'date' },\n };\n }\n\n transform(key: string): FormField<any> {\n return this.map[key] ?? {type: 'input'};\n }\n\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { SmartFieldPipe } from './smart-field.pipe';\n\n\n\n@NgModule({\n declarations: [\n SmartFieldPipe\n ],\n imports: [\n CommonModule\n ],\n exports: [\n SmartFieldPipe\n ]\n})\nexport class SmartFieldModule { }\n","import { Pipe, PipeTransform } from '@angular/core';\nimport { yenTransform } from '@ng-atomic/common/utils';\n\n@Pipe({\n name: 'yen'\n})\nexport class YenPipe implements PipeTransform {\n\n transform(value: number, _unit?: string): string {\n return yenTransform(value, _unit);\n }\n\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { YenPipe } from './yen.pipe';\n\n\n\n@NgModule({\n declarations: [\n YenPipe\n ],\n imports: [\n CommonModule\n ],\n exports: [\n YenPipe\n ]\n})\nexport class YenModule { }\n"]}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("@ng-atomic/common/utils"),require("dayjs"),require("flat"),require("lodash"),require("@angular/core"),require("rxjs"),require("rxjs/operators"),require("@angular/material/snack-bar"),require("@angular/common")):"function"==typeof define&&define.amd?define("@ng-atomic/common/services",["exports","@ng-atomic/common/utils","dayjs","flat","lodash","@angular/core","rxjs","rxjs/operators","@angular/material/snack-bar","@angular/common"],n):n(((e="undefined"!=typeof globalThis?globalThis:e||self)["ng-atomic"]=e["ng-atomic"]||{},e["ng-atomic"].common=e["ng-atomic"].common||{},e["ng-atomic"].common.services={}),e["ng-atomic"].common.utils,e.dayjs,e.flat,e.lodash,e.ng.core,e.rxjs,e.rxjs.operators,e.ng.material.snackBar,e.ng.common)}(this,(function(e,n,t,r,o,a,i,c,u,s){"use strict";function f(e){if(e&&e.__esModule)return e;var n=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}})),n.default=e,Object.freeze(n)}var d=f(t);
|
|
2
|
-
/*! *****************************************************************************
|
|
3
|
-
Copyright (c) Microsoft Corporation.
|
|
4
|
-
|
|
5
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
|
-
purpose with or without fee is hereby granted.
|
|
7
|
-
|
|
8
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
9
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
10
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
11
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
12
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
13
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
14
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
15
|
-
***************************************************************************** */Object.create;function l(e,n){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var r,o,a=t.call(e),i=[];try{for(;(void 0===n||n-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(t=a.return)&&t.call(a)}finally{if(o)throw o.error}}return i}Object.create;var g=function(e,t){return t.match(/id$/i)?e:"string"==typeof e&&n.isIsoString(e)?d(e):function(e){return!isNaN(Number(e))}(e)?Number(e):e},p=function(){function e(){}return e.fromQueryParams=function(e){var n,t;return Object.entries(null!==(t=null===(n=r.unflatten(e))||void 0===n?void 0:n.form)&&void 0!==t?t:{}).reduce((function(e,n){var t,r=l(n,2),o=r[0],a=r[1];return Object.assign(Object.assign({},e),((t={})[o]=g(a,o),t))}),{})},e.toQueryParams=function(e){return r.flatten({form:Object.entries(e).reduce((function(e,n){var r,o=l(n,2),a=o[0],i=o[1];return Object.assign(Object.assign({},e),((r={})[a]=t.isDayjs(i)?i.isValid()?i.toISOString():null:i,r))}),{})})},e.dayjsKeys=function(e){return Object.entries(e).filter((function(e){var n=l(e,2),r=(n[0],n[1]);return t.isDayjs(r)})).map((function(e){return l(e,1)[0]}))},e.toValue=function(e){var t=this.dayjsKeys(e);return Object.assign(Object.assign({},r.flatten(o.omit(n.toObject(e),t))),o.pick(n.toObject(e),t))},e.fromValue=function(e){var n=this.dayjsKeys(e);return Object.assign(Object.assign({},r.unflatten(o.omit(e,n))),o.pick(e,n))},e}(),m=function(){function e(){var e=this;this.loadingEntries$=new i.Subject,this.loadingMap={},this.loadingMap$=this.loadingEntries$.pipe(c.scan((function(e,n){var t,r=l(n,2),o=r[0],a=r[1];return Object.assign(Object.assign({},e),((t={})[o]=a,t))}),{}),c.map((function(e){return Object.entries(e).filter((function(e){var n=l(e,2);n[0];return n[1]})).reduce((function(e,n){var t,r=l(n,2),o=r[0],a=r[1];return Object.assign(Object.assign({},e),((t={})[o]=a,t))}),{})})),c.distinctUntilChanged((function(e,n){return JSON.stringify(e)===JSON.stringify(n)}))),this.isLoading$=this.loadingMap$.pipe(c.map((function(e){return!!Object.keys(e).length})),c.delay(0)),this.loadingMap$.subscribe((function(n){e.loadingMap=n}))}return e.prototype.setKey=function(e){this.loadingEntries$.next([e,!0])},e.prototype.removeKey=function(e){this.loadingEntries$.next([e,!1])},e}();m.ɵfac=function(e){return new(e||m)},m.ɵprov=a.ɵɵdefineInjectable({token:m,factory:m.ɵfac,providedIn:"root"}),("undefined"==typeof ngDevMode||ngDevMode)&&a.ɵsetClassMetadata(m,[{type:a.Injectable,args:[{providedIn:"root"}]}],(function(){return[]}),null);var y=function(){function e(e){var t;this.transformer=e,null!==(t=this.transformer)&&void 0!==t||(this.transformer=n.smartExpTransformer)}return e.prototype.resolve=function(e,t,r){return void 0===r&&(r={}),n.filterByQuery(e,t,r,this.transformer)},e}();y.ɵfac=function(e){return new(e||y)(a.ɵɵinject(n.SMART_EXP_TRANSFORMER,8))},y.ɵprov=a.ɵɵdefineInjectable({token:y,factory:y.ɵfac,providedIn:"root"}),("undefined"==typeof ngDevMode||ngDevMode)&&a.ɵsetClassMetadata(y,[{type:a.Injectable,args:[{providedIn:"root"}]}],(function(){return[{type:void 0,decorators:[{type:a.Optional},{type:a.Inject,args:[n.SMART_EXP_TRANSFORMER]}]}]}),null);var v=function(){function e(e){this.snackBar=e}return e.prototype.openSnackBar=function(e,n){this.snackBar.open(e,n,{duration:2e3})},e}();v.ɵfac=function(e){return new(e||v)(a.ɵɵinject(u.MatSnackBar))},v.ɵprov=a.ɵɵdefineInjectable({token:v,factory:v.ɵfac,providedIn:"root"}),("undefined"==typeof ngDevMode||ngDevMode)&&a.ɵsetClassMetadata(v,[{type:a.Injectable,args:[{providedIn:"root"}]}],(function(){return[{type:u.MatSnackBar}]}),null);var j=function(){};j.ɵfac=function(e){return new(e||j)},j.ɵmod=a.ɵɵdefineNgModule({type:j}),j.ɵinj=a.ɵɵdefineInjector({imports:[[s.CommonModule,u.MatSnackBarModule]]}),("undefined"==typeof ngJitMode||ngJitMode)&&a.ɵɵsetNgModuleScope(j,{imports:[s.CommonModule,u.MatSnackBarModule]}),("undefined"==typeof ngDevMode||ngDevMode)&&a.ɵsetClassMetadata(j,[{type:a.NgModule,args:[{declarations:[],imports:[s.CommonModule,u.MatSnackBarModule]}]}],null,null),e.BaseFormService=p,e.LoadingService=m,e.QueryResolverService=y,e.SnackBarModule=j,e.SnackBarService=v,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
16
|
-
//# sourceMappingURL=ng-atomic-common-services.umd.min.js.map
|