@masterteam/components 0.0.49 → 0.0.51
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/assets/common.css +1 -1
- package/confirmation/index.d.ts +37 -0
- package/fesm2022/masterteam-components-confirmation.mjs +71 -0
- package/fesm2022/masterteam-components-confirmation.mjs.map +1 -0
- package/fesm2022/masterteam-components-module-summary-card.mjs +2 -2
- package/fesm2022/masterteam-components-module-summary-card.mjs.map +1 -1
- package/fesm2022/masterteam-components-table.mjs +12 -2
- package/fesm2022/masterteam-components-table.mjs.map +1 -1
- package/fesm2022/masterteam-components-user-search-field.mjs +42 -31
- package/fesm2022/masterteam-components-user-search-field.mjs.map +1 -1
- package/fesm2022/masterteam-components.mjs +6 -2
- package/fesm2022/masterteam-components.mjs.map +1 -1
- package/index.d.ts +4 -2
- package/package.json +57 -53
- package/table/index.d.ts +19 -3
- package/user-search-field/index.d.ts +6 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"masterteam-components.mjs","sources":["../../../../packages/masterteam/components/src/lib/utils/theme.ts","../../../../packages/masterteam/components/src/lib/config/providemt.ts","../../../../packages/masterteam/components/src/lib/config/povide-messages.ts","../../../../packages/masterteam/components/src/lib/utils/inputs.ts","../../../../packages/masterteam/components/src/lib/config/dynamic-form.model.ts","../../../../packages/masterteam/components/src/public-api.ts","../../../../packages/masterteam/components/src/masterteam-components.ts"],"sourcesContent":["type HSLTuple = [number, number, number]; // [hue, saturation, lightness]\ntype TailwindColorPalette = {\n [key: string]: string; // e.g., '50': '#f0f9ff', '500': '#0284c7'\n};\n\n/**\n * Converts a hex color string to an HSL tuple.\n * @param hex - The hex color string (e.g., \"#RRGGBB\" or \"#RGB\").\n * @returns An HSL tuple [hue, saturation, lightness] where hue is in degrees (0-360),\n * and saturation/lightness are percentages (0-100).\n */\nfunction hexToHsl(hex: string): HSLTuple {\n let r: number = 0,\n g: number = 0,\n b: number = 0;\n\n // Handle shorthand hex codes\n if (hex.length === 4) {\n r = parseInt(hex[1] + hex[1], 16);\n g = parseInt(hex[2] + hex[2], 16);\n b = parseInt(hex[3] + hex[3], 16);\n } else if (hex.length === 7) {\n r = parseInt(hex.substring(1, 3), 16);\n g = parseInt(hex.substring(3, 5), 16);\n b = parseInt(hex.substring(5, 7), 16);\n } else {\n throw new Error('Invalid hex color format. Expected #RGB or #RRGGBB.');\n }\n\n r /= 255;\n g /= 255;\n b /= 255;\n\n const max: number = Math.max(r, g, b);\n const min: number = Math.min(r, g, b);\n let h: number = 0,\n s: number;\n const l: number = (max + min) / 2;\n\n if (max === min) {\n h = s = 0; // achromatic\n } else {\n const d: number = max - min;\n s = l > 0.5 ? d / (2 - max - min) : d / (max + min);\n switch (max) {\n case r:\n h = (g - b) / d + (g < b ? 6 : 0);\n break;\n case g:\n h = (b - r) / d + 2;\n break;\n case b:\n h = (r - g) / d + 4;\n break;\n }\n h /= 6;\n }\n\n return [h * 360, s * 100, l * 100]; // HSL in degrees, percentage, percentage\n}\n\n/**\n * Converts HSL values to a hex color string.\n * @param h - Hue (0-360).\n * @param s - Saturation (0-100).\n * @param l - Lightness (0-100).\n * @returns The hex color string (e.g., \"#RRGGBB\").\n */\nfunction hslToHex(h: number, s: number, l: number): string {\n l /= 100;\n const a: number = (s * Math.min(l, 1 - l)) / 100;\n const f = (n: number): string => {\n const k: number = (n + h / 30) % 12;\n const color: number = l - a * Math.max(Math.min(k - 3, 9 - k, 1), -1);\n return Math.round(255 * color)\n .toString(16)\n .padStart(2, '0');\n };\n return `#${f(0)}${f(8)}${f(4)}`;\n}\n\n/**\n * Generates a Tailwind-like color palette (50-950) from a primary color (assumed to be 500).\n *\n * @param primaryColor500 - The hex string of the primary color (e.g., \"#0284c7\").\n * @returns An object representing the color palette, where keys are color numbers (e.g., \"50\", \"100\")\n * and values are hex color strings.\n */\n// export function generateTailwindPalette(\n// primaryColor500: string,\n// ): TailwindColorPalette {\n// const [h, s, _l]: HSLTuple = hexToHsl(primaryColor500);\n//\n// const palette: TailwindColorPalette = {\n// '500': primaryColor500,\n// };\n//\n// // Define steps for lighter shades (50 - 400)\n// const lightnessStepsLighter: { [key: string]: number } = {\n// '50': 95,\n// '100': 90,\n// '200': 80,\n// '300': 70,\n// '400': 60,\n// };\n//\n// const saturationReductionsLighter: { [key: string]: number } = {\n// '50': 40, // More desaturated\n// '100': 30,\n// '200': 20,\n// '300': 10,\n// '400': 5, // Slightly desaturated\n// };\n//\n// for (const shade in lightnessStepsLighter) {\n// if (Object.prototype.hasOwnProperty.call(lightnessStepsLighter, shade)) {\n// const newL: number = lightnessStepsLighter[shade];\n// // Ensure saturation doesn't go below 0\n// const newS: number = Math.max(0, s - saturationReductionsLighter[shade]);\n// palette[shade] = hslToHex(h, newS, newL);\n// }\n// }\n//\n// // Define steps for darker shades (600 - 950)\n// const lightnessStepsDarker: { [key: string]: number } = {\n// '600': 45,\n// '700': 35,\n// '800': 25,\n// '900': 15,\n// '950': 8, // More aggressive darkening for 950\n// };\n//\n// const saturationIncreasesDarker: { [key: string]: number } = {\n// '600': 5,\n// '700': 10,\n// '800': 15,\n// '900': 20,\n// '950': 25, // Can increase saturation for darker shades\n// };\n//\n// for (const shade in lightnessStepsDarker) {\n// if (Object.prototype.hasOwnProperty.call(lightnessStepsDarker, shade)) {\n// const newL: number = lightnessStepsDarker[shade];\n// // Ensure saturation doesn't exceed 100\n// const newS: number = Math.min(100, s + saturationIncreasesDarker[shade]);\n// palette[shade] = hslToHex(h, newS, newL);\n// }\n// }\n//\n// // Sort the keys numerically to ensure consistent order\n// const sortedPalette: TailwindColorPalette = {};\n// Object.keys(palette)\n// .sort((a, b) => parseInt(a) - parseInt(b))\n// .forEach((key: string) => {\n// sortedPalette[key] = palette[key];\n// });\n//\n// return sortedPalette;\n// }\n\n// Define the specific shade keys\nexport type PaletteShade =\n | '0'\n | '50'\n | '100'\n | '200'\n | '300'\n | '400'\n | '500'\n | '600'\n | '700'\n | '800'\n | '900'\n | '950';\n\n// A helper type for our new palette profile\ntype ShadeProfile = {\n /** Target lightness (0-100) */\n l: number;\n /** Saturation adjustment relative to the 500 shade */\n s_adjust: number;\n};\n\n/**\n * Defines the \"ideal\" lightness and saturation adjustment for each shade.\n * Lightness for 500 is set to 50 as a balanced default.\n */\nconst PALETTE_PROFILE: Record<PaletteShade, ShadeProfile> = {\n '0': { l: 98, s_adjust: -50 },\n '50': { l: 95, s_adjust: -40 },\n '100': { l: 90, s_adjust: -30 },\n '200': { l: 80, s_adjust: -20 },\n '300': { l: 70, s_adjust: -10 },\n '400': { l: 60, s_adjust: -5 },\n '500': { l: 50, s_adjust: 0 },\n '600': { l: 45, s_adjust: 5 },\n '700': { l: 35, s_adjust: 10 },\n '800': { l: 25, s_adjust: 15 },\n '900': { l: 15, s_adjust: 20 },\n '950': { l: 8, s_adjust: 25 },\n};\n\n// Helper to ensure palette is always in the correct 50-950 order\nconst ALL_SHADES: PaletteShade[] = [\n '0',\n '50',\n '100',\n '200',\n '300',\n '400',\n '500',\n '600',\n '700',\n '800',\n '900',\n '950',\n];\n\n/**\n * Clamps a number between a min and max value.\n */\nfunction clamp(value: number, min: number, max: number): number {\n return Math.max(min, Math.min(max, value));\n}\n\n/**\n * Generates a Tailwind-like color palette (50-950) from any given base color.\n *\n * @param baseColorHex - The hex string of the base color (e.g., \"#0284c7\").\n * @param baseColorShade - The shade of the base color (e.g., \"500\", \"700\").\n * @returns An object representing the full color palette.\n */\nexport function generateTailwindPalette(\n baseColorHex: string,\n baseColorShade: PaletteShade = '500',\n): TailwindColorPalette {\n // 1. Get HSL of the input color\n const [h_base, s_base, l_base]: HSLTuple = hexToHsl(baseColorHex);\n\n // 2. Find the anchors\n const baseProfile = PALETTE_PROFILE[baseColorShade];\n\n /** The Hue is constant across the entire palette. */\n const h = h_base;\n\n /**\n * Calculate the 500-shade's saturation by \"reversing\" the adjustment\n * from the base color.\n * e.g., if base is 700 (s_adjust: +10) and s_base is 80,\n * s_500 will be 70.\n */\n const s_500 = clamp(s_base - baseProfile.s_adjust, 0, 100);\n\n /**\n * Calculate the lightness \"offset\". This is the difference between\n * the base color's actual lightness and its \"ideal\" lightness\n * from the profile.\n * e.g., if base is 700 (ideal L: 35) and l_base is 38,\n * the offset is +3. This offset will be applied to all shades.\n */\n const l_offset = l_base - baseProfile.l;\n\n // 3. Generate the full palette\n const palette: Partial<TailwindColorPalette> = {};\n\n for (const shade of ALL_SHADES) {\n const profile = PALETTE_PROFILE[shade];\n\n // Calculate the new saturation and lightness for this shade\n const newS = clamp(s_500 + profile.s_adjust, 0, 100);\n const newL = clamp(profile.l + l_offset, 0, 100);\n\n palette[shade] = hslToHex(h, newS, newL);\n }\n\n // 4. Ensure the originally provided color is used exactly\n // (to avoid rounding errors from HSL conversion)\n palette[baseColorShade] = baseColorHex;\n\n return palette as TailwindColorPalette;\n}\n","import { providePrimeNG } from 'primeng/config';\nimport { generateTailwindPalette } from '../utils/theme';\nimport Aura from '@primeuix/themes/aura';\nimport { definePreset, updatePreset } from '@primeuix/themes';\nimport { ToastTokenSections } from '@primeuix/themes/types/toast';\nimport { EnvironmentProviders } from '@angular/core';\nimport { Preset } from '@primeuix/themes/types';\nimport { AuraBaseDesignTokens } from '@primeuix/themes/aura/base';\n\nexport interface MTThemeOptions {\n primaryColor?: string;\n textColor?: string;\n backgroundColor?: string;\n}\n\nconst toastStyle: ToastTokenSections.Success = {\n // borderColor: '{surface.300}',\n background: '{content.background}',\n // color: '{surface.600}',\n // closeButton: {\n // hoverBackground: '{surface.100}',\n // focusRing: {\n // color: '{surface.600}',\n // },\n // },\n};\n\nexport function changePrimaryColor(color: string): void {\n updatePreset({\n semantic: {\n primary: generateTailwindPalette(color || '#334dff'),\n },\n });\n}\n\nexport function changeBackgroundColor(color?: string): void {\n if (color) {\n const palette = generateTailwindPalette(color, '100');\n console.log('the background palette', palette);\n document.documentElement.style.setProperty(\n '--app-background-light',\n palette['100'],\n );\n document.documentElement.style.setProperty(\n '--app-background-dark',\n palette['950'],\n );\n }\n}\n\nexport function changeTextColor(color: string): void {\n const palette = generateTailwindPalette(color ?? '#334155', '700');\n updatePreset({\n semantic: {\n colorScheme: {\n light: {\n text: {\n color: palette['700'],\n hoverColor: palette['800'],\n hoverMutedColor: palette['600'],\n mutedColor: palette['500'],\n },\n },\n dark: {\n text: {\n color: palette['0'],\n hoverColor: palette['0'],\n hoverMutedColor: palette['300'],\n mutedColor: palette['400'],\n },\n },\n },\n },\n });\n}\n\nconst MTPreset = (themeOptions?: MTThemeOptions) => {\n const textPalette = generateTailwindPalette(\n themeOptions?.textColor ?? '#334155',\n '700',\n );\n const configs: Preset<AuraBaseDesignTokens> = {\n options: {\n prefix: 'mt',\n cssLayer: {\n name: 'primeng',\n order: 'theme, base, primeng',\n },\n },\n semantic: {\n colorScheme: {\n light: {\n text: {\n color: textPalette['700'],\n hoverColor: textPalette['800'],\n hoverMutedColor: textPalette['600'],\n mutedColor: textPalette['500'],\n },\n },\n dark: {\n text: {\n color: textPalette['0'],\n hoverColor: textPalette['0'],\n hoverMutedColor: textPalette['300'],\n mutedColor: textPalette['400'],\n },\n },\n },\n primary: generateTailwindPalette(themeOptions?.primaryColor || '#334dff'),\n content: {\n borderRadius: '{border.radius.lg}',\n },\n formField: {\n borderRadius: '{border.radius.lg}',\n },\n },\n components: {\n dialog: {\n header: {\n padding: '0',\n },\n content: {\n padding: '0',\n },\n footer: {\n padding: '0',\n },\n },\n toast: {\n root: {\n borderRadius: '{border.radius.xl}',\n },\n colorScheme: {\n light: {\n success: toastStyle,\n info: toastStyle,\n warn: toastStyle,\n error: toastStyle,\n secondary: toastStyle,\n },\n dark: {\n success: toastStyle,\n info: toastStyle,\n warn: toastStyle,\n error: toastStyle,\n secondary: toastStyle,\n },\n },\n },\n togglebutton: {\n root: {\n padding: '1px',\n },\n colorScheme: {\n light: {\n root: {\n checkedColor: '{primary.500}',\n },\n },\n dark: {\n root: {\n checkedColor: '{primary.400}',\n },\n },\n },\n },\n selectbutton: {\n root: {\n borderRadius: '{border.radius.lg}',\n },\n },\n\n paginator: {\n root: {\n borderRadius: '{border.radius.lg}',\n padding: '0 .5rem',\n },\n navButton: {\n borderRadius: '0',\n },\n\n colorScheme: {\n light: {\n navButton: {\n color: '{surface.600}',\n hoverBackground: '#fff',\n selectedBackground: '{surface.200}',\n selectedColor: '{surface.600}',\n focusRing: {\n color: '{surface.200}',\n },\n },\n },\n dark: {\n navButton: {\n color: '{surface.200}',\n hoverBackground: 'transparent',\n selectedBackground: 'transparent',\n selectedColor: '#fff',\n focusRing: {\n color: '#fff',\n },\n },\n },\n },\n\n css: () => `\n .p-paginator {\n --p-paginator-gap: 0;\n --p-paginator-nav-button-width: 2.2rem;\n --p-paginator-nav-button-height: 2.2rem;\n width: fit-content;\n border: 1px solid var(--p-surface-200);\n overflow: hidden;\n font-size: .95rem;\n }\n\n .p-paginator-pages button,\n .p-paginator-prev,\n .p-paginator-next {\n border-color: var(--p-surface-200);\n }\n\n .p-paginator-pages button {\n border-style: solid;\n border-width: 0 0 0 1px;\n }\n\n .p-paginator-pages button:first-child {\n border-left: none;\n }\n\n .p-paginator-prev {\n border-right: 1px solid var(--p-surface-200);\n }\n\n .p-paginator-next {\n border-left: 1px solid var(--p-surface-200);\n }\n\n .p-paginator .p-select {\n border: 0;\n background: transparent;\n }\n\n .p-paginator .p-select .p-select-label {\n padding: 0;\n }\n\n /* Dark Mode Styles */\n .dark .p-paginator {\n border-color: var(--p-surface-500);\n }\n\n .dark .p-paginator-pages button,\n .dark .p-paginator-prev,\n .dark .p-paginator-next {\n border-color: var(--p-surface-500);\n }\n\n .dark .p-paginator-prev {\n border-right-color: var(--p-surface-500);\n }\n\n .dark .p-paginator-next {\n border-left-color: var(--p-surface-500);\n }\n `,\n },\n\n toggleswitch: {\n root: {\n width: '2.5rem',\n height: '1.4rem',\n },\n },\n\n // steps: {\n // item: {\n // link: {\n // gap: 'calc(50% + 0.25rem)',\n // },\n // number: {\n // font: {\n // size: '0.9rem',\n // },\n // active: {\n // color: 'white',\n // background: '{primary.500}',\n // border: {\n // color: '{primary.500}',\n // },\n // },\n // },\n // },\n // },\n },\n };\n\n return definePreset(Aura, configs);\n};\n\nexport function provideMTComponents(\n themeOptions?: MTThemeOptions,\n): EnvironmentProviders {\n changeBackgroundColor(themeOptions?.backgroundColor);\n return providePrimeNG({\n zIndex: {\n modal: 1900,\n overlay: 1500,\n menu: 1500,\n tooltip: 1600,\n },\n theme: {\n preset: MTPreset(themeOptions),\n options: {\n darkModeSelector: '.dark',\n },\n },\n });\n}\n","import { MessageService } from 'primeng/api';\n\nexport function provideMTMessages() {\n return MessageService;\n}\n","import { AbstractControl } from '@angular/forms';\n\nexport function isInvalid(control: AbstractControl | null) {\n if (!control) return false;\n return control && control?.invalid && control?.touched;\n}\n","import { HttpContext } from '@angular/common/http';\nimport { AbstractControl, ValidationErrors, ValidatorFn } from '@angular/forms';\n\nexport type FieldType =\n | 'text'\n | 'textarea'\n | 'select'\n | 'date'\n | 'number'\n | 'slider'\n | 'multi-select'\n | 'pick-list'\n | 'checkbox'\n | 'icon-field'\n | 'color-picker'\n | 'spacer'\n | string;\n\nexport type ValidatorType =\n | 'required'\n | 'email'\n | 'minLength'\n | 'maxLength'\n | 'min'\n | 'max'\n | 'pattern'\n | 'custom';\n\nexport type FieldRelationAction = 'enable' | 'disable' | 'show' | 'hide';\n\nexport interface FieldRelationConfig {\n key: string;\n value: any;\n action: FieldRelationAction;\n}\n\nexport interface ResponsiveColSpan {\n // Container\n xs?: number; // @xs\n sm?: number; // @sm\n md?: number; // @md\n lg?: number; // @lg\n xl?: number; // @xl\n}\n\nexport class ValidatorConfig {\n type: ValidatorType;\n value?: any;\n message?: string;\n customValidator?: (value: any) => boolean | Promise<boolean>;\n\n constructor(config: {\n type: ValidatorType;\n value?: any;\n message?: string;\n customValidator?: (value: any) => boolean | Promise<boolean>;\n }) {\n this.type = config.type;\n this.value = config.value;\n this.message = config.message;\n this.customValidator = config.customValidator;\n }\n\n // Factory methods for common validators\n static required(message = 'This field is required'): ValidatorConfig {\n return new ValidatorConfig({ type: 'required', message });\n }\n\n static email(message = 'Please enter a valid email'): ValidatorConfig {\n return new ValidatorConfig({ type: 'email', message });\n }\n\n static minLength(length: number, message?: string): ValidatorConfig {\n return new ValidatorConfig({\n type: 'minLength',\n value: length,\n message: message || `Minimum length is ${length} characters`,\n });\n }\n\n static maxLength(length: number, message?: string): ValidatorConfig {\n return new ValidatorConfig({\n type: 'maxLength',\n value: length,\n message: message || `Maximum length is ${length} characters`,\n });\n }\n\n static min(value: number, message?: string): ValidatorConfig {\n return new ValidatorConfig({\n type: 'min',\n value,\n message: message || `Minimum value is ${value}`,\n });\n }\n\n static max(value: number, message?: string): ValidatorConfig {\n return new ValidatorConfig({\n type: 'max',\n value,\n message: message || `Maximum value is ${value}`,\n });\n }\n\n static pattern(pattern: string, message = 'Invalid format'): ValidatorConfig {\n return new ValidatorConfig({ type: 'pattern', value: pattern, message });\n }\n\n static custom(\n validator: (value: any) => boolean | Promise<boolean>,\n message = 'Invalid value',\n ): ValidatorConfig {\n return new ValidatorConfig({\n type: 'custom',\n customValidator: validator,\n message,\n });\n }\n}\n\nexport type BaseFieldConstructorConfig = ConstructorParameters<\n typeof BaseFieldConfig\n>[0];\n\nexport abstract class BaseFieldConfig {\n key: string;\n label: string;\n type: FieldType;\n required: boolean;\n disabled: boolean;\n readonly: boolean;\n hidden: boolean;\n placeholder: string;\n hint: string;\n cssClass: string;\n validators: ValidatorConfig[];\n order: number;\n colSpan: number | ResponsiveColSpan;\n\n defaultValue?: any;\n\n customTemplate: string;\n relations: FieldRelationConfig[];\n\n constructor(config: {\n key?: string;\n label?: string;\n type: FieldType;\n required?: boolean;\n disabled?: boolean;\n readonly?: boolean;\n hidden?: boolean;\n placeholder?: string;\n hint?: string;\n cssClass?: string;\n validators?: ValidatorConfig[];\n order?: number;\n relations?: FieldRelationConfig[];\n colSpan?: number | ResponsiveColSpan;\n }) {\n this.key = config.key || 'Key';\n this.label = config.label || '';\n this.type = config.type;\n this.required = config.required || false;\n this.disabled = config.disabled || false;\n this.readonly = config.readonly || false;\n this.hidden = config.hidden || false;\n this.placeholder = config.placeholder || '';\n this.hint = config.hint || '';\n this.cssClass = config.cssClass || '';\n this.validators = config.validators || [];\n this.order = config.order || 0;\n this.relations = config.relations || [];\n this.colSpan = config.colSpan || 12;\n }\n}\n\n// Specific configurations for different field types\nexport class TextFieldConfig extends BaseFieldConfig {\n inputType: string;\n\n constructor(\n config: Omit<BaseFieldConstructorConfig, 'type'> & {\n inputType?: string;\n },\n ) {\n super({ ...config, type: 'text' });\n this.inputType = config.inputType || 'text';\n }\n}\n\nexport class TextareaFieldConfig extends BaseFieldConfig {\n rows: number;\n autoResize: boolean;\n\n constructor(\n config: Omit<BaseFieldConstructorConfig, 'type'> & {\n rows?: number;\n autoResize?: boolean;\n },\n ) {\n super({ ...config, type: 'textarea' });\n this.rows = config.rows || 3;\n this.autoResize = config.autoResize || false;\n }\n}\n\nexport class SelectFieldConfig extends BaseFieldConfig {\n options: any[];\n optionLabel: string;\n optionValue: string;\n multiple: boolean;\n filter: boolean;\n filterBy: string;\n filterPlaceholder: string;\n showClear: boolean;\n emptyMessage: string;\n\n constructor(\n config: Omit<BaseFieldConstructorConfig, 'type'> & {\n options: any[];\n optionLabel?: string;\n optionValue?: string;\n multiple?: boolean;\n filter?: boolean;\n filterBy?: string;\n filterPlaceholder?: string;\n showClear?: boolean;\n emptyMessage?: string;\n },\n ) {\n super({ ...config, type: 'select' });\n this.options = config.options;\n this.optionLabel = config.optionLabel || 'label';\n this.optionValue = config.optionValue || 'value';\n this.multiple = config.multiple || false;\n this.filter = config.filter || false;\n this.filterBy = config.filterBy || '';\n this.filterPlaceholder = config.filterPlaceholder || 'Search...';\n this.showClear = config.showClear || false;\n this.emptyMessage = config.emptyMessage || 'No options available';\n }\n}\n\nexport class RadioButtonFieldConfig extends BaseFieldConfig {\n options: any[];\n optionLabel: string;\n optionValue: string;\n orientation: 'vertical' | 'horizontal';\n\n constructor(\n config: Omit<BaseFieldConstructorConfig, 'type'> & {\n options: any[];\n optionLabel?: string;\n optionValue?: string;\n orientation?: 'vertical' | 'horizontal';\n },\n ) {\n super({ ...config, type: 'radio-button' });\n this.options = config.options;\n this.optionLabel = config.optionLabel || 'label';\n this.optionValue = config.optionValue || 'value';\n this.orientation = config.orientation || 'vertical';\n }\n}\nexport class RadioCardsFieldConfig extends BaseFieldConfig {\n options: any[];\n optionLabel: string;\n optionValue: string;\n size: string;\n\n constructor(\n config: Omit<BaseFieldConstructorConfig, 'type'> & {\n options: any[];\n optionLabel?: string;\n optionValue?: string;\n size?: string;\n },\n ) {\n super({ ...config, type: 'radio-cards' });\n this.options = config.options;\n this.optionLabel = config.optionLabel || 'label';\n this.optionValue = config.optionValue || 'value';\n this.size = config.size || 'small';\n }\n}\nexport class UserSearchFieldConfig extends BaseFieldConfig {\n optionLabel: string;\n optionValue: string;\n size: string;\n apiUrl: string;\n context: HttpContext | undefined;\n\n constructor(\n config: Omit<BaseFieldConstructorConfig, 'type'> & {\n optionLabel?: string;\n optionValue?: string;\n size?: string;\n hint?: string;\n apiUrl?: string;\n context?: HttpContext | undefined;\n placeholder?: string;\n },\n ) {\n super({ ...config, type: 'user-search' });\n this.optionLabel = config.optionLabel || 'label';\n this.optionValue = config.optionValue || 'value';\n this.size = config.size || '';\n this.hint = config.hint || '';\n this.context = config.context || undefined;\n this.apiUrl = config.apiUrl || '';\n this.placeholder = config.placeholder || 'Search';\n }\n}\n\nexport class UploadFileFieldConfig extends BaseFieldConfig {\n size: string;\n endPoint?: string;\n userImgClass?: string;\n shape?: string;\n accept?: string;\n fileSizeLimit?: number | undefined;\n context: HttpContext | undefined;\n title: string;\n description: string;\n\n constructor(\n config: Omit<BaseFieldConstructorConfig, 'type'> & {\n size?: string;\n endPoint?: string;\n userImgClass?: string;\n shape?: string;\n accept?: string;\n fileSizeLimit?: number | undefined;\n context?: HttpContext | undefined;\n title?: string;\n description?: string;\n },\n ) {\n super({ ...config, type: 'upload-file' });\n this.size = config.size || 'normal';\n this.endPoint = config.endPoint || 'uploader';\n this.userImgClass =\n config.userImgClass || 'w-25! h-25! text-4xl! text-gray-400!';\n this.shape = config.shape || 'field';\n this.accept = config.accept || '.pdf,.doc,.docx,.xlsx,image/*';\n this.fileSizeLimit = config.fileSizeLimit || undefined;\n this.context = config.context || undefined;\n this.title = config.title || 'Upload File';\n this.description = config.description || 'Click or drop a file to upload';\n }\n}\n\nexport class DateFieldConfig extends BaseFieldConfig {\n dateFormat: string;\n showTime: boolean;\n showSeconds: boolean;\n hourFormat: '12' | '24';\n minDate?: Date;\n maxDate?: Date;\n disabledDates: Date[];\n disabledDays: number[];\n yearRange: string;\n showIcon: boolean;\n icon: string;\n showButtonBar: boolean;\n showClear: boolean;\n inline: boolean;\n\n constructor(\n config: Omit<BaseFieldConstructorConfig, 'type'> & {\n dateFormat?: string;\n showTime?: boolean;\n showSeconds?: boolean;\n hourFormat?: '12' | '24';\n minDate?: Date;\n maxDate?: Date;\n disabledDates?: Date[];\n disabledDays?: number[];\n yearRange?: string;\n showIcon?: boolean;\n icon?: string;\n showButtonBar?: boolean;\n showClear?: boolean;\n inline?: boolean;\n },\n ) {\n super({ ...config, type: 'date' });\n this.dateFormat = config.dateFormat || 'yyyy-mm-dd';\n this.showTime = config.showTime || false;\n this.showSeconds = config.showSeconds || false;\n this.hourFormat = config.hourFormat || '24';\n this.minDate = config.minDate;\n this.maxDate = config.maxDate;\n this.disabledDates = config.disabledDates || [];\n this.disabledDays = config.disabledDays || [];\n this.yearRange = config.yearRange || '1900:2030';\n this.showIcon = config.showIcon || true;\n this.icon = config.icon || 'pi pi-calendar';\n this.showButtonBar = config.showButtonBar || false;\n this.showClear = config.showClear || true;\n this.inline = config.inline || false;\n }\n}\n\nexport class NumberFieldConfig extends BaseFieldConfig {\n min?: number;\n max?: number;\n step?: number;\n prefix?: string;\n suffix?: string;\n currency?: string;\n locale?: string;\n minFractionDigits?: number;\n maxFractionDigits?: number;\n useGrouping?: boolean;\n showButtons?: boolean;\n buttonLayout?: 'stacked' | 'horizontal';\n incrementButtonClass?: string;\n decrementButtonClass?: string;\n incrementButtonIcon?: string;\n decrementButtonIcon?: string;\n\n constructor(\n config: Omit<BaseFieldConstructorConfig, 'type'> & {\n min?: number;\n max?: number;\n step?: number;\n prefix?: string;\n suffix?: string;\n currency?: string;\n locale?: string;\n minFractionDigits?: number;\n maxFractionDigits?: number;\n useGrouping?: boolean;\n showButtons?: boolean;\n buttonLayout?: 'stacked' | 'horizontal';\n incrementButtonClass?: string;\n decrementButtonClass?: string;\n incrementButtonIcon?: string;\n decrementButtonIcon?: string;\n },\n ) {\n super({ ...config, type: 'number' });\n this.min = config.min;\n this.max = config.max;\n this.step = config.step || 1;\n this.prefix = config.prefix;\n this.suffix = config.suffix;\n this.currency = config.currency;\n this.locale = config.locale;\n this.minFractionDigits = config.minFractionDigits;\n this.maxFractionDigits = config.maxFractionDigits;\n this.useGrouping = config.useGrouping || false;\n this.showButtons = config.showButtons || false;\n this.buttonLayout = config.buttonLayout || 'stacked';\n this.incrementButtonClass = config.incrementButtonClass;\n this.decrementButtonClass = config.decrementButtonClass;\n this.incrementButtonIcon = config.incrementButtonIcon;\n this.decrementButtonIcon = config.decrementButtonIcon;\n }\n}\n\nexport class SliderFieldConfig extends BaseFieldConfig {\n min?: number;\n max?: number;\n step?: number;\n orientation?: 'horizontal' | 'vertical';\n range?: boolean;\n animate?: boolean;\n\n constructor(\n config: Omit<BaseFieldConstructorConfig, 'type'> & {\n min?: number;\n max?: number;\n step?: number;\n orientation?: 'horizontal' | 'vertical';\n range?: boolean;\n animate?: boolean;\n },\n ) {\n super({ ...config, type: 'slider' });\n this.min = config.min || 0;\n this.max = config.max || 100;\n this.step = config.step || 1;\n this.orientation = config.orientation || 'horizontal';\n this.range = config.range || false;\n this.animate = config.animate || false;\n }\n}\n\nexport class MultiSelectFieldConfig extends BaseFieldConfig {\n options: any[];\n optionLabel: string;\n optionValue: string;\n filter: boolean;\n filterBy: string;\n filterPlaceholder: string;\n showClear: boolean;\n emptyMessage: string;\n display?: 'comma' | 'chip';\n maxSelectedLabels?: number;\n selectedItemsLabel?: string;\n showToggleAll?: boolean;\n resetFilterOnHide?: boolean;\n\n constructor(\n config: Omit<BaseFieldConstructorConfig, 'type'> & {\n options: any[];\n optionLabel?: string;\n optionValue?: string;\n filter?: boolean;\n filterBy?: string;\n filterPlaceholder?: string;\n showClear?: boolean;\n emptyMessage?: string;\n display?: 'comma' | 'chip';\n maxSelectedLabels?: number;\n selectedItemsLabel?: string;\n showToggleAll?: boolean;\n resetFilterOnHide?: boolean;\n },\n ) {\n super({ ...config, type: 'multi-select' });\n this.options = config.options;\n this.optionLabel = config.optionLabel || 'label';\n this.optionValue = config.optionValue || 'value';\n this.filter = config.filter || false;\n this.filterBy = config.filterBy || '';\n this.filterPlaceholder = config.filterPlaceholder || 'Search...';\n this.showClear = config.showClear || false;\n this.emptyMessage = config.emptyMessage || 'No options available';\n this.display = config.display || 'comma';\n this.maxSelectedLabels = config.maxSelectedLabels || 3;\n this.selectedItemsLabel = config.selectedItemsLabel || '{0} items selected';\n this.showToggleAll = config.showToggleAll || true;\n this.resetFilterOnHide = config.resetFilterOnHide || false;\n }\n}\n\nexport class PickListFieldConfig extends BaseFieldConfig {\n options: any[];\n optionLabel: string;\n optionValue: string;\n sourceHeader: string;\n targetHeader: string;\n showSourceControls: boolean;\n showTargetControls: boolean;\n showSourceFilter: boolean;\n showTargetFilter: boolean;\n filterBy: string;\n dataKey?: string;\n dragdrop: boolean;\n responsive: boolean;\n breakpoint: string;\n\n constructor(\n config: Omit<BaseFieldConstructorConfig, 'type'> & {\n options: any[];\n optionLabel?: string;\n optionValue?: string;\n sourceHeader?: string;\n targetHeader?: string;\n showSourceControls?: boolean;\n showTargetControls?: boolean;\n showSourceFilter?: boolean;\n showTargetFilter?: boolean;\n filterBy?: string;\n dataKey?: string;\n dragdrop?: boolean;\n responsive?: boolean;\n },\n ) {\n super({ ...config, type: 'pick-list' });\n this.options = config.options;\n this.optionLabel = config.optionLabel || 'label';\n this.optionValue = config.optionValue || 'value';\n this.sourceHeader = config.sourceHeader || 'Available';\n this.targetHeader = config.targetHeader || 'Selected';\n this.showSourceControls =\n config.showSourceControls !== undefined\n ? config.showSourceControls\n : true;\n this.showTargetControls =\n config.showTargetControls !== undefined\n ? config.showTargetControls\n : true;\n this.showSourceFilter =\n config.showSourceFilter !== undefined ? config.showSourceFilter : false;\n this.showTargetFilter =\n config.showTargetFilter !== undefined ? config.showTargetFilter : false;\n this.filterBy = config.filterBy || this.optionLabel;\n this.dataKey = config.dataKey || this.optionValue;\n this.dragdrop = config.dragdrop ?? false;\n this.responsive = config.responsive ?? true;\n }\n}\n\nexport class CheckboxFieldConfig extends BaseFieldConfig {\n binary?: boolean;\n trueValue?: any;\n falseValue?: any;\n checkboxIcon?: string;\n\n constructor(\n config: Omit<BaseFieldConstructorConfig, 'type'> & {\n binary?: boolean;\n trueValue?: any;\n falseValue?: any;\n checkboxIcon?: string;\n },\n ) {\n super({ ...config, type: 'checkbox' });\n this.binary = config.binary !== false; // Default to true\n this.trueValue = config.trueValue !== undefined ? config.trueValue : true;\n this.falseValue =\n config.falseValue !== undefined ? config.falseValue : false;\n this.checkboxIcon = config.checkboxIcon;\n }\n}\nexport class ToggleFieldConfig extends BaseFieldConfig {\n constructor(config: Omit<BaseFieldConstructorConfig, 'type'>) {\n super({ ...config, type: 'toggle' });\n }\n}\nexport class EditorFieldConfig extends BaseFieldConfig {\n constructor(config: Omit<BaseFieldConstructorConfig, 'type'>) {\n super({ ...config, type: 'editor-field' });\n }\n}\n\nexport class ColorPickerFieldConfig extends BaseFieldConfig {\n format?: 'hex' | 'rgb' | 'hsb';\n inline?: boolean;\n appendTo?: any;\n variant?: 'outlined' | 'filled';\n\n constructor(\n config: Omit<BaseFieldConstructorConfig, 'type'> & {\n format?: 'hex' | 'rgb' | 'hsb';\n inline?: boolean;\n appendTo?: any;\n variant?: 'outlined' | 'filled';\n },\n ) {\n super({ ...config, type: 'color-picker' });\n this.format = config.format || 'hex';\n this.inline = config.inline || false;\n this.appendTo = config.appendTo || 'body';\n this.variant = config.variant || 'outlined';\n }\n}\n\nexport class IconFieldConfig extends BaseFieldConfig {\n constructor(config: Omit<BaseFieldConstructorConfig, 'type'> & {}) {\n super({ ...config, type: 'icon-field' });\n }\n}\n\nexport class SpacerFieldConfig extends BaseFieldConfig {\n constructor(\n config: Omit<BaseFieldConstructorConfig, 'type' | 'key' | 'label'> & {\n key?: string;\n label?: string;\n },\n ) {\n super({\n ...config,\n type: 'spacer',\n key: config.key || `spacer_${Date.now()}`,\n label: config.label || '',\n });\n }\n}\n\n// Union type for all field configurations\nexport type DynamicFieldConfig = {\n [K in keyof (TextFieldConfig &\n TextareaFieldConfig &\n SelectFieldConfig &\n DateFieldConfig &\n NumberFieldConfig &\n SliderFieldConfig &\n MultiSelectFieldConfig &\n PickListFieldConfig &\n CheckboxFieldConfig &\n ColorPickerFieldConfig &\n IconFieldConfig &\n SpacerFieldConfig &\n BaseFieldConfig)]?: (TextFieldConfig &\n TextareaFieldConfig &\n SelectFieldConfig &\n DateFieldConfig &\n NumberFieldConfig &\n SliderFieldConfig &\n MultiSelectFieldConfig &\n PickListFieldConfig &\n CheckboxFieldConfig &\n ColorPickerFieldConfig &\n IconFieldConfig &\n SpacerFieldConfig &\n BaseFieldConfig)[K];\n};\n\n// Layout configuration\nexport interface LayoutConfig {\n containerClass?: string;\n sectionClass?: string;\n fieldClass?: string;\n}\n\n// Simplified form configuration interface\nexport interface DynamicFormConfig {\n sections: SectionConfig[];\n layout?: LayoutConfig;\n}\nexport interface SectionConfig {\n key?: string;\n label?: string;\n type: 'none' | 'header';\n cssClass?: string;\n bodyClass?: string;\n headerClass?: string;\n columns?: number;\n\n order?: number;\n fields: DynamicFieldConfig[];\n}\nexport interface FieldState {\n hidden: boolean;\n disabled: boolean;\n}\n\nexport function createCustomValidator(\n customValidator: (value: any) => boolean | Promise<boolean>,\n message?: string,\n): ValidatorFn {\n return (control: AbstractControl): ValidationErrors | null => {\n const result = customValidator(control.value);\n\n if (result instanceof Promise) {\n // Handle async validation\n result.then((isValid) => {\n if (!isValid) {\n control.setErrors({\n custom: { message: message || 'Invalid value' },\n });\n }\n });\n return null; // For async, return null initially\n } else {\n // Handle sync validation\n return result\n ? null\n : { custom: { message: message || 'Invalid value' } };\n }\n };\n}\n\nexport function wrapValidatorWithMessage(\n validator: ValidatorFn,\n errorKey: string,\n message: string,\n): ValidatorFn {\n return (control: AbstractControl): ValidationErrors | null => {\n const result = validator(control);\n if (result) {\n // Replace the default error with custom message\n return { [errorKey]: { ...result[Object.keys(result)[0]], message } };\n }\n return null;\n };\n}\n// DynamicFieldConfig = input.required<any>({\n// transform: (value: any) => this.transformToDateFieldConfig(value)\n// });\n// transformToDateFieldConfig(value: any){\n// return new TextFieldConfig()\n// }\n","/*\n * Public API Surface of components\n */\n\nexport * from './lib/config/providemt';\nexport * from './lib/config/povide-messages';\nexport * from './lib/utils/theme';\nexport * from './lib/utils/inputs';\nexport * from './lib/config/dynamic-form.model';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAKA;;;;;AAKG;AACH,SAAS,QAAQ,CAAC,GAAW,EAAA;IAC3B,IAAI,CAAC,GAAW,CAAC,EACf,CAAC,GAAW,CAAC,EACb,CAAC,GAAW,CAAC;;AAGf,IAAA,IAAI,GAAG,CAAC,MAAM,KAAK,CAAC,EAAE;AACpB,QAAA,CAAC,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;AACjC,QAAA,CAAC,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;AACjC,QAAA,CAAC,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,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AAO,EAAE,CAAC,QAAQ,GAAG,EAAE,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,EAAE;QACvE;AACA,QAAA,OAAO,IAAI;AACb,IAAA,CAAC;AACH;AACA;AACA;AACA;AACA;AACA;AACA;;AC1wBA;;AAEG;;ACFH;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"masterteam-components.mjs","sources":["../../../../packages/masterteam/components/src/lib/utils/theme.ts","../../../../packages/masterteam/components/src/lib/config/providemt.ts","../../../../packages/masterteam/components/src/lib/config/povide-messages.ts","../../../../packages/masterteam/components/src/lib/config/provide-confirmation.ts","../../../../packages/masterteam/components/src/lib/utils/inputs.ts","../../../../packages/masterteam/components/src/lib/config/dynamic-form.model.ts","../../../../packages/masterteam/components/src/public-api.ts","../../../../packages/masterteam/components/src/masterteam-components.ts"],"sourcesContent":["type HSLTuple = [number, number, number]; // [hue, saturation, lightness]\ntype TailwindColorPalette = {\n [key: string]: string; // e.g., '50': '#f0f9ff', '500': '#0284c7'\n};\n\n/**\n * Converts a hex color string to an HSL tuple.\n * @param hex - The hex color string (e.g., \"#RRGGBB\" or \"#RGB\").\n * @returns An HSL tuple [hue, saturation, lightness] where hue is in degrees (0-360),\n * and saturation/lightness are percentages (0-100).\n */\nfunction hexToHsl(hex: string): HSLTuple {\n let r: number = 0,\n g: number = 0,\n b: number = 0;\n\n // Handle shorthand hex codes\n if (hex.length === 4) {\n r = parseInt(hex[1] + hex[1], 16);\n g = parseInt(hex[2] + hex[2], 16);\n b = parseInt(hex[3] + hex[3], 16);\n } else if (hex.length === 7) {\n r = parseInt(hex.substring(1, 3), 16);\n g = parseInt(hex.substring(3, 5), 16);\n b = parseInt(hex.substring(5, 7), 16);\n } else {\n throw new Error('Invalid hex color format. Expected #RGB or #RRGGBB.');\n }\n\n r /= 255;\n g /= 255;\n b /= 255;\n\n const max: number = Math.max(r, g, b);\n const min: number = Math.min(r, g, b);\n let h: number = 0,\n s: number;\n const l: number = (max + min) / 2;\n\n if (max === min) {\n h = s = 0; // achromatic\n } else {\n const d: number = max - min;\n s = l > 0.5 ? d / (2 - max - min) : d / (max + min);\n switch (max) {\n case r:\n h = (g - b) / d + (g < b ? 6 : 0);\n break;\n case g:\n h = (b - r) / d + 2;\n break;\n case b:\n h = (r - g) / d + 4;\n break;\n }\n h /= 6;\n }\n\n return [h * 360, s * 100, l * 100]; // HSL in degrees, percentage, percentage\n}\n\n/**\n * Converts HSL values to a hex color string.\n * @param h - Hue (0-360).\n * @param s - Saturation (0-100).\n * @param l - Lightness (0-100).\n * @returns The hex color string (e.g., \"#RRGGBB\").\n */\nfunction hslToHex(h: number, s: number, l: number): string {\n l /= 100;\n const a: number = (s * Math.min(l, 1 - l)) / 100;\n const f = (n: number): string => {\n const k: number = (n + h / 30) % 12;\n const color: number = l - a * Math.max(Math.min(k - 3, 9 - k, 1), -1);\n return Math.round(255 * color)\n .toString(16)\n .padStart(2, '0');\n };\n return `#${f(0)}${f(8)}${f(4)}`;\n}\n\n/**\n * Generates a Tailwind-like color palette (50-950) from a primary color (assumed to be 500).\n *\n * @param primaryColor500 - The hex string of the primary color (e.g., \"#0284c7\").\n * @returns An object representing the color palette, where keys are color numbers (e.g., \"50\", \"100\")\n * and values are hex color strings.\n */\n// export function generateTailwindPalette(\n// primaryColor500: string,\n// ): TailwindColorPalette {\n// const [h, s, _l]: HSLTuple = hexToHsl(primaryColor500);\n//\n// const palette: TailwindColorPalette = {\n// '500': primaryColor500,\n// };\n//\n// // Define steps for lighter shades (50 - 400)\n// const lightnessStepsLighter: { [key: string]: number } = {\n// '50': 95,\n// '100': 90,\n// '200': 80,\n// '300': 70,\n// '400': 60,\n// };\n//\n// const saturationReductionsLighter: { [key: string]: number } = {\n// '50': 40, // More desaturated\n// '100': 30,\n// '200': 20,\n// '300': 10,\n// '400': 5, // Slightly desaturated\n// };\n//\n// for (const shade in lightnessStepsLighter) {\n// if (Object.prototype.hasOwnProperty.call(lightnessStepsLighter, shade)) {\n// const newL: number = lightnessStepsLighter[shade];\n// // Ensure saturation doesn't go below 0\n// const newS: number = Math.max(0, s - saturationReductionsLighter[shade]);\n// palette[shade] = hslToHex(h, newS, newL);\n// }\n// }\n//\n// // Define steps for darker shades (600 - 950)\n// const lightnessStepsDarker: { [key: string]: number } = {\n// '600': 45,\n// '700': 35,\n// '800': 25,\n// '900': 15,\n// '950': 8, // More aggressive darkening for 950\n// };\n//\n// const saturationIncreasesDarker: { [key: string]: number } = {\n// '600': 5,\n// '700': 10,\n// '800': 15,\n// '900': 20,\n// '950': 25, // Can increase saturation for darker shades\n// };\n//\n// for (const shade in lightnessStepsDarker) {\n// if (Object.prototype.hasOwnProperty.call(lightnessStepsDarker, shade)) {\n// const newL: number = lightnessStepsDarker[shade];\n// // Ensure saturation doesn't exceed 100\n// const newS: number = Math.min(100, s + saturationIncreasesDarker[shade]);\n// palette[shade] = hslToHex(h, newS, newL);\n// }\n// }\n//\n// // Sort the keys numerically to ensure consistent order\n// const sortedPalette: TailwindColorPalette = {};\n// Object.keys(palette)\n// .sort((a, b) => parseInt(a) - parseInt(b))\n// .forEach((key: string) => {\n// sortedPalette[key] = palette[key];\n// });\n//\n// return sortedPalette;\n// }\n\n// Define the specific shade keys\nexport type PaletteShade =\n | '0'\n | '50'\n | '100'\n | '200'\n | '300'\n | '400'\n | '500'\n | '600'\n | '700'\n | '800'\n | '900'\n | '950';\n\n// A helper type for our new palette profile\ntype ShadeProfile = {\n /** Target lightness (0-100) */\n l: number;\n /** Saturation adjustment relative to the 500 shade */\n s_adjust: number;\n};\n\n/**\n * Defines the \"ideal\" lightness and saturation adjustment for each shade.\n * Lightness for 500 is set to 50 as a balanced default.\n */\nconst PALETTE_PROFILE: Record<PaletteShade, ShadeProfile> = {\n '0': { l: 98, s_adjust: -50 },\n '50': { l: 95, s_adjust: -40 },\n '100': { l: 90, s_adjust: -30 },\n '200': { l: 80, s_adjust: -20 },\n '300': { l: 70, s_adjust: -10 },\n '400': { l: 60, s_adjust: -5 },\n '500': { l: 50, s_adjust: 0 },\n '600': { l: 45, s_adjust: 5 },\n '700': { l: 35, s_adjust: 10 },\n '800': { l: 25, s_adjust: 15 },\n '900': { l: 15, s_adjust: 20 },\n '950': { l: 8, s_adjust: 25 },\n};\n\n// Helper to ensure palette is always in the correct 50-950 order\nconst ALL_SHADES: PaletteShade[] = [\n '0',\n '50',\n '100',\n '200',\n '300',\n '400',\n '500',\n '600',\n '700',\n '800',\n '900',\n '950',\n];\n\n/**\n * Clamps a number between a min and max value.\n */\nfunction clamp(value: number, min: number, max: number): number {\n return Math.max(min, Math.min(max, value));\n}\n\n/**\n * Generates a Tailwind-like color palette (50-950) from any given base color.\n *\n * @param baseColorHex - The hex string of the base color (e.g., \"#0284c7\").\n * @param baseColorShade - The shade of the base color (e.g., \"500\", \"700\").\n * @returns An object representing the full color palette.\n */\nexport function generateTailwindPalette(\n baseColorHex: string,\n baseColorShade: PaletteShade = '500',\n): TailwindColorPalette {\n // 1. Get HSL of the input color\n const [h_base, s_base, l_base]: HSLTuple = hexToHsl(baseColorHex);\n\n // 2. Find the anchors\n const baseProfile = PALETTE_PROFILE[baseColorShade];\n\n /** The Hue is constant across the entire palette. */\n const h = h_base;\n\n /**\n * Calculate the 500-shade's saturation by \"reversing\" the adjustment\n * from the base color.\n * e.g., if base is 700 (s_adjust: +10) and s_base is 80,\n * s_500 will be 70.\n */\n const s_500 = clamp(s_base - baseProfile.s_adjust, 0, 100);\n\n /**\n * Calculate the lightness \"offset\". This is the difference between\n * the base color's actual lightness and its \"ideal\" lightness\n * from the profile.\n * e.g., if base is 700 (ideal L: 35) and l_base is 38,\n * the offset is +3. This offset will be applied to all shades.\n */\n const l_offset = l_base - baseProfile.l;\n\n // 3. Generate the full palette\n const palette: Partial<TailwindColorPalette> = {};\n\n for (const shade of ALL_SHADES) {\n const profile = PALETTE_PROFILE[shade];\n\n // Calculate the new saturation and lightness for this shade\n const newS = clamp(s_500 + profile.s_adjust, 0, 100);\n const newL = clamp(profile.l + l_offset, 0, 100);\n\n palette[shade] = hslToHex(h, newS, newL);\n }\n\n // 4. Ensure the originally provided color is used exactly\n // (to avoid rounding errors from HSL conversion)\n palette[baseColorShade] = baseColorHex;\n\n return palette as TailwindColorPalette;\n}\n","import { providePrimeNG } from 'primeng/config';\nimport { generateTailwindPalette } from '../utils/theme';\nimport Aura from '@primeuix/themes/aura';\nimport { definePreset, updatePreset } from '@primeuix/themes';\nimport { ToastTokenSections } from '@primeuix/themes/types/toast';\nimport { EnvironmentProviders } from '@angular/core';\nimport { Preset } from '@primeuix/themes/types';\nimport { AuraBaseDesignTokens } from '@primeuix/themes/aura/base';\n\nexport interface MTThemeOptions {\n primaryColor?: string;\n textColor?: string;\n backgroundColor?: string;\n}\n\nconst toastStyle: ToastTokenSections.Success = {\n // borderColor: '{surface.300}',\n background: '{content.background}',\n // color: '{surface.600}',\n // closeButton: {\n // hoverBackground: '{surface.100}',\n // focusRing: {\n // color: '{surface.600}',\n // },\n // },\n};\n\nexport function changePrimaryColor(color: string): void {\n updatePreset({\n semantic: {\n primary: generateTailwindPalette(color || '#334dff'),\n },\n });\n}\n\nexport function changeBackgroundColor(color?: string): void {\n if (color) {\n const palette = generateTailwindPalette(color, '100');\n console.log('the background palette', palette);\n document.documentElement.style.setProperty(\n '--app-background-light',\n palette['100'],\n );\n document.documentElement.style.setProperty(\n '--app-background-dark',\n palette['950'],\n );\n }\n}\n\nexport function changeTextColor(color: string): void {\n const palette = generateTailwindPalette(color ?? '#334155', '700');\n updatePreset({\n semantic: {\n colorScheme: {\n light: {\n text: {\n color: palette['700'],\n hoverColor: palette['800'],\n hoverMutedColor: palette['600'],\n mutedColor: palette['500'],\n },\n },\n dark: {\n text: {\n color: palette['0'],\n hoverColor: palette['0'],\n hoverMutedColor: palette['300'],\n mutedColor: palette['400'],\n },\n },\n },\n },\n });\n}\n\nconst MTPreset = (themeOptions?: MTThemeOptions) => {\n const textPalette = generateTailwindPalette(\n themeOptions?.textColor ?? '#334155',\n '700',\n );\n const configs: Preset<AuraBaseDesignTokens> = {\n options: {\n prefix: 'mt',\n cssLayer: {\n name: 'primeng',\n order: 'theme, base, primeng',\n },\n },\n semantic: {\n colorScheme: {\n light: {\n text: {\n color: textPalette['700'],\n hoverColor: textPalette['800'],\n hoverMutedColor: textPalette['600'],\n mutedColor: textPalette['500'],\n },\n },\n dark: {\n text: {\n color: textPalette['0'],\n hoverColor: textPalette['0'],\n hoverMutedColor: textPalette['300'],\n mutedColor: textPalette['400'],\n },\n },\n },\n primary: generateTailwindPalette(themeOptions?.primaryColor || '#334dff'),\n content: {\n borderRadius: '{border.radius.lg}',\n },\n formField: {\n borderRadius: '{border.radius.lg}',\n },\n },\n components: {\n dialog: {\n header: {\n padding: '0',\n },\n content: {\n padding: '0',\n },\n footer: {\n padding: '0',\n },\n },\n toast: {\n root: {\n borderRadius: '{border.radius.xl}',\n },\n colorScheme: {\n light: {\n success: toastStyle,\n info: toastStyle,\n warn: toastStyle,\n error: toastStyle,\n secondary: toastStyle,\n },\n dark: {\n success: toastStyle,\n info: toastStyle,\n warn: toastStyle,\n error: toastStyle,\n secondary: toastStyle,\n },\n },\n },\n togglebutton: {\n root: {\n padding: '1px',\n },\n colorScheme: {\n light: {\n root: {\n checkedColor: '{primary.500}',\n },\n },\n dark: {\n root: {\n checkedColor: '{primary.400}',\n },\n },\n },\n },\n selectbutton: {\n root: {\n borderRadius: '{border.radius.lg}',\n },\n },\n\n paginator: {\n root: {\n borderRadius: '{border.radius.lg}',\n padding: '0 .5rem',\n },\n navButton: {\n borderRadius: '0',\n },\n\n colorScheme: {\n light: {\n navButton: {\n color: '{surface.600}',\n hoverBackground: '#fff',\n selectedBackground: '{surface.200}',\n selectedColor: '{surface.600}',\n focusRing: {\n color: '{surface.200}',\n },\n },\n },\n dark: {\n navButton: {\n color: '{surface.200}',\n hoverBackground: 'transparent',\n selectedBackground: 'transparent',\n selectedColor: '#fff',\n focusRing: {\n color: '#fff',\n },\n },\n },\n },\n\n css: () => `\n .p-paginator {\n --p-paginator-gap: 0;\n --p-paginator-nav-button-width: 2.2rem;\n --p-paginator-nav-button-height: 2.2rem;\n width: fit-content;\n border: 1px solid var(--p-surface-200);\n overflow: hidden;\n font-size: .95rem;\n }\n\n .p-paginator-pages button,\n .p-paginator-prev,\n .p-paginator-next {\n border-color: var(--p-surface-200);\n }\n\n .p-paginator-pages button {\n border-style: solid;\n border-width: 0 0 0 1px;\n }\n\n .p-paginator-pages button:first-child {\n border-left: none;\n }\n\n .p-paginator-prev {\n border-right: 1px solid var(--p-surface-200);\n }\n\n .p-paginator-next {\n border-left: 1px solid var(--p-surface-200);\n }\n\n .p-paginator .p-select {\n border: 0;\n background: transparent;\n }\n\n .p-paginator .p-select .p-select-label {\n padding: 0;\n }\n\n /* Dark Mode Styles */\n .dark .p-paginator {\n border-color: var(--p-surface-500);\n }\n\n .dark .p-paginator-pages button,\n .dark .p-paginator-prev,\n .dark .p-paginator-next {\n border-color: var(--p-surface-500);\n }\n\n .dark .p-paginator-prev {\n border-right-color: var(--p-surface-500);\n }\n\n .dark .p-paginator-next {\n border-left-color: var(--p-surface-500);\n }\n `,\n },\n\n toggleswitch: {\n root: {\n width: '2.5rem',\n height: '1.4rem',\n },\n },\n\n // steps: {\n // item: {\n // link: {\n // gap: 'calc(50% + 0.25rem)',\n // },\n // number: {\n // font: {\n // size: '0.9rem',\n // },\n // active: {\n // color: 'white',\n // background: '{primary.500}',\n // border: {\n // color: '{primary.500}',\n // },\n // },\n // },\n // },\n // },\n },\n };\n\n return definePreset(Aura, configs);\n};\n\nexport function provideMTComponents(\n themeOptions?: MTThemeOptions,\n): EnvironmentProviders {\n changeBackgroundColor(themeOptions?.backgroundColor);\n return providePrimeNG({\n zIndex: {\n modal: 1900,\n overlay: 1500,\n menu: 1500,\n tooltip: 1600,\n },\n theme: {\n preset: MTPreset(themeOptions),\n options: {\n darkModeSelector: '.dark',\n },\n },\n });\n}\n","import { MessageService } from 'primeng/api';\n\nexport function provideMTMessages() {\n return MessageService;\n}\n","import { ConfirmationService } from 'primeng/api';\n\nexport function provideMTConfirmation() {\n return ConfirmationService;\n}\n","import { AbstractControl } from '@angular/forms';\n\nexport function isInvalid(control: AbstractControl | null) {\n if (!control) return false;\n return control && control?.invalid && control?.touched;\n}\n","import { HttpContext } from '@angular/common/http';\nimport { AbstractControl, ValidationErrors, ValidatorFn } from '@angular/forms';\n\nexport type FieldType =\n | 'text'\n | 'textarea'\n | 'select'\n | 'date'\n | 'number'\n | 'slider'\n | 'multi-select'\n | 'pick-list'\n | 'checkbox'\n | 'icon-field'\n | 'color-picker'\n | 'spacer'\n | string;\n\nexport type ValidatorType =\n | 'required'\n | 'email'\n | 'minLength'\n | 'maxLength'\n | 'min'\n | 'max'\n | 'pattern'\n | 'custom';\n\nexport type FieldRelationAction = 'enable' | 'disable' | 'show' | 'hide';\n\nexport interface FieldRelationConfig {\n key: string;\n value: any;\n action: FieldRelationAction;\n}\n\nexport interface ResponsiveColSpan {\n // Container\n xs?: number; // @xs\n sm?: number; // @sm\n md?: number; // @md\n lg?: number; // @lg\n xl?: number; // @xl\n}\n\nexport class ValidatorConfig {\n type: ValidatorType;\n value?: any;\n message?: string;\n customValidator?: (value: any) => boolean | Promise<boolean>;\n\n constructor(config: {\n type: ValidatorType;\n value?: any;\n message?: string;\n customValidator?: (value: any) => boolean | Promise<boolean>;\n }) {\n this.type = config.type;\n this.value = config.value;\n this.message = config.message;\n this.customValidator = config.customValidator;\n }\n\n // Factory methods for common validators\n static required(message = 'This field is required'): ValidatorConfig {\n return new ValidatorConfig({ type: 'required', message });\n }\n\n static email(message = 'Please enter a valid email'): ValidatorConfig {\n return new ValidatorConfig({ type: 'email', message });\n }\n\n static minLength(length: number, message?: string): ValidatorConfig {\n return new ValidatorConfig({\n type: 'minLength',\n value: length,\n message: message || `Minimum length is ${length} characters`,\n });\n }\n\n static maxLength(length: number, message?: string): ValidatorConfig {\n return new ValidatorConfig({\n type: 'maxLength',\n value: length,\n message: message || `Maximum length is ${length} characters`,\n });\n }\n\n static min(value: number, message?: string): ValidatorConfig {\n return new ValidatorConfig({\n type: 'min',\n value,\n message: message || `Minimum value is ${value}`,\n });\n }\n\n static max(value: number, message?: string): ValidatorConfig {\n return new ValidatorConfig({\n type: 'max',\n value,\n message: message || `Maximum value is ${value}`,\n });\n }\n\n static pattern(pattern: string, message = 'Invalid format'): ValidatorConfig {\n return new ValidatorConfig({ type: 'pattern', value: pattern, message });\n }\n\n static custom(\n validator: (value: any) => boolean | Promise<boolean>,\n message = 'Invalid value',\n ): ValidatorConfig {\n return new ValidatorConfig({\n type: 'custom',\n customValidator: validator,\n message,\n });\n }\n}\n\nexport type BaseFieldConstructorConfig = ConstructorParameters<\n typeof BaseFieldConfig\n>[0];\n\nexport abstract class BaseFieldConfig {\n key: string;\n label: string;\n type: FieldType;\n required: boolean;\n disabled: boolean;\n readonly: boolean;\n hidden: boolean;\n placeholder: string;\n hint: string;\n cssClass: string;\n validators: ValidatorConfig[];\n order: number;\n colSpan: number | ResponsiveColSpan;\n\n defaultValue?: any;\n\n customTemplate: string;\n relations: FieldRelationConfig[];\n\n constructor(config: {\n key?: string;\n label?: string;\n type: FieldType;\n required?: boolean;\n disabled?: boolean;\n readonly?: boolean;\n hidden?: boolean;\n placeholder?: string;\n hint?: string;\n cssClass?: string;\n validators?: ValidatorConfig[];\n order?: number;\n relations?: FieldRelationConfig[];\n colSpan?: number | ResponsiveColSpan;\n }) {\n this.key = config.key || 'Key';\n this.label = config.label || '';\n this.type = config.type;\n this.required = config.required || false;\n this.disabled = config.disabled || false;\n this.readonly = config.readonly || false;\n this.hidden = config.hidden || false;\n this.placeholder = config.placeholder || '';\n this.hint = config.hint || '';\n this.cssClass = config.cssClass || '';\n this.validators = config.validators || [];\n this.order = config.order || 0;\n this.relations = config.relations || [];\n this.colSpan = config.colSpan || 12;\n }\n}\n\n// Specific configurations for different field types\nexport class TextFieldConfig extends BaseFieldConfig {\n inputType: string;\n\n constructor(\n config: Omit<BaseFieldConstructorConfig, 'type'> & {\n inputType?: string;\n },\n ) {\n super({ ...config, type: 'text' });\n this.inputType = config.inputType || 'text';\n }\n}\n\nexport class TextareaFieldConfig extends BaseFieldConfig {\n rows: number;\n autoResize: boolean;\n\n constructor(\n config: Omit<BaseFieldConstructorConfig, 'type'> & {\n rows?: number;\n autoResize?: boolean;\n },\n ) {\n super({ ...config, type: 'textarea' });\n this.rows = config.rows || 3;\n this.autoResize = config.autoResize || false;\n }\n}\n\nexport class SelectFieldConfig extends BaseFieldConfig {\n options: any[];\n optionLabel: string;\n optionValue: string;\n multiple: boolean;\n filter: boolean;\n filterBy: string;\n filterPlaceholder: string;\n showClear: boolean;\n emptyMessage: string;\n\n constructor(\n config: Omit<BaseFieldConstructorConfig, 'type'> & {\n options: any[];\n optionLabel?: string;\n optionValue?: string;\n multiple?: boolean;\n filter?: boolean;\n filterBy?: string;\n filterPlaceholder?: string;\n showClear?: boolean;\n emptyMessage?: string;\n },\n ) {\n super({ ...config, type: 'select' });\n this.options = config.options;\n this.optionLabel = config.optionLabel || 'label';\n this.optionValue = config.optionValue || 'value';\n this.multiple = config.multiple || false;\n this.filter = config.filter || false;\n this.filterBy = config.filterBy || '';\n this.filterPlaceholder = config.filterPlaceholder || 'Search...';\n this.showClear = config.showClear || false;\n this.emptyMessage = config.emptyMessage || 'No options available';\n }\n}\n\nexport class RadioButtonFieldConfig extends BaseFieldConfig {\n options: any[];\n optionLabel: string;\n optionValue: string;\n orientation: 'vertical' | 'horizontal';\n\n constructor(\n config: Omit<BaseFieldConstructorConfig, 'type'> & {\n options: any[];\n optionLabel?: string;\n optionValue?: string;\n orientation?: 'vertical' | 'horizontal';\n },\n ) {\n super({ ...config, type: 'radio-button' });\n this.options = config.options;\n this.optionLabel = config.optionLabel || 'label';\n this.optionValue = config.optionValue || 'value';\n this.orientation = config.orientation || 'vertical';\n }\n}\nexport class RadioCardsFieldConfig extends BaseFieldConfig {\n options: any[];\n optionLabel: string;\n optionValue: string;\n size: string;\n\n constructor(\n config: Omit<BaseFieldConstructorConfig, 'type'> & {\n options: any[];\n optionLabel?: string;\n optionValue?: string;\n size?: string;\n },\n ) {\n super({ ...config, type: 'radio-cards' });\n this.options = config.options;\n this.optionLabel = config.optionLabel || 'label';\n this.optionValue = config.optionValue || 'value';\n this.size = config.size || 'small';\n }\n}\nexport class UserSearchFieldConfig extends BaseFieldConfig {\n optionLabel: string;\n optionValue: string;\n size: string;\n apiUrl: string;\n context: HttpContext | undefined;\n\n constructor(\n config: Omit<BaseFieldConstructorConfig, 'type'> & {\n optionLabel?: string;\n optionValue?: string;\n size?: string;\n hint?: string;\n apiUrl?: string;\n context?: HttpContext | undefined;\n placeholder?: string;\n },\n ) {\n super({ ...config, type: 'user-search' });\n this.optionLabel = config.optionLabel || 'label';\n this.optionValue = config.optionValue || 'value';\n this.size = config.size || '';\n this.hint = config.hint || '';\n this.context = config.context || undefined;\n this.apiUrl = config.apiUrl || '';\n this.placeholder = config.placeholder || 'Search';\n }\n}\n\nexport class UploadFileFieldConfig extends BaseFieldConfig {\n size: string;\n endPoint?: string;\n userImgClass?: string;\n shape?: string;\n accept?: string;\n fileSizeLimit?: number | undefined;\n context: HttpContext | undefined;\n title: string;\n description: string;\n\n constructor(\n config: Omit<BaseFieldConstructorConfig, 'type'> & {\n size?: string;\n endPoint?: string;\n userImgClass?: string;\n shape?: string;\n accept?: string;\n fileSizeLimit?: number | undefined;\n context?: HttpContext | undefined;\n title?: string;\n description?: string;\n },\n ) {\n super({ ...config, type: 'upload-file' });\n this.size = config.size || 'normal';\n this.endPoint = config.endPoint || 'uploader';\n this.userImgClass =\n config.userImgClass || 'w-25! h-25! text-4xl! text-gray-400!';\n this.shape = config.shape || 'field';\n this.accept = config.accept || '.pdf,.doc,.docx,.xlsx,image/*';\n this.fileSizeLimit = config.fileSizeLimit || undefined;\n this.context = config.context || undefined;\n this.title = config.title || 'Upload File';\n this.description = config.description || 'Click or drop a file to upload';\n }\n}\n\nexport class DateFieldConfig extends BaseFieldConfig {\n dateFormat: string;\n showTime: boolean;\n showSeconds: boolean;\n hourFormat: '12' | '24';\n minDate?: Date;\n maxDate?: Date;\n disabledDates: Date[];\n disabledDays: number[];\n yearRange: string;\n showIcon: boolean;\n icon: string;\n showButtonBar: boolean;\n showClear: boolean;\n inline: boolean;\n\n constructor(\n config: Omit<BaseFieldConstructorConfig, 'type'> & {\n dateFormat?: string;\n showTime?: boolean;\n showSeconds?: boolean;\n hourFormat?: '12' | '24';\n minDate?: Date;\n maxDate?: Date;\n disabledDates?: Date[];\n disabledDays?: number[];\n yearRange?: string;\n showIcon?: boolean;\n icon?: string;\n showButtonBar?: boolean;\n showClear?: boolean;\n inline?: boolean;\n },\n ) {\n super({ ...config, type: 'date' });\n this.dateFormat = config.dateFormat || 'yyyy-mm-dd';\n this.showTime = config.showTime || false;\n this.showSeconds = config.showSeconds || false;\n this.hourFormat = config.hourFormat || '24';\n this.minDate = config.minDate;\n this.maxDate = config.maxDate;\n this.disabledDates = config.disabledDates || [];\n this.disabledDays = config.disabledDays || [];\n this.yearRange = config.yearRange || '1900:2030';\n this.showIcon = config.showIcon || true;\n this.icon = config.icon || 'pi pi-calendar';\n this.showButtonBar = config.showButtonBar || false;\n this.showClear = config.showClear || true;\n this.inline = config.inline || false;\n }\n}\n\nexport class NumberFieldConfig extends BaseFieldConfig {\n min?: number;\n max?: number;\n step?: number;\n prefix?: string;\n suffix?: string;\n currency?: string;\n locale?: string;\n minFractionDigits?: number;\n maxFractionDigits?: number;\n useGrouping?: boolean;\n showButtons?: boolean;\n buttonLayout?: 'stacked' | 'horizontal';\n incrementButtonClass?: string;\n decrementButtonClass?: string;\n incrementButtonIcon?: string;\n decrementButtonIcon?: string;\n\n constructor(\n config: Omit<BaseFieldConstructorConfig, 'type'> & {\n min?: number;\n max?: number;\n step?: number;\n prefix?: string;\n suffix?: string;\n currency?: string;\n locale?: string;\n minFractionDigits?: number;\n maxFractionDigits?: number;\n useGrouping?: boolean;\n showButtons?: boolean;\n buttonLayout?: 'stacked' | 'horizontal';\n incrementButtonClass?: string;\n decrementButtonClass?: string;\n incrementButtonIcon?: string;\n decrementButtonIcon?: string;\n },\n ) {\n super({ ...config, type: 'number' });\n this.min = config.min;\n this.max = config.max;\n this.step = config.step || 1;\n this.prefix = config.prefix;\n this.suffix = config.suffix;\n this.currency = config.currency;\n this.locale = config.locale;\n this.minFractionDigits = config.minFractionDigits;\n this.maxFractionDigits = config.maxFractionDigits;\n this.useGrouping = config.useGrouping || false;\n this.showButtons = config.showButtons || false;\n this.buttonLayout = config.buttonLayout || 'stacked';\n this.incrementButtonClass = config.incrementButtonClass;\n this.decrementButtonClass = config.decrementButtonClass;\n this.incrementButtonIcon = config.incrementButtonIcon;\n this.decrementButtonIcon = config.decrementButtonIcon;\n }\n}\n\nexport class SliderFieldConfig extends BaseFieldConfig {\n min?: number;\n max?: number;\n step?: number;\n orientation?: 'horizontal' | 'vertical';\n range?: boolean;\n animate?: boolean;\n\n constructor(\n config: Omit<BaseFieldConstructorConfig, 'type'> & {\n min?: number;\n max?: number;\n step?: number;\n orientation?: 'horizontal' | 'vertical';\n range?: boolean;\n animate?: boolean;\n },\n ) {\n super({ ...config, type: 'slider' });\n this.min = config.min || 0;\n this.max = config.max || 100;\n this.step = config.step || 1;\n this.orientation = config.orientation || 'horizontal';\n this.range = config.range || false;\n this.animate = config.animate || false;\n }\n}\n\nexport class MultiSelectFieldConfig extends BaseFieldConfig {\n options: any[];\n optionLabel: string;\n optionValue: string;\n filter: boolean;\n filterBy: string;\n filterPlaceholder: string;\n showClear: boolean;\n emptyMessage: string;\n display?: 'comma' | 'chip';\n maxSelectedLabels?: number;\n selectedItemsLabel?: string;\n showToggleAll?: boolean;\n resetFilterOnHide?: boolean;\n\n constructor(\n config: Omit<BaseFieldConstructorConfig, 'type'> & {\n options: any[];\n optionLabel?: string;\n optionValue?: string;\n filter?: boolean;\n filterBy?: string;\n filterPlaceholder?: string;\n showClear?: boolean;\n emptyMessage?: string;\n display?: 'comma' | 'chip';\n maxSelectedLabels?: number;\n selectedItemsLabel?: string;\n showToggleAll?: boolean;\n resetFilterOnHide?: boolean;\n },\n ) {\n super({ ...config, type: 'multi-select' });\n this.options = config.options;\n this.optionLabel = config.optionLabel || 'label';\n this.optionValue = config.optionValue || 'value';\n this.filter = config.filter || false;\n this.filterBy = config.filterBy || '';\n this.filterPlaceholder = config.filterPlaceholder || 'Search...';\n this.showClear = config.showClear || false;\n this.emptyMessage = config.emptyMessage || 'No options available';\n this.display = config.display || 'comma';\n this.maxSelectedLabels = config.maxSelectedLabels || 3;\n this.selectedItemsLabel = config.selectedItemsLabel || '{0} items selected';\n this.showToggleAll = config.showToggleAll || true;\n this.resetFilterOnHide = config.resetFilterOnHide || false;\n }\n}\n\nexport class PickListFieldConfig extends BaseFieldConfig {\n options: any[];\n optionLabel: string;\n optionValue: string;\n sourceHeader: string;\n targetHeader: string;\n showSourceControls: boolean;\n showTargetControls: boolean;\n showSourceFilter: boolean;\n showTargetFilter: boolean;\n filterBy: string;\n dataKey?: string;\n dragdrop: boolean;\n responsive: boolean;\n breakpoint: string;\n\n constructor(\n config: Omit<BaseFieldConstructorConfig, 'type'> & {\n options: any[];\n optionLabel?: string;\n optionValue?: string;\n sourceHeader?: string;\n targetHeader?: string;\n showSourceControls?: boolean;\n showTargetControls?: boolean;\n showSourceFilter?: boolean;\n showTargetFilter?: boolean;\n filterBy?: string;\n dataKey?: string;\n dragdrop?: boolean;\n responsive?: boolean;\n },\n ) {\n super({ ...config, type: 'pick-list' });\n this.options = config.options;\n this.optionLabel = config.optionLabel || 'label';\n this.optionValue = config.optionValue || 'value';\n this.sourceHeader = config.sourceHeader || 'Available';\n this.targetHeader = config.targetHeader || 'Selected';\n this.showSourceControls =\n config.showSourceControls !== undefined\n ? config.showSourceControls\n : true;\n this.showTargetControls =\n config.showTargetControls !== undefined\n ? config.showTargetControls\n : true;\n this.showSourceFilter =\n config.showSourceFilter !== undefined ? config.showSourceFilter : false;\n this.showTargetFilter =\n config.showTargetFilter !== undefined ? config.showTargetFilter : false;\n this.filterBy = config.filterBy || this.optionLabel;\n this.dataKey = config.dataKey || this.optionValue;\n this.dragdrop = config.dragdrop ?? false;\n this.responsive = config.responsive ?? true;\n }\n}\n\nexport class CheckboxFieldConfig extends BaseFieldConfig {\n binary?: boolean;\n trueValue?: any;\n falseValue?: any;\n checkboxIcon?: string;\n\n constructor(\n config: Omit<BaseFieldConstructorConfig, 'type'> & {\n binary?: boolean;\n trueValue?: any;\n falseValue?: any;\n checkboxIcon?: string;\n },\n ) {\n super({ ...config, type: 'checkbox' });\n this.binary = config.binary !== false; // Default to true\n this.trueValue = config.trueValue !== undefined ? config.trueValue : true;\n this.falseValue =\n config.falseValue !== undefined ? config.falseValue : false;\n this.checkboxIcon = config.checkboxIcon;\n }\n}\nexport class ToggleFieldConfig extends BaseFieldConfig {\n constructor(config: Omit<BaseFieldConstructorConfig, 'type'>) {\n super({ ...config, type: 'toggle' });\n }\n}\nexport class EditorFieldConfig extends BaseFieldConfig {\n constructor(config: Omit<BaseFieldConstructorConfig, 'type'>) {\n super({ ...config, type: 'editor-field' });\n }\n}\n\nexport class ColorPickerFieldConfig extends BaseFieldConfig {\n format?: 'hex' | 'rgb' | 'hsb';\n inline?: boolean;\n appendTo?: any;\n variant?: 'outlined' | 'filled';\n\n constructor(\n config: Omit<BaseFieldConstructorConfig, 'type'> & {\n format?: 'hex' | 'rgb' | 'hsb';\n inline?: boolean;\n appendTo?: any;\n variant?: 'outlined' | 'filled';\n },\n ) {\n super({ ...config, type: 'color-picker' });\n this.format = config.format || 'hex';\n this.inline = config.inline || false;\n this.appendTo = config.appendTo || 'body';\n this.variant = config.variant || 'outlined';\n }\n}\n\nexport class IconFieldConfig extends BaseFieldConfig {\n constructor(config: Omit<BaseFieldConstructorConfig, 'type'> & {}) {\n super({ ...config, type: 'icon-field' });\n }\n}\n\nexport class SpacerFieldConfig extends BaseFieldConfig {\n constructor(\n config: Omit<BaseFieldConstructorConfig, 'type' | 'key' | 'label'> & {\n key?: string;\n label?: string;\n },\n ) {\n super({\n ...config,\n type: 'spacer',\n key: config.key || `spacer_${Date.now()}`,\n label: config.label || '',\n });\n }\n}\n\n// Union type for all field configurations\nexport type DynamicFieldConfig = {\n [K in keyof (TextFieldConfig &\n TextareaFieldConfig &\n SelectFieldConfig &\n DateFieldConfig &\n NumberFieldConfig &\n SliderFieldConfig &\n MultiSelectFieldConfig &\n PickListFieldConfig &\n CheckboxFieldConfig &\n ColorPickerFieldConfig &\n IconFieldConfig &\n SpacerFieldConfig &\n BaseFieldConfig)]?: (TextFieldConfig &\n TextareaFieldConfig &\n SelectFieldConfig &\n DateFieldConfig &\n NumberFieldConfig &\n SliderFieldConfig &\n MultiSelectFieldConfig &\n PickListFieldConfig &\n CheckboxFieldConfig &\n ColorPickerFieldConfig &\n IconFieldConfig &\n SpacerFieldConfig &\n BaseFieldConfig)[K];\n};\n\n// Layout configuration\nexport interface LayoutConfig {\n containerClass?: string;\n sectionClass?: string;\n fieldClass?: string;\n}\n\n// Simplified form configuration interface\nexport interface DynamicFormConfig {\n sections: SectionConfig[];\n layout?: LayoutConfig;\n}\nexport interface SectionConfig {\n key?: string;\n label?: string;\n type: 'none' | 'header';\n cssClass?: string;\n bodyClass?: string;\n headerClass?: string;\n columns?: number;\n\n order?: number;\n fields: DynamicFieldConfig[];\n}\nexport interface FieldState {\n hidden: boolean;\n disabled: boolean;\n}\n\nexport function createCustomValidator(\n customValidator: (value: any) => boolean | Promise<boolean>,\n message?: string,\n): ValidatorFn {\n return (control: AbstractControl): ValidationErrors | null => {\n const result = customValidator(control.value);\n\n if (result instanceof Promise) {\n // Handle async validation\n result.then((isValid) => {\n if (!isValid) {\n control.setErrors({\n custom: { message: message || 'Invalid value' },\n });\n }\n });\n return null; // For async, return null initially\n } else {\n // Handle sync validation\n return result\n ? null\n : { custom: { message: message || 'Invalid value' } };\n }\n };\n}\n\nexport function wrapValidatorWithMessage(\n validator: ValidatorFn,\n errorKey: string,\n message: string,\n): ValidatorFn {\n return (control: AbstractControl): ValidationErrors | null => {\n const result = validator(control);\n if (result) {\n // Replace the default error with custom message\n return { [errorKey]: { ...result[Object.keys(result)[0]], message } };\n }\n return null;\n };\n}\n// DynamicFieldConfig = input.required<any>({\n// transform: (value: any) => this.transformToDateFieldConfig(value)\n// });\n// transformToDateFieldConfig(value: any){\n// return new TextFieldConfig()\n// }\n","/*\n * Public API Surface of components\n */\n\nexport * from './lib/config/providemt';\nexport * from './lib/config/povide-messages';\nexport * from './lib/config/provide-confirmation';\nexport * from './lib/utils/theme';\nexport * from './lib/utils/inputs';\nexport * from './lib/config/dynamic-form.model';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAKA;;;;;AAKG;AACH,SAAS,QAAQ,CAAC,GAAW,EAAA;IAC3B,IAAI,CAAC,GAAW,CAAC,EACf,CAAC,GAAW,CAAC,EACb,CAAC,GAAW,CAAC;;AAGf,IAAA,IAAI,GAAG,CAAC,MAAM,KAAK,CAAC,EAAE;AACpB,QAAA,CAAC,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;AACjC,QAAA,CAAC,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;AACjC,QAAA,CAAC,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IACnC;AAAO,SAAA,IAAI,GAAG,CAAC,MAAM,KAAK,CAAC,EAAE;AAC3B,QAAA,CAAC,GAAG,QAAQ,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC;AACrC,QAAA,CAAC,GAAG,QAAQ,CAAC,GAAG,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b,IAAA,CAAC;AACH;AACA;AACA;AACA;AACA;AACA;AACA;;AC1wBA;;AAEG;;ACFH;;AAEG;;;;"}
|
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EnvironmentProviders } from '@angular/core';
|
|
2
|
-
import { MessageService } from 'primeng/api';
|
|
2
|
+
import { MessageService, ConfirmationService } from 'primeng/api';
|
|
3
3
|
import { AbstractControl, ValidatorFn } from '@angular/forms';
|
|
4
4
|
import { HttpContext } from '@angular/common/http';
|
|
5
5
|
|
|
@@ -15,6 +15,8 @@ declare function provideMTComponents(themeOptions?: MTThemeOptions): Environment
|
|
|
15
15
|
|
|
16
16
|
declare function provideMTMessages(): typeof MessageService;
|
|
17
17
|
|
|
18
|
+
declare function provideMTConfirmation(): typeof ConfirmationService;
|
|
19
|
+
|
|
18
20
|
type TailwindColorPalette = {
|
|
19
21
|
[key: string]: string;
|
|
20
22
|
};
|
|
@@ -419,5 +421,5 @@ interface FieldState {
|
|
|
419
421
|
declare function createCustomValidator(customValidator: (value: any) => boolean | Promise<boolean>, message?: string): ValidatorFn;
|
|
420
422
|
declare function wrapValidatorWithMessage(validator: ValidatorFn, errorKey: string, message: string): ValidatorFn;
|
|
421
423
|
|
|
422
|
-
export { BaseFieldConfig, CheckboxFieldConfig, ColorPickerFieldConfig, DateFieldConfig, EditorFieldConfig, IconFieldConfig, MultiSelectFieldConfig, NumberFieldConfig, PickListFieldConfig, RadioButtonFieldConfig, RadioCardsFieldConfig, SelectFieldConfig, SliderFieldConfig, SpacerFieldConfig, TextFieldConfig, TextareaFieldConfig, ToggleFieldConfig, UploadFileFieldConfig, UserSearchFieldConfig, ValidatorConfig, changeBackgroundColor, changePrimaryColor, changeTextColor, createCustomValidator, generateTailwindPalette, isInvalid, provideMTComponents, provideMTMessages, wrapValidatorWithMessage };
|
|
424
|
+
export { BaseFieldConfig, CheckboxFieldConfig, ColorPickerFieldConfig, DateFieldConfig, EditorFieldConfig, IconFieldConfig, MultiSelectFieldConfig, NumberFieldConfig, PickListFieldConfig, RadioButtonFieldConfig, RadioCardsFieldConfig, SelectFieldConfig, SliderFieldConfig, SpacerFieldConfig, TextFieldConfig, TextareaFieldConfig, ToggleFieldConfig, UploadFileFieldConfig, UserSearchFieldConfig, ValidatorConfig, changeBackgroundColor, changePrimaryColor, changeTextColor, createCustomValidator, generateTailwindPalette, isInvalid, provideMTComponents, provideMTConfirmation, provideMTMessages, wrapValidatorWithMessage };
|
|
423
425
|
export type { BaseFieldConstructorConfig, DynamicFieldConfig, DynamicFormConfig, FieldRelationAction, FieldRelationConfig, FieldState, FieldType, LayoutConfig, MTThemeOptions, PaletteShade, ResponsiveColSpan, SectionConfig, ValidatorType };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@masterteam/components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.51",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"directory": ".",
|
|
6
6
|
"linkDirectory": false,
|
|
@@ -47,34 +47,38 @@
|
|
|
47
47
|
"types": "./breadcrumb/index.d.ts",
|
|
48
48
|
"default": "./fesm2022/masterteam-components-breadcrumb.mjs"
|
|
49
49
|
},
|
|
50
|
-
"./
|
|
51
|
-
"types": "./
|
|
52
|
-
"default": "./fesm2022/masterteam-components-
|
|
53
|
-
},
|
|
54
|
-
"./card": {
|
|
55
|
-
"types": "./card/index.d.ts",
|
|
56
|
-
"default": "./fesm2022/masterteam-components-card.mjs"
|
|
50
|
+
"./avatar-text": {
|
|
51
|
+
"types": "./avatar-text/index.d.ts",
|
|
52
|
+
"default": "./fesm2022/masterteam-components-avatar-text.mjs"
|
|
57
53
|
},
|
|
58
54
|
"./button": {
|
|
59
55
|
"types": "./button/index.d.ts",
|
|
60
56
|
"default": "./fesm2022/masterteam-components-button.mjs"
|
|
61
57
|
},
|
|
62
|
-
"./
|
|
63
|
-
"types": "./
|
|
64
|
-
"default": "./fesm2022/masterteam-components-
|
|
65
|
-
},
|
|
66
|
-
"./checkbox-field": {
|
|
67
|
-
"types": "./checkbox-field/index.d.ts",
|
|
68
|
-
"default": "./fesm2022/masterteam-components-checkbox-field.mjs"
|
|
58
|
+
"./card": {
|
|
59
|
+
"types": "./card/index.d.ts",
|
|
60
|
+
"default": "./fesm2022/masterteam-components-card.mjs"
|
|
69
61
|
},
|
|
70
62
|
"./chip": {
|
|
71
63
|
"types": "./chip/index.d.ts",
|
|
72
64
|
"default": "./fesm2022/masterteam-components-chip.mjs"
|
|
73
65
|
},
|
|
66
|
+
"./button-group": {
|
|
67
|
+
"types": "./button-group/index.d.ts",
|
|
68
|
+
"default": "./fesm2022/masterteam-components-button-group.mjs"
|
|
69
|
+
},
|
|
74
70
|
"./color-picker-field": {
|
|
75
71
|
"types": "./color-picker-field/index.d.ts",
|
|
76
72
|
"default": "./fesm2022/masterteam-components-color-picker-field.mjs"
|
|
77
73
|
},
|
|
74
|
+
"./checkbox-field": {
|
|
75
|
+
"types": "./checkbox-field/index.d.ts",
|
|
76
|
+
"default": "./fesm2022/masterteam-components-checkbox-field.mjs"
|
|
77
|
+
},
|
|
78
|
+
"./confirmation": {
|
|
79
|
+
"types": "./confirmation/index.d.ts",
|
|
80
|
+
"default": "./fesm2022/masterteam-components-confirmation.mjs"
|
|
81
|
+
},
|
|
78
82
|
"./date-field": {
|
|
79
83
|
"types": "./date-field/index.d.ts",
|
|
80
84
|
"default": "./fesm2022/masterteam-components-date-field.mjs"
|
|
@@ -83,10 +87,6 @@
|
|
|
83
87
|
"types": "./dialog/index.d.ts",
|
|
84
88
|
"default": "./fesm2022/masterteam-components-dialog.mjs"
|
|
85
89
|
},
|
|
86
|
-
"./dynamic-drawer": {
|
|
87
|
-
"types": "./dynamic-drawer/index.d.ts",
|
|
88
|
-
"default": "./fesm2022/masterteam-components-dynamic-drawer.mjs"
|
|
89
|
-
},
|
|
90
90
|
"./drawer": {
|
|
91
91
|
"types": "./drawer/index.d.ts",
|
|
92
92
|
"default": "./fesm2022/masterteam-components-drawer.mjs"
|
|
@@ -95,6 +95,10 @@
|
|
|
95
95
|
"types": "./editor-field/index.d.ts",
|
|
96
96
|
"default": "./fesm2022/masterteam-components-editor-field.mjs"
|
|
97
97
|
},
|
|
98
|
+
"./dynamic-drawer": {
|
|
99
|
+
"types": "./dynamic-drawer/index.d.ts",
|
|
100
|
+
"default": "./fesm2022/masterteam-components-dynamic-drawer.mjs"
|
|
101
|
+
},
|
|
98
102
|
"./field-validation": {
|
|
99
103
|
"types": "./field-validation/index.d.ts",
|
|
100
104
|
"default": "./fesm2022/masterteam-components-field-validation.mjs"
|
|
@@ -103,6 +107,10 @@
|
|
|
103
107
|
"types": "./formula-builder/index.d.ts",
|
|
104
108
|
"default": "./fesm2022/masterteam-components-formula-builder.mjs"
|
|
105
109
|
},
|
|
110
|
+
"./menu": {
|
|
111
|
+
"types": "./menu/index.d.ts",
|
|
112
|
+
"default": "./fesm2022/masterteam-components-menu.mjs"
|
|
113
|
+
},
|
|
106
114
|
"./icon-field": {
|
|
107
115
|
"types": "./icon-field/index.d.ts",
|
|
108
116
|
"default": "./fesm2022/masterteam-components-icon-field.mjs"
|
|
@@ -111,26 +119,14 @@
|
|
|
111
119
|
"types": "./list/index.d.ts",
|
|
112
120
|
"default": "./fesm2022/masterteam-components-list.mjs"
|
|
113
121
|
},
|
|
114
|
-
"./menu": {
|
|
115
|
-
"types": "./menu/index.d.ts",
|
|
116
|
-
"default": "./fesm2022/masterteam-components-menu.mjs"
|
|
117
|
-
},
|
|
118
122
|
"./modal": {
|
|
119
123
|
"types": "./modal/index.d.ts",
|
|
120
124
|
"default": "./fesm2022/masterteam-components-modal.mjs"
|
|
121
125
|
},
|
|
122
|
-
"./module-summary-card": {
|
|
123
|
-
"types": "./module-summary-card/index.d.ts",
|
|
124
|
-
"default": "./fesm2022/masterteam-components-module-summary-card.mjs"
|
|
125
|
-
},
|
|
126
126
|
"./multi-select-field": {
|
|
127
127
|
"types": "./multi-select-field/index.d.ts",
|
|
128
128
|
"default": "./fesm2022/masterteam-components-multi-select-field.mjs"
|
|
129
129
|
},
|
|
130
|
-
"./paginator": {
|
|
131
|
-
"types": "./paginator/index.d.ts",
|
|
132
|
-
"default": "./fesm2022/masterteam-components-paginator.mjs"
|
|
133
|
-
},
|
|
134
130
|
"./number-field": {
|
|
135
131
|
"types": "./number-field/index.d.ts",
|
|
136
132
|
"default": "./fesm2022/masterteam-components-number-field.mjs"
|
|
@@ -139,21 +135,29 @@
|
|
|
139
135
|
"types": "./pick-list-field/index.d.ts",
|
|
140
136
|
"default": "./fesm2022/masterteam-components-pick-list-field.mjs"
|
|
141
137
|
},
|
|
142
|
-
"./
|
|
143
|
-
"types": "./
|
|
144
|
-
"default": "./fesm2022/masterteam-components-
|
|
138
|
+
"./radio-button-field": {
|
|
139
|
+
"types": "./radio-button-field/index.d.ts",
|
|
140
|
+
"default": "./fesm2022/masterteam-components-radio-button-field.mjs"
|
|
145
141
|
},
|
|
146
|
-
"./
|
|
147
|
-
"types": "./
|
|
148
|
-
"default": "./fesm2022/masterteam-components-
|
|
142
|
+
"./paginator": {
|
|
143
|
+
"types": "./paginator/index.d.ts",
|
|
144
|
+
"default": "./fesm2022/masterteam-components-paginator.mjs"
|
|
149
145
|
},
|
|
150
146
|
"./radio-cards": {
|
|
151
147
|
"types": "./radio-cards/index.d.ts",
|
|
152
148
|
"default": "./fesm2022/masterteam-components-radio-cards.mjs"
|
|
153
149
|
},
|
|
154
|
-
"./
|
|
155
|
-
"types": "./
|
|
156
|
-
"default": "./fesm2022/masterteam-components-
|
|
150
|
+
"./module-summary-card": {
|
|
151
|
+
"types": "./module-summary-card/index.d.ts",
|
|
152
|
+
"default": "./fesm2022/masterteam-components-module-summary-card.mjs"
|
|
153
|
+
},
|
|
154
|
+
"./radio-cards-field": {
|
|
155
|
+
"types": "./radio-cards-field/index.d.ts",
|
|
156
|
+
"default": "./fesm2022/masterteam-components-radio-cards-field.mjs"
|
|
157
|
+
},
|
|
158
|
+
"./select-field": {
|
|
159
|
+
"types": "./select-field/index.d.ts",
|
|
160
|
+
"default": "./fesm2022/masterteam-components-select-field.mjs"
|
|
157
161
|
},
|
|
158
162
|
"./slider-field": {
|
|
159
163
|
"types": "./slider-field/index.d.ts",
|
|
@@ -163,37 +167,37 @@
|
|
|
163
167
|
"types": "./table/index.d.ts",
|
|
164
168
|
"default": "./fesm2022/masterteam-components-table.mjs"
|
|
165
169
|
},
|
|
166
|
-
"./tabs": {
|
|
167
|
-
"types": "./tabs/index.d.ts",
|
|
168
|
-
"default": "./fesm2022/masterteam-components-tabs.mjs"
|
|
169
|
-
},
|
|
170
170
|
"./text-field": {
|
|
171
171
|
"types": "./text-field/index.d.ts",
|
|
172
172
|
"default": "./fesm2022/masterteam-components-text-field.mjs"
|
|
173
173
|
},
|
|
174
|
-
"./
|
|
175
|
-
"types": "./
|
|
176
|
-
"default": "./fesm2022/masterteam-components-
|
|
174
|
+
"./tabs": {
|
|
175
|
+
"types": "./tabs/index.d.ts",
|
|
176
|
+
"default": "./fesm2022/masterteam-components-tabs.mjs"
|
|
177
177
|
},
|
|
178
178
|
"./textarea-field": {
|
|
179
179
|
"types": "./textarea-field/index.d.ts",
|
|
180
180
|
"default": "./fesm2022/masterteam-components-textarea-field.mjs"
|
|
181
181
|
},
|
|
182
|
-
"./
|
|
183
|
-
"types": "./
|
|
184
|
-
"default": "./fesm2022/masterteam-components-
|
|
182
|
+
"./toast": {
|
|
183
|
+
"types": "./toast/index.d.ts",
|
|
184
|
+
"default": "./fesm2022/masterteam-components-toast.mjs"
|
|
185
185
|
},
|
|
186
186
|
"./tooltip": {
|
|
187
187
|
"types": "./tooltip/index.d.ts",
|
|
188
188
|
"default": "./fesm2022/masterteam-components-tooltip.mjs"
|
|
189
189
|
},
|
|
190
|
-
"./
|
|
191
|
-
"types": "./
|
|
192
|
-
"default": "./fesm2022/masterteam-components-
|
|
190
|
+
"./toggle-field": {
|
|
191
|
+
"types": "./toggle-field/index.d.ts",
|
|
192
|
+
"default": "./fesm2022/masterteam-components-toggle-field.mjs"
|
|
193
193
|
},
|
|
194
194
|
"./upload-field": {
|
|
195
195
|
"types": "./upload-field/index.d.ts",
|
|
196
196
|
"default": "./fesm2022/masterteam-components-upload-field.mjs"
|
|
197
|
+
},
|
|
198
|
+
"./user-search-field": {
|
|
199
|
+
"types": "./user-search-field/index.d.ts",
|
|
200
|
+
"default": "./fesm2022/masterteam-components-user-search-field.mjs"
|
|
197
201
|
}
|
|
198
202
|
},
|
|
199
203
|
"module": "fesm2022/masterteam-components.mjs",
|
package/table/index.d.ts
CHANGED
|
@@ -18,10 +18,24 @@ interface FilterConfig {
|
|
|
18
18
|
label: string;
|
|
19
19
|
options?: FilterOption[];
|
|
20
20
|
}
|
|
21
|
+
/**
|
|
22
|
+
* Column type definition
|
|
23
|
+
*/
|
|
24
|
+
type ColumnType = 'text' | 'boolean' | 'date' | 'custom';
|
|
25
|
+
/**
|
|
26
|
+
* Event emitted when a cell value changes
|
|
27
|
+
*/
|
|
28
|
+
interface CellChangeEvent {
|
|
29
|
+
row: any;
|
|
30
|
+
column: string;
|
|
31
|
+
value: any;
|
|
32
|
+
type: ColumnTypeForActionCell;
|
|
33
|
+
}
|
|
34
|
+
type ColumnTypeForActionCell = 'boolean';
|
|
21
35
|
interface ColumnDef {
|
|
22
36
|
key: string;
|
|
23
37
|
label: string;
|
|
24
|
-
type?:
|
|
38
|
+
type?: ColumnType;
|
|
25
39
|
customCellTpl?: TemplateRef<any>;
|
|
26
40
|
filterConfig?: FilterConfig;
|
|
27
41
|
}
|
|
@@ -37,6 +51,7 @@ interface TableAction {
|
|
|
37
51
|
|
|
38
52
|
declare class Table {
|
|
39
53
|
selectionChange: _angular_core.OutputEmitterRef<any[]>;
|
|
54
|
+
cellChange: _angular_core.OutputEmitterRef<CellChangeEvent>;
|
|
40
55
|
data: _angular_core.InputSignal<any[]>;
|
|
41
56
|
columns: _angular_core.InputSignal<ColumnDef[]>;
|
|
42
57
|
rowActions: _angular_core.InputSignal<TableAction[]>;
|
|
@@ -81,9 +96,10 @@ declare class Table {
|
|
|
81
96
|
tabChanged(tab: any): void;
|
|
82
97
|
onTablePage(event: TablePageEvent): void;
|
|
83
98
|
onSearchChange(searchTerm: Event): void;
|
|
99
|
+
onCellChange(row: any, columnKey: string, newValue: any, type?: ColumnTypeForActionCell): void;
|
|
84
100
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Table, never>;
|
|
85
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Table, "mt-table", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "columns": { "alias": "columns"; "required": true; "isSignal": true; }; "rowActions": { "alias": "rowActions"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "showGridlines": { "alias": "showGridlines"; "required": false; "isSignal": true; }; "stripedRows": { "alias": "stripedRows"; "required": false; "isSignal": true; }; "selectableRows": { "alias": "selectableRows"; "required": false; "isSignal": true; }; "generalSearch": { "alias": "generalSearch"; "required": false; "isSignal": true; }; "showFilters": { "alias": "showFilters"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "tabs": { "alias": "tabs"; "required": false; "isSignal": true; }; "tabsOptionLabel": { "alias": "tabsOptionLabel"; "required": false; "isSignal": true; }; "tabsOptionValue": { "alias": "tabsOptionValue"; "required": false; "isSignal": true; }; "activeTab": { "alias": "activeTab"; "required": false; "isSignal": true; }; "actions": { "alias": "actions"; "required": false; "isSignal": true; }; "paginatorPosition": { "alias": "paginatorPosition"; "required": false; "isSignal": true; }; "pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; "currentPage": { "alias": "currentPage"; "required": false; "isSignal": true; }; "first": { "alias": "first"; "required": false; "isSignal": true; }; "filterTerm": { "alias": "filterTerm"; "required": false; "isSignal": true; }; }, { "selectionChange": "selectionChange"; "activeTab": "activeTabChange"; "onTabChange": "onTabChange"; "pageSize": "pageSizeChange"; "currentPage": "currentPageChange"; "first": "firstChange"; "filterTerm": "filterTermChange"; }, ["captionStartContent", "captionEndContent", "emptyContent"], never, true, never>;
|
|
101
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Table, "mt-table", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "columns": { "alias": "columns"; "required": true; "isSignal": true; }; "rowActions": { "alias": "rowActions"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "showGridlines": { "alias": "showGridlines"; "required": false; "isSignal": true; }; "stripedRows": { "alias": "stripedRows"; "required": false; "isSignal": true; }; "selectableRows": { "alias": "selectableRows"; "required": false; "isSignal": true; }; "generalSearch": { "alias": "generalSearch"; "required": false; "isSignal": true; }; "showFilters": { "alias": "showFilters"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "tabs": { "alias": "tabs"; "required": false; "isSignal": true; }; "tabsOptionLabel": { "alias": "tabsOptionLabel"; "required": false; "isSignal": true; }; "tabsOptionValue": { "alias": "tabsOptionValue"; "required": false; "isSignal": true; }; "activeTab": { "alias": "activeTab"; "required": false; "isSignal": true; }; "actions": { "alias": "actions"; "required": false; "isSignal": true; }; "paginatorPosition": { "alias": "paginatorPosition"; "required": false; "isSignal": true; }; "pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; "currentPage": { "alias": "currentPage"; "required": false; "isSignal": true; }; "first": { "alias": "first"; "required": false; "isSignal": true; }; "filterTerm": { "alias": "filterTerm"; "required": false; "isSignal": true; }; }, { "selectionChange": "selectionChange"; "cellChange": "cellChange"; "activeTab": "activeTabChange"; "onTabChange": "onTabChange"; "pageSize": "pageSizeChange"; "currentPage": "currentPageChange"; "first": "firstChange"; "filterTerm": "filterTermChange"; }, ["captionStartContent", "captionEndContent", "emptyContent"], never, true, never>;
|
|
86
102
|
}
|
|
87
103
|
|
|
88
104
|
export { Table };
|
|
89
|
-
export type { ColumnDef, FilterConfig, FilterOption, TableAction };
|
|
105
|
+
export type { CellChangeEvent, ColumnDef, ColumnType, ColumnTypeForActionCell, FilterConfig, FilterOption, TableAction };
|