kui-shell
Version:
This is the monorepo for Kui, the hybrid command-line/GUI electron-based Kubernetes tool
62 lines • 5.17 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CURRENT_TAB = 'tab.visible';
exports.TAB_N = (N) => `tab:nth-child(${N})`;
exports.TAB_SELECTED_N = (N) => `${exports.TAB_N(N)}.visible`;
exports.SIDECAR_BASE = `${exports.CURRENT_TAB} sidecar`;
exports.SIDECAR_FULLSCREEN = `${exports.CURRENT_TAB}.sidecar-full-screen sidecar.visible:not(.minimized)`;
exports.PROMPT_BLOCK = `${exports.CURRENT_TAB} .repl .repl-block`;
exports.OOPS = `${exports.CURRENT_TAB} .repl .repl-block .oops`;
exports.SIDECAR = `${exports.SIDECAR_BASE}.visible:not(.minimized)`;
exports.SIDECAR_WITH_FAILURE = `${exports.SIDECAR_BASE}.visible.activation-success-false`;
exports.SIDECAR_HIDDEN = `${exports.SIDECAR_BASE}:not(.visible)`;
exports.SIDECAR_FULLY_HIDDEN = `${exports.SIDECAR_BASE}:not(.visible):not(.minimized)`;
exports.SIDECAR_ACTIVATION_TITLE = `${exports.SIDECAR} .sidecar-header-name .entity-name-hash`;
exports.SIDECAR_TITLE = `${exports.SIDECAR} .sidecar-header-name-content .entity-name`;
exports.SIDECAR_PACKAGE_NAME_TITLE = `${exports.SIDECAR} .sidecar-bottom-stripe .package-prefix`;
exports.SIDECAR_KIND = `${exports.SIDECAR} .sidecar-bottom-stripe .sidecar-header-icon`;
exports.SIDECAR_CONTENT = `${exports.SIDECAR} .sidecar-content`;
exports.SIDECAR_WEB_ACTION_URL = `${exports.SIDECAR} .sidecar-header .entity-web-export-url.has-url`;
exports.SIDECAR_ACTION_SOURCE = `${exports.SIDECAR_CONTENT} .action-content .action-source`;
exports.SIDECAR_PACKAGE_PARAMETERS = `${exports.SIDECAR_CONTENT} .package-content .package-source`;
exports.SIDECAR_ACTIVATION_RESULT = `${exports.SIDECAR_CONTENT} .activation-result`;
exports.SIDECAR_ACTIVATION_ID = `${exports.SIDECAR} .sidecar-header .entity-name-hash`;
exports.SIDECAR_RULE_CANVAS = `${exports.SIDECAR} .rule-components`;
exports.SIDECAR_RULE_CANVAS_NODES = `${exports.SIDECAR_RULE_CANVAS} .sequence-component`;
exports.SIDECAR_SEQUENCE_CANVAS = `${exports.SIDECAR} #wskflowSVG`;
exports.SIDECAR_SEQUENCE_CANVAS_NODES = `${exports.SIDECAR_SEQUENCE_CANVAS} .node.action`;
exports.SIDECAR_SEQUENCE_CANVAS_NODE_N = (N) => `${exports.SIDECAR_SEQUENCE_CANVAS_NODES}[data-task-index="${N}"]`;
exports.SIDECAR_LIMIT = (type) => `${exports.SIDECAR} .sidecar-header .limits .limit[data-limit-type="${type}"]`;
exports.SIDECAR_BADGES = `${exports.SIDECAR} .sidecar-header .badges`;
exports.SIDECAR_TOOLBAR = `${exports.SIDECAR} .sidecar-bottom-stripe-toolbar`;
exports.SIDECAR_TOOLBAR_TEXT = (type) => `${exports.SIDECAR_TOOLBAR} .sidecar-toolbar-text[data-type="${type}"] .sidecar-toolbar-text-content`;
exports.SIDECAR_TOOLBAR_BUTTON = (mode) => `${exports.SIDECAR_TOOLBAR} .sidecar-bottom-stripe-mode-bits .sidecar-bottom-stripe-button[data-mode="${mode}"] [role="tab"]`;
exports.SIDECAR_CUSTOM_CONTENT = `${exports.SIDECAR} .custom-content`;
exports.SIDECAR_MODE_BUTTONS = `${exports.SIDECAR} .sidecar-bottom-stripe-mode-bits .sidecar-bottom-stripe-button`;
exports.SIDECAR_MODE_BUTTON = (mode) => `${exports.SIDECAR_MODE_BUTTONS}[data-mode="${mode}"]`;
exports.SIDECAR_MODE_BUTTON_SELECTED = (mode) => `${exports.SIDECAR_MODE_BUTTON(mode)}.bx--tabs__nav-item--selected`;
exports.SIDECAR_BACK_BUTTON = `${exports.SIDECAR} .sidecar-bottom-stripe-back-button`;
exports.SIDECAR_MAXIMIZE_BUTTON = `${exports.SIDECAR} .toggle-sidecar-maximization-button`;
exports.SIDECAR_CLOSE_BUTTON = `${exports.SIDECAR} .sidecar-bottom-stripe-close`;
exports.SIDECAR_RESUME_FROM_CLOSE_BUTTON = `${exports.SIDECAR_BASE} .sidecar-bottom-stripe-close`;
exports.SIDECAR_FULLY_CLOSE_BUTTON = `${exports.SIDECAR} .sidecar-bottom-stripe-quit`;
exports.PROCESSING_PROMPT_BLOCK = `${exports.PROMPT_BLOCK}.repl-active`;
exports.CURRENT_PROMPT_BLOCK = `${exports.PROMPT_BLOCK}.repl-active`;
exports.PROMPT_BLOCK_N = (N) => `${exports.PROMPT_BLOCK}[data-input-count="${N}"]`;
exports.PROCESSING_N = (N) => `${exports.PROMPT_BLOCK_N(N)}.processing`;
exports.CURRENT_PROMPT = `${exports.CURRENT_PROMPT_BLOCK} input`;
exports.PROMPT_N = (N) => `${exports.PROMPT_BLOCK_N(N)} input`;
exports.OUTPUT_N = (N) => `${exports.PROMPT_BLOCK_N(N)} .repl-result`;
exports.PROMPT_BLOCK_LAST = `${exports.PROMPT_BLOCK}:nth-last-child(2)`;
exports.PROMPT_BLOCK_FINAL = `${exports.PROMPT_BLOCK}:nth-last-child(1)`;
exports.PROMPT_FINAL = `${exports.PROMPT_BLOCK_FINAL} input`;
exports.OUTPUT_LAST = `${exports.PROMPT_BLOCK_LAST} .repl-result`;
exports.LIST_RESULTS_N = (N) => `${exports.PROMPT_BLOCK_N(N)} .repl-result .entity:not(.header-row)`;
exports.LIST_RESULTS_BY_NAME_N = (N) => `${exports.LIST_RESULTS_N(N)} .entity-name`;
exports.LIST_RESULT_BY_N_FOR_NAME = (N, name) => `${exports.LIST_RESULTS_N(N)}[data-name="${name}"]`;
exports.TABLE_CELL = (rowKey, cellKey) => `.entity:not(.header-row)[data-name="${rowKey}"] .cell-inner[data-key="${cellKey}"]`;
exports.BY_NAME = (name) => `.entity:not(.header-row)[data-name="${name}"]`;
exports.LIST_RESULT_BY_N_AND_NAME = (N, name) => `${exports.LIST_RESULT_BY_N_FOR_NAME(N, name)} .entity-name`;
exports.OK_N = (N) => `${exports.PROMPT_BLOCK_N(N)} .repl-output .ok`;
exports.xtermRows = (N) => `${exports.PROMPT_BLOCK_N(N)} .xterm-container .xterm-rows`;
//# sourceMappingURL=selectors.js.map