@masterteam/components 0.0.22 → 0.0.23
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.
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { DialogService, DynamicDialogRef } from 'primeng/dynamicdialog';
|
|
2
|
+
export { DynamicDialogConfig, DynamicDialogRef } from 'primeng/dynamicdialog';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
|
|
5
|
+
interface DialogConfig {
|
|
6
|
+
title?: string;
|
|
7
|
+
width?: string;
|
|
8
|
+
height?: string;
|
|
9
|
+
data?: any;
|
|
10
|
+
closable?: boolean;
|
|
11
|
+
modal?: boolean;
|
|
12
|
+
resizable?: boolean;
|
|
13
|
+
draggable?: boolean;
|
|
14
|
+
styleClass?: string;
|
|
15
|
+
}
|
|
16
|
+
declare class Dialog {
|
|
17
|
+
dialogService: DialogService;
|
|
18
|
+
footerClass: string;
|
|
19
|
+
contentClass: string;
|
|
20
|
+
ref: DynamicDialogRef | undefined;
|
|
21
|
+
showDialog(component: any, config?: DialogConfig): DynamicDialogRef<any>;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Dialog, never>;
|
|
23
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<Dialog>;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export { Dialog };
|
|
27
|
+
export type { DialogConfig };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { DialogService } from 'primeng/dynamicdialog';
|
|
2
|
+
export { DynamicDialogConfig, DynamicDialogRef } from 'primeng/dynamicdialog';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
import { inject, Injectable } from '@angular/core';
|
|
5
|
+
|
|
6
|
+
class Dialog {
|
|
7
|
+
dialogService = inject(DialogService);
|
|
8
|
+
footerClass = 'dynamic-footer';
|
|
9
|
+
contentClass = 'dynamic-content';
|
|
10
|
+
ref;
|
|
11
|
+
showDialog(component, config) {
|
|
12
|
+
this.ref = this.dialogService.open(component, {
|
|
13
|
+
header: config?.title,
|
|
14
|
+
width: config?.width ?? '30vw',
|
|
15
|
+
height: config?.height ?? 'auto',
|
|
16
|
+
data: config?.data,
|
|
17
|
+
closable: true,
|
|
18
|
+
modal: true,
|
|
19
|
+
resizable: false,
|
|
20
|
+
draggable: true,
|
|
21
|
+
styleClass: 'dynamic-dialog ' + config?.styleClass,
|
|
22
|
+
});
|
|
23
|
+
return this.ref;
|
|
24
|
+
}
|
|
25
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: Dialog, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
26
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: Dialog, providedIn: 'root' });
|
|
27
|
+
}
|
|
28
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: Dialog, decorators: [{
|
|
29
|
+
type: Injectable,
|
|
30
|
+
args: [{ providedIn: 'root' }]
|
|
31
|
+
}] });
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Generated bundle index. Do not edit.
|
|
35
|
+
*/
|
|
36
|
+
|
|
37
|
+
export { Dialog };
|
|
38
|
+
//# sourceMappingURL=masterteam-components-dialog.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"masterteam-components-dialog.mjs","sources":["../../../../packages/masterteam/components/dialog/dialog.ts","../../../../packages/masterteam/components/dialog/masterteam-components-dialog.ts"],"sourcesContent":["import { DialogService, DynamicDialogRef } from 'primeng/dynamicdialog';\nimport { inject, Injectable } from '@angular/core';\nexport { DynamicDialogConfig, DynamicDialogRef } from 'primeng/dynamicdialog';\nexport interface DialogConfig {\n title?: string;\n width?: string;\n height?: string;\n data?: any;\n closable?: boolean;\n modal?: boolean;\n resizable?: boolean;\n draggable?: boolean;\n styleClass?: string;\n}\n\n@Injectable({ providedIn: 'root' })\nexport class Dialog {\n dialogService = inject(DialogService);\n footerClass: string = 'dynamic-footer';\n contentClass: string = 'dynamic-content';\n ref: DynamicDialogRef | undefined;\n\n showDialog(component: any, config?: DialogConfig) {\n this.ref = this.dialogService.open(component, {\n header: config?.title,\n width: config?.width ?? '30vw',\n height: config?.height ?? 'auto',\n data: config?.data,\n closable: true,\n modal: true,\n resizable: false,\n draggable: true,\n styleClass: 'dynamic-dialog ' + config?.styleClass,\n });\n return this.ref;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;MAgBa,MAAM,CAAA;AACjB,IAAA,aAAa,GAAG,MAAM,CAAC,aAAa,CAAC;IACrC,WAAW,GAAW,gBAAgB;IACtC,YAAY,GAAW,iBAAiB;AACxC,IAAA,GAAG;IAEH,UAAU,CAAC,SAAc,EAAE,MAAqB,EAAA;QAC9C,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,SAAS,EAAE;YAC5C,MAAM,EAAE,MAAM,EAAE,KAAK;AACrB,YAAA,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,MAAM;AAC9B,YAAA,MAAM,EAAE,MAAM,EAAE,MAAM,IAAI,MAAM;YAChC,IAAI,EAAE,MAAM,EAAE,IAAI;AAClB,YAAA,QAAQ,EAAE,IAAI;AACd,YAAA,KAAK,EAAE,IAAI;AACX,YAAA,SAAS,EAAE,KAAK;AAChB,YAAA,SAAS,EAAE,IAAI;AACf,YAAA,UAAU,EAAE,iBAAiB,GAAG,MAAM,EAAE,UAAU;AACnD,SAAA,CAAC;QACF,OAAO,IAAI,CAAC,GAAG;IACjB;uGAnBW,MAAM,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;AAAN,IAAA,OAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAM,cADO,MAAM,EAAA,CAAA;;2FACnB,MAAM,EAAA,UAAA,EAAA,CAAA;kBADlB,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;ACflC;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@masterteam/components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.23",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"directory": ".",
|
|
6
6
|
"linkDirectory": false,
|
|
@@ -59,42 +59,42 @@
|
|
|
59
59
|
"types": "./card/index.d.ts",
|
|
60
60
|
"default": "./fesm2022/masterteam-components-card.mjs"
|
|
61
61
|
},
|
|
62
|
-
"./
|
|
63
|
-
"types": "./
|
|
64
|
-
"default": "./fesm2022/masterteam-components-
|
|
62
|
+
"./checkbox-field": {
|
|
63
|
+
"types": "./checkbox-field/index.d.ts",
|
|
64
|
+
"default": "./fesm2022/masterteam-components-checkbox-field.mjs"
|
|
65
65
|
},
|
|
66
66
|
"./color-picker-field": {
|
|
67
67
|
"types": "./color-picker-field/index.d.ts",
|
|
68
68
|
"default": "./fesm2022/masterteam-components-color-picker-field.mjs"
|
|
69
69
|
},
|
|
70
|
-
"./
|
|
71
|
-
"types": "./
|
|
72
|
-
"default": "./fesm2022/masterteam-components-
|
|
73
|
-
},
|
|
74
|
-
"./avatar-text": {
|
|
75
|
-
"types": "./avatar-text/index.d.ts",
|
|
76
|
-
"default": "./fesm2022/masterteam-components-avatar-text.mjs"
|
|
70
|
+
"./chip": {
|
|
71
|
+
"types": "./chip/index.d.ts",
|
|
72
|
+
"default": "./fesm2022/masterteam-components-chip.mjs"
|
|
77
73
|
},
|
|
78
74
|
"./date-field": {
|
|
79
75
|
"types": "./date-field/index.d.ts",
|
|
80
76
|
"default": "./fesm2022/masterteam-components-date-field.mjs"
|
|
81
77
|
},
|
|
82
|
-
"./
|
|
83
|
-
"types": "./
|
|
84
|
-
"default": "./fesm2022/masterteam-components-
|
|
78
|
+
"./dialog": {
|
|
79
|
+
"types": "./dialog/index.d.ts",
|
|
80
|
+
"default": "./fesm2022/masterteam-components-dialog.mjs"
|
|
85
81
|
},
|
|
86
82
|
"./field-validation": {
|
|
87
83
|
"types": "./field-validation/index.d.ts",
|
|
88
84
|
"default": "./fesm2022/masterteam-components-field-validation.mjs"
|
|
89
85
|
},
|
|
90
|
-
"./
|
|
91
|
-
"types": "./
|
|
92
|
-
"default": "./fesm2022/masterteam-components-
|
|
86
|
+
"./editor-field": {
|
|
87
|
+
"types": "./editor-field/index.d.ts",
|
|
88
|
+
"default": "./fesm2022/masterteam-components-editor-field.mjs"
|
|
93
89
|
},
|
|
94
90
|
"./icon-field": {
|
|
95
91
|
"types": "./icon-field/index.d.ts",
|
|
96
92
|
"default": "./fesm2022/masterteam-components-icon-field.mjs"
|
|
97
93
|
},
|
|
94
|
+
"./list": {
|
|
95
|
+
"types": "./list/index.d.ts",
|
|
96
|
+
"default": "./fesm2022/masterteam-components-list.mjs"
|
|
97
|
+
},
|
|
98
98
|
"./formula-builder": {
|
|
99
99
|
"types": "./formula-builder/index.d.ts",
|
|
100
100
|
"default": "./fesm2022/masterteam-components-formula-builder.mjs"
|
|
@@ -107,34 +107,30 @@
|
|
|
107
107
|
"types": "./number-field/index.d.ts",
|
|
108
108
|
"default": "./fesm2022/masterteam-components-number-field.mjs"
|
|
109
109
|
},
|
|
110
|
+
"./avatar-text": {
|
|
111
|
+
"types": "./avatar-text/index.d.ts",
|
|
112
|
+
"default": "./fesm2022/masterteam-components-avatar-text.mjs"
|
|
113
|
+
},
|
|
110
114
|
"./radio-button-field": {
|
|
111
115
|
"types": "./radio-button-field/index.d.ts",
|
|
112
116
|
"default": "./fesm2022/masterteam-components-radio-button-field.mjs"
|
|
113
117
|
},
|
|
114
|
-
"./paginator": {
|
|
115
|
-
"types": "./paginator/index.d.ts",
|
|
116
|
-
"default": "./fesm2022/masterteam-components-paginator.mjs"
|
|
117
|
-
},
|
|
118
118
|
"./radio-cards": {
|
|
119
119
|
"types": "./radio-cards/index.d.ts",
|
|
120
120
|
"default": "./fesm2022/masterteam-components-radio-cards.mjs"
|
|
121
121
|
},
|
|
122
|
+
"./paginator": {
|
|
123
|
+
"types": "./paginator/index.d.ts",
|
|
124
|
+
"default": "./fesm2022/masterteam-components-paginator.mjs"
|
|
125
|
+
},
|
|
122
126
|
"./select-field": {
|
|
123
127
|
"types": "./select-field/index.d.ts",
|
|
124
128
|
"default": "./fesm2022/masterteam-components-select-field.mjs"
|
|
125
129
|
},
|
|
126
|
-
"./radio-cards-field": {
|
|
127
|
-
"types": "./radio-cards-field/index.d.ts",
|
|
128
|
-
"default": "./fesm2022/masterteam-components-radio-cards-field.mjs"
|
|
129
|
-
},
|
|
130
130
|
"./slider-field": {
|
|
131
131
|
"types": "./slider-field/index.d.ts",
|
|
132
132
|
"default": "./fesm2022/masterteam-components-slider-field.mjs"
|
|
133
133
|
},
|
|
134
|
-
"./text-field": {
|
|
135
|
-
"types": "./text-field/index.d.ts",
|
|
136
|
-
"default": "./fesm2022/masterteam-components-text-field.mjs"
|
|
137
|
-
},
|
|
138
134
|
"./table": {
|
|
139
135
|
"types": "./table/index.d.ts",
|
|
140
136
|
"default": "./fesm2022/masterteam-components-table.mjs"
|
|
@@ -143,17 +139,25 @@
|
|
|
143
139
|
"types": "./tabs/index.d.ts",
|
|
144
140
|
"default": "./fesm2022/masterteam-components-tabs.mjs"
|
|
145
141
|
},
|
|
142
|
+
"./text-field": {
|
|
143
|
+
"types": "./text-field/index.d.ts",
|
|
144
|
+
"default": "./fesm2022/masterteam-components-text-field.mjs"
|
|
145
|
+
},
|
|
146
|
+
"./radio-cards-field": {
|
|
147
|
+
"types": "./radio-cards-field/index.d.ts",
|
|
148
|
+
"default": "./fesm2022/masterteam-components-radio-cards-field.mjs"
|
|
149
|
+
},
|
|
146
150
|
"./textarea-field": {
|
|
147
151
|
"types": "./textarea-field/index.d.ts",
|
|
148
152
|
"default": "./fesm2022/masterteam-components-textarea-field.mjs"
|
|
149
153
|
},
|
|
150
|
-
"./toggle-field": {
|
|
151
|
-
"types": "./toggle-field/index.d.ts",
|
|
152
|
-
"default": "./fesm2022/masterteam-components-toggle-field.mjs"
|
|
153
|
-
},
|
|
154
154
|
"./toast": {
|
|
155
155
|
"types": "./toast/index.d.ts",
|
|
156
156
|
"default": "./fesm2022/masterteam-components-toast.mjs"
|
|
157
|
+
},
|
|
158
|
+
"./toggle-field": {
|
|
159
|
+
"types": "./toggle-field/index.d.ts",
|
|
160
|
+
"default": "./fesm2022/masterteam-components-toggle-field.mjs"
|
|
157
161
|
}
|
|
158
162
|
},
|
|
159
163
|
"module": "fesm2022/masterteam-components.mjs",
|