@piying-lib/angular-daisyui 1.0.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 +64 -0
- package/extension/index.d.ts +449 -0
- package/fesm2022/piying-lib-angular-daisyui-extension.mjs +1356 -0
- package/fesm2022/piying-lib-angular-daisyui-extension.mjs.map +1 -0
- package/fesm2022/piying-lib-angular-daisyui-field-control-props.directive-C5mF89PX.mjs +27 -0
- package/fesm2022/piying-lib-angular-daisyui-field-control-props.directive-C5mF89PX.mjs.map +1 -0
- package/fesm2022/piying-lib-angular-daisyui-field-control.mjs +616 -0
- package/fesm2022/piying-lib-angular-daisyui-field-control.mjs.map +1 -0
- package/fesm2022/piying-lib-angular-daisyui-field-group.mjs +345 -0
- package/fesm2022/piying-lib-angular-daisyui-field-group.mjs.map +1 -0
- package/fesm2022/piying-lib-angular-daisyui-non-field-control.mjs +452 -0
- package/fesm2022/piying-lib-angular-daisyui-non-field-control.mjs.map +1 -0
- package/fesm2022/piying-lib-angular-daisyui-pipe.mjs +55 -0
- package/fesm2022/piying-lib-angular-daisyui-pipe.mjs.map +1 -0
- package/fesm2022/piying-lib-angular-daisyui-service.mjs +115 -0
- package/fesm2022/piying-lib-angular-daisyui-service.mjs.map +1 -0
- package/fesm2022/piying-lib-angular-daisyui-wrapper.mjs +75 -0
- package/fesm2022/piying-lib-angular-daisyui-wrapper.mjs.map +1 -0
- package/fesm2022/piying-lib-angular-daisyui.mjs +4 -0
- package/fesm2022/piying-lib-angular-daisyui.mjs.map +1 -0
- package/field-control/index.d.ts +204 -0
- package/field-group/index.d.ts +162 -0
- package/index.d.ts +2 -0
- package/non-field-control/index.d.ts +255 -0
- package/package.json +54 -0
- package/pipe/index.d.ts +25 -0
- package/preset-css/css/style.css +1 -0
- package/preset-css/css/style.split.css +126 -0
- package/preset-css/json/manifest.json +739 -0
- package/preset-css/ts/accordion.ts +9 -0
- package/preset-css/ts/alert.ts +12 -0
- package/preset-css/ts/avatar.ts +7 -0
- package/preset-css/ts/badge.ts +20 -0
- package/preset-css/ts/breadcrumbs.ts +1 -0
- package/preset-css/ts/browser-mockup.ts +1 -0
- package/preset-css/ts/button.ts +27 -0
- package/preset-css/ts/calendar.ts +1 -0
- package/preset-css/ts/card.ts +15 -0
- package/preset-css/ts/carousel.ts +9 -0
- package/preset-css/ts/chat-bubble.ts +17 -0
- package/preset-css/ts/checkbox.ts +16 -0
- package/preset-css/ts/code-mockup.ts +1 -0
- package/preset-css/ts/collapse.ts +9 -0
- package/preset-css/ts/countdown.ts +1 -0
- package/preset-css/ts/diff.ts +1 -0
- package/preset-css/ts/divider.ts +15 -0
- package/preset-css/ts/dock.ts +10 -0
- package/preset-css/ts/drawer-sidebar.ts +11 -0
- package/preset-css/ts/dropdown.ts +13 -0
- package/preset-css/ts/fab-speed-dial.ts +1 -0
- package/preset-css/ts/fieldset.ts +1 -0
- package/preset-css/ts/file-input.ts +17 -0
- package/preset-css/ts/filter.ts +1 -0
- package/preset-css/ts/footer.ts +7 -0
- package/preset-css/ts/hero.ts +1 -0
- package/preset-css/ts/hover-gallery.ts +1 -0
- package/preset-css/ts/index.ts +63 -0
- package/preset-css/ts/indicator.ts +10 -0
- package/preset-css/ts/join.ts +1 -0
- package/preset-css/ts/kbd.ts +1 -0
- package/preset-css/ts/label.ts +1 -0
- package/preset-css/ts/link.ts +12 -0
- package/preset-css/ts/list.ts +1 -0
- package/preset-css/ts/loading.ts +14 -0
- package/preset-css/ts/mask.ts +20 -0
- package/preset-css/ts/menu.ts +17 -0
- package/preset-css/ts/modal.ts +13 -0
- package/preset-css/ts/navbar.ts +1 -0
- package/preset-css/ts/pagination.ts +1 -0
- package/preset-css/ts/phone-mockup.ts +5 -0
- package/preset-css/ts/progress.ts +11 -0
- package/preset-css/ts/radial-progress.ts +1 -0
- package/preset-css/ts/radio.ts +16 -0
- package/preset-css/ts/range-slider.ts +16 -0
- package/preset-css/ts/rating.ts +10 -0
- package/preset-css/ts/select.ts +17 -0
- package/preset-css/ts/skeleton.ts +1 -0
- package/preset-css/ts/stack.ts +1 -0
- package/preset-css/ts/stat.ts +11 -0
- package/preset-css/ts/status.ts +16 -0
- package/preset-css/ts/steps.ts +15 -0
- package/preset-css/ts/swap.ts +9 -0
- package/preset-css/ts/table.ts +11 -0
- package/preset-css/ts/tabs.ts +17 -0
- package/preset-css/ts/text-input.ts +17 -0
- package/preset-css/ts/textarea.ts +17 -0
- package/preset-css/ts/theme-controller.ts +1 -0
- package/preset-css/ts/timeline.ts +11 -0
- package/preset-css/ts/toast.ts +9 -0
- package/preset-css/ts/toggle.ts +16 -0
- package/preset-css/ts/tooltip.ts +17 -0
- package/preset-css/ts/validator.ts +1 -0
- package/preset-css/ts/window-mockup.ts +1 -0
- package/service/index.d.ts +42 -0
- package/wrapper/index.d.ts +27 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export const TEXTAREA_PREFIX_LIST = [
|
|
2
|
+
'textarea',
|
|
3
|
+
'textarea-ghost',
|
|
4
|
+
'textarea-neutral',
|
|
5
|
+
'textarea-primary',
|
|
6
|
+
'textarea-secondary',
|
|
7
|
+
'textarea-accent',
|
|
8
|
+
'textarea-info',
|
|
9
|
+
'textarea-success',
|
|
10
|
+
'textarea-warning',
|
|
11
|
+
'textarea-error',
|
|
12
|
+
'textarea-xs',
|
|
13
|
+
'textarea-sm',
|
|
14
|
+
'textarea-md',
|
|
15
|
+
'textarea-lg',
|
|
16
|
+
'textarea-xl',
|
|
17
|
+
];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const THEME_CONTROLLER_PREFIX_LIST = ['theme-controller'];
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export const TOGGLE_PREFIX_LIST = [
|
|
2
|
+
'toggle',
|
|
3
|
+
'toggle-primary',
|
|
4
|
+
'toggle-secondary',
|
|
5
|
+
'toggle-accent',
|
|
6
|
+
'toggle-neutral',
|
|
7
|
+
'toggle-success',
|
|
8
|
+
'toggle-warning',
|
|
9
|
+
'toggle-info',
|
|
10
|
+
'toggle-error',
|
|
11
|
+
'toggle-xs',
|
|
12
|
+
'toggle-sm',
|
|
13
|
+
'toggle-md',
|
|
14
|
+
'toggle-lg',
|
|
15
|
+
'toggle-xl',
|
|
16
|
+
];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export const TOOLTIP_PREFIX_LIST = [
|
|
2
|
+
'tooltip',
|
|
3
|
+
'tooltip-content',
|
|
4
|
+
'tooltip-top',
|
|
5
|
+
'tooltip-bottom',
|
|
6
|
+
'tooltip-left',
|
|
7
|
+
'tooltip-right',
|
|
8
|
+
'tooltip-open',
|
|
9
|
+
'tooltip-neutral',
|
|
10
|
+
'tooltip-primary',
|
|
11
|
+
'tooltip-secondary',
|
|
12
|
+
'tooltip-accent',
|
|
13
|
+
'tooltip-info',
|
|
14
|
+
'tooltip-success',
|
|
15
|
+
'tooltip-warning',
|
|
16
|
+
'tooltip-error',
|
|
17
|
+
];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const VALIDATOR_PREFIX_LIST = ['validator', 'validator-hint'];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const WINDOW_MOCKUP_PREFIX_LIST = ['mockup-window'];
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { AlertColor, Color, Size } from '@piying-lib/angular-core';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { InjectionToken } from '@angular/core';
|
|
4
|
+
|
|
5
|
+
type HasColorCmp = 'btn' | 'badge' | 'chat-bubble' | 'status' | 'link' | 'step' | 'progress' | 'tooltip' | 'checkbox' | 'file-input' | 'radio' | 'range' | 'select' | 'input' | 'textarea' | 'toggle' | 'divider' | 'alert';
|
|
6
|
+
declare class ThemeService {
|
|
7
|
+
#private;
|
|
8
|
+
setColor<T extends HasColorCmp>(cmpPrefix: T, input: (T extends 'alert' ? AlertColor : Color) | undefined): string | undefined;
|
|
9
|
+
setSize(cmpPrefix: 'btn' | 'badge' | 'card' | 'kbd' | 'status' | 'table' | 'dock' | 'menu' | 'tabs' | 'loading' | 'checkbox' | 'file-input' | 'radio' | 'range' | 'rating' | 'select' | 'input' | 'textarea' | 'toggle', input: Size | undefined): string | undefined;
|
|
10
|
+
addPrefix(str: string): string;
|
|
11
|
+
addPrefix2(cmpPrefix: string, str?: string): string | undefined;
|
|
12
|
+
addTwPrefix(str: string): string;
|
|
13
|
+
setClass(...args: (string | undefined)[]): string;
|
|
14
|
+
addVarPrefix(name: string): string;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ThemeService, never>;
|
|
16
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ThemeService>;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
declare const CSSClassPrefixToken: InjectionToken<string>;
|
|
20
|
+
|
|
21
|
+
declare function useDefaultClass(str?: string | string[]): string;
|
|
22
|
+
declare function useTwClass(str?: string | string[]): string;
|
|
23
|
+
|
|
24
|
+
type CheckBoxConfig<D> = boolean | {
|
|
25
|
+
key: string;
|
|
26
|
+
selected?: D[];
|
|
27
|
+
multiple: boolean;
|
|
28
|
+
compareWith?: (o1: D, o2: D) => boolean;
|
|
29
|
+
}[];
|
|
30
|
+
declare class CheckboxService<D = any> {
|
|
31
|
+
#private;
|
|
32
|
+
init(define: CheckBoxConfig<D>): void;
|
|
33
|
+
toggle(key: string | undefined, value: any): void;
|
|
34
|
+
/** 用来设置一个获得所有列表数据的方法 */
|
|
35
|
+
setAllList(fn: () => D[]): void;
|
|
36
|
+
selectAll(key?: string): void;
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxService<any>, never>;
|
|
38
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CheckboxService<any>>;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export { CSSClassPrefixToken, CheckboxService, ThemeService, useDefaultClass, useTwClass };
|
|
42
|
+
export type { CheckBoxConfig };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import * as _piying_view_angular from '@piying/view-angular';
|
|
3
|
+
|
|
4
|
+
declare class TdWC {
|
|
5
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TdWC, never>;
|
|
6
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TdWC, "td", never, {}, {}, never, never, true, never>;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
declare class ThWC {
|
|
10
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ThWC, never>;
|
|
11
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ThWC, "th", never, {}, {}, never, never, true, never>;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
declare class LabelWC {
|
|
15
|
+
static __version: number;
|
|
16
|
+
templateRef: _angular_core.Signal<unknown>;
|
|
17
|
+
field$$: _angular_core.Signal<_piying_view_angular.PiResolvedViewFieldConfig>;
|
|
18
|
+
props$$: _angular_core.Signal<Record<string, any>>;
|
|
19
|
+
labelInline$$: _angular_core.Signal<any>;
|
|
20
|
+
labelPosition$$: _angular_core.Signal<any>;
|
|
21
|
+
isEnd$$: _angular_core.Signal<boolean>;
|
|
22
|
+
layout$$: _angular_core.Signal<"flex flex-col" | "flex">;
|
|
23
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LabelWC, never>;
|
|
24
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<LabelWC, "app-label-wrapper", never, {}, {}, never, never, true, never>;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { LabelWC, TdWC, ThWC };
|