ng-zorro-antd
Version:
An enterprise-class UI components based on Ant Design and Angular
1,685 lines (1,649 loc) • 258 kB
JavaScript
import { InjectionToken, Injectable, Optional, Inject, ɵɵdefineInjectable, ɵɵinject, Pipe, NgModule, Injector, INJECTOR } from '@angular/core';
import { warn, warnDeprecation } from 'ng-zorro-antd/core/logger';
import { BehaviorSubject } from 'rxjs';
import { __assign, __extends } from 'tslib';
import { formatDate } from '@angular/common';
import fnsFormat from 'date-fns/format';
import fnsGetISOWeek from 'date-fns/getISOWeek';
import fnsParse from 'date-fns/parse';
/**
* @fileoverview added by tsickle
* Generated from: languages/calendar/zh_CN.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @license
* Copyright Alibaba.com All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/
var Calendar = {
today: '今天',
now: '此刻',
backToToday: '返回今天',
ok: '确定',
timeSelect: '选择时间',
dateSelect: '选择日期',
weekSelect: '选择周',
clear: '清除',
month: '月',
year: '年',
previousMonth: '上个月 (翻页上键)',
nextMonth: '下个月 (翻页下键)',
monthSelect: '选择月份',
yearSelect: '选择年份',
decadeSelect: '选择年代',
yearFormat: 'YYYY年',
dayFormat: 'D日',
dateFormat: 'YYYY年M月D日',
dateTimeFormat: 'YYYY年M月D日 HH时mm分ss秒',
previousYear: '上一年 (Control键加左方向键)',
nextYear: '下一年 (Control键加右方向键)',
previousDecade: '上一年代',
nextDecade: '下一年代',
previousCentury: '上一世纪',
nextCentury: '下一世纪'
};
/**
* @fileoverview added by tsickle
* Generated from: languages/time-picker/zh_CN.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @license
* Copyright Alibaba.com All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/
/** @type {?} */
var locale = {
placeholder: '请选择时间'
};
/**
* @fileoverview added by tsickle
* Generated from: languages/date-picker/zh_CN.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/** @type {?} */
var locale$1 = {
lang: __assign({ placeholder: '请选择日期', rangePlaceholder: ['开始日期', '结束日期'] }, Calendar),
timePickerLocale: __assign({}, locale)
};
// should add whitespace between char in Button
locale$1.lang.ok = '确 定';
/**
* @fileoverview added by tsickle
* Generated from: languages/pagination/zh_CN.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @license
* Copyright Alibaba.com All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/
var Pagination = {
// Options.jsx
items_per_page: '条/页',
jump_to: '跳至',
jump_to_confirm: '确定',
page: '页',
// Pagination.jsx
prev_page: '上一页',
next_page: '下一页',
prev_5: '向前 5 页',
next_5: '向后 5 页',
prev_3: '向前 3 页',
next_3: '向后 3 页'
};
/**
* @fileoverview added by tsickle
* Generated from: languages/zh_CN.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var zh_CN = {
locale: 'zh-cn',
Pagination: Pagination,
DatePicker: locale$1,
TimePicker: locale,
Calendar: Calendar,
// locales for all comoponents
global: {
placeholder: '请选择'
},
Table: {
filterTitle: '筛选',
filterConfirm: '确定',
filterReset: '重置',
selectAll: '全选当页',
selectInvert: '反选当页',
sortTitle: '排序',
expand: '展开行',
collapse: '关闭行'
},
Modal: {
okText: '确定',
cancelText: '取消',
justOkText: '知道了'
},
Popconfirm: {
cancelText: '取消',
okText: '确定'
},
Transfer: {
searchPlaceholder: '请输入搜索内容',
itemUnit: '项',
itemsUnit: '项'
},
Upload: {
uploading: '文件上传中',
removeFile: '删除文件',
uploadError: '上传错误',
previewFile: '预览文件',
downloadFile: '下载文件'
},
Empty: {
description: '暂无数据'
},
Icon: {
icon: '图标'
},
Text: {
edit: '编辑',
copy: '复制',
copied: '复制成功',
expand: '展开'
},
PageHeader: {
back: '返回'
}
};
/**
* @fileoverview added by tsickle
* Generated from: nz-i18n.token.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/** @type {?} */
var NZ_I18N = new InjectionToken('nz-i18n');
/**
* Locale for date operations, should import from date-fns, see example: https://github.com/date-fns/date-fns/blob/v1.30.1/src/locale/zh_cn/index.js
* @type {?}
*/
var NZ_DATE_LOCALE = new InjectionToken('nz-date-locale');
/**
* @fileoverview added by tsickle
* Generated from: nz-i18n.service.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var NzI18nService = /** @class */ (function () {
function NzI18nService(locale, dateLocale) {
this._change = new BehaviorSubject(this._locale);
this.setLocale(locale || zh_CN);
this.setDateLocale(dateLocale || null);
}
Object.defineProperty(NzI18nService.prototype, "localeChange", {
get: /**
* @return {?}
*/
function () {
return this._change.asObservable();
},
enumerable: true,
configurable: true
});
// [NOTE] Performance issue: this method may called by every change detections
// TODO: cache more deeply paths for performance
// [NOTE] Performance issue: this method may called by every change detections
// TODO: cache more deeply paths for performance
/**
* @param {?} path
* @param {?=} data
* @return {?}
*/
NzI18nService.prototype.translate =
// [NOTE] Performance issue: this method may called by every change detections
// TODO: cache more deeply paths for performance
/**
* @param {?} path
* @param {?=} data
* @return {?}
*/
function (path, data) {
// this._logger.debug(`[NzI18nService] Translating(${this._locale.locale}): ${path}`);
/** @type {?} */
var content = (/** @type {?} */ (this._getObjectPath(this._locale, path)));
if (typeof content === 'string') {
if (data) {
Object.keys(data).forEach((/**
* @param {?} key
* @return {?}
*/
function (key) { return (content = content.replace(new RegExp("%" + key + "%", 'g'), data[key])); }));
}
return content;
}
return path;
};
/**
* Set/Change current locale globally throughout the WHOLE application
* NOTE: If called at runtime, rendered interface may not change along with the locale change,
* because this do not trigger another render schedule.
*
* @param locale The translating letters
*/
/**
* Set/Change current locale globally throughout the WHOLE application
* NOTE: If called at runtime, rendered interface may not change along with the locale change,
* because this do not trigger another render schedule.
*
* @param {?} locale The translating letters
* @return {?}
*/
NzI18nService.prototype.setLocale = /**
* Set/Change current locale globally throughout the WHOLE application
* NOTE: If called at runtime, rendered interface may not change along with the locale change,
* because this do not trigger another render schedule.
*
* @param {?} locale The translating letters
* @return {?}
*/
function (locale) {
if (this._locale && this._locale.locale === locale.locale) {
return;
}
this._locale = locale;
this._change.next(locale);
};
/**
* @return {?}
*/
NzI18nService.prototype.getLocale = /**
* @return {?}
*/
function () {
return this._locale;
};
/**
* @return {?}
*/
NzI18nService.prototype.getLocaleId = /**
* @return {?}
*/
function () {
return this._locale ? this._locale.locale : '';
};
/**
* @param {?} dateLocale
* @return {?}
*/
NzI18nService.prototype.setDateLocale = /**
* @param {?} dateLocale
* @return {?}
*/
function (dateLocale) {
this.dateLocale = dateLocale;
};
/**
* @return {?}
*/
NzI18nService.prototype.getDateLocale = /**
* @return {?}
*/
function () {
return this.dateLocale;
};
/**
* Get locale data
* @param path dot paths for finding exist value from locale data, eg. "a.b.c"
* @param defaultValue default value if the result is not "truthy"
*/
/**
* Get locale data
* @param {?} path dot paths for finding exist value from locale data, eg. "a.b.c"
* @param {?=} defaultValue default value if the result is not "truthy"
* @return {?}
*/
NzI18nService.prototype.getLocaleData = /**
* Get locale data
* @param {?} path dot paths for finding exist value from locale data, eg. "a.b.c"
* @param {?=} defaultValue default value if the result is not "truthy"
* @return {?}
*/
function (path, defaultValue) {
/** @type {?} */
var result = path ? this._getObjectPath(this._locale, path) : this._locale;
if (!result && !defaultValue) {
warn("Missing translations for \"" + path + "\" in language \"" + this._locale.locale + "\".\nYou can use \"NzI18nService.setLocale\" as a temporary fix.\nWelcome to submit a pull request to help us optimize the translations!\nhttps://github.com/NG-ZORRO/ng-zorro-antd/blob/master/CONTRIBUTING.md");
}
return result || defaultValue || {};
};
/**
* @private
* @param {?} obj
* @param {?} path
* @return {?}
*/
NzI18nService.prototype._getObjectPath = /**
* @private
* @param {?} obj
* @param {?} path
* @return {?}
*/
function (obj, path) {
/** @type {?} */
var res = obj;
/** @type {?} */
var paths = path.split('.');
/** @type {?} */
var depth = paths.length;
/** @type {?} */
var index = 0;
while (res && index < depth) {
res = res[paths[index++]];
}
return index === depth ? res : null;
};
NzI18nService.decorators = [
{ type: Injectable, args: [{
providedIn: 'root'
},] }
];
/** @nocollapse */
NzI18nService.ctorParameters = function () { return [
{ type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [NZ_I18N,] }] },
{ type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [NZ_DATE_LOCALE,] }] }
]; };
/** @nocollapse */ NzI18nService.ɵprov = ɵɵdefineInjectable({ factory: function NzI18nService_Factory() { return new NzI18nService(ɵɵinject(NZ_I18N, 8), ɵɵinject(NZ_DATE_LOCALE, 8)); }, token: NzI18nService, providedIn: "root" });
return NzI18nService;
}());
if (false) {
/**
* @type {?}
* @private
*/
NzI18nService.prototype._locale;
/**
* @type {?}
* @private
*/
NzI18nService.prototype._change;
/**
* @type {?}
* @private
*/
NzI18nService.prototype.dateLocale;
}
/**
* @fileoverview added by tsickle
* Generated from: nz-i18n.pipe.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var NzI18nPipe = /** @class */ (function () {
function NzI18nPipe(_locale) {
this._locale = _locale;
}
/**
* @param {?} path
* @param {?=} keyValue
* @return {?}
*/
NzI18nPipe.prototype.transform = /**
* @param {?} path
* @param {?=} keyValue
* @return {?}
*/
function (path, keyValue) {
return this._locale.translate(path, keyValue);
};
NzI18nPipe.decorators = [
{ type: Pipe, args: [{
name: 'nzI18n'
},] }
];
/** @nocollapse */
NzI18nPipe.ctorParameters = function () { return [
{ type: NzI18nService }
]; };
return NzI18nPipe;
}());
if (false) {
/**
* @type {?}
* @private
*/
NzI18nPipe.prototype._locale;
}
/**
* @fileoverview added by tsickle
* Generated from: nz-i18n.module.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var NzI18nModule = /** @class */ (function () {
function NzI18nModule() {
}
NzI18nModule.decorators = [
{ type: NgModule, args: [{
declarations: [NzI18nPipe],
exports: [NzI18nPipe]
},] }
];
return NzI18nModule;
}());
/**
* @fileoverview added by tsickle
* Generated from: date-config.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @record
*/
function NzDateConfig() { }
if (false) {
/**
* Customize the first day of a week
* @type {?|undefined}
*/
NzDateConfig.prototype.firstDayOfWeek;
}
/** @type {?} */
var NZ_DATE_CONFIG = new InjectionToken('date-config');
/** @type {?} */
var NZ_DATE_CONFIG_DEFAULT = {
firstDayOfWeek: undefined
};
/**
* @deprecated Will be removed in 10.0.0, please update to date-fns v2 format
* @type {?}
*/
var NZ_DATE_FNS_COMPATIBLE = new InjectionToken('date-format-convert');
/**
* @param {?} config
* @return {?}
*/
function mergeDateConfig(config) {
return __assign(__assign({}, NZ_DATE_CONFIG_DEFAULT), config);
}
/**
* @fileoverview added by tsickle
* Generated from: nz-i18n.interface.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @record
*/
function NzPaginationI18nInterface() { }
if (false) {
/** @type {?} */
NzPaginationI18nInterface.prototype.items_per_page;
/** @type {?} */
NzPaginationI18nInterface.prototype.jump_to;
/** @type {?} */
NzPaginationI18nInterface.prototype.jump_to_confirm;
/** @type {?} */
NzPaginationI18nInterface.prototype.page;
/** @type {?} */
NzPaginationI18nInterface.prototype.prev_page;
/** @type {?} */
NzPaginationI18nInterface.prototype.next_page;
/** @type {?} */
NzPaginationI18nInterface.prototype.prev_5;
/** @type {?} */
NzPaginationI18nInterface.prototype.next_5;
/** @type {?} */
NzPaginationI18nInterface.prototype.prev_3;
/** @type {?} */
NzPaginationI18nInterface.prototype.next_3;
}
/**
* @record
*/
function NzGlobalI18nInterface() { }
if (false) {
/** @type {?} */
NzGlobalI18nInterface.prototype.placeholder;
}
/**
* @record
*/
function NzDatePickerI18nInterface() { }
if (false) {
/** @type {?} */
NzDatePickerI18nInterface.prototype.lang;
/** @type {?} */
NzDatePickerI18nInterface.prototype.timePickerLocale;
}
/**
* @record
*/
function NzCalendarI18nInterface() { }
if (false) {
/** @type {?} */
NzCalendarI18nInterface.prototype.today;
/** @type {?} */
NzCalendarI18nInterface.prototype.now;
/** @type {?} */
NzCalendarI18nInterface.prototype.backToToday;
/** @type {?} */
NzCalendarI18nInterface.prototype.ok;
/** @type {?} */
NzCalendarI18nInterface.prototype.clear;
/** @type {?} */
NzCalendarI18nInterface.prototype.month;
/** @type {?} */
NzCalendarI18nInterface.prototype.year;
/** @type {?} */
NzCalendarI18nInterface.prototype.timeSelect;
/** @type {?} */
NzCalendarI18nInterface.prototype.dateSelect;
/** @type {?} */
NzCalendarI18nInterface.prototype.monthSelect;
/** @type {?} */
NzCalendarI18nInterface.prototype.yearSelect;
/** @type {?} */
NzCalendarI18nInterface.prototype.decadeSelect;
/** @type {?} */
NzCalendarI18nInterface.prototype.yearFormat;
/** @type {?|undefined} */
NzCalendarI18nInterface.prototype.monthFormat;
/** @type {?} */
NzCalendarI18nInterface.prototype.dateFormat;
/** @type {?} */
NzCalendarI18nInterface.prototype.dayFormat;
/** @type {?} */
NzCalendarI18nInterface.prototype.dateTimeFormat;
/** @type {?|undefined} */
NzCalendarI18nInterface.prototype.monthBeforeYear;
/** @type {?} */
NzCalendarI18nInterface.prototype.previousMonth;
/** @type {?} */
NzCalendarI18nInterface.prototype.nextMonth;
/** @type {?} */
NzCalendarI18nInterface.prototype.previousYear;
/** @type {?} */
NzCalendarI18nInterface.prototype.nextYear;
/** @type {?} */
NzCalendarI18nInterface.prototype.previousDecade;
/** @type {?} */
NzCalendarI18nInterface.prototype.nextDecade;
/** @type {?} */
NzCalendarI18nInterface.prototype.previousCentury;
/** @type {?} */
NzCalendarI18nInterface.prototype.nextCentury;
}
/**
* @record
*/
function NzDatePickerLangI18nInterface() { }
if (false) {
/** @type {?} */
NzDatePickerLangI18nInterface.prototype.placeholder;
/** @type {?} */
NzDatePickerLangI18nInterface.prototype.rangePlaceholder;
}
/**
* @record
*/
function NzTimePickerI18nInterface() { }
if (false) {
/** @type {?} */
NzTimePickerI18nInterface.prototype.placeholder;
}
/**
* @record
*/
function NzI18nInterface() { }
if (false) {
/** @type {?} */
NzI18nInterface.prototype.locale;
/** @type {?} */
NzI18nInterface.prototype.Pagination;
/** @type {?} */
NzI18nInterface.prototype.DatePicker;
/** @type {?} */
NzI18nInterface.prototype.TimePicker;
/** @type {?} */
NzI18nInterface.prototype.Calendar;
/** @type {?|undefined} */
NzI18nInterface.prototype.global;
/** @type {?} */
NzI18nInterface.prototype.Table;
/** @type {?} */
NzI18nInterface.prototype.Modal;
/** @type {?} */
NzI18nInterface.prototype.Popconfirm;
/** @type {?} */
NzI18nInterface.prototype.Transfer;
/** @type {?} */
NzI18nInterface.prototype.Upload;
/** @type {?} */
NzI18nInterface.prototype.Empty;
/** @type {?|undefined} */
NzI18nInterface.prototype.Text;
}
/**
* @fileoverview added by tsickle
* Generated from: convert-tokens.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @record
*/
function TokensMap() { }
/** @type {?} */
var tokensMap = {
M: 'L',
Mo: 'Mo',
MM: 'LL',
MMM: 'LLL',
MMMM: 'LLLL',
Q: 'q',
Qo: 'qo',
D: 'd',
Do: 'do',
DD: 'dd',
DDD: 'D',
DDDo: 'Do',
DDDD: 'DDD',
d: 'i',
do: 'io',
dd: 'iiiiii',
ddd: 'iii',
dddd: 'iiii',
A: 'a',
a: 'a',
aa: 'aaaa',
E: 'i',
W: 'I',
Wo: 'Io',
WW: 'II',
YY: 'yy',
YYYY: 'yyyy',
GG: 'RR',
GGGG: 'RRRR',
H: 'H',
HH: 'HH',
h: 'h',
hh: 'hh',
m: 'm',
mm: 'mm',
s: 's',
ss: 'ss',
S: 'S',
SS: 'SS',
SSS: 'SSS',
Z: 'xxx',
ZZ: 'xx',
X: 't',
x: 'T'
};
/** @type {?} */
var v1tokens = Object.keys(tokensMap)
.sort()
.reverse();
// tslint:disable-next-line:prefer-template
/** @type {?} */
var tokensRegExp = new RegExp('(\\[[^\\[]*\\])|(\\\\)?' + '(' + v1tokens.join('|') + '|.)', 'g');
/**
* @record
*/
function TokensBuffer() { }
if (false) {
/** @type {?} */
TokensBuffer.prototype.formatBuffer;
/** @type {?} */
TokensBuffer.prototype.textBuffer;
}
/**
* @param {?} format
* @return {?}
*/
function convertTokens(format) {
warnDeprecation("'NZ_DATE_FNS_COMPATIBLE' will be removed in 10.0.0, please update to date-fns v2 format.");
/** @type {?} */
var tokensCaptures = format.match(tokensRegExp);
if (tokensCaptures) {
return tokensCaptures
.reduce((/**
* @param {?} acc
* @param {?} tokenString
* @param {?} index
* @return {?}
*/
function (acc, tokenString, index) {
/** @type {?} */
var v2token = tokensMap[tokenString];
if (!v2token) {
/** @type {?} */
var escapedCaptures = tokenString.match(/^\[(.+)\]$/);
if (escapedCaptures) {
acc.textBuffer.push(escapedCaptures[1]);
}
else {
acc.textBuffer.push(tokenString);
}
}
/** @type {?} */
var endOfString = index === tokensCaptures.length - 1;
if (acc.textBuffer.length && (v2token || endOfString)) {
acc.formatBuffer.push("'" + acc.textBuffer.join('') + "'");
acc.textBuffer = [];
}
if (v2token) {
acc.formatBuffer.push(v2token);
}
return acc;
}), (/** @type {?} */ ({ formatBuffer: [], textBuffer: [] })))
.formatBuffer.join('');
}
else {
return format;
}
}
/**
* @fileoverview added by tsickle
* Generated from: date-helper.service.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @param {?} injector
* @param {?} config
* @param {?} convertFormat
* @return {?}
*/
function DATE_HELPER_SERVICE_FACTORY(injector, config, convertFormat) {
/** @type {?} */
var i18n = injector.get(NzI18nService);
return i18n.getDateLocale()
? new DateHelperByDateFns(i18n, config, convertFormat)
: new DateHelperByDatePipe(i18n, config, convertFormat);
}
/**
* Abstract DateHelperService(Token via Class)
* Compatibility: compact for original usage by default which using DatePipe
* @abstract
*/
var DateHelperService = /** @class */ (function () {
function DateHelperService(i18n, config, convertFormat) {
this.i18n = i18n;
this.config = config;
this.convertFormat = convertFormat;
this.config = mergeDateConfig(this.config);
}
DateHelperService.decorators = [
{ type: Injectable, args: [{
providedIn: 'root',
useFactory: DATE_HELPER_SERVICE_FACTORY,
deps: [Injector, [new Optional(), NZ_DATE_CONFIG], [new Optional(), NZ_DATE_FNS_COMPATIBLE]]
},] }
];
/** @nocollapse */
DateHelperService.ctorParameters = function () { return [
{ type: NzI18nService },
{ type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [NZ_DATE_CONFIG,] }] },
{ type: Boolean, decorators: [{ type: Optional }, { type: Inject, args: [NZ_DATE_FNS_COMPATIBLE,] }] }
]; };
/** @nocollapse */ DateHelperService.ɵprov = ɵɵdefineInjectable({ factory: function DateHelperService_Factory() { return DATE_HELPER_SERVICE_FACTORY(ɵɵinject(INJECTOR), ɵɵinject(NZ_DATE_CONFIG, 8), ɵɵinject(NZ_DATE_FNS_COMPATIBLE, 8)); }, token: DateHelperService, providedIn: "root" });
return DateHelperService;
}());
if (false) {
/**
* @type {?}
* @protected
*/
DateHelperService.prototype.i18n;
/**
* @type {?}
* @protected
*/
DateHelperService.prototype.config;
/**
* @type {?}
* @protected
*/
DateHelperService.prototype.convertFormat;
/**
* @abstract
* @param {?} date
* @return {?}
*/
DateHelperService.prototype.getISOWeek = function (date) { };
/**
* @abstract
* @return {?}
*/
DateHelperService.prototype.getFirstDayOfWeek = function () { };
/**
* @abstract
* @param {?} date
* @param {?} formatStr
* @return {?}
*/
DateHelperService.prototype.format = function (date, formatStr) { };
/**
* @abstract
* @param {?} text
* @param {?=} formatStr
* @return {?}
*/
DateHelperService.prototype.parseDate = function (text, formatStr) { };
/**
* @abstract
* @param {?} text
* @param {?=} formatStr
* @return {?}
*/
DateHelperService.prototype.parseTime = function (text, formatStr) { };
}
/**
* DateHelper that handles date formats with date-fns
*/
var DateHelperByDateFns = /** @class */ (function (_super) {
__extends(DateHelperByDateFns, _super);
function DateHelperByDateFns() {
return _super !== null && _super.apply(this, arguments) || this;
}
/**
* @param {?} date
* @return {?}
*/
DateHelperByDateFns.prototype.getISOWeek = /**
* @param {?} date
* @return {?}
*/
function (date) {
return fnsGetISOWeek(date);
};
// Use date-fns's "weekStartsOn" to support different locale when "config.firstDayOfWeek" is null
// https://github.com/date-fns/date-fns/blob/v2.0.0-alpha.27/src/locale/en-US/index.js#L23
// Use date-fns's "weekStartsOn" to support different locale when "config.firstDayOfWeek" is null
// https://github.com/date-fns/date-fns/blob/v2.0.0-alpha.27/src/locale/en-US/index.js#L23
/**
* @return {?}
*/
DateHelperByDateFns.prototype.getFirstDayOfWeek =
// Use date-fns's "weekStartsOn" to support different locale when "config.firstDayOfWeek" is null
// https://github.com/date-fns/date-fns/blob/v2.0.0-alpha.27/src/locale/en-US/index.js#L23
/**
* @return {?}
*/
function () {
/** @type {?} */
var defaultWeekStartsOn;
try {
defaultWeekStartsOn = (/** @type {?} */ ((/** @type {?} */ (this.i18n.getDateLocale().options)).weekStartsOn));
}
catch (e) {
defaultWeekStartsOn = 1;
}
return this.config.firstDayOfWeek == null ? defaultWeekStartsOn : this.config.firstDayOfWeek;
};
/**
* Format a date
* @see https://date-fns.org/docs/format#description
* @param date Date
* @param formatStr format string
*/
/**
* Format a date
* @see https://date-fns.org/docs/format#description
* @param {?} date Date
* @param {?} formatStr format string
* @return {?}
*/
DateHelperByDateFns.prototype.format = /**
* Format a date
* @see https://date-fns.org/docs/format#description
* @param {?} date Date
* @param {?} formatStr format string
* @return {?}
*/
function (date, formatStr) {
/** @type {?} */
var mergedStr = this.convertFormat ? convertTokens(formatStr) : formatStr;
return date ? fnsFormat(date, mergedStr, { locale: this.i18n.getDateLocale() }) : '';
};
/**
* @param {?} text
* @param {?} formatStr
* @return {?}
*/
DateHelperByDateFns.prototype.parseDate = /**
* @param {?} text
* @param {?} formatStr
* @return {?}
*/
function (text, formatStr) {
/** @type {?} */
var mergedStr = this.convertFormat ? convertTokens(formatStr) : formatStr;
return fnsParse(text, mergedStr, new Date(), {
locale: this.i18n.getDateLocale(),
weekStartsOn: this.getFirstDayOfWeek()
});
};
/**
* @param {?} text
* @param {?} formatStr
* @return {?}
*/
DateHelperByDateFns.prototype.parseTime = /**
* @param {?} text
* @param {?} formatStr
* @return {?}
*/
function (text, formatStr) {
return this.parseDate(text, formatStr);
};
/** @nocollapse */ DateHelperByDateFns.ɵprov = ɵɵdefineInjectable({ factory: function DateHelperByDateFns_Factory() { return DATE_HELPER_SERVICE_FACTORY(ɵɵinject(INJECTOR), ɵɵinject(NZ_DATE_CONFIG, 8), ɵɵinject(NZ_DATE_FNS_COMPATIBLE, 8)); }, token: DateHelperByDateFns, providedIn: "root" });
return DateHelperByDateFns;
}(DateHelperService));
/**
* DateHelper that handles date formats with angular's date-pipe
*
* @see https://github.com/NG-ZORRO/ng-zorro-antd/issues/2406 - DatePipe may cause non-standard week bug, see:
*
*/
var DateHelperByDatePipe = /** @class */ (function (_super) {
__extends(DateHelperByDatePipe, _super);
function DateHelperByDatePipe() {
return _super !== null && _super.apply(this, arguments) || this;
}
/**
* @param {?} date
* @return {?}
*/
DateHelperByDatePipe.prototype.getISOWeek = /**
* @param {?} date
* @return {?}
*/
function (date) {
return +this.format(date, 'w');
};
/**
* @return {?}
*/
DateHelperByDatePipe.prototype.getFirstDayOfWeek = /**
* @return {?}
*/
function () {
if (this.config.firstDayOfWeek === undefined) {
/** @type {?} */
var locale = this.i18n.getLocaleId();
return locale && ['zh-cn', 'zh-tw'].indexOf(locale.toLowerCase()) > -1 ? 1 : 0;
}
return this.config.firstDayOfWeek;
};
/**
* @param {?} date
* @param {?} formatStr
* @return {?}
*/
DateHelperByDatePipe.prototype.format = /**
* @param {?} date
* @param {?} formatStr
* @return {?}
*/
function (date, formatStr) {
return date ? (/** @type {?} */ (formatDate(date, formatStr, this.i18n.getLocaleId()))) : '';
};
/**
* @param {?} text
* @return {?}
*/
DateHelperByDatePipe.prototype.parseDate = /**
* @param {?} text
* @return {?}
*/
function (text) {
return new Date(text);
};
/**
* @param {?} text
* @return {?}
*/
DateHelperByDatePipe.prototype.parseTime = /**
* @param {?} text
* @return {?}
*/
function (text) {
if (!text) {
return;
}
return new Date(Date.parse("1970-01-01 " + text));
};
/** @nocollapse */ DateHelperByDatePipe.ɵprov = ɵɵdefineInjectable({ factory: function DateHelperByDatePipe_Factory() { return DATE_HELPER_SERVICE_FACTORY(ɵɵinject(INJECTOR), ɵɵinject(NZ_DATE_CONFIG, 8), ɵɵinject(NZ_DATE_FNS_COMPATIBLE, 8)); }, token: DateHelperByDatePipe, providedIn: "root" });
return DateHelperByDatePipe;
}(DateHelperService));
/**
* @fileoverview added by tsickle
* Generated from: languages/calendar/ar_EG.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @license
* Copyright Alibaba.com All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/
var Calendar$1 = {
today: 'اليوم',
now: 'الأن',
backToToday: 'العودة إلى اليوم',
ok: 'تأكيد',
clear: 'مسح',
month: 'الشهر',
year: 'السنة',
timeSelect: 'اختيار الوقت',
dateSelect: 'اختيار التاريخ',
monthSelect: 'اختيار الشهر',
yearSelect: 'اختيار السنة',
decadeSelect: 'اختيار العقد',
yearFormat: 'YYYY',
dateFormat: 'M/D/YYYY',
dayFormat: 'D',
dateTimeFormat: 'M/D/YYYY HH:mm:ss',
monthBeforeYear: true,
previousMonth: 'الشهر السابق (PageUp)',
nextMonth: 'الشهر التالى(PageDown)',
previousYear: 'العام السابق (Control + left)',
nextYear: 'العام التالى (Control + right)',
previousDecade: 'العقد السابق',
nextDecade: 'العقد التالى',
previousCentury: 'القرن السابق',
nextCentury: 'القرن التالى'
};
/**
* @fileoverview added by tsickle
* Generated from: languages/time-picker/ar_EG.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @license
* Copyright Alibaba.com All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/
/** @type {?} */
var locale$2 = {
placeholder: 'اختيار الوقت'
};
/**
* @fileoverview added by tsickle
* Generated from: languages/date-picker/ar_EG.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
// Merge into a locale object
/** @type {?} */
var locale$3 = {
lang: __assign({ placeholder: 'اختيار التاريخ', rangePlaceholder: ['البداية', 'النهاية'] }, Calendar$1),
timePickerLocale: __assign({}, locale$2),
dateFormat: 'DD-MM-YYYY',
monthFormat: 'MM-YYYY',
dateTimeFormat: 'DD-MM-YYYY HH:mm:ss',
weekFormat: 'wo-YYYY'
};
/**
* @fileoverview added by tsickle
* Generated from: languages/pagination/ar_EG.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @license
* Copyright Alibaba.com All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/
var Pagination$1 = {
// Options.jsx
items_per_page: '/ الصفحة',
jump_to: 'الذهاب إلى',
jump_to_confirm: 'تأكيد',
page: '',
// Pagination.jsx
prev_page: 'الصفحة السابقة',
next_page: 'الصفحة التالية',
prev_5: 'خمس صفحات سابقة',
next_5: 'خمس صفحات تالية',
prev_3: 'ثلاث صفحات سابقة',
next_3: 'ثلاث صفحات تالية'
};
/**
* @fileoverview added by tsickle
* Generated from: languages/ar_EG.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var ar_EG = {
locale: 'ar',
Pagination: Pagination$1,
DatePicker: locale$3,
TimePicker: locale$2,
Calendar: Calendar$1,
global: {
placeholder: 'يرجى اختيار'
},
Table: {
filterTitle: 'الفلاتر',
filterConfirm: 'تأكيد',
filterReset: 'إعادة ضبط',
selectAll: 'اختيار الكل',
selectInvert: 'إلغاء الاختيار',
sortTitle: 'فرز'
},
Modal: {
okText: 'تأكيد',
cancelText: 'إلغاء',
justOkText: 'تأكيد'
},
Popconfirm: {
okText: 'تأكيد',
cancelText: 'إلغاء'
},
Transfer: {
searchPlaceholder: 'ابحث هنا',
itemUnit: 'عنصر',
itemsUnit: 'عناصر'
},
Upload: {
uploading: 'جاري الرفع...',
removeFile: 'احذف الملف',
uploadError: 'مشكلة فى الرفع',
previewFile: 'استعرض الملف',
downloadFile: 'تحميل الملف'
},
Empty: {
description: 'لا توجد بيانات'
},
Icon: {
icon: 'أيقونة'
},
Text: {
edit: 'تعديل',
copy: 'نسخ',
copied: 'نسخ النجاح',
expand: 'مدد'
},
PageHeader: {
back: 'خلف'
}
};
/**
* @fileoverview added by tsickle
* Generated from: languages/calendar/bg_BG.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @license
* Copyright Alibaba.com All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/
var Calendar$2 = {
today: 'Днес',
now: 'Сега',
backToToday: 'Към днес',
ok: 'Добре',
clear: 'Изчистване',
month: 'Месец',
year: 'Година',
timeSelect: 'Избор на час',
dateSelect: 'Избор на дата',
monthSelect: 'Избор на месец',
yearSelect: 'Избор на година',
decadeSelect: 'Десетилетие',
yearFormat: 'YYYY',
dateFormat: 'D M YYYY',
dayFormat: 'D',
dateTimeFormat: 'D M YYYY HH:mm:ss',
monthBeforeYear: true,
previousMonth: 'Предишен месец (PageUp)',
nextMonth: 'Следващ месец (PageDown)',
previousYear: 'Последна година (Control + left)',
nextYear: 'Следваща година (Control + right)',
previousDecade: 'Предишно десетилетие',
nextDecade: 'Следващо десетилетие',
previousCentury: 'Последен век',
nextCentury: 'Следващ век'
};
/**
* @fileoverview added by tsickle
* Generated from: languages/time-picker/bg_BG.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @license
* Copyright Alibaba.com All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/
/** @type {?} */
var locale$4 = {
placeholder: 'Избор на час'
};
/**
* @fileoverview added by tsickle
* Generated from: languages/date-picker/bg_BG.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
// Merge into a locale object
/** @type {?} */
var locale$5 = {
lang: __assign({ placeholder: 'Избор на дата', rangePlaceholder: ['Начална', 'Крайна'] }, Calendar$2),
timePickerLocale: __assign({}, locale$4)
};
/**
* @fileoverview added by tsickle
* Generated from: languages/pagination/bg_BG.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @license
* Copyright Alibaba.com All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/
var Pagination$2 = {
// Options.jsx
items_per_page: '/ страница',
jump_to: 'Към',
jump_to_confirm: 'потвърждавам',
page: '',
// Pagination.jsx
prev_page: 'Предишна страница',
next_page: 'Следваща страница',
prev_5: 'Предишни 5 страници',
next_5: 'Следващи 5 страници',
prev_3: 'Предишни 3 страници',
next_3: 'Следващи 3 страници'
};
/**
* @fileoverview added by tsickle
* Generated from: languages/bg_BG.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var bg_BG = {
locale: 'bg',
Pagination: Pagination$2,
DatePicker: locale$5,
TimePicker: locale$4,
Calendar: Calendar$2,
Table: {
filterTitle: 'Филтриране',
filterConfirm: 'Добре',
filterReset: 'Нулриане',
selectAll: 'Избор на текуща страница',
selectInvert: 'Обръщане'
},
Modal: {
okText: 'Добре',
cancelText: 'Отказ',
justOkText: 'Добре'
},
Popconfirm: {
okText: 'Добре',
cancelText: 'Отказ'
},
Transfer: {
searchPlaceholder: 'Търсене',
itemUnit: 'избор',
itemsUnit: 'избори'
},
Upload: {
uploading: 'Качване...',
removeFile: 'Премахване',
uploadError: 'Грешка при качването',
previewFile: 'Преглед',
downloadFile: 'Свали файл'
},
Empty: {
description: 'Няма данни'
}
};
/**
* @fileoverview added by tsickle
* Generated from: languages/calendar/ca_ES.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @license
* Copyright Alibaba.com All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/
var Calendar$3 = {
today: 'Avui',
now: 'Ara',
backToToday: 'Tornar a avui',
ok: 'Acceptar',
clear: 'Netejar',
month: 'Mes',
year: 'Any',
timeSelect: 'Seleccionar hora',
dateSelect: 'Seleccionar data',
monthSelect: 'Escollir un mes',
yearSelect: 'Escollir un any',
decadeSelect: 'Escollir una dècada',
yearFormat: 'YYYY',
dateFormat: 'D/M/YYYY',
dayFormat: 'D',
dateTimeFormat: 'D/M/YYYY HH:mm:ss',
monthBeforeYear: true,
previousMonth: 'Mes anterior (PageUp)',
nextMonth: 'Mes següent (PageDown)',
previousYear: 'Any anterior (Control + left)',
nextYear: 'Mes següent (Control + right)',
previousDecade: 'Dècada anterior',
nextDecade: 'Dècada següent',
previousCentury: 'Segle anterior',
nextCentury: 'Segle següent'
};
/**
* @fileoverview added by tsickle
* Generated from: languages/time-picker/ca_ES.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @license
* Copyright Alibaba.com All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/
/** @type {?} */
var locale$6 = {
placeholder: 'Seleccionar hora'
};
/**
* @fileoverview added by tsickle
* Generated from: languages/date-picker/ca_ES.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
// Merge into a locale object
/** @type {?} */
var locale$7 = {
lang: __assign({ placeholder: 'Seleccionar data', rangePlaceholder: ['Data inicial', 'Data final'] }, Calendar$3),
timePickerLocale: __assign({}, locale$6)
};
/**
* @fileoverview added by tsickle
* Generated from: languages/pagination/ca_ES.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @license
* Copyright Alibaba.com All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/
var Pagination$3 = {
// Options.jsx
items_per_page: '/ pàgina',
jump_to: 'Anar a',
jump_to_confirm: 'Confirmar',
page: '',
// Pagination.jsx
prev_page: 'Pàgina prèvia',
next_page: 'Pàgina següent',
prev_5: '5 pàgines prèvies',
next_5: '5 pàgines següents',
prev_3: '3 pàgines prèvies',
next_3: '3 pàgines següents'
};
/**
* @fileoverview added by tsickle
* Generated from: languages/ca_ES.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var ca_ES = {
locale: 'ca',
Pagination: Pagination$3,
DatePicker: locale$7,
TimePicker: locale$6,
Calendar: Calendar$3,
global: {
placeholder: 'Seleccioni'
},
Table: {
filterTitle: 'Filtrar Menu',
filterConfirm: 'OK',
filterReset: 'Restablir',
selectAll: 'Seleccionar tot',
selectInvert: 'Invertir selecció',
sortTitle: 'Ordenar'
},
Modal: {
okText: 'Acceptar',
cancelText: 'Cancel·lar',
justOkText: 'Acceptar'
},
Popconfirm: {
okText: 'Acceptar',
cancelText: 'Cancel·lar'
},
Transfer: {
searchPlaceholder: 'Cercar aquí',
itemUnit: 'element',
itemsUnit: 'element'
},
Upload: {
uploading: 'Pujant...',
removeFile: 'Eliminar fitxer',
uploadError: 'Error al pujar el fitxer',
previewFile: 'Vista prèvia',
downloadFile: "Descarrega l'arxiu"
},
Empty: {
description: 'No hi ha dades'
},
Icon: {
icon: 'ícona'
},
Text: {
edit: 'editar',
copy: 'copiar',
copied: 'copiat',
expand: 'expandir'
},
PageHeader: {
back: 'tornar'
}
};
/**
* @fileoverview added by tsickle
* Generated from: languages/calendar/cs_CZ.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @license
* Copyright Alibaba.com All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/
var Calendar$4 = {
today: 'Dnes',
now: 'Nyní',
backToToday: 'Zpět na dnešek',
ok: 'Ok',
clear: 'Vymazat',
month: 'Měsíc',
year: 'Rok',
timeSelect: 'Vybrat čas',
dateSelect: 'Vybrat datum',
monthSelect: 'Vyberte měsíc',
yearSelect: 'Vyberte rok',
decadeSelect: 'Vyberte dekádu',
yearFormat: 'YYYY',
dateFormat: 'D.M.YYYY',
dayFormat: 'D',
dateTimeFormat: 'D.M.YYYY HH:mm:ss',
monthBeforeYear: true,
previousMonth: 'Předchozí měsíc (PageUp)',
nextMonth: 'Následující (PageDown)',
previousYear: 'Předchozí rok (Control + left)',
nextYear: 'Následující rok (Control + right)',
previousDecade: 'Předchozí dekáda',
nextDecade: 'Následující dekáda',
previousCentury: 'Předchozí století',
nextCentury: 'Následující století'
};
/**
* @fileoverview added by tsickle
* Generated from: languages/time-picker/cs_CZ.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @license
* Copyright Alibaba.com All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/
/** @type {?} */
var locale$8 = {
placeholder: 'Vybrat čas'
};
/**
* @fileoverview added by tsickle
* Generated from: languages/date-picker/cs_CZ.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
// Merge into a locale object
/** @type {?} */
var locale$9 = {
lang: __assign({ placeholder: 'Vybrat datum', rangePlaceholder: ['Od', 'Do'] }, Calendar$4),
timePickerLocale: __assign({}, locale$8)
};
/**
* @fileoverview added by tsickle
* Generated from: languages/pagination/cs_CZ.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @license
* Copyright Alibaba.com All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/
var Pagination$4 = {
// Options.jsx
items_per_page: '/ strana',
jump_to: 'Přejít',
jump_to_confirm: 'potvrdit',
page: '',
// Pagination.jsx
prev_page: 'Předchozí strana',
next_page: 'Následující strana',
prev_5: 'Předchozích 5 stran',
next_5: 'Následujících 5 stran',
prev_3: 'Předchozí 3 strany',
next_3: 'Následující 3 strany'
};
/**
* @fileoverview added by tsickle
* Generated from: languages/cs_CZ.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var cs_CZ = {
locale: 'cs',
Pagination: Pagination$4,
DatePicker: locale$9,
TimePicker: locale$8,
Calendar: Calendar$4,
Table: {
filterTitle: 'Filtr',
filterConfirm: 'Potvrdit',
filterReset: 'Obnovit'
},
Modal: {
okText: 'Ok',
cancelText: 'Storno',
justOkText: 'Ok'
},
Popconfirm: {
okText: 'Ok',
cancelText: 'Storno'
},
Transfer: {
searchPlaceholder: 'Vyhledávání',
itemUnit: 'položka',
itemsUnit: 'položek'
},
Upload: {
uploading: 'Nahrávání...',
removeFile: 'Odstranit soubor',
uploadError: 'Chyba při nahrávání',
previewFile: 'Zobrazit soubor',
downloadFile: 'Stáhnout soubor'
},
Empty: {
description: 'Žádná data'
}
};
/**
* @fileoverview added by tsickle
* Generated from: languages/calendar/da_DK.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @license
* Copyright Alibaba.com All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/
var Calendar$5 = {
today: 'I dag',
now: 'Nu',
backToToday: 'Gå til i dag',
ok: 'Ok',
clear: 'Annuller',
month: 'Måned',
year: 'År',
timeSelect: 'Vælg tidspunkt',
dateSelect: 'Vælg dato',
monthSelect: 'Vælg måned',
yearSelect: 'Vælg år',
decadeSelect: 'Vælg årti',
yearFormat: 'YYYY',
dateFormat: 'D/M/YYYY',
dayFormat: 'D',
dateTimeFormat: 'D/M/YYYY HH:mm:ss',
monthBeforeYear: true,
previousMonth: 'Forrige måned(PageUp)',
nextMonth: 'Næste måned (PageDown)',
previousYear: 'Forrige år (Control + left)',
nextYear: 'Næste r (Control + right)',
previousDecade: 'Forrige årti',
nextDecade: 'Næste årti',
previousCentury: 'Forrige århundrede',
nextCentury: 'Næste århundrede'
};
/**
* @fileoverview added by tsickle
* Generated from: languages/time-picker/da_DK.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @license
* Copyright Alibaba.com All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/
/** @type {?} */
var locale$a = {
placeholder: 'Vælg tid'
};
/**
* @fileoverview