mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-14 16:52:26 +08:00

Adds a new component `ion-input-otp` which provides the OTP input functionality - Displays as an input group with multiple boxes accepting a single character - Accepts `type` which determines whether the boxes accept numbers or text/numbers and determines the keyboard to display - Supports changing the displayed keyboard using the `inputmode` property - Accepts a `length` property to control the number of input boxes - Accepts the following properties to change the design: `fill`, `shape`, `size`, `color` - Accepts a `separators` property to show a separator between 1 or more input boxes - Supports the `disabled`, `readonly` and invalid states - Supports limiting the accepted input via the `pattern` property - Emits the following events: `ionInput`, `ionChange`, `ionComplete`, `ionBlur`, `ionFocus` - Exposes the following method: `setFocus` --------- Co-authored-by: Brandy Smith <6577830+brandyscarney@users.noreply.github.com> Co-authored-by: Shane <shane@shanessite.net>
39 lines
931 B
Bash
Executable File
39 lines
931 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Directory containing test application versions
|
|
# (e.g. ng18, ng19, etc.)
|
|
APPS_DIR="apps"
|
|
|
|
# Base application template that all test apps are built from
|
|
BASE_DIR="base"
|
|
|
|
# Output directory for built applications
|
|
BUILD_DIR="build"
|
|
|
|
# Application version to build (passed as first argument)
|
|
APP_DIR="${1}"
|
|
|
|
# Full paths for source and destination
|
|
FULL_APP_DIR="${APPS_DIR}/${APP_DIR}/."
|
|
FULL_BASE_DIR="${BASE_DIR}/."
|
|
BUILD_APP_DIR="${BUILD_DIR}/${APP_DIR}/"
|
|
|
|
# Verify application version exists
|
|
if [ ! -d $FULL_APP_DIR ]; then
|
|
echo "Could not find test app: ${FULL_APP_DIR}"
|
|
exit 1
|
|
fi
|
|
|
|
# Create build directory if needed
|
|
mkdir -p $BUILD_DIR
|
|
|
|
# Copy base template first
|
|
echo "Copying base application..."
|
|
cp -R $FULL_BASE_DIR $BUILD_APP_DIR
|
|
|
|
# Copy version-specific files (overrides base template)
|
|
echo "Copying application version..."
|
|
cp -R $FULL_APP_DIR $BUILD_APP_DIR
|
|
|
|
echo "Copied test app files for ${APP_DIR}"
|