@retalia/pos-components 0.0.14 → 0.0.15
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/package.json
CHANGED
|
@@ -168,16 +168,23 @@ type PosTransactionActionBarIntent = {
|
|
|
168
168
|
readonly type: 'actionBar.clearBasket';
|
|
169
169
|
} | {
|
|
170
170
|
readonly type: 'actionBar.tender';
|
|
171
|
+
} | {
|
|
172
|
+
readonly type: 'actionBar.tenderCard';
|
|
171
173
|
};
|
|
172
174
|
declare class PosTransactionActionBar {
|
|
173
|
-
/** Envelope action names. `clearBasket` shows Cancel. `tender` shows Cash. */
|
|
175
|
+
/** Envelope action names. `clearBasket` shows Cancel. `tender` shows Cash and Card. */
|
|
174
176
|
readonly availableActions: _angular_core.InputSignal<readonly string[]>;
|
|
175
177
|
readonly disabled: _angular_core.InputSignal<boolean>;
|
|
178
|
+
/** Key that clicks Card. Empty hides the hint and the shortcut. */
|
|
179
|
+
readonly cardHotkey: _angular_core.InputSignal<string>;
|
|
176
180
|
readonly action: _angular_core.OutputEmitterRef<PosTransactionActionBarIntent>;
|
|
181
|
+
private readonly cardButton;
|
|
182
|
+
protected onDocumentKeydown(event: KeyboardEvent): void;
|
|
177
183
|
protected onClear(): void;
|
|
178
184
|
protected onCash(): void;
|
|
185
|
+
protected onCard(): void;
|
|
179
186
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PosTransactionActionBar, never>;
|
|
180
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PosTransactionActionBar, "pos-transaction-action-bar", never, { "availableActions": { "alias": "availableActions"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "action": "action"; }, never, ["*"], true, never>;
|
|
187
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PosTransactionActionBar, "pos-transaction-action-bar", never, { "availableActions": { "alias": "availableActions"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "cardHotkey": { "alias": "cardHotkey"; "required": false; "isSignal": true; }; }, { "action": "action"; }, never, ["*"], true, never>;
|
|
181
188
|
}
|
|
182
189
|
|
|
183
190
|
type PosItemEntryIntent = {
|