@g-ui-core/angular 0.2.3 → 0.2.5
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/dist/components/Button.d.ts +14 -0
- package/dist/components/Button.d.ts.map +1 -0
- package/dist/components/Button.js +76 -0
- package/dist/components/Button.js.map +1 -0
- package/dist/components/ButtonGroup.d.ts +4 -0
- package/dist/components/ButtonGroup.d.ts.map +1 -0
- package/dist/components/ButtonGroup.js +21 -0
- package/dist/components/ButtonGroup.js.map +1 -0
- package/dist/components/GButton.d.ts +14 -0
- package/dist/components/GButton.d.ts.map +1 -0
- package/dist/components/GButton.js +76 -0
- package/dist/components/GButton.js.map +1 -0
- package/dist/components/GButtonGroup.d.ts +4 -0
- package/dist/components/GButtonGroup.d.ts.map +1 -0
- package/dist/components/GButtonGroup.js +21 -0
- package/dist/components/GButtonGroup.js.map +1 -0
- package/dist/index.d.ts +4 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/package.json +36 -31
- package/dist/button-group.component.d.ts +0 -5
- package/dist/button-group.component.d.ts.map +0 -1
- package/dist/button-group.component.js +0 -31
- package/dist/button-group.component.js.map +0 -1
- package/dist/button.component.d.ts +0 -22
- package/dist/button.component.d.ts.map +0 -1
- package/dist/button.component.js +0 -107
- package/dist/button.component.js.map +0 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import '@g-ui-core/core';
|
|
2
|
+
export declare class Button {
|
|
3
|
+
type: 'default' | 'primary' | 'success' | 'warning' | 'danger' | 'info';
|
|
4
|
+
size: string;
|
|
5
|
+
plain: boolean;
|
|
6
|
+
round: boolean;
|
|
7
|
+
circle: boolean;
|
|
8
|
+
loading: boolean;
|
|
9
|
+
disabled: boolean;
|
|
10
|
+
icon: string;
|
|
11
|
+
nativeType: string;
|
|
12
|
+
autofocus: boolean;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../src/components/Button.ts"],"names":[],"mappings":"AAGA,OAAO,iBAAiB,CAAC;AAEzB,qBAMa,MAAM;IACR,IAAI,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,CAAa;IACpF,IAAI,EAAE,MAAM,CAAa;IACzB,KAAK,EAAE,OAAO,CAAS;IACvB,KAAK,EAAE,OAAO,CAAS;IACvB,MAAM,EAAE,OAAO,CAAS;IACxB,OAAO,EAAE,OAAO,CAAS;IACzB,QAAQ,EAAE,OAAO,CAAS;IAC1B,IAAI,EAAE,MAAM,CAAM;IAClB,UAAU,EAAE,MAAM,CAAY;IAC9B,SAAS,EAAE,OAAO,CAAS;CACrC"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
import { Component, CUSTOM_ELEMENTS_SCHEMA, Input } from '@angular/core';
|
|
12
|
+
import '@g-ui-core/core';
|
|
13
|
+
let Button = class Button {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.type = 'default';
|
|
16
|
+
this.size = 'default';
|
|
17
|
+
this.plain = false;
|
|
18
|
+
this.round = false;
|
|
19
|
+
this.circle = false;
|
|
20
|
+
this.loading = false;
|
|
21
|
+
this.disabled = false;
|
|
22
|
+
this.icon = '';
|
|
23
|
+
this.nativeType = 'button';
|
|
24
|
+
this.autofocus = false;
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
__decorate([
|
|
28
|
+
Input(),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], Button.prototype, "type", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
Input(),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], Button.prototype, "size", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
Input(),
|
|
37
|
+
__metadata("design:type", Boolean)
|
|
38
|
+
], Button.prototype, "plain", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
Input(),
|
|
41
|
+
__metadata("design:type", Boolean)
|
|
42
|
+
], Button.prototype, "round", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
Input(),
|
|
45
|
+
__metadata("design:type", Boolean)
|
|
46
|
+
], Button.prototype, "circle", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
Input(),
|
|
49
|
+
__metadata("design:type", Boolean)
|
|
50
|
+
], Button.prototype, "loading", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
Input(),
|
|
53
|
+
__metadata("design:type", Boolean)
|
|
54
|
+
], Button.prototype, "disabled", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
Input(),
|
|
57
|
+
__metadata("design:type", String)
|
|
58
|
+
], Button.prototype, "icon", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
Input(),
|
|
61
|
+
__metadata("design:type", String)
|
|
62
|
+
], Button.prototype, "nativeType", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
Input(),
|
|
65
|
+
__metadata("design:type", Boolean)
|
|
66
|
+
], Button.prototype, "autofocus", void 0);
|
|
67
|
+
Button = __decorate([
|
|
68
|
+
Component({
|
|
69
|
+
selector: 'g-button',
|
|
70
|
+
standalone: true,
|
|
71
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
72
|
+
template: `<g-button [attr.type]="type" [attr.size]="size" [plain]="plain" [round]="round" [circle]="circle" [loading]="loading" [disabled]="disabled" [attr.icon]="icon" [attr.nativeType]="nativeType" [autofocus]="autofocus"><ng-content /></g-button>`,
|
|
73
|
+
})
|
|
74
|
+
], Button);
|
|
75
|
+
export { Button };
|
|
76
|
+
//# sourceMappingURL=Button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.js","sourceRoot":"","sources":["../../src/components/Button.ts"],"names":[],"mappings":"AAAA,yDAAyD;;;;;;;;;;AAEzD,OAAO,EAAE,SAAS,EAAE,sBAAsB,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACzE,OAAO,iBAAiB,CAAC;AAQlB,IAAM,MAAM,GAAZ,MAAM,MAAM;IAAZ;QACI,SAAI,GAAsE,SAAS,CAAC;QACpF,SAAI,GAAW,SAAS,CAAC;QACzB,UAAK,GAAY,KAAK,CAAC;QACvB,UAAK,GAAY,KAAK,CAAC;QACvB,WAAM,GAAY,KAAK,CAAC;QACxB,YAAO,GAAY,KAAK,CAAC;QACzB,aAAQ,GAAY,KAAK,CAAC;QAC1B,SAAI,GAAW,EAAE,CAAC;QAClB,eAAU,GAAW,QAAQ,CAAC;QAC9B,cAAS,GAAY,KAAK,CAAC;IACtC,CAAC;CAAA,CAAA;AAVU;IAAR,KAAK,EAAE;;oCAAqF;AACpF;IAAR,KAAK,EAAE;;oCAA0B;AACzB;IAAR,KAAK,EAAE;;qCAAwB;AACvB;IAAR,KAAK,EAAE;;qCAAwB;AACvB;IAAR,KAAK,EAAE;;sCAAyB;AACxB;IAAR,KAAK,EAAE;;uCAA0B;AACzB;IAAR,KAAK,EAAE;;wCAA2B;AAC1B;IAAR,KAAK,EAAE;;oCAAmB;AAClB;IAAR,KAAK,EAAE;;0CAA+B;AAC9B;IAAR,KAAK,EAAE;;yCAA4B;AAVzB,MAAM;IANlB,SAAS,CAAC;QACT,QAAQ,EAAE,UAAU;QACpB,UAAU,EAAE,IAAI;QAChB,OAAO,EAAE,CAAC,sBAAsB,CAAC;QACjC,QAAQ,EAAE,iPAAiP;KAC5P,CAAC;GACW,MAAM,CAWlB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ButtonGroup.d.ts","sourceRoot":"","sources":["../../src/components/ButtonGroup.ts"],"names":[],"mappings":"AAGA,OAAO,iBAAiB,CAAC;AAEzB,qBAMa,WAAW;CACvB"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
import { Component, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
|
9
|
+
import '@g-ui-core/core';
|
|
10
|
+
let ButtonGroup = class ButtonGroup {
|
|
11
|
+
};
|
|
12
|
+
ButtonGroup = __decorate([
|
|
13
|
+
Component({
|
|
14
|
+
selector: 'g-button-group',
|
|
15
|
+
standalone: true,
|
|
16
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
17
|
+
template: `<g-button-group><ng-content /></g-button-group>`,
|
|
18
|
+
})
|
|
19
|
+
], ButtonGroup);
|
|
20
|
+
export { ButtonGroup };
|
|
21
|
+
//# sourceMappingURL=ButtonGroup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ButtonGroup.js","sourceRoot":"","sources":["../../src/components/ButtonGroup.ts"],"names":[],"mappings":"AAAA,yDAAyD;;;;;;;AAEzD,OAAO,EAAE,SAAS,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAClE,OAAO,iBAAiB,CAAC;AAQlB,IAAM,WAAW,GAAjB,MAAM,WAAW;CACvB,CAAA;AADY,WAAW;IANvB,SAAS,CAAC;QACT,QAAQ,EAAE,gBAAgB;QAC1B,UAAU,EAAE,IAAI;QAChB,OAAO,EAAE,CAAC,sBAAsB,CAAC;QACjC,QAAQ,EAAE,iDAAiD;KAC5D,CAAC;GACW,WAAW,CACvB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import '@g-ui-core/core';
|
|
2
|
+
export declare class GButton {
|
|
3
|
+
type: 'default' | 'primary' | 'success' | 'warning' | 'danger' | 'info';
|
|
4
|
+
size: string;
|
|
5
|
+
plain: boolean;
|
|
6
|
+
round: boolean;
|
|
7
|
+
circle: boolean;
|
|
8
|
+
loading: boolean;
|
|
9
|
+
disabled: boolean;
|
|
10
|
+
icon: string;
|
|
11
|
+
nativeType: string;
|
|
12
|
+
autofocus: boolean;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=GButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GButton.d.ts","sourceRoot":"","sources":["../../src/components/GButton.ts"],"names":[],"mappings":"AAGA,OAAO,iBAAiB,CAAC;AAEzB,qBAMa,OAAO;IACT,IAAI,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,CAAa;IACpF,IAAI,EAAE,MAAM,CAAa;IACzB,KAAK,EAAE,OAAO,CAAS;IACvB,KAAK,EAAE,OAAO,CAAS;IACvB,MAAM,EAAE,OAAO,CAAS;IACxB,OAAO,EAAE,OAAO,CAAS;IACzB,QAAQ,EAAE,OAAO,CAAS;IAC1B,IAAI,EAAE,MAAM,CAAM;IAClB,UAAU,EAAE,MAAM,CAAY;IAC9B,SAAS,EAAE,OAAO,CAAS;CACrC"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
import { Component, CUSTOM_ELEMENTS_SCHEMA, Input } from '@angular/core';
|
|
12
|
+
import '@g-ui-core/core';
|
|
13
|
+
let GButton = class GButton {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.type = 'default';
|
|
16
|
+
this.size = 'default';
|
|
17
|
+
this.plain = false;
|
|
18
|
+
this.round = false;
|
|
19
|
+
this.circle = false;
|
|
20
|
+
this.loading = false;
|
|
21
|
+
this.disabled = false;
|
|
22
|
+
this.icon = '';
|
|
23
|
+
this.nativeType = 'button';
|
|
24
|
+
this.autofocus = false;
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
__decorate([
|
|
28
|
+
Input(),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], GButton.prototype, "type", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
Input(),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], GButton.prototype, "size", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
Input(),
|
|
37
|
+
__metadata("design:type", Boolean)
|
|
38
|
+
], GButton.prototype, "plain", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
Input(),
|
|
41
|
+
__metadata("design:type", Boolean)
|
|
42
|
+
], GButton.prototype, "round", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
Input(),
|
|
45
|
+
__metadata("design:type", Boolean)
|
|
46
|
+
], GButton.prototype, "circle", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
Input(),
|
|
49
|
+
__metadata("design:type", Boolean)
|
|
50
|
+
], GButton.prototype, "loading", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
Input(),
|
|
53
|
+
__metadata("design:type", Boolean)
|
|
54
|
+
], GButton.prototype, "disabled", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
Input(),
|
|
57
|
+
__metadata("design:type", String)
|
|
58
|
+
], GButton.prototype, "icon", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
Input(),
|
|
61
|
+
__metadata("design:type", String)
|
|
62
|
+
], GButton.prototype, "nativeType", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
Input(),
|
|
65
|
+
__metadata("design:type", Boolean)
|
|
66
|
+
], GButton.prototype, "autofocus", void 0);
|
|
67
|
+
GButton = __decorate([
|
|
68
|
+
Component({
|
|
69
|
+
selector: 'g-button',
|
|
70
|
+
standalone: true,
|
|
71
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
72
|
+
template: `<g-button [attr.type]="type" [attr.size]="size" [plain]="plain" [round]="round" [circle]="circle" [loading]="loading" [disabled]="disabled" [attr.icon]="icon" [attr.nativeType]="nativeType" [autofocus]="autofocus"><ng-content /></g-button>`,
|
|
73
|
+
})
|
|
74
|
+
], GButton);
|
|
75
|
+
export { GButton };
|
|
76
|
+
//# sourceMappingURL=GButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GButton.js","sourceRoot":"","sources":["../../src/components/GButton.ts"],"names":[],"mappings":"AAAA,yDAAyD;;;;;;;;;;AAEzD,OAAO,EAAE,SAAS,EAAE,sBAAsB,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACzE,OAAO,iBAAiB,CAAC;AAQlB,IAAM,OAAO,GAAb,MAAM,OAAO;IAAb;QACI,SAAI,GAAsE,SAAS,CAAC;QACpF,SAAI,GAAW,SAAS,CAAC;QACzB,UAAK,GAAY,KAAK,CAAC;QACvB,UAAK,GAAY,KAAK,CAAC;QACvB,WAAM,GAAY,KAAK,CAAC;QACxB,YAAO,GAAY,KAAK,CAAC;QACzB,aAAQ,GAAY,KAAK,CAAC;QAC1B,SAAI,GAAW,EAAE,CAAC;QAClB,eAAU,GAAW,QAAQ,CAAC;QAC9B,cAAS,GAAY,KAAK,CAAC;IACtC,CAAC;CAAA,CAAA;AAVU;IAAR,KAAK,EAAE;;qCAAqF;AACpF;IAAR,KAAK,EAAE;;qCAA0B;AACzB;IAAR,KAAK,EAAE;;sCAAwB;AACvB;IAAR,KAAK,EAAE;;sCAAwB;AACvB;IAAR,KAAK,EAAE;;uCAAyB;AACxB;IAAR,KAAK,EAAE;;wCAA0B;AACzB;IAAR,KAAK,EAAE;;yCAA2B;AAC1B;IAAR,KAAK,EAAE;;qCAAmB;AAClB;IAAR,KAAK,EAAE;;2CAA+B;AAC9B;IAAR,KAAK,EAAE;;0CAA4B;AAVzB,OAAO;IANnB,SAAS,CAAC;QACT,QAAQ,EAAE,UAAU;QACpB,UAAU,EAAE,IAAI;QAChB,OAAO,EAAE,CAAC,sBAAsB,CAAC;QACjC,QAAQ,EAAE,iPAAiP;KAC5P,CAAC;GACW,OAAO,CAWnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GButtonGroup.d.ts","sourceRoot":"","sources":["../../src/components/GButtonGroup.ts"],"names":[],"mappings":"AAGA,OAAO,iBAAiB,CAAC;AAEzB,qBAMa,YAAY;CACxB"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
import { Component, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
|
9
|
+
import '@g-ui-core/core';
|
|
10
|
+
let GButtonGroup = class GButtonGroup {
|
|
11
|
+
};
|
|
12
|
+
GButtonGroup = __decorate([
|
|
13
|
+
Component({
|
|
14
|
+
selector: 'g-button-group',
|
|
15
|
+
standalone: true,
|
|
16
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
17
|
+
template: `<g-button-group><ng-content /></g-button-group>`,
|
|
18
|
+
})
|
|
19
|
+
], GButtonGroup);
|
|
20
|
+
export { GButtonGroup };
|
|
21
|
+
//# sourceMappingURL=GButtonGroup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GButtonGroup.js","sourceRoot":"","sources":["../../src/components/GButtonGroup.ts"],"names":[],"mappings":"AAAA,yDAAyD;;;;;;;AAEzD,OAAO,EAAE,SAAS,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAClE,OAAO,iBAAiB,CAAC;AAQlB,IAAM,YAAY,GAAlB,MAAM,YAAY;CACxB,CAAA;AADY,YAAY;IANxB,SAAS,CAAC;QACT,QAAQ,EAAE,gBAAgB;QAC1B,UAAU,EAAE,IAAI;QAChB,OAAO,EAAE,CAAC,sBAAsB,CAAC;QACjC,QAAQ,EAAE,iDAAiD;KAC5D,CAAC;GACW,YAAY,CACxB"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
1
|
+
export { Button } from './components/Button.js';
|
|
2
|
+
export { ButtonGroup } from './components/ButtonGroup.js';
|
|
3
|
+
export { GButton } from './components/GButton.js';
|
|
4
|
+
export { GButtonGroup } from './components/GButtonGroup.js';
|
|
3
5
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
1
|
+
// Auto-generated by @arclux/prism — do not edit manually
|
|
2
|
+
export { Button } from './components/Button.js';
|
|
3
|
+
export { ButtonGroup } from './components/ButtonGroup.js';
|
|
4
|
+
export { GButton } from './components/GButton.js';
|
|
5
|
+
export { GButtonGroup } from './components/GButtonGroup.js';
|
|
3
6
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,yDAAyD;AAEzD,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,31 +1,36 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@g-ui-core/angular",
|
|
3
|
-
"version": "0.2.
|
|
4
|
-
"description": "Angular wrappers for g-ui-core components",
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
},
|
|
19
|
-
"
|
|
20
|
-
"@
|
|
21
|
-
"@
|
|
22
|
-
"
|
|
23
|
-
},
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@g-ui-core/angular",
|
|
3
|
+
"version": "0.2.5",
|
|
4
|
+
"description": "Angular wrappers for g-ui-core components",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"import": "./dist/index.js",
|
|
11
|
+
"types": "./dist/index.d.ts"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"files": ["dist"],
|
|
15
|
+
"scripts": {
|
|
16
|
+
"build": "tsc",
|
|
17
|
+
"clean": "rm -rf dist"
|
|
18
|
+
},
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"@g-ui-core/core": "^0.2.0",
|
|
21
|
+
"@g-ui-core/shared": "^0.2.0",
|
|
22
|
+
"tslib": "^2.6.0"
|
|
23
|
+
},
|
|
24
|
+
"peerDependencies": {
|
|
25
|
+
"@angular/core": ">=17",
|
|
26
|
+
"@angular/common": ">=17"
|
|
27
|
+
},
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"@angular/core": "^17.3.0",
|
|
30
|
+
"@angular/common": "^17.3.0",
|
|
31
|
+
"typescript": "^5.4.0"
|
|
32
|
+
},
|
|
33
|
+
"publishConfig": {
|
|
34
|
+
"access": "public"
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"button-group.component.d.ts","sourceRoot":"","sources":["../src/button-group.component.ts"],"names":[],"mappings":"AAWA,qBAIa,oBAAoB;CAAG;AAEpC,qBAKa,kBAAkB;CAAG"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
import { Component, NgModule, CUSTOM_ELEMENTS_SCHEMA, } from '@angular/core';
|
|
8
|
-
import { GButtonGroup as GButtonGroupElement } from '@g-ui-core/core';
|
|
9
|
-
void GButtonGroupElement;
|
|
10
|
-
import { getNamespace } from '@g-ui-core/shared';
|
|
11
|
-
const tag = `${getNamespace()}-button-group`;
|
|
12
|
-
let ButtonGroupComponent = class ButtonGroupComponent {
|
|
13
|
-
};
|
|
14
|
-
ButtonGroupComponent = __decorate([
|
|
15
|
-
Component({
|
|
16
|
-
selector: tag,
|
|
17
|
-
template: `<ng-content></ng-content>`,
|
|
18
|
-
})
|
|
19
|
-
], ButtonGroupComponent);
|
|
20
|
-
export { ButtonGroupComponent };
|
|
21
|
-
let GButtonGroupModule = class GButtonGroupModule {
|
|
22
|
-
};
|
|
23
|
-
GButtonGroupModule = __decorate([
|
|
24
|
-
NgModule({
|
|
25
|
-
declarations: [ButtonGroupComponent],
|
|
26
|
-
exports: [ButtonGroupComponent],
|
|
27
|
-
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
28
|
-
})
|
|
29
|
-
], GButtonGroupModule);
|
|
30
|
-
export { GButtonGroupModule };
|
|
31
|
-
//# sourceMappingURL=button-group.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"button-group.component.js","sourceRoot":"","sources":["../src/button-group.component.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EACL,SAAS,EACT,QAAQ,EACR,sBAAsB,GACvB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,YAAY,IAAI,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACtE,KAAK,mBAAmB,CAAC;AACzB,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,MAAM,GAAG,GAAG,GAAG,YAAY,EAAE,eAAe,CAAC;AAMtC,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;CAAG,CAAA;AAAvB,oBAAoB;IAJhC,SAAS,CAAC;QACT,QAAQ,EAAE,GAAG;QACb,QAAQ,EAAE,2BAA2B;KACtC,CAAC;GACW,oBAAoB,CAAG;;AAO7B,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;CAAG,CAAA;AAArB,kBAAkB;IAL9B,QAAQ,CAAC;QACR,YAAY,EAAE,CAAC,oBAAoB,CAAC;QACpC,OAAO,EAAE,CAAC,oBAAoB,CAAC;QAC/B,OAAO,EAAE,CAAC,sBAAsB,CAAC;KAClC,CAAC;GACW,kBAAkB,CAAG"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { EventEmitter, ElementRef, AfterViewInit } from '@angular/core';
|
|
2
|
-
import { GButton, type ButtonType } from '@g-ui-core/core';
|
|
3
|
-
import { type Size } from '@g-ui-core/shared';
|
|
4
|
-
export declare class ButtonComponent implements AfterViewInit {
|
|
5
|
-
private el;
|
|
6
|
-
type: ButtonType;
|
|
7
|
-
size: Size;
|
|
8
|
-
plain: boolean;
|
|
9
|
-
round: boolean;
|
|
10
|
-
circle: boolean;
|
|
11
|
-
loading: boolean;
|
|
12
|
-
disabled: boolean;
|
|
13
|
-
icon: string;
|
|
14
|
-
nativeType: 'button' | 'submit' | 'reset';
|
|
15
|
-
autofocus: boolean;
|
|
16
|
-
clickEvent: EventEmitter<Event>;
|
|
17
|
-
constructor(el: ElementRef<GButton>);
|
|
18
|
-
ngAfterViewInit(): void;
|
|
19
|
-
}
|
|
20
|
-
export declare class GUIModule {
|
|
21
|
-
}
|
|
22
|
-
//# sourceMappingURL=button.component.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"button.component.d.ts","sourceRoot":"","sources":["../src/button.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,YAAY,EACZ,UAAU,EAGV,aAAa,EACd,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAgB,KAAK,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAI5D,qBAIa,eAAgB,YAAW,aAAa;IAavC,OAAO,CAAC,EAAE;IAZb,IAAI,EAAE,UAAU,CAAa;IAC7B,IAAI,EAAE,IAAI,CAAa;IACvB,KAAK,UAAS;IACd,KAAK,UAAS;IACd,MAAM,UAAS;IACf,OAAO,UAAS;IAChB,QAAQ,UAAS;IACjB,IAAI,SAAM;IACV,UAAU,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAY;IACrD,SAAS,UAAS;IACjB,UAAU,sBAA6B;gBAE7B,EAAE,EAAE,UAAU,CAAC,OAAO,CAAC;IAE3C,eAAe;CAkBhB;AAED,qBAKa,SAAS;CAAG"}
|
package/dist/button.component.js
DELETED
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
-
};
|
|
10
|
-
import { Component, Input, Output, EventEmitter, ElementRef, NgModule, CUSTOM_ELEMENTS_SCHEMA, } from '@angular/core';
|
|
11
|
-
import { getNamespace } from '@g-ui-core/shared';
|
|
12
|
-
const tag = `${getNamespace()}-button`;
|
|
13
|
-
let ButtonComponent = class ButtonComponent {
|
|
14
|
-
constructor(el) {
|
|
15
|
-
this.el = el;
|
|
16
|
-
this.type = 'primary';
|
|
17
|
-
this.size = 'default';
|
|
18
|
-
this.plain = false;
|
|
19
|
-
this.round = false;
|
|
20
|
-
this.circle = false;
|
|
21
|
-
this.loading = false;
|
|
22
|
-
this.disabled = false;
|
|
23
|
-
this.icon = '';
|
|
24
|
-
this.nativeType = 'button';
|
|
25
|
-
this.autofocus = false;
|
|
26
|
-
this.clickEvent = new EventEmitter();
|
|
27
|
-
}
|
|
28
|
-
ngAfterViewInit() {
|
|
29
|
-
const native = this.el.nativeElement;
|
|
30
|
-
// 同步属性到 Web Component
|
|
31
|
-
native.type = this.type;
|
|
32
|
-
native.size = this.size;
|
|
33
|
-
native.plain = this.plain;
|
|
34
|
-
native.round = this.round;
|
|
35
|
-
native.circle = this.circle;
|
|
36
|
-
native.loading = this.loading;
|
|
37
|
-
native.disabled = this.disabled;
|
|
38
|
-
native.icon = this.icon;
|
|
39
|
-
native.nativeType = this.nativeType;
|
|
40
|
-
native.autofocus = this.autofocus;
|
|
41
|
-
// 转发 click 事件
|
|
42
|
-
native.addEventListener('click', (e) => this.clickEvent.emit(e));
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
__decorate([
|
|
46
|
-
Input(),
|
|
47
|
-
__metadata("design:type", String)
|
|
48
|
-
], ButtonComponent.prototype, "type", void 0);
|
|
49
|
-
__decorate([
|
|
50
|
-
Input(),
|
|
51
|
-
__metadata("design:type", String)
|
|
52
|
-
], ButtonComponent.prototype, "size", void 0);
|
|
53
|
-
__decorate([
|
|
54
|
-
Input(),
|
|
55
|
-
__metadata("design:type", Object)
|
|
56
|
-
], ButtonComponent.prototype, "plain", void 0);
|
|
57
|
-
__decorate([
|
|
58
|
-
Input(),
|
|
59
|
-
__metadata("design:type", Object)
|
|
60
|
-
], ButtonComponent.prototype, "round", void 0);
|
|
61
|
-
__decorate([
|
|
62
|
-
Input(),
|
|
63
|
-
__metadata("design:type", Object)
|
|
64
|
-
], ButtonComponent.prototype, "circle", void 0);
|
|
65
|
-
__decorate([
|
|
66
|
-
Input(),
|
|
67
|
-
__metadata("design:type", Object)
|
|
68
|
-
], ButtonComponent.prototype, "loading", void 0);
|
|
69
|
-
__decorate([
|
|
70
|
-
Input(),
|
|
71
|
-
__metadata("design:type", Object)
|
|
72
|
-
], ButtonComponent.prototype, "disabled", void 0);
|
|
73
|
-
__decorate([
|
|
74
|
-
Input(),
|
|
75
|
-
__metadata("design:type", Object)
|
|
76
|
-
], ButtonComponent.prototype, "icon", void 0);
|
|
77
|
-
__decorate([
|
|
78
|
-
Input(),
|
|
79
|
-
__metadata("design:type", String)
|
|
80
|
-
], ButtonComponent.prototype, "nativeType", void 0);
|
|
81
|
-
__decorate([
|
|
82
|
-
Input(),
|
|
83
|
-
__metadata("design:type", Object)
|
|
84
|
-
], ButtonComponent.prototype, "autofocus", void 0);
|
|
85
|
-
__decorate([
|
|
86
|
-
Output(),
|
|
87
|
-
__metadata("design:type", Object)
|
|
88
|
-
], ButtonComponent.prototype, "clickEvent", void 0);
|
|
89
|
-
ButtonComponent = __decorate([
|
|
90
|
-
Component({
|
|
91
|
-
selector: tag,
|
|
92
|
-
template: `<ng-content></ng-content>`,
|
|
93
|
-
}),
|
|
94
|
-
__metadata("design:paramtypes", [ElementRef])
|
|
95
|
-
], ButtonComponent);
|
|
96
|
-
export { ButtonComponent };
|
|
97
|
-
let GUIModule = class GUIModule {
|
|
98
|
-
};
|
|
99
|
-
GUIModule = __decorate([
|
|
100
|
-
NgModule({
|
|
101
|
-
declarations: [ButtonComponent],
|
|
102
|
-
exports: [ButtonComponent],
|
|
103
|
-
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
104
|
-
})
|
|
105
|
-
], GUIModule);
|
|
106
|
-
export { GUIModule };
|
|
107
|
-
//# sourceMappingURL=button.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"button.component.js","sourceRoot":"","sources":["../src/button.component.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,SAAS,EACT,KAAK,EACL,MAAM,EACN,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,sBAAsB,GAEvB,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,YAAY,EAAa,MAAM,mBAAmB,CAAC;AAE5D,MAAM,GAAG,GAAG,GAAG,YAAY,EAAE,SAAS,CAAC;AAMhC,IAAM,eAAe,GAArB,MAAM,eAAe;IAa1B,YAAoB,EAAuB;QAAvB,OAAE,GAAF,EAAE,CAAqB;QAZlC,SAAI,GAAe,SAAS,CAAC;QAC7B,SAAI,GAAS,SAAS,CAAC;QACvB,UAAK,GAAG,KAAK,CAAC;QACd,UAAK,GAAG,KAAK,CAAC;QACd,WAAM,GAAG,KAAK,CAAC;QACf,YAAO,GAAG,KAAK,CAAC;QAChB,aAAQ,GAAG,KAAK,CAAC;QACjB,SAAI,GAAG,EAAE,CAAC;QACV,eAAU,GAAkC,QAAQ,CAAC;QACrD,cAAS,GAAG,KAAK,CAAC;QACjB,eAAU,GAAG,IAAI,YAAY,EAAS,CAAC;IAEH,CAAC;IAE/C,eAAe;QACb,MAAM,MAAM,GAAG,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC;QAErC,sBAAsB;QACtB,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC,IAAW,CAAC;QAC/B,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC,IAAW,CAAC;QAC/B,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QAC1B,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QAC1B,MAAM,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;QAC5B,MAAM,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;QAC9B,MAAM,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;QAChC,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QACvB,MAAc,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;QAC7C,MAAM,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;QAElC,cAAc;QACd,MAAM,CAAC,gBAAgB,CAAC,OAAO,EAAE,CAAC,CAAQ,EAAE,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;IAC1E,CAAC;CACF,CAAA;AAhCU;IAAR,KAAK,EAAE;;6CAA8B;AAC7B;IAAR,KAAK,EAAE;;6CAAwB;AACvB;IAAR,KAAK,EAAE;;8CAAe;AACd;IAAR,KAAK,EAAE;;8CAAe;AACd;IAAR,KAAK,EAAE;;+CAAgB;AACf;IAAR,KAAK,EAAE;;gDAAiB;AAChB;IAAR,KAAK,EAAE;;iDAAkB;AACjB;IAAR,KAAK,EAAE;;6CAAW;AACV;IAAR,KAAK,EAAE;;mDAAsD;AACrD;IAAR,KAAK,EAAE;;kDAAmB;AACjB;IAAT,MAAM,EAAE;;mDAAwC;AAXtC,eAAe;IAJ3B,SAAS,CAAC;QACT,QAAQ,EAAE,GAAG;QACb,QAAQ,EAAE,2BAA2B;KACtC,CAAC;qCAcwB,UAAU;GAbvB,eAAe,CAiC3B;;AAOM,IAAM,SAAS,GAAf,MAAM,SAAS;CAAG,CAAA;AAAZ,SAAS;IALrB,QAAQ,CAAC;QACR,YAAY,EAAE,CAAC,eAAe,CAAC;QAC/B,OAAO,EAAE,CAAC,eAAe,CAAC;QAC1B,OAAO,EAAE,CAAC,sBAAsB,CAAC;KAClC,CAAC;GACW,SAAS,CAAG"}
|