@softpak/components 19.25.2 → 19.25.3
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.
|
@@ -41,8 +41,9 @@ class SpxTabsComponent {
|
|
|
41
41
|
this.store = store;
|
|
42
42
|
this.navItems = signal([]);
|
|
43
43
|
this.shownNavItems = computed(() => {
|
|
44
|
+
const show = this.optionalNavItemBool();
|
|
44
45
|
return this.navItems().filter((navItem) => {
|
|
45
|
-
return !navItem.currentSettingsRequired || (navItem.currentSettingsRequired &&
|
|
46
|
+
return !navItem.currentSettingsRequired || (navItem.currentSettingsRequired && show);
|
|
46
47
|
});
|
|
47
48
|
});
|
|
48
49
|
this.showShortcuts = signal(false);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"softpak-components-spx-tabs.mjs","sources":["../../../../projects/softpak/components/spx-tabs/store/spx-shortcuts.actions.ts","../../../../projects/softpak/components/spx-tabs/store/spx-shortcuts.reducer.ts","../../../../projects/softpak/components/spx-tabs/src/spx-tabs.component.ts","../../../../projects/softpak/components/spx-tabs/src/spx-tabs.component.html","../../../../projects/softpak/components/spx-tabs/softpak-components-spx-tabs.ts"],"sourcesContent":["import { createAction, props, union } from '@ngrx/store';\r\n\r\nexport const ctrl = createAction('[SPX / Shortcuts] CTRL', props<{ keyIsDown: boolean; }>());\r\n\r\nconst all = union({\r\n ctrl: ctrl,\r\n});\r\nexport type Actions = typeof all;","import * as actions from './spx-shortcuts.actions';\r\nimport { createFeature, createReducer, on } from '@ngrx/store';\r\n\r\nexport interface StateI {\r\n ctrlIsDown: boolean;\r\n}\r\n\r\nexport const initialState: StateI = {\r\n ctrlIsDown: false,\r\n};\r\n\r\nexport default createFeature({\r\n name: 'spxShortcuts',\r\n reducer: createReducer(\r\n initialState,\r\n on(actions.ctrl, (state: StateI, { keyIsDown }): StateI => ({\r\n ...state,\r\n ctrlIsDown: keyIsDown,\r\n })),\r\n )}\r\n);","import { ChangeDetectionStrategy, Component, computed, input, OnInit, signal } from \"@angular/core\";\r\nimport { FormsModule } from \"@angular/forms\";\r\nimport { FaIconComponent } from \"@fortawesome/angular-fontawesome\";\r\nimport { IonTabBar, IonTabButton, IonTabs } from \"@ionic/angular/standalone\";\r\nimport { Store } from \"@ngrx/store\";\r\nimport { unsubscribeSubscriptions } from \"@softpak/components/spx-helpers\";\r\nimport { SpxNavigationItemI, spxNavigationReducer } from \"@softpak/components/spx-navigation\";\r\nimport { Subscription } from \"rxjs\";\r\nimport { NgClass } from \"@angular/common\";\r\nimport spxShortCutsReducer from '../store/spx-shortcuts.reducer';\r\n\r\n@Component({\r\n // eslint-disable-next-line @angular-eslint/component-selector\r\n selector: 'spx-tabs',\r\n standalone: true,\r\n imports: [\r\n IonTabs, \r\n FormsModule,\r\n IonTabBar,\r\n IonTabButton,\r\n FaIconComponent,\r\n NgClass\r\n ],\r\n templateUrl: './spx-tabs.component.html',\r\n styleUrl: './spx-tabs.component.scss',\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class SpxTabsComponent implements OnInit {\r\n navItems = signal<SpxNavigationItemI[]>([]);\r\n shownNavItems = computed(() => {\r\n return this.navItems().filter((navItem) => {\r\n return !navItem.currentSettingsRequired || (navItem.currentSettingsRequired &&
|
|
1
|
+
{"version":3,"file":"softpak-components-spx-tabs.mjs","sources":["../../../../projects/softpak/components/spx-tabs/store/spx-shortcuts.actions.ts","../../../../projects/softpak/components/spx-tabs/store/spx-shortcuts.reducer.ts","../../../../projects/softpak/components/spx-tabs/src/spx-tabs.component.ts","../../../../projects/softpak/components/spx-tabs/src/spx-tabs.component.html","../../../../projects/softpak/components/spx-tabs/softpak-components-spx-tabs.ts"],"sourcesContent":["import { createAction, props, union } from '@ngrx/store';\r\n\r\nexport const ctrl = createAction('[SPX / Shortcuts] CTRL', props<{ keyIsDown: boolean; }>());\r\n\r\nconst all = union({\r\n ctrl: ctrl,\r\n});\r\nexport type Actions = typeof all;","import * as actions from './spx-shortcuts.actions';\r\nimport { createFeature, createReducer, on } from '@ngrx/store';\r\n\r\nexport interface StateI {\r\n ctrlIsDown: boolean;\r\n}\r\n\r\nexport const initialState: StateI = {\r\n ctrlIsDown: false,\r\n};\r\n\r\nexport default createFeature({\r\n name: 'spxShortcuts',\r\n reducer: createReducer(\r\n initialState,\r\n on(actions.ctrl, (state: StateI, { keyIsDown }): StateI => ({\r\n ...state,\r\n ctrlIsDown: keyIsDown,\r\n })),\r\n )}\r\n);","import { ChangeDetectionStrategy, Component, computed, input, OnInit, signal } from \"@angular/core\";\r\nimport { FormsModule } from \"@angular/forms\";\r\nimport { FaIconComponent } from \"@fortawesome/angular-fontawesome\";\r\nimport { IonTabBar, IonTabButton, IonTabs } from \"@ionic/angular/standalone\";\r\nimport { Store } from \"@ngrx/store\";\r\nimport { unsubscribeSubscriptions } from \"@softpak/components/spx-helpers\";\r\nimport { SpxNavigationItemI, spxNavigationReducer } from \"@softpak/components/spx-navigation\";\r\nimport { Subscription } from \"rxjs\";\r\nimport { NgClass } from \"@angular/common\";\r\nimport spxShortCutsReducer from '../store/spx-shortcuts.reducer';\r\n\r\n@Component({\r\n // eslint-disable-next-line @angular-eslint/component-selector\r\n selector: 'spx-tabs',\r\n standalone: true,\r\n imports: [\r\n IonTabs, \r\n FormsModule,\r\n IonTabBar,\r\n IonTabButton,\r\n FaIconComponent,\r\n NgClass\r\n ],\r\n templateUrl: './spx-tabs.component.html',\r\n styleUrl: './spx-tabs.component.scss',\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class SpxTabsComponent implements OnInit {\r\n navItems = signal<SpxNavigationItemI[]>([]);\r\n shownNavItems = computed(() => {\r\n const show = this.optionalNavItemBool();\r\n return this.navItems().filter((navItem) => {\r\n return !navItem.currentSettingsRequired || (navItem.currentSettingsRequired && show);\r\n });\r\n });\r\n\r\n showShortcuts = signal<boolean>(false);\r\n optionalNavItemBool = input<boolean>(true);\r\n private subscription: {\r\n ctrlState?: Subscription;\r\n menuState?: Subscription;\r\n } = {};\r\n\r\n constructor(\r\n private readonly store: Store,\r\n ) { }\r\n\r\n ngOnInit() {\r\n this.listenToMenuState();\r\n this.listenToCtrlState();\r\n }\r\n\r\n ngOnDestroy() {\r\n unsubscribeSubscriptions(this.subscription);\r\n }\r\n\r\n private listenToCtrlState(): void {\r\n this.subscription.ctrlState = this.store.select(spxShortCutsReducer.selectCtrlIsDown).subscribe(ctrlIsDown => {\r\n this.showShortcuts.set(ctrlIsDown);\r\n });\r\n }\r\n\r\n private listenToMenuState(): void {\r\n this.subscription.menuState = this.store.select(spxNavigationReducer.default.selectTabs).subscribe((tabs) => {\r\n this.navItems.set(tabs.filter(tab => !tab.currentSettingsRequired));\r\n });\r\n }\r\n\r\n}","<ion-tabs #tabs select=\"home\">\r\n <ion-tab-bar slot=\"bottom\" class=\"border-t border-gray-200\">\r\n @for (item of shownNavItems(); track item.title) {\r\n <ion-tab-button [ngClass]=\"'ion-tab-button--' + item.code\" [tab]=\"item.code\"\r\n [attr.data-e2e]=\"'tab--' + item.code\">\r\n <fa-icon class=\"text-xl\" [icon]=\"showShortcuts() ? item.iconShortcut! : item.iconTab!\"></fa-icon>\r\n </ion-tab-button>\r\n }\r\n </ion-tab-bar>\r\n</ion-tabs>","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["actions.ctrl","spxShortCutsReducer"],"mappings":";;;;;;;;;;;AAEO,MAAM,IAAI,GAAG,YAAY,CAAC,wBAAwB,EAAE,KAAK,EAA2B,CAAC;AAE5F,MAAM,GAAG,GAAG,KAAK,CAAC;AACd,IAAA,IAAI,EAAE,IAAI;AACb,CAAA,CAAC;;;;;;;ACCK,MAAM,YAAY,GAAW;AAClC,IAAA,UAAU,EAAE,KAAK;CAClB;AAED,4BAAe,aAAa,CAAC;AAC3B,IAAA,IAAI,EAAE,cAAc;IACpB,OAAO,EAAE,aAAa,CACpB,YAAY,EACZ,EAAE,CAACA,IAAY,EAAE,CAAC,KAAa,EAAE,EA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A,gBAAA,EAAA,MAAA,EAAA,CAAA,UAAA,EAAA,UAAA,EAAA,MAAA,EAAA,QAAA,EAAA,MAAA,EAAA,KAAA,EAAA,UAAA,EAAA,KAAA,EAAA,QAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,eAAe,4MACf,OAAO,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,SAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;4FAMA,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAhB5B,SAAS;+BAEI,UAAU,EAAA,UAAA,EACR,IAAI,EACP,OAAA,EAAA;wBACP,OAAO;wBACP,WAAW;wBACX,SAAS;wBACT,YAAY;wBACZ,eAAe;wBACf;qBACD,EAGgB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,weAAA,EAAA,MAAA,EAAA,CAAA,qzBAAA,CAAA,EAAA;;;AEzBnD;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@softpak/components",
|
|
3
|
-
"version": "19.25.
|
|
3
|
+
"version": "19.25.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "19.x.x",
|
|
@@ -33,17 +33,17 @@
|
|
|
33
33
|
"types": "./spx-404-page/index.d.ts",
|
|
34
34
|
"default": "./fesm2022/softpak-components-spx-404-page.mjs"
|
|
35
35
|
},
|
|
36
|
-
"./spx-app-
|
|
37
|
-
"types": "./spx-app-
|
|
38
|
-
"default": "./fesm2022/softpak-components-spx-app-
|
|
36
|
+
"./spx-app-expiry": {
|
|
37
|
+
"types": "./spx-app-expiry/index.d.ts",
|
|
38
|
+
"default": "./fesm2022/softpak-components-spx-app-expiry.mjs"
|
|
39
39
|
},
|
|
40
40
|
"./spx-alert": {
|
|
41
41
|
"types": "./spx-alert/index.d.ts",
|
|
42
42
|
"default": "./fesm2022/softpak-components-spx-alert.mjs"
|
|
43
43
|
},
|
|
44
|
-
"./spx-app-
|
|
45
|
-
"types": "./spx-app-
|
|
46
|
-
"default": "./fesm2022/softpak-components-spx-app-
|
|
44
|
+
"./spx-app-configuration": {
|
|
45
|
+
"types": "./spx-app-configuration/index.d.ts",
|
|
46
|
+
"default": "./fesm2022/softpak-components-spx-app-configuration.mjs"
|
|
47
47
|
},
|
|
48
48
|
"./spx-button": {
|
|
49
49
|
"types": "./spx-button/index.d.ts",
|
|
@@ -65,14 +65,14 @@
|
|
|
65
65
|
"types": "./spx-channel-selection/index.d.ts",
|
|
66
66
|
"default": "./fesm2022/softpak-components-spx-channel-selection.mjs"
|
|
67
67
|
},
|
|
68
|
-
"./spx-confirm": {
|
|
69
|
-
"types": "./spx-confirm/index.d.ts",
|
|
70
|
-
"default": "./fesm2022/softpak-components-spx-confirm.mjs"
|
|
71
|
-
},
|
|
72
68
|
"./spx-check-digit": {
|
|
73
69
|
"types": "./spx-check-digit/index.d.ts",
|
|
74
70
|
"default": "./fesm2022/softpak-components-spx-check-digit.mjs"
|
|
75
71
|
},
|
|
72
|
+
"./spx-confirm": {
|
|
73
|
+
"types": "./spx-confirm/index.d.ts",
|
|
74
|
+
"default": "./fesm2022/softpak-components-spx-confirm.mjs"
|
|
75
|
+
},
|
|
76
76
|
"./spx-form-section": {
|
|
77
77
|
"types": "./spx-form-section/index.d.ts",
|
|
78
78
|
"default": "./fesm2022/softpak-components-spx-form-section.mjs"
|
|
@@ -89,14 +89,14 @@
|
|
|
89
89
|
"types": "./spx-inputs/index.d.ts",
|
|
90
90
|
"default": "./fesm2022/softpak-components-spx-inputs.mjs"
|
|
91
91
|
},
|
|
92
|
-
"./spx-number-check": {
|
|
93
|
-
"types": "./spx-number-check/index.d.ts",
|
|
94
|
-
"default": "./fesm2022/softpak-components-spx-number-check.mjs"
|
|
95
|
-
},
|
|
96
92
|
"./spx-navigation": {
|
|
97
93
|
"types": "./spx-navigation/index.d.ts",
|
|
98
94
|
"default": "./fesm2022/softpak-components-spx-navigation.mjs"
|
|
99
95
|
},
|
|
96
|
+
"./spx-number-check": {
|
|
97
|
+
"types": "./spx-number-check/index.d.ts",
|
|
98
|
+
"default": "./fesm2022/softpak-components-spx-number-check.mjs"
|
|
99
|
+
},
|
|
100
100
|
"./spx-pagination": {
|
|
101
101
|
"types": "./spx-pagination/index.d.ts",
|
|
102
102
|
"default": "./fesm2022/softpak-components-spx-pagination.mjs"
|