carbon-components-angular
Version:
Next generation components
37 lines (33 loc) • 1.29 kB
TypeScript
/**
*
* carbon-angular v0.0.0 | carbon-flatpickr-month-select.d.ts
*
* Copyright 2014, 2025 IBM
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* 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
*/
export declare const carbonFlatpickrMonthSelectPlugin: (fp: any) => {
onMonthChange: () => void;
onValueUpdate: () => void;
onOpen: () => void;
onReady: (() => void)[];
};