@hsuite/native-connect-ui 2.1.2 → 2.2.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/dist/LICENSE +146 -0
- package/dist/fesm2022/{hsuite-native-connect-ui-responsive-menu-popover.component-BD6MCUbp.mjs → hsuite-native-connect-ui-responsive-menu-popover.component-BTzQGOHM.mjs} +4 -4
- package/dist/fesm2022/{hsuite-native-connect-ui-responsive-menu-popover.component-BD6MCUbp.mjs.map → hsuite-native-connect-ui-responsive-menu-popover.component-BTzQGOHM.mjs.map} +1 -1
- package/dist/fesm2022/hsuite-native-connect-ui.mjs +899 -371
- package/dist/fesm2022/hsuite-native-connect-ui.mjs.map +1 -1
- package/dist/index.d.ts +152 -6
- package/package.json +27 -27
package/dist/LICENSE
ADDED
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
# PolyForm Noncommercial License 1.0.0
|
|
2
|
+
|
|
3
|
+
<https://polyformproject.org/licenses/noncommercial/1.0.0>
|
|
4
|
+
|
|
5
|
+
## Acceptance
|
|
6
|
+
|
|
7
|
+
In order to get any license under these terms, you must agree
|
|
8
|
+
to them as both strict obligations and conditions to all
|
|
9
|
+
your licenses.
|
|
10
|
+
|
|
11
|
+
## Copyright License
|
|
12
|
+
|
|
13
|
+
The licensor grants you a copyright license for the
|
|
14
|
+
software to do everything you might do with the software
|
|
15
|
+
that would otherwise infringe the licensor's copyright
|
|
16
|
+
in it for any permitted purpose. However, you may
|
|
17
|
+
only distribute the software according to [Distribution
|
|
18
|
+
License](#distribution-license) and make changes or new works
|
|
19
|
+
based on the software according to [Changes and New Works
|
|
20
|
+
License](#changes-and-new-works-license).
|
|
21
|
+
|
|
22
|
+
## Distribution License
|
|
23
|
+
|
|
24
|
+
The licensor grants you an additional copyright license
|
|
25
|
+
to distribute copies of the software. Your license
|
|
26
|
+
to distribute covers distributing the software with
|
|
27
|
+
changes and new works permitted by [Changes and New Works
|
|
28
|
+
License](#changes-and-new-works-license).
|
|
29
|
+
|
|
30
|
+
## Notices
|
|
31
|
+
|
|
32
|
+
You must ensure that anyone who gets a copy of any part of
|
|
33
|
+
the software from you also gets a copy of these terms or the
|
|
34
|
+
URL for them above, as well as copies of any plain-text lines
|
|
35
|
+
beginning with `Required Notice:` that the licensor provided
|
|
36
|
+
with the software. For example:
|
|
37
|
+
|
|
38
|
+
> Required Notice: Copyright HSuite (https://hsuite.finance)
|
|
39
|
+
|
|
40
|
+
## Changes and New Works License
|
|
41
|
+
|
|
42
|
+
The licensor grants you an additional copyright license to
|
|
43
|
+
make changes and new works based on the software for any
|
|
44
|
+
permitted purpose.
|
|
45
|
+
|
|
46
|
+
## Patent License
|
|
47
|
+
|
|
48
|
+
The licensor grants you a patent license for the software that
|
|
49
|
+
covers patent claims the licensor can license, or becomes able
|
|
50
|
+
to license, that you would infringe by using the software.
|
|
51
|
+
|
|
52
|
+
## Noncommercial Purposes
|
|
53
|
+
|
|
54
|
+
Any noncommercial purpose is a permitted purpose.
|
|
55
|
+
|
|
56
|
+
## Personal Uses
|
|
57
|
+
|
|
58
|
+
Personal use for research, experiment, and testing for
|
|
59
|
+
the benefit of public knowledge, personal study, private
|
|
60
|
+
entertainment, hobby projects, amateur pursuits, or religious
|
|
61
|
+
observance, without any anticipated commercial application,
|
|
62
|
+
is use for a permitted purpose.
|
|
63
|
+
|
|
64
|
+
## Noncommercial Organizations
|
|
65
|
+
|
|
66
|
+
Use by any charitable organization, educational institution,
|
|
67
|
+
public research organization, public safety or health
|
|
68
|
+
organization, environmental protection organization,
|
|
69
|
+
or government institution is use for a permitted purpose
|
|
70
|
+
regardless of the source of funding or obligations resulting
|
|
71
|
+
from the funding.
|
|
72
|
+
|
|
73
|
+
## Fair Use
|
|
74
|
+
|
|
75
|
+
You may have "fair use" rights for the software under the
|
|
76
|
+
law. These terms do not limit them.
|
|
77
|
+
|
|
78
|
+
## No Other Rights
|
|
79
|
+
|
|
80
|
+
These terms do not allow you to sublicense or transfer any of
|
|
81
|
+
your licenses to anyone else, or prevent the licensor from
|
|
82
|
+
granting licenses to anyone else. These terms do not imply
|
|
83
|
+
any other licenses.
|
|
84
|
+
|
|
85
|
+
## Patent Defense
|
|
86
|
+
|
|
87
|
+
If you make any written claim that the software infringes or
|
|
88
|
+
contributes to infringement of any patent, your patent license
|
|
89
|
+
for the software granted under these terms ends immediately. If
|
|
90
|
+
your company makes such a claim, your patent license ends
|
|
91
|
+
immediately for work on behalf of your company.
|
|
92
|
+
|
|
93
|
+
## Violations
|
|
94
|
+
|
|
95
|
+
The first time you are notified in writing that you have
|
|
96
|
+
violated any of these terms, or done anything with the software
|
|
97
|
+
not covered by your licenses, your licenses can nonetheless
|
|
98
|
+
continue if you come into full compliance with these terms,
|
|
99
|
+
and take practical steps to correct past violations, within
|
|
100
|
+
32 days of receiving notice. Otherwise, all your licenses
|
|
101
|
+
end immediately.
|
|
102
|
+
|
|
103
|
+
## No Liability
|
|
104
|
+
|
|
105
|
+
***As far as the law allows, the software comes as is, without
|
|
106
|
+
any warranty or condition, and the licensor will not be liable
|
|
107
|
+
to you for any damages arising out of these terms or the use
|
|
108
|
+
or nature of the software, under any kind of legal claim.***
|
|
109
|
+
|
|
110
|
+
## Definitions
|
|
111
|
+
|
|
112
|
+
The **licensor** is the entity offering these terms, and the
|
|
113
|
+
**software** is the software the licensor makes available under
|
|
114
|
+
these terms.
|
|
115
|
+
|
|
116
|
+
**You** refers to the individual or entity agreeing to these
|
|
117
|
+
terms.
|
|
118
|
+
|
|
119
|
+
**Your company** is any legal entity, sole proprietorship,
|
|
120
|
+
or other kind of organization that you work for, plus all
|
|
121
|
+
organizations that have control over, are under the control of,
|
|
122
|
+
or are under common control with that organization. **Control**
|
|
123
|
+
means ownership of substantially all the assets of an entity,
|
|
124
|
+
or the power to direct its management and policies by vote,
|
|
125
|
+
contract, or otherwise. Control can be direct or indirect.
|
|
126
|
+
|
|
127
|
+
**Your licenses** are all the licenses granted to you for the
|
|
128
|
+
software under these terms.
|
|
129
|
+
|
|
130
|
+
**Use** means anything you do with the software requiring one
|
|
131
|
+
of your licenses.
|
|
132
|
+
|
|
133
|
+
---
|
|
134
|
+
|
|
135
|
+
Required Notice: Copyright 2024-2025 HSuite (https://hsuite.finance)
|
|
136
|
+
|
|
137
|
+
## Commercial Licensing
|
|
138
|
+
|
|
139
|
+
For commercial use of HSuite Native Connect, please contact:
|
|
140
|
+
- Email: licensing@hsuite.finance
|
|
141
|
+
- Website: https://hsuite.finance/licensing
|
|
142
|
+
|
|
143
|
+
Commercial licenses are available for:
|
|
144
|
+
- Integration into commercial products
|
|
145
|
+
- Enterprise deployments
|
|
146
|
+
- Reselling or redistribution as part of commercial offerings
|
|
@@ -39,8 +39,8 @@ class ResponsiveMenuPopoverComponent {
|
|
|
39
39
|
selectItem(action) {
|
|
40
40
|
this.popover.dismiss(action);
|
|
41
41
|
}
|
|
42
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
43
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
42
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ResponsiveMenuPopoverComponent, deps: [{ token: i1.PopoverController }], target: i0.ɵɵFactoryTarget.Component });
|
|
43
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.26", type: ResponsiveMenuPopoverComponent, isStandalone: true, selector: "hs-responsive-menu-popover", inputs: { items: "items" }, ngImport: i0, template: `
|
|
44
44
|
<ion-list lines="none" class="menu-list">
|
|
45
45
|
<ion-item
|
|
46
46
|
*ngFor="let item of items"
|
|
@@ -55,7 +55,7 @@ class ResponsiveMenuPopoverComponent {
|
|
|
55
55
|
</ion-list>
|
|
56
56
|
`, isInline: true, styles: [".menu-list{--background: var(--token-surface-2, var(--ion-color-step-50));padding:var(--token-space-1, 4px) 0}.menu-list ion-item{--background: transparent;--background-hover: var( --token-interactive-hover, rgba(var(--ion-color-primary-rgb), .1) );--padding-start: var(--token-space-4, 16px);--padding-end: var(--token-space-4, 16px);--min-height: var(--token-touch-target-sm, 44px);--color: var(--ion-text-color);font-size:var(--token-font-size-2, .875rem);cursor:pointer;transition:background-color var(--token-transition-fast, .15s) ease}.menu-list ion-item ion-icon{color:var(--token-text-secondary, var(--ion-color-medium));font-size:var(--token-font-size-4, 1.25rem);margin-right:var(--token-space-3, 12px)}.menu-list ion-item:hover{--background: var(--token-interactive-hover, rgba(var(--ion-color-primary-rgb), .1))}.menu-list ion-item:hover ion-icon{color:var(--ion-color-primary)}.menu-list ion-item.destructive{--color: var(--ion-color-danger)}.menu-list ion-item.destructive ion-icon{color:var(--ion-color-danger)}.menu-list ion-item.destructive:hover{--background: rgba(var(--ion-color-danger-rgb), .1)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: IonList, selector: "ion-list", inputs: ["inset", "lines", "mode"] }, { kind: "component", type: IonItem, selector: "ion-item", inputs: ["button", "color", "detail", "detailIcon", "disabled", "download", "href", "lines", "mode", "rel", "routerAnimation", "routerDirection", "target", "type"] }, { kind: "component", type: IonLabel, selector: "ion-label", inputs: ["color", "mode", "position"] }, { kind: "component", type: IonIcon, selector: "ion-icon", inputs: ["color", "flipRtl", "icon", "ios", "lazy", "md", "mode", "name", "sanitize", "size", "src"] }] });
|
|
57
57
|
}
|
|
58
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
58
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ResponsiveMenuPopoverComponent, decorators: [{
|
|
59
59
|
type: Component,
|
|
60
60
|
args: [{ selector: 'hs-responsive-menu-popover', standalone: true, imports: [CommonModule, IonList, IonItem, IonLabel, IonIcon], template: `
|
|
61
61
|
<ion-list lines="none" class="menu-list">
|
|
@@ -76,4 +76,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImpo
|
|
|
76
76
|
}] } });
|
|
77
77
|
|
|
78
78
|
export { ResponsiveMenuPopoverComponent };
|
|
79
|
-
//# sourceMappingURL=hsuite-native-connect-ui-responsive-menu-popover.component-
|
|
79
|
+
//# sourceMappingURL=hsuite-native-connect-ui-responsive-menu-popover.component-BTzQGOHM.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hsuite-native-connect-ui-responsive-menu-popover.component-
|
|
1
|
+
{"version":3,"file":"hsuite-native-connect-ui-responsive-menu-popover.component-BTzQGOHM.mjs","sources":["../../src/lib/services/responsive-menu-popover.component.ts"],"sourcesContent":["/**\n * HSuite Native Connect\n * Copyright 2024-2025 HSuite (https://hsuite.finance)\n *\n * SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0\n *\n * This file is part of HSuite Native Connect. For commercial licensing,\n * visit https://hsuite.finance/licensing\n */\n\nimport { Component, Input } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { IonList, IonItem, IonLabel, IonIcon, PopoverController } from '@ionic/angular/standalone';\nimport { addIcons } from 'ionicons';\nimport { checkmark } from 'ionicons/icons';\nimport type { ResponsiveMenuItem } from './responsive-menu.service';\n\n/**\n * @component ResponsiveMenuPopoverComponent\n * Internal popover content component used by ResponsiveMenuService.\n * Displays a list of menu items in a styled popover for desktop devices.\n *\n * This component is dynamically loaded by the service and should not\n * be used directly in templates.\n */\n@Component({\n selector: 'hs-responsive-menu-popover',\n standalone: true,\n imports: [CommonModule, IonList, IonItem, IonLabel, IonIcon],\n template: `\n <ion-list lines=\"none\" class=\"menu-list\">\n <ion-item\n *ngFor=\"let item of items\"\n button\n [detail]=\"false\"\n [class.destructive]=\"item.destructive\"\n (click)=\"selectItem(item.action)\"\n >\n <ion-icon *ngIf=\"item.icon\" [name]=\"item.icon\" slot=\"start\"></ion-icon>\n <ion-label>{{ item.label }}</ion-label>\n </ion-item>\n </ion-list>\n `,\n styles: [\n `\n .menu-list {\n --background: var(--token-surface-2, var(--ion-color-step-50));\n padding: var(--token-space-1, 4px) 0;\n\n ion-item {\n --background: transparent;\n --background-hover: var(\n --token-interactive-hover,\n rgba(var(--ion-color-primary-rgb), 0.1)\n );\n --padding-start: var(--token-space-4, 16px);\n --padding-end: var(--token-space-4, 16px);\n --min-height: var(--token-touch-target-sm, 44px);\n --color: var(--ion-text-color);\n font-size: var(--token-font-size-2, 0.875rem);\n cursor: pointer;\n transition: background-color var(--token-transition-fast, 150ms) ease;\n\n ion-icon {\n color: var(--token-text-secondary, var(--ion-color-medium));\n font-size: var(--token-font-size-4, 1.25rem);\n margin-right: var(--token-space-3, 12px);\n }\n\n &:hover {\n --background: var(--token-interactive-hover, rgba(var(--ion-color-primary-rgb), 0.1));\n\n ion-icon {\n color: var(--ion-color-primary);\n }\n }\n\n &.destructive {\n --color: var(--ion-color-danger);\n\n ion-icon {\n color: var(--ion-color-danger);\n }\n\n &:hover {\n --background: rgba(var(--ion-color-danger-rgb), 0.1);\n }\n }\n }\n }\n `,\n ],\n})\nexport class ResponsiveMenuPopoverComponent {\n /** Menu items to display */\n @Input() items: ResponsiveMenuItem[] = [];\n\n private popoverCtrl = PopoverController;\n\n constructor(private popover: PopoverController) {\n addIcons({ checkmark });\n }\n\n /**\n * Handle item selection and dismiss popover with the action\n */\n selectItem(action: string): void {\n this.popover.dismiss(action);\n }\n}\n"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;;;AAQG;AASH;;;;;;;AAOG;MAqEU,8BAA8B,CAAA;AAMrB,IAAA,OAAA;;IAJX,KAAK,GAAyB,EAAE;IAEjC,WAAW,GAAG,iBAAiB;AAEvC,IAAA,WAAA,CAAoB,OAA0B,EAAA;QAA1B,IAAA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