dasar-ui 1.1.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -14
- package/fesm2022/dasar-ui.mjs +9664 -0
- package/fesm2022/dasar-ui.mjs.map +1 -0
- package/package.json +39 -42
- package/types/dasar-ui.d.ts +2114 -0
- package/.editorconfig +0 -17
- package/.nvmrc +0 -1
- package/.prettierrc +0 -12
- package/.vscode/extensions.json +0 -4
- package/.vscode/launch.json +0 -20
- package/.vscode/settings.json +0 -4
- package/.vscode/tasks.json +0 -42
- package/CHANGELOG.md +0 -18
- package/angular.json +0 -37
- package/projects/dasar-ui/README.md +0 -64
- package/projects/dasar-ui/ng-package.json +0 -10
- package/projects/dasar-ui/package.json +0 -27
- package/projects/dasar-ui/src/lib/components/dasar-button/dasar-button.html +0 -9
- package/projects/dasar-ui/src/lib/components/dasar-button/dasar-button.scss +0 -352
- package/projects/dasar-ui/src/lib/components/dasar-button/dasar-button.spec.ts +0 -21
- package/projects/dasar-ui/src/lib/components/dasar-button/dasar-button.ts +0 -154
- package/projects/dasar-ui/src/lib/components/dasar-button-group/dasar-button-group.html +0 -1
- package/projects/dasar-ui/src/lib/components/dasar-button-group/dasar-button-group.scss +0 -69
- package/projects/dasar-ui/src/lib/components/dasar-button-group/dasar-button-group.spec.ts +0 -21
- package/projects/dasar-ui/src/lib/components/dasar-button-group/dasar-button-group.ts +0 -30
- package/projects/dasar-ui/src/lib/components/dasar-calendar/dasar-calendar.html +0 -158
- package/projects/dasar-ui/src/lib/components/dasar-calendar/dasar-calendar.scss +0 -371
- package/projects/dasar-ui/src/lib/components/dasar-calendar/dasar-calendar.spec.ts +0 -21
- package/projects/dasar-ui/src/lib/components/dasar-calendar/dasar-calendar.ts +0 -458
- package/projects/dasar-ui/src/lib/components/dasar-card/dasar-card.html +0 -80
- package/projects/dasar-ui/src/lib/components/dasar-card/dasar-card.scss +0 -184
- package/projects/dasar-ui/src/lib/components/dasar-card/dasar-card.spec.ts +0 -21
- package/projects/dasar-ui/src/lib/components/dasar-card/dasar-card.ts +0 -294
- package/projects/dasar-ui/src/lib/components/dasar-chip/dasar-chip.html +0 -42
- package/projects/dasar-ui/src/lib/components/dasar-chip/dasar-chip.scss +0 -38
- package/projects/dasar-ui/src/lib/components/dasar-chip/dasar-chip.ts +0 -207
- package/projects/dasar-ui/src/lib/components/dasar-datepicker/dasar-datepicker.html +0 -102
- package/projects/dasar-ui/src/lib/components/dasar-datepicker/dasar-datepicker.scss +0 -301
- package/projects/dasar-ui/src/lib/components/dasar-datepicker/dasar-datepicker.spec.ts +0 -21
- package/projects/dasar-ui/src/lib/components/dasar-datepicker/dasar-datepicker.ts +0 -527
- package/projects/dasar-ui/src/lib/components/dasar-icon/dasar-icon.html +0 -1
- package/projects/dasar-ui/src/lib/components/dasar-icon/dasar-icon.registry.ts +0 -5089
- package/projects/dasar-ui/src/lib/components/dasar-icon/dasar-icon.scss +0 -24
- package/projects/dasar-ui/src/lib/components/dasar-icon/dasar-icon.spec.ts +0 -21
- package/projects/dasar-ui/src/lib/components/dasar-icon/dasar-icon.ts +0 -97
- package/projects/dasar-ui/src/lib/components/dasar-input/dasar-input.html +0 -54
- package/projects/dasar-ui/src/lib/components/dasar-input/dasar-input.scss +0 -281
- package/projects/dasar-ui/src/lib/components/dasar-input/dasar-input.spec.ts +0 -21
- package/projects/dasar-ui/src/lib/components/dasar-input/dasar-input.ts +0 -323
- package/projects/dasar-ui/src/lib/components/dasar-menu/dasar-menu.html +0 -63
- package/projects/dasar-ui/src/lib/components/dasar-menu/dasar-menu.scss +0 -195
- package/projects/dasar-ui/src/lib/components/dasar-menu/dasar-menu.spec.ts +0 -21
- package/projects/dasar-ui/src/lib/components/dasar-menu/dasar-menu.ts +0 -240
- package/projects/dasar-ui/src/lib/components/dasar-number-input/dasar-number-input.html +0 -90
- package/projects/dasar-ui/src/lib/components/dasar-number-input/dasar-number-input.scss +0 -358
- package/projects/dasar-ui/src/lib/components/dasar-number-input/dasar-number-input.spec.ts +0 -21
- package/projects/dasar-ui/src/lib/components/dasar-number-input/dasar-number-input.ts +0 -337
- package/projects/dasar-ui/src/lib/components/dasar-pagination/dasar-pagination.html +0 -98
- package/projects/dasar-ui/src/lib/components/dasar-pagination/dasar-pagination.scss +0 -51
- package/projects/dasar-ui/src/lib/components/dasar-pagination/dasar-pagination.spec.ts +0 -21
- package/projects/dasar-ui/src/lib/components/dasar-pagination/dasar-pagination.ts +0 -99
- package/projects/dasar-ui/src/lib/components/dasar-pin/dasar-pin.css +0 -0
- package/projects/dasar-ui/src/lib/components/dasar-pin/dasar-pin.html +0 -1
- package/projects/dasar-ui/src/lib/components/dasar-pin/dasar-pin.spec.ts +0 -21
- package/projects/dasar-ui/src/lib/components/dasar-pin/dasar-pin.ts +0 -9
- package/projects/dasar-ui/src/lib/components/dasar-pivot-table/dasar-pivot-table.html +0 -163
- package/projects/dasar-ui/src/lib/components/dasar-pivot-table/dasar-pivot-table.scss +0 -283
- package/projects/dasar-ui/src/lib/components/dasar-pivot-table/dasar-pivot-table.ts +0 -230
- package/projects/dasar-ui/src/lib/components/dasar-radio/dasar-radio.css +0 -0
- package/projects/dasar-ui/src/lib/components/dasar-radio/dasar-radio.html +0 -1
- package/projects/dasar-ui/src/lib/components/dasar-radio/dasar-radio.spec.ts +0 -21
- package/projects/dasar-ui/src/lib/components/dasar-radio/dasar-radio.ts +0 -9
- package/projects/dasar-ui/src/lib/components/dasar-select/dasar-select.html +0 -185
- package/projects/dasar-ui/src/lib/components/dasar-select/dasar-select.scss +0 -347
- package/projects/dasar-ui/src/lib/components/dasar-select/dasar-select.spec.ts +0 -21
- package/projects/dasar-ui/src/lib/components/dasar-select/dasar-select.ts +0 -497
- package/projects/dasar-ui/src/lib/components/dasar-slider/dasar-slider.css +0 -0
- package/projects/dasar-ui/src/lib/components/dasar-slider/dasar-slider.html +0 -1
- package/projects/dasar-ui/src/lib/components/dasar-slider/dasar-slider.spec.ts +0 -21
- package/projects/dasar-ui/src/lib/components/dasar-slider/dasar-slider.ts +0 -9
- package/projects/dasar-ui/src/lib/components/dasar-table/dasar-table.html +0 -162
- package/projects/dasar-ui/src/lib/components/dasar-table/dasar-table.scss +0 -283
- package/projects/dasar-ui/src/lib/components/dasar-table/dasar-table.spec.ts +0 -21
- package/projects/dasar-ui/src/lib/components/dasar-table/dasar-table.ts +0 -380
- package/projects/dasar-ui/src/lib/components/dasar-tabs/dasar-tabs.html +0 -41
- package/projects/dasar-ui/src/lib/components/dasar-tabs/dasar-tabs.scss +0 -126
- package/projects/dasar-ui/src/lib/components/dasar-tabs/dasar-tabs.spec.ts +0 -21
- package/projects/dasar-ui/src/lib/components/dasar-tabs/dasar-tabs.ts +0 -72
- package/projects/dasar-ui/src/lib/components/dasar-textarea/dasar-textarea.html +0 -43
- package/projects/dasar-ui/src/lib/components/dasar-textarea/dasar-textarea.scss +0 -189
- package/projects/dasar-ui/src/lib/components/dasar-textarea/dasar-textarea.spec.ts +0 -21
- package/projects/dasar-ui/src/lib/components/dasar-textarea/dasar-textarea.ts +0 -139
- package/projects/dasar-ui/src/lib/components/dasar-theme-provider/dasar-theme-provider.ts +0 -286
- package/projects/dasar-ui/src/lib/components/dasar-toast/dasar-toast.css +0 -0
- package/projects/dasar-ui/src/lib/components/dasar-toast/dasar-toast.html +0 -1
- package/projects/dasar-ui/src/lib/components/dasar-toast/dasar-toast.spec.ts +0 -21
- package/projects/dasar-ui/src/lib/components/dasar-toast/dasar-toast.ts +0 -9
- package/projects/dasar-ui/src/lib/components/dasar-toggle/dasar-toggle.css +0 -0
- package/projects/dasar-ui/src/lib/components/dasar-toggle/dasar-toggle.html +0 -1
- package/projects/dasar-ui/src/lib/components/dasar-toggle/dasar-toggle.spec.ts +0 -21
- package/projects/dasar-ui/src/lib/components/dasar-toggle/dasar-toggle.ts +0 -9
- package/projects/dasar-ui/src/lib/components/dasar-tooltip/dasar-tooltip.css +0 -0
- package/projects/dasar-ui/src/lib/components/dasar-tooltip/dasar-tooltip.html +0 -1
- package/projects/dasar-ui/src/lib/components/dasar-tooltip/dasar-tooltip.spec.ts +0 -21
- package/projects/dasar-ui/src/lib/components/dasar-tooltip/dasar-tooltip.ts +0 -9
- package/projects/dasar-ui/src/lib/models/theme.model.ts +0 -643
- package/projects/dasar-ui/src/lib/models/type.model.ts +0 -11
- package/projects/dasar-ui/src/lib/services/theme.service.ts +0 -643
- package/projects/dasar-ui/src/lib/styles/theme.ts +0 -70
- package/projects/dasar-ui/src/lib/utils/common.ts +0 -175
- package/projects/dasar-ui/src/public-api.ts +0 -23
- package/projects/dasar-ui/tsconfig.lib.json +0 -21
- package/projects/dasar-ui/tsconfig.lib.prod.json +0 -11
- package/projects/dasar-ui/tsconfig.spec.json +0 -11
- package/tsconfig.json +0 -37
- /package/{projects/dasar-ui/src/lib/styles → styles}/theme.scss +0 -0
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
export const dasarVariables = {
|
|
2
|
-
font: {
|
|
3
|
-
sans: "-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif",
|
|
4
|
-
hero: "'Space Grotesk', sans-serif",
|
|
5
|
-
},
|
|
6
|
-
fontWeight: {
|
|
7
|
-
thin: '300',
|
|
8
|
-
regular: '400',
|
|
9
|
-
medium: '500',
|
|
10
|
-
semibold: '600',
|
|
11
|
-
bold: '700',
|
|
12
|
-
},
|
|
13
|
-
fontSize: {
|
|
14
|
-
xss: '0.5rem',
|
|
15
|
-
xs: '0.625rem',
|
|
16
|
-
sm: '0.75rem',
|
|
17
|
-
base: '0.875rem',
|
|
18
|
-
lg: '1rem',
|
|
19
|
-
xl: '1.125rem',
|
|
20
|
-
},
|
|
21
|
-
lineHeight: {
|
|
22
|
-
normal: '1.5',
|
|
23
|
-
tight: '1.25',
|
|
24
|
-
},
|
|
25
|
-
colors: {
|
|
26
|
-
primary: {
|
|
27
|
-
900: '#071727',
|
|
28
|
-
800: '#0d253f',
|
|
29
|
-
700: '#12345a',
|
|
30
|
-
base: '#1b4d8e',
|
|
31
|
-
500: '#2563eb',
|
|
32
|
-
300: '#60a5fa',
|
|
33
|
-
200: '#a2cafa',
|
|
34
|
-
100: '#bfdbfe',
|
|
35
|
-
50: '#eff6ff',
|
|
36
|
-
},
|
|
37
|
-
neutral: {
|
|
38
|
-
900: '#111827',
|
|
39
|
-
800: '#1f2937',
|
|
40
|
-
700: '#374151',
|
|
41
|
-
base: '#4b5563',
|
|
42
|
-
500: '#6b7280',
|
|
43
|
-
400: '#9ca3af',
|
|
44
|
-
300: '#d1d5db',
|
|
45
|
-
200: '#eaecf0',
|
|
46
|
-
100: '#f3f4f6',
|
|
47
|
-
50: '#ffffff',
|
|
48
|
-
},
|
|
49
|
-
success: { base: '#059669', 50: '#ecfdf5' },
|
|
50
|
-
danger: { base: '#dc2626', 50: '#fef2f2' },
|
|
51
|
-
warning: { base: '#d97706', 50: '#fffbeb' },
|
|
52
|
-
},
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
export const dasarVariablesTypography = {
|
|
56
|
-
fontSans: dasarVariables.font.sans,
|
|
57
|
-
fontHero: dasarVariables.font.hero,
|
|
58
|
-
fontWeightRegular: dasarVariables.fontWeight.regular,
|
|
59
|
-
fontWeightMedium: dasarVariables.fontWeight.medium,
|
|
60
|
-
fontWeightSemibold: dasarVariables.fontWeight.semibold,
|
|
61
|
-
fontWeightBold: dasarVariables.fontWeight.bold,
|
|
62
|
-
fontSizeXss: dasarVariables.fontSize.xss,
|
|
63
|
-
fontSizeXs: dasarVariables.fontSize.xs,
|
|
64
|
-
fontSizeSm: dasarVariables.fontSize.sm,
|
|
65
|
-
fontSizeBase: dasarVariables.fontSize.base,
|
|
66
|
-
fontSizeLg: dasarVariables.fontSize.lg,
|
|
67
|
-
fontSizeXl: dasarVariables.fontSize.xl,
|
|
68
|
-
lineHeightNormal: dasarVariables.lineHeight.normal,
|
|
69
|
-
lineHeightTight: dasarVariables.lineHeight.tight,
|
|
70
|
-
};
|
|
@@ -1,175 +0,0 @@
|
|
|
1
|
-
import { DasarThemeProviderComponent } from '../components/dasar-theme-provider/dasar-theme-provider';
|
|
2
|
-
import { DasarThemeService } from '../services/theme.service';
|
|
3
|
-
import { DasarComponentCommonConfig, DasarComponentConfig } from '../models/theme.model';
|
|
4
|
-
import { ClassType } from '../models/type.model';
|
|
5
|
-
|
|
6
|
-
export function parseClassesToArray(classes: ClassType): string[] {
|
|
7
|
-
if (!classes) {
|
|
8
|
-
return [];
|
|
9
|
-
}
|
|
10
|
-
// Handle String ("class1 class2")
|
|
11
|
-
if (typeof classes === 'string') {
|
|
12
|
-
return classes.split(/\s+/).filter(Boolean);
|
|
13
|
-
}
|
|
14
|
-
// Handle Array (["class1", "class2 class3"])
|
|
15
|
-
if (Array.isArray(classes)) {
|
|
16
|
-
return classes.flatMap((c) => c.split(/\s+/).filter(Boolean));
|
|
17
|
-
}
|
|
18
|
-
// Handle Set (new Set(["class1", "class2"]))
|
|
19
|
-
if (classes instanceof Set) {
|
|
20
|
-
return Array.from(classes).flatMap((c) => c.split(/\s+/).filter(Boolean));
|
|
21
|
-
}
|
|
22
|
-
// Handle Object/Dictionary ({ 'class1': true, 'class2': false })
|
|
23
|
-
if (typeof classes === 'object') {
|
|
24
|
-
return Object.entries(classes)
|
|
25
|
-
.filter(([_, condition]) => Boolean(condition)) // Keep only truthy values
|
|
26
|
-
.map(([className]) => className)
|
|
27
|
-
.flatMap((c) => c.split(/\s+/).filter(Boolean)); // Handle keys with spaces like { 'a b': true }
|
|
28
|
-
}
|
|
29
|
-
return [];
|
|
30
|
-
}
|
|
31
|
-
export function safeFormat(date: Date, format: string, locale: string): string {
|
|
32
|
-
if (!date || isNaN(date.getTime())) return '';
|
|
33
|
-
|
|
34
|
-
try {
|
|
35
|
-
const year = date.getFullYear().toString();
|
|
36
|
-
const month = date.getMonth() + 1;
|
|
37
|
-
const day = date.getDate();
|
|
38
|
-
const hours = date.getHours();
|
|
39
|
-
const minutes = date.getMinutes();
|
|
40
|
-
const seconds = date.getSeconds();
|
|
41
|
-
|
|
42
|
-
const pad = (num: number) => num.toString().padStart(2, '0');
|
|
43
|
-
|
|
44
|
-
// Helper to safely grab localized names (months, weekdays)
|
|
45
|
-
const getIntl = (opts: Intl.DateTimeFormatOptions) => {
|
|
46
|
-
try {
|
|
47
|
-
return new Intl.DateTimeFormat(locale, opts).format(date);
|
|
48
|
-
} catch {
|
|
49
|
-
return '';
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
const tokens: Record<string, string> = {
|
|
54
|
-
// Year
|
|
55
|
-
YYYY: year,
|
|
56
|
-
yyyy: year,
|
|
57
|
-
YY: year.slice(-2),
|
|
58
|
-
yy: year.slice(-2),
|
|
59
|
-
|
|
60
|
-
// Localized Month
|
|
61
|
-
MMMM: getIntl({ month: 'long' }),
|
|
62
|
-
LLLL: getIntl({ month: 'long' }), // Preserved from your original logic
|
|
63
|
-
MMM: getIntl({ month: 'short' }),
|
|
64
|
-
|
|
65
|
-
// Numeric Month
|
|
66
|
-
MM: pad(month),
|
|
67
|
-
M: month.toString(),
|
|
68
|
-
|
|
69
|
-
// Numeric Day
|
|
70
|
-
DD: pad(day),
|
|
71
|
-
dd: pad(day),
|
|
72
|
-
D: day.toString(),
|
|
73
|
-
d: day.toString(),
|
|
74
|
-
|
|
75
|
-
// Localized Weekday
|
|
76
|
-
dddd: getIntl({ weekday: 'long' }),
|
|
77
|
-
ddd: getIntl({ weekday: 'short' }),
|
|
78
|
-
EEEE: getIntl({ weekday: 'long' }),
|
|
79
|
-
EEE: getIntl({ weekday: 'short' }),
|
|
80
|
-
EEEEE: getIntl({ weekday: 'narrow' }),
|
|
81
|
-
|
|
82
|
-
// Time
|
|
83
|
-
HH: pad(hours),
|
|
84
|
-
H: hours.toString(),
|
|
85
|
-
hh: pad(hours % 12 || 12),
|
|
86
|
-
h: (hours % 12 || 12).toString(),
|
|
87
|
-
mm: pad(minutes),
|
|
88
|
-
m: minutes.toString(),
|
|
89
|
-
ss: pad(seconds),
|
|
90
|
-
s: seconds.toString(),
|
|
91
|
-
|
|
92
|
-
// AM/PM
|
|
93
|
-
A: hours >= 12 ? 'PM' : 'AM',
|
|
94
|
-
a: hours >= 12 ? 'pm' : 'am',
|
|
95
|
-
};
|
|
96
|
-
|
|
97
|
-
// Sort by length descending to match longest tokens first (e.g. MMMM before MM)
|
|
98
|
-
const regex = new RegExp(
|
|
99
|
-
Object.keys(tokens)
|
|
100
|
-
.sort((a, b) => b.length - a.length)
|
|
101
|
-
.join('|'),
|
|
102
|
-
'g',
|
|
103
|
-
);
|
|
104
|
-
|
|
105
|
-
// Replace all tokens in one pass
|
|
106
|
-
return format.replace(regex, (match) => tokens[match] || match);
|
|
107
|
-
} catch (e) {
|
|
108
|
-
// Fallback if anything crashes
|
|
109
|
-
return new Intl.DateTimeFormat(locale || 'en-US').format(date);
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
export function parseFormattedStringIntoDate(value: string, format: string): Date | null {
|
|
113
|
-
try {
|
|
114
|
-
// Convert format string (e.g., dd-MM-yyyy) into a Regex with named groups
|
|
115
|
-
let regexStr = format
|
|
116
|
-
.replace('yyyy', '(?<year>\\d{4})')
|
|
117
|
-
.replace('MM', '(?<month>\\d{2})')
|
|
118
|
-
.replace('dd', '(?<day>\\d{2})')
|
|
119
|
-
.replace('HH', '(?<hour>\\d{2})')
|
|
120
|
-
.replace('mm', '(?<minute>\\d{2})')
|
|
121
|
-
.replace('ss', '(?<second>\\d{2})');
|
|
122
|
-
|
|
123
|
-
const match = value.match(new RegExp(`^${regexStr}$`));
|
|
124
|
-
|
|
125
|
-
if (match && match.groups) {
|
|
126
|
-
const year = parseInt(match.groups['year'], 10);
|
|
127
|
-
const month = parseInt(match.groups['month'], 10) - 1; // JS Months are 0-11
|
|
128
|
-
const day = parseInt(match.groups['day'], 10);
|
|
129
|
-
|
|
130
|
-
const hour = match.groups['hour'] ? parseInt(match.groups['hour'], 10) : 0;
|
|
131
|
-
const min = match.groups['minute'] ? parseInt(match.groups['minute'], 10) : 0;
|
|
132
|
-
const sec = match.groups['second'] ? parseInt(match.groups['second'], 10) : 0;
|
|
133
|
-
|
|
134
|
-
const parsedDate = new Date(year, month, day, hour, min, sec);
|
|
135
|
-
if (!isNaN(parsedDate.getTime())) return parsedDate;
|
|
136
|
-
}
|
|
137
|
-
} catch (e) {
|
|
138
|
-
return null;
|
|
139
|
-
}
|
|
140
|
-
return null;
|
|
141
|
-
}
|
|
142
|
-
export function resolveThemeDefault<
|
|
143
|
-
T,
|
|
144
|
-
C extends keyof DasarComponentConfig,
|
|
145
|
-
K extends keyof NonNullable<DasarComponentConfig[C]>,
|
|
146
|
-
>(
|
|
147
|
-
componentKey: C,
|
|
148
|
-
propKey: K,
|
|
149
|
-
fallback: NonNullable<NonNullable<DasarComponentConfig[C]>[K]> | T,
|
|
150
|
-
provider: DasarThemeProviderComponent | null,
|
|
151
|
-
service: DasarThemeService | null,
|
|
152
|
-
): NonNullable<NonNullable<DasarComponentConfig[C]>[K]> | T {
|
|
153
|
-
const providerConfig = provider?.componentConfig as any;
|
|
154
|
-
const serviceConfig = service?.themeVariable()?.components as any;
|
|
155
|
-
|
|
156
|
-
// Component-Specific Config (First)
|
|
157
|
-
if (providerConfig?.[componentKey]?.[propKey] !== undefined) {
|
|
158
|
-
return providerConfig[componentKey]![propKey] as any;
|
|
159
|
-
}
|
|
160
|
-
if (serviceConfig?.[componentKey]?.[propKey] !== undefined) {
|
|
161
|
-
return serviceConfig[componentKey]![propKey] as any;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
// Common Config (Applies to all components if the property exists)
|
|
165
|
-
const commonKey = propKey as unknown as keyof DasarComponentCommonConfig;
|
|
166
|
-
if (providerConfig?.common?.[commonKey] !== undefined) {
|
|
167
|
-
return providerConfig.common[commonKey] as any;
|
|
168
|
-
}
|
|
169
|
-
if (serviceConfig?.common?.[commonKey] !== undefined) {
|
|
170
|
-
return serviceConfig.common[commonKey] as any;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
// Component Default Value
|
|
174
|
-
return fallback;
|
|
175
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
// components
|
|
2
|
-
export * from './lib/components/dasar-button-group/dasar-button-group';
|
|
3
|
-
export * from './lib/components/dasar-number-input/dasar-number-input';
|
|
4
|
-
export * from './lib/components/dasar-pagination/dasar-pagination';
|
|
5
|
-
export * from './lib/components/dasar-textarea/dasar-textarea';
|
|
6
|
-
export * from './lib/components/dasar-table/dasar-table';
|
|
7
|
-
export * from './lib/components/dasar-menu/dasar-menu';
|
|
8
|
-
export * from './lib/components/dasar-tabs/dasar-tabs';
|
|
9
|
-
export * from './lib/components/dasar-pivot-table/dasar-pivot-table';
|
|
10
|
-
export * from './lib/components/dasar-datepicker/dasar-datepicker';
|
|
11
|
-
export * from './lib/components/dasar-calendar/dasar-calendar';
|
|
12
|
-
export * from './lib/components/dasar-select/dasar-select';
|
|
13
|
-
export * from './lib/components/dasar-icon/dasar-icon';
|
|
14
|
-
export * from './lib/components/dasar-card/dasar-card';
|
|
15
|
-
export * from './lib/components/dasar-chip/dasar-chip';
|
|
16
|
-
export * from './lib/components/dasar-input/dasar-input';
|
|
17
|
-
// adjusted
|
|
18
|
-
export * from './lib/components/dasar-theme-provider/dasar-theme-provider';
|
|
19
|
-
export * from './lib/components/dasar-button/dasar-button';
|
|
20
|
-
// services
|
|
21
|
-
export * from './lib/services/theme.service';
|
|
22
|
-
// models
|
|
23
|
-
export * from './lib/models/theme.model';
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
|
|
2
|
-
/* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
|
|
3
|
-
{
|
|
4
|
-
"extends": "../../tsconfig.json",
|
|
5
|
-
"compilerOptions": {
|
|
6
|
-
"outDir": "../../out-tsc/lib",
|
|
7
|
-
"rootDir": "./src",
|
|
8
|
-
"paths": {
|
|
9
|
-
"@components/*": ["./src/lib/components/*"],
|
|
10
|
-
"@services/*": ["./src/lib/services/*"],
|
|
11
|
-
"@models/*": ["./src/lib/models/*"],
|
|
12
|
-
"@styles/*": ["./src/lib/styles/*"],
|
|
13
|
-
"dasar-ui": ["./src/public-api.ts"]
|
|
14
|
-
},
|
|
15
|
-
"declaration": true,
|
|
16
|
-
"declarationMap": true,
|
|
17
|
-
"types": []
|
|
18
|
-
},
|
|
19
|
-
"include": ["src/**/*.ts", "src/**/*.d.ts"],
|
|
20
|
-
"exclude": ["**/*.spec.ts"]
|
|
21
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
|
|
2
|
-
/* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
|
|
3
|
-
{
|
|
4
|
-
"extends": "./tsconfig.lib.json",
|
|
5
|
-
"compilerOptions": {
|
|
6
|
-
"declarationMap": false
|
|
7
|
-
},
|
|
8
|
-
"angularCompilerOptions": {
|
|
9
|
-
"compilationMode": "partial"
|
|
10
|
-
}
|
|
11
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
|
|
2
|
-
/* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
|
|
3
|
-
{
|
|
4
|
-
"extends": "../../tsconfig.json",
|
|
5
|
-
"compilerOptions": {
|
|
6
|
-
"outDir": "../../out-tsc/spec",
|
|
7
|
-
"types": ["vitest/globals"],
|
|
8
|
-
"rootDir": "./src"
|
|
9
|
-
},
|
|
10
|
-
"include": ["src/**/*.d.ts", "src/**/*.spec.ts"]
|
|
11
|
-
}
|
package/tsconfig.json
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
|
|
2
|
-
/* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
|
|
3
|
-
{
|
|
4
|
-
"compileOnSave": false,
|
|
5
|
-
"compilerOptions": {
|
|
6
|
-
"noImplicitOverride": true,
|
|
7
|
-
"noPropertyAccessFromIndexSignature": true,
|
|
8
|
-
"noImplicitReturns": true,
|
|
9
|
-
"noFallthroughCasesInSwitch": true,
|
|
10
|
-
"skipLibCheck": true,
|
|
11
|
-
"isolatedModules": true,
|
|
12
|
-
"experimentalDecorators": true,
|
|
13
|
-
"importHelpers": true,
|
|
14
|
-
"target": "ES2022",
|
|
15
|
-
"module": "preserve"
|
|
16
|
-
},
|
|
17
|
-
"angularCompilerOptions": {
|
|
18
|
-
"enableI18nLegacyMessageIdFormat": false,
|
|
19
|
-
"strictInjectionParameters": true,
|
|
20
|
-
"strictInputAccessModifiers": true
|
|
21
|
-
},
|
|
22
|
-
"files": [],
|
|
23
|
-
"references": [
|
|
24
|
-
{
|
|
25
|
-
"path": "./projects/dasar-ui/tsconfig.lib.json"
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
"path": "./projects/dasar-ui/tsconfig.spec.json"
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
"path": "./projects/consumer-app/tsconfig.app.json"
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
"path": "./projects/consumer-app/tsconfig.spec.json"
|
|
35
|
-
}
|
|
36
|
-
]
|
|
37
|
-
}
|
|
File without changes
|