_scrollbarWidth |
Default value : -1
|
ANIMATION_FRAME_SERVICE_SINGLETON_PROVIDER |
Type : object
|
Default value : {
provide: AnimationFrameServiceSingleton,
deps: [[new Optional(), new SkipSelf(), AnimationFrameServiceSingleton], NgZone],
useFactory: ANIMATION_FRAME_SERVICE_SINGLETON_PROVIDER_FACTORY
}
|
DOCUMENT_SERVICE_PROVIDER |
Type : object
|
Default value : {
provide: DocumentService,
deps: [[new Optional(), new SkipSelf(), DocumentService]],
useFactory: DOCUMENT_SERVICE_PROVIDER_FACTORY
}
|
config |
Type : object
|
Default value : {
selectorInit: "[data-date-picker]",
selectorDatePickerInput: "[data-date-picker-input]",
selectorDatePickerInputFrom: "[data-date-picker-input-from]",
selectorDatePickerInputTo: "[data-date-picker-input-to]",
selectorDatePickerIcon: "[data-date-picker-icon]",
selectorFlatpickrMonthYearContainer: ".flatpickr-current-month",
selectorFlatpickrYearContainer: ".numInputWrapper",
selectorFlatpickrCurrentMonth: ".cur-month",
classCalendarContainer: `cds--date-picker__calendar`,
classMonth: `cds--date-picker__month`,
classWeekdays: `cds--date-picker__weekdays`,
classDays: `cds--date-picker__days`,
classWeekday: `cds--date-picker__weekday`,
classDay: `cds--date-picker__day`,
classFocused: `cds--focused`,
classVisuallyHidden: `cds--visually-hidden`,
classFlatpickrCurrentMonth: "cur-month",
attribType: "data-date-picker-type",
dateFormat: "m/d/Y",
shorthand: false
}
|
monthToStr |
Default value : (monthNumber, shorthand, locale) =>
locale.months[shorthand ? "shorthand" : "longhand"][monthNumber]
|
This is from carbon-components. We need it to format the month select according to specs. Carbon currently doesn't expose this as a seperate package, and we don't import the carbon-components js (on purpose) so some copy pasta is required ref: https://github.com/carbon-design-system/carbon/blob/ f06f38f0c2ef624e409a3d5711e897a79f4c88fc/packages/components/src/components/date-picker/date-picker.js#L52-L123 |
DEFAULT_TOOLTIP_CONFIG |
Type : object
|
Default value : {
align: "bottom" as TooltipAlignments,
caret: true,
dropShadow: true,
highContrast: true,
isOpen: false,
enterDelayMs: 100,
leaveDelayMs: 300
}
|
Default tooltip configuration for components to populate missing interface attributes |
defaultOffset |
Type : object
|
Default value : { top: 0, left: 0 }
|
defaults |
Type : object
|
Default value : {
selectors: {
root: "cds-checkbox",
input: "input"
}
}
|
EXPERIMENTAL_SERVICE_PROVIDER |
Type : object
|
Default value : {
provide: ExperimentalService,
deps: [[new Optional(), new SkipSelf(), ExperimentalService]],
useFactory: EXPERIMENTAL_SERVICE_PROVIDER_FACTORY
}
|
I18N_SERVICE_PROVIDER |
Type : object
|
Default value : {
provide: I18n,
deps: [[new Optional(), new SkipSelf(), I18n]],
useFactory: I18N_SERVICE_PROVIDER_FACTORY
}
|
ICON_SERVICE_PROVIDER |
Type : object
|
Default value : {
provide: IconService,
deps: [[new Optional(), new SkipSelf(), IconService]],
useFactory: ICON_SERVICE_PROVIDER_FACTORY
}
|
MAX_LEVEL |
Type : number
|
Default value : 2
|
MINIMUM_OVERFLOW_THRESHOLD |
Type : number
|
Default value : 4
|
noop |
Default value : () => { }
|
PLACEHOLDER_SERVICE_PROVIDER |
Type : object
|
Default value : {
provide: PlaceholderService,
deps: [[new Optional(), new SkipSelf(), PlaceholderService]],
useFactory: PLACEHOLDER_SERVICE_PROVIDER_FACTORY
}
|
REL |
Type : string
|
Default value : "noreferrer noopener"
|
Security HTML anchor rel when target is set |
treetools |
Type : object
|
Default value : {
/** finds an item in a set of items and returns the item and path to the item as an array */
find: function(items, itemToFind, path = []) {
let found;
for (let i of items) {
if (i === itemToFind) {
path.push(i);
found = i;
}
if (i.items && !found) {
path.push(i);
found = this.find(i.items, itemToFind, path).found;
if (!found) { path = []; }
}
}
return {found, path};
}
}
|
bundle of functions to aid in manipulating tree structures |